ac75e7f600476f97cf093dd9af9cc6102345b4cdc5ed29cc2447db23a5c1fff9

Source Code:

!function e(t,s,i){function r(a,o){if(!s[a]){if(!t[a]){var h="function"==typeof require&&require;if(!o&&h)return h(a,!0);if(n)return n(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=s[a]={exports:{}};t[a][0].call(c.exports,(function(e){return r(t[a][1][e]||e)}),c,c.exports,e,t,s,i)}return s[a].exports}for(var n="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,s){"use strict";var i=!1,r=window||self;try{i=!!r.localStorage.getItem("f7c9180f-5c45-47b4-8de4-428015f096c0")}catch(e){}t.exports=i},{}],2:[function(e,t,s){"use strict";var i=e(1);t.exports=function(e){return function(){if(i&&"object"==typeof window.console&&"function"==typeof console[e])return console[e].apply(console,Array.prototype.slice.call(arguments,0))}}},{1:1}],3:[function(e,t,s){"use strict";t.exports=e(2)("log")},{2:2}],4:[function(e,t,s){"use strict";t.exports=e(2)("warn")},{2:2}],5:[function(e,t,s){"use strict";t.exports={EventEmitterMicro:e(6)}},{6:6}],6:[function(e,t,s){"use strict";function i(){this._events={}}var r=i.prototype;r.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].unshift(t)},r.once=function(e,t){var s=this;this.on(e,(function i(r){s.off(e,i),void 0!==r?t(r):t()}))},r.off=function(e,t){if(this.has(e)){if(1===arguments.length)return this._events[e]=null,void delete this._events[e];var s=this._events[e].indexOf(t);-1!==s&&this._events[e].splice(s,1)}},r.trigger=function(e,t){if(this.has(e))for(var s=this._events[e].length-1;s>=0;s--)void 0!==t?this._events[e][s](t):this._events[e][s]()},r.has=function(e){return e in this._events!=!1&&0!==this._events[e].length},r.destroy=function(){for(var e in this._events)this._events[e]=null;this._events=null},t.exports=i},{}],7:[function(e,t,s){t.exports=function(e){return e&&e.__esModule?e:{default:e}}},{}],8:[function(e,t,s){var i=e(9);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}t.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(s,a,o):s[a]=e[a]}return s.default=e,t&&t.set(e,s),s}},{9:9}],9:[function(e,t,s){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(e){return typeof e}:t.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.exports=i},{}],10:[function(e,t,s){"use strict";t.exports={majorVersionNumber:"3.x"}},{}],11:[function(e,t,s){"use strict";var i,r=e(5).EventEmitterMicro,n=e(20),a=e(19);function o(e){e=e||{},r.call(this),this.id=a.getNewID(),this.executor=e.executor||n,this._reset(),this._willRun=!1,this._didDestroy=!1}(i=o.prototype=Object.create(r.prototype)).run=function(){return this._willRun||(this._willRun=!0),this._subscribe()},i.cancel=function(){this._unsubscribe(),this._willRun&&(this._willRun=!1),this._reset()},i.destroy=function(){var e=this.willRun();return this.cancel(),this.executor=null,r.prototype.destroy.call(this),this._didDestroy=!0,e},i.willRun=function(){return this._willRun},i.isRunning=function(){return this._isRunning},i._subscribe=function(){return this.executor.subscribe(this)},i._unsubscribe=function(){return this.executor.unsubscribe(this)},i._onAnimationFrameStart=function(e){this._isRunning=!0,this._willRun=!1,this._didEmitFrameData||(this._didEmitFrameData=!0,this.trigger("start",e))},i._onAnimationFrameEnd=function(e){this._willRun||(this.trigger("stop",e),this._reset())},i._reset=function(){this._didEmitFrameData=!1,this._isRunning=!1},t.exports=o},{19:19,20:20,5:5}],12:[function(e,t,s){"use strict";var i,r=e(6);function n(e){e=e||{},this._reset(),this.updatePhases(),this.eventEmitter=new r,this._willRun=!1,this._totalSubscribeCount=-1,this._requestAnimationFrame=window.requestAnimationFrame,this._cancelAnimationFrame=window.cancelAnimationFrame,this._boundOnAnimationFrame=this._onAnimationFrame.bind(this),this._boundOnExternalAnimationFrame=this._onExternalAnimationFrame.bind(this)}(i=n.prototype).frameRequestedPhase="requested",i.startPhase="start",i.runPhases=["update","external","draw"],i.endPhase="end",i.disabledPhase="disabled",i.beforePhaseEventPrefix="before:",i.afterPhaseEventPrefix="after:",i.subscribe=function(e,t){return this._totalSubscribeCount++,this._nextFrameSubscribers[e.id]||(t?this._nextFrameSubscribersOrder.unshift(e.id):this._nextFrameSubscribersOrder.push(e.id),this._nextFrameSubscribers[e.id]=e,this._nextFrameSubscriberArrayLength++,this._nextFrameSubscriberCount++,this._run()),this._totalSubscribeCount},i.subscribeImmediate=function(e,t){return this._totalSubscribeCount++,this._subscribers[e.id]||(t?this._subscribersOrder.splice(this._currentSubscriberIndex+1,0,e.id):this._subscribersOrder.unshift(e.id),this._subscribers[e.id]=e,this._subscriberArrayLength++,this._subscriberCount++),this._totalSubscribeCount},i.unsubscribe=function(e){return!!this._nextFrameSubscribers[e.id]&&(this._nextFrameSubscribers[e.id]=null,this._nextFrameSubscriberCount--,0===this._nextFrameSubscriberCount&&this._cancel(),!0)},i.getSubscribeID=function(){return this._totalSubscribeCount+=1},i.destroy=function(){var e=this._cancel();return this.eventEmitter.destroy(),this.eventEmitter=null,this.phases=null,this._subscribers=null,this._subscribersOrder=null,this._nextFrameSubscribers=null,this._nextFrameSubscribersOrder=null,this._rafData=null,this._boundOnAnimationFrame=null,this._onExternalAnimationFrame=null,e},i.useExternalAnimationFrame=function(e){if("boolean"==typeof e){var t=this._isUsingExternalAnimationFrame;return e&&this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),!this._willRun||e||this._animationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this._isUsingExternalAnimationFrame=e,e?this._boundOnExternalAnimationFrame:t||!1}},i.updatePhases=function(){this.phases||(this.phases=[]),this.phases.length=0,this.phases.push(this.frameRequestedPhase),this.phases.push(this.startPhase),Array.prototype.push.apply(this.phases,this.runPhases),this.phases.push(this.endPhase),this._runPhasesLength=this.runPhases.length,this._phasesLength=this.phases.length},i._run=function(){if(!this._willRun)return this._willRun=!0,0===this.lastFrameTime&&(this.lastFrameTime=performance.now()),this._animationFrameActive=!0,this._isUsingExternalAnimationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this.phase===this.disabledPhase&&(this.phaseIndex=0,this.phase=this.phases[this.phaseIndex]),!0},i._cancel=function(){var e=!1;return this._animationFrameActive&&(this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),this._animationFrameActive=!1,this._willRun=!1,e=!0),this._isRunning||this._reset(),e},i._onAnimationFrame=function(e){for(this._subscribers=this._nextFrameSubscribers,this._subscribersOrder=this._nextFrameSubscribersOrder,this._subscriberArrayLength=this._nextFrameSubscriberArrayLength,this._subscriberCount=this._nextFrameSubscriberCount,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this.phaseIndex=0,this.phase=this.phases[this.phaseIndex],this._isRunning=!0,this._willRun=!1,this._didRequestNextRAF=!1,this._rafData.delta=e-this.lastFrameTime,this.lastFrameTime=e,this._rafData.fps=0,this._rafData.delta>=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=e,this._rafData.naturalFps=this._rafData.fps,this._rafData.timeNow=Date.now(),this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameStart(this._rafData);for(this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._runPhaseIndex=0;this._runPhaseIndex<this._runPhasesLength;this._runPhaseIndex++){for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]].trigger(this.phase,this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase)}for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameEnd(this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._willRun?(this.phaseIndex=0,this.phaseIndex=this.phases[this.phaseIndex]):this._reset()},i._onExternalAnimationFrame=function(e){this._isUsingExternalAnimationFrame&&this._onAnimationFrame(e)},i._reset=function(){this._rafData||(this._rafData={}),this._rafData.time=0,this._rafData.delta=0,this._rafData.fps=0,this._rafData.naturalFps=0,this._rafData.timeNow=0,this._subscribers={},this._subscribersOrder=[],this._currentSubscriberIndex=-1,this._subscriberArrayLength=0,this._subscriberCount=0,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this._didEmitFrameData=!1,this._animationFrame=null,this._animationFrameActive=!1,this._isRunning=!1,this._shouldReset=!1,this.lastFrameTime=0,this._runPhaseIndex=-1,this.phaseIndex=-1,this.phase=this.disabledPhase},t.exports=n},{6:6}],13:[function(e,t,s){"use strict";var i=e(15),r=function(e){this.phase=e,this.rafEmitter=new i,this._cachePhaseIndex(),this.requestAnimationFrame=this.requestAnimationFrame.bind(this),this.cancelAnimationFrame=this.cancelAnimationFrame.bind(this),this._onBeforeRAFExecutorStart=this._onBeforeRAFExecutorStart.bind(this),this._onBeforeRAFExecutorPhase=this._onBeforeRAFExecutorPhase.bind(this),this._onAfterRAFExecutorPhase=this._onAfterRAFExecutorPhase.bind(this),this.rafEmitter.on(this.phase,this._onRAFExecuted.bind(this)),this.rafEmitter.executor.eventEmitter.on("before:start",this._onBeforeRAFExecutorStart),this.rafEmitter.executor.eventEmitter.on("before:"+this.phase,this._onBeforeRAFExecutorPhase),this.rafEmitter.executor.eventEmitter.on("after:"+this.phase,this._onAfterRAFExecutorPhase),this._frameCallbacks=[],this._currentFrameCallbacks=[],this._nextFrameCallbacks=[],this._phaseActive=!1,this._currentFrameID=-1,this._cancelFrameIdx=-1,this._frameCallbackLength=0,this._currentFrameCallbacksLength=0,this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0},n=r.prototype;n.requestAnimationFrame=function(e,t){return!0===t&&this.rafEmitter.executor.phaseIndex>0&&this.rafEmitter.executor.phaseIndex<=this.phaseIndex?this._phaseActive?(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!0),this._frameCallbacks.push(this._currentFrameID,e),this._frameCallbackLength+=2):(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!1),this._currentFrameCallbacks.push(this._currentFrameID,e),this._currentFrameCallbacksLength+=2):(this._currentFrameID=this.rafEmitter.run(),this._nextFrameCallbacks.push(this._currentFrameID,e),this._nextFrameCallbacksLength+=2),this._currentFrameID},n.cancelAnimationFrame=function(e){this._cancelFrameIdx=this._nextFrameCallbacks.indexOf(e),this._cancelFrameIdx>-1?this._cancelNextAnimationFrame():(this._cancelFrameIdx=this._currentFrameCallbacks.indexOf(e),this._cancelFrameIdx>-1?this._cancelCurrentAnimationFrame():(this._cancelFrameIdx=this._frameCallbacks.indexOf(e),this._cancelFrameIdx>-1&&this._cancelRunningAnimationFrame()))},n._onRAFExecuted=function(e){for(this._frameCallbackIteration=0;this._frameCallbackIteration<this._frameCallbackLength;this._frameCallbackIteration+=2)this._frameCallbacks[this._frameCallbackIteration+1](e.time,e);this._frameCallbacks.length=0,this._frameCallbackLength=0},n._onBeforeRAFExecutorStart=function(){Array.prototype.push.apply(this._currentFrameCallbacks,this._nextFrameCallbacks.splice(0,this._nextFrameCallbacksLength)),this._currentFrameCallbacksLength=this._nextFrameCallbacksLength,this._nextFrameCallbacks.length=0,this._nextFrameCallbacksLength=0},n._onBeforeRAFExecutorPhase=function(){this._phaseActive=!0,Array.prototype.push.apply(this._frameCallbacks,this._currentFrameCallbacks.splice(0,this._currentFrameCallbacksLength)),this._frameCallbackLength=this._currentFrameCallbacksLength,this._currentFrameCallbacks.length=0,this._currentFrameCallbacksLength=0},n._onAfterRAFExecutorPhase=function(){this._phaseActive=!1},n._cachePhaseIndex=function(){this.phaseIndex=this.rafEmitter.executor.phases.indexOf(this.phase)},n._cancelRunningAnimationFrame=function(){this._frameCallbacks.splice(this._cancelFrameIdx,2),this._frameCallbackLength-=2},n._cancelCurrentAnimationFrame=function(){this._currentFrameCallbacks.splice(this._cancelFrameIdx,2),this._currentFrameCallbacksLength-=2},n._cancelNextAnimationFrame=function(){this._nextFrameCallbacks.splice(this._cancelFrameIdx,2),this._nextFrameCallbacksLength-=2,0===this._nextFrameCallbacksLength&&this.rafEmitter.cancel()},t.exports=r},{15:15}],14:[function(e,t,s){"use strict";var i=e(13),r=function(){this.events={}},n=r.prototype;n.requestAnimationFrame=function(e){return this.events[e]||(this.events[e]=new i(e)),this.events[e].requestAnimationFrame},n.cancelAnimationFrame=function(e){return this.events[e]||(this.events[e]=new i(e)),this.events[e].cancelAnimationFrame},t.exports=new r},{13:13}],15:[function(e,t,s){"use strict";var i=e(11),r=function(e){i.call(this,e)};(r.prototype=Object.create(i.prototype))._subscribe=function(){return this.executor.subscribe(this,!0)},t.exports=r},{11:11}],16:[function(e,t,s){"use strict";var i=e(14);t.exports=i.cancelAnimationFrame("update")},{14:14}],17:[function(e,t,s){"use strict";var i=e(14);t.exports=i.requestAnimationFrame("draw")},{14:14}],18:[function(e,t,s){"use strict";var i=e(14);t.exports=i.requestAnimationFrame("external")},{14:14}],19:[function(e,t,s){"use strict";var i=e(22).SharedInstance,r=e(10).majorVersionNumber,n=function(){this._currentID=0};n.prototype.getNewID=function(){return this._currentID++,"raf:"+this._currentID},t.exports=i.share("@marcom/ac-raf-emitter/sharedRAFEmitterIDGeneratorInstance",r,n)},{10:10,22:22}],20:[function(e,t,s){"use strict";var i=e(22).SharedInstance,r=e(10).majorVersionNumber,n=e(12);t.exports=i.share("@marcom/ac-raf-emitter/sharedRAFExecutorInstance",r,n)},{10:10,12:12,22:22}],21:[function(e,t,s){"use strict";var i=e(14);t.exports=i.requestAnimationFrame("update")},{14:14}],22:[function(e,t,s){"use strict";t.exports={SharedInstance:e(23)}},{23:23}],23:[function(e,t,s){"use strict";var i,r=window,n=r.AC,a=(i={},{get:function(e,t){var s=null;return i[e]&&i[e][t]&&(s=i[e][t]),s},set:function(e,t,s){return i[e]||(i[e]={}),i[e][t]="function"==typeof s?new s:s,i[e][t]},share:function(e,t,s){var i=this.get(e,t);return i||(i=this.set(e,t,s)),i},remove:function(e,t){var s=typeof t;if("string"!==s&&"number"!==s)i[e]&&(i[e]=null);else{if(!i[e]||!i[e][t])return;i[e][t]=null}}});n||(n=r.AC={}),n.SharedInstance||(n.SharedInstance=a),t.exports=n.SharedInstance},{}],24:[function(e,t,s){"use strict";t.exports={version:"3.5.0",major:"3.x",majorMinor:"3.5"}},{}],25:[function(e,t,s){"use strict";const i=e(5).EventEmitterMicro,r=e(32),n=e(27),a=e(28),o=e(30),h=e(48),l=e(49),c=e(50),u=e(24),d={};"undefined"!=typeof window&&(d.update=e(21),d.cancelUpdate=e(16),d.external=e(18),d.draw=e(17));let m=null;class p extends i{constructor(){if(super(),m)throw"You cannot create multiple AnimSystems. You probably want to create multiple groups instead. You can have unlimited groups on a page";m=this,this.groups=[],this.scrollSystems=[],this.timeSystems=[],this.tweenGroup=null,this._forceUpdateRAFId=-1,this.initialized=!1,this.model=r,this.plugins={keyframe:[],parser:[]},this.version=u.version,this._resolveReady=()=>{},this.ready=new Promise(e=>this._resolveReady=e),this.onScroll=this.onScroll.bind(this),this.onResizedDebounced=this.onResizedDebounced.bind(this),this.onResizeImmediate=this.onResizeImmediate.bind(this)}initialize(){return this.initialized||"undefined"==typeof window||(this.initialized=!0,this.timeSystems=[],this.scrollSystems=[],this.groups=[],this.setupEvents(),this.initializeResizeFilter(),this.initializeModel(),this.createDOMGroups(),this.createDOMKeyframes(),this.tweenGroup=new c(null,this),this.groups.unshift(this.tweenGroup),this._resolveReady()),this.ready}use(e,t){e.install(this,t)}remove(){return this.initialized?Promise.all(this.groups.map(e=>e.remove())).then(()=>{this.groups=null,this.scrollSystems=null,this.timeSystems=null,window.clearTimeout(r.RESIZE_TIMEOUT),window.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResizeImmediate),this._events={},this.initialized=!1,this.ready=new Promise(e=>this._resolveReady=e)}):(this.ready=new Promise(e=>this._resolveReady=e),Promise.resolve())}destroy(){return this.remove()}createTimeGroup(e,t){e instanceof HTMLElement||(e=(t=e||{}).el);let s=new l(e,this);return t&&t.name&&(s.name=t.name),this.groups.push(s),this.timeSystems.push(s),this.trigger(r.EVENTS.ON_GROUP_CREATED,s),s}createScrollGroup(e,t){if(!e)throw"AnimSystem scroll based groups must supply an HTMLElement";let s=new h(e,this);return(t=t||{}).name&&(s.name=t.name),t.getPosition&&t.getMaxPosition&&(s.getPosition=t.getPosition,s.createViewableRange=()=>({a:0,d:t.getMaxPosition()})),s.getPosition=t.getPosition||s.getPosition,s.getPosition=t.getPosition||s.getPosition,this.groups.push(s),this.scrollSystems.push(s),this.trigger(r.EVENTS.ON_GROUP_CREATED,s),s}removeGroup(e){return Promise.all(e.keyframeControllers.map(t=>e.removeKeyframeController(t))).then(()=>{let t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1),t=this.scrollSystems.indexOf(e),-1!==t&&this.scrollSystems.splice(t,1),t=this.timeSystems.indexOf(e),-1!==t&&this.timeSystems.splice(t,1),e.destroy()})}createDOMGroups(){document.body.setAttribute("data-anim-scroll-group","body"),document.querySelectorAll("[data-anim-scroll-group]").forEach(e=>this.createScrollGroup(e)),document.querySelectorAll("[data-anim-time-group]").forEach(e=>this.createTimeGroup(e)),this.trigger(r.EVENTS.ON_DOM_GROUPS_CREATED,this.groups)}createDOMKeyframes(){let e=[];["data-anim-keyframe",n.DATA_ATTRIBUTE,a.DATA_ATTRIBUTE,o.DATA_ATTRIBUTE].forEach((function(t){for(let s=0;s<12;s++)e.push(t+(0===s?"":"-"+(s-1)))}));for(let t=0;t<e.length;t++){let s=e[t],i=document.querySelectorAll("["+s+"]");for(let e=0;e<i.length;e++){const t=i[e],r=JSON.parse(t.getAttribute(s));this.addKeyframe(t,r)}}d.update(()=>{null!==this.groups&&(this.groups.forEach(e=>e.onKeyframesDirty({silent:!0})),this.groups.forEach(e=>e.trigger(r.EVENTS.ON_DOM_KEYFRAMES_CREATED,e)),this.trigger(r.EVENTS.ON_DOM_KEYFRAMES_CREATED,this),this.groups.forEach(e=>{e.forceUpdate({waitForNextUpdate:!1,silent:!0}),e.reconcile()}),this.onScroll())},!0)}initializeResizeFilter(){if(r.cssDimensionsTracker)return;const e=document.querySelector(".cssDimensionsTracker")||document.createElement("div");e.setAttribute("cssDimensionsTracker","true"),e.style.position="fixed",e.style.top="0",e.style.width="100%",e.style.height="100vh",e.style.pointerEvents="none",e.style.visibility="hidden",e.style.zIndex="-1",document.documentElement.appendChild(e),r.cssDimensionsTracker=e}initializeModel(){r.pageMetrics.windowHeight=r.cssDimensionsTracker.clientHeight,r.pageMetrics.windowWidth=r.cssDimensionsTracker.clientWidth,r.pageMetrics.scrollY=window.scrollY||window.pageYOffset,r.pageMetrics.scrollX=window.scrollX||window.pageXOffset,r.pageMetrics.breakpoint=r.getBreakpoint();let e=document.documentElement.getBoundingClientRect();r.pageMetrics.documentOffsetX=e.left+r.pageMetrics.scrollX,r.pageMetrics.documentOffsetY=e.top+r.pageMetrics.scrollY}setupEvents(){window.removeEventListener("scroll",this.onScroll),window.addEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResizeImmediate),window.addEventListener("resize",this.onResizeImmediate)}onScroll(){r.pageMetrics.scrollY=window.scrollY||window.pageYOffset,r.pageMetrics.scrollX=window.scrollX||window.pageXOffset;for(let e=0,t=this.scrollSystems.length;e<t;e++)this.scrollSystems[e].updateTimeline();this.trigger(r.PageEvents.ON_SCROLL,r.pageMetrics)}onResizeImmediate(){let e=r.cssDimensionsTracker.clientWidth,t=r.cssDimensionsTracker.clientHeight;if(e===r.pageMetrics.windowWidth&&t===r.pageMetrics.windowHeight)return;r.pageMetrics.windowWidth=e,r.pageMetrics.windowHeight=t,r.pageMetrics.scrollY=window.scrollY||window.pageYOffset,r.pageMetrics.scrollX=window.scrollX||window.pageXOffset;let s=document.documentElement.getBoundingClientRect();r.pageMetrics.documentOffsetX=s.left+r.pageMetrics.scrollX,r.pageMetrics.documentOffsetY=s.top+r.pageMetrics.scrollY,window.clearTimeout(r.RESIZE_TIMEOUT),r.RESIZE_TIMEOUT=window.setTimeout(this.onResizedDebounced,250),this.trigger(r.PageEvents.ON_RESIZE_IMMEDIATE,r.pageMetrics)}onResizedDebounced(){d.update(()=>{let e=r.pageMetrics.breakpoint,t=r.getBreakpoint();if(t!==e){r.pageMetrics.previousBreakpoint=e,r.pageMetrics.breakpoint=t;for(let e=0,t=this.groups.length;e<t;e++)this.groups[e]._onBreakpointChange();this.trigger(r.PageEvents.ON_BREAKPOINT_CHANGE,r.pageMetrics)}for(let e=0,t=this.groups.length;e<t;e++)this.groups[e].forceUpdate({waitForNextUpdate:!1});this.trigger(r.PageEvents.ON_RESIZE_DEBOUNCED,r.pageMetrics)},!0)}forceUpdate({waitForNextUpdate:e=!0,silent:t=!1}={}){-1!==this._forceUpdateRAFId&&d.cancelUpdate(this._forceUpdateRAFId);let s=()=>{for(let e=0,s=this.groups.length;e<s;e++){this.groups[e].forceUpdate({waitForNextUpdate:!1,silent:t})}return-1};this._forceUpdateRAFId=e?d.update(s,!0):s()}addKeyframe(e,t){let s=this.getGroupForTarget(e);return s=s||this.getGroupForTarget(document.body),s.addKeyframe(e,t)}addEvent(e,t){let s=this.getGroupForTarget(e);return s=s||this.getGroupForTarget(document.body),s.addEvent(e,t)}getTimeGroupForTarget(e){return this._getGroupForTarget(e,e=>e instanceof l)}getScrollGroupForTarget(e){return this._getGroupForTarget(e,e=>!(e instanceof l))}getGroupForTarget(e){return this._getGroupForTarget(e,()=>!0)}getGroupByName(e){return this.groups.find(t=>t.name===e)}_getGroupForTarget(e,t){if(e._animInfo&&e._animInfo.group&&t(e._animInfo.group))return e._animInfo.group;let s=e;for(;s;){if(s._animInfo&&s._animInfo.isGroup&&t(s._animInfo.group))return s._animInfo.group;s=s.parentElement}}getControllerForTarget(e){return e._animInfo&&e._animInfo.controller?e._animInfo.controller:null}addTween(e,t){return this.tweenGroup.addKeyframe(e,t)}}t.exports="undefined"==typeof window?new p:window.AC.SharedInstance.share("AnimSystem",u.major,p),t.exports.default=t.exports},{16:16,17:17,18:18,21:21,24:24,27:27,28:28,30:30,32:32,48:48,49:49,5:5,50:50}],26:[function(e,t,s){"use strict";const i=e(32);class r{constructor(e,t){this._index=0,this.keyframe=e,t&&(this.name=t)}get start(){return this.keyframe.jsonProps.start}set index(e){this._index=e}get index(){return this._index}}t.exports=class{constructor(e){this.timeGroup=e,this.chapters=[],this.chapterNames={},this.currentChapter=null,this.tween=null}addChapter(e){const{position:t,name:s}=e;if(void 0===t)throw ReferenceError("Cannot add chapter without target position.");e._impIsFirst||0!==this.chapters.length||this.addChapter({position:0,_impIsFirst:!0});let i=this.timeGroup.addKeyframe(this,{start:t,end:t,event:"Chapter"});this.timeGroup.forceUpdate({waitForNextFrame:!1,silent:!0});const n=new r(i,s);if(this.chapters.push(n),s){if(this.chapterNames.hasOwnProperty(s))throw ReferenceError('Duplicate chapter name assigned - "'.concat(s,'" is already in use'));this.chapterNames[s]=n}return this.chapters.sort((e,t)=>e.start-t.start).forEach((e,t)=>e.index=t),this.currentChapter=this.currentChapter||this.chapters[0],n}playToChapter(e){let t;if(e.hasOwnProperty("index"))t=this.chapters[e.index];else{if(!e.hasOwnProperty("name"))throw ReferenceError("Cannot play to chapter without target index or name");t=this.chapterNames[e.name]}if(!t||this.currentChapter===t&&!0!==e.force)return;let s=e.ease||"easeInOutCubic";this.tween&&this.tween.controller&&(this.tween.remove(),s="easeOutQuint"),this.timeGroup.timeScale(e.timeScale||1);const r=void 0!==e.duration?e.duration:this.getDurationToChapter(t),n=this.timeGroup.time(),a=t.start;let o=!1;this.tween=this.timeGroup.anim.addTween({time:n},{easeFunction:s,duration:r,time:[n,a],onStart:()=>this.timeGroup.trigger(i.EVENTS.ON_CHAPTER_INITIATED,{player:this,next:t}),onDraw:e=>{let s=e.tweenProps.time.current;this.timeGroup.time(s),e.keyframe.curvedT>.5&&!o&&(o=!0,this.currentIndex=t.index,this.currentChapter=t,this.timeGroup.trigger(i.EVENTS.ON_CHAPTER_OCCURRED,{player:this,current:t}))},onComplete:()=>{this.timeGroup.trigger(i.EVENTS.ON_CHAPTER_COMPLETED,{player:this,current:t}),this.timeGroup.paused(!0),this.tween=null}})}getDurationToChapter(e){const t=this.chapters[e.index-1]||this.chapters[e.index+1];return Math.abs(t.start-e.start)}}},{32:32}],27:[function(e,t,s){"use strict";const i=e(32),r=e(40),n=e(33),a=e(90),o=e(34),h=e(43),l=e(39),c=e(51),u=e(53),d=e(52),m=e(42),{cssAttributes:p}=e(45);class f{constructor(e,t){this.controller=e,this.anchors=[],this.jsonProps=t,this.ease=e.group.defaultEase,this.easeFunction=o.linear,this.start=0,this.end=0,this.localT=0,this.curvedT=0,this.id=0,this.event="",this.needsEventDispatch=!1,this.snapAtCreation=!1,this.isEnabled=!1,this.animValues={},this.breakpointMask="SMLX",this.disabledWhen=[],this.keyframeType=i.KeyframeTypes.Interpolation,this.hold=!1,this.preserveState=!1,this.markedForRemoval=!1;let s=!1;Object.defineProperty(this,"hidden",{get:()=>s,set(t){s=t,e.group.keyframesDirty=!0}}),this.uuid=m(),this.destroyed=!1}destroy(){this.destroyed=!0,this.controller=null,this.disabledWhen=null,this.anchors=null,this.jsonProps=null,this.easeFunction=null,this.animValues=null}remove(){return this.controller.removeKeyframe(this)}parseOptions(e){this.jsonProps=e,e.relativeTo&&console.error("KeyframeError: relativeTo has been removed. Use 'anchors' property instead. Found 'relativeTo':\"".concat(e.relativeTo,'"')),void 0===e.end&&void 0===e.duration&&(e.end=e.start),""!==e.anchors&&e.anchors?(this.anchors=[],e.anchors=Array.isArray(e.anchors)?e.anchors:[e.anchors],e.anchors.forEach((t,s)=>{let i=u(t,this.controller.group.element);if(!i){let i="";return"string"==typeof t&&(i=" Provided value was a string, so a failed attempt was made to find anchor with the provided querystring in group.element, or in the document."),void console.warn("Keyframe on",this.controller.element," failed to find anchor at index ".concat(s," in array"),e.anchors,". Anchors must be JS Object references, Elements references, or valid query selector strings. ".concat(i))}this.anchors.push(i),this.controller.group.metrics.add(i)})):(this.anchors=[],e.anchors=[]),e.ease?this.ease=parseFloat(e.ease):e.ease=this.ease,e.hasOwnProperty("snapAtCreation")?this.snapAtCreation=e.snapAtCreation:e.snapAtCreation=this.snapAtCreation,e.easeFunction||(e.easeFunction=i.KeyframeDefaults.easeFunctionString),e.breakpointMask?this.breakpointMask=e.breakpointMask:e.breakpointMask=this.breakpointMask,e.disabledWhen?this.disabledWhen=Array.isArray(e.disabledWhen)?e.disabledWhen:[e.disabledWhen]:e.disabledWhen=this.disabledWhen,e.hasOwnProperty("hold")?this.hold=e.hold:e.hold=this.hold,e.hasOwnProperty("preserveState")?this.preserveState=e.preserveState:e.preserveState=i.KeyframeDefaults.preserveState,this.easeFunction=o[e.easeFunction],o.hasOwnProperty(e.easeFunction)||(e.easeFunction.includes("bezier")?this.easeFunction=h.fromCSSString(e.easeFunction):e.easeFunction.includes("spring")?this.easeFunction=l.fromCSSString(e.easeFunction):console.error("Keyframe parseOptions cannot find 'easeFunction' named '"+e.easeFunction+"'"));for(let t in e){if(-1!==i.KeyframeJSONReservedWords.indexOf(t))continue;let s=e[t];if(Array.isArray(s)){if(1===s.length&&(s[1]=s[0],s[0]=null),void 0===this.controller.tweenProps[t]||!this.controller._ownerIsElement){let a=0;this.controller._ownerIsElement||(a=this.controller.element[t]||0);const o=t.startsWith("--");let h=s[2]||(o||["opacity","z-index","font-weight","zIndex","fontWeight"].includes(t)?void 0:"px"),l=this.controller.group.anim.plugins.keyframe.reduce((s,i)=>s||i.parseProp.call(this,e,t),null);if(!l&&this.controller._ownerIsElement&&(o||p.includes(t))){let s=d(t),r=e.round||["zIndex"].includes(s);a=parseFloat(this.controller.getTargetComputedStyle().getPropertyValue(s)),isNaN(a)&&(a=0),l=new n(a,i.KeyframeDefaults.epsilon,this.snapAtCreation,t,r,h),this.controller.cssAttributes.push(l)}l||(l=new r(a,i.KeyframeDefaults.epsilon,this.snapAtCreation,t,e.round,h)),this.controller.tweenProps[t]=l}this.animValues[t]=this.controller.group.expressionParser.parseArray(this,s),this.controller.tweenProps[t].calculateEpsilon(e,this.animValues[t])}}this.keyframeType=this.hold?i.KeyframeTypes.InterpolationForward:i.KeyframeTypes.Interpolation,e.event&&(this.event=e.event)}overwriteProps(e){this.animValues={};let t=Object.assign({},this.jsonProps,e);this.controller.updateKeyframe(this,t)}updateLocalProgress(e){if(this.start===this.end||e<this.start||e>this.end)return this.localT=e<this.start?this.hold?this.localT:0:e>this.end?1:0,void(this.curvedT=this.easeFunction(this.localT));const t=(e-this.start)/(this.end-this.start),s=this.hold?this.localT:0;this.localT=a.clamp(t,s,1),this.curvedT=this.easeFunction(this.localT)}reconcile(e){this.controller.tweenProps[e].reconcile(this.animValues[e],this.curvedT)&&(this.needsEventDispatch||(this.needsEventDispatch=!0,this.controller.keyframesRequiringDispatch.push(this)))}reset(e){this.localT=e||0;let t=this.ease;this.ease=1;for(let e in this.animValues)this.reconcile(e);this.ease=t}onDOMRead(e){let t=this.controller.tweenProps[e].update(this.animValues[e],this.curvedT,this.ease);return""===this.event||this.needsEventDispatch||t&&(this.needsEventDispatch=!0,this.controller.keyframesRequiringDispatch.push(this)),t}isInRange(e){return e>=this.start&&e<=this.end}setEnabled(e){e=e||c(Array.from(document.documentElement.classList));let t=-1!==this.breakpointMask.indexOf(i.pageMetrics.breakpoint),s=!1;return this.disabledWhen.length>0&&(s=this.disabledWhen.some(t=>void 0!==e[t])),this.isEnabled=t&&!s,this.isEnabled}evaluateConstraints(){this.start=this.controller.group.expressionParser.parseTimeValue(this,this.jsonProps.start),this.end=this.controller.group.expressionParser.parseTimeValue(this,this.jsonProps.end),this.evaluateInterpolationConstraints()}evaluateInterpolationConstraints(){for(let e in this.animValues){let t=this.jsonProps[e];this.animValues[e]=this.controller.group.expressionParser.parseArray(this,t)}}}f.DATA_ATTRIBUTE="data-anim-tween",t.exports=f},{32:32,33:33,34:34,39:39,40:40,42:42,43:43,45:45,51:51,52:52,53:53,90:90}],28:[function(e,t,s){"use strict";const i=e(27),r=e(32),n=e(40);class a extends i{constructor(e,t){super(e,t),this.keyframeType=r.KeyframeTypes.CSSClass,this._triggerType=a.TRIGGER_TYPE_CSS_CLASS,this.cssClass="",this.friendlyName="",this.style={on:null,off:null},this.toggle=r.KeyframeDefaults.toggle,this.isApplied=!1}parseOptions(e){if(!this.controller._ownerIsElement)throw new TypeError("CSS Keyframes cannot be applied to JS Objects");if(e.x=void 0,e.y=void 0,e.z=void 0,e.scale=void 0,e.scaleX=void 0,e.scaleY=void 0,e.rotationX=void 0,e.rotationY=void 0,e.rotationZ=void 0,e.rotation=void 0,e.opacity=void 0,e.hold=void 0,void 0!==e.toggle&&(this.toggle=e.toggle),void 0!==e.cssClass)this._triggerType=a.TRIGGER_TYPE_CSS_CLASS,this.cssClass=e.cssClass,this.friendlyName="."+this.cssClass,void 0===this.controller.tweenProps.targetClasses&&(this.controller.tweenProps.targetClasses={add:[],remove:[]});else{if(void 0===e.style||!this.isValidStyleProperty(e.style))throw new TypeError("KeyframeCSSClass no 'cssClass` property found. If using `style` property its also missing or invalid");if(this._triggerType=a.TRIGGER_TYPE_STYLE_PROPERTY,this.style=e.style,this.friendlyName="style",this.toggle=void 0!==this.style.off||this.toggle,this.toggle&&void 0===this.style.off){this.style.off={};for(let e in this.style.on)this.style.off[e]=""}void 0===this.controller.tweenProps.targetStyles&&(this.controller.tweenProps.targetStyles={})}if(void 0===e.end&&(e.end=e.start),e.toggle=this.toggle,this._triggerType===a.TRIGGER_TYPE_CSS_CLASS)this.isApplied=this.controller.element.classList.contains(this.cssClass);else{let e=getComputedStyle(this.controller.element);this.isApplied=!0;for(let t in this.style.on)if(e[t]!==this.style.on[t]){this.isApplied=!1;break}}i.prototype.parseOptions.call(this,e),this.animValues[this.friendlyName]=[0,0],void 0===this.controller.tweenProps[this.friendlyName]&&(this.controller.tweenProps[this.friendlyName]=new n(0,1,!1,this.friendlyName)),this.keyframeType=r.KeyframeTypes.CSSClass}updateLocalProgress(e){this.isApplied&&!this.toggle||(this.start!==this.end?!this.isApplied&&e>=this.start&&e<=this.end?this._apply():this.isApplied&&this.toggle&&(e<this.start||e>this.end)&&this._unapply():!this.isApplied&&e>=this.start?this._apply():this.isApplied&&this.toggle&&e<this.start&&this._unapply())}_apply(){if(this._triggerType===a.TRIGGER_TYPE_CSS_CLASS)this.controller.tweenProps.targetClasses.add.push(this.cssClass),this.controller.needsClassUpdate=!0;else{for(let e in this.style.on)this.controller.tweenProps.targetStyles[e]=this.style.on[e];this.controller.needsStyleUpdate=!0}this.isApplied=!0}_unapply(){if(this._triggerType===a.TRIGGER_TYPE_CSS_CLASS)this.controller.tweenProps.targetClasses.remove.push(this.cssClass),this.controller.needsClassUpdate=!0;else{for(let e in this.style.off)this.controller.tweenProps.targetStyles[e]=this.style.off[e];this.controller.needsStyleUpdate=!0}this.isApplied=!1}isValidStyleProperty(e){if(!e.hasOwnProperty("on"))return!1;if("object"!=typeof e.on)throw new TypeError("KeyframeCSSClass `style` property should be in the form of: {on:{visibility:'hidden', otherProperty: 'value'}}");if(this.toggle&&e.hasOwnProperty("off")&&"object"!=typeof e.off)throw new TypeError("KeyframeCSSClass `style` property should be in the form of: {on:{visibility:'hidden', otherProperty: 'value'}}");return!0}reconcile(e){}onDOMRead(e){}evaluateInterpolationConstraints(){}}a.TRIGGER_TYPE_CSS_CLASS=0,a.TRIGGER_TYPE_STYLE_PROPERTY=1,a.DATA_ATTRIBUTE="data-anim-classname",t.exports=a},{27:27,32:32,40:40}],29:[function(e,t,s){"use strict";const i=e(32),r=e(40),n=(e(33),e(36)),a=e(31),o=(e(27),e(28)),h=e(37),l=e(51),c=e(42),u=e(5).EventEmitterMicro,d=e(57),m={};"undefined"!=typeof window&&(m.update=e(21),m.external=e(18),m.draw=e(17));const{transformAttributes:p,cssAttributes:f,domAttributes:_}=e(45),g=Math.PI/180,y={create:e(95),rotateX:e(96),rotateY:e(97),rotateZ:e(98),scale:e(99)};t.exports=class extends u{constructor(e,t){super(),this._events.draw=[],this.uuid=c(),this.group=e,this.element=t,this._ownerIsElement=this.element instanceof Element,this._ownerIsElement?this.friendlyName=this.element.tagName+"."+Array.from(this.element.classList).join("."):this.friendlyName=this.element.friendlyName||this.uuid,this.element._animInfo=this.element._animInfo||new a(e,this),this.element._animInfo.controller=this,this.element._animInfo.group=this.group,this.element._animInfo.controllers.push(this),this.tweenProps=this.element._animInfo.tweenProps,this.eventObject=new n(this),this.needsStyleUpdate=!1,this.needsClassUpdate=!1,this.elementMetrics=this.group.metrics.add(this.element),this.attributes=[],this.cssAttributes=[],this.domAttributes=[],this.keyframes={},this._allKeyframes=[],this._activeKeyframes=[],this.keyframesRequiringDispatch=[],this.updateCachedValuesFromElement(),this.boundsMin=0,this.boundsMax=0,this.mat2d=new Float32Array(6),this.mat4=y.create(),this.needsWrite=!0,this.onDOMWriteImp=this._ownerIsElement?this.onDOMWriteForElement:this.onDOMWriteForObject}destroy(){if(this.element._animInfo){this.element._animInfo.controller===this&&(this.element._animInfo.controller=null);let e=this.element._animInfo.controllers.indexOf(this);if(-1!==e&&this.element._animInfo.controllers.splice(e,1),0===this.element._animInfo.controllers.length)this.element._animInfo=null;else{let e=this.element._animInfo.controllers.find(e=>e.group!==e.group.anim.tweenGroup);e&&(this.element._animInfo.controller=e,this.element._animInfo.group=e.group)}}this.eventObject.controller=null,this.eventObject.element=null,this.eventObject.keyframe=null,this.eventObject.tweenProps=null,this.eventObject=null,this.elementMetrics=null,this.group=null,this.keyframesRequiringDispatch=null;for(let e=0;e<this._allKeyframes.length;e++)this._allKeyframes[e].destroy();this._allKeyframes=null,this._activeKeyframes=null,this.attributes=null,this.keyframes=null,this.element=null,this.tweenProps=null,this.destroyed=!0,super.destroy()}remove(){return this.group.removeKeyframeController(this)}updateCachedValuesFromElement(){if(!this._ownerIsElement)return;const e=this.getTargetComputedStyle(!0);let t=new DOMMatrix(e.getPropertyValue("transform")),s=d(t),n=i.KeyframeDefaults.epsilon;["x","y","z"].forEach((e,t)=>{this.tweenProps[e]=new r(s.translation[t],n,!1,e)}),this.tweenProps.rotation=new r(s.rotation[2],n,!1,"rotation"),["rotationX","rotationY","rotationZ"].forEach((e,t)=>{this.tweenProps[e]=new r(s.rotation[t],n,!1,e)}),this.tweenProps.scale=new r(s.scale[0],n,!1,"scale"),["scaleX","scaleY","scaleZ"].forEach((e,t)=>{this.tweenProps[e]=new r(s.scale[t],n,!1,e)}),_.forEach(e=>{let t=isNaN(this.element[e])?0:this.element[e];this.tweenProps[e]=new r(t,n,!1,e,!1)})}addKeyframe(e){let t=h(e);if(!t)throw new Error("AnimSystem Cannot create keyframe for from options `"+e+"`");let s=new t(this,e);return s.parseOptions(e),s.id=this._allKeyframes.length,this._allKeyframes.push(s),s}needsUpdate(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e];if(this.tweenProps[t].needsUpdate())return!0}return!1}updateLocalProgress(e){for(let t=0,s=this.attributes.length;t<s;t++){let s=this.attributes[t],i=this.keyframes[this.attributes[t]];if(1===i.length){i[0].updateLocalProgress(e);continue}let r=this.getNearestKeyframeForAttribute(s,e);r&&r.updateLocalProgress(e)}}reconcile(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e],s=this.getNearestKeyframeForAttribute(t,this.group.position.local);s.updateLocalProgress(this.group.position.local),s.snapAtCreation&&s.reconcile(t)}}determineActiveKeyframes(e){e=e||l(Array.from(document.documentElement.classList));let t=this._activeKeyframes,s=this.attributes,i={};this._activeKeyframes=[],this.attributes=[],this.keyframes={};for(let t=0;t<this._allKeyframes.length;t++){let s=this._allKeyframes[t];if(s.markedForRemoval||s.hidden||!s.setEnabled(e))for(let e in s.animValues)this.tweenProps[e].isActive=s.preserveState,s.preserveState&&(i[e]=!0);else{this._activeKeyframes.push(s);for(let e in s.animValues)this.keyframes[e]=this.keyframes[e]||[],this.keyframes[e].push(s),-1===this.attributes.indexOf(e)&&(i[e]=!0,this.attributes.push(e),this.tweenProps[e].isActive=!0)}}this.attributes.forEach(e=>this.tweenProps[e].isActive=!0),this.cssAttributes=this.attributes.filter(e=>f.includes(e)||e.startsWith("--")).map(e=>this.tweenProps[e]),this.domAttributes=this.attributes.filter(e=>_.includes(e)).map(e=>this.tweenProps[e]);let r=t.filter(e=>-1===this._activeKeyframes.indexOf(e));if(0===r.length)return;let n=s.filter(e=>-1===this.attributes.indexOf(e)&&!i.hasOwnProperty(e));if(0!==n.length)if(this.needsWrite=!0,this._ownerIsElement)m.external(()=>{let e=n.some(e=>p.includes(e)),t=e&&Object.keys(i).some(e=>p.includes(e));e&&!t&&this.element.style.removeProperty("transform");for(let e=0,t=n.length;e<t;++e){let t=n[e],s=this.tweenProps[t],i=s.isActive?s.target:s.initialValue;s.current=s.target=i,!s.isActive&&f.includes(t)&&(this.element.style[t]=null)}for(let e=0,t=r.length;e<t;++e){let t=r[e];t instanceof o&&!t.preserveState&&t._unapply()}},!0);else for(let e=0,t=n.length;e<t;++e){let t=this.tweenProps[n[e]];t.current=t.target,t.isActive=!1}}onDOMRead(e){for(let t=0,s=this.attributes.length;t<s;t++){let s=this.attributes[t],i=this.getNearestKeyframeForAttribute(s,e);i&&i.onDOMRead(s)&&(this.needsWrite=!0)}}onDOMWrite(){(this.needsWrite||this.needsClassUpdate||this.needsStyleUpdate)&&(this.needsWrite=!1,this.onDOMWriteImp(),this.handleEventDispatch())}onDOMWriteForObject(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e];this.element[t]=this.tweenProps[t].current}}onDOMWriteForElement(e=this.element.style){this.handleStyleTransform(e);for(let t=0,s=this.cssAttributes.length;t<s;t++)this.cssAttributes[t].set(e);for(let e=0,t=this.domAttributes.length;e<t;e++)this.domAttributes[e].set(this.element);if(this.needsStyleUpdate){for(let e in this.tweenProps.targetStyles)null!==this.tweenProps.targetStyles[e]&&(this.element.style[e]=this.tweenProps.targetStyles[e]),this.tweenProps.targetStyles[e]=null;this.needsStyleUpdate=!1}this.needsClassUpdate&&(this.tweenProps.targetClasses.add.length>0&&this.element.classList.add.apply(this.element.classList,this.tweenProps.targetClasses.add),this.tweenProps.targetClasses.remove.length>0&&this.element.classList.remove.apply(this.element.classList,this.tweenProps.targetClasses.remove),this.tweenProps.targetClasses.add.length=0,this.tweenProps.targetClasses.remove.length=0,this.needsClassUpdate=!1)}handleStyleTransform(e=this.element.style){let t=this.tweenProps;if(t.z.isActive||t.rotationX.isActive||t.rotationY.isActive){const s=this.mat4;s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1;const i=t.x.current,r=t.y.current,n=t.z.current;if(s[12]=s[0]*i+s[4]*r+s[8]*n+s[12],s[13]=s[1]*i+s[5]*r+s[9]*n+s[13],s[14]=s[2]*i+s[6]*r+s[10]*n+s[14],s[15]=s[3]*i+s[7]*r+s[11]*n+s[15],0!==t.rotation.current||0!==t.rotationZ.current){const e=(t.rotation.current||t.rotationZ.current)*g;y.rotateZ(s,s,e)}if(0!==t.rotationX.current){const e=t.rotationX.current*g;y.rotateX(s,s,e)}if(0!==t.rotationY.current){const e=t.rotationY.current*g;y.rotateY(s,s,e)}1===t.scale.current&&1===t.scaleX.current&&1===t.scaleY.current||y.scale(s,s,[t.scale.current,t.scale.current,1]),e.transform="matrix3d("+s[0]+","+s[1]+","+s[2]+","+s[3]+","+s[4]+","+s[5]+","+s[6]+","+s[7]+","+s[8]+","+s[9]+","+s[10]+","+s[11]+","+s[12]+","+s[13]+","+s[14]+","+s[15]+")"}else if(t.x.isActive||t.y.isActive||t.rotation.isActive||t.rotationZ.isActive||t.scale.isActive||t.scaleX.isActive||t.scaleY.isActive){const s=this.mat2d;s[0]=1,s[1]=0,s[2]=0,s[3]=1,s[4]=0,s[5]=0;const i=t.x.current,r=t.y.current,n=s[0],a=s[1],o=s[2],h=s[3],l=s[4],c=s[5];if(s[0]=n,s[1]=a,s[2]=o,s[3]=h,s[4]=n*i+o*r+l,s[5]=a*i+h*r+c,0!==t.rotation.current||0!==t.rotationZ.current){const e=(t.rotation.current||t.rotationZ.current)*g,i=s[0],r=s[1],n=s[2],a=s[3],o=s[4],h=s[5],l=Math.sin(e),c=Math.cos(e);s[0]=i*c+n*l,s[1]=r*c+a*l,s[2]=i*-l+n*c,s[3]=r*-l+a*c,s[4]=o,s[5]=h}t.scaleX.isActive||t.scaleY.isActive?(s[0]=s[0]*t.scaleX.current,s[1]=s[1]*t.scaleX.current,s[2]=s[2]*t.scaleY.current,s[3]=s[3]*t.scaleY.current):(s[0]=s[0]*t.scale.current,s[1]=s[1]*t.scale.current,s[2]=s[2]*t.scale.current,s[3]=s[3]*t.scale.current),e.transform="matrix("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+")"}}handleEventDispatch(){if(0!==this.keyframesRequiringDispatch.length){for(let e=0,t=this.keyframesRequiringDispatch.length;e<t;e++){let t=this.keyframesRequiringDispatch[e];t.needsEventDispatch=!1,this.eventObject.keyframe=t,this.eventObject.pageMetrics=i.pageMetrics,this.eventObject.event=t.event,this.trigger(t.event,this.eventObject)}this.keyframesRequiringDispatch.length=0}if(0!==this._events.draw.length){this.eventObject.keyframe=null,this.eventObject.event="draw";for(let e=this._events.draw.length-1;e>=0;e--)this._events.draw[e](this.eventObject)}}updateAnimationConstraints(){for(let e=0,t=this._activeKeyframes.length;e<t;e++)this._activeKeyframes[e].evaluateConstraints();this.attributes.forEach(e=>{1!==this.keyframes[e].length&&this.keyframes[e].sort(i.KeyframeComparison)}),this.updateDeferredPropertyValues()}refreshMetrics(){let e=new Set([this.element]);this._allKeyframes.forEach(t=>t.anchors.forEach(t=>e.add(t))),this.group.metrics.refreshCollection(e),this.group.keyframesDirty=!0}getTargetComputedStyle(e=!1){return this._ownerIsElement?((e||void 0===this.group.computedStyleCache[this.uuid])&&(this.group.computedStyleCache[this.uuid]=getComputedStyle(this.element)),this.group.computedStyleCache[this.uuid]):null}updateDeferredPropertyValues(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e],s=this.keyframes[t];if(!(s[0].keyframeType>i.KeyframeTypes.InterpolationForward))for(let e=0,i=s.length;e<i;e++){let r=s[e];null===r.jsonProps[t][0]&&(0===e?r.jsonProps[t][0]=r.animValues[t][0]=this.tweenProps[t].current:r.animValues[t][0]=s[e-1].animValues[t][1]),null===r.jsonProps[t][1]&&(r.animValues[t][1]=e===i-1?this.tweenProps[t].current:s[e+1].animValues[t][0]),r.snapAtCreation&&(r.jsonProps[t][0]=r.animValues[t][0],r.jsonProps[t][1]=r.animValues[t][1])}}}getBounds(e){this.boundsMin=Number.MAX_VALUE,this.boundsMax=-Number.MAX_VALUE;for(let t=0,s=this.attributes.length;t<s;t++){let s=this.keyframes[this.attributes[t]];for(let t=0;t<s.length;t++){let i=s[t];this.boundsMin=Math.min(i.start,this.boundsMin),this.boundsMax=Math.max(i.end,this.boundsMax),e.min=Math.min(i.start,e.min),e.max=Math.max(i.end,e.max)}}}getNearestKeyframeForAttribute(e,t){t=void 0!==t?t:this.group.position.local;let s=null,i=Number.POSITIVE_INFINITY,r=this.keyframes[e];if(void 0===r)return null;let n=r.length;if(0===n)return null;if(1===n)return r[0];for(let e=0;e<n;e++){let n=r[e];if(n.isInRange(t)){s=n;break}let a=Math.min(Math.abs(t-n.start),Math.abs(t-n.end));a<i&&(i=a,s=n)}return s}getAllKeyframesForAttribute(e){return this.keyframes[e]}updateKeyframe(e,t){e.parseOptions(t),e.evaluateConstraints(),this.group.keyframesDirty=!0,m.update(()=>{this.trigger(i.EVENTS.ON_KEYFRAME_UPDATED,e),this.group.trigger(i.EVENTS.ON_KEYFRAME_UPDATED,e)},!0)}removeKeyframe(e){return e.controller!==this?Promise.resolve(null):(e.markedForRemoval=!0,this.group.keyframesDirty=!0,new Promise(t=>{this.group.rafEmitter.executor.eventEmitter.once("before:draw",()=>{t(e),e.destroy();let s=this._allKeyframes.indexOf(e);-1!==s&&this._allKeyframes.splice(s,1)})}))}updateAnimation(e,t){return this.group.gui&&console.warn("KeyframeController.updateAnimation(keyframe,props) has been deprecated. Please use updateKeyframe(keyframe,props)"),this.updateKeyframe(e,t)}}},{17:17,18:18,21:21,27:27,28:28,31:31,32:32,33:33,36:36,37:37,40:40,42:42,45:45,5:5,51:51,57:57,95:95,96:96,97:97,98:98,99:99}],30:[function(e,t,s){"use strict";const i=e(27),r=e(32),n=e(40);class a extends i{constructor(e,t){super(e,t),this.keyframeType=r.KeyframeTypes.Event,this.isApplied=!1,this.hasDuration=!1,this.isCurrentlyInRange=!1}parseOptions(e){e.x=void 0,e.y=void 0,e.scale=void 0,e.scaleX=void 0,e.scaleY=void 0,e.rotation=void 0,e.style=void 0,e.cssClass=void 0,e.rotation=void 0,e.opacity=void 0,e.hold=void 0,this.event=e.event,this.animValues[this.event]=[0,0],void 0===this.controller.tweenProps[this.event]&&(this.controller.tweenProps[this.event]=new n(0,1,!1,this.event)),super.parseOptions(e),this.keyframeType=r.KeyframeTypes.Event}updateLocalProgress(e){if(this.hasDuration){let t=this.isCurrentlyInRange,s=e>=this.start&&e<=this.end;if(t===s)return;return this.isCurrentlyInRange=s,void(s&&!t?this._trigger(this.event+":enter"):t&&!s&&this._trigger(this.event+":exit"))}!this.isApplied&&e>=this.start?(this.isApplied=!0,this._trigger(this.event)):this.isApplied&&e<this.start&&(this.isApplied=!1,this._trigger(this.event+":reverse"))}_trigger(e){this.controller.eventObject.event=e,this.controller.eventObject.keyframe=this,this.controller.trigger(e,this.controller.eventObject)}evaluateConstraints(){super.evaluateConstraints(),this.hasDuration=this.start!==this.end}reset(e){this.isApplied=!1,this.isCurrentlyInRange=!1,super.reset(e)}onDOMRead(e){}reconcile(e){}evaluateInterpolationConstraints(){}}a.DATA_ATTRIBUTE="data-anim-event",t.exports=a},{27:27,32:32,40:40}],31:[function(e,t,s){"use strict";const i=e(41);t.exports=class{constructor(e,t,s=!1){this.isGroup=s,this.group=e,this.controller=t,this.controllers=[],this.tweenProps=new i}}},{41:41}],32:[function(e,t,s){"use strict";const i={GUI_INSTANCE:null,ANIM_INSTANCE:null,VIEWPORT_EMITTER_ELEMENT:void 0,LOCAL_STORAGE_KEYS:{GuiPosition:"anim-ui.position",GroupCollapsedStates:"anim-ui.group-collapsed-states",scrollY:"anim-ui.scrollY-position",path:"anim-ui.path"},RESIZE_TIMEOUT:-1,BREAKPOINTS:[{name:"S",mediaQuery:"only screen and (max-width: 734px)"},{name:"M",mediaQuery:"only screen and (max-width: 1068px)"},{name:"L",mediaQuery:"only screen and (min-width: 1069px)"}],getBreakpoint:function(){for(let e=0;e<i.BREAKPOINTS.length;e++){let t=i.BREAKPOINTS[e];if(window.matchMedia(t.mediaQuery).matches)return t.name}},KeyframeDefaults:{ease:1,epsilon:.05,preserveState:!1,easeFunctionString:"linear",easeFunction:"linear",hold:!1,snapAtCreation:!1,toggle:!1,breakpointMask:"SMLX",event:"",disabledWhen:[],cssClass:""},KeyframeTypes:{Interpolation:0,InterpolationForward:1,CSSClass:2,Event:3},EVENTS:{ON_DOM_KEYFRAMES_CREATED:"ON_DOM_KEYFRAMES_CREATED",ON_DOM_GROUPS_CREATED:"ON_DOM_GROUPS_CREATED",ON_GROUP_CREATED:"ON_GROUP_CREATED",ON_KEYFRAME_UPDATED:"ON_KEYFRAME_UPDATED",ON_TIMELINE_START:"ON_TIMELINE_START",ON_TIMELINE_UPDATE:"ON_TIMELINE_UPDATE",ON_TIMELINE_COMPLETE:"ON_TIMELINE_COMPLETE",ON_CHAPTER_INITIATED:"ON_CHAPTER_INITIATED",ON_CHAPTER_OCCURRED:"ON_CHAPTER_OCCURRED",ON_CHAPTER_COMPLETED:"ON_CHAPTER_COMPLETED"},PageEvents:{ON_SCROLL:"ON_SCROLL",ON_RESIZE_IMMEDIATE:"ON_RESIZE_IMMEDIATE",ON_RESIZE_DEBOUNCED:"ON_RESIZE_DEBOUNCED",ON_BREAKPOINT_CHANGE:"ON_BREAKPOINT_CHANGE"},KeyframeJSONReservedWords:["event","cssClass","style","anchors","start","end","epsilon","easeFunction","ease","breakpointMask","disabledWhen"],TweenProps:e(41),TargetValue:e(40),CSSTargetValue:e(33),pageMetrics:new function(){this.scrollX=0,this.scrollY=0,this.windowWidth=0,this.windowHeight=0,this.documentOffsetX=0,this.documentOffsetY=0,this.previousBreakpoint="",this.breakpoint=""},KeyframeComparison:function(e,t){return e.start<t.start?-1:e.start>t.start?1:0}};t.exports=i},{33:33,40:40,41:41}],33:[function(e,t,s){"use strict";const i=e(40),r=e(52);t.exports=class extends i{constructor(e,t,s,i,n=!1,a){super(e,t,s,i=r(i),n,a)}set(e){let t=this.current;this.round&&(t=Math.round(t)),this.suffix&&(t+=this.suffix),e.setProperty(this.key,t)}}},{40:40,52:52}],34:[function(e,t,s){"use strict";t.exports=new class{constructor(){this.linear=function(e){return e},this.easeInQuad=function(e){return e*e},this.easeOutQuad=function(e){return e*(2-e)},this.easeInOutQuad=function(e){return e<.5?2*e*e:(4-2*e)*e-1},this.easeInSin=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},this.easeOutSin=function(e){return Math.sin(Math.PI/2*e)},this.easeInOutSin=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},this.easeInElastic=function(e){return 0===e?e:(.04-.04/e)*Math.sin(25*e)+1},this.easeOutElastic=function(e){return.04*e/--e*Math.sin(25*e)},this.easeInOutElastic=function(e){return(e-=.5)<0?(.02+.01/e)*Math.sin(50*e):(.02-.01/e)*Math.sin(50*e)+1},this.easeOutBack=function(e){return(e-=1)*e*(2.70158*e+1.70158)+1},this.easeInCubic=function(e){return e*e*e},this.easeOutCubic=function(e){return--e*e*e+1},this.easeInOutCubic=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},this.easeInQuart=function(e){return e*e*e*e},this.easeOutQuart=function(e){return 1- --e*e*e*e},this.easeInOutQuart=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},this.easeInQuint=function(e){return e*e*e*e*e},this.easeOutQuint=function(e){return 1+--e*e*e*e*e},this.easeInOutQuint=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}}},{}],35:[function(e,t,s){"use strict";const i=e(32),r=(e,t)=>null==e?t:e;class n{constructor(e){this.top=0,this.bottom=0,this.left=0,this.right=0,this.height=0,this.width=0}toString(){return"top:".concat(this.top,", bottom:").concat(this.bottom,", left:").concat(this.left,", right:").concat(this.right,", height:").concat(this.height,", width:").concat(this.width)}toObject(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right,height:this.height,width:this.width}}}t.exports=class{constructor(){this.clear()}clear(){this._metrics=new WeakMap}destroy(){this._metrics=null}add(e){let t=this._metrics.get(e);if(t)return t;let s=new n(e);return this._metrics.set(e,s),this._refreshMetrics(e,s)}get(e){return this._metrics.get(e)}refreshCollection(e){e.forEach(e=>this._refreshMetrics(e,null))}refreshMetrics(e){return this._refreshMetrics(e)}_refreshMetrics(e,t){if(t=t||this._metrics.get(e),!(e instanceof Element))return t.width=r(e.width,0),t.height=r(e.height,0),t.top=r(e.top,r(e.y,0)),t.left=r(e.left,r(e.x,0)),t.right=t.left+t.width,t.bottom=t.top+t.height,t;if(void 0===e.offsetWidth){let s=e.getBoundingClientRect();return t.width=s.width,t.height=s.height,t.top=i.pageMetrics.scrollY+s.top,t.left=i.pageMetrics.scrollX+s.left,t.right=t.left+t.width,t.bottom=t.top+t.height,t}t.width=e.offsetWidth,t.height=e.offsetHeight,t.top=i.pageMetrics.documentOffsetY,t.left=i.pageMetrics.documentOffsetX;let s=e;for(;s;)t.top+=s.offsetTop,t.left+=s.offsetLeft,s=s.offsetParent;return t.right=t.left+t.width,t.bottom=t.top+t.height,t}}},{32:32}],36:[function(e,t,s){"use strict";t.exports=class{constructor(e){this.controller=e,this.element=this.controller.element,this.keyframe=null,this.event="",this.tweenProps=this.controller.tweenProps}}},{}],37:[function(e,t,s){"use strict";const i=e(32),r=e(27),n=e(30),a=e(28),o=function(e){for(let t in e){let s=e[t];if(-1===i.KeyframeJSONReservedWords.indexOf(t)&&Array.isArray(s))return!0}return!1};t.exports=function(e){if(void 0!==e.cssClass||void 0!==e.style){if(o(e))throw"CSS Keyframes cannot tween values, please use multiple keyframes instead";return a}if(o(e))return r;if(e.event)return n;throw delete e.anchors,"Could not determine tween type based on ".concat(JSON.stringify(e))}},{27:27,28:28,30:30,32:32}],38:[function(e,t,s){"use strict";t.exports=class{constructor(){this.local=0,this.localUnclamped=0,this.lastPosition=0}}},{}],39:[function(e,t,s){"use strict";const{map:i}=e(90),r={};class n{constructor(e,t,s,i){this.mass=e,this.stiffness=t,this.damping=s,this.initialVelocity=i,this.m_w0=Math.sqrt(this.stiffness/this.mass),this.m_zeta=this.damping/(2*Math.sqrt(this.stiffness*this.mass)),this.m_zeta<1?(this.m_wd=this.m_w0*Math.sqrt(1-this.m_zeta*this.m_zeta),this.m_A=1,this.m_B=(this.m_zeta*this.m_w0-this.initialVelocity)/this.m_wd):(this.m_wd=0,this.m_A=1,this.m_B=-this.initialVelocity+this.m_w0)}solve(e){return 1-(e=this.m_zeta<1?Math.exp(-e*this.m_zeta*this.m_w0)*(this.m_A*Math.cos(this.m_wd*e)+this.m_B*Math.sin(this.m_wd*e)):(this.m_A+this.m_B*e)*Math.exp(-e*this.m_w0))}}const a=/\d*\.?\d+/g;n.fromCSSString=function(e){let t=e.match(a);if(4!==t.length)throw"SpringEasing could not convert ".concat(cssString," to spring params");let s=t.map(Number),o=new n(...s);const h=o.solve.bind(o);let l=0;let c=function(){if(r[e])return r[e];let t,s=0;for(;;){l+=1/6;if(1===h(l)){if(s++,s>=16){t=l*(1/6);break}}else s=0}return r[e]=t,r[e]}();return function(e){return 0===e||1===e?e:h(i(e,0,1,0,c))}},t.exports=n},{90:90}],40:[function(e,t,s){"use strict";t.exports=class{constructor(e,t,s,i,r=!1,n){this.epsilon=parseFloat(t),this.snapAtCreation=s,this.initialValue=e,this.target=e,this.current=e,this.previousValue=e,this.isActive=!1,this.key=i,this.round=r,this.suffix=n}update(e,t,s){this.target=e[0]+t*(e[1]-e[0]),this.previousValue=this.current,this.current+=(this.target-this.current)*s;let i=this.delta(this.current,this.target);return i<this.epsilon&&(this.current=this.target,i=0),i>this.epsilon||0===i&&this.previousValue!==this.current}reconcile(e,t){return this.initialValue=e[0],this.update(e,t,1)}needsUpdate(){return this.delta(this.current,this.target)>this.epsilon}delta(e,t){return Math.abs(e-t)}calculateEpsilon(e,t){if(e.epsilon)return void(this.epsilon=e.epsilon);let s=this.delta(t[0],t[1]),i=Math.min(.001*s,this.epsilon,.05);this.epsilon=Math.max(i,.001)}set(e){let t=this.current;this.round&&(t=Math.round(t)),this.suffix&&(t+=this.suffix),e[this.key]=t}}},{}],41:[function(e,t,s){"use strict";t.exports=class{}},{}],42:[function(e,t,s){"use strict";t.exports=()=>Math.random().toString(16).slice(-4)},{}],43:[function(e,t,s){"use strict";const i=Math.abs;class r{constructor(e,t,s,i){this.cp=new Float32Array(6),this.cp[0]=3*e,this.cp[1]=3*(s-e)-this.cp[0],this.cp[2]=1-this.cp[0]-this.cp[1],this.cp[3]=3*t,this.cp[4]=3*(i-t)-this.cp[3],this.cp[5]=1-this.cp[3]-this.cp[4]}sampleCurveX(e){return((this.cp[2]*e+this.cp[1])*e+this.cp[0])*e}sampleCurveY(e){return((this.cp[5]*e+this.cp[4])*e+this.cp[3])*e}sampleCurveDerivativeX(e){return(3*this.cp[2]*e+2*this.cp[1])*e+this.cp[0]}solveCurveX(e){var t,s,r,n,a,o;for(r=e,o=0;o<5;o++){if(n=this.sampleCurveX(r)-e,i(n)<1e-5)return r;if(a=this.sampleCurveDerivativeX(r),i(a)<1e-5)break;r-=n/a}if((r=e)<(t=0))return t;if(r>(s=1))return s;for(;t<s;){if(n=this.sampleCurveX(r),i(n-e)<1e-5)return r;e>n?t=r:s=r,r=.5*(s-t)+t}return r}solve(e){return this.sampleCurveY(this.solveCurveX(e))}}const n=/\d*\.?\d+/g;r.fromCSSString=function(e){let t=e.match(n);if(4!==t.length)throw"UnitBezier could not convert ".concat(e," to cubic-bezier");let s=t.map(Number),i=new r(s[0],s[1],s[2],s[3]);return i.solve.bind(i)},t.exports=r},{}],44:[function(e,t,s){"use strict";t.exports=class{constructor(e,t){this.a=e.top-t,this.a<0&&(this.a=e.top),this.b=e.top,this.d=e.bottom,this.c=Math.max(this.d-t,this.b)}}},{}],45:[function(e,t,s){"use strict";let i=["borderRadius","bottom","fontSize","fontWeight","height","left","lineHeight","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","opacity","paddingBottom","paddingLeft","paddingRight","paddingTop","right","top","width","zIndex","color","background-color","fill","stroke","strokeDashoffset"];i.push(...i.map(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())));t.exports={transformAttributes:["x","y","z","scale","scaleX","scaleY","rotation","rotationX","rotationY","rotationZ"],cssAttributes:i,domAttributes:["currentTime","scrollLeft","scrollTop"]}},{}],46:[function(e,t,s){"use strict";const i=e(47),r=new(e(35));class n{constructor(e){this.group=e,this.data={target:null,anchors:null,metrics:this.group.metrics}}parseArray(e,t){return[this.parseExpression(e,t[0]),this.parseExpression(e,t[1])]}parseExpression(e,t){if(!t)return null;if("number"==typeof t)return t;if("string"!=typeof t)throw"Expression must be a string, received ".concat(typeof t,": ").concat(t);return this.data.target=e.controller.element,this.data.anchors=e.anchors,this.data.keyframe=e.keyframe,this.group.anim.plugins.parser.reduce((s,i)=>s||i.parseExpression.call(this,e,t),null)||n._parse(t,this.data)}parseTimeValue(e,t){if("number"==typeof t)return t;let s=this.group.expressionParser.parseExpression(e,t);return this.group.convertScrollPositionToTValue(s)}destroy(){this.group=null}static parse(e,t){return(t=t||{})&&(r.clear(),t.target&&r.add(t.target),t.anchors&&t.anchors.forEach(e=>r.add(e))),t.metrics=r,n._parse(e,t)}static _parse(e,t){return i.Parse(e).execute(t)}}n.programs=i.programs,"undefined"!=typeof window&&(window.ExpressionParser=n),t.exports=n},{35:35,47:47}],47:[function(e,t,s){"use strict";const i=e(32),r=e(90),n={},a={smoothstep:(e,t,s)=>(s=a.clamp((s-e)/(t-e),0,1))*s*(3-2*s),deg:e=>180*e/Math.PI,rad:e=>e*Math.PI/180,random:(e,t)=>Math.random()*(t-e)+e,atan:Math.atan2};Object.getOwnPropertyNames(Math).forEach(e=>a[e]?null:a[e.toLowerCase()]=Math[e]),Object.getOwnPropertyNames(r).forEach(e=>a[e]?null:a[e.toLowerCase()]=r[e]);let o=null;const h="a",l="ALPHA",c="(",u=")",d="PLUS",m="MINUS",p="MUL",f="DIV",_="INTEGER_CONST",g="FLOAT_CONST",y=",",v="EOF",E={NUMBERS:/\d|\d\.\d/,DIGIT:/\d/,OPERATOR:/[-+*/]/,PAREN:/[()]/,WHITE_SPACE:/\s/,ALPHA:/[a-zA-Z]|%/,ALPHANUMERIC:/[a-zA-Z0-9]/,OBJECT_UNIT:/^(t|l|b|r|%w|%h|%|h|w)$/,GLOBAL_METRICS_UNIT:/^(px|vh|vw)$/,ANY_UNIT:/^(t|l|b|r|%w|%h|%|h|w|px|vh|vw)$/,MATH_FUNCTION:new RegExp("\\b(".concat(Object.keys(a).join("|"),")\\b"),"i")},b=function(e,t,s,i=""){let r=t.slice(Math.max(s,0),Math.min(t.length,s+3)),n=new Error("Expression Error. ".concat(e,' in expression "').concat(t,'", near "').concat(r,'"'));throw console.error(n.message,o?o.keyframe||o.target:""),n},w={round:1,clamp:3,lerp:3,random:2,atan:2,floor:1,ceil:1,abs:1,cos:1,sin:1,smoothstep:3,rad:1,deg:1,pow:2,calc:1};class A{constructor(e,t){this.type=e,this.value=t}}A.ONE=new A("100",100),A.EOF=new A(v,null);class P{constructor(e){this.type=e}}class T extends P{constructor(e,t){super("UnaryOp"),this.token=this.op=e,this.expr=t}}class x extends P{constructor(e,t,s){super("BinOp"),this.left=e,this.op=t,this.right=s}}class C extends P{constructor(e,t){if(super("MathOp"),this.op=e,this.list=t,w[e.value]&&t.length!==w[e.value])throw new Error("Incorrect number of arguments for '".concat(e.value,"'. Received ").concat(t.length,", expected ").concat(w[e.value]))}}class S extends P{constructor(e){super("Num"),this.token=e,this.value=e.value}}class O extends P{constructor(e,t,s){super("RefValue"),this.num=e,this.ref=t,this.unit=s}}class M extends P{constructor(e,t){super("CSSValue"),this.ref=e,this.propertyName=t}}class I extends P{constructor(e,t){super("PropValue"),this.ref=e,this.propertyName=t}}class k{constructor(e){let t;for(this.text=e,this.pos=0,this.char=this.text[this.pos],this.tokens=[];(t=this.getNextToken())&&t!==A.EOF;)this.tokens.push(t);this.tokens.push(t)}advance(){this.char=this.text[++this.pos]}skipWhiteSpace(){for(;null!=this.char&&E.WHITE_SPACE.test(this.char);)this.advance()}name(){let e="";for(;null!=this.char&&E.ALPHA.test(this.char);)e+=this.char,this.advance();return new A(l,e)}number(){let e="";for("."===this.char&&(e+=this.char,this.advance());null!=this.char&&E.DIGIT.test(this.char);)e+=this.char,this.advance();if(null!=this.char&&"."===this.char)for(e.includes(".")&&b("Number appears to contain 2 decimal points",this.text,this.pos),e+=this.char,this.advance();null!=this.char&&E.DIGIT.test(this.char);)e+=this.char,this.advance();return"."===e&&b("Attempted to parse a number, but found only a decimal point",this.text,this.pos),e.includes(".")?new A(g,parseFloat(e)):new A(_,parseInt(e))}getNextToken(){for(;null!=this.char;)if(E.WHITE_SPACE.test(this.char))this.skipWhiteSpace();else{if("."===this.char||E.DIGIT.test(this.char))return this.number();if(","===this.char)return this.advance(),new A(y,",");if(E.OPERATOR.test(this.char)){let e="",t=this.char;switch(t){case"+":e=d;break;case"-":e=m;break;case"*":e=p;break;case"/":e=f}return this.advance(),new A(e,t)}if(E.PAREN.test(this.char)){let e="",t=this.char;switch(t){case"(":e=c;break;case")":e=u}return this.advance(),new A(e,t)}if(E.ALPHA.test(this.char))return this.name();b('Unexpected character "'.concat(this.char,'"'),this.text,this.pos)}return A.EOF}}class D{constructor(e){this.lexer=e,this.pos=0}get currentToken(){return this.lexer.tokens[this.pos]}error(e,t=""){b(e,t,this.lexer.text,this.pos)}consume(e){let t=this.currentToken;return t.type===e?this.pos+=1:this.error("Invalid token ".concat(this.currentToken.value,", expected ").concat(e)),t}consumeList(e){e.includes(this.currentToken)?this.pos+=1:this.error("Invalid token ".concat(this.currentToken.value,", expected ").concat(tokenType))}expr(){let e=this.term();for(;this.currentToken.type===d||this.currentToken.type===m;){const t=this.currentToken;switch(t.value){case"+":this.consume(d);break;case"-":this.consume(m)}e=new x(e,t,this.term())}return e}term(){let e=this.factor();for(;this.currentToken.type===p||this.currentToken.type===f;){const t=this.currentToken;switch(t.value){case"*":this.consume(p);break;case"/":this.consume(f)}e=new x(e,t,this.factor())}return e}factor(){if(this.currentToken.type===d)return new T(this.consume(d),this.factor());if(this.currentToken.type===m)return new T(this.consume(m),this.factor());if(this.currentToken.type===_||this.currentToken.type===g){let e=new S(this.currentToken);if(this.pos+=1,E.OPERATOR.test(this.currentToken.value)||this.currentToken.type===u||this.currentToken.type===y||this.currentToken.type===v)return e;if(this.currentToken.type===l&&this.currentToken.value===h)return this.consume(l),new O(e,this.anchorIndex(),this.unit(E.ANY_UNIT));if(this.currentToken.type===l)return"%a"===this.currentToken.value&&this.error("%a is invalid, try removing the %"),new O(e,null,this.unit());this.error("Expected a scaling unit type","Such as 'h' / 'w'")}else{if(E.OBJECT_UNIT.test(this.currentToken.value))return new O(new S(A.ONE),null,this.unit());if(this.currentToken.value===h){this.consume(l);const e=this.anchorIndex();if(E.OBJECT_UNIT.test(this.currentToken.value))return new O(new S(A.ONE),e,this.unit())}else if(this.currentToken.type===l){if("calc"===this.currentToken.value)return this.consume(l),this.expr();if("css"===this.currentToken.value||"var"===this.currentToken.value||"prop"===this.currentToken.value){const e="prop"!==this.currentToken.value?M:I;this.consume(l),this.consume(c);const t=this.propertyName();let s=null;return this.currentToken.type===y&&(this.consume(y),this.consume(l),s=this.anchorIndex()),this.consume(u),new e(s,t)}if(E.MATH_FUNCTION.test(this.currentToken.value)){const e=this.currentToken.value.toLowerCase();if("number"==typeof a[e])return this.consume(l),new S(new A(l,a[e]));const t=A[e]||new A(e,e),s=[];this.consume(l),this.consume(c);let i=null;do{this.currentToken.value===y&&this.consume(y),i=this.expr(),s.push(i)}while(this.currentToken.value===y);return this.consume(u),new C(t,s)}}else if(this.currentToken.type===c){this.consume(c);let e=this.expr();return this.consume(u),e}}this.error("Unexpected token ".concat(this.currentToken.value))}propertyName(){let e="";for(;this.currentToken.type===l||this.currentToken.type===m;)e+=this.currentToken.value,this.pos+=1;return e}unit(e=E.ANY_UNIT){const t=this.currentToken;if(t.type===l&&e.test(t.value))return this.consume(l),new A(l,t.value=t.value.replace(/%(h|w)/,"$1").replace("%","h"));this.error("Expected unit type")}anchorIndex(){const e=this.currentToken;if(e.type===_)return this.consume(_),new S(e);this.error("Invalid anchor reference",". Should be something like a0, a1, a2")}parse(){const e=this.expr();return this.currentToken!==A.EOF&&this.error("Unexpected token ".concat(this.currentToken.value)),e}}class R{constructor(e){this.parser=e,this.root=e.parse()}visit(e){let t=this[e.type];if(!t)throw new Error("No visit method named, ".concat(t));return t.call(this,e)}BinOp(e){switch(e.op.type){case d:return this.visit(e.left)+this.visit(e.right);case m:return this.visit(e.left)-this.visit(e.right);case p:return this.visit(e.left)*this.visit(e.right);case f:return this.visit(e.left)/this.visit(e.right)}}RefValue(e){let t=this.unwrapReference(e),s=e.unit.value,r=e.num.value;const n=o.metrics.get(t);switch(s){case"h":return.01*r*n.height;case"t":return.01*r*n.top;case"vh":return.01*r*i.pageMetrics.windowHeight;case"vw":return.01*r*i.pageMetrics.windowWidth;case"px":return r;case"w":return.01*r*n.width;case"b":return.01*r*n.bottom;case"l":return.01*r*n.left;case"r":return.01*r*n.right}}PropValue(e){return(null===e.ref?o.target:o.anchors[e.ref.value])[e.propertyName]}CSSValue(e){let t=this.unwrapReference(e);const s=getComputedStyle(t).getPropertyValue(e.propertyName);return""===s?0:R.Parse(s).execute(o)}Num(e){return e.value}UnaryOp(e){return e.op.type===d?+this.visit(e.expr):e.op.type===m?-this.visit(e.expr):void 0}MathOp(e){let t=e.list.map(e=>this.visit(e));return a[e.op.value].apply(null,t)}unwrapReference(e){return null===e.ref?o.target:(e.ref.value>=o.anchors.length&&console.error("Not enough anchors supplied for expression ".concat(this.parser.lexer.text),o.target),o.anchors[e.ref.value])}execute(e){return o=e,this.visit(this.root)}static Parse(e){return n[e]||(n[e]=new R(new D(new k(e))))}}R.programs=n,t.exports=R},{32:32,90:90}],48:[function(e,t,s){"use strict";const i=e(5).EventEmitterMicro,r=e(90),n=e(51),a=e(32),o=e(31),h=e(38),l=e(44),c=e(35),u=e(46),d=e(29),m={};"undefined"!=typeof window&&(m.create=e(11),m.update=e(21),m.draw=e(17));let p=0;t.exports=class extends i{constructor(e,t){super(),this.anim=t,this.element=e,this.name=this.name||e.getAttribute("data-anim-scroll-group"),this.isEnabled=!0,this.position=new h,this.metrics=new c,this.metrics.add(this.element),this.expressionParser=new u(this),this.boundsMin=0,this.boundsMax=0,this.timelineUpdateRequired=!1,this._keyframesDirty=!1,this.viewableRange=this.createViewableRange(),this.defaultEase=a.KeyframeDefaults.ease,this.keyframeControllers=[],this.updateProgress(this.getPosition()),this.onDOMRead=this.onDOMRead.bind(this),this.onDOMWrite=this.onDOMWrite.bind(this),this.gui=null,this.computedStyleCache={},this.finalizeInit()}finalizeInit(){this.element._animInfo=new o(this,null,!0),this.setupRAFEmitter()}destroy(){this.destroyed=!0,this.expressionParser.destroy(),this.expressionParser=null;for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].destroy();this.keyframeControllers=null,this.position=null,this.viewableRange=null,this.gui&&(this.gui.destroy(),this.gui=null),this.metrics.destroy(),this.metrics=null,this.rafEmitter.destroy(),this.rafEmitter=null,this.anim=null,this.element._animInfo&&this.element._animInfo.group===this&&(this.element._animInfo.group=null,this.element._animInfo=null),this.element=null,this.isEnabled=!1,super.destroy()}removeKeyframeController(e){return this.keyframeControllers.includes(e)?(e._allKeyframes.forEach(e=>e.markedForRemoval=!0),this.keyframesDirty=!0,new Promise(t=>{m.draw(()=>{const s=this.keyframeControllers.indexOf(e);-1!==s?(this.keyframeControllers.splice(s,1),e.onDOMWrite(),e.destroy(),this.gui&&this.gui.create(),t()):t()})})):Promise.resolve()}remove(){return this.anim.removeGroup(this)}clear(){return Promise.all(this.keyframeControllers.map(e=>this.removeKeyframeController(e)))}setupRAFEmitter(e){this.rafEmitter&&this.rafEmitter.destroy(),this.rafEmitter=e||new m.create,this.rafEmitter.on("update",this.onDOMRead),this.rafEmitter.on("draw",this.onDOMWrite),this.rafEmitter.once("external",()=>this.reconcile())}requestDOMChange(){return!!this.isEnabled&&this.rafEmitter.run()}onDOMRead(){this.keyframesDirty&&this.onKeyframesDirty();for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].onDOMRead(this.position.local)}onDOMWrite(){for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].onDOMWrite();this.needsUpdate()&&this.requestDOMChange(),this.computedStyleCache={}}needsUpdate(){if(this._keyframesDirty)return!0;for(let e=0,t=this.keyframeControllers.length;e<t;e++)if(this.keyframeControllers[e].needsUpdate())return!0;return!1}addKeyframe(e,t){let s=this.getControllerForTarget(e);return null===s&&(s=new d(this,e),this.keyframeControllers.push(s)),this.keyframesDirty=!0,s.addKeyframe(t)}addEvent(e,t){t.event=t.event||"Generic-Event-Name-"+p++;let s=void 0!==t.end&&t.end!==t.start;const i=this.addKeyframe(e,t);return s?(t.onEnterOnce&&i.controller.once(t.event+":enter",t.onEnterOnce),t.onExitOnce&&i.controller.once(t.event+":exit",t.onExitOnce),t.onEnter&&i.controller.on(t.event+":enter",t.onEnter),t.onExit&&i.controller.on(t.event+":exit",t.onExit)):(t.onEventOnce&&i.controller.once(t.event,t.onEventOnce),t.onEventReverseOnce&&i.controller.once(t.event+":reverse",t.onEventReverseOnce),t.onEvent&&i.controller.on(t.event,t.onEvent),t.onEventReverse&&i.controller.on(t.event+":reverse",t.onEventReverse)),i}forceUpdate({waitForNextUpdate:e=!0,silent:t=!1}={}){this.isEnabled&&(this.refreshMetrics(),this.timelineUpdateRequired=!0,e?this.keyframesDirty=!0:this.onKeyframesDirty({silent:t}))}onKeyframesDirty({silent:e=!1}={}){this.determineActiveKeyframes(),this.keyframesDirty=!1,this.metrics.refreshMetrics(this.element),this.viewableRange=this.createViewableRange();for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].updateAnimationConstraints();this.updateBounds(),this.updateProgress(this.getPosition()),e||this.updateTimeline(),this.gui&&this.gui.create()}refreshMetrics(){let e=new Set([this.element]);this.keyframeControllers.forEach(t=>{e.add(t.element),t._allKeyframes.forEach(t=>t.anchors.forEach(t=>e.add(t)))}),this.metrics.refreshCollection(e),this.viewableRange=this.createViewableRange()}reconcile(){for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].reconcile()}determineActiveKeyframes(e){e=e||n(Array.from(document.documentElement.classList));for(let t=0,s=this.keyframeControllers.length;t<s;t++)this.keyframeControllers[t].determineActiveKeyframes(e)}updateBounds(){if(0===this.keyframeControllers.length)return this.boundsMin=0,void(this.boundsMax=0);let e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(let t=0,s=this.keyframeControllers.length;t<s;t++)this.keyframeControllers[t].getBounds(e);let t=this.convertTValueToScrollPosition(e.min),s=this.convertTValueToScrollPosition(e.max);s-t<a.pageMetrics.windowHeight?(e.min=this.convertScrollPositionToTValue(t-.5*a.pageMetrics.windowHeight),e.max=this.convertScrollPositionToTValue(s+.5*a.pageMetrics.windowHeight)):(e.min-=.001,e.max+=.001),this.boundsMin=e.min,this.boundsMax=e.max,this.timelineUpdateRequired=!0}createViewableRange(){return new l(this.metrics.get(this.element),a.pageMetrics.windowHeight)}_onBreakpointChange(e,t){this.keyframesDirty=!0,this.determineActiveKeyframes()}updateProgress(e){this.hasDuration()?(this.position.localUnclamped=(e-this.viewableRange.a)/(this.viewableRange.d-this.viewableRange.a),this.position.local=r.clamp(this.position.localUnclamped,this.boundsMin,this.boundsMax)):this.position.local=this.position.localUnclamped=0}performTimelineDispatch(){for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].updateLocalProgress(this.position.local);this.trigger(a.EVENTS.ON_TIMELINE_UPDATE,this.position.local),this.trigger("update",this.position.local),this.timelineUpdateRequired=!1,this.position.lastPosition!==this.position.local&&(this.position.lastPosition<=this.boundsMin&&this.position.localUnclamped>this.boundsMin?(this.trigger(a.EVENTS.ON_TIMELINE_START,this),this.trigger("start",this)):this.position.lastPosition>=this.boundsMin&&this.position.localUnclamped<this.boundsMin?(this.trigger(a.EVENTS.ON_TIMELINE_START+":reverse",this),this.trigger("start:reverse",this)):this.position.lastPosition<=this.boundsMax&&this.position.localUnclamped>=this.boundsMax?(this.trigger(a.EVENTS.ON_TIMELINE_COMPLETE,this),this.trigger("complete",this)):this.position.lastPosition>=this.boundsMax&&this.position.localUnclamped<this.boundsMax&&(this.trigger(a.EVENTS.ON_TIMELINE_COMPLETE+":reverse",this),this.trigger("complete:reverse",this))),null!==this.gui&&this.gui.onScrollUpdate(this.position)}updateTimeline(e){if(!this.isEnabled)return!1;void 0===e&&(e=this.getPosition()),this.updateProgress(e);let t=this.position.lastPosition===this.boundsMin||this.position.lastPosition===this.boundsMax,s=this.position.localUnclamped===this.boundsMin||this.position.localUnclamped===this.boundsMax;if(!this.timelineUpdateRequired&&t&&s&&this.position.lastPosition===e)return void(this.position.local=this.position.localUnclamped);if(this.timelineUpdateRequired||this.position.localUnclamped>this.boundsMin&&this.position.localUnclamped<this.boundsMax)return this.performTimelineDispatch(),this.requestDOMChange(),void(this.position.lastPosition=this.position.localUnclamped);let i=this.position.lastPosition>this.boundsMin&&this.position.lastPosition<this.boundsMax,r=this.position.localUnclamped<=this.boundsMin||this.position.localUnclamped>=this.boundsMax;if(i&&r)return this.performTimelineDispatch(),this.requestDOMChange(),void(this.position.lastPosition=this.position.localUnclamped);const n=this.position.lastPosition<this.boundsMin&&this.position.localUnclamped>this.boundsMax,a=this.position.lastPosition>this.boundsMax&&this.position.localUnclamped<this.boundsMax;(n||a)&&(this.performTimelineDispatch(),this.requestDOMChange(),this.position.lastPosition=this.position.localUnclamped),null!==this.gui&&this.gui.onScrollUpdate(this.position)}_onScroll(e){this.updateTimeline(e)}convertScrollPositionToTValue(e){return this.hasDuration()?r.map(e,this.viewableRange.a,this.viewableRange.d,0,1):0}convertTValueToScrollPosition(e){return this.hasDuration()?r.map(e,0,1,this.viewableRange.a,this.viewableRange.d):0}hasDuration(){return this.viewableRange.a!==this.viewableRange.d}getPosition(){return a.pageMetrics.scrollY}getControllerForTarget(e){if(!e._animInfo||!e._animInfo.controllers)return null;if(e._animInfo.controller&&e._animInfo.controller.group===this)return e._animInfo.controller;const t=e._animInfo.controllers;for(let e=0,s=t.length;e<s;e++)if(t[e].group===this)return t[e];return null}trigger(e,t){if(void 0!==this._events[e])for(let s=this._events[e].length-1;s>=0;s--)void 0!==t?this._events[e][s](t):this._events[e][s]()}set keyframesDirty(e){this._keyframesDirty=e,this._keyframesDirty&&this.requestDOMChange()}get keyframesDirty(){return this._keyframesDirty}}},{11:11,17:17,21:21,29:29,31:31,32:32,35:35,38:38,44:44,46:46,5:5,51:51,90:90}],49:[function(e,t,s){"use strict";const i=e(48),r=e(26),n=e(90);let a=0;const o={};"undefined"!=typeof window&&(o.create=e(11));class h extends i{constructor(e,t){e||((e=document.createElement("div")).className="TimeGroup-"+a++),super(e,t),this.name=this.name||e.getAttribute("data-anim-time-group"),this._isPaused=!0,this._repeats=0,this._isReversed=!1,this._timeScale=1,this._chapterPlayer=new r(this),this.now=performance.now()}finalizeInit(){if(!this.anim)throw"TimeGroup not instantiated correctly. Please use `AnimSystem.createTimeGroup(el)`";this.onPlayTimeUpdate=this.onPlayTimeUpdate.bind(this),super.finalizeInit()}progress(e){if(void 0===e)return 0===this.boundsMax?0:this.position.local/this.boundsMax;let t=e*this.boundsMax;this.timelineUpdateRequired=!0,this.updateTimeline(t)}time(e){if(void 0===e)return this.position.local;e=n.clamp(e,this.boundsMin,this.duration),this.timelineUpdateRequired=!0,this.updateTimeline(e)}play(e){this.reversed(!1),this.isEnabled=!0,this._isPaused=!1,this.time(e),this.now=performance.now(),this._playheadEmitter.run()}reverse(e){this.reversed(!0),this.isEnabled=!0,this._isPaused=!1,this.time(e),this.now=performance.now(),this._playheadEmitter.run()}reversed(e){if(void 0===e)return this._isReversed;this._isReversed=e}restart(){this._isReversed?(this.progress(1),this.reverse(this.time())):(this.progress(0),this.play(this.time()))}pause(e){this.time(e),this._isPaused=!0}paused(e){return void 0===e?this._isPaused:(this._isPaused=e,this._isPaused||this.play(),this)}onPlayTimeUpdate(){if(this._isPaused)return;let e=performance.now(),t=(e-this.now)/1e3;this.now=e,this._isReversed&&(t=-t);let s=this.time()+t*this._timeScale;if(this._repeats===h.REPEAT_FOREVER||this._repeats>0){let e=!1;!this._isReversed&&s>this.boundsMax?(s-=this.boundsMax,e=!0):this._isReversed&&s<0&&(s=this.boundsMax+s,e=!0),e&&(this._repeats=this._repeats===h.REPEAT_FOREVER?h.REPEAT_FOREVER:this._repeats-1)}this.time(s);let i=!this._isReversed&&this.position.local!==this.duration,r=this._isReversed&&0!==this.position.local;i||r?this._playheadEmitter.run():this.paused(!0)}updateProgress(e){this.hasDuration()?(this.position.localUnclamped=e,this.position.local=n.clamp(this.position.localUnclamped,this.boundsMin,this.boundsMax)):this.position.local=this.position.localUnclamped=0}updateBounds(){if(0===this.keyframeControllers.length)return this.boundsMin=0,void(this.boundsMax=0);let e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(let t=0,s=this.keyframeControllers.length;t<s;t++)this.keyframeControllers[t].getBounds(e);this.boundsMin=0,this.boundsMax=e.max,this.viewableRange.a=this.viewableRange.b=0,this.viewableRange.c=this.viewableRange.d=this.boundsMax,this.timelineUpdateRequired=!0}setupRAFEmitter(e){this._playheadEmitter=new o.create,this._playheadEmitter.on("update",this.onPlayTimeUpdate),super.setupRAFEmitter(e)}get duration(){return this.keyframesDirty&&this.onKeyframesDirty({silent:!0}),this.boundsMax}timeScale(e){return void 0===e?this._timeScale:(this._timeScale=e,this)}repeats(e){if(void 0===e)return this._repeats;this._repeats=e}getPosition(){return this.position.local}addChapter(e){return this._chapterPlayer.addChapter(e)}playToChapter(e){this._chapterPlayer.playToChapter(e)}convertScrollPositionToTValue(e){return e}convertTValueToScrollPosition(e){return e}hasDuration(){return this.duration>0}destroy(){this._playheadEmitter.destroy(),this._playheadEmitter=null,super.destroy()}get timelineProgress(){return this.progress()}set timelineProgress(e){this.progress(e)}get progressValue(){return this.progress()}set progressValue(e){this.progress(e)}get timeValue(){return this.time()}set timeValue(e){this.time(e)}}h.REPEAT_FOREVER=-1,t.exports=h},{11:11,26:26,48:48,90:90}],50:[function(e,t,s){"use strict";const i=e(48),r=(e(26),e(90));let n=0;const a={};"undefined"!=typeof window&&(a.create=e(11));t.exports=class extends i{constructor(e,t){e||((e=document.createElement("div")).className="TweenGroup-"+n++),super(e,t),this.name="Tweens",this.keyframes=[],this._isPaused=!1,this.now=performance.now()}finalizeInit(){this.onTimeEmitterUpdate=this.onTimeEmitterUpdate.bind(this),this.removeExpiredKeyframeControllers=this.removeExpiredKeyframeControllers.bind(this),super.finalizeInit()}destroy(){this._timeEmitter.destroy(),this._timeEmitter=null,this._keyframes=[],super.destroy()}setupRAFEmitter(e){this.now=performance.now(),this._timeEmitter=new a.create,this._timeEmitter.on("update",this.onTimeEmitterUpdate),this._timeEmitter.run(),super.setupRAFEmitter(e)}addKeyframe(e,t){if(void 0!==t.start||void 0!==t.end)throw Error("Tweens do not have a start or end, they can only have a duration. Consider using a TimeGroup instead");if("number"!=typeof t.duration)throw Error("Tween options.duration is undefined, or is not a number");let s,i;t.start=(t.delay||0)+this.position.localUnclamped,t.end=t.start+t.duration,t.preserveState=!0,t.snapAtCreation=!0,e._animInfo&&(s=e._animInfo.group,i=e._animInfo.controller);let r=super.addKeyframe(e,t);return e._animInfo.group=s,e._animInfo.controller=i,t.onStart&&r.controller.once("draw",e=>{e.keyframe=r,t.onStart(e),e.keyframe=null}),t.onDraw&&r.controller.on("draw",e=>{e.keyframe=r,t.onDraw(e),e.keyframe=null}),this.removeOverlappingProps(r),this.keyframes.push(r),this._timeEmitter.willRun()||(this.now=performance.now(),this._timeEmitter.run()),r}removeOverlappingProps(e){if(e.controller._allKeyframes.length<=1)return;let t=Object.keys(e.animValues),s=e.controller;for(let i=0,r=s._allKeyframes.length;i<r;i++){const r=s._allKeyframes[i];if(r===e)continue;if(r.markedForRemoval)continue;let n=Object.keys(r.animValues),a=n.filter(e=>t.includes(e));a.length!==n.length?a.forEach(e=>delete r.animValues[e]):r.markedForRemoval=!0}}onTimeEmitterUpdate(e){if(this._isPaused||0===this.keyframeControllers.length)return;let t=performance.now(),s=(t-this.now)/1e3;this.now=t;let i=this.position.local+s;this.position.local=this.position.localUnclamped=i,this.onTimeUpdate()}onTimeUpdate(){for(let e=0,t=this.keyframes.length;e<t;e++)this.keyframes[e].updateLocalProgress(this.position.localUnclamped);this.requestDOMChange(),this._timeEmitter.run(),null!==this.gui&&this.gui.onScrollUpdate(this.position)}onDOMRead(){if(this.keyframesDirty&&this.onKeyframesDirty(),0!==this.keyframes.length)for(let e=0,t=this.keyframes.length;e<t;e++){this.keyframes[e].controller.needsWrite=!0;for(let t in this.keyframes[e].animValues)this.keyframes[e].onDOMRead(t)}}onDOMWrite(){super.onDOMWrite(),this.removeExpiredKeyframes()}removeExpiredKeyframes(){let e=this.keyframes.length,t=e;for(;e--;){let t=this.keyframes[e];t.destroyed?this.keyframes.splice(e,1):(t.markedForRemoval&&(t.jsonProps.onComplete&&1===t.localT&&(t.controller.eventObject.keyframe=t,t.jsonProps.onComplete(t.controller.eventObject),t.jsonProps.onComplete=null),null!==this.gui&&this.gui.isDraggingPlayhead||(t.remove(),this.keyframes.splice(e,1))),1===t.localT&&(t.markedForRemoval=!0))}this.keyframes.length===t&&0!==this.keyframes.length||this._timeEmitter.executor.eventEmitter.once("after:draw",this.removeExpiredKeyframeControllers)}removeExpiredKeyframeControllers(){for(let e=0,t=this.keyframeControllers.length;e<t;e++){let t=!0,s=this.keyframeControllers[e];for(let e=0,i=s._allKeyframes.length;e<i;e++)if(!s._allKeyframes[e].destroyed){t=!1;break}t&&s.remove()}}updateBounds(){this.boundsMin=Math.min(...this.keyframes.map(e=>e.start)),this.boundsMax=Math.max(...this.keyframes.map(e=>e.end))}play(){this.isEnabled=!0,this._isPaused=!1,this.now=performance.now(),this._timeEmitter.run()}pause(){this._isPaused=!0}paused(){return this._isPaused}time(e){if(void 0===e)return this.position.local;this.position.local=this.position.localUnclamped=r.clamp(e,this.boundsMin,this.boundsMax),this.onTimeUpdate()}performTimelineDispatch(){}hasDuration(){return!0}getPosition(){return this.position.local}updateProgress(e){}get duration(){return this.boundsMax}}},{11:11,26:26,48:48,90:90}],51:[function(e,t,s){"use strict";t.exports=function(e){return e.reduce((e,t)=>(e[t]=t,e),{})}},{}],52:[function(e,t,s){"use strict";t.exports=function(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}},{}],53:[function(e,t,s){"use strict";t.exports=function(e,t){if("string"!=typeof e)return e;try{return(t||document).querySelector(e)||document.querySelector(e)}catch(e){return!1}}},{}],54:[function(e,t,s){"use strict";const i=e(5).EventEmitterMicro,r=e(32),n={create:e(11),update:e(21),draw:e(17)},a=()=>{};let o=0;t.exports=class extends i{constructor(e){super(),this.el=e.el,this.gum=e.gum,this.componentName=e.componentName,this._keyframeController=null}destroy(){this.el=null,this.gum=null,this._keyframeController=null,super.destroy()}addKeyframe(e){const t=e.el||this.el;return(e.group||this.anim).addKeyframe(t,e)}addDiscreteEvent(e){e.event=e.event||"Generic-Event-Name-"+o++;let t=void 0!==e.end&&e.end!==e.start;const s=this.addKeyframe(e);return t?(e.onEnterOnce&&s.controller.once(e.event+":enter",e.onEnterOnce),e.onExitOnce&&s.controller.once(e.event+":exit",e.onExitOnce),e.onEnter&&s.controller.on(e.event+":enter",e.onEnter),e.onExit&&s.controller.on(e.event+":exit",e.onExit)):(e.onEventOnce&&s.controller.once(e.event,e.onEventOnce),e.onEventReverseOnce&&s.controller.once(e.event+":reverse",e.onEventReverseOnce),e.onEvent&&s.controller.on(e.event,e.onEvent),e.onEventReverse&&s.controller.on(e.event+":reverse",e.onEventReverse)),s}addRAFLoop(e){let t=["start","end"];if(!t.every(t=>e.hasOwnProperty(t)))return void console.log("BubbleGum.BaseComponent::addRAFLoop required options are missing: "+t.join(" "));const s=new n.create;s.on("update",e.onUpdate||a),s.on("draw",e.onDraw||a),s.on("draw",()=>s.run());const{onEnter:i,onExit:r}=e;return e.onEnter=()=>{s.run(),i&&i()},e.onExit=()=>{s.cancel(),r&&r()},this.addDiscreteEvent(e)}addContinuousEvent(e){e.onDraw||console.log("BubbleGum.BaseComponent::addContinuousEvent required option `onDraw` is missing. Consider using a regular keyframe if you do not need a callback"),e.event=e.event||"Generic-Event-Name-"+o++;let t=this.addKeyframe(e);return t.controller.on(e.event,e.onDraw),t}mounted(){}onResizeImmediate(e){}onResizeDebounced(e){}onBreakpointChange(e){}get anim(){return this.gum.anim}get keyframeController(){return this._keyframeController||(this._keyframeController=this.anim.getControllerForTarget(this.el))}get pageMetrics(){return r.pageMetrics}}},{11:11,17:17,21:21,32:32,5:5}],55:[function(e,t,s){"use strict";const i=e(5).EventEmitterMicro,r=e(58),n=e(25),a=e(32),o=e(56),h={};class l extends i{constructor(e,t={}){super(),this.el=e,this.anim=n,this.componentAttribute=t.attribute||"data-component-list",this.components=[],this.componentsInitialized=!1,this.el.getAttribute("data-anim-scroll-group")||this.el.setAttribute("data-anim-scroll-group","bubble-gum-group"),r.add(()=>{n.initialize().then(()=>{this.initComponents(),this.setupEvents(),this.components.forEach(e=>e.mounted()),this.trigger(l.EVENTS.DOM_COMPONENTS_MOUNTED)})})}initComponents(){const e=Array.prototype.slice.call(this.el.querySelectorAll("[".concat(this.componentAttribute,"]")));this.el.hasAttribute(this.componentAttribute)&&e.push(this.el);for(let t=0;t<e.length;t++){let s=e[t],i=s.getAttribute(this.componentAttribute).split(" ");for(let e=0,t=i.length;e<t;e++){let t=i[e];""!==t&&" "!==t&&this.addComponent({el:s,componentName:t})}}this.componentsInitialized=!0}setupEvents(){this.onResizeDebounced=this.onResizeDebounced.bind(this),this.onResizeImmediate=this.onResizeImmediate.bind(this),this.onBreakpointChange=this.onBreakpointChange.bind(this),n.on(a.PageEvents.ON_RESIZE_IMMEDIATE,this.onResizeImmediate),n.on(a.PageEvents.ON_RESIZE_DEBOUNCED,this.onResizeDebounced),n.on(a.PageEvents.ON_BREAKPOINT_CHANGE,this.onBreakpointChange)}addComponent(e){const{el:t,componentName:s,data:i}=e;if(!o.hasOwnProperty(s))throw"BubbleGum::addComponent could not add component to '"+t.className+"'. No component type '"+s+"' found!";const r=o[s];if(!l.componentIsSupported(r,s))return void 0===h[s]&&(console.log("BubbleGum::addComponent unsupported component '"+s+"'. Reason: '"+s+".IS_SUPPORTED' returned false"),h[s]=!0),null;let n=t.dataset.componentList||"";n.includes(s)||(t.dataset.componentList=n.split(" ").concat(s).join(" "));let c=new r({el:t,data:i,componentName:e.componentName,gum:this,pageMetrics:a.pageMetrics});return this.components.push(c),this.componentsInitialized&&c.mounted(),c}removeComponent(e){const t=this.components.indexOf(e);-1!==t&&(this.components.splice(t,1),e.el.dataset.componentList=e.el.dataset.componentList.split(" ").filter(t=>t!==e.componentName).join(" "),e.destroy())}getComponentOfType(e,t=document.documentElement){const s="[".concat(this.componentAttribute,"*=").concat(e,"]"),i=t.matches(s)?t:t.querySelector(s);return i?this.components.find(t=>t instanceof o[e]&&t.el===i):null}getComponentsOfType(e,t=document.documentElement){const s="[".concat(this.componentAttribute,"*=").concat(e,"]"),i=t.matches(s)?[t]:Array.from(t.querySelectorAll(s));return this.components.filter(t=>t instanceof o[e]&&i.includes(t.el))}getComponentsForElement(e){return this.components.filter(t=>t.el===e)}onResizeImmediate(){this.components.forEach(e=>e.onResizeImmediate(a.pageMetrics))}onResizeDebounced(){this.components.forEach(e=>e.onResizeDebounced(a.pageMetrics))}onBreakpointChange(){this.components.forEach(e=>e.onBreakpointChange(a.pageMetrics))}static componentIsSupported(e,t){const s=e.IS_SUPPORTED;if(void 0===s)return!0;if("function"!=typeof s)return console.error('BubbleGum::addComponent error in "'+t+'".IS_SUPPORTED - it should be a function which returns true/false'),!0;const i=e.IS_SUPPORTED();return void 0===i?(console.error('BubbleGum::addComponent error in "'+t+'".IS_SUPPORTED - it should be a function which returns true/false'),!0):i}}l.EVENTS={DOM_COMPONENTS_MOUNTED:"DOM_COMPONENTS_MOUNTED"},t.exports=l},{25:25,32:32,5:5,56:56,58:58}],56:[function(e,t,s){"use strict";t.exports={BaseComponent:e(54)}},{54:54}],57:[function(e,t,s){"use strict";"undefined"!=typeof window&&(window.DOMMatrix=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix);const i=180/Math.PI,r=e=>Math.round(1e6*e)/1e6;function n(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function a(e,t){return 0===t?Array.from(e):[e[0]/t,e[1]/t,e[2]/t]}function o(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function h(e,t,s,i){return[e[0]*s+t[0]*i,e[1]*s+t[1]*i,e[2]*s+t[2]*i]}function l(e){const t=new Float32Array(4),s=new Float32Array(3),l=new Float32Array(3),c=new Float32Array(3);c[0]=e[3][0],c[1]=e[3][1],c[2]=e[3][2];const u=new Array(3);for(let t=0;t<3;t++)u[t]=e[t].slice(0,3);s[0]=n(u[0]),u[0]=a(u[0],s[0]),l[0]=o(u[0],u[1]),u[1]=h(u[1],u[0],1,-l[0]),s[1]=n(u[1]),u[1]=a(u[1],s[1]),l[0]/=s[1],l[1]=o(u[0],u[2]),u[2]=h(u[2],u[0],1,-l[1]),l[2]=o(u[1],u[2]),u[2]=h(u[2],u[1],1,-l[2]),s[2]=n(u[2]),u[2]=a(u[2],s[2]),l[1]/=s[2],l[2]/=s[2];const d=(m=u[1],p=u[2],[m[1]*p[2]-m[2]*p[1],m[2]*p[0]-m[0]*p[2],m[0]*p[1]-m[1]*p[0]]);var m,p;if(o(u[0],d)<0)for(let e=0;e<3;e++)s[e]*=-1,u[e][0]*=-1,u[e][1]*=-1,u[e][2]*=-1;let f;return t[0]=.5*Math.sqrt(Math.max(1+u[0][0]-u[1][1]-u[2][2],0)),t[1]=.5*Math.sqrt(Math.max(1-u[0][0]+u[1][1]-u[2][2],0)),t[2]=.5*Math.sqrt(Math.max(1-u[0][0]-u[1][1]+u[2][2],0)),t[3]=.5*Math.sqrt(Math.max(1+u[0][0]+u[1][1]+u[2][2],0)),u[2][1]>u[1][2]&&(t[0]=-t[0]),u[0][2]>u[2][0]&&(t[1]=-t[1]),u[1][0]>u[0][1]&&(t[2]=-t[2]),f=t[0]<.001&&t[0]>=0&&t[1]<.001&&t[1]>=0?[0,0,r(180*Math.atan2(u[0][1],u[0][0])/Math.PI)]:function(e){const[t,s,n,a]=e,o=t*t,h=s*s,l=n*n,c=t*s+n*a,u=a*a+o+h+l;return c>.49999*u?[0,2*Math.atan2(t,a)*i,90]:c<-.49999*u?[0,-2*Math.atan2(t,a)*i,-90]:[r(Math.atan2(2*t*a-2*s*n,1-2*o-2*l)*i),r(Math.atan2(2*s*a-2*t*n,1-2*h-2*l)*i),r(Math.asin(2*t*s+2*n*a)*i)]}(t),{translation:c,rotation:f,eulerRotation:f,scale:[r(s[0]),r(s[1]),r(s[2])]}}t.exports=function(e){e instanceof Element&&(e=String(getComputedStyle(e).transform).trim());let t=new DOMMatrix(e);const s=new Array(4);for(let e=1;e<5;e++){const i=s[e-1]=new Float32Array(4);for(let s=1;s<5;s++)i[s-1]=t["m".concat(e).concat(s)]}return l(s)}},{}],58:[function(e,t,s){"use strict";let i=!1,r=!1,n=[],a=-1;t.exports={NUMBER_OF_FRAMES_TO_WAIT:30,add:function(e){if(r&&e(),n.push(e),i)return;i=!0;let t=document.documentElement.scrollHeight,s=0;const o=()=>{let e=document.documentElement.scrollHeight;if(t!==e)s=0;else if(s++,s>=this.NUMBER_OF_FRAMES_TO_WAIT)return void n.forEach(e=>e());t=e,a=requestAnimationFrame(o)};a=requestAnimationFrame(o)},reset(){cancelAnimationFrame(a),i=!1,r=!1,n=[]}}},{}],59:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.pluginCache=void 0;var r=i(e(6)),n=i(e(70)),a=i(e(60)),o=i(e(62));const h={};s.pluginCache=h;const l=[];let c=1;class u extends r.default{constructor(e={}){super(),this.el=e.el||document.createElement("video"),this.id=e.id||this.el.id||this.el.dataset.inlineMediaId||"inlineMedia-".concat(c++);const t=(e.plugins||[]).concat(n.default);this._initPlugins(t,e),l.push(this)}async load(e){for(const t of this.plugins)if("function"==typeof t.load)return t.load(e)}abortLoad(){for(const e of this.plugins)if("function"==typeof e.abortLoad){e.abortLoad();break}}async play(){for(const e of this.plugins)if("function"==typeof e.play)return e.play()}get src(){for(const e of this.plugins)if(e.src)return e.src;return""}get playbackState(){for(const e of this.plugins){const t=e.playbackState;if(void 0!==t)return t}}get loadingState(){for(const e of this.plugins){const t=e.loadingState;if(void 0!==t)return t}}_initPlugins(e,t){this.plugins=[],this.pluginMap=new Map;for(let s of e){if("string"==typeof s){if(!h[s])throw new Error("Trying to use undefined Plugin named: ".concat(s," . Ensure you call Media.addPlugin() first!"));s=h[s]}if(!1!==s.isSupported){const e=new s(Object.assign({media:this},t));this.plugins.push(e),this.pluginMap.set(s,e)}}this.trigger(o.default.MOUNTED)}destroy(){if(!this._destroyed){for(const e of this.plugins)"function"==typeof e.destroy&&e.destroy();super.destroy(),l.splice(l.indexOf(this),1),this._destroyed=!0}}static get medias(){return l}static addPlugin(e,t){h[e]=t}static async autoInitialize(e=document,t={}){return(0,a.default)(e,t)}}var d=u;s.default=d},{6:6,60:60,62:62,7:7,70:70}],60:[function(e,t,s){"use strict";var i=e(7),r=e(8);Object.defineProperty(s,"__esModule",{value:!0}),s.default=async function(e=document,t={}){e||(e=document);const s=e.querySelectorAll("[".concat("data-inline-media","]")),i=[];for(let e of s){const s=e.dataset,r=s.inlineMediaPlugins?s.inlineMediaPlugins.split(",").map(e=>e.trim()):[],o=[];for(const e of r)if(!n.pluginCache[e]){if(!a.default[e])throw new Error("Error Trying to use undefined Plugin named: ".concat(e," . Ensure you call Media.addPlugin() first to register this custom plugin!"));o.push(async()=>{const t=(await a.default[e]()).default;n.default.addPlugin(e,t)})}await Promise.all(o.map(async e=>e())),i.push(new n.default(Object.assign({el:e,plugins:r.map(e=>n.pluginCache[e])},t)))}return i};var n=r(e(59)),a=i(e(66))},{59:59,66:66,7:7,8:8}],61:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;s.default={EMPTY:"loading-empty",LOADING:"loading",LOADED:"loaded",ERROR:"loading-error",DISABLED:"loading-disabled"}},{}],62:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;s.default={MOUNTED:"MOUNTED",MEDIA_LOAD_START:"MEDIA_LOAD_START",MEDIA_LOAD_COMPLETE:"MEDIA_LOAD_COMPLETE",MEDIA_LOAD_ERROR:"MEDIA_LOAD_ERROR",PLAYBACK_STATE_CHANGE:"PLAYBACK_STATE_CHANGE",LOADING_STATE_CHANGE:"LOADING_STATE_CHANGE"}},{}],63:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;s.default={LOAD_START:"loadstart",LOADED_DATA:"loadeddata",LOADED_METADATA:"loadedmetadata",CAN_PLAY:"canplay",CAN_PLAY_THROUGH:"canplaythrough",PLAY:"play",PLAYING:"playing",PAUSE:"pause",WAITING:"waiting",SEEKING:"seeking",SEEKED:"seeked",ERROR:"error",ENDED:"ended",ABORT:"abort"}},{}],64:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;s.default={IDLE:"idle",PLAYING:"playing",PAUSED:"paused",ENDED:"ended"}},{}],65:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"Media",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(s,"Plugin",{enumerable:!0,get:function(){return n.default}}),s.autoInit=void 0;var r=i(e(59)),n=i(e(72));const a=r.default.autoInitialize;s.autoInit=a},{59:59,7:7,72:72}],66:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(8));var n={AnimLoad:async()=>Promise.resolve().then(()=>(0,r.default)(e(73))),AnimPlay:async()=>Promise.resolve().then(()=>(0,r.default)(e(74))),FeatureObserver:async()=>Promise.resolve().then(()=>(0,r.default)(e(76))),LoadTimeout:async()=>Promise.resolve().then(()=>(0,r.default)(e(78))),PlayPauseButton:async()=>Promise.resolve().then(()=>(0,r.default)(e(80))),ViewportSource:async()=>Promise.resolve().then(()=>(0,r.default)(e(83)))};s.default=n},{7:7,73:73,74:74,76:76,78:78,8:8,80:80,83:83}],67:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72)),n=i(e(64)),a=i(e(61)),o=i(e(63)),h=i(e(62));const l=[o.default.LOADED_DATA,o.default.LOAD_START,o.default.CAN_PLAY,o.default.CAN_PLAY_THROUGH,o.default.PLAY,o.default.PLAYING,o.default.PAUSE,o.default.WAITING,o.default.SEEKING,o.default.SEEKED,o.default.ERROR,o.default.ENDED];class c extends r.default{constructor(e){super(e),this._container=e.container||this.media.el.parentElement,this._playbackState=n.default.IDLE,this._loadingState=a.default.EMPTY,this._elementsToDecorate=[],this._container&&this._elementsToDecorate.push(this._container),this.media.id&&this._elementsToDecorate.push(...Array.from(document.querySelectorAll("[data-inline-media-controller={id}]".replace("{id}",this.media.id))));for(const e of this._elementsToDecorate)e.classList.add(this._playbackState),e.classList.add(this._loadingState);this.updateState=this.updateState.bind(this),this._addEventListeners()}_addEventListeners(){for(let e of l)this.media.el.addEventListener(e,this.updateState);this.media.on(h.default.LOADING_STATE_CHANGE,this.updateState),this.media.on(h.default.PLAYBACK_STATE_CHANGE,this.updateState)}_removeEventListeners(){for(let e of l)this.media.el.removeEventListener(e,this.updateState);this.media.off(h.default.LOADING_STATE_CHANGE,this.updateState),this.media.off(h.default.PLAYBACK_STATE_CHANGE,this.updateState)}updateState(e){const t=this.media.playbackState,s=this._playbackState,i=this.media.loadingState,r=this._loadingState;if(this._playbackState=t,this._loadingState=i,t!==s){for(const e of this._elementsToDecorate)e.classList.add(t),e.classList.remove(s);this.media.trigger(h.default.PLAYBACK_STATE_CHANGE)}if(i!==r){for(const e of this._elementsToDecorate)e.classList.add(i),e.classList.remove(r);this.media.trigger(h.default.LOADING_STATE_CHANGE)}}destroy(){for(const e of this._elementsToDecorate)e.classList.remove(this._playbackState),e.classList.remove(this._loadingState);this._removeEventListeners(),super.destroy()}}var u=c;s.default=u},{61:61,62:62,63:63,64:64,7:7,72:72}],68:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72)),n=i(e(63)),a=i(e(62)),o=i(e(61)),h=i(e(4)),l=i(e(94));const c=n.default.CAN_PLAY_THROUGH,{HAVE_NOTHING:u,HAVE_CURRENT_DATA:d,NETWORK_EMPTY:m}=HTMLMediaElement;class p extends r.default{constructor(e){super(e),this._loadCompleteEvent=e.loadCompleteEvent||c,this._onLoaded=this._onLoaded.bind(this),this._onError=this._onError.bind(this)}mounted(){"none"!==this.media.el.preload&&this.media.src&&(async()=>{try{await this.media.load(this.media.src)}catch(e){(0,h.default)("auto load of ".concat(this.media.src," failed or was aborted with err:").concat(e))}})()}async load(e){if(void 0===e&&this.media.src&&(e=this.media.src),!e)throw new Error("No Media src was specified, can not fullfill load() request");return e!==this._currentLoadUrl&&(this.media.trigger(a.default.MEDIA_LOAD_START),this._currentLoadUrl=e,this._pendingPromise=new Promise((t,s)=>{this._resolvePendingPromise=()=>{this._resolvePendingPromise=null,this._rejectPendingPromise=null,t()},this._rejectPendingPromise=()=>{this._resolvePendingPromise=null,this._rejectPendingPromise=null,s()},this.media.el.addEventListener(this._loadCompleteEvent,this._onLoaded),l.default.browser.firefox&&"canplaythrough"===this._loadCompleteEvent&&this.media.el.addEventListener("canplay",this._onLoaded),this.media.el.addEventListener(n.default.ERROR,this._onError),this.media.el.addEventListener(n.default.ABORT,this._onError),this.media.el.src=e,this.media.el.load()})),this._pendingPromise}_clearLoadListeners(){this.media.el.removeEventListener(this._loadCompleteEvent,this._onLoaded),this.media.el.removeEventListener("canplay",this._onLoaded),this.media.el.removeEventListener(n.default.ERROR,this._onError),this.media.el.removeEventListener(n.default.ABORT,this._onError)}_onLoaded(){this._clearLoadListeners(),this.media.trigger(a.default.LOADING_STATE_CHANGE),this.media.trigger(a.default.MEDIA_LOAD_COMPLETE),this._resolvePendingPromise()}_onError(){this._clearLoadListeners(),this.media.trigger(a.default.MEDIA_LOAD_ERROR),this.media.trigger(a.default.LOADING_STATE_CHANGE),this._rejectPendingPromise()}abortLoad(){this._rejectPendingPromise&&this._rejectPendingPromise()}get loadingState(){return this.media.el.error?o.default.ERROR:this.media.el.networkState===m&&this.media.el.readyState===u?o.default.EMPTY:this.media.el.readyState<d?o.default.LOADING:o.default.LOADED}destroy(){this._clearLoadListeners(),super.destroy()}}var f=p;s.default=f},{4:4,61:61,62:62,63:63,7:7,72:72,94:94}],69:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72)),n=i(e(64));const{HAVE_METADATA:a,HAVE_CURRENT_DATA:o}=HTMLVideoElement;class h extends r.default{constructor(e){super(e),this._initialize()}_initialize(){this.media.el.playsInline=!0,this.media.el.autoplay&&(this._autoPlayTimer=setTimeout(()=>this.media.play()))}async play(){this.media.el.readyState<a&&await this.media.load(),await this.media.el.play()}get playbackState(){return this.media.el.ended?n.default.ENDED:this.media.el.paused&&!this.media.el.ended?n.default.PAUSED:n.default.PLAYING}destroy(){clearTimeout(this._autoPlayTimer),super.destroy()}}var l=h;s.default=l},{64:64,7:7,72:72}],70:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(71)),n=i(e(68)),a=i(e(69)),o=i(e(67)),h=[r.default,n.default,a.default,o.default];s.default=h},{67:67,68:68,69:69,7:7,71:71}],71:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72));class n extends r.default{get src(){return this.media.el.currentSrc}}var a=n;s.default=a},{7:7,72:72}],72:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(62));var n=class{constructor(e){this.options=e,this.media=e.media,this.mounted=this.mounted.bind(this),this.media.on(r.default.MOUNTED,this.mounted)}mounted(){}static get isSupported(){return!0}destroy(){}};s.default=n},{62:62,7:7}],73:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(85)),n=i(e(72)),a=i(e(4));const o={start:"t - 200vh",end:"b + 100vh"};class h extends n.default{constructor(e){super(e),this._anim=e.anim,this._container=e.container||this.media.el.parentElement,this._scrollGroup=this.options.scrollGroup||this._anim.getGroupForTarget(this._container||this.media.el),this._initialize()}_initialize(){this._onLoadKeyframeEnter=this._onLoadKeyframeEnter.bind(this),this._onLoadKeyframeExit=this._onLoadKeyframeExit.bind(this);const e=(0,r.default)(this.media.el.dataset,this.options,"loadKeyframe",o);e.event||(e.event="inline-media-load-kf"),this._loadKeyframe=this._scrollGroup.addKeyframe(this.media.el,e),this._loadKeyframe.controller.on("".concat(this._loadKeyframe.event,":enter"),this._onLoadKeyframeEnter),this._loadKeyframe.controller.on("".concat(this._loadKeyframe.event,":exit"),this._onLoadKeyframeExit)}get loadKeyframe(){return this._loadKeyframe}async _onLoadKeyframeEnter(e){try{await this.media.load(),this._loaded=!0}catch(e){(0,a.default)("AnimLoad: Load error occured")}}_onLoadKeyframeExit(e){}destroy(){this._loadKeyframe.controller.off("".concat(this._loadKeyframe.event,":enter"),this._onLoadKeyframeEnter),this._loadKeyframe.controller.off("".concat(this._loadKeyframe.event,":exit"),this._onLoadKeyframeExit),super.destroy()}}s.default=h},{4:4,7:7,72:72,85:85}],74:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(62)),n=i(e(85)),a=i(e(72));const o={start:"t - 100vh",end:"b"};class h extends a.default{constructor(e){super(e),this._anim=e.anim,this._container=e.container||this.media.el.parentElement,this._scrollGroup=this.options.scrollGroup||this._anim.getGroupForTarget(this._container||this.media.el),this._initialize()}_initialize(){this._onPlayKeyframeEnter=this._onPlayKeyframeEnter.bind(this),this._onPlayKeyframeExit=this._onPlayKeyframeExit.bind(this);const e=this.media.el.dataset;if(this._autoPlayWithReducedMotion=(0,n.default)(e,this.options,"autoPlayWithReducedMotion",!1),!this._autoPlayWithReducedMotion&&h.prefersReducedMotion)return;this._pauseOnExit=(0,n.default)(e,this.options,"pauseOnExit",!1),this._resetOnExit=(0,n.default)(e,this.options,"resetOnExit",!1);const t=(0,n.default)(e,this.options,"playKeyframe",o);t.event||(t.event="inline-media-play-kf"),this._playKeyframe=this._scrollGroup.addKeyframe(this.media.el,t),this._playKeyframe.controller.on("".concat(this._playKeyframe.event,":enter"),this._onPlayKeyframeEnter),this._playKeyframe.controller.on("".concat(this._playKeyframe.event,":exit"),this._onPlayKeyframeExit),this._onLoadStart=this._onLoadStart.bind(this),this.media.on(r.default.MEDIA_LOAD_START,this._onLoadStart)}_onLoadStart(){this._loaded=!1}async _onPlayKeyframeEnter(e){if(this._inFrame=!0,!this._paused&&(this._loaded||(await this.media.load(),this._loaded=!0),this._inFrame))try{await this.media.play()}catch(e){}}_onPlayKeyframeExit(e){this._inFrame=!1,this._loaded&&this.media.el.paused&&!this.media.el.ended?this._paused=!0:this._pauseOnExit&&(this._paused=!1,this.media.el.pause()),this._loaded&&this._resetOnExit&&(this.media.el.currentTime=0)}get playKeyframe(){return this._playKeyframe}destroy(){this._playKeyframe.controller.off("".concat(this._playKeyframe.event,":enter"),this._onPlayKeyframeEnter),this._playKeyframe.controller.off("".concat(this._playKeyframe.event,":exit"),this._onPlayKeyframeExit),this.media.off(r.default.MEDIA_LOAD_START,this._onLoadStart),super.destroy()}static get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}}s.default=h},{62:62,7:7,72:72,85:85}],75:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var i=class{constructor(e){this.featureClass=e.featureClass,this._callback=e.callback,this._isPresent=!1,this._wasPresent=!1}get presenceChanged(){return this._isPresent!==this._wasPresent}get isPresent(){return this._isPresent}updatePresence(e){this._wasPresent=this._isPresent,this._isPresent=e.contains(this.featureClass)}triggerCallback(e){return this._callback(e)}};s.default=i},{}],76:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72)),n=i(e(64)),a=i(e(61)),o=i(e(62)),h=i(e(77)),l=i(e(75));const c=e=>e,u=e=>e?e.split(",").map(e=>e.trim()):null;class d extends r.default{constructor(e){super(e);const t=(t,s,i)=>{let r="inlineMedia"+t[0].toUpperCase()+t.slice(1);return s(this.media.el.dataset[r])||e[t]||i};this._disabledStates=new h.default({features:t("disabledWhen",u,[]),onActivate:this.disable.bind(this),onDeactivate:this.enable.bind(this)}),this._destroyStates=new h.default({features:t("destroyWhen",u,[]),onActivate:this.destroyMedia.bind(this)}),this._pausedStates=new h.default({features:t("pausedWhen",u,[]),onActivate:this.pauseMedia.bind(this)}),this._autoplayStates=new h.default({features:t("autoplayWhen",u,[]),onActivate:this.autoplayMedia.bind(this),onDeactivate:this.disableAutoplay.bind(this)});const s=e.featureDetect||{};var i;this.featureCallbacks=Object.entries(s).map(([e,t])=>new l.default({featureClass:e,callback:t})),this._featureElement=(i=t("featureElement",c,document.documentElement))instanceof HTMLElement?i:document.querySelector(i),this.featureSets=[this._autoplayStates,this._pausedStates,this._disabledStates,this._destroyStates],this._featuresUpdated=this._featuresUpdated.bind(this),this.play=!1,this._observer=new MutationObserver(this._featuresUpdated),this._observer.observe(this._featureElement,{attributes:!0,attributeFilter:["class"]}),this._featuresUpdated()}get loadingState(){return this._disabledStates.isDetected?a.default.DISABLED:void 0}get playbackState(){return this._disabledStates.isDetected?n.default.PAUSED:void 0}_featuresUpdated(){let e=this._featureElement.classList;this.featureSets.filter(t=>(t.updateFeatureState(e),t.detectionChanged)).forEach(e=>e.applyEffect()),this.featureCallbacks.forEach(t=>{t.updatePresence(e),t.isPresent&&t.presenceChanged&&t.triggerCallback(this.media)})}autoplayMedia(){this.media.el.setAttribute("autoplay",!0),this.media.play()}disableAutoplay(){this.media.el.setAttribute("autoplay",!1)}pauseMedia(){this.media.el.pause()}destroyMedia(){this.media.destroy()}destroy(){this._observer.disconnect()}disable(){this.media.abortLoad(),this.media.el.pause(),this.play=c,this.media.trigger(o.default.LOADING_STATE_CHANGE),this.media.trigger(o.default.PLAYBACK_STATE_CHANGE)}enable(){this.play=!1,this.media.trigger(o.default.LOADING_STATE_CHANGE),this.media.trigger(o.default.PLAYBACK_STATE_CHANGE)}}var m=d;s.default=m},{61:61,62:62,64:64,7:7,72:72,75:75,77:77}],77:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;const i=()=>{};var r=class{constructor(e){var t;this._features=new Set((t=e.features,Array.isArray(t)?t:t?[t]:[])),this._isDetected=!1,this._wasDetected=!1,this._onActivate=e.onActivate||i,this._onDeactivate=e.onDeactivate||i}get detectionChanged(){return this._isDetected!==this._wasDetected}get isDetected(){return this._isDetected}updateFeatureState(e){this._wasDetected=this._isDetected;for(let t of e)if(this._features.has(t))return void(this._isDetected=!0);this._isDetected=!1}applyEffect(){this._isDetected?this._onActivate():this._onDeactivate()}};s.default=r},{}],78:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72)),n=i(e(62));class a extends r.default{static get LOAD_TIMEOUT_EVENT(){return"inline-media-timeout"}constructor(e){super(e);const t=this.media.el.dataset;this._timeoutDelay=t.loadTimeout||e.loadTimeout||3e4,this._onLoadStart=this._onLoadStart.bind(this),this._onLoadComplete=this._onLoadComplete.bind(this),this._onTimerComplete=this._onTimerComplete.bind(this),this.media.on(n.default.MEDIA_LOAD_START,this._onLoadStart),this.media.on(n.default.MEDIA_LOAD_COMPLETE,this._onLoadComplete)}_onLoadStart(){clearTimeout(this._timer),this._timer=setTimeout(this._onTimerComplete,this._timeoutDelay)}_onLoadComplete(){clearTimeout(this._timer)}_onTimerComplete(){this.media.trigger("inline-media-timeout"),this.media.destroy(),this.media.el.parentElement&&this.media.el.parentElement.removeChild(this.media.el)}destroy(){clearTimeout(this._timer),this.media.off(n.default.MEDIA_LOAD_START,this._onLoadStart)}}s.default=a},{62:62,7:7,72:72}],79:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;s.default={S:"small",M:"medium",L:"large",X:"xlarge"}},{}],80:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72)),n=i(e(62)),a=i(e(64));const o="Pause",h="Play",l="Replay",c={CLICK:"data-analytics-click",TITLE:"data-analytics-title"};class u extends r.default{constructor(e){super(e),this._container=e.container||this.media.el.parentElement,this._button=this._findButton(),this._onClick=this._onClick.bind(this),this._onPlaybackStateChange=this._onPlaybackStateChange.bind(this);const t=this._button.dataset;this._ariaLabels={playing:t.ariaPlaying||e.ariaPlaying||o,paused:t.ariaPaused||e.ariaPaused||h,ended:t.ariaEnded||e.ariaEnded||l},this._button.addEventListener("click",this._onClick),this.media.on(n.default.PLAYBACK_STATE_CHANGE,this._onPlaybackStateChange),this._activeAnalytics=Object.values(c).filter(e=>this._button.hasAttribute(e+"-play")&&this._button.hasAttribute(e+"-pause")||this._button.hasAttribute(e+"-replay"))}_findButton(){if(this.options.playPauseButton)return this.options.playPauseButton;let e=this._container.querySelector("".concat('[data-inline-media-control="PlayPause"]'));if(!e){const t=document.querySelectorAll("[data-inline-media-controller='{id}']".replace("{id}",this.media.id));for(const s of t)e="PlayPause"===s.getAttribute("data-inline-media-control")?s:s.querySelector("".concat('[data-inline-media-control="PlayPause"]'))}return e}_onPlaybackStateChange(){switch(this.media.playbackState){case a.default.PLAYING:this._button.setAttribute("aria-label",this._ariaLabels.playing);break;case a.default.ENDED:this._button.setAttribute("aria-label",this._ariaLabels.ended);break;default:this._button.setAttribute("aria-label",this._ariaLabels.paused)}this._setAnalyticsState()}_setAnalyticsState(){let e;switch(this.media.playbackState){case a.default.PLAYING:e="pause";break;case a.default.ENDED:e="replay";break;default:e="play"}for(const t of this._activeAnalytics){let s=e;"replay"!==e||this._button.hasAttribute("".concat(t,"-").concat(s))||(s="play"),this._button.setAttribute(t,this._button.getAttribute("".concat(t,"-").concat(s)))}}_onClick(e){this.media.el.paused?this.media.play():this.media.el.pause()}destroy(){this._button.removeEventListener("click",this._onClick),this.media.off(n.default.PLAYBACK_STATE_CHANGE,this._onPlaybackStateChange)}}s.default=u},{62:62,64:64,7:7,72:72}],81:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(84));s.default=class{constructor(e){this._breakpoints=e.breakpoints||r.default,this.options=e,this._initialize()}_initialize(){this._updateBreakpoint=this._updateBreakpoint.bind(this),this._callback=this.options.callback,this._mediaQueries=Object.keys(this._breakpoints).map(e=>window.matchMedia("(min-width: ".concat(this._breakpoints[e],"px)"))),this._addEventListeners(),this._updateBreakpoint()}_addEventListeners(){for(const e of this._mediaQueries)e.addListener(this._updateBreakpoint)}_removeEventListeners(){for(const e of this._mediaQueries)e.removeListener(this._updateBreakpoint)}_updateBreakpoint(){const e=Object.keys(this._breakpoints);let t=e[0];for(let s=1;s<e.length;s++){if(!this._mediaQueries[s].matches)break;t=e[s]}let s=!1;this._currentBreakpoint&&this._currentBreakpoint!==t&&(s=!0),this._currentBreakpoint=t,s&&this._callback()}get breakpoint(){return this._currentBreakpoint}destroy(){this._removeEventListeners()}}},{7:7,84:84}],82:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(81)),n=i(e(79));class a extends r.default{constructor(e){super(e)}_initialize(){this._anim=this.options.anim,this._bpMap=this.options.animBreakpointMap||n.default,this._updateBreakpoint=this._updateBreakpoint.bind(this),this._callback=this.options.callback,this._addEventListeners(),this._updateBreakpoint()}_addEventListeners(){this._anim.on("ON_BREAKPOINT_CHANGE",this._updateBreakpoint)}_removeEventListeners(){this._anim.off("ON_BREAKPOINT_CHANGE",this._updateBreakpoint)}_updateBreakpoint(){const e=this._bpMap[this._anim.model.pageMetrics.breakpoint];let t=!1;this._currentBreakpoint&&this._currentBreakpoint!==e&&(t=!0),this._currentBreakpoint=e,t&&this._callback()}destroy(){super.destroy()}}s.default=a},{7:7,79:79,81:81}],83:[function(e,t,s){"use strict";var i=e(7);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=i(e(72)),n=i(e(81)),a=i(e(82)),o=(i(e(4)),i(e(3)),i(e(61)));class h extends r.default{constructor(e){super(e),this._cachedPlaying=null,this._initialize()}_initialize(){this._onBreakpointChange=this._onBreakpointChange.bind(this);const e=Object.assign({callback:this._onBreakpointChange},this.options);this._breakpointDetect=e.anim?new a.default(e):new n.default(e),this._currentTime=0;const t=this.media.el.dataset;this._basePath=this.options.basePath||t.inlineMediaBasepath||"./",this._onBreakpointChange()}_onBreakpointChange(){this._currentBreakpoint=this._breakpointDetect.breakpoint;const e=window.devicePixelRatio>1?"".concat(this._currentBreakpoint,"_2x"):this._currentBreakpoint,t="".concat(this._basePath).concat(e,".").concat("mp4");this._swapSrc(t)}get src(){return this._src}async _swapSrc(e){if(this._src=e,this.media.loadingState===o.default.EMPTY)return;const t=null!==this._cachedPlaying?this._cachedPlaying:!this.media.el.paused;return this.media.loadingState===o.default.LOADED&&(this._currentTime=this.media.el.currentTime),this._cachedPlaying=t,await this.media.load("".concat(e,"#t=").concat(this._currentTime)),this._cachedPlaying=null,t?this.media.play():Promise.resolve()}destroy(){this._breakpointDetect.destroy(),super.destroy()}}s.default=h},{3:3,4:4,61:61,7:7,72:72,81:81,82:82}],84:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;s.default={small:0,medium:570,large:780,xlarge:1280}},{}],85:[function(e,t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(e,t,s,i){const r=s[0].toUpperCase()+s.slice(1),n=e["inlineMedia"+r];if(void 0!==n)switch(typeof i){case"boolean":return"false"!==n;case"object":return JSON.parse(n);case"number":return Number(n);default:return n}else if(void 0!==t[s]){const e=t[s];return"boolean"!=typeof i||"false"!==e&&"true"!==e?e:"false"!==e}return i}},{}],86:[function(e,t,s){"use strict";t.exports={PICTURE_DATA_DOWNLOAD_AREA_KEYFRAME:"data-download-area-keyframe",PICTURE_DATA_LAZY:"data-lazy",PICTURE_DATA_EMPTY_SOURCE:"data-empty",PICTURE_DATA_LOADED:"data-picture-loaded",PICTURE_CLASS_LOADED:"loaded"}},{}],87:[function(e,t,s){"use strict";const i=e(86).PICTURE_CLASS_LOADED,r=e(86).PICTURE_DATA_LOADED,n=e(86).PICTURE_DATA_EMPTY_SOURCE;t.exports=(window.__pictureElementInstancesLoaded=new Map,void(window.__lp=function(e){const t=e.target.parentElement;t.querySelector("[".concat(n,"]"))?e.stopImmediatePropagation():(t.classList.add("".concat(i)),t.setAttribute("".concat(r),""),window.__pictureElementInstancesLoaded.set(t.id,t),e.target.onload=null)}))},{86:86}],88:[function(e,t,s){"use strict";const i=e(86).PICTURE_DATA_LAZY,r=e(86).PICTURE_DATA_EMPTY_SOURCE,n=e(86).PICTURE_DATA_DOWNLOAD_AREA_KEYFRAME;t.exports=class{constructor(e={}){this.options=e,this._init()}_init(){this._pictures=Array.from(document.querySelectorAll("*[".concat(i,"]"))),this.AnimSystem=this._findAnim(),null!==this.AnimSystem&&(this._injectSources(),this._addKeyframesToImages(),this._addMethodsToPictures())}_addMethodsToPictures(){this._pictures.forEach(e=>{e.forceLoad=()=>{this._downloadImage(e)}})}_injectSources(){this._pictures.forEach(e=>{const t=e.nextElementSibling;if(t&&"NOSCRIPT"===t.nodeName){const s=e.querySelector("img"),i=t.textContent.match(/<source .+ \/>/g);i&&s.insertAdjacentHTML("beforebegin",i.join(""))}})}_defineKeyframeOptions(e){const t=e.getAttribute(n)||"{}";return Object.assign({},{start:"t - 200vh",end:"b + 100vh",event:"PictureLazyLoading"},JSON.parse(t))}_addKeyframesToImages(){this._pictures.forEach(e=>{e.__scrollGroup=this.AnimSystem.getGroupForTarget(document.body),this.AnimSystem.getGroupForTarget(e)&&(e.__scrollGroup=this.AnimSystem.getGroupForTarget(e));let t=this._defineKeyframeOptions(e);e.__scrollGroup.addKeyframe(e,t).controller.once("PictureLazyLoading:enter",()=>{this._imageIsInLoadRange(e)})})}_imageIsInLoadRange(e){e.querySelector("img")&&this._downloadImage(e)}_downloadImage(e){const t=e.querySelector("[".concat(r,"]"));t&&e.removeChild(t)}_findAnim(){var e=Array.from(document.querySelectorAll("[data-anim-group],[data-anim-scroll-group],[data-anim-time-group]"));return e.map(e=>e._animInfo?e._animInfo.group:null).filter(e=>null!==e),e[0]&&e[0]._animInfo?e[0]._animInfo.group.anim:(console.error("PictureLazyLoading: AnimSystem not found, please initialize anim before instantiating"),null)}}},{86:86}],89:[function(e,t,s){"use strict";const i=e(88),r=e(87);t.exports={PictureLazyLoading:i,PictureHead:r}},{87:87,88:88}],90:[function(e,t,s){"use strict";t.exports={lerp:function(e,t,s){return t+(s-t)*e},map:function(e,t,s,i,r){return i+(r-i)*(e-t)/(s-t)},mapClamp:function(e,t,s,i,r){var n=i+(r-i)*(e-t)/(s-t);return Math.max(i,Math.min(r,n))},norm:function(e,t,s){return(e-t)/(s-t)},clamp:function(e,t,s){return Math.max(t,Math.min(s,e))},randFloat:function(e,t){return Math.random()*(t-e)+e},randInt:function(e,t){return Math.floor(Math.random()*(t-e)+e)}}},{}],91:[function(e,t,s){"use strict";t.exports={browser:{safari:!1,chrome:!1,firefox:!1,ie:!1,opera:!1,android:!1,edge:!1,version:{string:"",major:0,minor:0,patch:0,documentMode:!1}},os:{osx:!1,ios:!1,android:!1,windows:!1,linux:!1,fireos:!1,chromeos:!1,version:{string:"",major:0,minor:0,patch:0}}}},{}],92:[function(e,t,s){"use strict";t.exports={browser:[{name:"edge",userAgent:"Edge",version:["rv","Edge"],test:function(e){return e.ua.indexOf("Edge")>-1||"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"===e.ua}},{name:"chrome",userAgent:"Chrome"},{name:"firefox",test:function(e){return e.ua.indexOf("Firefox")>-1&&-1===e.ua.indexOf("Opera")},version:"Firefox"},{name:"android",userAgent:"Android"},{name:"safari",test:function(e){return e.ua.indexOf("Safari")>-1&&e.vendor.indexOf("Apple")>-1},version:"Version"},{name:"ie",test:function(e){return e.ua.indexOf("IE")>-1||e.ua.indexOf("Trident")>-1},version:["MSIE","rv"],parseDocumentMode:function(){var e=!1;return document.documentMode&&(e=parseInt(document.documentMode,10)),e}},{name:"opera",userAgent:"Opera",version:["Version","Opera"]}],os:[{name:"windows",test:function(e){return e.ua.indexOf("Windows")>-1},version:"Windows NT"},{name:"osx",userAgent:"Mac",test:function(e){return e.ua.indexOf("Macintosh")>-1}},{name:"ios",test:function(e){return e.ua.indexOf("iPhone")>-1||e.ua.indexOf("iPad")>-1},version:["iPhone OS","CPU OS"]},{name:"linux",userAgent:"Linux",test:function(e){return(e.ua.indexOf("Linux")>-1||e.platform.indexOf("Linux")>-1)&&-1===e.ua.indexOf("Android")}},{name:"fireos",test:function(e){return e.ua.indexOf("Firefox")>-1&&e.ua.indexOf("Mobile")>-1},version:"rv"},{name:"android",userAgent:"Android",test:function(e){return e.ua.indexOf("Android")>-1}},{name:"chromeos",userAgent:"CrOS"}]}},{}],93:[function(e,t,s){"use strict";var i=e(91),r=e(92);function n(e,t){if("function"==typeof e.parseVersion)return e.parseVersion(t);var s,i=e.version||e.userAgent;"string"==typeof i&&(i=[i]);for(var r,n=i.length,a=0;a<n;a++)if((r=t.match((s=i[a],new RegExp(s+"[a-zA-Z\\s/:]+([0-9_.]+)","i"))))&&r.length>1)return r[1].replace(/_/g,".");return!1}function a(e,t,s){for(var i,r,a=e.length,o=0;o<a;o++)if("function"==typeof e[o].test?!0===e[o].test(s)&&(i=e[o].name):s.ua.indexOf(e[o].userAgent)>-1&&(i=e[o].name),i){if(t[i]=!0,"string"==typeof(r=n(e[o],s.ua))){var h=r.split(".");t.version.string=r,h&&h.length>0&&(t.version.major=parseInt(h[0]||0),t.version.minor=parseInt(h[1]||0),t.version.patch=parseInt(h[2]||0))}else"edge"===i&&(t.version.string="12.0.0",t.version.major="12",t.version.minor="0",t.version.patch="0");return"function"==typeof e[o].parseDocumentMode&&(t.version.documentMode=e[o].parseDocumentMode()),t}return t}t.exports=function(e){var t={};return t.browser=a(r.browser,i.browser,e),t.os=a(r.os,i.os,e),t}},{91:91,92:92}],94:[function(e,t,s){"use strict";var i={ua:window.navigator.userAgent,platform:window.navigator.platform,vendor:window.navigator.vendor};t.exports=e(93)(i)},{93:93}],95:[function(e,t,s){"use strict";t.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],96:[function(e,t,s){"use strict";t.exports=function(e,t,s){var i=Math.sin(s),r=Math.cos(s),n=t[4],a=t[5],o=t[6],h=t[7],l=t[8],c=t[9],u=t[10],d=t[11];t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[4]=n*r+l*i,e[5]=a*r+c*i,e[6]=o*r+u*i,e[7]=h*r+d*i,e[8]=l*r-n*i,e[9]=c*r-a*i,e[10]=u*r-o*i,e[11]=d*r-h*i,e}},{}],97:[function(e,t,s){"use strict";t.exports=function(e,t,s){var i=Math.sin(s),r=Math.cos(s),n=t[0],a=t[1],o=t[2],h=t[3],l=t[8],c=t[9],u=t[10],d=t[11];t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=n*r-l*i,e[1]=a*r-c*i,e[2]=o*r-u*i,e[3]=h*r-d*i,e[8]=n*i+l*r,e[9]=a*i+c*r,e[10]=o*i+u*r,e[11]=h*i+d*r,e}},{}],98:[function(e,t,s){"use strict";t.exports=function(e,t,s){var i=Math.sin(s),r=Math.cos(s),n=t[0],a=t[1],o=t[2],h=t[3],l=t[4],c=t[5],u=t[6],d=t[7];t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=n*r+l*i,e[1]=a*r+c*i,e[2]=o*r+u*i,e[3]=h*r+d*i,e[4]=l*r-n*i,e[5]=c*r-a*i,e[6]=u*r-o*i,e[7]=d*r-h*i,e}},{}],99:[function(e,t,s){"use strict";t.exports=function(e,t,s){var i=s[0],r=s[1],n=s[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],100:[function(e,t,s){"use strict";const i=e(54),r=e(65).autoInit;t.exports=class extends i{constructor(e){super(e),this.scrollGroup=this.gum.anim.getGroupForTarget(this.el),this.heroContent=this.el.querySelector(".hero-content"),this.logo=this.el.querySelector(".hero-logo"),this.endFrame=this.el.querySelector(".end-frame"),this.video=this.el.querySelector("#hero-animation"),this.animContainer=this.el.querySelector(".anim-container"),this.tileContainer=this.el.querySelector(".tile-container"),this.globalFooter=document.querySelector("#ac-globalfooter"),r(this.el,{breakpoints:{small:0,medium:735,large:1069,xlarge:1441}}).then(e=>{this.mediaInstance=e[0],this.mediaInstance.on("inline-media-timeout",()=>{this._destroy()})}),this._firefoxXL(e.pageMetrics)}_firefoxXL(e){"X"==e.breakpoint&&document.querySelector("html").classList.contains("firefox")&&this._destroy()}_destroy(){this.mediaInstance.destroy(),this.animContainer.classList.add("media-timeout"),this.video.remove()}mounted(){this.scrollGroup.addKeyframe(this.el,{start:"b - 100vh",end:"b",y:[0,"min(80vh, a1h) / 3"],anchors:[".tile-container",this.globalFooter]})}onBreakpointChange(e){this._destroy(),this._firefoxXL(e)}static IS_SUPPORTED(){return document.documentElement.classList.contains("enhance-xp")}}},{54:54,65:65}],101:[function(e,t,s){"use strict";const i=e(54);t.exports=class extends i{constructor(e){super(e),this.scrollGroup=this.gum.anim.getGroupForTarget(this.el),this.willChangeElements={},this.willChangeElements.firstPhone=this.el.querySelector(".overview-ios15-hw-01"),this.willChangeElements.middlePhone=this.el.querySelector(".overview-ios15-hw-03"),this.willChangeElements.lastPhone=this.el.querySelector(".overview-ios15-hw-05");for(let e in this.willChangeElements)this.scrollGroup.addKeyframe(this.willChangeElements[e],{start:"a0t - 100vh",end:"a0b",cssClass:"js-will-change",toggle:!0,anchors:[this.el],disabledWhen:["no-enhance-xp"]})}mounted(){this.scrollGroup.addKeyframe(this.willChangeElements.firstPhone,{start:"t - 110vh",end:"t - 60vh",y:["css(--ios-offset-top)",0],breakpointMask:"SLX"}),this.scrollGroup.addKeyframe(this.willChangeElements.middlePhone,{start:"t - 110vh",end:"t - 60vh",y:[10,0],breakpointMask:"SLX"}),this.scrollGroup.addKeyframe(this.willChangeElements.lastPhone,{start:"t - 110vh",end:"t - 60vh",y:["css(--ios-offset-top)",0],breakpointMask:"SLX"}),this.scrollGroup.addKeyframe(this.willChangeElements.firstPhone,{start:"t - 100vh",end:"t - 50vh",y:["css(--ios-offset-top)",0],breakpointMask:"M"}),this.scrollGroup.addKeyframe(this.willChangeElements.middlePhone,{start:"t - 110vh",end:"t - 60vh",y:[10,0],breakpointMask:"M"}),this.scrollGroup.addKeyframe(this.willChangeElements.lastPhone,{start:"t - 100vh",end:"t - 50vh",y:["css(--ios-offset-top)",0],breakpointMask:"M"})}static IS_SUPPORTED(){return document.documentElement.classList.contains("enhance-xp")}}},{54:54}],102:[function(e,t,s){"use strict";const i=e(54);t.exports=class extends i{constructor(e){super(e),this.scrollGroup=this.gum.anim.getGroupForTarget(this.el),this.willChangeElements={},this.willChangeElements.firstIPad=this.el.querySelector(".overview-ipados-hw-01"),this.willChangeElements.middleIPad=this.el.querySelector(".overview-ipados-hw-02"),this.willChangeElements.lastIPad=this.el.querySelector(".overview-ipados-hw-03");for(let e in this.willChangeElements)this.scrollGroup.addKeyframe(this.willChangeElements[e],{start:"a0t - 100vh",end:"a0b",cssClass:"js-will-change",toggle:!0,anchors:[this.el],disabledWhen:["no-enhance-xp"]})}mounted(){this.scrollGroup.addKeyframe(this.willChangeElements.firstIPad,{start:"t - 100vh",end:"t - 50vh",y:[-40,-50],breakpointMask:"XLM"}),this.scrollGroup.addKeyframe(this.willChangeElements.middleIPad,{start:"t - 115vh",end:"t - 65vh",y:[65,0],breakpointMask:"XLM"}),this.scrollGroup.addKeyframe(this.willChangeElements.lastIPad,{start:"t - 100vh",end:"t - 50vh",y:[-40,-50],breakpointMask:"XLM"}),this.scrollGroup.addKeyframe(this.willChangeElements.firstIPad,{start:"t - 100vh",end:"t - 50vh",y:[10,0],breakpointMask:"S"}),this.scrollGroup.addKeyframe(this.willChangeElements.middleIPad,{start:"t - 100vh",end:"t - 50vh",y:[30,0],breakpointMask:"S"}),this.scrollGroup.addKeyframe(this.willChangeElements.lastIPad,{start:"t - 100vh",end:"t - 50vh",y:[10,0],breakpointMask:"S"})}static IS_SUPPORTED(){return document.documentElement.classList.contains("enhance-xp")}}},{54:54}],103:[function(e,t,s){"use strict";const i=e(54);t.exports=class extends i{constructor(e){super(e),this.scrollGroup=this.gum.anim.getGroupForTarget(this.el),this.willChangeElements={},this.parallaxImageContainer=this.el.querySelector(".parallax-image-container"),this.willChangeElements.firstMac=this.el.querySelector(".overview-macos-hw-01"),this.willChangeElements.secondMac=this.el.querySelector(".overview-macos-hw-02");for(let e in this.willChangeElements)this.scrollGroup.addKeyframe(this.willChangeElements[e],{start:"a0t - 100vh",end:"a0b",cssClass:"js-will-change",toggle:!0,anchors:[this.el],disabledWhen:["no-enhance-xp"]})}mounted(){this.scrollGroup.addKeyframe(this.willChangeElements.firstMac,{start:"t - 110vh",end:"t - 45vh",x:[-30,0],anchors:[this.parallaxImageContainer],breakpointMask:"LX"}),this.scrollGroup.addKeyframe(this.willChangeElements.secondMac,{start:"t - 110vh",end:"t - 45vh",x:[30,0],anchors:[this.parallaxImageContainer],breakpointMask:"LX"}),this.scrollGroup.addKeyframe(this.willChangeElements.firstMac,{start:"t - 100vh",end:"t - 45vh",x:[-20,0],anchors:[this.parallaxImageContainer],breakpointMask:"M"}),this.scrollGroup.addKeyframe(this.willChangeElements.secondMac,{start:"t - 100vh",end:"t - 45vh",x:[20,0],anchors:[this.parallaxImageContainer],breakpointMask:"M"}),this.scrollGroup.addKeyframe(this.willChangeElements.firstMac,{start:"t - 100vh",end:"t - 50vh",x:[-10,0],anchors:[this.parallaxImageContainer],breakpointMask:"S"}),this.scrollGroup.addKeyframe(this.willChangeElements.secondMac,{start:"t - 100vh",end:"t - 50vh",x:[5,0],anchors:[this.parallaxImageContainer],breakpointMask:"S"})}static IS_SUPPORTED(){return document.documentElement.classList.contains("enhance-xp")}}},{54:54}],104:[function(e,t,s){"use strict";const i=e(54);t.exports=class extends i{constructor(e){super(e),this.scrollGroup=this.gum.anim.getGroupForTarget(this.el),this.willChangeElements={},this.willChangeElements.firstWatch=this.el.querySelector(".overview-watchos-hw-01"),this.willChangeElements.secondWatch=this.el.querySelector(".overview-watchos-hw-02"),this.willChangeElements.fourthWatch=this.el.querySelector(".overview-watchos-hw-04"),this.willChangeElements.fifthWatch=this.el.querySelector(".overview-watchos-hw-05");for(let e in this.willChangeElements)this.scrollGroup.addKeyframe(this.willChangeElements[e],{start:"a0t - 100vh",end:"a0b",cssClass:"js-will-change",toggle:!0,anchors:[this.el],disabledWhen:["no-enhance-xp"]})}mounted(){this.scrollGroup.addKeyframe(this.willChangeElements.firstWatch,{start:"t - 100vh",end:"t - 39vh",y:[70,0]}),this.scrollGroup.addKeyframe(this.willChangeElements.secondWatch,{start:"t - 135vh",end:"t - 50vh",y:[20,0]}),this.scrollGroup.addKeyframe(this.willChangeElements.fourthWatch,{start:"t - 135vh",end:"t - 50vh",y:[20,0]}),this.scrollGroup.addKeyframe(this.willChangeElements.fifthWatch,{start:"t - 100vh",end:"t - 39vh",y:[70,0]})}static IS_SUPPORTED(){return document.documentElement.classList.contains("enhance-xp")}}},{54:54}],105:[function(e,t,s){"use strict";const i=e(55),r=e(32);r.BREAKPOINTS=[{name:"S",mediaQuery:"only screen and (max-width: 734px)"},{name:"M",mediaQuery:"only screen and (max-width: 1068px)"},{name:"L",mediaQuery:"only screen and (max-width: 1440px)"},{name:"X",mediaQuery:"only screen and (min-width: 1441px)"}];const n=e(56),a=e(89).PictureLazyLoading;({initialize(){Object.assign(n,{Hero:e(100),iOS:e(101),iPadOS:e(102),macOS:e(103),watchOS:e(104)});const t=document.querySelector("body");new i(t).anim.on(r.EVENTS.ON_DOM_GROUPS_CREATED,()=>{new a})}}).initialize()},{100:100,101:101,102:102,103:103,104:104,32:32,55:55,56:56,89:89}]},{},[105]);