/** 1712785483540 **/ !function t(e,i,n){function s(o,a){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(r)return r(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=i[o]={exports:{}};e[o][0].call(c.exports,(function(t){return s(e[o][1][t]||t)}),c,c.exports,t,e,i,n)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o{this.trigger("error")}),this._textureSrc=t.src,t.video?this._videoElement=t.video:t.src instanceof HTMLVideoElement?this._videoElement=t.src:this._textureSrc&&(this._textureSrc.endsWith(".mp4")||this._textureSrc.endsWith(".m3u8")||this._textureSrc.endsWith(".webm"))&&(this._videoElement=document.createElement("video")),this._flat=t.flat,this._maxLat=t.maxLat||80,this._pointerControls=new r({el:t.mouseTarget||this.el}),this.arrowControls=new d,this._easing=t.easing||y,this._sineEasing=t.sineEasing||g,this._mapMinValue=void 0!==t.mapMinValue?t.mapMinValue:.001,this._mapMaxValue=t.mapMaxValue||.999,this._rotationDuration=t.rotationDuration||1600,m&&(this._orientationControls=new o),this._panVelocity=Object.assign({},t.panVelocity||v),this._overshootMultiplier=t.overshootMultiplier||1.25,this._oscillationDuration=t.ocillationDuration||1600,this._oscillationDistance=t.ocillationDistance||12,this._bindMethods();const e=window.THREE?Promise.resolve():_(t.threeUrl||"/ac/libs/three/92/three.min.js");this._cachedPos={lat:0,lon:0},e.then(()=>{this._attach(),this.refreshSize()})}_bindMethods(){this._onPlaying=this._onPlaying.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this._videoElement&&(this._videoElement.addEventListener("playing",this._onPlaying),this._videoElement.addEventListener("loadedmetadata",this._onLoadedMetadata))}_attach(){this._distance=50;const t={lat:0,lon:0};this._cachedPos=t,this._pointerControls.position=t,this._orientationControls&&(this._orientationControls.position=t);let e=h;this._renderer=new e({el:this.el,distance:this._distance,src:this._textureSrc,pointerControls:this._pointerControls,videoElement:this._videoElement,useCanvasForVideoTexture:m,maxLat:this._maxLat}),this._renderer.attach(),this._renderer.domElement.classList.add("threesixty-renderer"),this.el.appendChild(this._renderer.domElement),this._animate=this._animate.bind(this),this._animateRAF=n(this._animate)}_animate(){this._update(),this._animateRAF=n(this._animate)}_update(t){if(!window.THREE)return;let e=t;e||(e=this.arrowControls.isActive?this.arrowControls.position:this._pointerControls.isActive?this._pointerControls.position:this._orientationControls?this._orientationControls.position:this._cachedPos);let i=!1;if(this._cachedPos.lat!==e.lat||this._cachedPos.lon!==e.lon)i=!0;else if(this._videoElement&&this._videoElement.paused)return;let n=this._renderer.update(e);this._cachedPos=Object.assign({},n),this._pointerControls.position=n,this.arrowControls.position=n,this._orientationControls&&(this._orientationControls.position=n),i&&this.trigger(b.POSITION_CHANGE)}refreshSize(){this._onResize()}setPos(t,e){this._pointerControls&&(this._pointerControls.position={lat:t,lon:e}),this._orientationControls&&(this._orientationControls.position={lat:t,lon:e}),this._update({lat:t,lon:e})}set src(t){this._updateTexture(t)}async _updateTexture(t){await this._renderer.updateTexture(t),this.trigger("textureChange")}_onResize(){if(!window.THREE||!this._renderer)return;let t,e;t=this.el.clientWidth,e=this.el.clientHeight,s(this._animateRAF),this._pointerControls.setViewerSize(t,e),this._renderer.refreshSize(t,e),this._animate()}_onLoadedMetadata(){this._videoElement.removeEventListener("loadedmetadata",this._onLoadedMetadata),this._onResize()}_onPlaying(){this._videoElement.removeEventListener("playing",this._onPlaying),this._onResize(),this._orientationControls&&this._orientationControls.enable()}requestOrientationControl(){this._orientationControls&&this._orientationControls.requestPermission()}play(){this._orientationControls&&this._orientationControls.requestPermission(),this._videoElement&&this._videoElement.play()}pause(){this._videoElement&&!this._videoElement.paused&&this._videoElement.pause()}sendMouseDown(t){this._pointerControls.sendMouseDown(t)}destroy(){super.destroy()}get position(){return Object.assign({},this._cachedPos)}get isAtOrigin(){return Math.abs(this.position.lat)<=.5&&Math.abs(this.position.lon)<=.5}oscillateLongitude(){this._pointerControls.cancelInertia(),this.arrowControls.cancelInertia();const t=new THREE.Vector2(this.position.lon,this.position.lat),e=this._oscillationDuration,i={time:e,startPosition:Object.assign({},this.position),targetPosition:Object.assign({},this.position)};return this._currentTimer?this._currentTimer.cancel().then(()=>{this._currentTimer=null,this.oscillateLongitude()}):(s(this._animateRAF),this.trigger(b.ROTATION_START,i),new Promise(n=>{this._currentTimer=c(e,e=>{const n=Math.sin(Math.PI*this._sineEasing.getValue(e)),s=(new THREE.Vector2).copy(t);s.x=t.x-n*this._oscillationDistance,this._tmpCurrentPosition={lat:s.y,lon:s.x},this.trigger(b.ROTATION_UPDATE,{t:e,easedVal:n,startPosition:i.startPosition,currentPosition:{lat:s.y,lon:s.x},targetPosition:i.targetPosition}),this._renderer.positionCamera(s.x,s.y)}),this._currentTimer.promise.then(()=>{this.trigger(b.ROTATION_COMPLETE,i),this.setPos(t.y,t.x),this._animate(),this._currentTimer=null,this._tmpCurrentPosition=null,n()}).catch(()=>{})}))}get mediaElement(){return this._videoElement}panToPosition(t){return this._respositionCameraToPosition(t)}_respositionCameraToPosition(t,e){if(this._currentTimer)return this._currentTimer.cancel().then(()=>{this._currentTimer=null,this.setPos(this._tmpCurrentPosition.y,this._tmpCurrentPosition.x),this._tmpCurrentPosition=null,this._respositionCameraToPosition(t,e)});if(this._pointerControls.cancelInertia(),this.arrowControls.cancelInertia(),t.lat===this.position.lat&&t.lon===this.position.lon)return this.trigger(b.ROTATION_START,{time:0,startPosition:Object.assign({},this.position),targetPosition:Object.assign({},this.position)}),this.trigger(b.ROTATION_COMPLETE,{time:1,startPosition:Object.assign({},this.position),targetPosition:Object.assign({},this.position)}),Promise.resolve();e=e?l(e.x1,e.y1,e.x2,e.y2):this._easing;const i=new THREE.Vector2(this.position.lon,this.position.lat),n=new THREE.Vector2(u(t.lon),t.lat);let r=new THREE.Vector2(t.lon,t.lat),o=i.distanceTo(r),a=i.distanceTo(n);a{this._currentTimer=c(d,t=>{let e;e=1===t?1:p(this._easing.getValue(t),0,1,this._mapMinValue,this._mapMaxValue);const n=h.lerpVectors(i,r,e);this.trigger(b.ROTATION_UPDATE,{t:t,easedVal:e,startPosition:f.startPosition,currentPosition:{lat:n.y,lon:n.x},targetPosition:{lat:r.x,lon:r.y}}),this._tmpCurrentPosition=n,this._renderer.positionCamera(n.x,n.y)}),this._currentTimer.promise.then(()=>{this.trigger(b.ROTATION_COMPLETE,f),this.setPos(t.lat,t.lon),this._animate(),this._currentTimer=null,this._tmpCurrentPosition=null,e()})}).catch(()=>{})}}b.ROTATION_START="RotationStart",b.ROTATION_UPDATE="RotationUpdate",b.ROTATION_COMPLETE="RotationComplete",b.POSITION_CHANGE="360PositionChange",e.exports=b},{10:10,104:104,12:12,13:13,172:172,177:177,3:3,406:406,5:5,6:6,7:7,8:8,9:9,94:94,97:97}],2:[function(t,e,i){"use strict";e.exports=t(1)},{1:1}],3:[function(t,e,i){"use strict";const n=t(4),s=t(11),r=t(177),o=t(172),a={acceleration:{x:.6,y:.6},friction:{x:.95,y:.95},minVelocity:.1,maxVelocity:20};e.exports=class extends n{constructor(t){super(t=Object.assign({},a,t)),this._bindMethods()}_bindMethods(){this.leftArrowDown=this.leftArrowDown.bind(this),this.rightArrowDown=this.rightArrowDown.bind(this),this.downArrowDown=this.downArrowDown.bind(this),this.upArrowDown=this.upArrowDown.bind(this),this.leftArrowUp=this.leftArrowUp.bind(this),this.rightArrowUp=this.rightArrowUp.bind(this),this.downArrowUp=this.downArrowUp.bind(this),this.upArrowUp=this.upArrowUp.bind(this),super._bindMethods()}leftArrowDown(){Math.abs(this._velocity.x-this._horizontalIncrement)this._minVelocity||Math.abs(this._velocity.y)>this._minVelocity}}},{11:11,172:172,177:177,4:4}],4:[function(t,e,i){"use strict";const n=t(177),s=t(172),r=t(11);e.exports=class{constructor(t={}){this._horizontalFriction=t.friction&&t.friction.x||.5,this._verticalFriction=t.friction&&t.friction.x||.5,this._horizontalIncrement=t.acceleration&&t.acceleration.x||.1,this._verticalIncrement=t.acceleration&&t.acceleration.y||.1,this._minVelocity=t.minVelocity||5,this._maxVelocity=t.maxVelocity||20,this._velocity={x:0,y:0},this._bindMethods()}_bindMethods(){this._updateInertia=this._updateInertia.bind(this)}_updateInertia(){Math.abs(this._velocity.x)>this._minVelocity||Math.abs(this._velocity.y)>this._minVelocity?(this._velocity.x*=this._horizontalFriction,this._velocity.y*=this._verticalFriction,this._lon+=this._velocity.x*this._horizontalIncrement,this._lat+=this._velocity.y*this._verticalIncrement,this._inertiaRaf=n(this._updateInertia)):(this._velocity={x:0,y:0},s(this._inertiaRaf),this._inertiaComplete())}cancelInertia(){this._velocity={x:0,y:0},s(this._inertiaRaf)}_inertiaComplete(){}set position(t){this._lat=t.lat,this._lon=r(t.lon)}get position(){return{lat:this._lat,lon:this._lon}}}},{11:11,172:172,177:177}],5:[function(t,e,i){"use strict";const n=t(11),s=t(62);e.exports=class{constructor(t){this._bindMethods()}_bindMethods(){this._onOrientation=this._onOrientation.bind(this)}_addEventListeners(){window.addEventListener("devicemotion",this._onOrientation,!0)}_removeEventListeners(){window.removeEventListener("devicemotion",this._onOrientation,!0)}_onOrientation(t){window.matchMedia("(orientation: portrait)").matches?(this._lon=n(this._lon-.02*t.rotationRate.beta),this._lat=this._lat-.02*t.rotationRate.alpha):t.orientation||-90===window.orientation?(this._lon=n(this._lon+.02*t.rotationRate.alpha),this._lat=this._lat-.02*t.rotationRate.beta):(this._lon=n(this._lon-.02*t.rotationRate.alpha),this._lat=this._lat+.02*t.rotationRate.beta)}set position(t){this._lat=t.lat,this._lon=n(t.lon)}get position(){return{lat:this._lat,lon:this._lon}}disable(){this._removeEventListeners()}enable(){this.requestPermission().then(()=>{this._addEventListeners()})}requestPermission(){return this._permissionPromise||("function"!=typeof DeviceMotionEvent.requestPermission?this._permissionPromise=Promise.resolve():(this._permissionPromise=DeviceMotionEvent.requestPermission(),this._permissionPromise.catch(t=>{s("User didn't grant Gyro permission, or request wasn't tied to a user gesture"),this._permissionPromise=null}))),this._permissionPromise}destroy(){this._removeEventListeners()}}},{11:11,62:62}],6:[function(t,e,i){"use strict";const n=t(11),s=t(4),r={acceleration:{x:.1,y:.1},friction:{x:.95,y:.95},minVelocity:.5,maxVelocity:20};e.exports=class extends s{constructor(t){super(t=Object.assign({},r,t)),this.el=t.el,this._mouseDown=!1,this._scale=1,this._hasInertia=!1!==t.inertia||t.inertia,this._bindMethods(),this._addEventListeners()}_bindMethods(){this._onMouseMove=this._onMouseMove.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onClick=this._onClick.bind(this),super._bindMethods()}_addEventListeners(){this.el.addEventListener("mousedown",this._onMouseDown),this.el.addEventListener("touchstart",this._onMouseDown,{passive:!1}),this.el.addEventListener("click",this._onClick),this.el.addEventListener("touchmove",this._onTouchMove,{passive:!1})}_removeEventListeners(){this.el.removeEventListener("mousedown",this._onMouseDown),this.el.removeEventListener("touchstart",this._onMouseDown),window.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("mouseup",this._onMouseUp),this.el.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchend",this._onMouseUp)}_onMouseUp(t){window.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("mouseup",this._onMouseUp),document.body.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchend",this._onMouseUp),this._mouseDown&&this._hasInertia&&Date.now()-this._mouseMoveTime<300&&this._updateInertia(),setTimeout(()=>{this._mouseDown||(this._dragging=!1)},350),this._mouseDown=!1}sendMouseDown(t){this._onMouseDown(t)}_onClick(t){this._dragging||(this._velocity={x:0,y:0},this._mouseDown=!1,this._cachedPosition=t,document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),document.body.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchend",this._onMouseUp))}_onMouseDown(t){this._mouseDownTime=Date.now();let e=t;if(t.touches){if(1!==t.touches.length)return;e=t.touches[0]}this._cachedPosition=t,window.addEventListener("mousemove",this._onMouseMove),window.addEventListener("mouseup",this._onMouseUp),document.body.addEventListener("touchmove",this._onTouchMove,{passive:!1}),document.body.addEventListener("touchend",this._onMouseUp),this._mouseDown=!0,this._lastMouseX=e.clientX,this._lastMouseY=e.clientY,this._lastMouseDownLon=n(this._lon),this._lastMouseDownLat=this._lat}_onTouchMove(t){t.cancelable&&t.preventDefault(),this._onMouseMove(t)}_onMouseMove(t){if(!this._mouseDown)return;this._dragging=!0;let e=t;if(t.touches&&(e=t.touches[0]),this._cachedPosition.clientX===e.clientX&&this._cachedPosition.clientY===e.clientY)return;const i=this._lastMouseX-e.clientX,s=this._lastMouseY-e.clientY,r=i/this._viewerWidth,o=s/this._viewerHeight;if(this._cachedPosition){const t=this._cachedPosition.clientX-e.clientX,i=this._cachedPosition.clientY-e.clientY;this._velocity.x=Math.max(Math.min(t,this._maxVelocity),-this._maxVelocity),this._velocity.y=Math.max(Math.min(i,this._maxVelocity),-this._maxVelocity)}this._lon=n(135*r+this._lastMouseDownLon),this._lat=90*o+this._lastMouseDownLat,this._cachedPosition=e,this._mouseMoveTime=Date.now()}get isActive(){return this._mouseDown||this._hasInertia&&(Math.abs(this._velocity.x)>this._minVelocity||Math.abs(this._velocity.y)>this._minVelocity)}get scale(){return this._scale}setViewerSize(t,e){this._viewerWidth=t,this._viewerHeight=e}destroy(){this._removeEventListeners()}}},{11:11,4:4}],7:[function(t,e,i){"use strict";const n=t(13),s=t(406),r=s.browser.safari&&s.os.osx?"high-performance":"default",o=t(177);t(172);e.exports=class{constructor(t){this.el=t.el,this._distance=t.distance,this._textureSrc=t.src,this._pointerControls=t.pointerControls,this._videoElement=t.videoElement,this._maxLat=t.maxLat,t.useCanvasForVideoTexture&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._videoElement.clientWidth||640,this._canvas.height=this._videoElement.clientHeight||480,this._canvasCtx=this._canvas.getContext("2d"))}attach(){const t=this.el.clientWidth,e=this.el.clientHeight,i=t/e;this._camera=new THREE.PerspectiveCamera(75,i,1,1100),this._camera.target=new THREE.Vector3(0,0,0),this._scene=new THREE.Scene,this._geometry=new THREE.SphereBufferGeometry(500,60,40),this._geometry.scale(-1,1,1),this._texture=this._createTexture(this._textureSrc),this._material=new THREE.MeshBasicMaterial({map:this._texture}),this._mesh=new THREE.Mesh(this._geometry,this._material),this._scene.add(this._mesh),this._renderer=new THREE.WebGLRenderer({antialias:!1,powerPreference:r}),this._renderer.setPixelRatio(window.devicePixelRatio),this._renderer.setSize(t,e),this._canvas&&this._tick()}_tick(){this._canvasCtx&&this._videoElement&&(this._canvasCtx.drawImage(this._videoElement,0,0,this._canvas.width,this._canvas.height),this._texture.needsUpdate=!0),o(()=>this._tick())}update(t){const e=t,i=Math.max(-this._maxLat,Math.min(this._maxLat,e.lat)),n=THREE.Math.degToRad(90-i),s=THREE.Math.degToRad(e.lon),r=this._distance*Math.sin(n)*Math.cos(s),o=this._distance*Math.cos(n),a=this._distance*Math.sin(n)*Math.sin(s);return this._camera.zoom=this._pointerControls.scale,this._camera.position.x=r,this._camera.position.y=o,this._camera.position.z=a,this._camera.lookAt(this._camera.target),this._camera.updateProjectionMatrix(),this._renderer.render(this._scene,this._camera),{lat:i,lon:e.lon,x:r,y:o,z:a}}refreshSize(t,e){this._canvas&&(this._canvas.width=THREE.Math.ceilPowerOfTwo(this._videoElement.videoWidth||1),this._canvas.height=THREE.Math.ceilPowerOfTwo(this._videoElement.videoHeight||1)),this._camera.aspect=t/e,this._camera.updateProjectionMatrix(),this._renderer.setSize(t,e),this._renderer.render(this._scene,this._camera)}positionCamera(t,e){const i=n(e,t,this._distance);this._camera.position.copy(i),this._camera.lookAt(this._camera.target),this._camera.updateProjectionMatrix(),this._renderer.render(this._scene,this._camera)}get domElement(){return this._renderer.domElement}_createTexture(t){if(t instanceof HTMLVideoElement){this._videoElement=t,this._videoElement.setAttribute("playsinline","playsinline"),this._videoElement.setAttribute("webkit-playsinline","webkit-playsinline");const e=this._canvas?new THREE.CanvasTexture(this._canvas):new THREE.VideoTexture(this._videoElement);return e.minFilter=THREE.LinearFilter,e.format=THREE.RGBFormat,e}if(t.endsWith(".mp4")||t.endsWith(".m3u8")||t.endsWith(".webm")){this._videoElement||(this._videoElement=document.createElement("video")),this._videoElement.src=t,this._videoElement.loop=!0,this._videoElement.muted=!0,this._videoElement.crossOrigin="anonymous",this._videoElement.setAttribute("webkit-playsinline","webkit-playsinline"),this._videoElement.setAttribute("playsinline","playsinline"),this._videoElement=this._videoElement;const e=this._canvas?new THREE.CanvasTexture(this._canvas):new THREE.VideoTexture(this._videoElement);return e.minFilter=THREE.LinearFilter,e.format=THREE.RGBFormat,e}return(new THREE.TextureLoader).load(t)}async updateTexture(t){return new Promise(e=>{(new THREE.TextureLoader).load(t,t=>{this._material.map=t,this._material.map.needsUpdate=!0,e()})})}}},{13:13,172:172,177:177,406:406}],8:[function(t,e,i){"use strict";const n=t(11);e.exports=t=>{let e=t;return Math.abs(e)>180?n(e):e>0?-360+e:360+e}},{11:11}],9:[function(t,e,i){"use strict";e.exports=function(t){return new Promise((e,i)=>{const n=document.createElement("script");n.type="text/javascript",n.src=t,n.onload=e,n.onerror=i;try{document.body.appendChild(n)}catch(t){i(t)}})}},{}],10:[function(t,e,i){"use strict";e.exports=function(t,e,i,n,s){return n+(s-n)*(t-e)/(i-e)}},{}],11:[function(t,e,i){"use strict";e.exports=t=>{let e=t;return e>180?e=e%180-180:e<=-180&&(e=e%180+180),e}},{}],12:[function(t,e,i){"use strict";const n=t(177);t(172);e.exports=function(t,e){let i,s=0,r=!1,o=new Promise((i,o)=>{const a=performance.now(),l=()=>{if(r)return void o();const h=(performance.now()-a)/t;h>=1?(e(1),i()):(s=h,e(h),n(l))};n(l)});return o.catch(()=>{i()}),{promise:o,cancel:()=>(r=!0,new Promise(t=>{i=()=>{t()}}))}}},{172:172,177:177}],13:[function(t,e,i){"use strict";e.exports=function(t,e,i){const n=THREE.Math.degToRad(90-t),s=THREE.Math.degToRad(e),r=i*Math.sin(n)*Math.cos(s),o=i*Math.cos(n),a=i*Math.sin(n)*Math.sin(s);return new THREE.Vector3(r,o,a)}},{}],14:[function(t,e,i){"use strict";var n=t(21),s=t(22),r=t(25),o=t(96).EventEmitterMicro,a=o.prototype,l=t(31),h=t(33),c=function(t,e){o.call(this),this._options=e||{},this._selector=e.selector||".navitem",this._allowMultiSelection=e.multiSelection||!1;var i=e.state||l.SELECTED;this.el=t,this._navItems=t.querySelectorAll(this._selector),this._navItems=Array.prototype.slice.call(this._navItems),this._state=i,this._navKeys={},this.selectOption=this.selectOption.bind(this),this._handleKeyDown=this._handleKeyDown.bind(this),this._setup()};c.ONSELECT="onSelect",c.ONFOCUS="onFocus";var u=c.prototype=Object.create(a);u._setup=function(){for(var t=[h.ARROW_DOWN,h.ARROW_RIGHT],e=[h.ARROW_UP,h.ARROW_LEFT],i=[h.ENTER,h.SPACEBAR],n=0;n-1&&document.activeElement!==this._navItems[this.focusedNavItemIndex]&&(this.focusedNavItemIndex=i),this._allowMultiSelection?this._toggleState():(this._navItems[this.selectedNavitemIndex].setAttribute(this._state,"false"),this._navItems[this.focusedNavItemIndex].setAttribute(this._state,"true")),this.selectedNavitemIndex=this.focusedNavItemIndex,e||this.trigger(c.ONSELECT,{event:t,index:this.selectedNavitemIndex,el:this._navItems[this.selectedNavitemIndex]})},u._toggleState=function(){var t=this._navItems[this.focusedNavItemIndex].getAttribute(this._state);r(t)?this._navItems[this.focusedNavItemIndex].setAttribute(this._state,"false"):this._navItems[this.focusedNavItemIndex].setAttribute(this._state,"true")},u._calculateIndex=function(t,e){var i=e;if(!0===t){if(i=++i>=this._navItems.length?0:i,!r(this._navItems[i].getAttribute(l.DISABLED))||this._navItems[i].hasAttribute("disabled"))return i}else if(i=--i<0?this._navItems.length-1:i,!r(this._navItems[i].getAttribute(l.DISABLED))||this._navItems[i].hasAttribute("disabled"))return i;return this._calculateIndex(t,i)},u.updateNavItems=function(){var t=this.el.querySelectorAll(this._selector);this._navItems=Array.prototype.slice.call(t)},u.addNavItem=function(t){t&&t.nodeType&&this._navItems.indexOf(t)<0&&(r(t.getAttribute(l.DISABLED))||s(t),this._navItems.push(t))},u.setSelectedItemByIndex=function(t,e){this._allowMultiSelection||isNaN(this.selectedNavitemIndex)||this._navItems[this.selectedNavitemIndex].setAttribute(this._state,"false"),this.focusedNavItemIndex=t,this.selectedNavitemIndex=t,this._navItems[this.selectedNavitemIndex].setAttribute(this._state,"true"),e||this.trigger(c.ONSELECT,{event:null,index:this.focusedNavItemIndex,el:this._navItems[this.focusedNavItemIndex]})},u.getSelectedItem=function(){return this._navItems[this.selectedNavitemIndex]},u.getFocusedItem=function(t){return this._navItems[this.focusedNavItemIndex]},u.addNavkey=function(t,e){"function"==typeof e&&"number"==typeof t?this._navKeys[t]=e:console.warn("incorrect types arguments were passed")},u.removeNavkey=function(t){delete this._navKeys[t]},u.destroy=function(){for(var t in a.destroy.call(this),this.stop(),this.el=null,this._options=null,this._selector=null,this.focusedNavItemIndex=null,this.selectedNavitemIndex=null,this._navItems=null,this._state=null,this.selectOption=null,this._handleKeyDown=null,this._navKeys)this._navKeys.hasOwnProperty(t)&&this.removeNavkey(t);this._navKeys=null},e.exports=c},{21:21,22:22,25:25,31:31,33:33,96:96}],15:[function(t,e,i){"use strict";var n=t(20),s=t(24),r=t(30),o=function(t,e){e=e||{},this._tabbables=null,this._excludeHidden=e.excludeHidden,this._firstTabbableElement=e.firstFocusElement,this._lastTabbableElement=null,this._relatedTarget=null,this.el=t,this._handleOnFocus=this._handleOnFocus.bind(this)},a=o.prototype;a.start=function(t){this.updateTabbables(),s(this.el,null,this._excludeHidden);let e=document.activeElement;this._firstTabbableElement?this.el.contains(document.activeElement)||t||(this._firstTabbableElement.focus(),e=this._firstTabbableElement):console.warn("this._firstTabbableElement is null, CircularTab needs at least one tabbable element."),this._relatedTarget=e,document.addEventListener("focus",this._handleOnFocus,!0)},a.stop=function(){r(this.el),document.removeEventListener("focus",this._handleOnFocus,!0)},a.updateTabbables=function(){this._tabbables=n.getTabbableElements(this.el,this._excludeHidden),this._firstTabbableElement=this._firstTabbableElement||this._tabbables[0],this._lastTabbableElement=this._tabbables[this._tabbables.length-1]},a._handleOnFocus=function(t){if(this.el.contains(t.target))this._relatedTarget=t.target;else{if(t.preventDefault(),this.updateTabbables(),this._relatedTarget===this._lastTabbableElement||null===this._relatedTarget)return this._firstTabbableElement.focus(),void(this._relatedTarget=this._firstTabbableElement);if(this._relatedTarget===this._firstTabbableElement&&this._lastTabbableElement)return this._lastTabbableElement.focus(),void(this._relatedTarget=this._lastTabbableElement)}},a.destroy=function(){this.stop(),this.el=null,this._tabbables=null,this._firstTabbableElement=null,this._lastTabbableElement=null,this._relatedTarget=null,this._handleOnFocus=null},e.exports=o},{20:20,24:24,30:30}],16:[function(t,e,i){"use strict";var n=t(33),s=0,r=["button","checkbox","listbox","option","menuitem","menuitemradio","menuitemcheckbox","tab"],o=t(69),a=function(){this._elements={},this._callbacks={},this._bindEvents(),this._proxies={},this._setup()},l=a.prototype;l._bindEvents=function(){this._handleKeydown=this._handleKeydown.bind(this),this._handleHover=this._handleHover.bind(this)},l._setup=function(){this._addProxy("click",this._clickProxy),this._addProxy("hover",this._hoverProxy)},l._addProxy=function(t,e){this._proxies[t]=this._proxies[t]||[],this._proxies[t].push(e)},l._removeProxy=function(t,e){if(this._proxies[t]){var i=this._proxies[t].indexOf(e);i>-1&&this._proxies[t].splice(i,1),0===this._proxies[t].length&&delete this._proxies[t]}},l.addEventListener=function(t,e,i){this._proxies[e]&&(this._proxies[e].forEach(function(n){n.call(this,t,e,i)}.bind(this)),t.addEventListener(e,i))},l.removeEventListener=function(t,e,i){this._proxies[e]&&(this._proxies[e].forEach(function(n){n.call(this,t,e,i,!0)}.bind(this)),t.removeEventListener(e,i))},l._clickProxy=function(t,e,i,n){var s=t.getAttribute("role");r.indexOf(s)<0&&o("element's role is not set to any of the following "+r.join(", ")),n?(t.removeEventListener("keydown",this._handleKeydown),this._removeCallback(t,e,i)):(t.addEventListener("keydown",this._handleKeydown),this._addCallback(t,e,i))},l._hoverProxy=function(t,e,i,n){n?(t.removeEventListener("focus",this._handleHover,!0),t.removeEventListener("blur",this._handleHover,!0),i&&this._removeCallback(t,e,i)):(t.addEventListener("focus",this._handleHover,!0),t.addEventListener("blur",this._handleHover,!0),i&&this._addCallback(t,e,i))},l._handleKeydown=function(t){if(t.ctrlKey||t.altKey||t.metaKey)return!0;t.keyCode!==n.SPACEBAR&&t.keyCode!==n.ENTER||this._executeCallback(t,"click")},l._handleHover=function(t){"focus"===t.type?t.currentTarget.classList.add("hover"):t.currentTarget.classList.remove("hover"),this._executeCallback(t,"hover")},l._executeCallback=function(t,e){var i=this._getCallbacksByElement(t.currentTarget,e);if(i)for(var n=0;nthis.originalSize&&this._onResize(),this.isDetecting||(window.ResizeObserver?(this.resizeObserver=new ResizeObserver(this._onResize),this.resizeObserver.observe(this.span)):this.iframe.contentWindow.addEventListener("resize",this._onResize),this.isDetecting=!0)},s._resize=function(){this.currentSize=parseFloat(window.getComputedStyle(this.span)["font-size"]),this.originalSize=0},r._isDisplayed=function(t){var e=t.getBoundingClientRect();return(0!==e.top||0!==e.left||0!==e.width||0!==e.height)&&"hidden"!==window.getComputedStyle(t).visibility},r.getTabbableElements=function(t,e){for(var i=t.querySelectorAll(this.focusableSelectors),n=i.length,s=[],r=0;r{n.isTabbableElement(t)||t.setAttribute("tabindex","0")};e.exports=function(t){t instanceof Node?s(t):t.forEach(t=>{s(t)})}},{20:20}],23:[function(t,e,i){"use strict";var n=t(31),s=t(20),r=function(t,e){var i=t.getAttribute("data-original-"+e);i||(i=t.getAttribute(e)||"",t.setAttribute("data-original-"+e,i))};e.exports=function(t,e){if(s.isFocusableElement(t,e))r(t,"tabindex"),t.setAttribute("tabindex","-1");else for(var i=s.getTabbableElements(t,e),o=i.length;o--;)r(i[o],"tabindex"),i[o].setAttribute("tabindex","-1");r(t,n.HIDDEN),t.setAttribute(n.HIDDEN,"true")}},{20:20,31:31}],24:[function(t,e,i){"use strict";var n=t(23);e.exports=function t(e,i,s){i=i||document.body;for(var r=e,o=e;r=r.previousElementSibling;)n(r,s);for(;o=o.nextElementSibling;)n(o,s);e.parentElement&&e.parentElement!==i&&t(e.parentElement,i,s)}},{23:23}],25:[function(t,e,i){"use strict";e.exports=function(t){return"string"==typeof t?"true"===(t=t.toLowerCase()):t}},{}],26:[function(t,e,i){"use strict";e.exports=function(t,e){let i;i=t instanceof NodeList?t:[].concat(t),e=Array.isArray(e)?e:[].concat(e),i.forEach(t=>{e.forEach(e=>{t.removeAttribute(e)})})}},{}],27:[function(t,e,i){"use strict";e.exports=function(t,e,i){let n;"string"!=typeof i&&(i=i.toString()),n=t instanceof NodeList?t:[].concat(t),n.forEach(t=>{t.setAttribute(e,i)})}},{}],28:[function(t,e,i){"use strict";console.warn('"setAttributes" is deprecated, please use "setAttributeForElements" instead.'),e.exports=t(27)},{27:27}],29:[function(t,e,i){"use strict";var n=t(26),s=t(31),r="data-original-",o=function(t,e){var i=t.getAttribute(r+e);null!==i&&(""===i?n(t,e):t.setAttribute(e,i),n(t,r+e))};e.exports=function(t){o(t,"tabindex"),o(t,s.HIDDEN);for(var e=t.querySelectorAll("[".concat(r+"tabindex","]")),i=e.length;i--;)o(e[i],"tabindex")}},{26:26,31:31}],30:[function(t,e,i){"use strict";var n=t(29);e.exports=function t(e,i){i=i||document.body;for(var s=e,r=e;s=s.previousElementSibling;)n(s);for(;r=r.nextElementSibling;)n(r);e.parentElement&&e.parentElement!==i&&t(e.parentElement,i)}},{29:29}],31:[function(t,e,i){"use strict";e.exports={AUTOCOMPLETE:"aria-autocomplete",CHECKED:"aria-checked",DISABLED:"aria-disabled",EXPANDED:"aria-expanded",HASPOPUP:"aria-haspopup",HIDDEN:"aria-hidden",INVALID:"aria-invalid",LABEL:"aria-label",LEVEL:"aria-level",MULTILINE:"aria-multiline",MULTISELECTABLE:"aria-multiselectable",ORIENTATION:"aria-orientation",PRESSED:"aria-pressed",READONLY:"aria-readonly",REQUIRED:"aria-required",SELECTED:"aria-selected",SORT:"aria-sort",VALUEMAX:"aria-valuemax",VALUEMIN:"aria-valuemin",VALUENOW:"aria-valuenow",VALUETEXT:"aria-valuetext",ATOMIC:"aria-atomic",BUSY:"aria-busy",LIVE:"aria-live",RELEVANT:"aria-relevant",DROPEFFECT:"aria-dropeffect",GRABBED:"aria-grabbed",ACTIVEDESCENDANT:"aria-activedescendant",CONTROLS:"aria-controls",DESCRIBEDBY:"aria-describedby",FLOWTO:"aria-flowto",LABELLEDBY:"aria-labelledby",OWNS:"aria-owns",POSINSET:"aria-posinset",SETSIZE:"aria-setsize"}},{}],32:[function(t,e,i){"use strict";e.exports={selectors:["input","select","textarea","button","optgroup","option","menuitem","fieldset","object","a[href]","[tabindex]","[contenteditable]"].join(","),nodeName:{INPUT:"input",SELECT:"select",TEXTAREA:"textarea",BUTTON:"button",OPTGROUP:"optgroup",OPTION:"option",MENUITEM:"menuitem",FIELDSET:"fieldset",OBJECT:"object",A:"a"}}},{}],33:[function(t,e,i){"use strict";e.exports=t(125)},{125:125}],34:[function(t,e,i){"use strict";e.exports={ALERT:"alert",ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",DIALOG:"dialog",GRIDCELL:"gridcell",LINK:"link",LOG:"log",MARQUEE:"marquee",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",OPTION:"option",PROGRESSBAR:"progressbar",RADIO:"radio",SCROLLBAR:"scrollbar",SLIDER:"slider",SPINBUTTON:"spinbutton",STATUS:"status",SWITCH:"switch",TAB:"tab",TABPANEL:"tabpanel",TEXTBOX:"textbox",TIMER:"timer",TOOLTIP:"tooltip",TREEITEM:"treeitem",COMBOBOX:"combobox",GRID:"grid",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",RADIOGROUP:"radiogroup",TABLIST:"tablist",TREE:"tree",TREEGRID:"treegrid",ARTICLE:"article",COLUMNHEADER:"columnheader",DEFINITION:"definition",DIRECTORY:"directory",DOCUMENT:"document",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTITEM:"listitem",MATH:"math",NOTE:"note",PRESENTATION:"presentation",REGION:"region",ROW:"row",ROWGROUP:"rowgroup",ROWHEADER:"rowheader",SEPARATOR:"separator",TOOLBAR:"toolbar",APPLICATION:"application",BANNER:"banner",COMPLEMENTARY:"complementary",CONTENTINFO:"contentinfo",FORM:"form",MAIN:"main",NAVIGATION:"navigation",SEARCH:"search"}},{}],35:[function(t,e,i){"use strict";var n=t(36),s={complete:function(t,e){},error:function(t,e){},method:"GET",headers:{},success:function(t,e,i){},timeout:5e3},r={ajax:function(t,e){e=function(){for(var t=1;t=200&&this.xhr.status<300?(i(this.xhr.responseText,this.xhr.status,this.xhr),t(this.xhr,this.status)):(e(this.xhr,this.status),t(this.xhr,this.status)))}.bind(this)},e.exports=s},{37:37}],40:[function(t,e,i){"use strict";e.exports={log:t(41)}},{41:41}],41:[function(t,e,i){"use strict";var n=!!function(){try{return window.localStorage.getItem("f7c9180f-5c45-47b4-8de4-428015f096c0")}catch(t){}}();e.exports=function(){window.console&&void 0!==console.log&&n&&console.log.apply(console,Array.prototype.slice.call(arguments,0))}},{}],42:[function(t,e,i){"use strict";var n,s=t(154),r=t(153),o=t(96).EventEmitterMicro,a=t(90),l=t(70),h=t(71),c=t(40);try{n=t("@marcom/ac-analytics")}catch(t){c.log(t.message)}var u={dataAttribute:"analytics-share",interactionEvents:["click"],autoEnable:!0},d=function(t){t=t||{},this.options=s(u,t),o.call(this),this.elements=[],this.eventObserver=null,this.publishShareClick=this.publishShareClick.bind(this),this.options.autoEnable&&this.enable()},p=o.prototype,f=d.prototype=r(p);f.enable=function(){if(!n)return!1;this._createObserver(),this.bindEventListener()},f.disable=function(){if(!n)return!1;this.unbindEventListener()},f.bindEventListener=function(){var t;this.elements=this.populateElements(),t=this.elements.length;for(var e=0;e * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */e.exports=function(t,e,i,n){function s(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function o(t){return 3*t}function a(t,e,i){return((s(e,i)*t+r(e,i))*t+o(e))*t}this.get=function(l){return t===e&&i===n?l:a(function(e){for(var n=e,l=0;l<4;++l){var h=(u=n,3*s(d=t,p=i)*u*u+2*r(d,p)*u+o(d));if(0===h)return n;var c=a(n,t,i)-e;n-=c/h}var u,d,p;return n}(l),e,n)}}},{}],96:[function(t,e,i){"use strict";e.exports={EventEmitterMicro:t(97)}},{97:97}],97:[function(t,e,i){"use strict";function n(){this._events={}}var s=n.prototype;s.on=function(t,e){this._events[t]=this._events[t]||[],this._events[t].unshift(e)},s.once=function(t,e){var i=this;this.on(t,(function n(s){i.off(t,n),void 0!==s?e(s):e()}))},s.off=function(t,e){if(this.has(t)){if(1===arguments.length)return this._events[t]=null,void delete this._events[t];var i=this._events[t].indexOf(e);-1!==i&&this._events[t].splice(i,1)}},s.trigger=function(t,e){if(this.has(t))for(var i=this._events[t].length-1;i>=0;i--)void 0!==e?this._events[t][i](e):this._events[t][i]()},s.has=function(t){return t in this._events!=!1&&0!==this._events[t].length},s.destroy=function(){for(var t in this._events)this._events[t]=null;this._events=null},e.exports=n},{}],98:[function(t,e,i){"use strict";e.exports={getWindow:function(){return window},getDocument:function(){return document},getNavigator:function(){return navigator}}},{}],99:[function(t,e,i){"use strict";var n=t(406).os,s=t(103).original,r=t(98),o=t(113);function a(){var t=r.getWindow();return!s()&&!t.orientation||n.windows}e.exports=o(a),e.exports.original=a},{103:103,113:113,406:406,98:98}],100:[function(t,e,i){"use strict";var n=t(99).original,s=t(102).original,r=t(113);function o(){return!n()&&!s()}e.exports=r(o),e.exports.original=o},{102:102,113:113,99:99}],101:[function(t,e,i){"use strict";var n=t(98);e.exports=function(){var t=n.getWindow();return"devicePixelRatio"in t&&t.devicePixelRatio>=1.5}},{98:98}],102:[function(t,e,i){"use strict";var n=t(99).original,s=t(98),r=t(113);function o(){var t=s.getWindow(),e=t.screen.width;return t.orientation&&t.screen.height=600}e.exports=r(o),e.exports.original=o},{113:113,98:98,99:99}],103:[function(t,e,i){"use strict";var n=t(98),s=t(113);function r(){var t=n.getWindow(),e=n.getDocument(),i=n.getNavigator();return!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch||i.maxTouchPoints>0||i.msMaxTouchPoints>0)}e.exports=s(r),e.exports.original=r},{113:113,98:98}],104:[function(t,e,i){"use strict";var n=t(98),s=t(113);function r(){var t=n.getDocument().createElement("canvas");return"function"==typeof t.getContext&&!(!t.getContext("webgl")&&!t.getContext("experimental-webgl"))}e.exports=s(r),e.exports.original=r},{113:113,98:98}],105:[function(t,e,i){"use strict";e.exports=t(111)},{111:111}],106:[function(t,e,i){"use strict";e.exports={STANDARD:"standard",IOS:"ios"}},{}],107:[function(t,e,i){"use strict";var n=t(70),s=t(96).EventEmitterMicro,r=t(110),o=t(106),a=new s;function l(t){a.fullscreenElement()?function(t){a.trigger(r.ENTERFULLSCREEN,t)}(t):function(t){a.trigger(r.EXITFULLSCREEN,t)}(t)}n(document,"fullscreenchange",l),a.fullscreenEnabled=function(t){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)},a.fullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement},a.exitFullscreen=function(t){var e;t&&"function"==typeof t.webkitExitFullscreen?t.webkitExitFullscreen():"function"==typeof document.exitFullscreen?e="exitFullscreen":"function"==typeof document.webkitExitFullscreen?e="webkitExitFullscreen":"function"==typeof document.webkitCancelFullScreen?e="webkitCancelFullScreen":"function"==typeof document.mozCancelFullScreen?e="mozCancelFullScreen":"function"==typeof document.msExitFullscreen&&(e="msExitFullscreen"),"function"==typeof document[e]&&document[e].call(document)},a.requestFullscreen=function(t){var e;"function"==typeof t.requestFullscreen?e="requestFullscreen":"function"==typeof t.webkitRequestFullscreen?e="webkitRequestFullscreen":"function"==typeof t.webkitRequestFullScreen?e="webkitRequestFullScreen":"function"==typeof t.mozRequestFullScreen?e="mozRequestFullScreen":"function"==typeof t.msRequestFullscreen&&(e="msRequestFullscreen"),"function"==typeof t[e]&&t[e].call(t)},a.mode=o.STANDARD,e.exports=a},{106:106,110:110,70:70,96:96}],108:[function(t,e,i){"use strict";var n=t(109),s=t(107);e.exports={create:function(){var t=s;return"webkitEnterFullscreen"in document.createElement("video")&&!("webkitRequestFullScreen"in document.createElement("div"))&&(t=n),t}}},{107:107,109:109}],109:[function(t,e,i){"use strict";var n,s=t(70),r=t(96).EventEmitterMicro,o=t(110),a=t(106);function l(t){c.trigger(o.ENTERFULLSCREEN,t)}function h(t){n=void 0,c.trigger(o.EXITFULLSCREEN,t)}s(document,"webkitbeginfullscreen",l,!0),s(document,"webkitendfullscreen",h,!0);var c=new r;c.fullscreenEnabled=function(t){return!!t.webkitSupportsFullscreen},c.fullscreenElement=function(){return n},c.exitFullscreen=function(t){t&&"function"==typeof t.webkitExitFullscreen&&t.webkitExitFullscreen()},c.requestFullscreen=function(t){"function"==typeof t.webkitEnterFullscreen&&t.webkitEnterFullscreen()},c.mode=a.IOS,e.exports=c},{106:106,110:110,70:70,96:96}],110:[function(t,e,i){"use strict";e.exports={ENTERFULLSCREEN:"enterfullscreen",EXITFULLSCREEN:"exitfullscreen"}},{}],111:[function(t,e,i){"use strict";t(96).EventEmitterMicro;var n=t(108),s=n.create();function r(){throw new Error("Error: Element missing. ac-fullscreen requires an element to be specified")}var o={requestFullscreen:function(t){return t||r(),s.requestFullscreen(t)},fullscreenEnabled:function(t){return t||r(),s.fullscreenEnabled(t)},fullscreenElement:function(){return s.fullscreenElement()},exitFullscreen:function(t){return t||r(),s.exitFullscreen(t)},getMode:function(){return s.mode},on:function(){return s.on.apply(s,arguments)},off:function(){return s.off.apply(s,arguments)},once:function(){return s.once.apply(s,arguments)}};e.exports=o},{108:108,96:96}],112:[function(t,e,i){"use strict";e.exports=function(t,e){var i;function n(){var n=arguments,s=function(){i=null,t.apply(this,n)}.bind(this);clearTimeout(i),i=setTimeout(s,e)}return n.cancel=function(){clearTimeout(i)},n}},{}],113:[function(t,e,i){"use strict";e.exports=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}},{}],114:[function(t,e,i){"use strict";e.exports=function(t,e){var i=null;return function(){null===i&&(t.apply(this,arguments),i=setTimeout((function(){i=null}),e))}}},{}],115:[function(t,e,i){"use strict";var n=t(116);n.setup(),t(414),n.complete(),e.exports=window.TweenLite},{116:116,414:414}],116:[function(t,e,i){"use strict";var n,s,r,o=t(174),a=t(171);e.exports=(n=!0,s=window.requestAnimationFrame,r=window.cancelAnimationFrame,{useRAFEmitter:function(t){n=t},setup:function(){n&&(window.requestAnimationFrame=o,window.cancelAnimationFrame=a)},complete:function(){window.requestAnimationFrame=s,window.cancelAnimationFrame=r}})},{171:171,174:174}],117:[function(t,e,i){"use strict";var n=t(116);e.exports=function(){n.setup();var e=t(413);return n.complete(),e}},{116:116,413:413}],118:[function(t,e,i){e.exports=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},{}],119:[function(t,e,i){e.exports=function(t){return t&&t.__esModule?t:{default:t}}},{}],120:[function(t,e,i){var n=t(121);e.exports=function(t,e){if(null==t)return{};var i,s,r=n(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}},{121:121}],121:[function(t,e,i){e.exports=function(t,e){if(null==t)return{};var i,n,s={},r=Object.keys(t);for(n=0;n=0||(s[i]=t[i]);return s}},{}],122:[function(t,e,i){},{}],123:[function(t,e,i){"use strict";var n=t(96).EventEmitterMicro,s=t(73),r=t(74),o=t(153),a=t(124);function l(t){this._keysDown={},this._DOMKeyDown=this._DOMKeyDown.bind(this),this._DOMKeyUp=this._DOMKeyUp.bind(this),this._context=t||document,s(this._context,"keydown",this._DOMKeyDown,!0),s(this._context,"keyup",this._DOMKeyUp,!0),n.call(this)}var h=l.prototype=o(n.prototype);h.onDown=function(t,e){return this.on("keydown:"+t,e)},h.onceDown=function(t,e){return this.once("keydown:"+t,e)},h.offDown=function(t,e){return this.off("keydown:"+t,e)},h.onUp=function(t,e){return this.on("keyup:"+t,e)},h.onceUp=function(t,e){return this.once("keyup:"+t,e)},h.offUp=function(t,e){return this.off("keyup:"+t,e)},h.isDown=function(t){return t+="",this._keysDown[t]||!1},h.isUp=function(t){return!this.isDown(t)},h.destroy=function(){return r(this._context,"keydown",this._DOMKeyDown,!0),r(this._context,"keyup",this._DOMKeyUp,!0),this._keysDown=null,this._context=null,n.prototype.destroy.call(this),this},h._DOMKeyDown=function(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyDown(i),this.trigger("keydown:"+i,e)},h._DOMKeyUp=function(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyUp(i),this.trigger("keyup:"+i,e)},h._normalizeKeyboardEvent=function(t){return new a(t)},h._trackKeyUp=function(t){this._keysDown[t]&&(this._keysDown[t]=!1)},h._trackKeyDown=function(t){this._keysDown[t]||(this._keysDown[t]=!0)},e.exports=l},{124:124,153:153,73:73,74:74,96:96}],124:[function(t,e,i){"use strict";var n=["keyLocation"];function s(t){var e;for(e in this.originalEvent=t,t)-1===n.indexOf(e)&&"function"!=typeof t[e]&&(this[e]=t[e]);this.location=void 0!==this.originalEvent.location?this.originalEvent.location:this.originalEvent.keyLocation}s.prototype={preventDefault:function(){if("function"==typeof this.originalEvent.preventDefault)return this.originalEvent.preventDefault();this.originalEvent.returnValue=!1},stopPropagation:function(){return this.originalEvent.stopPropagation()}},e.exports=s},{}],125:[function(t,e,i){"use strict";e.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,COMMAND:91,CAPSLOCK:20,ESCAPE:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ASTERISK:106,NUMPAD_PLUS:107,NUMPAD_DASH:109,NUMPAD_DOT:110,NUMPAD_SLASH:111,NUMPAD_EQUALS:187,TICK:192,LEFT_BRACKET:219,RIGHT_BRACKET:221,BACKSLASH:220,SEMICOLON:186,APOSTRAPHE:222,APOSTROPHE:222,SPACEBAR:32,CLEAR:12,COMMA:188,DOT:190,SLASH:191}},{}],126:[function(t,e,i){"use strict";e.exports=function(t){return!(!t||!t.nodeType)}},{}],127:[function(t,e,i){"use strict";const n=t(97),s=t(129);e.exports=class extends n{constructor(t){super(),this._keysDown={},this._DOMKeyDown=this._DOMKeyDown.bind(this),this._DOMKeyUp=this._DOMKeyUp.bind(this),this._context=t||document,this._context.addEventListener("keydown",this._DOMKeyDown,!0),this._context.addEventListener("keyup",this._DOMKeyUp,!0)}onDown(t,e){return this.on("keydown:"+t,e)}onceDown(t,e){return this.once("keydown:"+t,e)}offDown(t,e){return this.off("keydown:"+t,e)}onUp(t,e){return this.on("keyup:"+t,e)}onceUp(t,e){return this.once("keyup:"+t,e)}offUp(t,e){return this.off("keyup:"+t,e)}isDown(t){return t+="",this._keysDown[t]||!1}isUp(t){return!this.isDown(t)}destroy(){return this._context.removeEventListener("keydown",this._DOMKeyDown,!0),this._context.removeEventListener("keyup",this._DOMKeyUp,!0),this._keysDown=null,this._context=null,super.destroy(),this}_DOMKeyDown(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyDown(i),this.trigger("keydown:"+i,e)}_DOMKeyUp(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyUp(i),this.trigger("keyup:"+i,e)}_normalizeKeyboardEvent(t){return new s(t)}_trackKeyUp(t){this._keysDown[t]&&(this._keysDown[t]=!1)}_trackKeyDown(t){this._keysDown[t]||(this._keysDown[t]=!0)}}},{129:129,97:97}],128:[function(t,e,i){"use strict";const n=t(127);e.exports=new n},{127:127}],129:[function(t,e,i){"use strict";const n=t(130),s=["keyLocation","keyIdentifier"];e.exports=class{constructor(t){this.originalEvent=t;for(let e in t)-1===s.indexOf(e)&&"function"!=typeof t[e]&&(this[e]=t[e]);this.keyCode||(this.keyCode=this._getKeyCode()),this.location=void 0!==this.originalEvent.location?this.originalEvent.location:this.originalEvent.keyLocation}preventDefault(){if("function"==typeof this.originalEvent.preventDefault)return this.originalEvent.preventDefault();this.originalEvent.returnValue=!1}stopPropagation(){return this.originalEvent.stopPropagation()}_getKeyCode(){return n[this.code]||-1}}},{130:130}],130:[function(t,e,i){"use strict";e.exports={Backspace:8,Tab:9,Enter:13,NumpadEnter:13,ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,AltLeft:18,AltRight:18,CapsLock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Delete:46,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,KeyA:65,KeyB:66,KeyC:67,KeyD:68,KeyE:69,KeyF:70,KeyG:71,KeyH:72,KeyI:73,KeyJ:74,KeyK:75,KeyL:76,KeyM:77,KeyN:78,KeyO:79,KeyP:80,KeyQ:81,KeyR:82,KeyS:83,KeyT:84,KeyU:85,KeyV:86,KeyW:87,KeyX:88,KeyY:89,KeyZ:90,Numpad0:96,Numpad1:97,Numpad2:98,Numpad3:99,Numpad4:100,Numpad5:101,Numpad6:102,Numpad7:103,Numpad8:104,Numpad9:105,NumpadMultiply:106,NumpadAdd:107,NumpadSubtract:109,NumpadDecimal:110,NumpadDivide:111,NumpadEqual:187,Backquote:192,BracketLeft:219,BracketRight:221,Backslash:220,Semicolon:186,Quote:222,Space:32,Equal:187,Comma:188,Minus:189,Period:190,Slash:191}},{}],131:[function(t,e,i){"use strict";e.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,COMMAND:91,CAPSLOCK:20,ESCAPE:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ASTERISK:106,NUMPAD_PLUS:107,NUMPAD_DASH:109,NUMPAD_DOT:110,NUMPAD_SLASH:111,NUMPAD_EQUALS:187,TICK:192,LEFT_BRACKET:219,RIGHT_BRACKET:221,BACKSLASH:220,SEMICOLON:186,APOSTROPHE:222,SPACEBAR:32,CLEAR:12,COMMA:188,DOT:190,SLASH:191}},{}],132:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(97)),r=n(t(126)),o=n(t(133)),a=n(t(149)),l=n(t(139)),h=n(t(135));const c=["beforeCreate","created","beforeMount","mounted","onWillOpen","onOpen","onWillClose","onClose","onResizeImmediate","onBreakpointChange","onResizeDebounced","destroy"],u={attributes:{}};class d extends s.default{constructor(t,e=u){super(e),this.elements={},this.elements.content=t,this.options=e,this.opened=!1,this.model=Object.assign({},JSON.parse(JSON.stringify(o.default))),this.templates={},c.forEach(t=>{this[t]=(...e)=>{this["__".concat(t)]&&this["__".concat(t)].forEach(t=>t.apply(this,e))}}),this._bindEvents(),["beforeCreate","created","beforeMount"].forEach(t=>this[t](e))}appendContent(t,e){(0,r.default)(t)&&(e=e&&(0,r.default)(e)?e:this.elements.contentContainer).appendChild(t)}removeContent(t){t?(this.elements.container.contains(t)&&t.remove(),this.trigger(this.model.Events.CONTENT_REMOVED)):this._emptyContent()}scrollToModalTop(){this.elements.container.scrollTop=0}_emptyContent(){this.elements.contentContainer.innerHTML=""}_bindEvents(){this.on(this.model.Events.WILLOPEN,this.onWillOpen),this.on(this.model.Events.OPEN,this.onOpen),this.on(this.model.Events.WILLCLOSE,this.onWillClose),this.on(this.model.Events.CLOSE,this.onClose)}_releaseEvents(){this.off(this.model.Events.WILLOPEN,this.onWillOpen),this.off(this.model.Events.OPEN,this.onOpen),this.off(this.model.Events.WILLCLOSE,this.onwillClose),this.off(this.model.Events.CLOSE,this.onClose)}static withMixins(...t){const e=class extends d{},i=e.prototype;return[a.default,...t,h.default,l.default].forEach(t=>{for(const e in t)c.includes(e)?(i["__".concat(e)]=i["__".concat(e)]||[],i["__".concat(e)].push(t[e])):i[e]=t[e]}),e}}var p=d;i.default=p},{119:119,126:126,133:133,135:135,139:139,149:149,97:97}],133:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(131)),r=n(t(151)),o=n(t(150)),a={PageOverlay:{ClassNames:["modal-page-overlay"]},FullBleed:{ClassNames:["modal-full-bleed"]},Open:{Document:{ClassNames:["has-modal"]},Container:{ClassNames:["modal-open"]}},Close:{Selector:"[data-modal-close]"},Elements:{container:{Attributes:{class:"modal"},Template:r.default},contentContainer:{Selector:"[data-modal-element-content-container]"},closeButton:{Attributes:{class:"modal-close-button","data-modal-close":"","aria-label":"Close"},ParentSelector:"[data-modal-close-button-parent]",Template:o.default},closeIcon:{Attributes:{class:"modal-close-icon","data-modal-close":""}}},DialogRole:{Selector:"[data-modal-element-overlay]",Attributes:{"aria-modal":"true",role:"dialog",tabindex:"-1","aria-hidden":"true"}},Keyboard:{close:{keys:[s.default.ESCAPE]},open:{keys:[]}},Events:{CONTENT_APPENDED:"contentappended",RENDERED:"rendered",WILLOPEN:"willopen",OPEN:"open",WILLCLOSE:"willclose",CLOSE:"close",CONTENT_REMOVED:"contentremoved"}};i.default=a},{119:119,131:131,150:150,151:151}],134:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=''},{}],135:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={created(){this.options.gum||this._isVue||(this.anim?(this.anim.on(this.anim.model.PageEvents.ON_RESIZE_IMMEDIATE,this.onResizeImmediate),this.anim.on(this.anim.model.PageEvents.ON_RESIZE_DEBOUNCED,this.onResizeDebounced),this.anim.on(this.anim.model.PageEvents.ON_BREAKPOINT_CHANGE,this.onBreakpointChange)):(window.addEventListener("resize",this.onResizeImmediate),this.viewportEmitterMicro.on(this.viewportEmitterMicro.CHANGE_EVENTS.VIEWPORT,this.onBreakpointChange)),this._mountedRaf=requestAnimationFrame(this.mounted))},onResizeImmediate(){this.anim||(window.clearTimeout(this._resizeTimeout),this._resizeTimeout=window.setTimeout(this.onResizeDebounced,250))},destroy(){cancelAnimationFrame(this._mountedRaf),this.anim?(this.anim.off(this.anim.model.PageEvents.ON_RESIZE_IMMEDIATE,this.onResizeImmediate),this.anim.off(this.anim.model.PageEvents.ON_RESIZE_DEBOUNCED,this.onResizeDebounced),this.anim.off(this.anim.model.PageEvents.ON_BREAKPOINT_CHANGE,this.onBreakpointChange)):(window.removeEventListener("resize",this.onResizeImmediate),this.viewportEmitterMicro.off(this.viewportEmitterMicro.CHANGE_EVENTS.VIEWPORT,this.onBreakpointChange))}};i.default=n},{}],136:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={created(){this.close=this.close.bind(this)},onWillOpen(){this._attachCloseEvents()},onClose(){this._removeCloseEvents(),document.documentElement.classList.remove(...this.model.Open.Document.ClassNames),this.elements.container.classList.remove(...this.model.Open.Container.ClassNames)},mounted(){this.close.elements=Array.from(document.querySelectorAll(this.model.Close.Selector))},destroy(){this.close()},close(t){this.opened&&(t&&"click"===t.type&&!this.close.elements.includes(t.target)||(this.trigger(this.model.Events.WILLCLOSE),this.trigger(this.model.Events.CLOSE)))},_removeCloseEvents(){this.elements.container&&this.elements.container.removeEventListener("click",this.close)},_attachCloseEvents(){this.elements.container&&this.elements.container.addEventListener("click",this.close)}};i.default=n},{}],137:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=t(144),s=[n.Close,n.CloseButton];i.default=s},{144:144}],138:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={created(){this.onCloseButtonClick=this.onCloseButtonClick.bind(this)},beforeMount(){this._setCloseAriaLabel(),this.appendCloseButton()},mounted(){this.elements.closeButton.addEventListener("click",this.onCloseButtonClick)},destroy(){this.elements.closeButton.removeEventListener("click",this.onCloseButtonClick)},appendCloseButton(){(this.elements.container.querySelector(this.model.Elements.closeButton.ParentSelector)||this.elements.container).appendChild(this.elements.closeButton)},onCloseButtonClick(t){this.close(t)},_setCloseAriaLabel(){if(this.elements.content&&this.elements.content.dataset.modalCloseLabel){let t=this.elements.content.dataset.modalCloseLabel;this.elements.closeButton.setAttribute("aria-label",t)}}};i.default=n},{}],139:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={created(){this._createModalElements()},beforeMount(){this._setDialogAriaLabel(),this.appendModalElements()},destroy(){document.body.removeChild(this.elements.container),this._releaseEvents();for(let t in this)Object.prototype.hasOwnProperty.call(this,t)&&(this[t]=null)},getModalElementKey(t){let e;for(const i in t.dataset)if(i.includes("modalElement")){const t=i.substring("modalElement".length);e=t[0].toLowerCase()+t.slice(1)}return e},appendContentElement(){this.appendContent(this.elements.content,this.elements.contentContainer),this.trigger(this.model.Events.CONTENT_APPENDED)},appendModalElements(){document.body.appendChild(this.elements.container),this.trigger(this.model.Events.RENDERED)},_createModalElements(){this._createTemplates(),this._createElementsFromTemplate();for(const t in this.templates)this._setChildElements(this.elements[t]);this._setDialogRoleElement(),this._setElementAttributes(),this.appendContentElement()},_createTemplates(){for(const t in this.model.Elements){const e=this.model.Elements[t].Template;e&&!this.templates[t]&&(this.templates[t]=e)}},_createElementsFromTemplate(){for(const t in this.templates)this.elements[t]=(new DOMParser).parseFromString(this.templates[t],"text/html").body.childNodes[0]},_setChildElements(t){[...t.children].forEach(t=>{this.getModalElementKey(t)&&(this.elements[this.getModalElementKey(t)]=t),this._setChildElements(t)})},_setDialogRoleElement(){this.dialogRoleElement||(this.dialogRoleElement=this.elements.container.querySelector(this.model.DialogRole.Selector)||this.elements.container);for(const t in this.model.DialogRole.Attributes)this.dialogRoleElement.setAttribute(t,this.model.DialogRole.Attributes[t])},_setElementAttributes(){let t={},e={};for(const e in this.model.Elements)this.model.Elements[e].Attributes&&(t[e]=this.model.Elements[e].Attributes);for(const i in t){e[i]=Object.assign({},t[i],this.options.attributes[i]);for(const i in this.options.attributes)"undefined"!==e[i]&&(e[i]=Object.assign({},t[i],this.options.attributes[i]))}for(const t in e)for(const i in e[t]){let n=e[t][i];if(!this.elements[t])return;switch(i){case"class":Array.isArray(n)&&(n=n.join(" ")),this.elements[t].className="".concat(this.elements[t].className," ").concat(n).trim();break;default:this.elements[t].setAttribute(i,n)}}},_setDialogAriaLabel(){if(this.elements.content&&this.elements.content.dataset.modalDialogLabel){let t=this.elements.content.dataset.modalDialogLabel;this.dialogRoleElement.setAttribute("aria-label",t)}else this.dialogRoleElement.hasAttribute("aria-label")||this.dialogRoleElement.hasAttribute("aria-labelledby")||this.dialogRoleElement.setAttribute("aria-label","Modal")}};i.default=n},{}],140:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(15)),r=n(t(20)),o={created(){this.scrollToModalTop=this.scrollToModalTop.bind(this)},mounted(){r.default.getTabbableElements(this.dialogRoleElement).length&&(this._circularTab=new s.default(this.dialogRoleElement))},onOpen(){this._giveModalFocus()},onWillClose(){this._removeModalFocus()},destroy(){clearTimeout(this._focusTimeout),this._removeModalFocus(),this._circularTab&&this._circularTab.destroy()},_giveModalFocus(){this.dialogRoleElement.removeAttribute("aria-hidden"),this.elements.container.classList.add("modal-touch-lock"),this._activeElement=document.activeElement,this._circularTab&&this._circularTab.start(!0),this.elements.container.addEventListener("scroll",this.scrollToModalTop),this._focusTimeout=setTimeout(()=>{this.dialogRoleElement.focus({preventScroll:!0}),requestAnimationFrame(()=>{this.elements.container.removeEventListener("scroll",this.scrollToModalTop),this.elements.container.classList.remove("modal-touch-lock")})},300)},_removeModalFocus(){this._circularTab&&this._circularTab.stop(),this.dialogRoleElement.setAttribute("aria-hidden","true"),this.elements.container.removeEventListener("scroll",this.scrollToModalTop),this._activeElement&&(this._activeElement.focus(),this._activeElement=null)}};i.default=o},{119:119,15:15,20:20}],141:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={beforeCreate(){this.model.Open.Document.ClassNames.push("has-modal-full-bleed")},beforeMount(){this.elements.container.classList.add(...this.model.FullBleed.ClassNames)},destroy(){this.elements.container.classList.remove(...this.model.FullBleed.ClassNames)}};i.default=n},{}],142:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=t(144),s=[...n.CloseBundle,n.Focus,n.Keyboard,n.Open,n.FullBleed,n.ScrollPosition];i.default=s},{144:144}],143:[function(t,e,i){"use strict";const n=t(128);e.exports={beforeCreate(){this._keysToOpen=this.model.Keyboard.open.keys,this._keysToClose=this.model.Keyboard.close.keys,this._enabledKeysToOpen=[],this._enabledKeysToClose=[]},onWillOpen(){this._keysToOpen.forEach(this.disableKeyToOpen,this),this._keysToClose.forEach(this.enableKeyToClose,this)},onWillClose(){this._keysToOpen.forEach(this.enableKeyToOpen,this),this._keysToClose.forEach(this.disableKeyToClose,this)},destroy(){this._keysToOpen.forEach(this.disableKeyToOpen,this),this._keysToClose.forEach(this.disableKeyToClose,this)},addKeyToOpen(t){-1===this._keysToOpen.indexOf(t)&&(this._keysToOpen.push(t),this.enableKeyToOpen(t))},addKeyToClose(t){-1===this._keysToClose.indexOf(t)&&(this._keysToClose.push(t),this.enableKeyToClose(t))},removeKeyToOpen(t){const e=this._keysToOpen.indexOf(t);-1!==e&&(this._keysToOpen.splice(e,1),this.disableKeyToOpen(t))},removeAllKeysToOpen(){this._keysToOpen.forEach(this.disableKeyToOpen,this),this._keysToOpen.splice(0,this._keysToOpen.length)},removeKeyToClose(t){const e=this._keysToClose.indexOf(t);-1!==e&&(this._keysToClose.splice(e,1),this.disableKeyToClose(t))},removeAllKeysToClose(){this._keysToClose.forEach(this.disableKeyToClose,this),this._keysToClose.splice(0,this._keysToClose.length)},enableKeyToOpen(t){-1===this._enabledKeysToOpen.indexOf(t)&&(n.onUp(t,this.open,this),this._enabledKeysToOpen.push(t))},enableKeyToClose(t){-1===this._enabledKeysToClose.indexOf(t)&&(n.onUp(t,this.close,this),this._enabledKeysToClose.push(t))},disableKeyToOpen(t){const e=this._enabledKeysToOpen.indexOf(t);-1!==e&&(n.offUp(t,this.open,this),this._enabledKeysToOpen.splice(e,1))},disableKeyToClose(t){const e=this._enabledKeysToClose.indexOf(t);-1!==e&&(n.offUp(t,this.close,this),this._enabledKeysToClose.splice(e,1))}}},{128:128}],144:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Close",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"CloseButton",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(i,"Focus",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"FullBleed",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"Keyboard",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"Open",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(i,"PageOverlay",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(i,"ScrollPosition",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"CloseBundle",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(i,"FullBleedBundle",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(i,"PageOverlayBundle",{enumerable:!0,get:function(){return f.default}});var s=n(t(136)),r=n(t(138)),o=n(t(140)),a=n(t(141)),l=n(t(143)),h=n(t(145)),c=n(t(146)),u=n(t(148)),d=n(t(137)),p=n(t(142)),f=n(t(147))},{119:119,136:136,137:137,138:138,140:140,141:141,142:142,143:143,145:145,146:146,147:147,148:148}],145:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={created(){this.open=this.open.bind(this)},onWillOpen(){document.documentElement.classList.add(...this.model.Open.Document.ClassNames),this.elements.container.classList.add(...this.model.Open.Container.ClassNames),this.scrollToModalTop()},open(){this.opened||(this.trigger(this.model.Events.WILLOPEN),this.trigger(this.model.Events.OPEN))}};i.default=n},{}],146:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={beforeCreate(){this.model.Open.Document.ClassNames.push("has-modal-page-overlay"),this._scrollBarWidth=0},beforeMount(){this.elements.container.classList.add(...this.model.PageOverlay.ClassNames)},mounted(){this._saveScrollBarWidth()},onResizeDebounced(){this.opened||this._saveScrollBarWidth()},onWillOpen(){document.documentElement.style.setProperty("--modal-scrollbar-buffer",this._scrollBarWidth)},onClose(){document.documentElement.style.removeProperty("--modal-scrollbar-buffer")},destroy(){this.elements.container.classList.remove(...this.model.PageOverlay.ClassNames)},_saveScrollBarWidth(){this._scrollBarWidth="".concat(window.innerWidth-document.body.clientWidth,"px")}};i.default=n},{}],147:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=t(144),s=[...n.CloseBundle,n.Focus,n.Keyboard,n.Open,n.PageOverlay,n.ScrollPosition];i.default=s},{144:144}],148:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={created(){this._scrollX=0,this._scrollY=0},onWillOpen(){this._saveScrollPosition()},onClose(){this._restoreScrollPosition()},_saveScrollPosition(){this._scrollX=document.documentElement.scrollLeft,this._scrollY=document.documentElement.scrollTop},_restoreScrollPosition(){window.scrollTo(this._scrollX,this._scrollY)}};i.default=n},{}],149:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(407)),r={beforeCreate(){document.body._animInfo?(this.anim=document.body._animInfo.group.anim,this._setViewport(this.anim.model.pageMetrics)):(this.viewportEmitterMicro=new s.default,this.viewportEmitterMicro.CHANGE_EVENTS=s.default.CHANGE_EVENTS,this._setViewport(this.viewportEmitterMicro))},onBreakpointChange(t){this._setViewport(t),this._setPreviousViewport(t)},onOpen(){this.opened=!0},onClose(){this.opened=!1},_setViewport(t){this._viewport=this.anim?this._getValidViewport(t.breakpoint):this._getValidViewport(t.viewport)},_setPreviousViewport(t){this._previousViewport=this.anim?this._getValidViewport(t.previousBreakpoint):this._getValidViewport(t.oldViewport)},_getValidViewport(t){const e={X:"L",L:"L",M:"M",S:"S"};if(!Object.keys(e).includes(t))throw"The viewport ".concat(t," is not valid. Valid viewports are: ").concat(Object.keys(e));return e[t]||""}};i.default=r},{119:119,407:407}],150:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(134)),r="");i.default=r},{119:119,134:134}],151:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=''},{}],152:[function(t,e,i){"use strict";t(122);var n=t(154),s=Object.prototype.hasOwnProperty;e.exports=function(t,e){return e?function t(e,i){var n;for(n in i)s.call(i,n)&&(null===i[n]?e[n]=null:"object"==typeof i[n]?(e[n]=Array.isArray(i[n])?[]:{},t(e[n],i[n])):e[n]=i[n]);return e}({},t):n({},t)}},{122:122,154:154}],153:[function(t,e,i){"use strict";var n=function(){};e.exports=function(t){if(arguments.length>1)throw new Error("Second argument not supported");if(null===t||"object"!=typeof t)throw new TypeError("Object prototype may only be an Object.");return"function"==typeof Object.create?Object.create(t):(n.prototype=t,new n)}},{}],154:[function(t,e,i){"use strict";t(122);var n=Object.prototype.hasOwnProperty;e.exports=function(){var t,e;return t=arguments.length<2?[{},arguments[0]]:[].slice.call(arguments),e=t.shift(),t.forEach((function(t){if(null!=t)for(var i in t)n.call(t,i)&&(e[i]=t[i])})),e}},{122:122}],155:[function(t,e,i){"use strict";var n=t(217);e.exports=function(t){if("object"!=typeof t)throw new TypeError("toQueryParameters error: argument is not an object");return n(t,!1)}},{217:217}],156:[function(t,e,i){"use strict";e.exports={PointerTracker:t(157)}},{157:157}],157:[function(t,e,i){"use strict";var n=t(406),s=n.os.android,r=!n.browser.ie&&{passive:!1},o=t(103)(),a=t(96).EventEmitterMicro;function l(t,e,i){this._el=t,i=i||{},this._lockVertical=!1!==i.lockVertical,this._swipeThreshold=i.swipeThreshold||l.DEFAULT_SWIPE_THRESHOLD,this._pointerEvents=e||{},this._trackHover=i.trackHover,this._trackHover?(this._pointerEvents.down=this._pointerEvents.down||l.MOUSE_EVENTS.over,this._pointerEvents.up=this._pointerEvents.up||l.MOUSE_EVENTS.out):(this._pointerEvents.down=this._pointerEvents.down||(o?l.TOUCH_EVENTS.down:l.MOUSE_EVENTS.down),this._pointerEvents.up=this._pointerEvents.up||(o?l.TOUCH_EVENTS.up:l.MOUSE_EVENTS.up)),this._pointerEvents.out=this._pointerEvents.out||(o?l.TOUCH_EVENTS.out:l.MOUSE_EVENTS.out),this._pointerEvents.move=this._pointerEvents.move||(o?l.TOUCH_EVENTS.move:l.MOUSE_EVENTS.move),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseMove=this._onMouseMove.bind(this),a.call(this),this._el.addEventListener(this._pointerEvents.down,this._onMouseDown,r),this._setCursorStyle("grab")}l.START="start",l.END="end",l.UPDATE="update",l.SWIPE_RIGHT="swiperight",l.SWIPE_LEFT="swipeleft",l.DEFAULT_SWIPE_THRESHOLD=s?2:8,l.TOUCH_EVENTS={down:"touchstart",up:"touchend",out:"mouseout",move:"touchmove"},l.MOUSE_EVENTS={down:"mousedown",up:"mouseup",out:"mouseout",move:"mousemove",over:"mouseover"};var h=a.prototype,c=l.prototype=Object.create(h);c.destroy=function(){return this._isDragging&&this._onMouseUp(),this._el.removeEventListener(this._pointerEvents.down,this._onMouseDown),this._setCursorStyle(null),this._el=null,this._pointerEvents=null,this._lockVertical=null,this._swipeThreshold=null,this._checkForTouchScrollY=null,this._isDragging=null,this._currentX=null,this._currentY=null,this._velocityX=null,this._velocityY=null,this._lastX=null,this._lastY=null,h.destroy.call(this)},c._onMouseDown=function(t){if(!this._isDragging){this._isDragging=!0,this._setCursorStyle("grabbing"),this._el.removeEventListener(this._pointerEvents.down,this._onMouseDown),document.body.addEventListener(this._pointerEvents.up,this._onMouseUp,r),document.addEventListener(this._pointerEvents.out,this._onMouseOut,r),document.body.addEventListener(this._pointerEvents.move,this._onMouseMove,r),this._checkForTouchScrollY=this._lockVertical&&!(!t.touches||!t.touches[0]),this._checkForTouchScrollY&&(this._lastY=this._getTouchY(t));var e=this._storeAndGetValues(t);this._velocityX=e.diffX=0,this._velocityY=e.diffY=0,this.trigger(l.START,e)}},c._onMouseUp=function(t){if(this._isDragging){var e;this._isDragging=!1,this._setCursorStyle("grab"),this._el.addEventListener(this._pointerEvents.down,this._onMouseDown,r),document.body.removeEventListener(this._pointerEvents.up,this._onMouseUp),document.removeEventListener(this._pointerEvents.out,this._onMouseOut),document.body.removeEventListener(this._pointerEvents.move,this._onMouseMove),this._checkForTouchScrollY||this._trackHover?e=null:this._velocityX>this._swipeThreshold?e=l.SWIPE_LEFT:-1*this._velocityX>this._swipeThreshold&&(e=l.SWIPE_RIGHT);var i=this._storeAndGetValues(t);i.swipe=e,this.trigger(l.END,i),e&&!this._trackHover&&this.trigger(e,i)}},c._onMouseOut=function(t){var e=(t=t||window.event).relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||this._onMouseUp(t)},c._onMouseMove=function(t){this._checkForTouchScrollY&&this._isVerticalTouchMove(t)?this._onMouseUp(t):(t.preventDefault(),this.trigger(l.UPDATE,this._storeAndGetValues(t)))},c._storeAndGetValues=function(t){if(void 0===t)return{};this._currentX=this._getPointerX(t),this._currentY=this._getPointerY(t),this._velocityX=this._lastX-this._currentX,this._velocityY=this._lastY-this._currentY;var e={x:this._currentX,y:this._currentY,lastX:this._lastX,lastY:this._lastY,diffX:this._velocityX,diffY:this._velocityY,interactionEvent:t};return this._lastX=this._currentX,this._lastY=this._currentY,e},c._getPointerX=function(t){return t.pageX?t.pageX:t.touches&&t.touches[0]?t.touches[0].pageX:t.clientX?t.clientX:0},c._getPointerY=function(t){return t.pageY?t.pageY:t.touches&&t.touches[0]?t.touches[0].pageY:t.clientY?t.clientY:0},c._getTouchX=function(t){return t.touches&&t.touches[0]?t.touches[0].pageX:0},c._getTouchY=function(t){return t.touches&&t.touches[0]?t.touches[0].pageY:0},c._isVerticalTouchMove=function(t){var e=this._getTouchX(t),i=this._getTouchY(t),n=Math.abs(e-this._lastX),s=Math.abs(i-this._lastY);return this._checkForTouchScrollY=n=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=t,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._currentSubscriberIndex0&&this.rafEmitter.executor.phaseIndex<=this.phaseIndex?this._phaseActive?(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!0),this._frameCallbacks.push(this._currentFrameID,t),this._frameCallbackLength+=2):(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!1),this._currentFrameCallbacks.push(this._currentFrameID,t),this._currentFrameCallbacksLength+=2):(this._currentFrameID=this.rafEmitter.run(),this._nextFrameCallbacks.push(this._currentFrameID,t),this._nextFrameCallbacksLength+=2),this._currentFrameID},r.cancelAnimationFrame=function(t){this._cancelFrameIdx=this._nextFrameCallbacks.indexOf(t),this._cancelFrameIdx>-1?this._cancelNextAnimationFrame():(this._cancelFrameIdx=this._currentFrameCallbacks.indexOf(t),this._cancelFrameIdx>-1?this._cancelCurrentAnimationFrame():(this._cancelFrameIdx=this._frameCallbacks.indexOf(t),this._cancelFrameIdx>-1&&this._cancelRunningAnimationFrame()))},r._onRAFExecuted=function(t){for(this._frameCallbackIteration=0;this._frameCallbackIteration=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=t,this._rafData.naturalFps=this._rafData.fps,this._rafData.timeNow=Date.now(),this._onSubscribersAnimationFrameStart(this._rafData),this.trigger("update",this._rafData),this.trigger("external",this._rafData),this.trigger("draw",this._rafData),this._onSubscribersAnimationFrameEnd(this._rafData),this._willRun||this._reset()},n._onExternalAnimationFrame=function(t){this._isUsingExternalAnimationFrame&&this._onAnimationFrame(t)},n._reset=function(){this._rafData={time:0,delta:0,fps:0,naturalFps:0,timeNow:0},this._subscribers={},this._subscribersOrder=[],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},e.exports=s},{122:122}],179:[function(t,e,i){"use strict";var n=t(180).SharedInstance,s=t(178);e.exports=n.share("ac-raf-executor:sharedRAFExecutorInstance","2.0.1",s)},{178:178,180:180}],180:[function(t,e,i){"use strict";e.exports={SharedInstance:t(181)}},{181:181}],181:[function(t,e,i){"use strict";var n,s=window,r=s.AC,o=(n={},{get:function(t,e){var i=null;return n[t]&&n[t][e]&&(i=n[t][e]),i},set:function(t,e,i){return n[t]||(n[t]={}),n[t][e]="function"==typeof i?new i:i,n[t][e]},share:function(t,e,i){var n=this.get(t,e);return n||(n=this.set(t,e,i)),n},remove:function(t,e){var i=typeof e;if("string"!==i&&"number"!==i)n[t]&&(n[t]=null);else{if(!n[t]||!n[t][e])return;n[t][e]=null}}});r||(r=s.AC={}),r.SharedInstance||(r.SharedInstance=o),e.exports=r.SharedInstance},{}],182:[function(t,e,i){"use strict";const n=t(96).EventEmitterMicro,s=t(374),r=t(123),o=t(184),a={num:37,string:"ArrowLeft"},l=38,h={num:39,string:"ArrowRight"},c={num:40,string:"ArrowDown"},u=[a,h,c,h],d=function(t){if(t.which)return t.which;for(var e=t.key?t.key:t.code,i=0,n=u.length;ii&&(t=i),t-1&&this.model[t]!==e){var i=this.model[t];this.model[t]=e,this.trigger("change:model:"+t,{previous:i,current:e})}},m._removeEventListeners=function(){this._removeEventListener(this.el,"mousedown",this._onMouseDown),this._removeEventListener(this.el,"touchstart",this._onTouchStart),this._removeEventListener(this.el,"mouseover",this._onMouseOver),this._removeEventListener(this.el,"mouseleave",this._onMouseLeave),this._removeEventListener(this.el,"touchend",this._onTouchEnd),this._removeEventListener(document,"touchend",this._onMouseUp),"horizontal"===this.model.orientation?(this._keyboard.offDown(h.num,this.stepUp),this._keyboard.offDown(a.num,this.stepDown),this._keyboard.offUp(a.num,this._triggerRelease),this._keyboard.offUp(h.num,this._triggerRelease)):(this._keyboard.offDown(c.num,this.stepDown),this._keyboard.offDown(l,this.stepUp),this._keyboard.offUp(c.num,this._triggerRelease),this._keyboard.offUp(l,this._triggerRelease))},m.destroy=function(){this._removeEventListeners(),this._keyboard&&this._keyboard.destroy(),n.prototype.destroy.call(this)},e.exports=_},{123:123,184:184,374:374,96:96}],183:[function(t,e,i){"use strict";e.exports.Slider=t(182)},{182:182}],184:[function(t,e,i){"use strict";e.exports='
\n\t
\n
'},{}],185:[function(t,e,i){arguments[4][44][0].apply(i,arguments)},{188:188,44:44}],186:[function(t,e,i){arguments[4][45][0].apply(i,arguments)},{189:189,45:45}],187:[function(t,e,i){arguments[4][46][0].apply(i,arguments)},{186:186,46:46}],188:[function(t,e,i){arguments[4][47][0].apply(i,arguments)},{186:186,187:187,47:47}],189:[function(t,e,i){arguments[4][48][0].apply(i,arguments)},{48:48}],190:[function(t,e,i){"use strict";e.exports={Link:t(195),Dialog:t(193),Focus:t(194),Debug:t(192),ShareFactory:t(197),AutoSocial:t(191)}},{191:191,192:192,193:193,194:194,195:195,197:197}],191:[function(t,e,i){"use strict";var n=t(197);e.exports=function(t){n.autoCreate({context:t})}},{197:197}],192:[function(t,e,i){"use strict";var n=t(196);function s(){var t;for(t in this.types={},n)n.hasOwnProperty(t)&&(r[t]=t,this.addType(t,n[t].getDialogDebugData.bind(n[t])))}var r=s.prototype;r.create=function(t,e){e=e||{};var i=this.types[t];if(i)return i(e)},r.addType=function(t,e){return this.types[t]=e,this},r.removeType=function(){return this.types[name]=null,this},e.exports=new s},{196:196}],193:[function(t,e,i){"use strict";var n=t(196);function s(){var t;for(t in this.types={},n)n.hasOwnProperty(t)&&(r[t]=t,this.addType(t,n[t].generateDialog.bind(n[t])))}var r=s.prototype;r.create=function(t,e){e=e||{};var i=this.types[t];if(i)return i(e)},r.addType=function(t,e){return this.types[t]=e,this},r.removeType=function(){return this.types[name]=null,this},e.exports=new s},{196:196}],194:[function(t,e,i){"use strict";e.exports=function(t){if(window.getSelection){var e=window.getSelection();(i=document.createRange()).selectNodeContents(t),e.removeAllRanges(),e.addRange(i)}else if(t.setSelectionRange)t.setSelectionRange(0,t.value.length);else if(document.body.createTextRange){var i;(i=document.body.createTextRange()).moveToElementText(t),i.select()}}},{}],195:[function(t,e,i){"use strict";var n=t(196),s=t(199);function r(){var t;for(t in this.types={},n)n.hasOwnProperty(t)&&(o[t]=t,this.addType(t,n[t].generateLink.bind(n[t])))}var o=r.prototype;o.create=function(t,e,i){e=e||{};var n=this.types[t];if(n)return n(e,i)},o.createFromAnchor=function(t){var e,i=t.getAttribute("data-network-action");for(e in n)if(n.hasOwnProperty(e)&&i===n[e].id)return void n[e].enhanceLinkEngagement(t);s.enhanceLinkEngagement(t)},o.addType=function(t,e){return this.types[t]=e,this},o.removeType=function(){return this.types[name]=null,this},e.exports=new r},{196:196,199:199}],196:[function(t,e,i){"use strict";var n=t(201),s=t(204),r=t(208),o=t(209),a=t(210),l=t(211),h=t(212),c=t(214),u=t(205),d=t(206),p=t(207),f=t(200),_=t(213),m=t(202),v=t(215);e.exports={FACEBOOK_SHARE:n,PINTEREST_SHARE:s,TUMBLR_SHARE:r,TWITTER_FAVORITE:o,TWITTER_REPLY:a,TWITTER_RETWEET:l,TWITTER_TWEET:h,WEIBO_SHARE:c,QQWEIBO_SHARE:u,QZONE_SHARE:d,RENREN_SHARE:p,EMAIL_SHARE:f,VK_SHARE:_,LINE_SHARE:m,WHATSAPP_SHARE:v}},{200:200,201:201,202:202,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215}],197:[function(t,e,i){"use strict";var n=t(193),s=t(198),r={facebook:"FACEBOOK_SHARE",pinterest:"PINTEREST_SHARE",tumblr:"TUMBLR_SHARE",twitter:"TWITTER_TWEET",weibo:"WEIBO_SHARE",qqweibo:"QQWEIBO_SHARE",qzone:"QZONE_SHARE",renren:"RENREN_SHARE",email:"EMAIL_SHARE",vk:"VK_SHARE",line:"LINE_SHARE",whatsapp:"WHATSAPP_SHARE"};function o(){this._buttonEvts=[],this._autoCreatedUrlEls=[]}var a=o.prototype;a.autoCreate=function(t){var e=(t=t||{}).context||document.body,i=Array.prototype.slice.call(e.querySelectorAll("[data-ac-social-url]"));0===this._autoCreatedUrlEls.length?this._autoCreatedUrlEls=Array.prototype.slice.call(i):(i=i.filter(this._hasNotBeenAutoCreated.bind(this)),this._autoCreatedUrlEls=this._autoCreatedUrlEls.concat(i)),i.forEach((function(t){var e=t.querySelectorAll("[data-ac-social-button]"),i=t.getAttribute("data-ac-social-url");if(!i)throw new Error("Please provide a valid URL to share in your data-ac-social-url attribute");e.forEach(function(t){this._createSocialButton(t,i)}.bind(this))}),this)},a._hasNotBeenAutoCreated=function(t){return-1===this._autoCreatedUrlEls.indexOf(t)},a._createSocialButton=function(t,e){var i=t.getAttribute("data-ac-social-button"),o=r[i];if(o){var a=n.create.bind(n,n[o],{url:e});this._buttonEvts.push({button:t,callback:a}),t.addEventListener("click",a)}else if("copy"===i)new s(t,e)},a.destroyButtons=function(){this._buttonEvts.forEach(function(t){t.button.removeEventListener("click",t.callback)}.bind(this)),this._buttonEvts=[]},e.exports=new o},{193:193,198:198}],198:[function(t,e,i){"use strict";var n=t(185);function s(t,e){this.el=t,this.el.addEventListener("click",function(){n.copy(e),this._notifyTextCopied()}.bind(this))}s.prototype._notifyTextCopied=function(){var t=this.el.parentNode.querySelector("[data-ac-social-notification]");try{t.classList.add("show-notification"),setTimeout((function(){t.classList.remove("show-notification")}),1e3)}catch(t){throw new Error("Please provide a notification message element for the copy to clipboard functionality")}},e.exports=s},{185:185}],199:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return t}),{baseLinkPath:""})},{203:203}],200:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){var e={url:t.url};return t.title&&(e.subject=t.title),t.description?e.body=t.description+"\r\n\r\n"+t.url:e.body=t.url,e}),{id:"email-share",baseLinkPath:"mailto:",preventDialog:!0})},{203:203}],201:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{u:t.url}}),{id:"facebook-share",baseLinkPath:"https://www.facebook.com/sharer/sharer.php",dialogDimensions:{width:555,height:368}})},{203:203}],202:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{url:t.url,text:t.description,from:"line_scheme"}}),{id:"line-share",baseLinkPath:"https://social-plugins.line.me/lineit/share",dialogDimensions:{width:555,height:505}})},{203:203}],203:[function(t,e,i){"use strict";var n,s=function(t,e){e=e||{},this.baseLinkPath=e.baseLinkPath,e.dialogDimensions&&(this.dialogDimensions=e.dialogDimensions),e.id&&(this.id=e.id),e.preventDialog&&(this.preventDialog=e.preventDialog),this.normalizeData=t};(n=s.prototype).dataAttributeName="network-action",n.id="network-action",n.normalizeData=function(t){return t},n.dialogDimensions={width:500,height:500},n.generateLinkURL=function(t){var e=this.normalizeData(t),i=new URLSearchParams(e).toString(),n=this.baseLinkPath;return i.length>0&&(n=n+"?"+i),n},n.generateLink=function(t,e){var i=this.generateLinkURL(t);return(e=e||document.createElement("A")).setAttribute("href",i),e.setAttribute("target","_blank"),e.setAttribute("data-"+this.dataAttributeName,this.id),this.enhanceLinkEngagement(e,i),e},n.generateDialog=function(t){var e=this.generateLinkURL(t);this._triggerDialog(e)},n.enhanceLinkEngagement=function(t,e){e=e||t.getAttribute("href"),t.addEventListener("click",this._onLinkEngaged.bind(this,e))},n.getDialogOptions=function(){var t,e="status=1",i={width:this.dialogDimensions.width,height:this.dialogDimensions.height};for(t in i.top=(window.screen.availHeight-i.height)/2,i.left=(window.screen.availWidth-i.width)/2,i)i.hasOwnProperty(t)&&(e+=", "+t+"="+i[t]);return e},n.getDialogDebugData=function(t){return{data:this.normalizeData(t),dialogUrl:this.generateLinkURL(t)}},n._triggerDialog=function(t){this.preventDialog?window.location.href=t:window.open(t,"_blank",this.getDialogOptions())},n._onLinkEngaged=function(t,e){e.preventDefault(),this._triggerDialog(t)},e.exports=s},{}],204:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){var e={url:t.url,description:t.description};return t.media&&(e.media=t.media),e}),{id:"pinterest-share",baseLinkPath:"http://www.pinterest.com/pin/create/button",dialogDimensions:{width:750,height:450}})},{203:203}],205:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{url:t.url,title:t.title,pic:t.media}}),{id:"qq-weibo-share",baseLinkPath:"http://v.t.qq.com/share/share.php",dialogDimensions:{width:658,height:506}})},{203:203}],206:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{url:t.url,title:t.title,pics:t.media,summary:t.description}}),{id:"qzone-share",baseLinkPath:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",dialogDimensions:{width:620,height:645}})},{203:203}],207:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{url:t.url,title:t.title}}),{id:"renren-share",baseLinkPath:"http://www.connect.renren.com/share/sharer",dialogDimensions:{width:500,height:315}})},{203:203}],208:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){var e={clickthru:t.url,caption:t.description};return t.media&&(e.source=t.media),e}),{id:"tumblr-share",baseLinkPath:"http://www.tumblr.com/share/photo",dialogDimensions:{width:450,height:432}})},{203:203}],209:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{tweet_id:t.messageId}}),{id:"twitter-favorite",baseLinkPath:"https://twitter.com/intent/favorite",dialogDimensions:{width:550,height:420}})},{203:203}],210:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){var e={in_reply_to:t.messageId};return t.hashtags&&(e.hashtags=t.hashtags),e}),{id:"twitter-reply",baseLinkPath:"https://twitter.com/intent/tweet",dialogDimensions:{width:550,height:420}})},{203:203}],211:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{tweet_id:t.messageId}}),{id:"twitter-retweet",baseLinkPath:"https://twitter.com/intent/retweet",dialogDimensions:{width:550,height:420}})},{203:203}],212:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){var e={url:t.url,text:t.description};return t.hashtags&&(e.hashtags=t.hashtags),e}),{id:"twitter-tweet",baseLinkPath:"https://twitter.com/intent/tweet",dialogDimensions:{width:550,height:420}})},{203:203}],213:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{url:t.url,title:t.title,image:t.media}}),{id:"vk-share",baseLinkPath:"http://vk.com/share.php",dialogDimensions:{width:555,height:368}})},{203:203}],214:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{url:t.url,title:t.title,pic:t.media}}),{id:"weibo-share",baseLinkPath:"http://service.weibo.com/share/share.php",dialogDimensions:{width:650,height:426}})},{203:203}],215:[function(t,e,i){"use strict";var n=t(203);e.exports=new n((function(t){return{text:t.title+" "+t.url}}),{id:"whatsapp-share",baseLinkPath:"https://api.whatsapp.com/send",dialogDimensions:{width:555,height:505}})},{203:203}],216:[function(t,e,i){"use strict";e.exports=function(t,e,i){return e?(i=i||/{([^{}]*)}/g,t.replace(i,(function(t,i){var n=e[i];return"string"==typeof n||"number"==typeof n||"boolean"==typeof n?n:t}))):t}},{}],217:[function(t,e,i){"use strict";e.exports=function(t,e){var i="";if(t){var n=Object.keys(t),s=n.length-1;n.forEach((function(e,n){var r=t[e],o=(e=e.trim())+(r=null===(r=r&&"string"==typeof r?r.trim():r)?"":"="+r)+(n===s?"":"&");i=i?i.concat(o):o}))}return i&&!1!==e?"?"+i:i}},{}],218:[function(t,e,i){"use strict";e.exports={major:4,minor:6,patch:1,prerelease:3,toString:function(){return"4.6.1-3 (051e7fe)"},toArray:function(){return[4,6,1]}}},{}],219:[function(t,e,i){"use strict";e.exports=function(t){if("function"==typeof t.select){t.select()||t.setSelectionRange(0,t.value.length)}else{var e=document.createRange();e.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}},{}],220:[function(t,e,i){"use strict";var n,s=t(96).EventEmitterMicro,r=t(179),o=t(163);function a(t){t=t||{},s.call(this),this.id=o.getNewID(),this.executor=t.executor||r,this._reset(),this._willRun=!1,this._didDestroy=!1}(n=a.prototype=Object.create(s.prototype)).run=function(){return this._willRun||(this._willRun=!0),this._subscribe()},n.cancel=function(){this._unsubscribe(),this._willRun&&(this._willRun=!1),this._reset()},n.destroy=function(){var t=this.willRun();return this.cancel(),this.executor=null,s.prototype.destroy.call(this),this._didDestroy=!0,t},n.willRun=function(){return this._willRun},n.isRunning=function(){return this._isRunning},n._subscribe=function(){return this.executor.subscribe(this)},n._unsubscribe=function(){return this.executor.unsubscribe(this)},n._onAnimationFrameStart=function(t){this._isRunning=!0,this._willRun=!1,this._didEmitFrameData||(this._didEmitFrameData=!0,this.trigger("start",t))},n._onAnimationFrameEnd=function(t){this._willRun||(this.trigger("stop",t),this._reset())},n._reset=function(){this._didEmitFrameData=!1,this._isRunning=!1},e.exports=a},{163:163,179:179,96:96}],221:[function(t,e,i){"use strict";var n=t(223),s=function(t){this.rafEmitter=new n,this.rafEmitter.on(t,this._onRAFExecuted.bind(this)),this.requestAnimationFrame=this.requestAnimationFrame.bind(this),this.cancelAnimationFrame=this.cancelAnimationFrame.bind(this),this._frameCallbacks=[],this._nextFrameCallbacks=[],this._currentFrameID=-1,this._cancelFrameIdx=-1,this._frameCallbackLength=0,this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0},r=s.prototype;r.requestAnimationFrame=function(t){return this._currentFrameID=this.rafEmitter.run(),this._nextFrameCallbacks.push(this._currentFrameID,t),this._nextFrameCallbacksLength+=2,this._currentFrameID},r.cancelAnimationFrame=function(t){this._cancelFrameIdx=this._nextFrameCallbacks.indexOf(t),-1!==this._cancelFrameIdx&&(this._nextFrameCallbacks.splice(this._cancelFrameIdx,2),this._nextFrameCallbacksLength-=2,0===this._nextFrameCallbacksLength&&this.rafEmitter.cancel())},r._onRAFExecuted=function(t){for(this._frameCallbacks=this._nextFrameCallbacks,this._frameCallbackLength=this._nextFrameCallbacksLength,this._nextFrameCallbacks=[],this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0;this._frameCallbackIteration=0&&this._chapters.splice(e,1),this._onChange()}},{key:"_onChange",value:function(){this.trigger("change")}},{key:"getChapterForTime",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;ii+1){var r=this._chapters[i+1];if(t>=s-e&&t=s)return n}else if(s-e<=t&&t2){this._boundListeners||(this._boundListeners={}),this._boundListeners[t]||(this._boundListeners[t]=[]);var r=i.bind(n);return this._boundListeners[t].push([i,n,r]),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"on",this).call(this,t,r)}return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"on",this).apply(this,arguments)}},{key:"off",value:function(t,i,n){if(arguments.length>2)try{for(var r=this._boundListeners[t],o=r.length,a=0;athis._cachedReadyState||0===t)&&(this._cachedReadyState=t,this.trigger("readystatechange",{readyState:t}))}},{key:"_forwardEvent",value:function(t){O(t.type+" time:"+this.getCurrentTime()),this.trigger(t.type)}},{key:"_forwardNamedEvent",value:function(t){O(t+" time:"+this.getCurrentTime()),this.trigger(t)}},{key:"_onPlayPromiseError",value:function(){O("play() Promise rejected, probably because the browser is blocking autoplay"),this.el.classList.add("initial-play"),this._showStartState(),this._started=!1,this._poster.show(),this.once("play",this._onPlay)}},{key:"_onAudioTrackChange",value:function(t){var e=this;if(this._forwardEvent(t),this._storedAudioTrackType&&this._storedAudioTrackLanguage&&this.getAudioTracks().length>1){var i=this.getAudioTracks().find((function(t){return t.language===e._storedAudioTrackLanguage&&t.kind===e._storedAudioTrackType}));i&&(i.enabled=!0),this._storedAudioTrackLanguage=null}var n=this.getAudioTracks().find((function(t){return t.enabled}));n&&(u.setItem(u.AUDIO_TRACK_TYPE,n.kind),u.setItem(u.AUDIO_TRACK_LANGUAGE,n.language))}},{key:"_onCaptionsChanged",value:function(t){var e=this,i=this.getVisibleTextTracks().length;if(!this._cachedVisibleTracksLength&&"none"!==this._storedCCLanguage&&this.getTextTracks().length>0){var n=this.getTextTracks().find((function(t){return t.language===e._storedCCLanguage||a[t.language]===e._storedCCLanguage}));n&&(setTimeout((function(){e.getTextTracks().forEach((function(t){n!==t&&(t.mode="hidden")})),n.mode="showing",setTimeout((function(){0===n.cues.length&&(n.mode="hidden",n.mode="showing")}),1)}),1),this._storedCCLanguage="none")}i>0&&this._cachedVisibleCCTrack!==this.getVisibleTextTracks()[0]?(this.trigger("texttrackshow"),u.setItem(u.CC_LANGUAGE,this.getVisibleTextTracks()[0].language)):0===i&&this._cachedVisibleTracksLength>0&&this.trigger("texttrackhide"),this._cachedVisibleTracksLength=i,this._cachedVisibleCCTrack=i?this.getVisibleTextTracks()[0]:null}},{key:"_onVolumeChange",value:function(t){u.setItem(u.VOLUME_LEVEL,this.getVolume()),u.setItem(u.VOLUME_MUTED,this.getMuted())}},{key:"_onTimeUpdate",value:function(){this.trigger("timeupdate",{currentTime:this.getCurrentTime()})}},{key:"load",value:function(t,e,i,n){if(this._setError(!1),this.refreshSize(),this._started=!1,Array.isArray(t)||(t=[t]),e&&!Array.isArray(e)&&(e=[{src:e}]),this._cachedReadyState=0,n||(n=this.options),this._urlOptimizer){e||(e=t.map(this._urlOptimizer.getCaptionsSource).filter((function(t){return!!t})));var s=this.getVisibleTextTracks();s&&s.length&&e&&e.length&&(e[0].mode="showing");var r=n.maxWidth||this._calcMaxWidth();t=t.map(function(t){return this._urlOptimizer.getVideoSource(t,r,null,{urlOptimizeHls:this.options.urlOptimizeHls})}.bind(this))}var o=n&&n.thumbnails||this._urlOptimizer&&this._urlOptimizer.getThumbnailImageSource(t[0]);this.once("play",this._onPlay),(this.options.autoplay&&w||this.getEnded())&&this.once("loadstart",function(){this.play()}.bind(this)),n||(n=this.options),n&&this._poster&&this.setPoster(n.poster),this._poster&&this._poster.show(),this.controls&&this.controls.sharingModule&&(n.sharing?this.controls.sharingModule.setData(n.sharing):this.controls.sharingModule.setData(null)),void 0!==n.live&&(this._isLive=n.live,this._useLiveMode(n.dvr)),this._hideEndState(),this._setPersistedUserSettings(),this._videoImpl.load(t,e,i),this.controls&&this.controls.overlays?this.controls.overlays.setData(o):this.controls&&this.once("controlsready",function(){this.controls.overlays&&this.controls.overlays.setData(o)}.bind(this)),this.controls&&this.controls.endState?this.controls.endState.setData(n.endState):this.controls&&this.once("controlsready",function(){this.controls.endState&&this.controls.endState.setData(n.endState)}.bind(this))}},{key:"_calcMaxWidth",value:function(){return this.el.parentElement?this.el.parentElement.clientWidth:this._maxWidth}},{key:"_isActiveArea",value:function(t){for(;t!==this.el;){if(t.hasAttribute("data-acv-active-area"))return!0;t=t.parentNode}return!1}},{key:"_onPresentationModeChanged",value:function(t){this._forwardEvent(t);var e=this.isPictureInPicture();this._cachedPiPMode!==e&&(this._cachedPiPMode=e,O("pictureinpicture:change to "+e),this.trigger("pictureinpicture:change"))}},{key:"_onDurationChange",value:function(t){(this._isDvr||this.getDuration()>3600)&&this.el.classList.add("longform"),this.refreshSize()}},{key:"appendTo",value:function(t){t.appendChild(this.el),this.refreshSize()}},{key:"getTextTracks",value:function(){return Array.prototype.slice.call(this._videoImpl.getTextTracks())}},{key:"getAudioTracks",value:function(){return Array.from(this._videoImpl.getAudioTracks())}},{key:"getVisibleTextTracks",value:function(){var t=Array.prototype.slice.call(this._videoImpl.getTextTracks());return t&&t.length&&(t=t.filter((function(t){return"showing"===t.mode}))),t}},{key:"getFullScreenElement",value:function(){return w?this.el:this.getMediaElement()}},{key:"getFullScreenEnabled",value:function(){return f.fullscreenEnabled(this.getFullScreenElement())}},{key:"isFullscreen",value:function(){return w?f.fullscreenElement()===this.getFullScreenElement():this._videoImpl.isFullscreen()}},{key:"requestFullscreen",value:function(){if(!this.isFullscreen()){this.controls&&(this.controls.el.display="none",this._hideControls()),this.trigger("fullscreen:willenter",{type:"enter"}),this._lastResize=Date.now(),g(this._updateFullscreenId);var t=this;this._updateFullscreenId=y((function e(){t.refreshSize(),t._updateFullscreenId=y(e)})),k?setTimeout(function(){this._lastResize=Date.now(),f.requestFullscreen(this.getFullScreenElement())}.bind(this),300):f.requestFullscreen(this.getFullScreenElement())}}},{key:"exitFullscreen",value:function(){this.isFullscreen()&&(this.controls&&(this.controls.el.display="none",this._hideControls()),this.trigger("fullscreen:willexit",{type:"exit"}),k?setTimeout(function(){f.exitFullscreen(this.getFullScreenElement())}.bind(this),300):f.exitFullscreen(this.getFullScreenElement()))}},{key:"_onFullscreenChange",value:function(){this._lastResize=Date.now(),this.controls&&(this.controls.el.display="",this._hideControls()),this._preventUserInteraction=!0,setTimeout(function(){g(this._updateFullscreenId),this._preventUserInteraction=!1,this.refreshSize()}.bind(this),750),this.refreshSize()}},{key:"toggleFullscreen",value:function(){this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()}},{key:"_initUIComponents",value:function(){this._controlsFactory?(this._instantiateDefaultCustomUIControls(),w?this.el.appendChild(this._blockade.el):(this.controls.el.classList.add("mobile"),this.setControls(!0))):this.setControls(!0)}},{key:"_showControls",value:function(){this._controlsVisible=!0,this.el.classList.remove("initial-play"),this.el.classList.add("user-hover")}},{key:"_hideControls",value:function(){this._controlsVisible=!1,this.el.classList.remove("user-hover"),this.hideCaptionsSelector()}},{key:"_raiseControls",value:function(){this._controlsVisible=!0,this.el.classList.remove("mouse-leave")}},{key:"_lowerControls",value:function(){this._controlsVisible=!1,this.el.classList.add("mouse-leave"),this.hideCaptionsSelector()}},{key:"_onControlsReady",value:function(){this.options.autoplay&&w||this._showStartState()}},{key:"_showStartState",value:function(){this.controls&&this.controls.el.classList.add("start-state"),this._poster&&this._poster.show(),w||M(this.getMediaElement())}},{key:"_hideStartState",value:function(){this.controls&&this.controls.el.classList.remove("start-state"),this._poster&&this._poster.hide(),w||R(this.getMediaElement())}},{key:"_showEndState",value:function(){this.controls&&(this.controls.mainControlsElement?this.controls.mainControlsElement.contains(document.activeElement)&&setTimeout(function(){this.controls.playButtonElement.focus()}.bind(this)):this.el.contains(document.activeElement)&&!this.controls.sharingModule.el.contains(document.activeElement)&&setTimeout(function(){this.controls.playButtonElement.focus()}.bind(this)),this.controls.el.classList.add("end-state")),this._poster&&this._poster.show(),M(this.getMediaElement())}},{key:"_hideEndState",value:function(){this.controls&&this.controls.el.classList.remove("end-state"),w||R(this.getMediaElement())}},{key:"_createBlockade",value:function(){this._blockade=new h(document.createElement("div")),this._blockade.el.classList.add("ac-video-blockade")}},{key:"_instantiateDefaultCustomUIControls",value:function(){return this.controls=this._controlsFactory.create({player:this,endState:this.options.endState,enableMainControls:w,basePath:this.options.localizationBasePath,forceEnglishLabels:this.options.forceEnglishLabels,template:this.options.template,readyCallback:function(){this._onControlsReady(),this.trigger("controlsready")}.bind(this)}),this.controls.el.parentNode!==this.el&&this.el.appendChild(this.controls.el),this._videoImpl.setControls(!1),this._createBlockade(),this._controlsInteraction=L({player:this,keyboardControl:this._keyboardControl,controlsTimeoutDuration:this.options.controlsTimeoutDuration,showControls:this._showControls,hideControls:this._hideControls,raiseControls:this._raiseControls,lowerControls:this._lowerControls,controlsVisible:function(){return this._controlsVisible}.bind(this),sendMouseDown:this._videoImpl.sendMouseDown,elementEmitter:this._elementEmitter}),this.controls}},{key:"_onPlay",value:function(){this._started||this.once("timeupdate",this._onStart,function(){return this.getCurrentTime()>0&&!this.getPaused()}.bind(this))}},{key:"isCaptionsSelectorShowing",value:function(){return this.controls.el.classList.contains("captions-selector-showing")}},{key:"showCaptionsSelector",value:function(){this.controls.axListSelector.style.maxHeight="min("+(this.el.getBoundingClientRect().height-80)+"px,250px)",this.controls.el.classList.add("captions-selector-showing")}},{key:"hideCaptionsSelector",value:function(){this.controls.el.classList.remove("captions-selector-showing")}},{key:"_onStart",value:function(){this._started=!0,this.el.classList.add("initial-play"),this.el.classList.remove("idle-state"),this._poster&&this._poster.hide(),this.controls&&(this._hideStartState(),this._hideEndState()),this.once("ended",this._onEnded)}},{key:"_onEnded",value:function(){this.isFullscreen()&&this.exitFullscreen(),this.controls&&(this._hideStartState(),this._showEndState()),setTimeout(function(){this.once("timeupdate",function(){this.getEnded()?this._onEnded():this._onStart()}.bind(this))}.bind(this),300),this._poster&&this._poster.show(),this._started=!1}},{key:"_initPoster",value:function(t){this._poster=_({player:this,video:this._videoImpl,useNativePoster:!1===this.options.controls,is2x:b,src:t}),this._poster.el&&this.el.appendChild(this._poster.el),this.options.autoplay||this._poster.show()}},{key:"_initErrorView",value:function(){this._errorView=new v,this.el.appendChild(this._errorView.el)}},{key:"_useLiveMode",value:function(e){var i=this;clearInterval(this._captionRemovalInterval),this._isLive?(this.el.classList.add("ac-video-live"),e&&!C?this.el.classList.add("ac-video-live-dvr"):x&&(this._captionRemovalInterval=setInterval((function(){t(314)(i.getMediaElement())}),1e4))):(this.el.classList.remove("ac-video-live"),this.el.classList.remove("ac-video-live-dvr"))}},{key:"once",value:function(t,e,n){if(arguments.length<3||"object"===(void 0===n?"undefined":s(n)))o(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"once",this).apply(this,arguments);else{var r=arguments,a=Array.prototype.slice.call(arguments,2),l=function(){a.every((function(t){return!!t()}))&&(r[1].apply(this,r),this.off(r[0],l))}.bind(this);this.on(r[0],l)}}},{key:"getMediaElement",value:function(){return this._videoImpl.getMediaElement()}},{key:"play",value:function(){var t=this;this.el.classList.remove("idle-state");var e=this._videoImpl.getCurrentTime();O("play called"),!this._videoImpl.getError()||0!==e&&!isNaN(e)?this._videoImpl.play():setTimeout((function(){t._errorView.focus()}),1e3)}},{key:"pause",value:function(){this._videoImpl.pause()}},{key:"seek",value:function(t){this.setCurrentTime.apply(this,arguments)}},{key:"addTextTrack",value:function(t){this._videoImpl.addTextTrack(t)}},{key:"getReadyState",value:function(){return this._videoImpl.getMediaElement().readyState}},{key:"getPreload",value:function(){return this._videoImpl.getPreload()}},{key:"setPoster",value:function(t){this._poster.setSrc(t)}},{key:"getPoster",value:function(){this._poster.getSrc()}},{key:"getVolume",value:function(){return this._videoImpl.getVolume()}},{key:"getMuted",value:function(){return this._videoImpl.getMuted()}},{key:"getCurrentTime",value:function(){return this._videoImpl.getCurrentTime()}},{key:"getDuration",value:function(){return this._videoImpl.getDuration()}},{key:"getPaused",value:function(){return this._videoImpl.getPaused()}},{key:"getEnded",value:function(){return this._videoImpl.getEnded()}},{key:"getBufferedPercentage",value:function(){var t=this.getCurrentTime(),e=this.getDuration();if(isNaN(e)||e===1/0)return 0;var i=this._videoImpl.getBuffered();if(i.length)for(var n=0;nt)return i.end(n)/e*100;return t/e*100}},{key:"setCurrentTime",value:function(t){return this._videoImpl.setCurrentTime(t)}},{key:"goToLive",value:function(){this._videoImpl.goToLive&&this._videoImpl.goToLive()}},{key:"isDvr",value:function(){return this._isDvr&&!C}},{key:"setVolume",value:function(t){return this.trigger("uservolumechange"),this._videoImpl.setVolume(t)}},{key:"setMuted",value:function(t){this.trigger("uservolumechange"),this._videoImpl.setMuted(t)}},{key:"setSrc",value:function(t){this._videoImpl.setSrc(t)}},{key:"getCurrentSrc",value:function(){return this._videoImpl.getCurrentSrc()}},{key:"setControls",value:function(t){return this._videoImpl.setControls(t)}},{key:"getMediaHeight",value:function(){return this._videoImpl.getMediaElement().videoHeight}},{key:"getMediaWidth",value:function(){return this._videoImpl.getMediaElement().videoWidth}},{key:"supportsPictureInPicture",value:function(){return this._videoImpl.supportsPictureInPicture()}},{key:"isPictureInPicture",value:function(){return this._videoImpl.isPictureInPicture()}},{key:"setPictureInPicture",value:function(t){return this._videoImpl.setPictureInPicture(t)}},{key:"supportsAirPlay",value:function(){return this._videoImpl.supportsAirPlay()}},{key:"isLive",value:function(){return this._isLive}},{key:"refreshSize",value:function(){this._breakpointDetect?this._breakpointDetect.refresh():(this._currentBreakpoint&&this.el.classList.remove(this._currentBreakpoint.name),this._currentBreakpoint=I.getBreakpointFromElement(this.el,S),this.el.classList.add(this._currentBreakpoint.name)),this._videoImpl&&this._videoImpl.refreshSize()}},{key:"_setError",value:function(t){t?this.el.classList.add("media-error"):this.el.classList.remove("media-error")}},{key:"_onError",value:function(t){var e=this._videoImpl.getError();if(this._started)O("ERROR: an error occured during playback, but we'll try to recover. Error code "+(e?e.message:"unknown"));else if(this._setError(!0),this.controls){var i=void 0;if(t.message)i=t.message;else{if(!m.translationReady())return void m.getTranslation({callback:this._onError.bind(this,t),forceEnglishLabels:this.options.forceEnglishLabels});i=m.getTranslation().error}this._poster.show(),this._errorView.setText(i)}}},{key:"_onChapterChange",value:function(t){this.trigger("chapter:change")}},{key:"getChapters",value:function(){return this._chapterEmitter.chapters}},{key:"setChapters",value:function(t){this._chapterEmitter.chapters=t}},{key:"getChapterForTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._chapterEmitter.getChapterForTime(t,e)}},{key:"isStalled",value:function(){return this._videoImpl.isStalled()}},{key:"_setPersistedUserSettings",value:function(){if(w){if(this._storedCCLanguage=u.getItem(u.CC_LANGUAGE),u.hasItem("cc-disabled")&&(this._storedCCLanguage="none"),!this._storedCCLanguage){var t=navigator.language.split("-"),e=n(t,1)[0];this._storedCCLanguage="en"!==e?e:"none"}this._storedAudioTrackType=u.getItem(u.AUDIO_TRACK_TYPE),this._storedAudioTrackLanguage=u.getItem(u.AUDIO_TRACK_LANGUAGE),this._storedVolume=u.getItem(u.VOLUME_LEVEL),this._storedMuted=u.getItem(u.VOLUME_MUTED),null!==this._storedVolume&&this._videoImpl.setVolume(this._storedVolume),"true"===this._storedMuted&&(this._videoImpl.setMuted(!0),this._videoImpl.setVolume(1))}else this._storedCCLanguage="none"}},{key:"destroy",value:function(){this._removeEventListeners(),clearInterval(this._captionRemovalInterval),this.controls&&(this.controls.destroy(),this.controls=null),this._poster&&(this._poster.destroy(),this._poster=null),this._controlsInteraction&&(this._controlsInteraction.destroy(),this._controlsInteraction=null),this._keyboardControl&&this._keyboardControl.destroy(),this.el.innerHTML="",this._breakpointDetect&&this._breakpointDetect.destroy(),this._chapterEmitter&&this._chapterEmitter.destroy(),this._blockade&&(this._blockade=null),this._videoImpl.destroy(),this._videoImpl=null,clearTimeout(this._refreshSizeTimeout),l.prototype.destroy.call(this)}}]),i}(l);F.LOADEDMETADATA=1,F.LOADEDDATA=2,F.CANPLAY=3,F.CANPLAYTHROUGH=4,e.exports=F},{100:100,101:101,103:103,105:105,225:225,227:227,229:229,23:23,230:230,231:231,235:235,236:236,240:240,251:251,273:273,284:284,29:29,290:290,293:293,294:294,307:307,308:308,310:310,314:314,325:325,406:406,62:62,99:99}],234:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i1&&(e=Object.assign.apply(null,Array.prototype.slice.apply(arguments))):e={},e.components||(e.components=t(252)),void 0===e.controls&&(e.controls=!0),e.controlsImplementation||(e.controlsImplementation=t(249)),e.controlsFactory||(e.controlsFactory=t(250)({controlsImplementation:e.controlsImplementation,components:e.components,template:e.controlsTemplate})),(void 0!==e.urlOptimizer&&!0===e.urlOptimizer||"true"===e.urlOptimizer)&&(e.urlOptimizer=t(232)),e.sources||e.src?e.sources||(e.sources=e.src?[e.src]:[]):e.sources=[],e.autoplay=void 0!==e.autoplay?e.autoplay:n,e.controlsTimeoutDuration||(e.controlsTimeoutDuration=3e3),e.threesixty){e.threesixtyElementsTimeoutDuration||(e.threesixtyElementsTimeoutDuration=3e3);var s=t(234);i=new s(e)}else{var r=t(233);i=new r(e)}var o={};return e.sharing&&(o.sharing=Object.assign({},e.sharing)),e.thumbnails&&(o.thumbnails=Object.assign({},e.thumbnails)),e.endState&&(o.endState=Object.assign({},e.endState)),e.sources&&e.sources.length&&(e.autoplay||!e.preload||"auto"===e.preload||!0===e.preload?i.load(e.sources,e.textTracks,e.startTime,o):i.setSrc(e.sources[0])),i}},{232:232,233:233,234:234,249:249,250:250,252:252,99:99}],238:[function(t,e,i){"use strict";e.exports=t(237)},{237:237}],239:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i=t&&this._currentCaption<=t)return this._currentCaption.text;for(var i=0,n=e.length,s=void 0;i=t)s=e[i];else if(e[i].startTime>=t)break;i++}return this._currentCaption=s,s?s.text:""}},{key:"_refreshCurrentCaption",value:function(){this._view.setText(this._getCurrentCaptionText(this._video.getCurrentTime()))}},{key:"destroy",value:function(){this._removeVideoListeners()}}]),t}();e.exports=a},{114:114,248:248,35:35}],242:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i',this.el.classList.add("ac-video-player-text-track-container"),this._tracks=t.tracks||[],this._textTrackComponent=r(this.el,h,{video:this._video})}},{key:"_onTrackChange",value:function(){this.trigger("change"),this.el.parentElement||(this._video.getRenderElement().parentElement.appendChild(this.el),this.el.firstElementChild.classList.add("is-visible"))}},{key:"addTrack",value:function(t){this._tracks||(this._tracks=[]);var e=t.mode||"hidden",i=this._onTrackChange;Object.defineProperty(t,"mode",{get:function(){return e},set:function(t){e=t,i()},enumerable:!0,configurable:!0}),this._tracks.push(t),this.trigger("addtrack")}},{key:"clearTracks",value:function(){this._tracks=[],this.trigger("removetrack"),this.trigger("change")}},{key:"getTextTracks",value:function(){return this._tracks}},{key:"trigger",value:function(t,i){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"trigger",this).call(this,t,Object.assign({type:t},i||{}))}},{key:"destroy",value:function(){this._textTrackComponent.destroy(),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(l);e.exports=c},{241:241,276:276,286:286,96:96}],243:[function(t,e,i){"use strict";var n,s=t(406);n=s.browser.safari?function(t,e){t.track.mode=e}:function(t,e){t.mode=e};var r=function(t){var e;if(t instanceof HTMLElement)this.el.appendChild(t);else{var i=document.createElement("track");i.src=t.src,i.kind="captions",i.srclang=t.srclang,"en"===i.srclang?i.label=t.label||"English":i.label=t.label||t.srclang&&t.srclang.toUpperCase()||"Unknown CC",s.browser.firefox?(e=this.el.textTracks.length,setTimeout(function(){this.el.appendChild(i),n(this.el.textTracks[e],t.mode||"hidden")}.bind(this),0)):s.os.android?(e=this.el.textTracks.length,this.el.appendChild(i),n(this.el.textTracks[e],t.mode||"hidden")):(this.el.appendChild(i),n(i,t.mode||"hidden"))}};e.exports={create:function(t){for(var e=0,i=t?t.length:0;e ){1}([\d]{2}:)?[\d]{2}:[\d]{2}.[\d]{3}/,o=[],a=0,l=s.length;a");i=i.substr(0,i.length-6),a1&&this._allowMultiLanguageCaptions||i.length>1?this._player.isCaptionsSelectorShowing()?this._player.hideCaptionsSelector():this._player.showCaptionsSelector():1===t.length?(e[0].mode="hidden",o.setItem("cc-disabled",!0)):(e[0].mode="showing",o.removeItem("cc-disabled")),setTimeout(this._updateState)}},{key:"destroy",value:function(){this._player.off("addtrack",this._updateState),this._player.off("change",this._updateState),this._player.off("removetrack",this._updateState),function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in s)return s.value;var o=s.get;return void 0!==o?o.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(s);e.exports=a},{247:247,256:256,308:308}],258:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i180||i<-180?(this.compassRing.style.transform="rotate(360deg)",this.compassField.style.transform="rotate(360deg)"):(this.compassRing.style.transform="rotate(0deg)",this.compassField.style.transform="rotate(0deg)")}},{key:"_on360IconUpdate",value:function(t){this.compassRing.style.transition="transform 0.1s ease",this.compassRing.style.transform="rotate("+t.currentPosition.lon+"deg)",this.compassField.style.transition="transform 0.1s ease",this.compassField.style.transform="rotate("+t.currentPosition.lon+"deg)"}},{key:"_onCompassClick",value:function(t){this._compassIsRotating||(this._player.get360().isAtOrigin?(this._360.on(a.ROTATION_UPDATE,this._on360IconUpdate),this._player.get360().oscillateLongitude()):this._player.panToOrigin())}},{key:"_onCompassArrowsClick",value:function(t){switch(t.target){case this.compassArrowLeft:this._arrowControls.leftArrowDown(t),this._arrowControls.leftArrowUp(t);break;case this.compassArrowRight:this._arrowControls.rightArrowDown(t),this._arrowControls.rightArrowUp(t);break;case this.compassArrowTop:this._arrowControls.upArrowDown(t),this._arrowControls.upArrowUp(t);break;case this.compassArrowBottom:this._arrowControls.downArrowDown(t),this._arrowControls.downArrowUp(t)}}},{key:"_onFocusIn",value:function(t){t.target!==this.compass&&this._showCompassArrows()}},{key:"_onFocusOut",value:function(t){this._hideCompassArrows()}},{key:"_onCompassFocusIn",value:function(t){this._rotateFieldOfViewToOrigin()}},{key:"_onCompassFocusOut",value:function(t){var e=this._get360HorizontalAngle();this.compassField.style.transform="rotate("+e+"deg)"}},{key:"_rotateFieldOfViewToOrigin",value:function(){var t=this._get360HorizontalAngle();this.compassField.style.transition="transform 0.3s ease",this.compassField.style.transform=t>180?"rotate(360deg)":t<-180?"rotate(-360deg)":"rotate(0deg)"}},{key:"_onCompassMouseEnter",value:function(t){this._hovering=!0,this._compassIsRotating||this._rotateFieldOfViewToOrigin()}},{key:"_onCompassMouseLeave",value:function(t){if(this._hovering=!1,!this._compassIsRotating){var e=this._get360HorizontalAngle();this.compassField.style.transition="transform 0.3s ease",this.compassField.style.transform="rotate("+e+"deg)"}}},{key:"_on360PositionChange",value:function(){var t=this._get360HorizontalAngle();this.compassRing.style.transition="none",this.compassRing.style.transform="rotate("+t+"deg)",this._hovering||(this.compassField.style.transition="none",this.compassField.style.transform="rotate("+t+"deg)")}},{key:"_get360HorizontalAngle",value:function(){return this._player.get360().position.lon%360}},{key:"destroy",value:function(){this._removeEventListeners()}}]),t}();e.exports=l},{123:123,2:2,406:406}],270:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;ithis.getValue();this._notchEl.style.left=e/this.getMax()*100+"%",this._setInlineBackgroundColor(i,this._notchEl)},o._setInlineBackgroundColor=function(t,e){t?e.classList.remove("invert-element"):e.classList.add("invert-element")},o._onChapterClicked=function(t){this.trigger("chapter:click",t),this._slider.thumbElement.style.pointerEvents=""},o._onChapterFocusIn=function(t){this._notchEl.classList.add("hidden"),this._slider.thumbElement.style.pointerEvents="none",this.trigger("chapter:focusin",t)},o._onChapterFocusOut=function(t){this._notchEl.classList.remove("hidden"),this._slider.thumbElement.style.pointerEvents="",this.trigger("chapter:focusout",t)},o._onGrab=function(){this.forceCursorPointer(),this.setScrubbedValue()},o._onRelease=function(){this.disableForcedCursorPointer(),this.setScrubbedValue()},o.setChapters=function(t){var e=this;this._chapters&&this._chapters.forEach((function(t){t.off("click",e._onChapterClicked),t.off("focusin",e._onChapterFocusIn),t.off("focusout",e._onChapterFocusOut),t.off("mouseover",e._onChapterFocusIn),t.off("mouseout",e._onChapterFocusOut),t.destroy()})),this._chapterContainer.innerHTML="",this._chapters=[];for(var i=0;i\n\t\t\t
'+this._errorStr+"
\n\t\t\n\t\t"}}]),t}();e.exports=s},{}],285:[function(t,e,i){"use strict";var n=function(t,e,i){return function(n){t[e](n,i)}};e.exports=function(t,e,i){return e.classDef?function(t,e,i){return new e.classDef(t,Object.assign(e.options||{},i||{}))}(t,e,i):function(t,e){var i=e.handlers||{},s={};for(var r in i)i.hasOwnProperty(r)&&t.on(r,s[r]=n(i,r,t));var o,a=e.observe;if(a){for(var l=a.update,h=a.source,c=h.on.bind(h)||h.addEventListener,u=h.off.bind(h)||h.removeEventListener,d=a.events,p=0,f=d.length,_=function(){l.call(a,t)};p=60?10:t>=20?5:1},d._onLeftArrowDown=function(t){if(!this._player.isLive()){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getCurrentTime();isNaN(e)||this._player.seek(Math.max(e-this._interval,0))}},d._onRightArrowDown=function(t){if(!this._player.isLive()){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getCurrentTime();isNaN(e)||this._player.seek(Math.min(e+this._interval,this._player.getDuration()))}},d._onUpArrowDown=function(t){if(!t.target.hasAttribute("aria-checked")){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getMuted()?0:this._player.getVolume(),i=Math.min(1,e+.1);this._player.setVolume(i),this._player.setMuted(!1)}},d._onDownArrowDown=function(t){if(!t.target.hasAttribute("aria-checked")){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getMuted()?0:this._player.getVolume(),i=Math.max(0,e-.1);this._player.setVolume(i),this._player.setMuted(0===Math.round(10*i))}},d._onSpaceBarDown=function(t){"BUTTON"!==t.target.tagName&&"button"!==t.target.getAttribute("role")&&(this._keyboard.offDown(r,this._onSpaceBarDown),this._keyboard.onUp(r,this._onSpaceBarUp))},d._onSpaceBarUp=function(){this._keyboard.offUp(r,this._onSpaceBarUp),this._player.getPaused()?this._player.play():this._player.pause(),this._keyboard.onDown(r,this._onSpaceBarDown)},d.destroy=function(){this._removeEventListeners(),this._keyboard.destroy(),u.destroy.call(this)},e.exports=c},{123:123,96:96}],289:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i\n
\n
\n
\n
\n
\n
\n
\n
\n ',this._ariaSpan=this._player.controls.el.querySelector("#loading-status"),this._ariaString="",s.getTranslation({callback:function(t){i._ariaString=t.loading,i._isShowing()&&(i._ariaSpan.innerText=i._ariaString)}}),this._showTimeoutDelay=void 0!==e.showTimeoutDelay?e.showTimeoutDelay:500,this._bindMethods(),this._addEventListeners()}return n(t,[{key:"_bindMethods",value:function(){this.show=this.show.bind(this),this.hide=this.hide.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onSeeking=this._onSeeking.bind(this),this._onSeeked=this._onSeeked.bind(this),this._onPause=this._onPause.bind(this),this._onEnded=this._onEnded.bind(this),this._onError=this._onError.bind(this),this._doShow=this._doShow.bind(this),this._checkLoadingState=this._checkLoadingState.bind(this),this._onPlay=this._onPlay.bind(this),this._onMouseOut=this._onMouseOut.bind(this)}},{key:"_addEventListeners",value:function(){this._player.on("waiting",this.show),this._player.on("seeking",this._onSeeking),this._player.on("seeked",this._onSeeked),this._player.on("playing",this._onPlaying),this._player.on("ended",this._onEnded),this._player.on("canplaythrough",this._checkLoadingState),this._player.on("progress",this._checkLoadingState),this._player.on("error",this._onError),this._player.on("pause",this._onPause),this._player.on("timeupdate",this._checkLoadingState),this._player.on("play",this._onPlay),this._player.controls&&this._player.controls.el.addEventListener("mouseout",this._onMouseOut)}},{key:"_removeEventListeners",value:function(){this._player.off("waiting",this.show),this._player.off("seeking",this._onSeeking),this._player.off("seeked",this._onSeeked),this._player.off("playing",this._onPlaying),this._player.off("ended",this._onEnded),this._player.off("canplaythrough",this._checkLoadingState),this._player.off("progress",this._checkLoadingState),this._player.off("error",this._onError),this._player.off("pause",this._onPause),this._player.off("timeupdate",this._checkLoadingState),this._player.off("play",this._onPlay),this.el.removeEventListener("click",this._onClick),this._player.controls&&this._player.controls.el.removeEventListener("mouseout",this._onMouseOut)}},{key:"_onPause",value:function(){this._isPaused=this._player.getPaused(),this._isPaused&&this.hide()}},{key:"_onPlaying",value:function(){this._isPaused=this._player.getPaused(),this._started=!0,this._checkLoadingState()}},{key:"_onPlay",value:function(){!this._isPaused&&this._started||(this._isPaused=this._player.getPaused(),this._isPaused||(this._started=!0),this._isSeeking=!1,this._checkLoadingState(!0))}},{key:"_onSeeking",value:function(){this._isSeeking=!0,this.show()}},{key:"_onSeeked",value:function(){this._isSeeking=!1,this._checkLoadingState()}},{key:"_onEnded",value:function(){this._started=!1,this.hide()}},{key:"_onError",value:function(){this._started&&this.show(!0)}},{key:"_onMouseOut",value:function(){this._player.isStalled()||this._player.el.classList.remove("was-loading")}},{key:"show",value:function(t){this._isPaused||(!0!==t&&this._started?(clearTimeout(this._showTimeout),this._showTimeout=setTimeout(this._doShow,this._showTimeoutDelay)):this._doShow())}},{key:"_checkLoadingState",value:function(t){!this._player.getEnded()&&this._started&&(this._player.isStalled()||this._isSeeking)?this.show(!0===t):this.hide()}},{key:"_isShowing",value:function(){return this._player.el.classList.contains("loading")}},{key:"_doShow",value:function(){this._player.el.classList.add("loading"),this._player.el.classList.remove("was-loading"),this._ariaSpan.innerText=this._ariaString}},{key:"hide",value:function(){clearTimeout(this._showTimeout),this._isShowing()&&(this._player.el.classList.remove("loading"),this._player.el.classList.contains("user-hover")||this._player.el.classList.add("was-loading"),this._ariaSpan.innerText="")}},{key:"destroy",value:function(){this._removeEventListeners()}}]),t}();e.exports=r},{294:294}],292:[function(t,e,i){"use strict";e.exports={audiotrackscontrol:"Audio",playpause:"Play/Pause",play:"Play",pause:"Pause",togglemutevolume:"Toggle Mute Volume",fullscreen:"Full Screen",exitfullscreen:"Exit Full Screen",airplay:"AirPlay",captionscontrol:"Closed Captions",captionsturnedon:"Closed Captions On",captionsturnedoff:"Closed Captions Off",subtitlescontrol:"Subtitles",subtitlesturnedon:"Subtitles On",subtitlesturnedoff:"Subtitles Off",share:"Share",elapsed:"elapsed",remaining:"remaining",currenttimetext:"{minutes} minutes and {seconds} seconds",pictureinpicture:"Picture-in-Picture",exitpictureinpicture:"Exit Picture-in-Picture",closesharing:"Close Sharing",facebookshare:"Share to Facebook",twittershare:"Share to Twitter",copylink:"Copy Link",copyembed:"Copy Embed Code",copyarea:"Copy Link Text Area",selectlink:"Select Link Text",selectembed:"Select Embed Code",close:"Close",dismisscopy:"Dismiss Copy",replay:"Replay",live:"Live",livestream:"Live Streaming",newwindow:"Opens in New Window",threesixtyicon:"Return 360 Point of View to Origin",threesixtyleft:"Move 360 Point of View Left",threesixtyright:"Move 360 Point of View Right",threesixtyup:"Move 360 Point of View Up",threesixtydown:"Move 360 Point of View Down",error:"The video could not be played.",jumptochapter:"Jump to chapter",chapter:"{chaptertitle} Chapter {chaptertime}",minutesandseconds:"{minutes} minutes and {seconds} seconds",loading:"The video is loading",captionsoff:"Off"}},{}],293:[function(t,e,i){"use strict";e.exports={en:"English",fr:"French",es:"Spanish",zh:"Chinese",ja:"Japanese",ko:"Korean",ru:"Russian",de:"German",it:"Italian",ar:"Arabic",pl:"Polish",nl:"Dutch",id:"Bahasa",bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",et:"Estonian",fi:"Finnish",el:"Greek",hu:"Hungarian",lv:"Latvian",lt:"Lithuanian",no:"Norwegian",nb:"Norwegian",ro:"Romanian",sk:"Slovakian",sv:"Swedish",th:"Thai",tr:"Turkish",uk:"Ukrainian"}},{}],294:[function(t,e,i){"use strict";var n=t(295),s=t(292),r=window.document.documentElement,o=void 0;try{o=window.top.document.documentElement}catch(t){o=r}var a=t(35),l={},h=function(t){var e=void 0;try{e=t||o.getAttribute("lang")}catch(t){e=r.getAttribute("lang")}var i=void 0;if(e)switch(e.toLowerCase()){case"es-418":i="es-LA";break;case"pt":i="pt-BR";break;default:i=e}else i="en-US";return i},c=function(t){return t=h(t),void 0!==l[t]};e.exports={getLanguage:h,getTranslation:function(t){var e=h((t=t||{}).lang);if(c(e))return t.callback?(t.callback(l[e]),null):l[e];if(!t.callback)throw new Error("To use Localization.getTranslation you must either pass a callback or ensure the translation is ready via Localization.translationReady");var i=t.basePath||"/ac/ac-video/latest/json/localization/",r=n[e]?i+n[e]:i+n["en-US"],o=s,u=function(){l[e]=o,t.callback(o)};return t.forceEnglishLabels?(u(),l[e]):(a.get(r,{success:function(i){try{o=Object.assign(o,JSON.parse(i)),l[e]=o,t.callback(o)}catch(t){u()}},error:u}),null)},translationReady:c}},{292:292,295:295,35:35}],295:[function(t,e,i){"use strict";e.exports={"bg-BG":"bg-BG.json","cs-CZ":"cs-CZ.json","el-GR":"el-GR.json","de-AT":"de-AT.json","de-CH":"de-CH.json","de-DE":"de-DE.json","de-LI":"de-LI.json","da-DK":"da-DK.json",en:"en.json","en-US":"en-US.json","en-AP":"en-AP.json","en-CA":"en-CA.json","en-GB":"en-GB.json","en-HK":"en-HK.json","en-IE":"en-IE.json","en-IN":"en-IN.json","en-KR":"en-KR.json","en-AU":"en-AU.json","en-NZ":"en-NZ.json","en-SG":"en-SG.json","en-ZA":"en-ZA.json",es:"es.json","es-LA":"es-LA.json","es-MX":"es-MX.json","es-ES":"es-ES.json","et-EE":"et-EE.json","fi-FI":"fi-FI.json",fr:"fr.json","fr-BE":"fr-BE.json","fr-CA":"fr-CA.json","fr-CH":"fr-CH.json","fr-FR":"fr-FR.json","hr-HR":"hr-HR.json","hu-HU":"hu-HU.json","it-IT":"it-IT.json",ja:"ja.json","ja-JP":"ja-JP.json","ko-KR":"ko-KR.json","lt-LT":"lt-LT.json","lv-LV":"lv-LV.json","nl-BE":"nl-BE.json","nl-NL":"nl-NL.json","no-NO":"no-NO.json","pl-PL":"pl-PL.json",pt:"pt.json","pt-BR":"pt-BR.json","pt-PT":"pt-PT.json","ro-RO":"ro-RO.json","ru-RU":"ru-RU.json","sk-SK":"sk-SK.json","sv-SE":"sv-SE.json","tr-TR":"tr-TR.json","uk-UA":"uk-UA.json",zh:"zh.json","zh-CN":"zh-CN.json","zh-HK":"zh-HK.json","zh-TW":"zh-TW.json"}},{}],296:[function(t,e,i){"use strict";var n=t(297),s=function(t){this.el=t.el,this._player=t.player,this._popUp=new n(t),this.el.appendChild(this._popUp.el)},r=s.prototype;r.setData=function(t){this._popUp.setData(t)},r.show=function(){this.el.classList.remove("hidden"),this._popUp.show()},r.hide=function(){this.el.classList.add("hidden"),this._popUp.hide()},r.setPopUpPosition=function(t){this._popUp.setPopUpPosition(t)},r.destroy=function(){this._popUp.destroy()},e.exports=s},{297:297}],297:[function(t,e,i){"use strict";var n=t(301),s=t(309),r=t(298),o=t(385),a=t(311),l=function(t){this._player=t.player,this.el=document.createElement("div"),this.el.style.opacity="0",this.el.innerHTML=n,this._player.isDvr()?this._liveStreamLookback=a:this._liveStreamLookback=0,this._thumbnailHandler=new r({el:this.el.querySelector(".ac-video-trickplay-image"),player:this._player,numberOfImages:t.numberOfImages}),this._timeLabel=this.el.querySelector(".ac-video-trickplay-time"),this._chapterLabel=this.el.querySelector(".ac-video-trickplay-chapter-title"),this._bindMethods(),this._addEventListeners()},h=l.prototype;h._initPointerTracking=function(){this._scrubberView=this._player.controls.scrubberView,this._scrubberView&&(this._runnableTrack=this._scrubberView.el.querySelector(".ac-slider-runnable-track"),this._calcOffsets(),this._scrubberView.el.addEventListener("mouseover",this.show),this._scrubberView.el.addEventListener("mouseout",this.hide),this._scrubberView.el.addEventListener("focusin",this._onScrubberFocusIn),this._scrubberView.el.addEventListener("focusout",this._onScrubberFocusOut),this._scrubberView.el.addEventListener("mousedown",this._startScrubbing),this._scrubberView.el.addEventListener("mouseup",this._endScrubbing),this._scrubberView.el.addEventListener("mousemove",this._onTrackerUpdate),this._scrubberView.el.addEventListener("mousemove",this._setThumbnail),this._player.on("resize",this._throttledCalcOffsets),window.addEventListener("resize",this._throttledCalcOffsets))},h._bindMethods=function(){this.show=this.show.bind(this),this.hide=this.hide.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._startScrubbing=this._startScrubbing.bind(this),this._endScrubbing=this._endScrubbing.bind(this),this._initPointerTracking=this._initPointerTracking.bind(this),this._onTrackerUpdate=this._onTrackerUpdate.bind(this),this._setThumbnail=this._setThumbnail.bind(this),this._calcOffsets=this._calcOffsets.bind(this),this._onScrubberFocusIn=this._onScrubberFocusIn.bind(this),this._onScrubberFocusOut=this._onScrubberFocusOut.bind(this),this._throttledCalcOffsets=o(this._calcOffsets,30)},h._startScrubbing=function(t){this._thumbnailHandler.el.classList.add("hidden"),this._scrubberView.el.removeEventListener("mousemove",this._setThumbnail),this._scrubberView.el.removeEventListener("mouseout",this.hide),document.addEventListener("mouseup",this._endScrubbing),document.addEventListener("mousemove",this._onTrackerUpdate)},h._endScrubbing=function(t){t.target===this._scrubberView.el&&this.hide(),this._scrubberView.el.addEventListener("mousemove",this._setThumbnail),this._scrubberView.el.addEventListener("mouseout",this.hide),document.removeEventListener("mouseup",this._endScrubbing),document.removeEventListener("mousemove",this._onTrackerUpdate),this._setThumbnail(t),this._thumbnailHandler.el.classList.remove("hidden")},h._calcOffsets=function(){this._onLoadedMetaData();var t=this._player.el.getBoundingClientRect();this._offsetLeft=t.left;var e=this._runnableTrack.getBoundingClientRect();this._leftBoundary=e.left-this._offsetLeft,this._rightBoundary=e.right-this._offsetLeft,this._imgWidth=this.el.firstElementChild.getBoundingClientRect().width},h._onLoadedMetaData=function(){var t=this._player.getMediaElement().videoWidth,e=this._player.getMediaElement().videoHeight,i=-1!==(this._player.getCurrentSrc()||"").indexOf("-tft-");this.el.classList.remove("square-video"),this.el.classList.remove("vertical-video"),this.el.classList.remove("tft-video"),i?(this.el.classList.add("tft-video"),this._thumbnailHandler.setVertical(!1)):t2?(this.el.style.opacity="1",this._thumbnailHandler.setData(t),this._cachedTrackerUpdate&&(this._onTrackerUpdate(this._cachedTrackerUpdate),this._setThumbnail())):(this._thumbnailHandler.setData(null),t?(this._canPlayThroughHander=this.setData.bind(this,t),this._player.on("canplaythrough",this._canPlayThroughHander),this._player.on("playing",this._canPlayThroughHander)):this.el.style.opacity="1"),this._onLoadedMetaData()},h.show=function(t){t&&this._onTrackerUpdate(t),this.el.firstElementChild.classList.remove("hidden")},h.hide=function(){this.el.firstElementChild.classList.add("hidden")},h.destroy=function(){this._canPlayThroughHander&&(this._player.off("canplaythrough",this._canPlayThroughHander),this._player.off("playing",this._canPlayThroughHander)),this._removeEventListeners(),this._throttledCalcOffsets&&this._throttledCalcOffsets.cancel(),this._scrubberView=null},e.exports=l},{298:298,301:301,309:309,311:311,385:385}],298:[function(t,e,i){"use strict";var n=function(t){this.el=t.el,this._player=t.player,this._imgWidth=t.imgWidth||144,this.el.style.backgroundSize=100*this._numberOfImages+"% 100%"},s=n.prototype;s.setVertical=function(t){this._imgWidth=t?81:144},s.getWidth=function(){return this._imgWidth},s.setData=function(t){if(!t)return this._imgUrl=null,void(this.el.style.backgroundImage="");if(t.url!==this._imgUrl){this._imgUrl=t.url,this._numberOfImages=parseInt(t.numberOfImages||120),this.el.style.backgroundSize=100*this._numberOfImages+"% 100%",this.el.style.backgroundImage="",this.el.classList.add("hidden");var e=this._loadImage(this._imgUrl).then(function(){this._imageLoadPromise===e&&(this.el.style.backgroundImage='url("'+this._imgUrl+'")',this._imageLoadPromise=null,this.el.classList.remove("hidden"))}.bind(this));this._imageLoadPromise=e}},s._loadImage=function(t){return new Promise((function(e,i){var n=new Image;n.onload=function(){e()},n.onerror=function(){i()},n.src=t}))},s.setTime=function(t,e){var i=t/e,n=Math.min(Math.round(i*this._numberOfImages),this._numberOfImages-1)/(this._numberOfImages-1)*100;this.el.style.backgroundPositionX=n+"%"},s.destroy=function(){this._imageLoadPromise&&this._imageLoadPromise.cancel()},e.exports=n},{}],299:[function(t,e,i){"use strict";var n=t(305),s=t(304),r=t(62),o=t(219),a=t(190).Dialog,l=t(216),h=t(294),c=t(20),u=void 0;try{u=t(43)}catch(t){r("ac-analytics-share failed to load, are you sure you've included it?")}var d=t(406).os,p=d.ios||d.android,f=function(t){this.el||this._initializeElement(t.el,t.template),this._player=t.player,this._parentView=t.parentView,this._clickedShareButton=null,this._container=this.el.querySelector(".container"),this._sharingButtonContainer=this.el.querySelector(".sharing-button-container"),this._facebookButton=this.el.querySelector(".acv-fb-share"),this._twitterButton=this.el.querySelector(".acv-tw-share"),this._lineButton=this.el.querySelector(".acv-line-share"),this._copyLinkButton=this.el.querySelector(".copy-link"),this._copyEmbedCodeButton=this.el.querySelector(".copy-embed-code"),this._copyTextArea=this.el.querySelector(".copy-area"),this._copyCloseButton=this.el.querySelector(".textinput-close-button"),this._closeButton=this.el.querySelector(".close-button"),!1===t.analytics&&(u=null),p&&(this.el.firstChild.classList.add("mobile"),this._player.on("loadstart",function(){this._getClientWidth()>735&&this.el.firstChild.classList.add("mobile-large")}.bind(this))),this._bindMethods(),this._addEventListeners(),this._syncSocialShareHidden()},_=f.prototype;_._initializeElement=function(t,e){t?this.el=t:(this.el=document.createElement("div"),this._templateData=h.getTranslation(),this.el.innerHTML=l((e||n).toString(),this._templateData))},_.setData=function(t){if(t){if(this._parentView.show(),t.allowEmbed&&this.el.firstChild.classList.add("embed-enabled"),this._sharingUrl=t.originatorUrl||window.location.href,this._videoid=t.videoid,this._hideExtension=t.hideExtension,this._embedPath=t.embedpath||"https://www.apple.com/embed/",this._hideFacebook=t.hideFacebookShare||!1,this._hideTwitter=t.hideTwitterShare||!1,this._hideLine=void 0===t.hideLineShare||t.hideLineShare,this._title=t.title||"Video Player",this._syncSocialShareHidden(),this._container.classList.remove("textarea-active"),u&&!1!==t.analytics&&t.videoid)try{this._initAnalyticsAttributes(t),this._analyticsObserver||(this._analyticsObserver=u({context:this.el}))}catch(t){r("ac-analytics-share failed to load, are you sure you've included it?")}}else this._parentView.hide()},_._bindMethods=function(){this._doFacebookShare=this._doSocialShare.bind(this,a.FACEBOOK_SHARE),this._doTwitterShare=this._doSocialShare.bind(this,a.TWITTER_TWEET),this._doLineShare=this._doSocialShare.bind(this,a.LINE_SHARE),this._copyUrl=this._copyUrl.bind(this),this._copyEmbedCode=this._copyEmbedCode.bind(this),this._closeCopyArea=this._showTextArea.bind(this,!1),this._closeState=this._closeState.bind(this)},_._addEventListeners=function(){this._facebookButton&&this._facebookButton.addEventListener("click",this._doFacebookShare),this._twitterButton&&this._twitterButton.addEventListener("click",this._doTwitterShare),this._lineButton&&this._lineButton.addEventListener("click",this._doLineShare),this._copyLinkButton&&this._copyLinkButton.addEventListener("click",this._copyUrl),this._copyEmbedCodeButton&&this._copyEmbedCodeButton.addEventListener("click",this._copyEmbedCode),this._copyCloseButton&&this._copyCloseButton.addEventListener("click",this._closeCopyArea),this._closeButton&&this._closeButton.addEventListener("click",this._closeState)},_._removeEventListeners=function(){this._facebookButton&&this._facebookButton.removeEventListener("click",this._doFacebookShare),this._twitterButton&&this._twitterButton.removeEventListener("click",this._doTwitterShare),this._lineButton&&this._lineButton.removeEventListener("click",this._doLineShare),this._copyLinkButton&&this._copyLinkButton.removeEventListener("click",this._copyUrl),this._copyEmbedCodeButton&&this._copyEmbedCodeButton.removeEventListener("click",this._copyEmbedCode),this._copyCloseButton&&this._copyCloseButton.removeEventListener("click",this._closeCopyArea),this._closeButton&&this._closeButton.removeEventListener("click",this._closeState)},_._syncSocialShareHidden=function(){this._facebookButton&&(this._hideFacebook?this._facebookButton.classList.add("hide-button"):this._facebookButton.classList.remove("hide-button")),this._twitterButton&&(this._hideTwitter?this._twitterButton.classList.add("hide-button"):this._twitterButton.classList.remove("hide-button")),this._lineButton&&(this._hideLine?this._lineButton.classList.add("hide-button"):this._lineButton.classList.remove("hide-button"))},_._doSocialShare=function(t){this._clickedShareButton=null,this._copyLinkButton.classList.remove("active"),this._copyEmbedCodeButton.classList.remove("active"),this._showTextArea(!1),a.create(t,{url:this._sharingUrl,title:this._title})},_._showTextArea=function(t){t?(this._container.classList.add("textarea-active"),o(this._copyTextArea),p||this._copyTextArea.setAttribute("readonly","")):(this._container.classList.remove("textarea-active"),this._copyLinkButton.classList.remove("active"),this._copyEmbedCodeButton.classList.remove("active"),this._copyTextArea.removeAttribute("readonly"),this._clickedShareButton&&this._clickedShareButton.focus(),this._copyLinkButton.setAttribute("aria-label",this._templateData.copylink),this._copyEmbedCodeButton.setAttribute("aria-label",this._templateData.copyembed))},_._copyUrl=function(){this._clearTextArea(),this._copyTextArea.value=this._sharingUrl,this._copyLinkButton.classList.add("active"),this._copyLinkButton.setAttribute("aria-label",this._templateData.selectlink),this._showTextArea(!0),this._clickedShareButton=this._copyLinkButton,this._copyTextArea.setAttribute("aria-label",this._templateData.copylink),o(this._copyTextArea)},_._clearTextArea=function(){window.getSelection().removeAllRanges(),this._copyLinkButton.classList.remove("active"),this._copyEmbedCodeButton.classList.remove("active"),this._copyTextArea.removeAttribute("readonly")},_._copyEmbedCode=function(){this._clearTextArea(),this._copyTextArea.value=l(s,{videoid:this._videoid,embedCodePath:this._embedPath,width:this._player.getMediaWidth(),height:this._player.getMediaHeight(),title:this._title,extension:this._hideExtension?"":".html"}),this._copyEmbedCodeButton.classList.add("active"),this._copyEmbedCodeButton.setAttribute("aria-label",this._templateData.selectembed),this._showTextArea(!0),this._clickedShareButton=this._copyEmbedCodeButton,this._copyTextArea.setAttribute("aria-label",this._templateData.copyembed),o(this._copyTextArea)},_._focusFirstButton=function(){this._firstButton||(this._firstButton=c.getTabbableElements(this._sharingButtonContainer)[0]),this._firstButton.focus()},_.show=function(){this._container.classList.add("showing")},_.hide=function(){this._clickedShareButton=null,this._showTextArea(!1),this._container.classList.remove("showing")},_._getClientHeight=function(){return this.el.clientHeight},_._getClientWidth=function(){return this.el.clientWidth},_.destroy=function(){this._removeEventListeners()},_._closeState=function(){this._showTextArea(!1),0===this._player.getCurrentTime()||this._player.getEnded()?this._player.states.setState("initial"):this._player.states.setState("none")},_._getAnalyticsSource=function(){return"drawer"},_._initAnalyticsAttributes=function(t){var e=[];this._facebookButton&&e.push({button:this._facebookButton,title:"facebook",events:"event85"}),this._twitterButton&&e.push({button:this._twitterButton,title:"twitter",events:"event84"}),this._copyLinkButton&&e.push({button:this._copyLinkButton,title:"copy-link",events:"event89"}),this._copyEmbedCodeButton&&e.push({button:this._copyEmbedCodeButton,title:"copy-embed-code",events:"event101"});var i=(-1!==(t.url&&t.url.indexOf(".m3u8"))?"m3u8":"mp4")+" via html5",n=this._getAnalyticsSource(),s=t.videoid,r=document.head.querySelectorAll('meta[property="analytics-track"]');r=r?r[0].getAttribute("content"):"",e.forEach(function(t){t.button.setAttribute("data-analytics-click",""),t.button.setAttribute("data-analytics-share",JSON.stringify({title:s,events:t.events,prop2:r+" - "+s+" - "+t.title,prop18:i,eVar49:document.referrer,eVar54:document.location.href,eVar55:r+" - "+s,eVar70:n}))}.bind(this))},e.exports=f},{190:190,20:20,216:216,219:219,294:294,304:304,305:305,406:406,43:43,62:62}],300:[function(t,e,i){"use strict";e.exports='\n
\n\t\n\n\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\t\t\n\t
\n\n\t
\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n
\n {audiotrackscontrol}\n
    \n
    \n
    \n {subtitlescontrol}\n
      \n
      \n\t\t\t\t
      \n
      \n\t\t\t
      \n\n\t\t\t
      \n\t\t\t\t
      \n\t\t\t\t\t
      \n\t\t\t\t\t\t{elapsed}\n\t\t\t\t\t\t00:00\n\t\t\t\t\t\t\n\t\t\t\t\t
      \n\t\t\t\t
      \n\t\t\t\t
      \n\t\t\t\t\t
      \n\t\t\t\t\t
      \n\t\t\t\t
      \n\t\t\t\t
      \n\t\t\t\t\t
      \n\t\t\t\t\t\t{remaining}\n\t\t\t\t\t\t-00:00\n\t\t\t\t\t\t\n\t\t\t\t\t
      \n\t\t\t\t
      \n
      \n \n {live}\n \n
      \t\n\t\t\t
      \n\n\t\t\t
      \n\t\t\t\t{livestream}\n\t\t\t
      \n\t\t\t\n\n\t\t\t
      \n\t\t\t\t\n\t\t\t
      \n\n\t\t\t
      \n\t\t\t\t\n\t\t\t
      \n\n\t\t\t
      \n\t\t\t\t\n\t\t\t
      \n\t\t\t\n\t\t
      \n\t
      \n\n\t
      \n\t\t
      \n\t
      \n\n\n
      \n\n
      \n\t
      \n\t
      \n\t\t\n\t\t\n\t\t\n\t\t\n\t
      \n\t
      \n\t
      \n\t\n
      \n'},{}],301:[function(t,e,i){"use strict";e.exports=''},{}],302:[function(t,e,i){"use strict";e.exports='\n
      \n
      \n\t
      \n\t\t
      \n\t
      \n\t
      \n\t\t
      \n\t\t\t
      \n\t\t\t
      \n\t\t
      \n\t
      \n\t
      \n\t
      \n\t\t
      \n\t\t
      \n\t
      \n
      \n'},{}],303:[function(t,e,i){"use strict";e.exports=''},{}],304:[function(t,e,i){"use strict";e.exports=''},{}],305:[function(t,e,i){"use strict";e.exports=''},{}],306:[function(t,e,i){"use strict";e.exports='\n
      \n\t
      \n\t
      \n\t\t
      \n\t\t\t
      \n\t\t\t\t
      \n\t\t\t
      \n\t\t
      \n\t
      \n\t
      \n\t\t
      \n\t
      \n
      \n'},{}],307:[function(t,e,i){"use strict";var n=t(96).EventEmitterMicro,s=function(t){n.call(this),this.el=t.el||document.body,this.breakpoints=t.breakpoints.sort((function(t,e){return t.minWidth-e.minWidth})),this._player=t.player,this._breakPointsLength=this.breakpoints.length,this._addClasses=t.addClass,this._addEventListeners(),this._onResize()},r=n.prototype,o=s.prototype=Object.create(r);o.constructor=s,o._addEventListeners=function(){var t=this;this._boundOnResize=function(){t._onResize.apply(t,arguments)},window.addEventListener("resize",this._boundOnResize),window.addEventListener("orientationchange",this._boundOnResize),window.addEventListener("DOMContentLoaded",this._boundOnResize)},o._removeEventListeners=function(){window.removeEventListener("resize",this._boundOnResize),window.removeEventListener("orientationchange",this._boundOnResize),window.addEventListener("DOMContentLoaded",this._boundOnResize)},o._onResize=function(t){var e=this.el.clientWidth,i=this._currentBreakpoint;if(!1!==t&&this._player.refreshSize(),!i||!s.widthInBreakpoint(e,i)){var n=s.getBreakpointFromWidth(e,this.breakpoints,i,this._breakPointsLength);this._addClasses&&(this._currentBreakpoint&&this.el.classList.remove(i.name),this.el.classList.add(n.name)),this._currentBreakpoint=n,this.trigger("breakpointchange",n)}},o.getCurrentBreakpoint=function(){return this._currentBreakpoint},o.refresh=function(){this._onResize(!1)},o.destroy=function(){this._removeEventListeners(),r.destroy.call(this)},s.getBreakpointFromElement=function(t,e){return s.getBreakpointFromWidth(t.clientWidth,e)},s.getBreakpointFromWidth=function(t,e,i,n){for(var s=0,r=n||e.length;s=o.minWidth&&t<=o.maxWidth))return o}return null},s.widthInBreakpoint=function(t,e){return t>=e.minWidth&&t<=e.maxWidth},e.exports=s},{96:96}],308:[function(t,e,i){"use strict";e.exports={setItem:function(t,e){return localStorage.setItem("acv-"+t,e)},getItem:function(t){return localStorage.getItem("acv-"+t)},hasItem:function(t){return null!==localStorage.getItem("acv-"+t)},removeItem:function(t){return localStorage.removeItem("acv-"+t)},VOLUME_LEVEL:"volume-level",VOLUME_MUTED:"volume-muted",CC_LANGUAGE:"cc-language",AUDIO_TRACK_TYPE:"audiotrack-type",AUDIO_TRACK_LANGUAGE:"audiotrack-language"}},{}],309:[function(t,e,i){"use strict";var n=t(216),s={addLeadingZero:function(t,e){if(e=e||2,t<10||e>2)for(t=String(t);t.length=3600?"{PN}{hours}:{minutes}:{seconds}":"{PN}{minutes}:{seconds}",{PN:t.negativeModifier,hours:t.hours,minutes:t.minutes,seconds:t.seconds}))},splitTime:function(t,e,i){i=i||function(t){return t};var n={negativeModifier:"",hours:0,minutes:0,seconds:0};if(isNaN(t))return n;for(var s in n.negativeModifier=t<0?"-":"",t=Math.abs(t),n.hours=e>=3600?Math.floor(t/3600):0,n.minutes=n.hours?Math.floor(t/60%60):Math.floor(t/60),n.seconds=t%60,n)"number"==typeof n[s]&&"hours"!==s&&(n[s]=i(n[s]));return n},stringToNumber:function(t){for(var e=0,i=t.split(":");i.length;)3===i.length?e+=3600*parseFloat(i.shift()):2===i.length?e+=60*parseFloat(i.shift()):e+=parseFloat(i.shift());return e}};e.exports=s},{216:216}],310:[function(t,e,i){"use strict";e.exports=t(218)},{218:218}],311:[function(t,e,i){"use strict";e.exports=60},{}],312:[function(t,e,i){"use strict";var n={};e.exports=function(t){return n[t]||(n[t]=new Promise((function(e,i){var n=document.createElement("script");n.type="text/javascript",n.src=t,n.onload=e,n.onerror=i;try{document.body.appendChild(n)}catch(t){i(t)}}))),n[t]}},{}],313:[function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=t(152);e.exports=function t(){var e=Array.prototype.slice.call(arguments);if(e.length<2)return s(e[0]);var i=s(e.shift(),!0),r=e.shift();for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&"object"===n(i[o])?"object"===n(i[o])&&"object"===n(r[o])&&(i[o]=t(i[o],r[o])):i[o]=r[o]);return e.length?t.apply(null,[i].concat(e)):i}},{152:152}],314:[function(t,e,i){"use strict";e.exports=function(t){var e=!0,i=!1,n=void 0;try{for(var s,r=Array.from(t.textTracks)[Symbol.iterator]();!(e=(s=r.next()).done);e=!0)for(var o=s.value;o.cues&&o.cues.length&&o.cues[0].endTime=0?"m3u8":"mp4";var E="_{width}x{height}{suffix}.{extension}";v&&(E="_{height}x{width}{suffix}.{extension}");var T=r;return a&&a.urlOptimizeHls&&(T=o),t.match(T)?t.replace(T,n(E,g)):t.match(s)?t.replace(s,n(E,g)):t},getCaptionsSource:function(t){return t.match(c)?t.match(r)?{src:t.replace(r,"_cc.vtt"),srclang:"en"}:t.match(s)?{src:t.replace(s,"_cc.vtt"),srclang:"en"}:null:null},getThumbnailImageSource:function(t){return t.match(h)?{url:t.replace(a,"_thumbnails.jpg")}:null}}},{216:216,315:315,316:316,317:317,318:318}],320:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i{this.off(t,i),void 0!==n?e(n):e()};return this.on(t,i)}off(t,e){if(!this.has(t))return;if(!e)return void delete this._events[t];const i=this._events[t].indexOf(e);-1!==i&&this._events[t].splice(i,1)}trigger(t,e){if(this.has(t))for(let i=this._events[t].length-1;i>=0;i--)void 0!==e?this._events[t][i](e):this._events[t][i]()}has(t){return t in this._events&&0!==this._events[t].length}destroy(){this._events=null}}n.EventEmitterMicro=n,e.exports=n},{}],327:[function(t,e,i){"use strict";e.exports={version:"3.8.0",major:"3.x",majorMinor:"3.8"}},{}],328:[function(t,e,i){"use strict";const n=t(326),s=t(335),r=t(330),o=t(331),a=t(333),l=t(354),h=t(355),c=t(356),u=t(327),d={};"undefined"!=typeof window&&(d.update=t(177),d.cancelUpdate=t(172),d.external=t(174),d.draw=t(173));let p=null;class f extends n{constructor(){if(super(),p)throw"You cannot create multiple AnimSystems. You probably want to create multiple groups instead. You can have unlimited groups on a page";p=this,this.groups=[],this.scrollSystems=[],this.timeSystems=[],this.tweenGroup=null,this._forceUpdateRAFId=-1,this.initialized=!1,this.model=s,this.plugins={keyframe:[],parser:[]},this.version=u.version,this._resolveReady=()=>{},this.ready=new Promise(t=>this._resolveReady=t),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(t,e){t.install(this,e)}remove(){return this.initialized?Promise.all(this.groups.map(t=>t.remove())).then(()=>{this.groups=null,this.scrollSystems=null,this.timeSystems=null,window.clearTimeout(s.RESIZE_TIMEOUT),window.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResizeImmediate),this._events={},this.initialized=!1,this.ready=new Promise(t=>this._resolveReady=t)}):(this.ready=new Promise(t=>this._resolveReady=t),Promise.resolve())}destroy(){return this.remove()}createTimeGroup(t,e){t instanceof HTMLElement||(t=(e=t||{}).el);let i=new h(t,this);return e&&e.name&&(i.name=e.name),this.groups.push(i),this.timeSystems.push(i),this.trigger(s.EVENTS.ON_GROUP_CREATED,i),i}createScrollGroup(t,e){if(!t)throw"AnimSystem scroll based groups must supply an HTMLElement";let i=new l(t,this);return(e=e||{}).name&&(i.name=e.name),e.getPosition&&e.getMaxPosition&&(i.getPosition=e.getPosition,i.createViewableRange=()=>({a:0,d:e.getMaxPosition()})),i.getPosition=e.getPosition||i.getPosition,i.getPosition=e.getPosition||i.getPosition,this.groups.push(i),this.scrollSystems.push(i),this.trigger(s.EVENTS.ON_GROUP_CREATED,i),i}removeGroup(t){return t.destroyed||t.anim!==this?Promise.resolve():Promise.all(t.keyframeControllers.map(e=>t.removeKeyframeController(e))).then(()=>{let e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1),e=this.scrollSystems.indexOf(t),-1!==e&&this.scrollSystems.splice(e,1),e=this.timeSystems.indexOf(t),-1!==e&&this.timeSystems.splice(e,1),t.destroyed||t.destroy()})}createDOMGroups(){document.body.setAttribute("data-anim-scroll-group","body"),document.querySelectorAll("[data-anim-scroll-group]").forEach(t=>this.createScrollGroup(t)),document.querySelectorAll("[data-anim-time-group]").forEach(t=>this.createTimeGroup(t)),this.trigger(s.EVENTS.ON_DOM_GROUPS_CREATED,this.groups)}createDOMKeyframes(){let t=[];["data-anim-keyframe",r.DATA_ATTRIBUTE,o.DATA_ATTRIBUTE,a.DATA_ATTRIBUTE].forEach((function(e){for(let i=0;i<12;i++)t.push(e+(0===i?"":"-"+(i-1)))}));for(let e=0;e{null!==this.groups&&(this.groups.forEach(t=>t.onKeyframesDirty({silent:!0})),this.groups.forEach(t=>t.trigger(s.EVENTS.ON_DOM_KEYFRAMES_CREATED,t)),this.trigger(s.EVENTS.ON_DOM_KEYFRAMES_CREATED,this),this.groups.forEach(t=>{t.forceUpdate({waitForNextUpdate:!1,silent:!0}),t.reconcile()}),this.onScroll())},!0)}initializeResizeFilter(){if(s.cssDimensionsTracker)return;const t=document.querySelector(".cssDimensionsTracker")||document.createElement("div");t.setAttribute("cssDimensionsTracker","true"),t.style.position="fixed",t.style.top="0",t.style.width="100%",t.style.height="100vh",t.style.pointerEvents="none",t.style.visibility="hidden",t.style.zIndex="-1",document.documentElement.appendChild(t),s.cssDimensionsTracker=t}initializeModel(){s.pageMetrics.windowHeight=s.cssDimensionsTracker.clientHeight,s.pageMetrics.windowWidth=s.cssDimensionsTracker.clientWidth,s.pageMetrics.scrollY=window.scrollY||window.pageYOffset,s.pageMetrics.scrollX=window.scrollX||window.pageXOffset,s.pageMetrics.breakpoint=s.getBreakpoint();let t=document.documentElement.getBoundingClientRect();s.pageMetrics.documentOffsetX=t.left+s.pageMetrics.scrollX,s.pageMetrics.documentOffsetY=t.top+s.pageMetrics.scrollY}setupEvents(){window.removeEventListener("scroll",this.onScroll),window.addEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResizeImmediate),window.addEventListener("resize",this.onResizeImmediate)}onScroll(){s.pageMetrics.scrollY=window.scrollY||window.pageYOffset,s.pageMetrics.scrollX=window.scrollX||window.pageXOffset;for(let t=0,e=this.scrollSystems.length;t{let t=s.pageMetrics.breakpoint,e=s.getBreakpoint();if(e!==t){s.pageMetrics.previousBreakpoint=t,s.pageMetrics.breakpoint=e;for(let t=0,e=this.groups.length;t{for(let t=0,i=this.groups.length;tt instanceof h)}getScrollGroupForTarget(t){return this._getGroupForTarget(t,t=>!(t instanceof h))}getGroupForTarget(t){return this._getGroupForTarget(t,()=>!0)}getGroupByName(t){return this.groups.find(e=>e.name===t)}_getGroupForTarget(t,e){if(t._animInfo&&t._animInfo.group&&e(t._animInfo.group))return t._animInfo.group;let i=t;for(;i;){if(i._animInfo&&i._animInfo.isGroup&&e(i._animInfo.group))return i._animInfo.group;i=i.parentElement}}getControllerForTarget(t){return t._animInfo&&t._animInfo.controller?t._animInfo.controller:null}addTween(t,e){return this.tweenGroup.addKeyframe(t,e)}}e.exports="undefined"==typeof window?new f:window.AC.SharedInstance.share("AnimSystem",u.major,f),e.exports.default=e.exports},{172:172,173:173,174:174,177:177,326:326,327:327,330:330,331:331,333:333,335:335,354:354,355:355,356:356}],329:[function(t,e,i){"use strict";const n=t(335);class s{constructor(t,e){this._index=0,this.keyframe=t,e&&(this.name=e)}get start(){return this.keyframe.jsonProps.start}set index(t){this._index=t}get index(){return this._index}}e.exports=class{constructor(t){this.timeGroup=t,this.chapters=[],this.chapterNames={},this.currentChapter=null,this.tween=null,this.destroyed=!1}destroy(){this.destroyed=!0,this.tween&&!this.tween.destroyed&&this.tween.remove(),this.tween=null}addChapter(t){const{position:e,name:i}=t;if(void 0===e)throw ReferenceError("Cannot add chapter without target position.");t._impIsFirst||0!==this.chapters.length||this.addChapter({position:0,_impIsFirst:!0});let n=this.timeGroup.addKeyframe(this,{start:e,end:e,event:"Chapter"});this.timeGroup.forceUpdate({waitForNextFrame:!1,silent:!0});const r=new s(n,i);if(this.chapters.push(r),i){if(this.chapterNames.hasOwnProperty(i))throw ReferenceError('Duplicate chapter name assigned - "'.concat(i,'" is already in use'));this.chapterNames[i]=r}return this.chapters.sort((t,e)=>t.start-e.start).forEach((t,e)=>t.index=e),this.currentChapter=this.currentChapter||this.chapters[0],r}playToChapter(t){let e;if(t.hasOwnProperty("index"))e=this.chapters[t.index];else{if(!t.hasOwnProperty("name"))throw ReferenceError("Cannot play to chapter without target index or name");e=this.chapterNames[t.name]}if(!e||this.currentChapter===e&&!0!==t.force)return;let i=t.ease||"easeInOutCubic";this.tween&&this.tween.controller&&(this.tween.remove(),i=t.ease||"easeOutQuint"),this.timeGroup.timeScale(t.timeScale||1);const s=void 0!==t.duration?t.duration:this.getDurationToChapter(e),r=this.timeGroup.time(),o=e.start;let a=!1;return this.tween=this.timeGroup.anim.addTween({time:r},{easeFunction:i,duration:s,time:[r,o],onStart:()=>{this.destroyed||this.timeGroup.trigger(n.EVENTS.ON_CHAPTER_INITIATED,{player:this,next:e})},onDraw:t=>{if(this.destroyed)return;let i=t.tweenProps.time.current;this.timeGroup.time(i),t.keyframe.curvedT>.5&&!a&&(a=!0,this.currentIndex=e.index,this.currentChapter=e,this.timeGroup.trigger(n.EVENTS.ON_CHAPTER_OCCURRED,{player:this,current:e}))},onComplete:t=>{this.destroyed||(this.timeGroup.time(t.tweenProps.time.current),this.timeGroup.trigger(n.EVENTS.ON_CHAPTER_COMPLETED,{player:this,current:e}),this.timeGroup.paused(!0),this.tween=null)}}),this.tween}getDurationToChapter(t){const e=this.chapters[t.index-1]||this.chapters[t.index+1];return Math.abs(e.start-t.start)}}},{335:335}],330:[function(t,e,i){"use strict";const n=t(335),s=t(351),r=t(349),o=t(402),a=t(336),l=t(344),h=t(341),c=t(359),u=t(361),d=t(360),p=t(343),{cssAttributes:f,suffixFreeAttributes:_,domAttributes:m}=t(346);class v{constructor(t,e){this.controller=t,this.anchors=[],this.jsonProps=e,this.ease=t.group.defaultEase,this.easeFunction=a.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=n.KeyframeDefaults.breakpointMask,this.disabledWhen=[],this.keyframeType=n.KeyframeTypes.Interpolation,this.hold=!1,this.preserveState=!1,this.markedForRemoval=!1;let i=!1;Object.defineProperty(this,"hidden",{get:()=>i,set(e){i=e,t.group.keyframesDirty=!0}}),this.uuid=p(),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&&this.controller.removeKeyframe(this)}parseOptions(t){this.jsonProps=t,t.relativeTo&&console.error("KeyframeError: relativeTo has been removed. Use 'anchors' property instead. Found 'relativeTo':\"".concat(t.relativeTo,'"')),void 0===t.end&&void 0===t.duration&&(t.end=t.start),""!==t.anchors&&t.anchors?(this.anchors=[],t.anchors=Array.isArray(t.anchors)?t.anchors:[t.anchors],t.anchors.forEach((e,i)=>{let n=u(e,this.controller.group.element);if(!n){let n="";return"string"==typeof e&&(n=" 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(i," in array"),t.anchors,". Anchors must be JS Object references, Elements references, or valid query selector strings. ".concat(n))}this.anchors.push(n),this.controller.group.metrics.add(n)})):(this.anchors=[],t.anchors=[]),t.ease?this.ease=parseFloat(t.ease):t.ease=this.ease,t.hasOwnProperty("snapAtCreation")?this.snapAtCreation=t.snapAtCreation:t.snapAtCreation=this.snapAtCreation,t.easeFunction||(t.easeFunction=n.KeyframeDefaults.easeFunctionString),t.breakpointMask?this.breakpointMask=t.breakpointMask:t.breakpointMask=this.breakpointMask,t.disabledWhen?this.disabledWhen=Array.isArray(t.disabledWhen)?t.disabledWhen:[t.disabledWhen]:t.disabledWhen=this.disabledWhen,t.hasOwnProperty("hold")?this.hold=t.hold:t.hold=this.hold,t.hasOwnProperty("preserveState")?this.preserveState=t.preserveState:t.preserveState=n.KeyframeDefaults.preserveState,this.easeFunction=a[t.easeFunction],a.hasOwnProperty(t.easeFunction)||(t.easeFunction.includes("bezier")?this.easeFunction=l.fromCSSString(t.easeFunction):t.easeFunction.includes("spring")?this.easeFunction=h.fromCSSString(t.easeFunction):console.error("Keyframe parseOptions cannot find 'easeFunction' named '"+t.easeFunction+"'"));for(let e in t){if(-1!==n.KeyframeJSONReservedWords.indexOf(e))continue;let i=t[e];if(Array.isArray(i)){if(1===i.length&&(i[1]=i[0],i[0]=null),void 0===this.controller.tweenProps[e]||!this.controller._ownerIsElement){let o=0;this.controller._ownerIsElement||(o=this.controller.element[e]||0);const a=e.startsWith("--");let l=i[2]||(a||_.includes(e)?void 0:"px"),h=this.controller.group.anim.plugins.keyframe.reduce((i,n)=>i||n.parseProp.call(this,t,e),null);if(!h&&this.controller._ownerIsElement)if(a||f.includes(e)){let i=d(e),s=t.round||["zIndex"].includes(i);o=parseFloat(this.controller.getTargetComputedStyle().getPropertyValue(i)),isNaN(o)&&(o=0),h=new r(o,n.KeyframeDefaults.epsilon,this.snapAtCreation,e,s,l),this.controller.cssAttributes.push(h)}else m.includes(e)&&(h=new s(o,n.KeyframeDefaults.epsilon,this.snapAtCreation,e,t.round,l),this.controller.domAttributes.push(h));h||(h=new s(o,n.KeyframeDefaults.epsilon,this.snapAtCreation,e,t.round,l)),this.controller.tweenProps[e]=h}this.animValues[e]=this.controller.group.expressionParser.parseArray(this,i),this.controller.tweenProps[e].calculateEpsilon(t,this.animValues[e])}}this.keyframeType=this.hold?n.KeyframeTypes.InterpolationForward:n.KeyframeTypes.Interpolation,t.event&&(this.event=t.event)}overwriteProps(t){this.animValues={};let e=Object.assign({},this.jsonProps,t);this.controller.updateKeyframe(this,e)}updateLocalProgress(t){if(this.start===this.end||tthis.end)return this.localT=tthis.end?1:0,void(this.curvedT=this.easeFunction(this.localT));const e=(t-this.start)/(this.end-this.start),i=this.hold?this.localT:0;this.localT=o.clamp(e,i,1),this.curvedT=this.easeFunction(this.localT)}reconcile(t){this.controller.tweenProps[t].reconcile(this.animValues[t],this.curvedT)&&(this.needsEventDispatch||(this.needsEventDispatch=!0,this.controller.keyframesRequiringDispatch.push(this)))}reset(t){this.localT=t||0;let e=this.ease;this.ease=1;for(let t in this.animValues)this.reconcile(t);this.ease=e}onDOMRead(t){let e=this.controller.tweenProps[t].update(this.animValues[t],this.curvedT,this.ease);return""===this.event||this.needsEventDispatch||e&&(this.needsEventDispatch=!0,this.controller.keyframesRequiringDispatch.push(this)),e}isInRange(t){return t>=this.start&&t<=this.end}setEnabled(t){t=t||c(Array.from(document.documentElement.classList));let e=-1!==this.breakpointMask.indexOf(n.pageMetrics.breakpoint),i=!1;return this.disabledWhen.length>0&&(i=this.disabledWhen.some(e=>void 0!==t[e])),this.isEnabled=e&&!i,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 t in this.animValues){let e=this.jsonProps[t];this.animValues[t]=this.controller.group.expressionParser.parseArray(this,e)}}}v.DATA_ATTRIBUTE="data-anim-tween",e.exports=v},{335:335,336:336,341:341,343:343,344:344,346:346,349:349,351:351,359:359,360:360,361:361,402:402}],331:[function(t,e,i){"use strict";const n=t(330),s=t(335),r=t(351);class o extends n{constructor(t,e){super(t,e),this.keyframeType=s.KeyframeTypes.CSSClass,this._triggerType=o.TRIGGER_TYPE_CSS_CLASS,this.cssClass="",this.friendlyName="",this.style={on:null,off:null},this.toggle=s.KeyframeDefaults.toggle,this.isApplied=!1}parseOptions(t){if(!this.controller._ownerIsElement)throw new TypeError("CSS Keyframes cannot be applied to JS Objects");if(t.x=void 0,t.y=void 0,t.z=void 0,t.scale=void 0,t.scaleX=void 0,t.scaleY=void 0,t.rotationX=void 0,t.rotationY=void 0,t.rotationZ=void 0,t.rotation=void 0,t.opacity=void 0,t.hold=void 0,void 0!==t.toggle&&(this.toggle=t.toggle),void 0!==t.cssClass)this._triggerType=o.TRIGGER_TYPE_CSS_CLASS,this.cssClass=t.cssClass,this.friendlyName="."+this.cssClass,void 0===this.controller.tweenProps.targetClasses&&(this.controller.tweenProps.targetClasses={add:[],remove:[]});else{if(void 0===t.style||!this.isValidStyleProperty(t.style))throw new TypeError("KeyframeCSSClass no 'cssClass` property found. If using `style` property its also missing or invalid");if(this._triggerType=o.TRIGGER_TYPE_STYLE_PROPERTY,this.style=t.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 t in this.style.on)this.style.off[t]=""}void 0===this.controller.tweenProps.targetStyles&&(this.controller.tweenProps.targetStyles={})}if(void 0===t.end&&(t.end=t.start),t.toggle=this.toggle,this._triggerType===o.TRIGGER_TYPE_CSS_CLASS)this.isApplied=this.controller.element.classList.contains(this.cssClass);else{let t=getComputedStyle(this.controller.element);this.isApplied=!0;for(let e in this.style.on)if(t[e]!==this.style.on[e]){this.isApplied=!1;break}}n.prototype.parseOptions.call(this,t),this.animValues[this.friendlyName]=[0,0],void 0===this.controller.tweenProps[this.friendlyName]&&(this.controller.tweenProps[this.friendlyName]=new r(0,1,!1,this.friendlyName)),this.keyframeType=s.KeyframeTypes.CSSClass}updateLocalProgress(t){this.isApplied&&!this.toggle||(this.start!==this.end?!this.isApplied&&t>=this.start&&t<=this.end?this._apply():this.isApplied&&this.toggle&&(tthis.end)&&this._unapply():!this.isApplied&&t>=this.start?this._apply():this.isApplied&&this.toggle&&tt.group!==t.group.anim.tweenGroup);t&&(this.element._animInfo.controller=t,this.element._animInfo.group=t.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 t=0;t{this.tweenProps[t]=new s(i.translation[e],r,!1,t)}),this.tweenProps.rotation=new s(i.rotation[2],r,!1,"rotation"),["rotationX","rotationY","rotationZ"].forEach((t,e)=>{this.tweenProps[t]=new s(i.rotation[e],r,!1,t)}),this.tweenProps.scale=new s(i.scale[0],r,!1,"scale"),["scaleX","scaleY","scaleZ"].forEach((t,e)=>{this.tweenProps[t]=new s(i.scale[e],r,!1,t)})}addKeyframe(t){let e=l(t);if(!e)throw new Error("AnimSystem Cannot create keyframe for from options `"+t+"`");let i=new e(this,t);return i.parseOptions(t),i.id=this._allKeyframes.length,this._allKeyframes.push(i),i}needsUpdate(){for(let t=0,e=this.attributes.length;tthis.tweenProps[t].isActive=!0),this.cssAttributes=this.attributes.filter(t=>_.includes(t)||t.startsWith("--")).map(t=>this.tweenProps[t]),this.domAttributes=this.attributes.filter(t=>m.includes(t)).map(t=>this.tweenProps[t]);let s=e.filter(t=>-1===this._activeKeyframes.indexOf(t));if(0===s.length)return;let r=i.filter(t=>-1===this.attributes.indexOf(t)&&!n.hasOwnProperty(t));if(0!==r.length)if(this.needsWrite=!0,this._ownerIsElement)p.external(()=>{let t=r.some(t=>f.includes(t)),e=t&&Object.keys(n).some(t=>f.includes(t));t&&!e&&this.element.style.removeProperty("transform");for(let t=0,e=r.length;t0&&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(t=this.element.style){let e=this.tweenProps;if(e.z.isActive||e.rotationX.isActive||e.rotationY.isActive){const i=this.mat4;i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1;const n=e.x.current,s=e.y.current,r=e.z.current;if(i[12]=i[0]*n+i[4]*s+i[8]*r+i[12],i[13]=i[1]*n+i[5]*s+i[9]*r+i[13],i[14]=i[2]*n+i[6]*s+i[10]*r+i[14],i[15]=i[3]*n+i[7]*s+i[11]*r+i[15],0!==e.rotation.current||0!==e.rotationZ.current){const t=(e.rotation.current||e.rotationZ.current)*b;w.rotateZ(i,i,t)}if(0!==e.rotationX.current){const t=e.rotationX.current*b;w.rotateX(i,i,t)}if(0!==e.rotationY.current){const t=e.rotationY.current*b;w.rotateY(i,i,t)}1===e.scale.current&&1===e.scaleX.current&&1===e.scaleY.current||w.scale(i,i,[e.scale.current,e.scale.current,1]),t.transform="matrix3d("+i[0]+","+i[1]+","+i[2]+","+i[3]+","+i[4]+","+i[5]+","+i[6]+","+i[7]+","+i[8]+","+i[9]+","+i[10]+","+i[11]+","+i[12]+","+i[13]+","+i[14]+","+i[15]+")"}else if(e.x.isActive||e.y.isActive||e.rotation.isActive||e.rotationZ.isActive||e.scale.isActive||e.scaleX.isActive||e.scaleY.isActive){const i=this.mat2d;i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0;const n=e.x.current,s=e.y.current,r=i[0],o=i[1],a=i[2],l=i[3],h=i[4],c=i[5];if(i[0]=r,i[1]=o,i[2]=a,i[3]=l,i[4]=r*n+a*s+h,i[5]=o*n+l*s+c,0!==e.rotation.current||0!==e.rotationZ.current){const t=(e.rotation.current||e.rotationZ.current)*b,n=i[0],s=i[1],r=i[2],o=i[3],a=i[4],l=i[5],h=Math.sin(t),c=Math.cos(t);i[0]=n*c+r*h,i[1]=s*c+o*h,i[2]=n*-h+r*c,i[3]=s*-h+o*c,i[4]=a,i[5]=l}e.scaleX.isActive||e.scaleY.isActive?(i[0]=i[0]*e.scaleX.current,i[1]=i[1]*e.scaleX.current,i[2]=i[2]*e.scaleY.current,i[3]=i[3]*e.scaleY.current):(i[0]=i[0]*e.scale.current,i[1]=i[1]*e.scale.current,i[2]=i[2]*e.scale.current,i[3]=i[3]*e.scale.current),t.transform="matrix("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+", "+i[4]+", "+i[5]+")"}}handleEventDispatch(){if(0!==this.keyframesRequiringDispatch.length){for(let t=0,e=this.keyframesRequiringDispatch.length;t=0;t--)this._events.draw[t](this.eventObject)}}updateAnimationConstraints(){for(let t=0,e=this._activeKeyframes.length;t{1!==this.keyframes[t].length&&this.keyframes[t].sort(n.KeyframeComparison)}),this.updateDeferredPropertyValues()}refreshMetrics(){let t=new Set([this.element]);this._allKeyframes.forEach(e=>e.anchors.forEach(e=>t.add(e))),this.group.metrics.refreshCollection(t),this.group.keyframesDirty=!0}getTargetComputedStyle(t=!1){return this._ownerIsElement?((t||void 0===this.group.computedStyleCache[this.uuid])&&(this.group.computedStyleCache[this.uuid]=getComputedStyle(this.element)),this.group.computedStyleCache[this.uuid]):null}updateDeferredPropertyValues(){for(let t=0,e=this.attributes.length;tn.KeyframeTypes.InterpolationForward))for(let t=0,n=i.length;t{this.trigger(n.EVENTS.ON_KEYFRAME_UPDATED,t),this.group.trigger(n.EVENTS.ON_KEYFRAME_UPDATED,t)},!0)}removeKeyframe(t){return t.destroyed||t.controller!==this?Promise.resolve(null):(t.markedForRemoval=!0,this.group.keyframesDirty=!0,new Promise(e=>{this.group.rafEmitter.executor.eventEmitter.once("before:draw",()=>{e(t),t.destroy();let i=this._allKeyframes.indexOf(t);-1!==i&&this._allKeyframes.splice(i,1)})}))}updateAnimation(t,e){return this.group.gui&&console.warn("KeyframeController.updateAnimation(keyframe,props) has been deprecated. Please use updateKeyframe(keyframe,props)"),this.updateKeyframe(t,e)}}},{173:173,174:174,177:177,326:326,331:331,334:334,335:335,338:338,339:339,343:343,346:346,348:348,349:349,350:350,351:351,359:359,373:373,408:408,409:409,410:410,411:411,412:412}],333:[function(t,e,i){"use strict";const n=t(330),s=t(335),r=t(351);class o extends n{constructor(t,e){super(t,e),this.keyframeType=s.KeyframeTypes.Event,this.isApplied=!1,this.hasDuration=!1,this.isCurrentlyInRange=!1}parseOptions(t){t.x=void 0,t.y=void 0,t.scale=void 0,t.scaleX=void 0,t.scaleY=void 0,t.rotation=void 0,t.style=void 0,t.cssClass=void 0,t.rotation=void 0,t.opacity=void 0,t.hold=void 0,this.event=t.event,this.animValues[this.event]=[0,0],void 0===this.controller.tweenProps[this.event]&&(this.controller.tweenProps[this.event]=new r(0,1,!1,this.event)),super.parseOptions(t),this.keyframeType=s.KeyframeTypes.Event}updateLocalProgress(t){if(this.hasDuration){let e=this.isCurrentlyInRange,i=t>=this.start&&t<=this.end;if(e===i)return;return this.isCurrentlyInRange=i,void(i&&!e?this._trigger(this.event+":enter"):e&&!i&&this._trigger(this.event+":exit"))}!this.isApplied&&t>=this.start?(this.isApplied=!0,this._trigger(this.event)):this.isApplied&&te.start?1:0}};e.exports=n},{342:342,349:349,351:351}],336:[function(t,e,i){"use strict";e.exports=new class{constructor(){this.linear=function(t){return t},this.easeInQuad=function(t){return t*t},this.easeOutQuad=function(t){return t*(2-t)},this.easeInOutQuad=function(t){return t<.5?2*t*t:(4-2*t)*t-1},this.easeInSin=function(t){return 1+Math.sin(Math.PI/2*t-Math.PI/2)},this.easeOutSin=function(t){return Math.sin(Math.PI/2*t)},this.easeInOutSin=function(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2},this.easeInElastic=function(t){return 0===t?t:(.04-.04/t)*Math.sin(25*t)+1},this.easeOutElastic=function(t){return.04*t/--t*Math.sin(25*t)},this.easeInOutElastic=function(t){return(t-=.5)<0?(.02+.01/t)*Math.sin(50*t):(.02-.01/t)*Math.sin(50*t)+1},this.easeOutBack=function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},this.easeInCubic=function(t){return t*t*t},this.easeOutCubic=function(t){return--t*t*t+1},this.easeInOutCubic=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},this.easeInQuart=function(t){return t*t*t*t},this.easeOutQuart=function(t){return 1- --t*t*t*t},this.easeInOutQuart=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},this.easeInQuint=function(t){return t*t*t*t*t},this.easeOutQuint=function(t){return 1+--t*t*t*t*t},this.easeInOutQuint=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}}}},{}],337:[function(t,e,i){"use strict";const n=t(335),s=(t,e)=>null==t?e:t;class r{constructor(t){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}}}e.exports=class{constructor(){this.clear()}clear(){this._metrics=new WeakMap}destroy(){this._metrics=null}add(t){let e=this._metrics.get(t);if(e)return e;let i=new r(t);return this._metrics.set(t,i),this._refreshMetrics(t,i)}get(t){return this._metrics.get(t)}refreshCollection(t){t.forEach(t=>this._refreshMetrics(t,null))}refreshMetrics(t){return this._refreshMetrics(t)}_refreshMetrics(t,e){if(e=e||this._metrics.get(t),!(t instanceof Element))return e.width=s(t.width,0),e.height=s(t.height,0),e.top=s(t.top,s(t.y,0)),e.left=s(t.left,s(t.x,0)),e.right=e.left+e.width,e.bottom=e.top+e.height,e;if(void 0===t.offsetWidth){let i=t.getBoundingClientRect();return e.width=i.width,e.height=i.height,e.top=n.pageMetrics.scrollY+i.top,e.left=n.pageMetrics.scrollX+i.left,e.right=e.left+e.width,e.bottom=e.top+e.height,e}e.width=t.offsetWidth,e.height=t.offsetHeight,e.top=n.pageMetrics.documentOffsetY,e.left=n.pageMetrics.documentOffsetX;let i=t;for(;i;)e.top+=i.offsetTop,e.left+=i.offsetLeft,i=i.offsetParent;return e.right=e.left+e.width,e.bottom=e.top+e.height,e}}},{335:335}],338:[function(t,e,i){"use strict";e.exports=class{constructor(t){this.controller=t,this.element=this.controller.element,this.keyframe=null,this.event="",this.tweenProps=this.controller.tweenProps}}},{}],339:[function(t,e,i){"use strict";const n=t(335),s=t(330),r=t(333),o=t(331),a=function(t){for(let e in t){let i=t[e];if(-1===n.KeyframeJSONReservedWords.indexOf(e)&&Array.isArray(i))return!0}return!1};e.exports=function(t){if(void 0!==t.cssClass||void 0!==t.style){if(a(t))throw"CSS Keyframes cannot tween values, please use multiple keyframes instead";return o}if(a(t))return s;if(t.event)return r;throw delete t.anchors,"Could not determine tween type based on ".concat(JSON.stringify(t))}},{330:330,331:331,333:333,335:335}],340:[function(t,e,i){"use strict";e.exports=class{constructor(){this.local=0,this.localUnclamped=0,this.lastPosition=0}}},{}],341:[function(t,e,i){"use strict";const{map:n}=t(402),s={};class r{constructor(t,e,i,n){this.mass=t,this.stiffness=e,this.damping=i,this.initialVelocity=n,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(t){return 1-(t=this.m_zeta<1?Math.exp(-t*this.m_zeta*this.m_w0)*(this.m_A*Math.cos(this.m_wd*t)+this.m_B*Math.sin(this.m_wd*t)):(this.m_A+this.m_B*t)*Math.exp(-t*this.m_w0))}}const o=/\d*\.?\d+/g;r.fromCSSString=function(t){let e=t.match(o);if(4!==e.length)throw"SpringEasing could not convert ".concat(cssString," to spring params");let i=e.map(Number),a=new r(...i);const l=a.solve.bind(a);let h=0;let c=function(){if(s[t])return s[t];let e,i=0;for(;;){h+=1/6;if(1===l(h)){if(i++,i>=16){e=h*(1/6);break}}else i=0}return s[t]=e,s[t]}();return function(t){return 0===t||1===t?t:l(n(t,0,1,0,c))}},e.exports=r},{402:402}],342:[function(t,e,i){"use strict";e.exports=class{}},{}],343:[function(t,e,i){"use strict";e.exports=()=>Math.random().toString(16).slice(-4)},{}],344:[function(t,e,i){"use strict";const n=Math.abs;class s{constructor(t,e,i,n){this.cp=new Float32Array(6),this.cp[0]=3*t,this.cp[1]=3*(i-t)-this.cp[0],this.cp[2]=1-this.cp[0]-this.cp[1],this.cp[3]=3*e,this.cp[4]=3*(n-e)-this.cp[3],this.cp[5]=1-this.cp[3]-this.cp[4]}sampleCurveX(t){return((this.cp[2]*t+this.cp[1])*t+this.cp[0])*t}sampleCurveY(t){return((this.cp[5]*t+this.cp[4])*t+this.cp[3])*t}sampleCurveDerivativeX(t){return(3*this.cp[2]*t+2*this.cp[1])*t+this.cp[0]}solveCurveX(t){var e,i,s,r,o,a;for(s=t,a=0;a<5;a++){if(r=this.sampleCurveX(s)-t,n(r)<1e-5)return s;if(o=this.sampleCurveDerivativeX(s),n(o)<1e-5)break;s-=r/o}if((s=t)<(e=0))return e;if(s>(i=1))return i;for(;er?e=s:i=s,s=.5*(i-e)+e}return s}solve(t){return this.sampleCurveY(this.solveCurveX(t))}}const r=/\d*\.?\d+/g;s.fromCSSString=function(t){let e=t.match(r);if(4!==e.length)throw"UnitBezier could not convert ".concat(t," to cubic-bezier");let i=e.map(Number),n=new s(i[0],i[1],i[2],i[3]);return n.solve.bind(n)},e.exports=s},{}],345:[function(t,e,i){"use strict";e.exports=class{constructor(t,e){this.a=t.top-e,this.a<0&&(this.a=t.top),this.b=t.top,this.d=t.bottom,this.c=Math.max(this.d-e,this.b)}}},{}],346:[function(t,e,i){"use strict";let n=["borderRadius","bottom","fontSize","fontWeight","height","left","lineHeight","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","opacity","paddingBottom","paddingLeft","paddingRight","paddingTop","right","top","width","zIndex","strokeDashoffset"];n.push(...n.map(t=>t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())));e.exports={transformAttributes:["x","y","z","scale","scaleX","scaleY","rotation","rotationX","rotationY","rotationZ"],cssAttributes:n,domAttributes:["scrollLeft","scrollTop","scrollBy","scrollTo","currentTime"],suffixFreeAttributes:["opacity","z-index","font-weight","zIndex","fontWeight","scrollLeft","scrollTop","scrollBy","scrollTo","currentTime"]}},{}],347:[function(t,e,i){"use strict";const n=t(351);e.exports=class extends n{constructor(...t){super(...t);const e=t[0];this.initialValue=new Float32Array(e),this.target=new Float32Array(e),this.current=new Float32Array(e),this.previousValue=new Float32Array(e)}update(t,e,i){for(let n=0,s=this.target.length;nthis.epsilon||0===n&&this.previousValue.some((t,e)=>t!==this.current[e])}reconcile(t,e){return this.initialValue.forEach((e,i)=>this.initialValue[i]=t[0][i]),this.update(t,e,1)}needsUpdate(){return this.delta(this.current,this.target)>this.epsilon}delta(t,e){let i=0;for(let n=0,s=t.length;nthis.epsilon||0===n&&this.previousValue!==this.current}reconcile(t,e){return this.initialValue=t[0],this.update(t,e,1)}needsUpdate(){return this.delta(this.current,this.target)>this.epsilon}delta(t,e){return Math.abs(t-e)}calculateEpsilon(t,e){if(t.epsilon)return void(this.epsilon=t.epsilon);let i=this.delta(e[0],e[1]),n=Math.min(.001*i,this.epsilon,.05);this.epsilon=Math.max(n,.001)}set(t){let e=this.current;this.round&&(e=Math.round(e)),this.suffix&&(e+=this.suffix),t[this.key]=e}unset(t){}}},{}],352:[function(t,e,i){"use strict";const n=t(353),s=new(t(337));class r{constructor(t){this.group=t,this.data={target:null,anchors:null,metrics:this.group.metrics}}parseArray(t,e){return[this.parseExpression(t,e[0]),this.parseExpression(t,e[1])]}parseExpression(t,e){if(null==e)return null;if("number"==typeof e)return e;if("string"!=typeof e)throw"Expression must be a string, received ".concat(typeof e,": ").concat(e);return this.data.target=t.controller.element,this.data.anchors=t.anchors,this.data.keyframe=t.keyframe,this.group.anim.plugins.parser.reduce((i,n)=>i||n.parseExpression.call(this,t,e),null)||r._parse(e,this.data)}parseTimeValue(t,e){if("number"==typeof e)return e;let i=this.group.expressionParser.parseExpression(t,e);return this.group.convertScrollPositionToTValue(i)}destroy(){this.group=null}static parse(t,e){return(e=e||{})&&(s.clear(),e.target&&s.add(e.target),e.anchors&&e.anchors.forEach(t=>s.add(t))),e.metrics=s,r._parse(t,e)}static _parse(t,e){return n.Parse(t).execute(e)}}r.programs=n.programs,"undefined"!=typeof window&&(window.ExpressionParser=r),e.exports=r},{337:337,353:353}],353:[function(t,e,i){"use strict";const n=t(335),s=t(402),r=t(336),o={},a={smoothstep:(t,e,i)=>(i=a.clamp((i-t)/(e-t),0,1))*i*(3-2*i),deg:t=>180*t/Math.PI,rad:t=>t*Math.PI/180,random:(t,e)=>Math.random()*(e-t)+t,atan:Math.atan2};Object.getOwnPropertyNames(Math).forEach(t=>a[t]?null:a[t.toLowerCase()]=Math[t]),Object.getOwnPropertyNames(s).forEach(t=>a[t]?null:a[t.toLowerCase()]=s[t]),Object.getOwnPropertyNames(r).forEach(t=>a[t]=r[t]);let l=null;const h="a",c="ALPHA",u="(",d=")",p="PLUS",f="MINUS",_="MUL",m="DIV",v="INTEGER_CONST",y="FLOAT_CONST",g=",",b="EOF",w={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|rad|deg)$/,MATH_FUNCTION:new RegExp("\\b(".concat(Object.keys(a).join("|"),")\\b"),"i")},E=function(t,e,i,n=""){let s=e.slice(Math.max(i,0),Math.min(e.length,i+3)),r=new Error("Expression Error. ".concat(t,' in expression "').concat(e,'", near "').concat(s,'"'));throw console.error(r.message,l?l.keyframe||l.target:""),r},T={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 x{constructor(t,e){this.type=t,this.value=e}}x.ONE=new x("100",100),x.EOF=new x(b,null);class k{constructor(t){this.type=t}}class C extends k{constructor(t,e){super("UnaryOp"),this.token=this.op=t,this.expr=e}}class S extends k{constructor(t,e,i){super("BinOp"),this.left=t,this.op=e,this.right=i}}class O extends k{constructor(t,e){if(super("MathOp"),this.op=t,this.list=e,T[t.value]&&e.length!==T[t.value])throw new Error("Incorrect number of arguments for '".concat(t.value,"'. Received ").concat(e.length,", expected ").concat(T[t.value]))}}class P extends k{constructor(t){super("Num"),this.token=t,this.value=t.value}}class A extends k{constructor(t,e,i){super("RefValue"),this.num=t,this.ref=e,this.unit=i}}class I extends k{constructor(t,e){super("CSSValue"),this.ref=t,this.propertyName=e}}class D extends k{constructor(t,e){super("PropValue"),this.ref=t,this.propertyName=e}}class L{constructor(t){let e;for(this.text=t,this.pos=0,this.char=this.text[this.pos],this.tokens=[];(e=this.getNextToken())&&e!==x.EOF;)this.tokens.push(e);this.tokens.push(e)}advance(){this.char=this.text[++this.pos]}skipWhiteSpace(){for(;null!=this.char&&w.WHITE_SPACE.test(this.char);)this.advance()}name(){let t="";for(;null!=this.char&&w.ALPHA.test(this.char);)t+=this.char,this.advance();return new x(c,t)}number(){let t="";for("."===this.char&&(t+=this.char,this.advance());null!=this.char&&w.DIGIT.test(this.char);)t+=this.char,this.advance();if(null!=this.char&&"."===this.char)for(t.includes(".")&&E("Number appears to contain 2 decimal points",this.text,this.pos),t+=this.char,this.advance();null!=this.char&&w.DIGIT.test(this.char);)t+=this.char,this.advance();return"."===t&&E("Attempted to parse a number, but found only a decimal point",this.text,this.pos),t.includes(".")?new x(y,parseFloat(t)):new x(v,parseInt(t))}getNextToken(){for(;null!=this.char;)if(w.WHITE_SPACE.test(this.char))this.skipWhiteSpace();else{if("."===this.char||w.DIGIT.test(this.char))return this.number();if(","===this.char)return this.advance(),new x(g,",");if(w.OPERATOR.test(this.char)){let t="",e=this.char;switch(e){case"+":t=p;break;case"-":t=f;break;case"*":t=_;break;case"/":t=m}return this.advance(),new x(t,e)}if(w.PAREN.test(this.char)){let t="",e=this.char;switch(e){case"(":t=u;break;case")":t=d}return this.advance(),new x(t,e)}if(w.ALPHA.test(this.char))return this.name();E('Unexpected character "'.concat(this.char,'"'),this.text,this.pos)}return x.EOF}}class M{constructor(t){this.lexer=t,this.pos=0}get currentToken(){return this.lexer.tokens[this.pos]}error(t,e=""){E(t,e,this.lexer.text,this.pos)}consume(t){let e=this.currentToken;return e.type===t?this.pos+=1:this.error("Invalid token ".concat(this.currentToken.value,", expected ").concat(t)),e}consumeList(t){t.includes(this.currentToken)?this.pos+=1:this.error("Invalid token ".concat(this.currentToken.value,", expected ").concat(tokenType))}expr(){let t=this.term();for(;this.currentToken.type===p||this.currentToken.type===f;){const e=this.currentToken;switch(e.value){case"+":this.consume(p);break;case"-":this.consume(f)}t=new S(t,e,this.term())}return t}term(){let t=this.factor();for(;this.currentToken.type===_||this.currentToken.type===m;){const e=this.currentToken;switch(e.value){case"*":this.consume(_);break;case"/":this.consume(m)}t=new S(t,e,this.factor())}return t}factor(){if(this.currentToken.type===p)return new C(this.consume(p),this.factor());if(this.currentToken.type===f)return new C(this.consume(f),this.factor());if(this.currentToken.type===v||this.currentToken.type===y){let t=new P(this.currentToken);if(this.pos+=1,w.OPERATOR.test(this.currentToken.value)||this.currentToken.type===d||this.currentToken.type===g||this.currentToken.type===b)return t;if(this.currentToken.type===c&&this.currentToken.value===h)return this.consume(c),new A(t,this.anchorIndex(),this.unit(w.ANY_UNIT));if(this.currentToken.type===c)return"%a"===this.currentToken.value&&this.error("%a is invalid, try removing the %"),new A(t,null,this.unit());this.error("Expected a scaling unit type","Such as 'h' / 'w'")}else{if(w.OBJECT_UNIT.test(this.currentToken.value))return new A(new P(x.ONE),null,this.unit());if(this.currentToken.value===h){this.consume(c);const t=this.anchorIndex();if(w.OBJECT_UNIT.test(this.currentToken.value))return new A(new P(x.ONE),t,this.unit())}else if(this.currentToken.type===c){if("calc"===this.currentToken.value)return this.consume(c),this.expr();if("css"===this.currentToken.value||"var"===this.currentToken.value||"prop"===this.currentToken.value){const t="prop"!==this.currentToken.value?I:D;this.consume(c),this.consume(u);const e=this.propertyName();let i=null;return this.currentToken.type===g&&(this.consume(g),this.consume(c),i=this.anchorIndex()),this.consume(d),new t(i,e)}if(w.MATH_FUNCTION.test(this.currentToken.value)){const t=this.currentToken.value,e=t.toLowerCase();if("number"==typeof a[e])return this.consume(c),new P(new x(c,a[e]));const i=x[t]||new x(t,t),n=[];this.consume(c),this.consume(u);let s=null;do{this.currentToken.value===g&&this.consume(g),s=this.expr(),n.push(s)}while(this.currentToken.value===g);return this.consume(d),new O(i,n)}}else if(this.currentToken.type===u){this.consume(u);let t=this.expr();return this.consume(d),t}}this.error("Unexpected token ".concat(this.currentToken.value))}propertyName(){let t="";for(;this.currentToken.type===c||this.currentToken.type===f;)t+=this.currentToken.value,this.pos+=1;return t}unit(t=w.ANY_UNIT){const e=this.currentToken;if(e.type===c&&t.test(e.value))return this.consume(c),new x(c,e.value=e.value.replace(/%(h|w)/,"$1").replace("%","h"));this.error("Expected unit type")}anchorIndex(){const t=this.currentToken;if(t.type===v)return this.consume(v),new P(t);this.error("Invalid anchor reference",". Should be something like a0, a1, a2")}parse(){const t=this.expr();return this.currentToken!==x.EOF&&this.error("Unexpected token ".concat(this.currentToken.value)),t}}class R{constructor(t){this.parser=t,this.root=t.parse()}visit(t){let e=this[t.type];if(!e)throw new Error("No visit method named, ".concat(e));return e.call(this,t)}BinOp(t){switch(t.op.type){case p:return this.visit(t.left)+this.visit(t.right);case f:return this.visit(t.left)-this.visit(t.right);case _:return this.visit(t.left)*this.visit(t.right);case m:return this.visit(t.left)/this.visit(t.right)}}RefValue(t){let e=this.unwrapReference(t),i=t.unit.value,s=t.num.value;const r=l.metrics.get(e);switch(i){case"h":return.01*s*r.height;case"t":return.01*s*r.top;case"vh":return.01*s*n.pageMetrics.windowHeight;case"vw":return.01*s*n.pageMetrics.windowWidth;case"px":return s;case"w":return.01*s*r.width;case"b":return.01*s*r.bottom;case"l":return.01*s*r.left;case"r":return.01*s*r.right;case"rad":return 180*s/Math.PI;case"deg":return s}}PropValue(t){return(null===t.ref?l.target:l.anchors[t.ref.value])[t.propertyName]}CSSValue(t){let e=this.unwrapReference(t);const i=getComputedStyle(e).getPropertyValue(t.propertyName);return""===i?0:R.Parse(i).execute(l)}Num(t){return t.value}UnaryOp(t){return t.op.type===p?+this.visit(t.expr):t.op.type===f?-this.visit(t.expr):void 0}MathOp(t){let e=t.list.map(t=>this.visit(t));return a[t.op.value].apply(null,e)}unwrapReference(t){return null===t.ref?l.target:(t.ref.value>=l.anchors.length&&console.error("Not enough anchors supplied for expression ".concat(this.parser.lexer.text),l.target),l.anchors[t.ref.value])}execute(t){return l=t,this.visit(this.root)}static Parse(t){return o[t]||(o[t]=new R(new M(new L(t))))}}R.programs=o,e.exports=R},{335:335,336:336,402:402}],354:[function(t,e,i){"use strict";const n=t(326),s=t(402),r=t(359),o=t(335),a=t(334),l=t(340),h=t(345),c=t(337),u=t(352),d=t(332),p={};"undefined"!=typeof window&&(p.create=t(165),p.update=t(177),p.draw=t(173));let f=0;e.exports=class extends n{constructor(t,e){super(),this.anim=e,this.element=t,this.name=this.name||t.getAttribute("data-anim-scroll-group"),this.isEnabled=!0,this.position=new l,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=o.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.destroyed=!1,this.finalizeInit()}finalizeInit(){this.element._animInfo=new a(this,null,!0),this.setupRAFEmitter()}destroy(){this.destroyed=!0,this.expressionParser.destroy(),this.expressionParser=null;for(let t=0,e=this.keyframeControllers.length;tt.markedForRemoval=!0),this.keyframesDirty=!0,new Promise(e=>{p.draw(()=>{const i=this.keyframeControllers.indexOf(t);-1!==i?(this.keyframeControllers.splice(i,1),t.onDOMWrite(),t.destroy(),this.gui&&this.gui.create(),e()):e()})}))}remove(){return this.anim&&this.anim.removeGroup(this)}clear(){return Promise.all(this.keyframeControllers.map(t=>this.removeKeyframeController(t)))}setupRAFEmitter(t){this.rafEmitter&&this.rafEmitter.destroy(),this.rafEmitter=t||new p.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 t=0,e=this.keyframeControllers.length;t{t.add(e.element),e._allKeyframes.forEach(e=>e.anchors.forEach(e=>t.add(e)))}),this.metrics.refreshCollection(t),this.viewableRange=this.createViewableRange()}reconcile(){for(let t=0,e=this.keyframeControllers.length;tthis.boundsMin?(this.trigger(o.EVENTS.ON_TIMELINE_START,this),this.trigger("start",this)):this.position.lastPosition>=this.boundsMin&&this.position.localUnclamped=this.boundsMax?(this.trigger(o.EVENTS.ON_TIMELINE_COMPLETE,this),this.trigger("complete",this)):this.position.lastPosition>=this.boundsMax&&this.position.localUnclampedthis.boundsMin&&this.position.localUnclampedthis.boundsMin&&this.position.lastPosition=this.boundsMax;if(n&&s)return this.performTimelineDispatch(),this.requestDOMChange(),void(this.position.lastPosition=this.position.localUnclamped);const r=this.position.lastPositionthis.boundsMax,o=this.position.lastPosition>this.boundsMax&&this.position.localUnclamped=0;i--)void 0!==e?this._events[t][i](e):this._events[t][i]()}set keyframesDirty(t){this._keyframesDirty=t,this._keyframesDirty&&this.requestDOMChange()}get keyframesDirty(){return this._keyframesDirty}}},{165:165,173:173,177:177,326:326,332:332,334:334,335:335,337:337,340:340,345:345,352:352,359:359,402:402}],355:[function(t,e,i){"use strict";const n=t(354),s=t(329),r=t(402);let o=0;const a={};"undefined"!=typeof window&&(a.create=t(165));class l extends n{constructor(t,e){t||((t=document.createElement("div")).className="TimeGroup-"+o++),super(t,e),this.name=this.name||t.getAttribute("data-anim-time-group"),this._isPaused=!0,this._repeats=0,this._isReversed=!1,this._timeScale=1,this._chapterPlayer=new s(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(t){if(void 0===t)return 0===this.boundsMax?0:this.position.local/this.boundsMax;let e=t*this.boundsMax;this.timelineUpdateRequired=!0,this.updateTimeline(e)}time(t){if(void 0===t)return this.position.local;t=r.clamp(t,this.boundsMin,this.duration),this.timelineUpdateRequired=!0,this.updateTimeline(t)}play(t){this.reversed(!1),this.isEnabled=!0,this._isPaused=!1,this.time(t),this.now=performance.now(),this._playheadEmitter.run()}reverse(t){this.reversed(!0),this.isEnabled=!0,this._isPaused=!1,this.time(t),this.now=performance.now(),this._playheadEmitter.run()}reversed(t){if(void 0===t)return this._isReversed;this._isReversed=t}restart(){this._isReversed?(this.progress(1),this.reverse(this.time())):(this.progress(0),this.play(this.time()))}pause(t){this.time(t),this._isPaused=!0}paused(t){return void 0===t?this._isPaused:(this._isPaused=t,this._isPaused||this.play(),this)}onPlayTimeUpdate(){if(this._isPaused)return;let t=performance.now(),e=(t-this.now)/1e3;this.now=t,this._isReversed&&(e=-e);let i=this.time()+e*this._timeScale;if(this._repeats===l.REPEAT_FOREVER||this._repeats>0){let t=!1;!this._isReversed&&i>this.boundsMax?(i-=this.boundsMax,t=!0):this._isReversed&&i<0&&(i=this.boundsMax+i,t=!0),t&&(this._repeats=this._repeats===l.REPEAT_FOREVER?l.REPEAT_FOREVER:this._repeats-1)}this.time(i);let n=!this._isReversed&&this.position.local!==this.duration,s=this._isReversed&&0!==this.position.local;n||s?this._playheadEmitter.run():this.paused(!0)}updateProgress(t){this.hasDuration()?(this.position.localUnclamped=t,this.position.local=r.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 t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(let e=0,i=this.keyframeControllers.length;e0}destroy(){this._chapterPlayer.destroy(),this._playheadEmitter.destroy(),this._playheadEmitter=null,super.destroy()}get timelineProgress(){return this.progress()}set timelineProgress(t){this.progress(t)}get progressValue(){return this.progress()}set progressValue(t){this.progress(t)}get timeValue(){return this.time()}set timeValue(t){this.time(t)}}l.REPEAT_FOREVER=-1,e.exports=l},{165:165,329:329,354:354,402:402}],356:[function(t,e,i){"use strict";const n=t(354),s=(t(329),t(402));let r=0;const o={};"undefined"!=typeof window&&(o.create=t(165));e.exports=class extends n{constructor(t,e){t||((t=document.createElement("div")).className="TweenGroup-"+r++),super(t,e),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(t){this.now=performance.now(),this._timeEmitter=new o.create,this._timeEmitter.on("update",this.onTimeEmitterUpdate),this._timeEmitter.run(),super.setupRAFEmitter(t)}addKeyframe(t,e){if(void 0!==e.start||void 0!==e.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 e.duration)throw Error("Tween options.duration is undefined, or is not a number");let i,n;e.start=(e.delay||0)+this.position.localUnclamped,e.end=e.start+e.duration,e.preserveState=!0,e.snapAtCreation=!0,t._animInfo&&(i=t._animInfo.group,n=t._animInfo.controller);let s=super.addKeyframe(t,e);return t._animInfo.group=i,t._animInfo.controller=n,[["onStart","once"],["onDraw","on"]].forEach(([t,i])=>{if(!e[t])return;let n=e[t];e[t]=s.controller[i]("draw",t=>{s.markedForRemoval||(t.keyframe=s,n(t),t.keyframe=null)})}),this.removeOverlappingProps(s),this.keyframes.push(s),this._timeEmitter.willRun()||(this.now=performance.now(),this._timeEmitter.run()),s}removeOverlappingProps(t){if(t.controller._allKeyframes.length<=1)return;let e=Object.keys(t.animValues),i=t.controller;for(let n=0,s=i._allKeyframes.length;ne.includes(t));o.length!==r.length?o.forEach(t=>delete s.animValues[t]):(s.markedForRemoval=!0,s.jsonProps.onDraw&&s.controller.off("draw",s.jsonProps.onDraw))}}onTimeEmitterUpdate(t){if(this._isPaused||0===this.keyframeControllers.length)return;let e=performance.now(),i=(e-this.now)/1e3;this.now=e;let n=this.position.local+i;this.position.local=this.position.localUnclamped=n,this.onTimeUpdate()}onTimeUpdate(){for(let t=0,e=this.keyframes.length;tt.start)),this.boundsMax=Math.max(...this.keyframes.map(t=>t.end))}play(){this.isEnabled=!0,this._isPaused=!1,this.now=performance.now(),this._timeEmitter.run()}pause(){this._isPaused=!0}paused(){return this._isPaused}time(t){if(void 0===t)return this.position.local;this.position.local=this.position.localUnclamped=s.clamp(t,this.boundsMin,this.boundsMax),this.onTimeUpdate()}performTimelineDispatch(){}hasDuration(){return!0}getPosition(){return this.position.local}updateProgress(t){}get duration(){return this.boundsMax}}},{165:165,329:329,354:354,402:402}],357:[function(t,e,i){"use strict";const n=/-?\d*\.?\d+/gm;e.exports={getStringNumbers:t=>t.match(n).map(t=>Number.parseFloat(t)),getStringNonNumbers:t=>t.split(n),reconstructStringWithNumbers(t,e){let i="";for(var n=0,s=t.length;nnull===t?t:t.replace(/\s+/gm," ").trim()}},{}],358:[function(t,e,i){"use strict";const{trim:n,getStringNumbers:s,getStringNonNumbers:r,reconstructStringWithNumbers:o}=t(357),a=/^\s*?M[(-?\d)|\s]/,l=/^(inset|circle|ellipse|polygon|path)\(/,h=t=>a.test(t),c=t=>l.test(t);e.exports={install(t,e){t.plugins.parser.includes(this)||t.plugins.parser.push(this)},parseExpression:(t,e)=>"string"==typeof e&&(h(e)||c(e))?s(e):null,scalePath(t,e){const i=this.parseExpression(null,t),n=r(t);for(let t=0,n=i.length;t(t[e]=e,t),{})}},{}],360:[function(t,e,i){"use strict";e.exports=function(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}},{}],361:[function(t,e,i){"use strict";e.exports=function(t,e){if("string"!=typeof t)return t;try{return(e||document).querySelector(t)||document.querySelector(t)}catch(t){return!1}}},{}],362:[function(t,e,i){arguments[4][220][0].apply(i,arguments)},{163:163,179:179,220:220,96:96}],363:[function(t,e,i){arguments[4][221][0].apply(i,arguments)},{221:221,365:365}],364:[function(t,e,i){arguments[4][222][0].apply(i,arguments)},{222:222,363:363}],365:[function(t,e,i){arguments[4][223][0].apply(i,arguments)},{223:223,362:362}],366:[function(t,e,i){arguments[4][226][0].apply(i,arguments)},{226:226,364:364}],367:[function(t,e,i){arguments[4][227][0].apply(i,arguments)},{227:227,364:364}],368:[function(t,e,i){"use strict";const n=t(367),s=t(366),r=t(369),o=t(371),a=t(372),l=t(370);e.exports=class{constructor(t,e={}){if("number"!=typeof t||!isFinite(t))throw new TypeError('Clip duration must be a finite number; got "'.concat(t,'"'));"function"==typeof e&&(e={draw:e}),this.ease=o(e.ease),this.update=o(e.update),this.draw=e.draw,this.prepare=o(e.prepare),this.finish=o(e.finish),this._duration=1e3*t,this._startTime=null,this._isPrepared=!1,this._promise=null,this._isPlaying=!1}get isReversed(){return this._duration<0}get isComplete(){const t=this.progress;return!this.isReversed&&t>=1||this.isReversed&&t<=0}get progress(){if(0===this._duration)return 1;let t=(this.lastFrameTime-this._startTime)/this._duration;return this.isReversed&&(t=1+t),l(t,0,1)}get easedProgress(){return this.ease?this.ease(this.progress):this.progress}_run(t,e){this.lastFrameTime=Date.now(),null===this._startTime&&(this._startTime=this.lastFrameTime);const i=this.easedProgress;this.update&&n(()=>this._isPlaying&&this.update(i)),s(()=>{this._isPlaying&&(this.draw(i),this.isComplete?a(s,[this.finish,e]):this._run(this,e))})}play(){if("function"!=typeof this.draw)throw new Error('Clip must be given a "draw" function as an option or have its "draw" method overriden.');return this._isPlaying=!0,this._promise||(this._promise=new Promise((t,e)=>{!this._isPrepared&&this.prepare?(this._isPrepared=!0,s(()=>r(this.prepare(),()=>{this._run(this,t)}))):this._run(this,t)})),this._promise}destroy(){this._isPlaying=!1,this.draw=this.finish=this.update=null}static play(){return new this(...arguments).play()}}},{366:366,367:367,369:369,370:370,371:371,372:372}],369:[function(t,e,i){"use strict";e.exports=function(t,e){t instanceof Promise?t.then(e):e()}},{}],370:[function(t,e,i){"use strict";e.exports=function(t,e,i){return Math.min(Math.max(t,e),i)}},{}],371:[function(t,e,i){"use strict";e.exports=function(t){return"function"==typeof t?t:null}},{}],372:[function(t,e,i){"use strict";e.exports=function(t,e){const i=e.length;let n=0;!function s(){"function"==typeof e[n]&&t(e[n]),n++,nMath.round(1e6*t)/1e6;function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function o(t,e){return 0===e?Array.from(t):[t[0]/e,t[1]/e,t[2]/e]}function a(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function l(t,e,i,n){return[t[0]*i+e[0]*n,t[1]*i+e[1]*n,t[2]*i+e[2]*n]}function h(t){const e=new Float32Array(4),i=new Float32Array(3),h=new Float32Array(3),c=new Float32Array(3);c[0]=t[3][0],c[1]=t[3][1],c[2]=t[3][2];const u=new Array(3);for(let e=0;e<3;e++)u[e]=t[e].slice(0,3);i[0]=r(u[0]),u[0]=o(u[0],i[0]),h[0]=a(u[0],u[1]),u[1]=l(u[1],u[0],1,-h[0]),i[1]=r(u[1]),u[1]=o(u[1],i[1]),h[0]/=i[1],h[1]=a(u[0],u[2]),u[2]=l(u[2],u[0],1,-h[1]),h[2]=a(u[1],u[2]),u[2]=l(u[2],u[1],1,-h[2]),i[2]=r(u[2]),u[2]=o(u[2],i[2]),h[1]/=i[2],h[2]/=i[2];const d=(p=u[1],f=u[2],[p[1]*f[2]-p[2]*f[1],p[2]*f[0]-p[0]*f[2],p[0]*f[1]-p[1]*f[0]]);var p,f;if(a(u[0],d)<0)for(let t=0;t<3;t++)i[t]*=-1,u[t][0]*=-1,u[t][1]*=-1,u[t][2]*=-1;let _;return e[0]=.5*Math.sqrt(Math.max(1+u[0][0]-u[1][1]-u[2][2],0)),e[1]=.5*Math.sqrt(Math.max(1-u[0][0]+u[1][1]-u[2][2],0)),e[2]=.5*Math.sqrt(Math.max(1-u[0][0]-u[1][1]+u[2][2],0)),e[3]=.5*Math.sqrt(Math.max(1+u[0][0]+u[1][1]+u[2][2],0)),u[2][1]>u[1][2]&&(e[0]=-e[0]),u[0][2]>u[2][0]&&(e[1]=-e[1]),u[1][0]>u[0][1]&&(e[2]=-e[2]),_=e[0]<.001&&e[0]>=0&&e[1]<.001&&e[1]>=0?[0,0,s(180*Math.atan2(u[0][1],u[0][0])/Math.PI)]:function(t){const[e,i,r,o]=t,a=e*e,l=i*i,h=r*r,c=e*i+r*o,u=o*o+a+l+h;return c>.49999*u?[0,2*Math.atan2(e,o)*n,90]:c<-.49999*u?[0,-2*Math.atan2(e,o)*n,-90]:[s(Math.atan2(2*e*o-2*i*r,1-2*a-2*h)*n),s(Math.atan2(2*i*o-2*e*r,1-2*l-2*h)*n),s(Math.asin(2*e*i+2*r*o)*n)]}(e),{translation:c,rotation:_,eulerRotation:_,scale:[s(i[0]),s(i[1]),s(i[2])]}}e.exports=function(t){t instanceof Element&&(t=String(getComputedStyle(t).transform).trim());let e=new DOMMatrix(t);const i=new Array(4);for(let t=1;t<5;t++){const n=i[t-1]=new Float32Array(4);for(let i=1;i<5;i++)n[i-1]=e["m".concat(t).concat(i)]}return h(i)}},{}],374:[function(t,e,i){"use strict";e.exports={getContentDimensions:t(375),getDimensions:t(376),getMaxScrollPosition:t(377),getPagePosition:t(378),getPercentInViewport:t(379),getPixelsInViewport:t(380),getPosition:t(381),getScrollPosition:t(382),getViewportPosition:t(383),isInViewport:t(384)}},{375:375,376:376,377:377,378:378,379:379,380:380,381:381,382:382,383:383,384:384}],375:[function(t,e,i){"use strict";e.exports=function(t,e){var i=1;return e&&(i=t.getBoundingClientRect().width/t.offsetWidth),{width:t.scrollWidth*i,height:t.scrollHeight*i}}},{}],376:[function(t,e,i){"use strict";e.exports=function(t,e){var i;return e?{width:(i=t.getBoundingClientRect()).width,height:i.height}:{width:t.offsetWidth,height:t.offsetHeight}}},{}],377:[function(t,e,i){"use strict";function n(t,e){return"x"===e?t.scrollWidth-t.clientWidth:t.scrollHeight-t.clientHeight}e.exports=function(t,e){var i=typeof t;return e="string"===i?t:e,t=t&&"string"!==i&&t!==window?t:document.documentElement,e&&/^[xy]$/i.test(e)?n(t,e):{x:n(t,"x"),y:n(t,"y")}}},{}],378:[function(t,e,i){"use strict";var n=t(376),s=t(382);e.exports=function(t,e){var i;if(e){var r=s(),o=t.getBoundingClientRect();i={top:o.top+r.y,right:o.right+r.x,bottom:o.bottom+r.y,left:o.left+r.x}}else{var a=n(t);for(i={top:t.offsetTop,right:a.width,bottom:a.height,left:t.offsetLeft};t=t.offsetParent;)i.top+=t.offsetTop,i.left+=t.offsetLeft;i.right+=i.left,i.bottom+=i.top}var l=document.documentElement.offsetTop,h=document.documentElement.offsetLeft;return{top:i.top+l,right:i.right+h,bottom:i.bottom+l,left:i.left+h}}},{376:376,382:382}],379:[function(t,e,i){"use strict";var n=t(376),s=t(380);e.exports=function(t,e){var i=s(t,e),r=n(t,e);return{x:i.x/r.width,y:i.y/r.height}}},{376:376,380:380}],380:[function(t,e,i){"use strict";var n=t(383);e.exports=function(t,e){var i=window.innerWidth,s=window.innerHeight,r=n(t,e),o={x:r.right-r.left,y:r.bottom-r.top};return r.top<0&&(o.y+=r.top),r.bottom>s&&(o.y-=r.bottom-s),r.left<0&&(o.x+=r.left),r.right>i&&(o.x-=r.right-i),o.x=o.x<0?0:o.x,o.y=o.y<0?0:o.y,o}},{383:383}],381:[function(t,e,i){"use strict";var n=t(376);e.exports=function(t,e){var i,s,r,o,a,l,h;return e?(s=(i=t.getBoundingClientRect()).top,r=i.left,o=i.width,a=i.height,t.offsetParent&&(s-=(l=t.offsetParent.getBoundingClientRect()).top,r-=l.left)):(h=n(t,e),s=t.offsetTop,r=t.offsetLeft,o=h.width,a=h.height),{top:s,right:r+o,bottom:s+a,left:r}}},{376:376}],382:[function(t,e,i){"use strict";function n(t){return"x"===t?window.scrollX||window.pageXOffset:window.scrollY||window.pageYOffset}function s(t,e,i){return"x"===e?i?n("x"):t.scrollLeft:i?n("y"):t.scrollTop}e.exports=function(t,e){var i=typeof t;e="string"===i?t:e;var n=(t=t&&"string"!==i?t:window)===window;return e&&/^[xy]$/i.test(e)?s(t,e,n):{x:s(t,"x",n),y:s(t,"y",n)}}},{}],383:[function(t,e,i){"use strict";var n=t(378),s=t(382);e.exports=function(t,e){var i;if(e)return{top:(i=t.getBoundingClientRect()).top,right:i.right,bottom:i.bottom,left:i.left};i=n(t);var r=s();return{top:i.top-r.y,right:i.right-r.x,bottom:i.bottom-r.y,left:i.left-r.x}}},{378:378,382:382}],384:[function(t,e,i){"use strict";var n=t(379),s=t(376);e.exports=function(t,e,i){var r=n(t,e);return i=function(t,e,i){var n={x:0,y:0};if(!e)return n;var r,o=typeof e;return e="number"===o||"string"===o?{x:e,y:e}:Object.assign(n,e),Object.keys(n).forEach((function(n){var o=e[n];("string"==typeof o||o>1)&&(r=r||s(t,i),o=(parseInt(o,10)||0)/("x"===n?r.width:r.height));e[n]=o})),e}(t,i,e),r.y>0&&r.y>=i.y&&r.x>0&&r.x>=i.x}},{376:376,379:379}],385:[function(t,e,i){"use strict";e.exports=function(t,e){var i=null,n=function(){null===i&&(t.apply(this,arguments),i=setTimeout((function(){i=null}),e))};return n.cancel=function(){clearTimeout(i)},n}},{}],386:[function(t,e,i){"use strict";const n=t(97),s=t(388),r=t(393),o=t(391),a=t(396),l=t(401),h=t(390),c=t(395),u=t(399),d=t(394),p=["beforeCreate","created","beforeMount","createItems","itemsCreated","mounted","animateToItem","onItemChangeInitiated","onItemChangeOccurred","onItemChangeCompleted","onResizeImmediate","onBreakpointChange","onResizeDebounced","destroy"];class f extends n{constructor(t){super(t),this.el=t.el,this.model=Object.assign({options:t},JSON.parse(JSON.stringify(s))),this.model.Item.ConstructorFunction=s.Item.ConstructorFunction,this._items=[],this.currentIndex=0,p.forEach(t=>{this[t]=(...e)=>{this["__".concat(t)]&&this["__".concat(t)].forEach(t=>t.apply(this,e))}});const e=this.destroy;this.destroy=(...t)=>{e.apply(this,t),n.prototype.destroy.call(this)},this.on(s.Events.ITEM_CHANGE_INITIATED,this.onItemChangeInitiated),this.on(s.Events.ITEM_CHANGE_OCCURRED,this.onItemChangeOccurred),this.on(s.Events.ITEM_CHANGE_COMPLETED,this.onItemChangeCompleted),["beforeCreate","created","beforeMount","createItems"].forEach(e=>this[e](t))}}f.withMixins=(...t)=>{const e=t.findIndex(t=>"excluding"in t);let i=new Set;e>=0&&(t[e].excluding.forEach(t=>i.add(t)),t.splice(e));const n=class extends f{},s=n.prototype;let _=[r,l,a,d].filter(t=>!i.has(t)),m=[h,u,o,c].filter(t=>!i.has(t));return t.unshift(..._),t.push(...m),t.forEach(t=>{for(const e in t)p.includes(e)?(s["__".concat(e)]=s["__".concat(e)]||[],s["__".concat(e)].push(t[e])):s[e]=t[e]}),n},e.exports=f},{388:388,390:390,391:391,393:393,394:394,395:395,396:396,399:399,401:401,97:97}],387:[function(t,e,i){"use strict";const n=t(96).EventEmitterMicro,s={};"undefined"!=typeof window&&(s.draw=t(173),s.cancelDraw=t(170));e.exports=class extends n{constructor(t){super(),this.index=t.index,this.el=t.el,this._x=0,this._y=0,this._opacity=0,this._width=0,this._height=0,this._zIndex=0,this.id=this.el.getAttribute("id"),this.analyticsId=this.el.getAttribute("data-analytics-gallery-item-id")||this.el.getAttribute("id"),this.applyDraw=this.applyDraw.bind(this),this.measure()}measure(){const t=getComputedStyle(this.el);this._width=this.el.clientWidth,this._height=this.el.clientHeight,this._zIndex=parseInt(t.getPropertyValue("z-index")),this._opacity=parseFloat(t.getPropertyValue("opacity"))}select(){this.el.classList.add("current"),this.trigger("select",this)}deselect(){this.el.classList.remove("current"),this.trigger("deselect",this)}progress(t){}needsRedraw(){s.cancelDraw(this._rafID),this._rafID=s.draw(this.applyDraw,!0)}applyDraw(){this.el.style.zIndex=this._zIndex,this.el.style.opacity=this._opacity,this.el.style.transform="translate(".concat(this._x,"px, ").concat(this._y,"px)")}get height(){return this._height}set height(t){this._height=t,this.needsRedraw()}get width(){return this._width}set width(t){this._width=t,this.needsRedraw()}get x(){return this._x}set x(t){this._x=t,this.needsRedraw()}get y(){return this._y}set y(t){this._y=t,this.needsRedraw()}get opacity(){return this._opacity}set opacity(t){this._opacity=t,this.needsRedraw()}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.needsRedraw()}}},{170:170,173:173,96:96}],388:[function(t,e,i){"use strict";e.exports={PrefersReducedMotion:!1,IsRTL:!1,IsTouch:!1,Slide:{Selector:".item-container",duration:1},Fade:{duration:.5},Item:{Selector:".item-container .gallery-item",ConstructorFunction:t(387)},DotNav:{Selector:".dotnav"},PaddleNav:{Selector:".paddlenav"},ChapterPlayer:{defaultEase:t=>t},FadeCaptionOnChange:{ItemSelector:".captions-gallery [data-captions-gallery-item]"},TabNav:{ItemSelector:".tablist-wrapper li",RoamingTabIndexSelector:"a"},SwipeDetect:{DesktopSwipe:!1,LimitIndexChange:!0,movementRateMultiplier:1.5,velocityMultiplier:8},SwipeDrag:{DesktopSwipe:!1,movementRateMultiplier:1.5,velocityMultiplier:8},InitialIndexFromHashLink:{Enabled:!1,ScrollReset:!1},Theme:{classPrefix:"theme"},Events:{ITEM_CHANGE_INITIATED:"ITEM_CHANGE_INITIATED",ITEM_CHANGE_OCCURRED:"ITEM_CHANGE_OCCURRED",ITEM_CHANGE_COMPLETED:"ITEM_CHANGE_COMPLETED"}}},{387:387}],389:[function(t,e,i){"use strict";let n;try{n=t("@marcom/ac-analytics").observer.Gallery}catch(t){}e.exports={created(t){this.analytics={lastTrackedItem:null,observer:null,name:this.el.getAttribute("data-analytics-gallery-id")||this.el.getAttribute("id"),events:{UPDATE:"update",UPDATE_COMPLETE:"update:complete"}}},mounted(){n&&(this.analytics.name||(console.warn("No ID attribute found on the Mixin Gallery element - please add an ID",this),this.analytics.name="null"),this.analytics.observer=new n(this,{galleryName:this.analytics.name,beforeUpdateEvent:this.analytics.events.UPDATE,afterUpdateEvent:this.analytics.events.UPDATE_COMPLETE,trackAutoRotate:!0}))},onItemChangeCompleted(t){if(!t.previous||t.current===this.analytics.lastTrackedItem||t.current===t.previous&&!this.analytics.lastTrackedItem)return;this.analytics.lastTrackedItem=t.current;let e={incoming:{id:t.current.analyticsId},outgoing:{id:t.previous.analyticsId},interactionEvent:this.lastInteractionEvent};this.trigger(this.analytics.events.UPDATE_COMPLETE,e)}}},{undefined:void 0}],390:[function(t,e,i){"use strict";e.exports={createItems(t){if(this._items.length)this.itemsCreated(t);else{if(!this.model.Item.ConstructorFunction)throw new ReferenceError("MixinGallery::AutoCreateItems - this.model.Item.ConstructorFunction is null");if(0===this._items.length){this._items=[],Array.from(this.el.querySelectorAll(this.model.Item.Selector)).forEach((t,e)=>{const i=new this.model.Item.ConstructorFunction({el:t,index:e});this._items.push(i)});let t=this._items[this._items.length-1];for(let e=0;e{t.measure(),t.x=0,t.zIndex=t===this.currentItem?2:0}),this.trigger(this.model.Events.ITEM_CHANGE_OCCURRED,{gallery:this,previous:null,current:this.currentItem})},animateToItem(t){if(this.currentIndex===t||this.currentIndex===this.wrappedIndex(t))return;this.el.parentElement.scrollLeft=0;let e=this.model.IsTouch?"easeOutCubic":"easeInOutCubic";this.clip&&this.clip._isPlaying&&(e="easeOutQuint",this.clip.destroy());const i=this.selections.occurred.previous,r=this.selections.occurred.current,o=this._items[this.wrappedIndex(t)];o.opacity=0,i&&(i.zIndex=0),r&&(r.zIndex=1),o.zIndex=2;let a=!1;this.clip=new n(this.model.Fade.duration,{ease:s[e],prepare:()=>this.trigger(this.model.Events.ITEM_CHANGE_INITIATED,{gallery:this,next:o}),update:t=>{t>.5&&!a&&(a=!0,this.currentIndex=o.index,this.trigger(this.model.Events.ITEM_CHANGE_OCCURRED,{gallery:this,current:o})),o.opacity=t},draw:()=>{},finish:()=>{this.trigger(this.model.Events.ITEM_CHANGE_COMPLETED,{gallery:this,current:o})}}),this.clip.play().then(()=>{this.clip.destroy(),this.clip=null})},onResizeImmediate(){this.clip&&(this.clip.destroy(),this.clip=null),this.resetFadeItems()},resetFadeItems(){this._items.forEach(t=>{t.zIndex=t===this.currentItem?2:0,t.opacity=1})},destroy(){this.clip&&this.clip.destroy(),this.resetFadeItems()}}},{336:336,368:368}],393:[function(t,e,i){"use strict";e.exports={beforeCreate(){Object.defineProperties(this,{currentItem:{configurable:!0,get:()=>this._items[this.wrappedIndex(this.currentIndex)]}})},wrappedIndex(t){return(t%=this._items.length)<0?this._items.length+t:t},getItemForTrigger(t){return this._items.find(e=>e.id===t)}}},{}],394:[function(t,e,i){"use strict";e.exports={itemsCreated(){if(!this.model.InitialIndexFromHashLink.Enabled||!this._items)return;const t=location.hash.slice(1);if(!t)return;const e=this._items.findIndex(({id:e})=>e===t);e>-1&&(this.currentIndex=e,this.model.InitialIndexFromHashLink.ScrollReset&&this._resetHorizontalScrollPosition())},_resetHorizontalScrollPosition(t){const e=t||this.el;0!==e.scrollLeft?e.scrollLeft=0:e!==document.body&&this._resetHorizontalScrollPosition(e.parentNode)}}},{}],395:[function(t,e,i){"use strict";e.exports={mounted(){const t=this._items[this.wrappedIndex(this.currentIndex)];this.trigger(this.model.Events.ITEM_CHANGE_INITIATED,{gallery:this,next:t}),this.trigger(this.model.Events.ITEM_CHANGE_OCCURRED,{gallery:this,current:t}),this.trigger(this.model.Events.ITEM_CHANGE_COMPLETED,{gallery:this,current:t})}}},{}],396:[function(t,e,i){"use strict";e.exports={beforeCreate(){document.body._animInfo&&(this.anim=document.body._animInfo.group.anim,this.model.pageMetrics=this.anim.model.pageMetrics)},addKeyframe(t){const e=t.el||this.el;return(t.group||this.anim).addKeyframe(e,t)},addDiscreteEvent(t){t.event=t.event||"Generic-Event-Name-"+tmpUUID++;let e=void 0!==t.end&&t.end!==t.start;const i=this.addKeyframe(t);return e?(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},addRAFLoop(t){let e=["start","end"];if(!e.every(e=>t.hasOwnProperty(e)))return void console.log("BubbleGum.BaseComponent::addRAFLoop required options are missing: "+e.join(" "));const i=new RAFEmitter.create;i.on("update",t.onUpdate||noop),i.on("draw",t.onDraw||noop),i.on("draw",()=>i.run());const{onEnter:n,onExit:s}=t;return t.onEnter=()=>{i.run(),n&&n()},t.onExit=()=>{i.cancel(),s&&s()},this.addDiscreteEvent(t)},addContinuousEvent(t){t.onDraw||console.log("BubbleGum.BaseComponent::addContinuousEvent required option `onDraw` is missing. Consider using a regular keyframe if you do not need a callback"),t.event=t.event||"Generic-Event-Name-"+tmpUUID++;let e=this.addKeyframe(t);return e.controller.on(t.event,t.onDraw),e}}},{}],397:[function(t,e,i){"use strict";const n=(t,e)=>{e?t.removeAttribute("disabled"):t.setAttribute("disabled","true")};e.exports={mounted(){const t=this.el.querySelector(this.model.PaddleNav.Selector);this.paddleNav={previousEl:t.querySelector(".paddlenav-arrow-previous"),nextEl:t.querySelector(".paddlenav-arrow-next")},this.onPaddleNavSelected=this.onPaddleNavSelected.bind(this),[this.paddleNav.previousEl,this.paddleNav.nextEl].forEach(t=>{t.addEventListener("click",this.onPaddleNavSelected)})},destroy(){[this.paddleNav.previousEl,this.paddleNav.nextEl].forEach(t=>{t.removeEventListener("click",this.onPaddleNavSelected)}),this.paddleNav=null},onPaddleNavSelected(t){let e=t.target.className.includes("previous")?-1:1;this.lastInteractionEvent=t;const i=this.currentIndex+1*e;this.animateToItem(i)},onItemChangeCompleted(t){const e=this.wrappedIndex(this.currentIndex+1)!==this.currentIndex;n(this.paddleNav.nextEl,e);const i=this.wrappedIndex(this.currentIndex+-1)!==this.currentIndex;n(this.paddleNav.previousEl,i)}}},{}],398:[function(t,e,i){"use strict";e.exports={onItemChangeOccurred(t){const{previous:e,current:i}=this.selections.occurred;e&&e!==i&&e.deselect(),i.select()}}},{}],399:[function(t,e,i){"use strict";const n=t(23),s=t(29);e.exports={itemsCreated(t){this._items.forEach((t,e)=>{e===this.wrappedIndex(this.currentIndex)?s(t.el):n(t.el)})},onItemChangeCompleted(t){const{previous:e,current:i}=this.selections.completed;e&&e!==i&&n(e.el),s(i.el)}}},{23:23,29:29}],400:[function(t,e,i){"use strict";const n=t(17),s=t(31),r=t(34);e.exports={created(){this.tabNav={items:[],current:null}},itemsCreated(){Array.from(this.el.querySelectorAll(this.model.TabNav.ItemSelector)).forEach((t,e)=>{const i=new o(t,e),n=this.getItemForTrigger(i.trigger);n||console.error("MixinGallery '".concat(this.el.id,"': Could not match tav/dot nav item with trigger '").concat(i.trigger,"', to gallery any item. Double check to make sure the triggers match the item id's.")),i.onSelected=t=>{this.lastInteractionEvent=t,t.preventDefault();let i=e-this.wrappedIndex(this.currentIndex),n=this.currentIndex+i;this.animateToItem(n)},n.on("select",()=>{t.classList.add("current"),i.anchorEl.classList.add("current")}),n.on("deselect",()=>{t.classList.remove("current"),i.anchorEl.classList.remove("current")}),i.anchorEl.addEventListener("click",i.onSelected),this.tabNav.items.push(i)}),this._items.forEach((t,e)=>{t.el.setAttribute("role",r.TABPANEL),t.el.setAttribute(s.LABELLEDBY,this.tabNav.items[e].anchorEl.id),this.tabNav.items[e].anchorEl.setAttribute(s.CONTROLS,t.el.id)})},mounted(){const t=this.tabNav.items[0].el.parentElement;this.roamingTabIndex=new n(t,{selector:this.model.TabNav.RoamingTabIndexSelector})},onItemChangeCompleted(t){let e=this.tabNav.items.filter(e=>e.trigger===t.current.id)[0];this.setCurrentItem(e),this.roamingTabIndex.setSelectedItemByIndex(e.index,!0),document.activeElement.parentElement.parentElement===e.el.parentElement&&e.anchorEl.focus()},setCurrentItem(t){t!==this.tabNav.current&&(this.tabNav.current=t)},destroy(){this.tabNav.items.forEach(t=>{t.el.classList.remove("current"),t.el=null,t.anchorEl.classList.remove("current"),t.anchorEl.removeEventListener("click",t.onSelected),t.anchorEl=null}),this.tabNav.items=[],this.tabNav.current=null}};class o{constructor(t,e){this.el=t,this.index=e,this.anchorEl=t.querySelector("a"),this.trigger=this.anchorEl.getAttribute("data-ac-gallery-trigger"),this.anchorEl.setAttribute("role",r.TAB)}}},{17:17,31:31,34:34}],401:[function(t,e,i){"use strict";e.exports={beforeCreate(){this.selections={initiated:{current:null,previous:null},occurred:{current:null,previous:null},completed:{current:null,previous:null}}},onItemChangeInitiated(t){this.selections.initiated.previous=this.selections.initiated.current,this.selections.initiated.current=this.selections.initiated.next,this.selections.initiated.next=t.next},onItemChangeOccurred(t){this.selections.occurred.previous=t.previous=this.selections.occurred.current,this.selections.occurred.current=t.current},onItemChangeCompleted(t){this.selections.completed.previous=t.previous=this.selections.completed.current,this.selections.completed.current=t.current}}},{}],402:[function(t,e,i){"use strict";e.exports={lerp:function(t,e,i){return e+(i-e)*t},map:function(t,e,i,n,s){return n+(s-n)*(t-e)/(i-e)},mapClamp:function(t,e,i,n,s){var r=n+(s-n)*(t-e)/(i-e);return Math.max(n,Math.min(s,r))},norm:function(t,e,i){return(t-e)/(i-e)},clamp:function(t,e,i){return Math.max(e,Math.min(i,t))},randFloat:function(t,e){return Math.random()*(e-t)+t},randInt:function(t,e){return Math.floor(Math.random()*(e-t)+t)}}},{}],403:[function(t,e,i){"use strict";e.exports={browser:{safari:!1,chrome:!1,firefox:!1,ie:!1,opera:!1,android:!1,edge:!1,edgeChromium:!1,samsung:!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}}}},{}],404:[function(t,e,i){"use strict";e.exports={browser:[{name:"edge",userAgent:"Edge",version:["rv","Edge"],test:function(t){return t.ua.indexOf("Edge")>-1||"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"===t.ua}},{name:"edgeChromium",userAgent:"Edge",version:["rv","Edg"],test:function(t){return t.ua.indexOf("Edg")>-1&&-1===t.ua.indexOf("Edge")}},{name:"chrome",userAgent:"Chrome"},{name:"firefox",test:function(t){return t.ua.indexOf("Firefox")>-1&&-1===t.ua.indexOf("Opera")},version:"Firefox"},{name:"android",userAgent:"Android"},{name:"safari",test:function(t){return t.ua.indexOf("Safari")>-1&&t.vendor.indexOf("Apple")>-1},version:"Version"},{name:"ie",test:function(t){return t.ua.indexOf("IE")>-1||t.ua.indexOf("Trident")>-1},version:["MSIE","rv"],parseDocumentMode:function(){var t=!1;return document.documentMode&&(t=parseInt(document.documentMode,10)),t}},{name:"opera",userAgent:"Opera",version:["Version","Opera"]},{name:"samsung",userAgent:"SamsungBrowser"}],os:[{name:"windows",test:function(t){return t.ua.indexOf("Windows")>-1},version:"Windows NT"},{name:"osx",userAgent:"Mac",test:function(t){return t.ua.indexOf("Macintosh")>-1}},{name:"ios",test:function(t){return t.ua.indexOf("iPhone")>-1||t.ua.indexOf("iPad")>-1},version:["iPhone OS","CPU OS"]},{name:"linux",userAgent:"Linux",test:function(t){return(t.ua.indexOf("Linux")>-1||t.platform.indexOf("Linux")>-1)&&-1===t.ua.indexOf("Android")}},{name:"fireos",test:function(t){return t.ua.indexOf("Firefox")>-1&&t.ua.indexOf("Mobile")>-1},version:"rv"},{name:"android",userAgent:"Android",test:function(t){return t.ua.indexOf("Android")>-1}},{name:"chromeos",userAgent:"CrOS"}]}},{}],405:[function(t,e,i){"use strict";var n=t(403),s=t(404);function r(t,e){if("function"==typeof t.parseVersion)return t.parseVersion(e);var i,n=t.version||t.userAgent;"string"==typeof n&&(n=[n]);for(var s,r=n.length,o=0;o1)return s[1].replace(/_/g,".");return!1}function o(t,e,i){for(var n,s,o=t.length,a=0;a-1&&(n=t[a].name),n){if(e[n]=!0,"string"==typeof(s=r(t[a],i.ua))){var l=s.split(".");e.version.string=s,l&&l.length>0&&(e.version.major=parseInt(l[0]||0),e.version.minor=parseInt(l[1]||0),e.version.patch=parseInt(l[2]||0))}else"edge"===n&&(e.version.string="12.0.0",e.version.major="12",e.version.minor="0",e.version.patch="0");return"function"==typeof t[a].parseDocumentMode&&(e.version.documentMode=t[a].parseDocumentMode()),e}return e}e.exports=function(t){var e={};return e.browser=o(s.browser,n.browser,t),e.os=o(s.os,n.os,t),e}},{403:403,404:404}],406:[function(t,e,i){"use strict";var n={ua:window.navigator.userAgent,platform:window.navigator.platform,vendor:window.navigator.vendor};e.exports=t(405)(n)},{405:405}],407:[function(t,e,i){"use strict";const n=t(96).EventEmitterMicro,s=[{name:"S",mediaQuery:"only screen and (max-width: 734px)"},{name:"M",mediaQuery:"only screen and (min-width: 735px) and (max-width: 1068px)"},{name:"L",mediaQuery:"only screen and (min-width: 1069px) and (max-width: 1440px)"},{name:"X",mediaQuery:"only screen and (min-width: 1441px)"}],r="only screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (min-resolution: 1.5dppx), screen and (min-resolution: 144dpi)",o="only screen and (orientation: portrait)";class a extends n{constructor(t={}){super(),this.BREAKPOINTS=t.breakpoints||s,this._setupProperties(),this._onRetinaChange=this._onRetinaChange.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this.listenersAdded={orientation:!1,retina:!1,viewport:!1}}static get CHANGE_EVENTS(){return{ORIENTATION:"change:orientation",RETINA:"change:retina",VIEWPORT:"change:viewport"}}on(){this._setupListeners(arguments[0]),super.on.apply(this,arguments)}_onRetinaChange(){this.trigger(a.CHANGE_EVENTS.RETINA,this)}_onOrientationChange(){this.trigger(a.CHANGE_EVENTS.ORIENTATION,this)}_setupProperties(){Object.defineProperty(this,"retina",{get:()=>window.matchMedia(r).matches}),Object.defineProperty(this,"orientation",{get:()=>window.matchMedia(o).matches?"portrait":"landscape"}),this.viewport=this.getBreakpoint()}_setupListeners(t){if(t!==a.CHANGE_EVENTS.RETINA||this.listenersAdded.retina||(window.matchMedia(r).addListener(this._onRetinaChange),this.listenersAdded.retina=!0),t!==a.CHANGE_EVENTS.ORIENTATION||this.listenersAdded.orientation||(window.matchMedia(o).addListener(this._onOrientationChange),this.listenersAdded.orientation=!0),t===a.CHANGE_EVENTS.VIEWPORT&&!this.listenersAdded.viewport){for(let t=0;t{t.matches&&(this.oldViewport=this.viewport,this.viewport=e.name,this.trigger(a.CHANGE_EVENTS.VIEWPORT,this))})}this.listenersAdded.viewport=!0}}getBreakpoint(){for(let t=0;tl||o<-l)&&nl||r<-l)&&s-1;)(u=y[o[v]]||new i(o[v],[])).gsClass?(h[v]=u.gsClass,g--):c&&u.sc.push(this);if(0===g&&a){if(f=(d=("com.greensock."+s).split(".")).pop(),_=p(d.join("."))[f]=this.gsClass=a.apply(a,h),l)if(r[f]=n[f]=_,!(m=void 0!==e&&e.exports)&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],(function(){return _}));else if(m)if("TweenLite"===s)for(v in e.exports=n.TweenLite=_,n)_[v]=n[v];else n.TweenLite&&(n.TweenLite[f]=_);for(v=0;v-1;)for(r=l[h],s=n?w("easing."+r,null,!0):f.easing[r]||{},o=c.length;--o>-1;)a=c[o],x[r+"."+a]=x[a+r]=s[a]=t.getRatio?t:t[a]||new t};for((l=T.prototype)._calcEnd=!1,l.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:t<.5?n/2:1-n/2},a=(o=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--a>-1;)l=o[a]+",Power"+a,k(new T(null,null,1,a),l,"easeOut",!0),k(new T(null,null,2,a),l,"easeIn"+(0===a?",easeNone":"")),k(new T(null,null,3,a),l,"easeInOut");x.linear=f.easing.Linear.easeIn,x.swing=f.easing.Quad.easeInOut;var C=w("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this}));(l=C.prototype).addEventListener=function(t,e,i,n,s){s=s||0;var r,o,a=this._listeners[t],l=0;for(this!==h||c||h.wake(),null==a&&(this._listeners[t]=a=[]),o=a.length;--o>-1;)(r=a[o]).c===e&&r.s===i?a.splice(o,1):0===l&&r.pr-1;)if(n[i].c===e)return void n.splice(i,1)},l.dispatchEvent=function(t){var e,i,n,s=this._listeners[t];if(s)for((e=s.length)>1&&(s=s.slice(0)),i=this._eventTarget;--e>-1;)(n=s[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var S=t.requestAnimationFrame,O=t.cancelAnimationFrame,P=Date.now||function(){return(new Date).getTime()},A=P();for(a=(o=["ms","moz","webkit","o"]).length;--a>-1&&!S;)S=t[o[a]+"RequestAnimationFrame"],O=t[o[a]+"CancelAnimationFrame"]||t[o[a]+"CancelRequestAnimationFrame"];w("Ticker",(function(t,e){var i,n,r,o,a,l=this,u=P(),d=!(!1===e||!S)&&"auto",p=500,f=33,_=function t(e){var s,h,c=P()-A;c>p&&(u+=c-f),A+=c,l.time=(A-u)/1e3,s=l.time-a,(!i||s>0||!0===e)&&(l.frame++,a+=s+(s>=o?.004:o-s),h=!0),!0!==e&&(r=n(t)),h&&l.dispatchEvent("tick")};C.call(l),l.time=l.frame=0,l.tick=function(){_(!0)},l.lagSmoothing=function(t,e){p=t||1/1e-10,f=Math.min(e,p,0)},l.sleep=function(){null!=r&&(d&&O?O(r):clearTimeout(r),n=m,r=null,l===h&&(c=!1))},l.wake=function(t){null!==r?l.sleep():t?u+=-A+(A=P()):l.frame>10&&(A=P()-p+5),n=0===i?m:d&&S?S:function(t){return setTimeout(t,1e3*(a-l.time)+1|0)},l===h&&(c=!0),_(2)},l.fps=function(t){if(!arguments.length)return i;o=1/((i=t)||60),a=this.time+o,l.wake()},l.useRAF=function(t){if(!arguments.length)return d;l.sleep(),d=t,l.fps(i)},l.fps(t),setTimeout((function(){"auto"===d&&l.frame<5&&"hidden"!==s.visibilityState&&l.useRAF(!1)}),1500)})),(l=f.Ticker.prototype=new f.events.EventDispatcher).constructor=f.Ticker;var I=w("core.Animation",(function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,Y){c||h.wake();var i=this.vars.useFrames?q:Y;i.add(this,i._time),this.vars.paused&&this.paused(!0)}}));h=I.ticker=new f.Ticker,(l=I.prototype)._dirty=l._gc=l._initted=l._paused=!1,l._totalTime=l._time=0,l._rawPrevTime=-1,l._next=l._last=l._onUpdate=l._timeline=l.timeline=null,l._paused=!1;!function t(){c&&P()-A>2e3&&h.wake(),setTimeout(t,2e3)}(),l.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},l.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},l.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},l.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},l.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},l.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},l.render=function(t,e,i){},l.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},l.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t-1;)"{self}"===t[e]&&(i[e]=this);return i},l._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],s=e[t+"Scope"]||e.callbackScope||this;switch(n?n.length:0){case 0:i.call(s);break;case 1:i.call(s,n[0]);break;case 2:i.call(s,n[0],n[1]);break;default:i.apply(s,n)}},l.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var s=this.vars;if(1===arguments.length)return s[t];null==e?delete s[t]:(s[t]=e,s[t+"Params"]=v(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,s[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},l.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},l.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},l.totalTime=function(t,e,i){if(c||h.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,s=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:s._time)-(this._reversed?n-t:t)/this._timeScale,s._dirty||this._uncache(!1),s._timeline)for(;s._timeline;)s._timeline._time!==(s._startTime+s._totalTime)/s._timeScale&&s.totalTime(s._totalTime,!0),s=s._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(R.length&&Q(),this.render(t,e,!1),R.length&&Q())}return this},l.progress=l.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},l.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},l.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},l.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||1e-10,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},l.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},l.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(c||t||h.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var D=w("core.SimpleTimeline",(function(t){I.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}));(l=D.prototype=new I).constructor=D,l.kill()._gc=!1,l._first=l._last=l._recent=null,l._sortChildren=!1,l.add=l.insert=function(t,e,i,n){var s,r;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),s=this._last,this._sortChildren)for(r=t._startTime;s&&s._startTime>r;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=s,this._recent=t,this._timeline&&this._uncache(!0),this},l._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},l.render=function(t,e,i){var n,s=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;s;)n=s._next,(s._active||t>=s._startTime&&!s._paused)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n},l.rawTime=function(){return c||h.wake(),this._totalTime};var L=w("TweenLite",(function(e,i,n){if(I.call(this,i,n),this.render=L.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:L.selector(e)||e;var s,r,o,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?G[L.defaultOverwrite]:"number"==typeof l?l>>0:G[l],(a||e instanceof Array||e.push&&v(e))&&"number"!=typeof e[0])for(this._targets=o=_(e),this._propLookup=[],this._siblings=[],s=0;s1&&$(r,this,null,1,this._siblings[s])):"string"==typeof(r=o[s--]=L.selector(r))&&o.splice(s+1,1):o.splice(s--,1);else this._propLookup={},this._siblings=Z(e,this,!1),1===l&&this._siblings.length>1&&$(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))}),!0),M=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(l=L.prototype=new I).constructor=L,l.kill()._gc=!1,l.ratio=0,l._firstPT=l._targets=l._overwrittenProps=l._startAt=null,l._notifyPluginsOfEnabled=l._lazy=!1,L.version="1.19.1",L.defaultEase=l._ease=new T(null,null,1,1),L.defaultOverwrite="auto",L.ticker=h,L.autoSleep=120,L.lagSmoothing=function(t,e){h.lagSmoothing(t,e)},L.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(L.selector=i,i(e)):void 0===s?e:s.querySelectorAll?s.querySelectorAll(e):s.getElementById("#"===e.charAt(0)?e.substr(1):e)};var R=[],N={},F=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):e<1e-6&&e>-1e-6&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},U=function(t,e,i,n){var s,r,o,a,l,h,c,u=[],d=0,p="",f=0;for(u.start=t,u.end=e,t=u[0]=t+"",e=u[1]=e+"",i&&(i(u),t=u[0],e=u[1]),u.length=0,s=t.match(F)||[],r=e.match(F)||[],n&&(n._next=null,n.blob=1,u._firstPT=u._applyPT=n),l=r.length,a=0;a-1;)(t=R[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);R.length=0};Y._startTime=h.time,q._startTime=h.frame,Y._active=q._active=!0,setTimeout(Q,1),I._updateRoot=L.render=function(){var t,e,i;if(R.length&&Q(),Y.render((h.time-Y._startTime)*Y._timeScale,!1,!1),q.render((h.frame-q._startTime)*q._timeScale,!1,!1),R.length&&Q(),h.frame>=X){for(i in X=h.frame+(parseInt(L.autoSleep,10)||120),K){for(t=(e=K[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete K[i]}if((!(i=Y._first)||i._paused)&&L.autoSleep&&!q._first&&1===h._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||h.sleep()}}},h.addEventListener("tick",I._updateRoot);var Z=function(t,e,i){var n,s,r=t._gsTweenID;if(K[r||(t._gsTweenID=r="t"+z++)]||(K[r]={target:t,tweens:[]}),e&&((n=K[r].tweens)[s=n.length]=e,i))for(;--s>-1;)n[s]===e&&n.splice(s,1);return K[r].tweens},J=function(t,e,i,n){var s,r,o=t.vars.onOverwrite;return o&&(s=o(t,e,i,n)),(o=L.onOverwrite)&&(r=o(t,e,i,n)),!1!==s&&!1!==r},$=function(t,e,i,n,s){var r,o,a,l;if(1===n||n>=4){for(l=s.length,r=0;r-1;)(a=s[r])===e||a._gc||a._paused||(a._timeline!==e._timeline?(h=h||tt(e,0,p),0===tt(a,h,p)&&(u[d++]=a)):a._startTime<=c&&a._startTime+a.totalDuration()/a._timeScale>c&&((p||!a._initted)&&c-a._startTime<=2e-10||(u[d++]=a)));for(r=d;--r>-1;)if(a=u[r],2===n&&a._kill(i,t,e)&&(o=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!J(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},tt=function(t,e,i){for(var n=t._timeline,s=n._timeScale,r=t._startTime;n._timeline;){if(r+=n._startTime,s*=n._timeScale,n._paused)return-100;n=n._timeline}return(r/=s)>e?r-e:i&&r===e||!t._initted&&r-e<2e-10?1e-10:(r+=t.totalDuration()/t._timeScale/s)>e+1e-10?0:r-e-1e-10};l._init=function(){var t,e,i,n,s,r,o=this.vars,a=this._overwrittenProps,l=this._duration,h=!!o.immediateRender,c=o.ease;if(o.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),s={},o.startAt)s[n]=o.startAt[n];if(s.overwrite=!1,s.immediateRender=!0,s.lazy=h&&!1!==o.lazy,s.startAt=s.delay=null,this._startAt=L.to(this.target,0,s),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(o.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(h=!1),i={},o)W[n]&&"autoCSS"!==n||(i[n]=o[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==o.lazy,i.immediateRender=h,this._startAt=L.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof T?c:"function"==typeof c?new T(c,o.easeParams):x[c]||L.defaultEase:L.defaultEase,o.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,o.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(r=this._targets.length,t=0;t-1;)i[h._overwriteProps[a]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else i[o]=V.call(this,e,o,"get",u,o,0,null,this.vars.stringFilter,r);return s&&this._kill(s,e)?this._initProps(e,i,n,s,r):this._overwrite>1&&this._firstPT&&n.length>1&&$(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,s,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(N[e._gsTweenID]=!0),l)},l.render=function(t,e,i){var n,s,r,o,a=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(h<0||t<=0&&t>=-1e-7||1e-10===h&&"isPause"!==this.data)&&h!==t&&(i=!0,h>1e-10&&(s="onReverseComplete")),this._rawPrevTime=o=!e||t||h===t?t:1e-10);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&h>0)&&(s="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(1e-10!==h||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!e||t||h===t?t:1e-10)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,u=this._easeType,d=this._easePower;(1===u||3===u&&c>=.5)&&(c=1-c),3===u&&(c*=2),1===d?c*=c:2===d?c*=c*c:3===d?c*=c*c*c:4===d&&(c*=c*c*c*c),this.ratio=1===u?1-c:2===u?c:t/l<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=h,R.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):s||(s="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==a||n||i)&&this._callback("onUpdate")),s&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===l&&1e-10===this._rawPrevTime&&1e-10!==o&&(this._rawPrevTime=0)))}},l._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:L.selector(e)||e;var n,s,r,o,a,l,h,c,u,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((v(e)||M(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,s=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(h=t||a,c=t!==s&&"all"!==s&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(L.onOverwrite||this.vars.onOverwrite)){for(r in h)a[r]&&(u||(u=[]),u.push(r));if((u||!t)&&!J(this,i,e,u))return!1}for(r in h)(o=a[r])&&(d&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(h)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[r]),c&&(s[r]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},l.invalidate=function(){return this._notifyPluginsOfEnabled&&L._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],I.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},l._enabled=function(t,e){if(c||h.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Z(n[i],this,!0);else this._siblings=Z(this.target,this,!0)}return I.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&L._onPluginEvent(t?"_onEnable":"_onDisable",this)},L.to=function(t,e,i){return new L(t,e,i)},L.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new L(t,e,i)},L.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new L(t,e,n)},L.delayedCall=function(t,e,i,n,s){return new L(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:s,overwrite:0})},L.set=function(t,e){return new L(t,0,e)},L.getTweensOf=function(t,e){if(null==t)return[];var i,n,s,r;if(t="string"!=typeof t?t:L.selector(t)||t,(v(t)||M(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(L.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(r=n[i],s=i;--s>-1;)r===n[s]&&n.splice(i,1)}else for(i=(n=Z(t).concat()).length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n},L.killTweensOf=L.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=L.getTweensOf(t,e),s=n.length;--s>-1;)n[s]._kill(i,t)};var et=w("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=et.prototype}),!0);if(l=et.prototype,et.version="1.19.0",et.API=2,l._firstPT=null,l._addTween=V,l.setRatio=j,l._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},l._mod=l._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},L._onPluginEvent=function(t,e){var i,n,s,r,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,n=s;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:r)?a._prev._next=a:s=a,(a._next=n)?n._prev=a:r=a,a=o}a=e._firstPT=s}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},et.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===et.API&&(H[(new t[e])._propName]=t[e]);return!0},b.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,s=t.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},o=w("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",(function(){et.call(this,i,n),this._overwriteProps=s||[]}),!0===t.global),a=o.prototype=new et(i);for(e in a.constructor=o,o.API=t.API,r)"function"==typeof t[e]&&(a[r[e]]=t[e]);return o.version=t.version,et.activate([o]),o},o=t._gsQueue){for(a=0;a1)return i.method(i.targetX,i.targetY),void i.callback();var s=(i.timingFunc||e)(n),o=i.startX+(i.targetX-i.startX)*s,a=i.startY+(i.targetY-i.startY)*s;i.method(o,a),i.rafId=requestAnimationFrame((function(){t(i)}))},a=function(t){return isFinite(t)?Number(t):0},l=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)},h=function(){return(h=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)&&!(n=r.next()).done;)o.push(n.value)}catch(t){s={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(s)throw s.error}}return o}var u=function(t,e){var i,s,l=n.elementScroll.bind(t);if(void 0!==e.left||void 0!==e.top){var h=t.scrollLeft,c=t.scrollTop,u=a(null!==(i=e.left)&&void 0!==i?i:h),d=a(null!==(s=e.top)&&void 0!==s?s:c);if("smooth"!==e.behavior)return l(u,d);var p=function(){window.removeEventListener("wheel",_),window.removeEventListener("touchmove",_)},f={timeStamp:r(),duration:e.duration,startX:h,startY:c,targetX:u,targetY:d,rafId:0,method:l,timingFunc:e.timingFunc,callback:p},_=function(){cancelAnimationFrame(f.rafId),p()};window.addEventListener("wheel",_,{passive:!0,once:!0}),window.addEventListener("touchmove",_,{passive:!0,once:!0}),o(f)}},d=function(t){if(!i()){var e=n.elementScroll;s((function(i){return i.scroll=function(){if(1===arguments.length){var i=arguments[0];if(!l(i))throw new TypeError("Failed to execute 'scroll' on 'Element': parameter 1 ('options') is not an object.");return u(this,h(h({},i),t))}return e.apply(this,arguments)}}))}},p=function(t,e){var i=a(e.left||0)+t.scrollLeft,n=a(e.top||0)+t.scrollTop;return u(t,h(h({},e),{left:i,top:n}))},f=function(t){i()||s((function(e){return e.scrollBy=function(){if(1===arguments.length){var e=arguments[0];if(!l(e))throw new TypeError("Failed to execute 'scrollBy' on 'Element': parameter 1 ('options') is not an object.");return p(this,h(h({},e),t))}var i=Number(arguments[0]),n=Number(arguments[1]);return p(this,{left:i,top:n})}}))},_=function(t,e,i,n,s,r,o,a){return re||r>t&&o=e&&a>=i?r-t-n:o>e&&ai?o-e+s:0},m=function(t){return"visible"!==t&&"clip"!==t},v=function(t,e){return(t.clientHeighte?e:t},b=function(t){return t in document.documentElement.style},w=function(t,e){var i=t.getBoundingClientRect(),n=i.top,s=i.right,r=i.bottom,o=i.left,a=c(["top","right","bottom","left"].map((function(t){var i=["scroll-margin","scroll-snap-margin"].filter(b)[0],n=e.getPropertyValue(i+"-"+t);return parseInt(n,10)||0})),4);return[n-a[0],s+a[1],r+a[2],o-a[3]]},E=function(t,e){if(!1!==t.isConnected){for(var i=document.scrollingElement||document.documentElement,n=[],s=getComputedStyle(document.documentElement),r=y(t);null!==r;r=y(r)){if(r===i){n.push(r);break}var o=getComputedStyle(r);if((r!==document.body||!v(r,o)||v(document.documentElement,s))&&(v(r,o)&&n.push(r),"fixed"===o.position))break}var a=window.visualViewport?window.visualViewport.width:innerWidth,l=window.visualViewport?window.visualViewport.height:innerHeight,d=window.scrollX||window.pageXOffset,p=window.scrollY||window.pageYOffset,f=getComputedStyle(t),m=c(w(t,f),4),b=m[0],E=m[1],T=m[2],x=m[3],k=T-b,C=E-x,S=function(t){switch(t){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0}(f.writingMode||f.getPropertyValue("-webkit-writing-mode")||f.getPropertyValue("-ms-writing-mode")),O="rtl"!==f.direction,P=c(function(t,e,i){var n,s=c([t.block||"start",t.inline||"nearest"],2),r=s[0],o=s[1],a=0;switch(i||(a^=2),e){case 0:a=a>>1|(1&a)<<1,r=(n=c([o,r],2))[0],o=n[1];break;case 1:case 3:a^=1;break;case 4:a^=2}return[r,o].map((function(t,e){switch(t){case"center":return 1;case"nearest":return 0;default:return"start"===t==!(a>>e&1)?2:3}}))}(e,S,O),2),A=P[0],I=P[1],D=function(){switch(I){case 1:return b+k/2;case 2:case 0:return b;case 3:return T}}(),L=function(){switch(A){case 1:return x+C/2;case 3:return E;case 2:case 0:return x}}(),M=[];n.forEach((function(t){var n=t.getBoundingClientRect(),s=n.height,r=n.width,o=n.top,c=n.right,f=n.bottom,m=n.left,v=getComputedStyle(t),y=parseInt(v.borderLeftWidth,10),b=parseInt(v.borderTopWidth,10),w=parseInt(v.borderRightWidth,10),E=parseInt(v.borderBottomWidth,10),T=0,x=0,S="offsetWidth"in t?t.offsetWidth-t.clientWidth-y-w:0,O="offsetHeight"in t?t.offsetHeight-t.clientHeight-b-E:0;if(i===t){switch(I){case 2:T=D;break;case 3:T=D-l;break;case 1:T=D-l/2;break;case 0:T=_(p,p+l,l,b,E,p+D,p+D+k,k)}switch(A){case 2:x=L;break;case 3:x=L-a;break;case 1:x=L-a/2;break;case 0:x=_(d,d+a,a,y,w,d+L,d+L+C,C)}T+=p,x+=d}else{switch(I){case 2:T=D-o-b;break;case 3:T=D-f+E+O;break;case 1:T=D-(o+s/2)+O/2;break;case 0:T=_(o,f,s,b,E+O,D,D+k,k)}switch(A){case 2:x=L-m-y;break;case 3:x=L-c+w+S;break;case 1:x=L-(m+r/2)+S/2;break;case 0:x=_(m,c,r,y,w+S,L,L+C,C)}var P=t.scrollLeft,R=t.scrollTop;T=g(R+T,t.scrollHeight-s+O),x=g(P+x,t.scrollWidth-r+S),D+=R-T,L+=P-x}M.push((function(){return u(t,h(h({},e),{top:T,left:x}))}))})),M.forEach((function(t){return t()}))}},T=function(t){if(!i()){var e=n.elementScrollIntoView;s((function(i){return i.scrollIntoView=function(){var i=arguments[0];return 1===arguments.length&&l(i)?E(this,h(h({},i),t)):e.apply(this,arguments)}}))}},x=function(t){if(!i()){var e=n.elementScroll;s((function(i){return i.scrollTo=function(){if(1===arguments.length){var i=arguments[0];if(!l(i))throw new TypeError("Failed to execute 'scrollTo' on 'Element': parameter 1 ('options') is not an object.");var n=Number(i.left),s=Number(i.top);return u(this,h(h(h({},i),{left:n,top:s}),t))}return e.apply(this,arguments)}}))}},k=function(t){var e,i,s=n.windowScroll.bind(window);if(void 0!==t.left||void 0!==t.top){var l=window.scrollX||window.pageXOffset,h=window.scrollY||window.pageYOffset,c=a(null!==(e=t.left)&&void 0!==e?e:l),u=a(null!==(i=t.top)&&void 0!==i?i:h);if("smooth"!==t.behavior)return s(c,u);var d=function(){window.removeEventListener("wheel",f),window.removeEventListener("touchmove",f)},p={timeStamp:r(),duration:t.duration,startX:l,startY:h,targetX:c,targetY:u,rafId:0,method:s,timingFunc:t.timingFunc,callback:d},f=function(){cancelAnimationFrame(p.rafId),d()};window.addEventListener("wheel",f,{passive:!0,once:!0}),window.addEventListener("touchmove",f,{passive:!0,once:!0}),o(p)}},C=function(t){if(!i()){var e=n.windowScroll;window.scroll=function(){if(1===arguments.length){var i=arguments[0];if(!l(i))throw new TypeError("Failed to execute 'scroll' on 'Window': parameter 1 ('options') is not an object.");return k(h(h({},i),t))}return e.apply(this,arguments)}}},S=function(t){var e=a(t.left||0)+(window.scrollX||window.pageXOffset),i=a(t.top||0)+(window.scrollY||window.pageYOffset);return"smooth"!==t.behavior?n.windowScroll.call(window,e,i):k(h(h({},t),{left:e,top:i}))},O=function(t){i()||(window.scrollBy=function(){if(1===arguments.length){var e=arguments[0];if(!l(e))throw new TypeError("Failed to execute 'scrollBy' on 'Window': parameter 1 ('options') is not an object.");return S(h(h({},e),t))}var i=Number(arguments[0]),n=Number(arguments[1]);return S({left:i,top:n})})},P=function(t){if(!i()){var e=n.windowScroll;window.scrollTo=function(){if(1===arguments.length){var i=arguments[0];if(!l(i))throw new TypeError("Failed to execute 'scrollTo' on 'Window': parameter 1 ('options') is not an object.");var n=Number(i.left),s=Number(i.top);return k(h(h(h({},i),{left:n,top:s}),t))}return e.apply(this,arguments)}}},A=function(t){i()||(C(t),P(t),O(t),d(t),x(t),f(t),T(t))};t.elementScroll=u,t.elementScrollBy=p,t.elementScrollByPolyfill=f,t.elementScrollIntoView=E,t.elementScrollIntoViewPolyfill=T,t.elementScrollPolyfill=d,t.elementScrollTo=u,t.elementScrollToPolyfill=x,t.polyfill=A,t.seamless=A,t.windowScroll=k,t.windowScrollBy=S,t.windowScrollByPolyfill=O,t.windowScrollPolyfill=C,t.windowScrollTo=k,t.windowScrollToPolyfill=P,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],416:[function(t,e,i){"use strict";var n=t(419),s=t(420),r=s;r.v1=n,r.v4=s,e.exports=r},{419:419,420:420}],417:[function(t,e,i){"use strict";for(var n=[],s=0;s<256;++s)n[s]=(s+256).toString(16).substr(1);e.exports=function(t,e){var i=e||0,s=n;return[s[t[i++]],s[t[i++]],s[t[i++]],s[t[i++]],"-",s[t[i++]],s[t[i++]],"-",s[t[i++]],s[t[i++]],"-",s[t[i++]],s[t[i++]],"-",s[t[i++]],s[t[i++]],s[t[i++]],s[t[i++]],s[t[i++]],s[t[i++]]].join("")}},{}],418:[function(t,e,i){"use strict";var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var s=new Uint8Array(16);e.exports=function(){return n(s),s}}else{var r=new Array(16);e.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},{}],419:[function(t,e,i){"use strict";var n,s,r=t(418),o=t(417),a=0,l=0;e.exports=function(t,e,i){var h=e&&i||0,c=e||[],u=(t=t||{}).node||n,d=void 0!==t.clockseq?t.clockseq:s;if(null==u||null==d){var p=r();null==u&&(u=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=s=16383&(p[6]<<8|p[7]))}var f=void 0!==t.msecs?t.msecs:(new Date).getTime(),_=void 0!==t.nsecs?t.nsecs:l+1,m=f-a+(_-l)/1e4;if(m<0&&void 0===t.clockseq&&(d=d+1&16383),(m<0||f>a)&&void 0===t.nsecs&&(_=0),_>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=f,l=_,s=d;var v=(1e4*(268435455&(f+=122192928e5))+_)%4294967296;c[h++]=v>>>24&255,c[h++]=v>>>16&255,c[h++]=v>>>8&255,c[h++]=255&v;var y=f/4294967296*1e4&268435455;c[h++]=y>>>8&255,c[h++]=255&y,c[h++]=y>>>24&15|16,c[h++]=y>>>16&255,c[h++]=d>>>8|128,c[h++]=255&d;for(var g=0;g<6;++g)c[h+g]=u[g];return e||o(c)}},{417:417,418:418}],420:[function(t,e,i){"use strict";var n=t(418),s=t(417);e.exports=function(t,e,i){var r=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;++a)e[r+a]=o[a];return e||s(o)}},{417:417,418:418}],421:[function(t,e,i){"use strict";var n=t(119),s=n(t(328)),r=n(t(392)),o=n(t(438)),a=n(t(433)),l=n(t(422)),h=n(t(423)),c=n(t(426)),u=t(439),d=n(t(427)),p=n(t(440)),f=n(t(428)),_=n(t(434));!async function(){f.default.init(),(0,c.default)(),s.default.initialize();const t=await(0,u.fetchPageData)("NEWS_POST");t&&t.showCarousel&&(document.body.classList.add("page-post-with-carousel"),t.openBtnSelector=".post-image picture, .post-carousel-item picture",(0,p.default)("#post-images-carousel",l.default,t)),function(){const t=document.querySelectorAll(".post-carousel-container");t.length&&t.forEach(t=>{t.classList.add("loaded"),(0,o.default)({elementId:t.id,mixins:[r.default,a.default,_.default]})});!function(t,e,i){const n=document.querySelectorAll("".concat(t," ").concat(e," img")),s=document.querySelectorAll(t);function r(){let t=0;n.forEach(i=>{i.width>=i.height?i.height>t&&(t=i.getBoundingClientRect().height):i.closest(e).classList.add("portrait")}),s.forEach(e=>{e.style.setProperty(i,"".concat(t,"px"))})}r(),window.addEventListener("resize",r)}(".post-big-carousel","picture.picture","--PortraitMaxHeight")}();const e=document.querySelectorAll(".social-icons");e.length&&e.forEach(t=>{new h.default(t)});const i=document.querySelector(".footnotes");i&&(0,d.default)(i)}()},{119:119,328:328,392:392,422:422,423:423,426:426,427:427,428:428,433:433,434:434,438:438,439:439,440:440}],422:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(437)),r=n(t(416));const{ref:o}=window.Vue;var a={components:{SlideshowModal:s.default},name:"PostSlideshowModal",template:'',props:{carousel:{modalTriggerAca:String,cta:Object,slides:Array},openBtnSelector:String},setup(t){const e=o(0),i=o((0,r.default)());return{modalUuid:i,onGalleryInit:function(){const n=document.querySelectorAll(t.openBtnSelector),s=document.querySelectorAll(".post-image picture");n.forEach((n,s)=>{function o(){e.value=s,i.value=(0,r.default)()}function a(t){"Enter"!==t.key&&" "!==t.key||(e.value=s,i.value=(0,r.default)())}n.setAttribute("aria-label",t.carousel.modalTriggerAca),n.setAttribute("data-analytics-title","open image gallery - "+t.carousel.slides[s].image.name),n.setAttribute("data-analytics-click","prop3:open image gallery - "+t.carousel.slides[s].image.name),n.setAttribute("data-analytics-intrapage-link",""),n.setAttribute("role","button"),n.removeEventListener("click",o),n.addEventListener("click",o),n.removeEventListener("keypress",a),n.addEventListener("keypress",a)}),s.forEach(t=>{t.setAttribute("tabindex",0)})},slideToJumpTo:e}}};i.default=a},{119:119,416:416,437:437}],423:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;const n=t(190).Debug,s=t(424);class r{constructor(t){this._init(t)}_init(t){this.iconList=t,this.socialIcons=Array.from(this.iconList.querySelectorAll(".icon-after")),this.socialIcons.filter(t=>s.SOCIAL_MEDIA_REG_EXP.test(t.className)).forEach(t=>{const e=t.className.match(s.SOCIAL_MEDIA_REG_EXP)[1],i={url:t.getAttribute("data-href")||"",title:t.getAttribute("data-title")||"",description:t.getAttribute("data-description")||"",media:t.getAttribute("data-media")||""};if(e===s.DIALOG_TYPES.link?s.linkFactory(t,i.url):t.addEventListener("click",this._onClick.bind(this,e,i)),r.IS_DEBUGGING){const r=n.create(s.getDialog(e),i);r&&r.dialogUrl&&t.setAttribute("data-href",r.dialogUrl)}},this)}_onClick(t,e,i){i.preventDefault(),r.IS_DEBUGGING?console.log(n.create(s.getDialog(t),e)):s.createDialog(t,e)}}i.default=r,r.IS_DEBUGGING=!window.location.hostname.match("www.apple.com")},{190:190,424:424}],424:[function(t,e,i){"use strict";var n=t(119)(t(425));const s=t(190).Dialog,r=t(44),o={sharefacebook:s.FACEBOOK_SHARE,twitter:s.TWITTER_TWEET,email:s.EMAIL_SHARE,link:"link"};function a(t){return o[t]}e.exports={SOCIAL_MEDIA_REG_EXP:/\bsocial-(?!downloadcircle)(\w+)\b/,linkFactory:function(t,e){t.addEventListener("click",()=>function(t,e){const i=t.getAttribute("data-tooltip-text"),s=t.parentElement;new n.default(s,i).add(),r.copy(e)}(t,e))},createDialog:function(t,e){return s.create(a(t),e)},getDialog:a,DIALOG_TYPES:o}},{119:119,190:190,425:425,44:44}],425:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(112));o.LIFE_TIME=2e3,o.ANIMATION_DELAY=1200,o.TOOLTIP_HIDDEN_CLASSNAME="tooltip__hidden";var r=o.prototype;function o(t,e){this.text=e,this.tooltipSibling="string"==typeof t?document.querySelector(t):t}r._getHTML=function(t){return'

      '+t+"

      "},r._createToolTip=function(t){var e=document.createElement("div");return e.innerHTML=this._getHTML(t),e.firstElementChild},r._render=function(t){this.tooltipSibling.parentElement.appendChild(t)},r._destroyToolTip=function(t){this.tooltipSibling.parentElement.removeChild(t)},r._fadeOut=function(t){t.classList.add(o.TOOLTIP_HIDDEN_CLASSNAME)},r.add=function(){var t=this._createToolTip(this.text);this._render(t),(0,s.default)(this._fadeOut.bind(this,t),o.ANIMATION_DELAY)(),(0,s.default)(this._destroyToolTip.bind(this,t),o.LIFE_TIME)()};var a=o;i.default=a},{112:112,119:119}],426:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){const t=document.querySelectorAll("[data-copy-root]");t&&t.forEach(t=>{const e=t.querySelector("[data-copy-button]"),i=t.querySelector("[data-copy-content]");s.TabManager.getFocusableElements(i).forEach(t=>{(0,s.disableTabbable)(t)}),s.EventProxy.addEventListener(e,"click",l)})};var s=t(19),r=n(t(44)),o=n(t(86)),a=n(t(425));function l(t){t.preventDefault();const e=t.currentTarget,i=(0,o.default)(e,"[data-copy-root]").querySelector("[data-copy-content]");new a.default(i,e.dataset.tooltipText).add(),r.default.copy(i)}},{119:119,19:19,425:425,44:44,86:86}],427:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=t(19),r=n(t(117)),o=n(t(441));const a=document.querySelectorAll(".footnotes sup.footnote"),l=document.querySelectorAll(".body-copy");i.default=t=>{(0,r.default)(),a.forEach(t=>{const e=t.innerText.trim().replace(/[#-.]|[[-^]|[?|{}]/g,"\\$&")||"";l.forEach(t=>{Array.from(t.getElementsByTagName("sup")).forEach(t=>{const i=t.innerText.trim().replace(/[#-.]|[[-^]|[?|{}]/g,"\\$&"),n="#footnote-".concat(i),r="sup-".concat(i),a="".concat(window.atvp.footnoteAria," ").concat(i),l=RegExp(/^[0-9]*$/gm);if(!document.getElementById("sup-".concat(i))&&l.test(i)&&i===e){const e=document.createElement("a");e.innerHTML=i,(0,s.setAttributeForElements)(e,"href",n),(0,s.setAttributeForElements)(e,"id",r),(0,s.setAttributeForElements)(e,"aria-label",a),s.EventProxy.addEventListener(e,"click",(function(t){t.preventDefault();const i=document.getElementById(n.substring(1));(0,o.default)(e),(0,s.enableTabbable)(i),setTimeout(()=>{i.focus()},300)})),t.innerHTML="",(0,s.setAttributeForElements)(t,"role","presentation"),t.appendChild(e)}})})}),(t=>{t.querySelectorAll(".social-uparrow").forEach(t=>{(0,s.disableTabbable)(t.parentNode),s.EventProxy.addEventListener(t,"click",(function(e){e.preventDefault(),(0,o.default)(t),(0,s.disableTabbable)(t.parentNode),setTimeout(()=>{document.getElementById(t.hash.substring(1)).focus()},350)}))})})(t)}},{117:117,119:119,19:19,441:441}],428:[function(t,e,i){"use strict";const n=t(228),s=t("@marcom/ac-analytics").observer.Video;window.videoGalleryPlayer={items:[]},e.exports={init:()=>{if(s){const t=Array.from(document.querySelectorAll("video"));if(t.length){t.forEach(t=>{let e="video-".concat((new Date).getTime()+10*Math.random());t.setAttribute("id",e)});const e=n();Object.keys(e).forEach((t,i)=>function(t,e,i){const n=t[e];n.index=i,window.videoGalleryPlayer.items.push(n),n.on("playing",(function(){window.videoGalleryPlayer.items.some(t=>t.isPictureInPicture())&&n.setPictureInPicture(!0)})),n.on("play",(function(){window.videoGalleryPlayer.items.forEach(t=>{t.index!==i&&t.pause()})})),n.options.sources&&n.options.sources.length&&n.el.setAttribute("data-analytics-id",n.options.sources[0].replace(/^.*[\\/]/,"").replace(/\.[^.]*$/,"")),new s(n)}(e,t,i))}}}}},{228:228,undefined:void 0}],429:[function(t,e,i){"use strict";const{elementScrollIntoView:n}=t(415),s="dotnav-item--small",r="dotnav-item--smaller",o="dotnav-item--hidden";e.exports={beforeCreate(){this.currentIndex=this.model.initialItemIndex},created(){this.overflowDotNav={enabled:!1}},itemsCreated(){this.tabNav.items.forEach((t,e)=>{t.anchorEl.classList.remove("dotnav-item--smaller","current"),e===this.model.currentIndex&&t.anchorEl.classList.add("current")});const t=this._items.length;this.maxShown=this.model.MaxVisibleDots?this.model.MaxVisibleDots:9,t>this.maxShown&&(this.overflowDotNav.enabled=!0,this.overflowDotNav.container=this.el.querySelector(this.model.TabNav.overflowContainerSelector),this.overflowDotNav.container.classList.add("overflow-dotnav"),this.overflowDotNav.container&&(this.overflowDotNav.scrollHandler=this.onDotNavScroll.bind(this),this.overflowDotNav.container.addEventListener("scroll",this.overflowDotNav.scrollHandler,{passive:!0})),this.overflowDotNav.count=t,this.overflowDotNav.contentSize=22*t,this.overflowDotNav.io=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(e.unobserve(t.target),this.onDotNavScrollFinished())})},{root:this.overflowDotNav.container,threshold:1}))},mounted(){this.overflowDotNav.enabled&&(this.overflowDotNav.container.scrollLeft=0,this.onDotNavScroll())},onItemChangeOccurred(t){if(!this.overflowDotNav.enabled)return;const{prev:e=0}=this.overflowDotNav,i=this.wrappedIndex(t.current.index);e!==i&&(this.overflowDotNav.isScrolling?this.overflowDotNav.queuedTargetIndex=i:this.doScroll(i))},onItemChangeCompleted(){this.overflowDotNav.prevIndex=this.currentIndex,this.selections.occurred.previous&&(this.overflowDotNav.selectionsPrev=this.selections.occurred.previous.index)},onDotNavScrollFinished(){clearTimeout(this.overflowDotNav._failsafe);const t=this.overflowDotNav.queuedTargetIndex;this.overflowDotNav.isScrolling=!1,void 0!==t&&(this.overflowDotNav.queuedTargetIndex=void 0,this.doScroll(t)),this.overflowDotNav.prevIndex=this.currentIndex},doScroll(t){const e=this.swipeDrag&&this.swipeDrag.isDragging,i=this.model.PrefersReducedMotion||e,s=this.calculateScrollingTarget(t);this.overflowDotNav.prev=t,this.overflowDotNav.isScrolling=!0;const r=this.tabNav.items[s].anchorEl.parentNode;n(r,{inline:"nearest",block:"nearest",behavior:i?"immediate":"smooth"}),i?this.overflowDotNav.ReduceMotion=setTimeout(()=>this.onDotNavScrollFinished(),1e3):(this.overflowDotNav.observeTargetNode=setTimeout(()=>{this.overflowDotNav.io.observe(this.tabNav.items[s].anchorEl.parentNode)},0),this.overflowDotNav._failsafe=setTimeout(()=>{this.overflowDotNav.io.unobserve(r),this.onDotNavScrollFinished()},1e3))},getVisibleBounds(){const t=(this.model.IsRTL?-1:1)*this.el.querySelector(this.model.TabNav.overflowContainerSelector).scrollLeft,e=Math.floor(t/22);return[e,e+this.maxShown-1]},calculateScrollingTarget(t){let e=void 0!==this.model.previousIndex,i=null!==this.selections.occurred.previous,n=0;e&&!i?n=this.model.previousIndex||0:(e&&i||!e&&i)&&(n=this.selections.occurred.previous.index);const s=this.overflowDotNav.count-1;if(n===s&&0===t||0===n&&t===s)return t;{const e=t>n?1:-1;return Math.max(0,Math.min(s,t+2*e))}},onDotNavScroll(){this.overflowDotNav.drawQueued||(this.overflowDotNav.drawQueued=!0,requestAnimationFrame(()=>{const[t,e]=this.getVisibleBounds(),i=t>0,n=e{const l=a.anchorEl.classList,h=a.index;[[s,h===t+1&&i||h===e-1&&n],[r,h<=t&&i||h>=e&&n],[o,!(h>=t&&h<=e)]].forEach(([t,e])=>l[e?"add":"remove"](t))}),this.overflowDotNav.drawQueued=!1}))},destroy(){var t,e;clearTimeout(this.overflowDotNav.ReduceMotion),clearTimeout(this.overflowDotNav.observeTargetNode),clearTimeout(this.overflowDotNav._failsafe),null===(t=this.overflowDotNav.io)||void 0===t||t.disconnect(),null===(e=this.overflowDotNav.container)||void 0===e||e.removeEventListener("scroll",this.overflowDotNav.scrollHandler),this.overflowDotNav=void 0}}},{415:415}],430:[function(t,e,i){"use strict";const n=t(23);e.exports={mounted(){this._jumpToMounted=!0,this._jumpToSavedIndex&&this.jumpTo(this._jumpToSavedIndex)},jumpTo(t){const e=this.wrappedIndex(t);if(this.currentIndex===e)return;if(!this._jumpToMounted)return void(this._jumpToSavedIndex=e);this.currentIndex=e,this._items.forEach(t=>{const e=t===this.currentItem;t.zIndex=e?2:0,t.opacity=e?1:0});const i=this._items[e];this.trigger(this.model.Events.ITEM_CHANGE_INITIATED,{gallery:this,next:i}),this.trigger(this.model.Events.ITEM_CHANGE_OCCURRED,{gallery:this,current:i}),this.analytics.lastTrackedItem=i,e&&n(this._items[0].el),this.trigger(this.model.Events.ITEM_CHANGE_COMPLETED,{gallery:this,current:i})},destroy(){this._jumpToSavedIndex=null}}},{23:23}],431:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;const n=["INPUT","SELECT","TEXTAREA"],s=new Map;let r,o,a={};var l={created(){this.handleIntersect=this.handleIntersect.bind(this),this.hasInnerFocus=this.hasInnerFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectActiveCarousel=this.selectActiveCarousel.bind(this),this.observer=new IntersectionObserver(this.handleIntersect),"featured-carousel"===this.el.id?this.observer.observe(this.el.querySelector("#featured")):this.observer.observe(this.el),this.isInView=!1,o=document.querySelector("body").classList.contains("page-show")},hasInnerFocus(t){const e=document.activeElement,i=t=>t!==document&&(t===this.el||t.parentNode===this.el||i(t.parentNode));return i(e.parentNode)},destroy(){window.removeEventListener("keydown",this.onKeyDown),this.observer.disconnect(),this.observer=null,this.isInView=!1},handleIntersect(t,e){t.forEach(t=>{this.isInView=t.isIntersecting,t.isIntersecting?(s.set(t.target.id,t.target),window.addEventListener("keydown",this.onKeyDown)):(s.delete(t.target.id),window.removeEventListener("keydown",this.onKeyDown))})},selectActiveCarousel(){const t=window.innerHeight/2;let e=t;s.forEach(i=>{const n=Math.abs(t-i.getBoundingClientRect().top),s=Math.abs(t-i.getBoundingClientRect().bottom);e=n1){const t=this.el.id,e=document.activeElement.closest("#".concat(t));if(e&&e.id===t?a={id:t}:null===e&&null===document.activeElement.closest("#".concat(a.id))&&this.selectActiveCarousel(),t!==a.id)return;if(o&&!t.includes("modal")&&!t.includes("id-"))return}const e=this.model.IsRTL?-1:1,i="ArrowLeft"===t.code?-1:1;this.lastInteractionEvent=t;const n=this.currentIndex+i*e;this.animateToItem(n)},inputHasFocus:()=>-1!==n.indexOf(document.activeElement.nodeName)};i.default=l},{}],432:[function(t,e,i){"use strict";const n=t(23),s=t(29);e.exports={itemsCreated(t){this._items.forEach((t,e)=>{e===this.wrappedIndex(this.currentIndex)?s(t.el):n(t.el)})},onItemChangeCompleted(t){const{previous:e,current:i}=this.selections.completed;e&&e!==i&&n(e.el),s(i.el),i.el.removeAttribute("aria-hidden")}}},{23:23,29:29}],433:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=t(156),s={mounted(){if(!window.atvp.isTouch)return;const t=new n.PointerTracker(this.el);t.on(n.PointerTracker.SWIPE_RIGHT,()=>{this.paddleNav.previousEl.click()}),t.on(n.PointerTracker.SWIPE_LEFT,()=>{this.paddleNav.nextEl.click()})}};i.default=s},{156:156}],434:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=t(19),s={created(){this.anchorEls=this.model.options.el.querySelectorAll("a[download]")},mounted(){this.anchorEls.length>0&&this.anchorEls.forEach((t,e)=>{0===e?t.setAttribute("tabindex",0):t.setAttribute("tabindex",-1)}),this.model.options.el.querySelectorAll("picture")[0].setAttribute("tabindex",0)},onItemChangeInitiated(){let t=this.model.options.el.querySelectorAll(".current a[download]");t.length>0&&t.forEach(t=>{(0,n.setAttributeForElements)(t,"tabindex",-1)});let e=this.model.options.el.querySelectorAll("picture");e.length>0&&e.forEach(t=>{(0,n.setAttributeForElements)(t,"tabindex",-1)})},onItemChangeCompleted(){if(this.anchorEls.length>0){this.anchorEls.forEach(t=>{t.setAttribute("tabindex",-1)});let t=this.model.options.el.querySelector(".current a[download]");t&&(0,n.setAttributeForElements)(t,"tabindex",0)}this.model.options.el.querySelector(".current picture").setAttribute("tabindex",0)}};i.default=s},{19:19}],435:[function(t,e,i){"use strict";const n=t(132).default,{onMounted:s,ref:r,watch:o}=window.Vue,{FullBleedBundle:a}=t(144),l=n.withMixins(...a);e.exports={name:"FullViewportModal",template:'\n\t\t
      \n\t\t\t\n\t\t
      \n\t',emits:["didCreateModal"],props:{className:String,openBtnSelector:String,openBtnEls:Array},setup(t,{emit:e}){const i=r(null),n=r(null);function a(t){"Enter"!==t.key&&" "!==t.key||n.value.open()}function h(){n.value.open()}function c(t=[],e=[]){[...e,...t].forEach(t=>{t.removeEventListener("click",h),t.removeEventListener("keypress",a)}),t.forEach(t=>{t.addEventListener("click",h),t.addEventListener("keypress",a)})}return o(()=>t.openBtnEls,(t,e)=>{c(t,e)},{immediate:!0}),s(()=>{n.value=new l(i.value),e("didCreateModal",n),t.openBtnEls&&t.openBtnEls.length||c(document.querySelectorAll(t.openBtnSelector))}),{containerRef:i}}}},{132:132,144:144}],436:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=n(t(120)),r=t(442);const o=window.atvp.viewportEmitter,{onMounted:a,ref:l,watch:h}=window.Vue;var c={name:"Picture",template:'\n\t\t\n\t',props:{custom_sizes:{type:Object,default:null},decorative:{Boolean:Boolean,default:!1},dirpath:{String:String,default:""},externalPaths:{type:[Boolean,Object],default:!1},height:{type:[Number,String],default:null},imgClass:{String:String,default:null},lazy:{Boolean:Boolean,default:!1},metadata:{Object:Object,default:()=>({custom_sizes:null,dirpath:"",externalPaths:!1,height:null,lazy:!1,name:"",separator:"",type:"jpg",value:null,width:null})},name:{String:String,default:""},pictureClass:{String:String,default:null},separator:{String:String,default:""},type:{String:String,default:"jpg"},value:{String:String,default:null},width:{type:[Number,String],default:null}},setup(t){const e=l(null),i=l(null),n=document.querySelector("html").classList.contains("safari"),c=l(null),u=l(null),d=l(null),p=l(null);return a(()=>{o.on("change:viewport",()=>{if(n){if(null===u.value)return;u.value.querySelectorAll("source").forEach(t=>{const e=t.getAttribute("srcset");null!==e&&t.setAttribute("srcset",e+"")})}})}),h(()=>JSON.stringify(t),()=>{const n=(0,r.getPictureData)(t),{custom_sizes:o,externalPaths:a,height:l,lazy:h,value:u,width:f}=n,_=(0,s.default)(n,["custom_sizes","externalPaths","height","lazy","value","width"]);e.value=l,c.value=h,d.value=u,p.value=f,i.value=o?(0,r.buildBasicImages)(_,o):a?(0,r.buildExternalImages)(a,(0,r.getPictureData)(t)):(0,r.buildBasicImages)(_)},{immediate:!0}),{breakpoints:{small:o.BREAKPOINTS[0],medium:o.BREAKPOINTS[1],large:o.BREAKPOINTS[2],xlarge:o.BREAKPOINTS[3]},height:e,images:i,lazy:c,pictureRef:u,value:d,width:p}}};i.default=c},{119:119,120:120,442:442}],437:[function(t,e,i){"use strict";var n=t(119),s=n(t(435)),r=n(t(438)),o=n(t(433)),a=n(t(432)),l=n(t(430)),h=n(t(429)),c=n(t(392)),u=n(t(436)),d=n(t(416)),p=n(t(112));const{ref:f,watch:_}=window.Vue;e.exports={components:{FullViewportModal:s.default,Picture:u.default},name:"SlideshowModal",template:'\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t',props:{onGalleryInit:Function,cta:Object,eyebrow:String,slides:Array,slideToJumpTo:Number,title:String,openBtnEls:Array,openBtnSelector:String,modalUuid:{type:String,default:""}},setup(t){const e=f(null),i=f("id-".concat((0,d.default)())),n=(0,p.default)(()=>{let n=void 0;e.value&&(n=e.value.overflowDotNav.selectionsPrev||e.value.overflowDotNav.prevIndex,e.value.destroy()),e.value=(0,r.default)({elementId:i.value,mixins:[c.default,o.default,a.default,l.default,h.default],overflowContainerSelector:".dotnav",initialItemIndex:t.slideToJumpTo,previousIndex:n}),t.onGalleryInit&&t.onGalleryInit(e.value)},0);return _(()=>JSON.stringify(t.slides)+t.slideToJumpTo+t.modalUuid,()=>{n(),e.value&&e.value.jumpTo(t.slideToJumpTo||0)}),{containerId:i,getSlideImageName(e){const i=t.slides[e];return i.image.metadata?i.image.metadata.name:i.image.name},onDidCreateModal(t){t.value.elements.container.classList.add("slideshow-modal__modal-container"),n()}}}}},{112:112,119:119,392:392,416:416,429:429,430:430,432:432,433:433,435:435,436:436,438:438}],438:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=function({mixins:t=[],elementId:e,autoAdvanceDelay:i=3e3,showAnalytics:n=!0,overflowContainerSelector:u,initialItemIndex:d,previousIndex:p,ariaVisibilityAll:f}){const _=document.querySelector("#".concat(e));let m=[];!0===f&&m.push({excluding:[h.default]});const v={beforeCreate(){this.model.autoAdvanceDelay=i,this.model.PrefersReducedMotion=document.documentElement.classList.contains("reduced-motion"),this.model.IsRTL="rtl"===document.documentElement.getAttribute("dir"),this.model.IsTouch="ontouchstart"in document.documentElement,this.model.TabNav.overflowContainerSelector=u||void 0,this.model.initialItemIndex=d||0,this.model.previousIndex=p||void 0}};return new(s.default.withMixins(v,n?l.default:[l.default],c.default,r.default,a.default,o.default,...t,...m))({el:_})};var s=n(t(386)),r=n(t(397)),o=n(t(400)),a=n(t(398)),l=n(t(389)),h=n(t(399)),c=n(t(431))},{119:119,386:386,389:389,397:397,398:398,399:399,400:400,431:431}],439:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.getEndpoint=f,i.fetchPageData=async function(t,e){Object.keys(p).includes(t)||s.default.error("Invalid `pageType` passed to `fetchPageData`");const i=f(t);try{const t=await fetch(i);return await t.json()}catch(t){if(s.default.error(t),e)return e;throw t}};var s=n(t(49)),r=n(t(443));const o="IC24",a="CMS",l="STAGING_PROD";function h(t=0){let e=(0,r.default)(window.location.pathname);e=e.replace(/\.[^/.]+$/,"");const i=e.split("/");return i[i.length-1-t]}const c=window.location.pathname.startsWith("/northstar/main/")?o:window.location.hostname.includes("voyagercms")?a:l,u=function(){if(c!==l)return"";return window.location.pathname.split("/tv-pr")[0]+"/tv-pr"}(),d={ABOUT:{[l]:"".concat(u,"/")},COLLECTION:{[l]:"".concat(u,"/collections/")},COLLECTIONS:{[l]:"".concat(u,"/")},COLLECTION_NEWS:{[l]:"".concat(u,"/collections/").concat(h(1),"/")},COLLECTION_ORIGINALS:{[l]:"".concat(u,"/collections/").concat(h(1),"/")},FILM:{[l]:"".concat(u,"/originals/")},FILM_IMAGES:{[l]:"".concat(u,"/originals/")},HOME:{[l]:"".concat(u)},NEWS_POST:{[l]:"".concat(u,"/news/").concat(h(2),"/").concat(h(1),"/")},ORIGINALS:{[l]:"".concat(u,"/")},PODCAST:{[l]:"".concat(u,"/originals/")},PODCAST_EPISODES:{[l]:"".concat(u,"/originals/")},SEARCH:{[l]:"".concat(u,"/")},SITE:{[l]:"".concat(u,"/")},SHOW:{[l]:"".concat(u,"/originals/")},SHOW_EPISODES_IMAGES:{[l]:"".concat(u,"/originals/")}},p={ABOUT:{[o]:"about.json",[a]:"about.about.json",[l]:"about.about.json"},COLLECTION:{[o]:"collections/collectionname.json",[a]:"".concat(h(),".json"),[l]:"".concat(h(),".json")},COLLECTIONS:{[o]:"collections.collections.json",[a]:"collections.collections.json",[l]:"collections.collections.json"},COLLECTION_NEWS:{[o]:"collections/collectionname/news.json",[a]:"".concat(h(),".json"),[l]:"news.json"},COLLECTION_ORIGINALS:{[o]:"collections/collectionname/originals.json",[a]:"".concat(h(),".json"),[l]:"originals.json"},FILM:{[o]:"film.json",[a]:"index.landing.json",[l]:"".concat(h(),".landing.json")},FILM_IMAGES:{[o]:"film.images.json",[a]:"index.images.json",[l]:"".concat(h(1),".images.json")},HOME:{[o]:"home.json",[a]:"index.home-page.json",[l]:".home-page.json"},NEWS_POST:{[o]:"post.json",[a]:"".concat(h(),".post-images.json"),[l]:"".concat(h(),".post-images.json")},ORIGINALS:{[o]:"originals.json",[a]:"originals.originals.json",[l]:"originals.originals.json"},PODCAST:{[o]:"podcast.json",[a]:"index.landing.json",[l]:"".concat(h(),".landing.json")},PODCAST_EPISODES:{[o]:"podcast.episodes.json",[a]:"index.episodes.json",[l]:"".concat(h(1),".episodes.json")},SEARCH:{[o]:"search.json",[a]:"search.json",[l]:"search.json"},SITE:{[o]:"apple-tvplus-press.json",[a]:"apple-tvplus-press.json",[l]:"apple-tvplus-press.json"},SHOW:{[o]:"show.json",[a]:"index.landing.json",[l]:"".concat(h(),".landing.json")},SHOW_EPISODES_IMAGES:{[o]:"show.episodes-images.json",[a]:"index.images.json",[l]:"".concat(h(1),".images.json")}};function f(t){Object.keys(p).includes(t)||s.default.error("Invalid `pageType` passed to `getEndpoint`");let e=d[t][c];return c===o?e="/northstar/main/":c===a&&(e="".concat(function(){let t=window.location.pathname;return t=(0,r.default)(t),t.endsWith(".html")&&(t=t.replace(/[^/]*$/,""),t=(0,r.default)(t)),t}(),"/")),e+p[t][c]}},{119:119,443:443,49:49}],440:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i={},n={},s){const{callback:o}=a(a({},h),n),c=l(e,i);if((0,r.default)(c),o(c),s){const t=s();c.use(t)}c.mount(t)};var s=n(t(118)),r=n(t(444));function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e{}}},{118:118,119:119,444:444}],441:[function(t,e,i){"use strict";const n=t(115);e.exports=t=>{const e=document.getElementById("localnav").offsetHeight;n.to(window,.35,{scrollTo:{y:t.hash,offsetY:e,autoKill:!1}})}},{115:115}],442:[function(t,e,i){"use strict";var n=t(119);Object.defineProperty(i,"__esModule",{value:!0}),i.getPictureData=i.buildBasicImages=i.buildExternalImages=void 0;var s=n(t(120)),r=n(t(118));function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e{const o="xlarge"===n?"large":n;return"".concat(t).concat(e).concat(i).concat(o).concat(s,".").concat(r||"jpg")},c=(t,e,i)=>{const n=h(a(a({},t),{},{size:e}));return{base:n,breakpoint:i,src:"".concat(n," 1x, ").concat(h(a(a({},t),{},{size:e,suffix:"_2x"}))," 2x")}};i.buildExternalImages=t=>{let e={};return Object.entries(t).forEach(([t,i])=>{l.forEach(n=>{if(t.includes(n)){const s=t.split(n)[1];e[n]=s?a(a({},e[n]),{},{src:"".concat(e[n].src," 1x, ").concat(i," 2x")}):{base:i,breakpoint:n,src:i}}})}),e};i.buildBasicImages=(t,e)=>{const i={};return e?Object.entries(e).forEach(([e,n])=>i[e]=c(t,n,e)):l.forEach(e=>i[e]=c(t,e,e)),i};i.getPictureData=t=>{const{metadata:e}=t,i=(0,s.default)(t,["metadata"]);return Object.keys(e).forEach(t=>{i[t]=i[t]||e[t]}),i}},{118:118,119:119,120:120}],443:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=t=>t.replace(/\/$/,"")},{}],444:[function(t,e,i){"use strict";const n=t(49).warn,s=t(49).error,r=t(49).log;e.exports=t=>{t.config.performance=!0,t.config.warnHandler=(t,e,i)=>{n(t),r(i),r(e)},t.config.errorHandler=(t,e,i)=>{s(t),r(i),r(e)}}},{49:49}]},{},[421]);