1/*! For license information please see vendors.js.LICENSE.txt */ 2(self.webpackChunklegacy=self.webpackChunklegacy||[]).push([[216],{8252:function(t,e,i){"use strict";i.d(e,{KR:function(){return we}});const n=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),r=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,i=window.getComputedStyle(t).overflowY,n=-1!==i.indexOf("hidden"),r=-1!==i.indexOf("visible");return e&&!n&&!r},s=function(t,e){return!(!t||t===document.body||e&&t===e)&&(r(t)?t:s(t.parentElement,e))},a=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var i=document.createElement("div");e.firstChild;)i.appendChild(e.firstChild);return i}return e.firstChild},o=t=>`${t||""}`.split(" ").filter((t=>!!t)),l=(t,e,i)=>{t&&o(e).forEach((e=>{t.classList.toggle(e,i||!1)}))};class h{constructor(t){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const c={passive:!1};class p{constructor(t,{start:e=(()=>!0),move:i=(()=>{}),end:n=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=e,this.moveCallback=i,this.endCallback=n;for(const t of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[t]=this[t].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,c),this.element.addEventListener("touchstart",this.onTouchStart,c),this.element.addEventListener("touchmove",this.onMove,c),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||0!==t.button)return;const e=new h(t);this.currentPointers.some((t=>t.id===e.id))||this.triggerPointerStart(e,t)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new h(e),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),i="changedTouches"in t?Array.from(t.changedTouches||[]).map((t=>new h(t))):[new h(t)],n=[];for(const t of i){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(n.push(t),this.currentPointers[e]=t)}n.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new h(t)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new h(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const i=this.currentPointers.findIndex((t=>t.id===e.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,c),this.element.removeEventListener("touchstart",this.onTouchStart,c),this.element.removeEventListener("touchmove",this.onMove,c),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function u(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function f(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const d=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),m=(t,...e)=>{const i=e.length;for(let n=0;n<i;n++){const i=e[n]||{};
2Object.entries(i).forEach((([e,i])=>{const n=Array.isArray(i)?[]:{};t[e]||Object.assign(t,{[e]:n}),d(i)?Object.assign(t[e],m(n,i)):Array.isArray(i)?Object.assign(t,{[e]:[...i]}):Object.assign(t,{[e]:i})}))}return t},g=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class y{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?m({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let i=g(t,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...e)),i}optionFor(t,e,i,...n){let r=g(e,t);var s;"string"!=typeof(s=r)||isNaN(s)||isNaN(parseFloat(s))||(r=parseFloat(r)),"true"===r&&(r=!0),"false"===r&&(r=!1),r&&"function"==typeof r&&(r=r.call(this,this,t,...n));let a=g(e,this.options);return a&&"function"==typeof a?r=a.call(this,this,t,...n,r):void 0===r&&(r=a),void 0===r?i:r}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,i)=>{let n="";return i?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${i}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let i=0;i<e.length;i++)t=t.split(e[i][0]).join(e[i][1]);return t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),this.events||(this.events=new Map),i.forEac
2h((t=>{let i=this.events.get(t);i||(this.events.set(t,[]),i=[]),i.includes(e)||i.push(e),this.events.set(t,i)}))}off(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),i.forEach((t=>{const i=this.events.get(t);if(Array.isArray(i)){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(y,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(y,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class v extends y{constructor(t={}){super(t),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[i,n]of Object.entries(t)){const t=this.option(i),r=this.plugins[i];r||!1===t?r&&!1===t&&(r.detach(),delete this.plugins[i]):e.set(i,new n(this,t||{}))}for(const[t,i]of e)this.plugins[t]=i,i.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit("detachPlugins"),this}}var b;!function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"}(b||(b={}));const x=["a","b","c","d","e","f"],E={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},_={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:E},S='<circle cx="25" cy="25" r="20"></circle>',P='<div class="f-spinner"><svg viewBox="0 0 50 50">'+S+S+"</svg></div>",C=t=>t&&null!==t&&t instanceof Element&&"nodeType"in t,w=(t,e)=>{t&&o(e).forEach((e=>{t.classList.remove(e)}))},T=(t,e)=>{t&&o(e).forEach((e=>{t.classList.add(e)}))},M={a:1,b:0,c:0,d:1,e:0,f:0},A=1e4,k="mousemove",D="drag",I="content",F="auto";let L=null,O=null;class R extends v{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===O&&(O=window.matchMedia("(hover: none)").matches),O}get isMobile(){return null===L&&(L=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),L}get panMode(){return this.options.panMode!==k||this.isTouchDevice?D:k}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===F?this.isTouchDevice:t}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,i=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of x){const e="e"==t||"f"===t?1e-4:1e-5;
2if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},i={}){var n;if(super(e),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:b.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},M)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},M)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error("Container Element Not Found");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},R.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const r=this.content;if(r.addEventListener("load",this.onLoad),r.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){t.classList.add(this.cn("isLoading"));const e=a(P);!t.contains(r)||r.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(n=r.parentElement)||void 0===n?void 0:n.insertBefore(e,r))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:t}=this,e=this.cn(I);let i=this.option(I)||t.querySelector(`.${e}`);if(i||(i=t.querySelector("img,picture")||t.firstElementChild,i&&T(i,e)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:t,container:e,state:i}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&e.classList.remove(this.cn("isLoading")),this.emit
2("afterLoad"),i===b.Init?this.enable():this.updateMetrics()}onError(){this.state!==b.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=b.Error,this.emit("error"))}getNextScale(t){const{fullScale:e,targetScale:i,coverScale:n,maxScale:r,minScale:s}=this;let a=s;switch(t){case"toggleMax":a=i-s<.5*(r-s)?r:s;break;case"toggleCover":a=i-s<.5*(n-s)?n:s;break;case"toggleZoom":a=i-s<.5*(e-s)?e:s;break;case"iterateZoom":let t=[1,e,r].sort(((t,e)=>t-e)),o=t.findIndex((t=>t>i+1e-5));a=t[o]||1}return a}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{e()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new p(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(k,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(k,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,e=this.option("maxVelocity");for(const i of x)t?(this.velocity[i]*=1-t,e&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],e),-1*e)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const t of x)"e"===t&&this.isBouncingX||"f"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:i}=this,n=i.e+t,r=i.f+e,s=this.getBounds(),{x:a,y:o}=s,l=a.min,h=a.max,c=o.min,p=o.max;let u=0,f=0;return l!==1/0&&n<l?u=l-n:h!==1/0&&n>h&&(u=h-n),c!==1/0&&r<c?f=c-r:p!==1/0&&r>p&&(f=p-r),Math.abs(u)<1e-4&&(u=0),Math.abs(f)<1e-4&&(f=0),Object.assign(Object.assign({},s),{xDiff:u,yDiff:f,inBounds:!u&&!f})}clampTargetBounds(){const{target:t}=this,{x:e,y:i}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),i.min!==1/0&&(t.f=Math.max(t.f,i.min)),i.max!==1/0&&(t.f=Math.min(t.f,i.max))}calculateContentDim(t=this.current){const{content:e,contentRect:i}=this,{fitWidth:n,fitHeight:r,fullWidth:s,fullHeight:a}=i;let o=s,l=a;if(this.option("zoom")||0!==this.angle){const i=!(e instanceof HTMLImageElement||"none"!==window.getComputedStyle(e).maxWidth&&"none"!==window.getComputedStyle(e).maxHeight),h=i?s:n,c=i?a:r,p=this.getMatrix(t),u=new DOMPoint(0,0).matrixTransform(p),f=new DOMPoint(0+h,0).matrixTransform(p),d=new DOMPoint(0+h,0+c).matrixTransform(p),m=new DOMPoint(0,0+c).matrixTransform(p),g=Math.abs(d.x-u.x),y=Math.abs(d.y-u.y),v=Math.abs(m.x-f.x),b=Math.abs(m.y-f.y);o=Math.max(g,v),l=Math.max(y,b)}return{contentWidth:o,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===k||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:e,y:i,xDiff:n,yDiff:r}=this.checkBounds(),s=this.option("maxVelocity");let a=this.velocity.e,o=this.velocity.f;0!==n?(this.isBouncingX=!0,n*a<=0?a+=.14*n:(a=.14*n,e.min!==1/0&&(this.target.e=Math.max(t.e,e.min)),e.max!==1/0&&(this.target.e=Math.min(t.e,e.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingX=!1,0!==r?(this.isBouncingY=!0,r*o<=0?o+=.14*r:(o=.14*r,i.min!==1/0&&(this.target.f=Math.max(t.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(t.f,i.max))),s&&(o=Math.max(Math.min(o,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a
2),this.isBouncingY&&(this.velocity.f=o)}enable(){const{content:t}=this,e=new DOMMatrixReadOnly(window.getComputedStyle(t).transform);for(const t of x)this.current[t]=this.target[t]=e[t];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=b.Ready,this.emit("ready")}onClick(t){var e;"click"===t.type&&0===t.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(e=this.pointerTracker)||void 0===e||e.clear(),this.trackingPoints=[],this.startDecelAnim());const i=t.target;if(!i||t.defaultPrevented)return;if(i.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const t=window.getSelection();return t&&"Range"===t.type})()&&!i.closest("button"))return;const n=i.closest("[data-panzoom-action]"),r=i.closest("[data-panzoom-change]"),s=n||r,a=s&&C(s)?s.dataset:null;if(a){const e=a.panzoomChange,i=a.panzoomAction;if((e||i)&&t.preventDefault(),e){let i={};try{i=JSON.parse(e)}catch(t){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(i)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(i.closest("[data-fancybox]"))return;const o=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(o.x-l.x)>2||Math.abs(o.y-l.y)>2))return;this.dragStart.time=0;const h=e=>{this.option("zoom",t)&&e&&"string"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&"function"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},c=this.option("click",t),p=this.option("dblClick",t);p?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",t),!t.defaultPrevented&&c&&h(c)):(this.emit("dblClick",t),t.defaultPrevented||h(p)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",t),!t.defaultPrevented&&c&&h(c))}addTrackingPoint(t){const e=this.trackingPoints.filter((t=>t.time>Date.now()-100));e.push(t),this.trackingPoints=e}onPointerDown(t,e,i){var n;if(!1===this.option("touch",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const r=this.content.getBoundingClientRect();if(this.dragStart={x:r.x,y:r.y,top:r.top,left:r.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===k&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const s=t.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if("mousedown"===t.type)["A","BUTTON"].includes(s.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(e),this.emit("touchStart",t)),!0}onPointerMove(t,e,i){if(!1===this.option("touch",t))return;if(!this.isDragging)return;if(e.length<2&&this.panOnlyZoomed&&n(this.targetScale)<=n(this.minScale))return;if(this.emit("touchMove",t),t.defaultPrevented)return;this.addTrackingPoint(e[0]);const{content:r}=this,a=f(i[0],i[1]),o=f(e[0],e[1]);let l=0,h=0;if(e.length>1){const t=r.getBoundingClientRect();l=a.clientX-t.left-.5*t.width,h=a.clientY-t.top-.5*t.height}const c=u(i[0],i[1]),p=u(e[0],e[1]);let d=c?p/c:1,m=o.clientX-a.clientX,g=o.clientY-a.clientY;this.dragOffset.x+=m,this.dragOffset.y+=g,this.dragOffset.time=Date.now()-this.dragStart.time;let y=n(this.targetScale)===n(this.minScale)&&this.option("lockAxis");if(y&&!this.lockedAxis)if("xy"===y||"y"===y||"touchmove"===t.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void t.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=e>45&&e<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,m=0,g=0}else this.lockedAxis=y;if(s(t.target,this.content)&&(y="x",this.dragOffset.y=0),y&&"xy"!==y&&this.lockedAxis!==y&&n(this.targetScale)===n(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const v=this.checkBounds(m,g);this.option("rubberband")?("x"!==this.isInfinite&&(v.xDiff>0&&m<0||v.xDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*v.xDiff))),"y"!==this.isInfinite&&(v.yDiff>0&&g<0||v.yDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*v.yDiff)))):(v.xDiff&&(m=0),v.yDiff&&(g=0));const b=this.targetScale,x=this.minScale,E=this.maxScale;b<.5*x&&(d=Math.max(d,x)),b>1.5*E&&(d=Math.min(d,E)),"y"===this.lockedAxis&&n(b)===n(x)&&(m=0),"x"===this.lockedAxis&&n(b)===n(x)&&(g=0),this.applyChange({originX:l,originY:h,panX:m,panY:g,scale:d,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,e,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),s(t.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit
2("touchEnd",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==b.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var t;const e=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of x)this.velocity[t]=0;this.target.e=this.current.e,this.target.f=this.current.f,w(this.container,"is-scaling"),w(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:i}=this,r=i[0],s=i[i.length-1];let a=0,o=0,l=0;s&&r&&(a=s.clientX-r.clientX,o=s.clientY-r.clientY,l=s.time-r.time);const h=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==h&&(a*=h,o*=h);let c=0,p=0,u=0,f=0,d=this.option("decelFriction");const m=this.targetScale;if(l>0){u=Math.abs(a)>3?a/(l/30):0,f=Math.abs(o)>3?o/(l/30):0;const t=this.option("maxVelocity");t&&(u=Math.max(Math.min(u,t),-1*t),f=Math.max(Math.min(f,t),-1*t))}u&&(c=u/(1/(1-d)-1)),f&&(p=f/(1/(1-d)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&n(m)===this.minScale)&&(c=u=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&n(m)===this.minScale)&&(p=f=0);const g=this.dragOffset.x,y=this.dragOffset.y,v=this.option("dragMinThreshold")||0;Math.abs(g)<v&&Math.abs(y)<v&&(c=p=0,u=f=0),(this.option("zoom")&&(m<this.minScale-1e-5||m>this.maxScale+1e-5)||e&&!c&&!p)&&(d=.35),this.applyChange({panX:c,panY:p,friction:d}),this.emit("decel",u,f,g,y)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const i=Math.max(-1,Math.min(1,e));if(this.emit("wheel",t,i),this.panMode===k)return;if(t.defaultPrevented)return;const n=this.option("wheel");"pan"===n?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):"zoom"===n&&!1!==this.option("zoom")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){"Escape"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:e,content:i,contentRect:r}=this,s=Object.assign({},M);for(const i of x){const r="e"==i||"f"===i?A:1e5;s[i]=n(t[i],r),Math.abs(e[i]-t[i])<("e"==i||"f"===i?.51:.001)&&(t[i]=e[i])}let{a:a,b:o,c:l,d:h,e:c,f:p}=s,u=`matrix(${a}, ${o}, ${l}, ${h}, ${c}, ${p})`,f=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(f=f.parentElement||f),f.style.transform===u)return;f.style.transform=u;const{contentWidth:d,contentHeight:m}=this.calculateContentDim();r.width=d,r.height=m,this.emit("afterTransform")}updateMetrics(t=!1){var e;if(!this||this.state===b.Destroy)return;if(this.isContentLoading)return;const i=Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1),{container:r,content:s}=this,a=s instanceof HTMLImageElement,o=r.getBoundingClientRect(),l=getComputedStyle(this.container);let h=o.width*i,c=o.height*i;const p=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),u=h-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),f=c-p;this.containerRect={width:h,height:c,innerWidth:u,innerHeight:f};const d=parseFloat(s.dataset.width||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(s),m=parseFloat(s.dataset.height||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(s);let g=this.option("width",d)||F,y=this.option("height",m)||F;const v=g===F,x=y===F;"number"!=typeof g&&(g=d),"number"!=typeof y&&(y=m),v&&(g=d*(y/m)),x&&(y=m/(d/g));let E=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(E=E.parentElement||E);const _=E.getAttribute("style")||"";E.style.setProperty("transform","none","important"),a&&(E.style.width="",E.style.height=""),E.offsetHeight;const S=s.getBoundingClientRect();let P=S.width*i,C=S.height*i,w=P,T=C;P=Math.min(P,g),C=Math.min(C,y),a?({width:P,height:C}
2=((t,e,i,n)=>{const r=i/t,s=n/e,a=Math.min(r,s);return{width:t*=a,height:e*=a}})(g,y,P,C)):(P=Math.min(P,g),C=Math.min(C,y));let M=.5*(T-C),A=.5*(w-P);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:S.top-o.top+M,bottom:o.bottom-S.bottom+M,left:S.left-o.left+A,right:o.right-S.right+A,fitWidth:P,fitHeight:C,width:P,height:C,fullWidth:g,fullHeight:y}),E.style.cssText=_,a&&(E.style.width=`${P}px`,E.style.height=`${C}px`),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(n(this.targetScale)<n(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===b.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:t,contentHeight:e}=this.calculateContentDim(this.target),{targetScale:i,lockedAxis:r}=this,{fitWidth:s,fitHeight:a}=this.contentRect;let o=0,l=0,h=0,c=0;const p=this.option("infinite");if(!0===p||r&&p===r)o=-1/0,h=1/0,l=-1/0,c=1/0;else{let{containerRect:r,contentRect:p}=this,u=n(s*i,A),f=n(a*i,A),{innerWidth:d,innerHeight:m}=r;if(r.width===u&&(d=r.width),r.width===f&&(m=r.height),t>d){h=.5*(t-d),o=-1*h;let e=.5*(p.right-p.left);o+=e,h+=e}if(s>d&&t<d&&(o-=.5*(s-d),h-=.5*(s-d)),e>m){c=.5*(e-m),l=-1*c;let t=.5*(p.bottom-p.top);l+=t,c+=t}a>m&&e<m&&(o-=.5*(a-m),h-=.5*(a-m))}return{x:{min:o,max:h},y:{min:l,max:c}}}getBounds(){const t=this.option("bounds");return t!==F?t:this.calculateBounds()}updateControls(){const t=this,e=t.container,{panMode:i,contentRect:r,targetScale:s,minScale:a}=t;let o=a,h=t.option("click")||!1;h&&(o=t.getNextScale(h));let c=t.canZoomIn(),p=t.canZoomOut(),u=i===D&&!!this.option("touch"),f=p&&u;if(u&&(n(s)<n(a)&&!this.panOnlyZoomed&&(f=!0),(n(r.width,1)>n(r.fitWidth,1)||n(r.height,1)>n(r.fitHeight,1))&&(f=!0)),n(r.width*s,1)<n(r.fitWidth,1)&&(f=!1),i===k&&(f=!1),l(e,this.cn("isDraggable"),f),!this.option("zoom"))return;let d=c&&n(o)>n(s),m=!d&&!f&&p&&n(o)<n(s);l(e,this.cn("canZoomIn"),d),l(e,this.cn("canZoomOut"),m);for(const t of e.querySelectorAll("[data-panzoom-action]")){let e=!1,i=!1;switch(t.dataset.panzoomAction){case"zoomIn":c?e=!0:i=!0;break;case"zoomOut":p?e=!0:i=!0;break;case"toggleZoom":case"iterateZoom":c||p?e=!0:i=!0;const n=t.querySelector("g");n&&(n.style.display=c?"":"none")}e?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):i&&(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:e=this.target.f,scale:i=this.targetScale,friction:n=this.option("friction"),angle:r=0,originX:s=0,originY:a=0,flipX:o=!1,flipY:l=!1,ignoreBounds:h=!1}){this.state!==b.Destroy&&this.applyChange({panX:t-this.target.e,panY:e-this.target.f,scale:i/this.targetScale,angle:r,originX:s,originY:a,friction:n,flipX:o,flipY:l,ignoreBounds:h})}applyChange({panX:t=0,panY:e=0,scale:i=1,angle:r=0,originX:s=-this.current.e,originY:a=-this.current.f,friction:o=this.option("friction"),flipX:l=!1,flipY:h=!1,ignoreBounds:c=!1,bounce:p=this.option("bounce")}){const u=this.state;if(u===b.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=o||0,this.ignoreBounds=c;const{current:f}=this,d=f.e,m=f.f,g=this.getMatrix(this.target);let y=(new DOMMatrix).translate(d,m).translate(s,a).translate(t,e);if(this.option("zoom")){if(!c){const t=this.targetScale,e=this.minScale,n=this.maxScale;t*i<e&&(i=e/t),t*i>n&&(i=n/t)}y=y.scale(i)}y=y.translate(-s,-a).translate(-d,-m).multiply(g),r&&(y=y.rotate(r)),l&&(y=y.scale(-1,1)),h&&(y=y.scale(1,-1));for(const t of x)"e"!==t&&"f"!==t&&(y[t]>this.minScale+1e-5||y[t]<this.minScale-1e-5)?this.target[t]=y[t]:this.target[t]=n(y[t],A);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===k||!1===p)&&!c&&this.clampTargetBounds(),u===b.Init?this.animate():this.isResting||(this.state=b.Panning,this.requestTick())}stop(t=!1){if(this.state===b.Init||this.state===b.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of x)this.velocity[e]=0,"current"===t?this.current[e]=this.target[e]:"target"===t&&(this.target[e]=this.current[e]);this.setTransform(),w(this.container,"is-scaling"),w(this.container,"is-animating"),this.isTicking=!1,this.state=b.Ready,e&&(this.emit
2("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),T(this.container,"is-animating"),this.isScaling&&T(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(t,e=this.option("mouseMoveFriction")){if(this.pmme=t,this.panMode!==k||!t)return;if(n(this.targetScale)<=n(this.minScale))return;this.emit("mouseMove",t);const{container:i,containerRect:r,contentRect:s}=this,a=r.width,o=r.height,l=i.getBoundingClientRect(),h=(t.clientX||0)-l.left,c=(t.clientY||0)-l.top;let{contentWidth:p,contentHeight:u}=this.calculateContentDim(this.target);const f=this.option("mouseMoveFactor");f>1&&(p!==a&&(p*=f),u!==o&&(u*=f));let d=.5*(p-a)-h/a*100/100*(p-a);d+=.5*(s.right-s.left);let m=.5*(u-o)-c/o*100/100*(u-o);m+=.5*(s.bottom-s.top),this.applyChange({panX:d-this.target.e,panY:m-this.target.f,friction:e})}zoomWithWheel(t){if(this.state===b.Destroy||this.state===b.Init)return;const e=Date.now();if(e-this.pwt<45)return void t.preventDefault();this.pwt=e;var i=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const r=Math.max(-1,Math.min(1,i)),{targetScale:s,maxScale:a,minScale:o}=this;let l=s*(100+45*r)/100;n(l)<n(o)&&n(s)<=n(o)?(this.cwd+=Math.abs(r),l=o):n(l)>n(a)&&n(s)>=n(a)?(this.cwd+=Math.abs(r),l=a):(this.cwd=0,l=Math.max(Math.min(l,a),o)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),n(l)!==n(s)&&this.zoomTo(l,{event:t}))}canZoomIn(){return this.option("zoom")&&(n(this.contentRect.width,1)<n(this.contentRect.fitWidth,1)||n(this.targetScale)<n(this.maxScale))}canZoomOut(){return this.option("zoom")&&n(this.targetScale)>n(this.minScale)}zoomIn(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo("fit",t)}zoomToCover(t){this.zoomTo("cover",t)}zoomToFull(t){this.zoomTo("full",t)}zoomToMax(t){this.zoomTo("max",t)}toggleZoom(t){this.zoomTo(this.getNextScale("toggleZoom"),t)}toggleMax(t){this.zoomTo(this.getNextScale("toggleMax"),t)}toggleCover(t){this.zoomTo(this.getNextScale("toggleCover"),t)}iterateZoom(t){this.zoomTo("next",t)}zoomTo(t=1,{friction:e=F,originX:i=F,originY:n=F,event:r}={}){if(this.isContentLoading||this.state===b.Destroy)return;const{targetScale:s,fullScale:a,maxScale:o,coverScale:l}=this;if(this.stop(),this.panMode===k&&(r=this.pmme||r),r||i===F||n===F){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),s=r?r.clientX:e.left+.5*e.width,a=r?r.clientY:e.top+.5*e.height;i=s-t.left-.5*t.width,n=a-t.top-.5*t.height}let h=1;"number"==typeof t?h=t:"full"===t?h=a:"cover"===t?h=l:"max"===t?h=o:"fit"===t?h=1:"next"===t&&(h=this.getNextScale("iterateZoom")),h=h/s||1,e=e===F?h>1?.15:.25:e,this.applyChange({scale:h,originX:i,originY:n,friction:e}),r&&this.panMode===k&&this.panWithMouse(r,e)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-i.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-i.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");t.classList.toggle(e);const n=t.classList.contains(e);n?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?"enterFS":"exitFS")}getMatrix(t=this.current){const{a:e,b:i,c:n,d:r,e:s,f:a}=t;return new DOMMatrix([e,i,n,r,s,a])}reset(t){if(this.state!==b.Init&&this.state!==b.Destroy){this.stop("current");for(const t of x)this.target[t]=M[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option("friction"):t,this.state=b.Panning,this.requestTick())}}destroy(){this.stop(),this.state=b.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,i=this.option("classes")||{};for(const e of Object.values(i))t.classList.remove(e+"");e&&(e.removeEventListener("load",this.onLoad),e.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(R,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:_}),Object.defineProperty(R,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const B=function(t,e){let i=!0;return(...n)=>{i&&(i=!1,t(...n),setTimeout((()=>{i=!0}),e))}},z=(t,e)=>{let i=[];
2return t.childNodes.forEach((t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||i.push(t)})),i};var V;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"}(V||(V={}));const N=t=>{if("string"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&("string"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},j=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class G extends y{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class H extends G{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement("ul"),T(t,this.cn("list")),t.setAttribute("role","tablist");const e=this.instance.container;e.appendChild(t),T(e,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),r=this.option("dynamicFrom");if(e<i||e>n)return void this.cleanup();const s="number"==typeof r&&e>5&&e>=r,a=!this.list||this.isDynamic!==s||this.list.children.length!==e;a&&this.cleanup();const o=this.build();if(l(o,this.cn("isDynamic"),!!s),a)for(let t=0;t<e;t++)o.append(this.createItem(t));let h,c=0;for(const e of[...o.children]){const i=c===this.instance.page;i&&(h=e),l(e,this.cn("isCurrent"),i),null===(t=e.children[0])||void 0===t||t.setAttribute("aria-selected",i?"true":"false");for(const t of["isBeforePrev","isPrev","isNext","isAfterNext"])w(e,this.cn(t));c++}if(h=h||o.firstChild,s&&h){const t=h.previousElementSibling,e=t&&t.previousElementSibling;T(t,this.cn("isPrev")),T(e,this.cn("isBeforePrev"));const i=h.nextElementSibling,n=i&&i.nextElementSibling;T(i,this.cn("isNext")),T(n,this.cn("isAfterNext"))}this.isDynamic=s}createItem(t=0){var e;const i=document.createElement("li");i.setAttribute("role","presentation");const n=a(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return i.appendChild(n),null===(e=i.children[0])||void 0===e||e.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,w(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(H,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});const W="disabled",q="next",$="prev";class X extends G{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const t=this.instance,e=t.pages.length,i=t.page;if(e<2)return void this.cleanup();this.build();let n=this.prev,r=this.next;n&&r&&(n.removeAttribute(W),r.removeAttribute(W),t.isInfinite||(i<=0&&n.setAttribute(W,""),i>=e-1&&r.setAttribute(W,"")))}addBtn(t){var e;const i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize(`{{${t.toUpperCase()}}}`)),T(n,this.cn("button")+" "+this.cn(t===q?"isNext":"isPrev"));const r=i.isRTL?t===q?$:q:t;var s;return n.innerHTML=i.localize(this.option(`${r}Tpl`)),n.dataset[`carousel${s=t,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",null===(e=this.container)||void 0===e||e.appendChild(n),n}build(){const t=this.instance.container,e=this.cn("container");let{container:i,prev:n,next:r}=this;i||(i=t.querySelector("."+e),this.isDom=!!i),i||(i=document.createElement("div"),T(i,e),t.appendChild(i)),this.container=i,r||(r=i.querySelector("[data-carousel-next]")),r||(r=this.addBtn(q)),this.next=r,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn($)),this.prev=n}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
2',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class Y extends G{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===V.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),e.state===V.Ready?this.onTargetReady(e):e.on("ready",this.onTargetReady))}onNavReady(t){t.on("createSlide",this.onNavCreateSlide),t.on("Panzoom.click",this.onNavClick),t.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on("change",this.onTargetChange),t.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,i){this.onNavTouch(t,t.panzoom,i)}onNavTouch(t,e,i){var n,r;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const s=i.target,{nav:a,target:o}=this;if(!a||!o||!s)return;const l=s.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const h=parseInt(l.dataset.index||"",10)||0,c=o.getPageForSlide(h),p=a.getPageForSlide(h);a.slideTo(p),o.slideTo(c,{friction:(null===(r=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===r?void 0:r.Sync.option("friction"))||0}),this.markSelectedSlide(h)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==V.Ready||i.state!==V.Ready)return;const r=null===(e=null===(t=i.pages[i.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,s=n.getPageForSlide(r);this.markSelectedSlide(r),n.slideTo(s,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===V.Ready&&(this.selectedIndex=t,[...e.slides].map((e=>{e.el&&e.el.classList[e.index===t?"add":"remove"]("is-nav-selected")})))}attach(){const t=this;let e=t.options.target,i=t.options.nav;e?t.addAsNavFor(e):i&&t.addAsTargetFor(i)}detach(){const t=this,e=t.nav,i=t.target;e&&(e.off("ready",t.onNavReady),e.off("createSlide",t.onNavCreateSlide),e.off("Panzoom.click",t.onNavClick),e.off("Panzoom.touchEnd",t.onNavTouch)),t.nav=null,i&&(i.off("ready",t.onTargetReady),i.off("refresh",t.onTargetChange),i.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(Y,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const U={Navigation:X,Dots:H,Sync:Y},Z="animationend",J="isSelected",K="slide";class Q extends v{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===V.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:i,pages:n,slides:r}=this,s=r[0];return n.length>=2&&s&&e+s.dim>=i&&(t=this.option("infinite")),t}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(t,e={},i={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:V.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof t&&(t=document.querySelector(t)),!t||!C(t))throw new Error("No Element found");this.container=t,this.slideNext=B(this.slideNext.bind(this),150),this.slidePrev=B(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var t,e;const i=m({},Q.defaults,this.userOptions);let n="";const r=i.breakpoints;if(r&&d(r))for(const[t,e]of Object.entries(r))window.matchMedia(t).matches&&d(e)&&(n+=t,m(i,e));n===this.bp&&this.state!==V.Init||(this.bp=n,this.state===V.Ready&&(i.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==V.Init&&this.destroy(),super.setOptions(i),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}
2init(){this.state=V.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Q.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=V.Ready,this.emit("ready")}initLayout(){const{container:t}=this,e=this.option("classes");T(t,this.cn("container")),l(t,e.isLTR,!this.isRTL),l(t,e.isRTL,this.isRTL),l(t,e.isVertical,!this.isHorizontal),l(t,e.isHorizontal,this.isHorizontal);let i=this.option("viewport")||t.querySelector(`.${e.viewport}`);i||(i=document.createElement("div"),T(i,e.viewport),i.append(...z(t,`.${e.slide}`)),t.prepend(i)),i.addEventListener("scroll",this.onScroll);let n=this.option("track")||t.querySelector(`.${e.track}`);n||(n=document.createElement("div"),T(n,e.track),n.append(...Array.from(i.childNodes))),n.setAttribute("aria-live","polite"),i.contains(n)||i.prepend(n),this.viewport=i,this.track=n,this.emit("initLayout")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],i=[];[...z(t,`.${this.cn(K)}`)].forEach((t=>{if(C(t)){const e=N({el:t,isDom:!0,index:this.slides.length});i.push(e)}}));for(let t of[...this.option("slides",[])||[],...e])i.push(N(t));this.slides=i;for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;
2for(const t of i)this.emit("beforeInitSlide",t,t.index),this.emit("initSlide",t,t.index);this.emit("initSlides")}setInitialPage(){const t=this.option("initialSlide");this.page="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:t,pages:e,isHorizontal:i}=this;if(!t||!e.length)return;let n=this.page;e[n]||(this.page=n=0);const r=(e[n].pos||0)*(this.isRTL&&i?1:-1),s=i?`${r}px`:"0",a=i?"0":`${r}px`;t.style.transform=`translate3d(${s}, ${a}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const t=this.option("Panzoom")||{};this.panzoom=new R(this.viewport,m({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on("*",((t,e,...i)=>{this.emit(`Panzoom.${e}`,t,...i)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:i}=this;let n=this.option("slidesPerPage");n=("auto"===n||e<=i)&&!1!==this.option("fill")?1/0:parseFloat(n+"");let r=0,s=0,a=0;for(const e of this.slides)(!t.length||s+e.dim-i>.05||a>=n)&&(t.push(j()),r=t.length-1,s=0,a=0),t[r].slides.push(e),s+=e.dim+e.gap,a++;return t}processPages(){const t=this.pages,{contentDim:e,viewportDim:i,isInfinite:r}=this,s=this.option("center"),a=this.option("fill"),o=a&&s&&e>i&&!r;if(t.forEach(((t,n)=>{var r;t.index=n,t.pos=(null===(r=t.slides[0])||void 0===r?void 0:r.pos)||0,t.dim=0;for(const[e,i]of t.slides.entries())t.dim+=i.dim,e<t.slides.length-1&&(t.dim+=i.gap);o&&t.pos+.5*t.dim<.5*i?t.pos=0:o&&t.pos+.5*t.dim>=e-.5*i?t.pos=e-i:s&&(t.pos+=-.5*(i-t.dim))})),t.forEach((t=>{a&&!r&&e>i&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,e-i)),t.pos=n(t.pos,1e3),t.dim=n(t.dim,1e3),Math.abs(t.pos)<=.1&&(t.pos=0)})),r)return t;const l=[];let h;return t.forEach((t=>{const e=Object.assign({},t);h&&e.pos===h.pos?(h.dim+=e.dim,h.slides=[...h.slides,...e.slides]):(e.index=l.length,h=e,l.push(e))})),l}getPageFromIndex(t=0){const e=this.pages.length;let i;return t=parseInt((t||0).toString())||0,i=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),i}getSlideMetrics(t){var e,i;const r=this.isHorizontal?"width":"height";let s=0,a=0,o=t.el;const l=!(!o||o.parentNode);if(o?s=parseFloat(o.dataset[r]||"")||0:(o=document.createElement("div"),o.style.visibility="hidden",(this.track||document.body).prepend(o)),T(o,this.cn(K)+" "+t.class+" "+t.customClass),s)o.style[r]=`${s}px`,o.style["width"===r?"height":"width"]="";else{l&&(this.track||document.body).prepend(o),s=o.getBoundingClientRect()[r]*Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1);let t=o[this.isHorizontal?"offsetWidth":"offsetHeight"];t-1>s&&(s=t)}const h=getComputedStyle(o);return"content-box"===h.boxSizing&&(this.isHorizontal?(s+=parseFloat(h.paddingLeft)||0,s+=parseFloat(h.paddingRight)||0):(s+=parseFloat(h.paddingTop)||0,s+=parseFloat(h.paddingBottom)||0)),a=parseFloat(h[this.isHorizontal?"marginRight":"marginBottom"])||0,l?null===(i=o.parentElement)||void 0===i||i.removeChild(o):t.el||o.remove(),{dim:n(s,1e3),gap:n(a,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:i,pages:n}=this;let r={min:0,max:0};if(t)r={min:-1/0,max:1/0};else if(n.length){const t=n[0].pos,s=n[n.length-1].pos;r=e&&i?{min:t,max:s}:{min:-1*s,max:-1*t}}return{x:i?r:{min:0,max:0},y:i?{min:0,max:0}:r}}repositionSlides(){let t,{isHorizontal:e,isRTL:i,isInfinite:r,viewport:s,viewportDim:a,contentDim:o,page:l,pages:h,slides:c,panzoom:p}=this,u=0,f=0,d=0,m=0;p?m=-1*p.current[this.axis]:h[l]&&(m=h[l].pos||0),t=e?i?"right":"left":"top",i&&e&&(m*=-1);for(const e of c){const i=e.el;i?("top"===t?(i.style.right="",i.style.left=""):i.style.top="",e.index!==u?i.style[t]=0===f?"":`${n(f,1e3)}px`:i.style[t]="",d+=e.dim+e.gap,u++):f+=e.dim+e.gap}if(r&&d&&s){let i=getComputedStyle(s),r="padding",l=e?"Right":"Bottom",h=parseFloat(i[r+(e?"Left":"Top")]);m-=h,a+=h,a+=parseFloat(i[r+l]);for(const e of c)e.el&&(n(e.pos)<n(a)&&n(e.pos+e.dim+e.gap)<n(m)&&n(m)>n(o-a)&&(e.el.style[t]=`${n(f+d,1e3)}px`),n(e.pos+e.gap)>=n(o-a)&&n(e.pos)>n(m+a)&&n(m)<n(a)&&(e.el.style[t]=`-${n(d,1e3)}px`))}let g,y,v=[...this.inTransition];if(v.length>1&&(g=h[v[0]],y=h[v[1]]),g&&y){let e=0;for(const i of c)i.el?this.inTransition.has(i.index)&&g.slides.indexOf(i)<0&&(i.el.style[t]=`${n(e+(g.pos-y.pos),1e3)}px`):e+=i.dim+i.gap}}createSlideEl(t){const{track:e,slides:i}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const n=t.el||document.createElement("div");T(n,this.cn(K)),T(n,t.class),T(n,t.customClass);const r=t.html;r&&(r instanceof HTMLElement?n.appendChild(r):n.innerHTML=t.html+"");const s=[];
2i.forEach(((t,e)=>{t.el&&s.push(e)}));const a=t.index;let o=null;s.length&&(o=i[s.reduce(((t,e)=>Math.abs(e-a)<Math.abs(t-a)?e:t))]);const l=o&&o.el&&o.el.parentNode?o.index<t.index?o.el.nextSibling:o.el:null;e.insertBefore(n,e.contains(l)?l:null),t.el=n,this.emit("createSlide",t)}removeSlideEl(t,e=!1){const i=null==t?void 0:t.el;if(!i||!i.parentNode)return;const n=this.cn(J);if(i.classList.contains(n)&&(w(i,n),this.emit("unselectSlide",t)),t.isDom&&!e)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",t);const r=new CustomEvent(Z);i.dispatchEvent(r),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,e=this.option("transition")){var i,n,r,s;if(!e)return!1;const a=this.page,{pages:o,panzoom:l}=this;t=parseInt((t||0).toString())||0;const h=this.getPageFromIndex(t);if(!l||!o[h]||o.length<2||Math.abs(((null===(n=null===(i=o[a])||void 0===i?void 0:i.slides[0])||void 0===n?void 0:n.dim)||0)-this.viewportDim)>1)return!1;let c=t>a?1:-1;this.isInfinite&&(0===a&&t===o.length-1&&(c=-1),a===o.length-1&&0===t&&(c=1));const p=o[h].pos*(this.isRTL?1:-1);if(a===h&&Math.abs(p-l.target[this.axis])<1)return!1;this.clearTransitions();const u=l.isResting;T(this.container,this.cn("inTransition"));const f=(null===(r=o[a])||void 0===r?void 0:r.slides[0])||null,d=(null===(s=o[h])||void 0===s?void 0:s.slides[0])||null;this.inTransition.add(d.index),this.createSlideEl(d);let m=f.el,g=d.el;u||e===K||(e="fadeFast",m=null);const y=this.isRTL?"next":"prev",v=this.isRTL?"prev":"next";return m&&(this.inTransition.add(f.index),f.transition=e,m.addEventListener(Z,this.onAnimationEnd),m.classList.add(`f-${e}Out`,`to-${c>0?v:y}`)),g&&(d.transition=e,g.addEventListener(Z,this.onAnimationEnd),g.classList.add(`f-${e}In`,`from-${c>0?y:v}`)),l.current[this.axis]=p,l.target[this.axis]=p,l.requestTick(),this.onChange(h),!0}manageSlideVisiblity(){const t=new Set,e=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const n of this.slides)i.has(n)?t.add(n):e.add(n);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const i of e)t.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let e=this.cn(J);if(e)for(const i of this.slides){const n=i.el;n&&(n.dataset.index=`${i.index}`,n.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?n.removeAttribute(t):n.setAttribute(t,"true"):this.pages[this.page].slides.includes(i)?(n.classList.contains(e)||(T(n,e),this.emit("selectSlide",i)),n.removeAttribute(t)):(n.classList.contains(e)&&(w(n,e),this.emit("unselectSlide",i)),n.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:i,isRTL:n,viewportDim:r,contentDim:s}=this,a=this.panzoom;if(!a||!i)return;let o=a.current[t],l=a.target[t]-o,h=0,c=.5*r;n&&e?(o<-c&&(h=-1,o+=s),o>s-c&&(h=1,o-=s)):(o>c&&(h=1,o-=s),o<-s+c&&(h=-1,o+=s)),h&&(a.current[t]=o,a.target[t]=o+l)}lazyLoadImg(t,e){const i=this,n="f-fadeIn",r="is-preloading";let s=!1,o=null;const l=()=>{s||(s=!0,o&&(o.remove(),o=null),w(e,r),e.complete&&(T(e,n),setTimeout((()=>{w(e,n)}),350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",t))};T(e,r),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||"",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener("error",(()=>{l()})),e.addEventListener("load",(()=>{l()})),setTimeout((()=>{const i=e.parentNode;i&&t.el&&(e.complete?l():s||(o=a(P),i.insertBefore(o,e)))}),300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const i=new Set;let n=Array.from(e.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));e.dataset.lazySrc&&n.push(e),n.map((t=>{t instanceof HTMLImageElement?i.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)}));for(const e of i)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const i=t.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,r=this.slides[n],s=t.animationName;if(!i||!r||!s)return;const a=!!this.inTransition.has(n)&&r.transition;a&&s.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit
2("settle")}onDecel(t,e=0,i=0,n=0,r=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:s,isHorizontal:a,axis:o,pages:l}=this,h=l.length,c=Math.abs(Math.atan2(i,e)/(Math.PI/180));let p=0;if(p=c>45&&c<135?a?0:i:a?e:0,!h)return;let u=this.page,f=s&&a?1:-1;const d=t.current[o]*f;let{pageIndex:m}=this.getPageFromPosition(d);Math.abs(p)>5?(l[u].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(u=m),u=s&&a?p<0?u-1:u+1:p<0?u+1:u-1):u=0===n&&0===r?u:m,this.slideTo(u,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const e=t.target,i=e&&C(e)?e.dataset:null;let n,r;i&&(void 0!==i.carouselPage?(r="slideTo",n=i.carouselPage):void 0!==i.carouselNext?r="slideNext":void 0!==i.carouselPrev&&(r="slidePrev")),r?(t.preventDefault(),t.stopPropagation(),e&&!e.hasAttribute("disabled")&&this[r](n)):this.emit("click",t)}onSlideTo(t){const e=t.detail||0;this.slideTo(this.getPageForSlide(e),{friction:0})}onChange(t,e=0){const i=this.page;this.prevPage=i,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==i&&(this.markSelectedSlides(),this.emit("change",t,i,e))}onRefresh(){let t=this.contentDim,e=this.viewportDim;this.updateMetrics(),this.contentDim===t&&this.viewportDim===e||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var t;null===(t=this.viewport)||void 0===t||t.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(t){this.lp!==t.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=t.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(t=null,e=null){this.destroy(),this.state=V.Init,this.prevPage=null,this.userOptions=t||this.userOptions,this.userPlugins=e||this.userPlugins,this.processOptions()}slideTo(t=0,{friction:e=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===V.Destroy)return;t=parseInt((t||0).toString())||0;const n=this.getPageFromIndex(t),{axis:r,isHorizontal:s,isRTL:a,pages:o,panzoom:l}=this,h=o.length,c=a&&s?1:-1;if(!l||!h)return;if(this.page!==n){const e=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",e,t),e.defaultPrevented)return}if(this.transitionTo(t,i))return;let p=o[n].pos;if(this.isInfinite){const e=this.contentDim,i=l.target[r]*c;2===h?p+=e*Math.floor(parseFloat(t+"")/2):p=[p,p-e,p+e].reduce((function(t,e){return Math.abs(e-i)<Math.abs(t-i)?e:t}))}p*=c,Math.abs(l.target[r]-p)<1||(l.panTo({x:s?p:0,y:s?0:p,friction:e}),this.onChange(n))}slideToClosest(t){if(this.panzoom){const{pageIndex:e}=this.getPageFromPosition();this.slideTo(e,t)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),w(this.container,this.cn("inTransition"));const t=["to-prev","to-next","from-prev","from-next"];for(const e of this.slides){const i=e.el;if(i){i.removeEventListener(Z,this.onAnimationEnd),i.classList.remove(...t);const n=e.transition;n&&i.classList.remove(`f-${n}Out`,`f-${n}In`)}}this.manageSlideVisiblity()}addSlide(t,e){var i,n,r,s;const a=this.panzoom,o=(null===(i=this.pages[this.page])||void 0===i?void 0:i.pos)||0,l=(null===(n=this.pages[this.page])||void 0===n?void 0:n.dim)||0,h=this.contentDim<this.viewportDim;let c=Array.isArray(e)?e:[e];const p=[];for(const t of c)p.push(N(t));this.slides.splice(t,0,...p);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of p)this.emit("beforeInitSlide",t,t.index);if(this.page>=t&&(this.page+=p.length),this.updateMetrics(),a){const e=(null===(r=this.pages[this.page])||void 0===r?void 0:r.pos)||0,i=(null===(s=this.pages[this.page])||void 0===s?void 0:s.dim)||0,n=this.pages.length||1,c=this.isRTL?l-i:i-l,p=this.isRTL?o-e:e-o;h&&1===n?(t<=this.page&&(a.current[this.axis]-=c,a.target[this.axis]-=c),a.panTo({[this.isHorizontal?"x":"y"]:-1*e})):p&&t<=this.page&&(a.target[this.axis]-=p,a.current[this.axis]-=p,a.requestTick())}for(const t of p)this.emit("initSlide",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const i=this.slides[t];
2if(i){this.removeSlideEl(i,!0),this.slides.splice(t,1);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",i)}}updateMetrics(){const{panzoom:t,viewport:e,track:i,slides:r,isHorizontal:s,isInfinite:a}=this;if(!i)return;const o=s?"width":"height",l=s?"offsetWidth":"offsetHeight";if(e){let t=Math.max(e[l],n(e.getBoundingClientRect()[o],1e3)),i=getComputedStyle(e),r="padding",a=s?"Right":"Bottom";t-=parseFloat(i[r+(s?"Left":"Top")])+parseFloat(i[r+a]),this.viewportDim=t}let h,c=0;for(const[t,e]of r.entries()){let i=0,s=0;!e.el&&h?(i=h.dim,s=h.gap):(({dim:i,gap:s}=this.getSlideMetrics(e)),h=e),i=n(i,1e3),s=n(s,1e3),e.dim=i,e.gap=s,e.pos=c,c+=i,(a||t<r.length-1)&&(c+=s)}c=n(c,1e3),this.contentDim=c,t&&(t.contentRect[o]=c,t.contentRect[s?"fullWidth":"fullHeight"]=c),this.pages=this.createPages(),this.pages=this.processPages(),this.state===V.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(t,e=!1,i=!1){void 0===t&&(t=this.page);const r=this,s=r.panzoom,a=r.contentDim,o=r.pages[t]||0;if(!o||!s)return t>this.page?-1:1;let l=-1*s.current.e,h=n((l-o.pos)/(1*o.dim),1e3),c=h,p=h;this.isInfinite&&!0!==i&&(c=n((l-o.pos+a)/(1*o.dim),1e3),p=n((l-o.pos-a)/(1*o.dim),1e3));let u=[h,c,p].reduce((function(t,e){return Math.abs(e)<Math.abs(t)?e:t}));return e?u:u>1?1:u<-1?-1:u}setViewportHeight(){const{page:t,pages:e,viewport:i,isHorizontal:n}=this;if(!i||!e[t])return;let r=0;n&&this.track&&(this.track.style.height="auto",e[t].slides.forEach((t=>{t.el&&(r=Math.max(r,t.el.offsetHeight))}))),i.style.height=r?`${r}px`:""}getPageForSlide(t){for(const e of this.pages)for(const i of e.slides)if(i.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const i=new Set;let{panzoom:n,contentDim:r,viewportDim:s,pages:a,page:o}=this;if(s){r=r+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=n&&n.state!==b.Init&&n.state!==b.Destroy?-1*n.current[this.axis]:a[o]&&a[o].pos||0,this.isInfinite&&(l-=Math.floor(l/r)*r),this.isRTL&&this.isHorizontal&&(l*=-1);const h=l-s*t,c=l+s*(t+1),p=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of p){const n=t.pos+e*r,s=n+t.dim+t.gap;n<c&&s>h&&i.add(t)}}return i}getPageFromPosition(t){const{viewportDim:e,contentDim:i,slides:n,pages:r,panzoom:s}=this,a=r.length,o=n.length,l=n[0],h=n[o-1],c=this.option("center");let p=0,u=0,f=0,d=void 0===t?-1*((null==s?void 0:s.target[this.axis])||0):t;c&&(d+=.5*e),this.isInfinite?(d<l.pos-.5*h.gap&&(d-=i,f=-1),d>h.pos+h.dim+.5*h.gap&&(d-=i,f=1)):d=Math.max(l.pos||0,Math.min(d,h.pos));let m=h,g=n.find((t=>{const e=t.pos-.5*m.gap,i=t.pos+t.dim+.5*t.gap;return m=t,d>=e&&d<i}));return g||(g=h),u=this.getPageForSlide(g.index),p=u+f*a,{page:p,pageIndex:u}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([V.Destroy].includes(this.state))return;this.state=V.Destroy;const{container:t,viewport:e,track:i,slides:n,panzoom:r}=this,s=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),r&&(r.destroy(),this.panzoom=null),n&&n.forEach((t=>{this.removeSlideEl(t)})),this.detachPlugins(),e&&(e.removeEventListener("scroll",this.onScroll),e.offsetParent&&i&&i.offsetParent&&e.replaceWith(...i.childNodes));for(const[e,i]of Object.entries(s))"container"!==e&&i&&t.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get("ready");this.events=new Map,a&&this.events.set("ready",a)}}Object.defineProperty(Q,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(Q,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(Q,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:U});const tt=function(t){if(!C(t))return 0;const e=window.scrollY,i=window.innerHeight,n=e+i,r=t.getBoundingClientRect(),s=r.y+e,a=r.height,o=s+a;if(e>o||n<s)return 0;if(e<s&&n>o)return 100;if(s<e&&o>n)return 100;let l=a;s<e&&(l-=e-s),o>n&&(l-=o-n);const h=l/i*100;return Math.round(h)},et=!("undefined"==typeof window||!window.document||!window.document.createElement);let it;const nt=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
2([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),rt=t=>{if(t&&et){void 0===it&&document.createElement("div").focus({get preventScroll(){return it=!0,!1}});try{if(it)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:i,behavior:"auto"})}}catch(t){}}},st=()=>{const t=document;let e,i="",n="",r="";return t.fullscreenEnabled?(i="requestFullscreen",n="exitFullscreen",r="fullscreenElement"):t.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",n="webkitExitFullscreen",r="webkitFullscreenElement"),i&&(e={request:function(e=t.documentElement){return"webkitRequestFullscreen"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[r]&&t[n]()},isFullscreen:function(){return t[r]}}),e},at={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},E),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n <div class="fancybox__backdrop"></div>\n <div class="fancybox__carousel"></div>\n <div class="fancybox__footer"></div>\n </div>'},trapFocus:!0,wheel:"zoom"};var ot,lt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"}(ot||(ot={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(lt||(lt={}));let ht="",ct=!1,pt=!1,ut=null;const ft=()=>{let t="",e="";const i=we.getInstance();if(i){const n=i.carousel,r=i.getSlide();if(n&&r){let s=r.slug||void 0,a=r.triggerEl||void 0;e=s||i.option("slug")||"",!e&&a&&a.dataset&&(e=a.dataset.fancybox||""),e&&"true"!==e&&(t="#"+e+(!s&&n.slides.length>1?"-"+(r.index+1):""))}}return{hash:t,slug:e,index:1}},dt=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),i=e[e.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:n}},mt=()=>{const{slug:t,index:e}=dt();if(!t)return;let i=document.querySelector(`[data-slug="${t}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),we.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${t}"]`);n.length&&(i=n[e-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},gt=()=>{if(!1===we.defaults.Hash)return;const t=we.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:i}=dt(),{slug:n}=ft();t&&(e===n?t.jumpTo(i-1):(ct=!0,t.close())),mt()},yt=()=>{ut&&clearTimeout(ut),queueMicrotask((()=>{gt()}))},vt=()=>{window.addEventListener("hashchange",yt,!1),setTimeout((()=>{gt()}),500)};et&&(/complete|interactive|loaded/.test(document.readyState)?vt():document.addEventListener("DOMContentLoaded",vt));const bt="is-zooming-in";class xt extends G{onCreateSlide(t,e,i){const n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)}onRemoveSlide(t,e,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(t,e,i,n){w(this.instance.container,bt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==i&&e.reset(.35)}}onClose(){var t;const e=this.instance,i=e.container,n=e.getSlide();if(!i||!i.parentElement||!n)return;const{el:r,contentEl:s,panzoom:a,thumbElSrc:o}=n;if(!r||!o||!s||!a||a.isContentLoading||a.state===b.Init||a.state===b.Destroy)return;a.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=ot.CustomClosing,i.classList.remove(bt),i.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${o}')`;const h=i.getBoundingClientRect();
21===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(i.style,{position:"absolute",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${h.width}px`,height:`${h.height}px`,overflow:"hidden"});const{x:c,y:p,scale:u,opacity:f}=l;if(f){const t=((t,e,i,n)=>{const r=e-t;return e=>1+((e-t)/r*-1||0)})(a.scale,u);a.on("afterTransform",(()=>{s.style.opacity=t(a.scale)+""}))}a.on("endAnimation",(()=>{e.destroy()})),a.target.a=u,a.target.b=0,a.target.c=0,a.target.d=u,a.panTo({x:c,y:p,scale:u,friction:f?.2:.33,ignoreBounds:!0}),a.isResting&&e.destroy()}setImage(t,e){const i=this.instance;t.src=e,this.process(t,e).then((e=>{const{contentEl:n,imageEl:r,thumbElSrc:s,el:a}=t;if(i.isClosing()||!n||!r)return;n.offsetHeight;const o=!!i.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&a){a.addEventListener("contextmenu",(t=>{t.preventDefault()}));const t=document.createElement("div");T(t,"fancybox-protected"),n.appendChild(t)}if(s&&o){const r=e.contentRect,a=Math.max(r.fullWidth,r.fullHeight);let h=null;!o.opacity&&a>1200&&(h=document.createElement("img"),T(h,"fancybox-ghost"),h.src=s,n.appendChild(h));const c=()=>{h&&(T(h,"f-fadeFastOut"),setTimeout((()=>{h&&(h.remove(),h=null)}),200))};(l=s,new Promise(((t,e)=>{const i=new Image;i.onload=t,i.onerror=e,i.src=l}))).then((()=>{i.hideLoading(t),t.state=lt.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then((()=>{c(),this.instance.done(t)}),(()=>{})),h&&setTimeout((()=>{c()}),a>2500?800:200)}),(()=>{i.hideLoading(t),i.revealContent(t)}))}else{const n=this.optionFor(t,"initialSize"),r=this.optionFor(t,"zoom"),s={event:i.prevMouseMoveEvent||i.options.event,friction:r?.12:0};let a=i.optionFor(t,"showClass")||void 0,o=!0;i.isOpeningSlide(t)&&("full"===n?e.zoomToFull(s):"cover"===n?e.zoomToCover(s):"max"===n?e.zoomToMax(s):o=!1,e.stop("current")),o&&a&&(a=e.isDragging?"f-fadeIn":""),i.hideLoading(t),i.revealContent(t,a)}var l}),(()=>{i.setError(t,"{{IMAGE_ERROR}}")}))}process(t,e){return new Promise(((i,n)=>{var r;const s=this.instance,o=t.el;s.clearContent(t),s.showLoading(t);let l=this.optionFor(t,"content");if("string"==typeof l&&(l=a(l)),!l||!C(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let i="",n=t.caption;i="string"==typeof n&&n?n.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${(null===(r=s.carousel)||void 0===r?void 0:r.pages.length)||1}`,l.src=e||"",l.alt=i,l.draggable=!1,t.srcset&&l.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority="high")}t.sizes&&l.setAttribute("sizes",t.sizes)}T(l,"fancybox-image"),t.imageEl=l,s.setContent(t,l,!1),t.panzoom=new R(o,m({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(e,i)=>s.optionFor(t,"width","auto",i)||"auto",height:(e,i)=>s.optionFor(t,"height","auto",i)||"auto",wheel:()=>{const t=s.option("wheel");return("zoom"===t||"pan"==t)&&t},click:(e,i)=>{var n,r;if(s.isCompact||s.isClosing())return!1;if(t.index!==(null===(n=s.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const t=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName))return!1}let a=!i||i.target&&(null===(r=t.contentEl)||void 0===r?void 0:r.contains(i.target));return s.option(a?"contentClick":"backdropClick")||!1},dblClick:()=>s.isCompact?"toggleZoom":s.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{i(t)},error:()=>{n()},destroy:()=>{n()}}}))}))}zoomIn(t){return new Promise(((e,i)=>{const n=this.instance,r=n.container,{panzoom:s,contentEl:a,el:o}=t;s&&s.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&o&&a&&s&&r))return void i();const{x:h,y:c,scale:p,opacity:u}=l,f=()=>{t.state!==lt.Closing&&(u&&(a.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-p)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&e(s))},d=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(w(r,bt),a.style.opacity="",t.off("endAnimation",d),t.off("touchStart",d),t.off("afterTransform",f),e(t))};s.on("endAnimation",d),s.on("touchStart",d),s.on("afterTransform",f),s.on(["error","destroy"],(()=>{i()}
2)),s.panTo({x:h,y:c,scale:p,friction:0,ignoreBounds:!0}),s.stop("current");const m={event:"mousemove"===s.panMode?n.prevMouseMoveEvent||n.options.event:void 0},g=this.optionFor(t,"initialSize");T(r,bt),n.hideLoading(t),"full"===g?s.zoomToFull(m):"cover"===g?s.zoomToCover(m):"max"===g?s.zoomToMax(m):s.reset(.172)}))}getZoomInfo(t){const{el:e,imageEl:i,thumbEl:n,panzoom:r}=t,s=this.instance,a=s.container;if(!e||!i||!n||!r||tt(n)<3||!this.optionFor(t,"zoom")||!a||s.state===ot.Destroy)return!1;if("0"===getComputedStyle(a).getPropertyValue("--f-images-zoom"))return!1;const o=window.visualViewport||null;if(1!==(o?o.scale:1))return!1;let{top:l,left:h,width:c,height:p}=n.getBoundingClientRect(),{top:u,left:f,fitWidth:d,fitHeight:m}=r.contentRect;if(!(c&&p&&d&&m))return!1;const g=r.container.getBoundingClientRect();f+=g.left,u+=g.top;const y=-1*(f+.5*d-(h+.5*c)),v=-1*(u+.5*m-(l+.5*p)),b=c/d;let x=this.option("zoomOpacity")||!1;return"auto"===x&&(x=Math.abs(c/p-d/m)>.1),{x:y,y:v,scale:b,opacity:x}}attach(){const t=this,e=t.instance;e.on("Carousel.change",t.onChange),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.removeSlide",t.onRemoveSlide),e.on("close",t.onClose)}detach(){const t=this,e=t.instance;e.off("Carousel.change",t.onChange),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.removeSlide",t.onRemoveSlide),e.off("close",t.onClose)}}Object.defineProperty(xt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const Et="html",_t="image",St="map",Pt="youtube",Ct="vimeo",wt="html5video",Tt=(t,e={})=>{const i=new URL(t),n=new URLSearchParams(i.search),r=new URLSearchParams;for(const[t,i]of[...n,...Object.entries(e)]){let e=i+"";if("t"===t){let t=e.match(/((\d*)m)?(\d*)s?/);t&&r.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else r.set(t,e)}let s=r+"",a=t.match(/#t=((.*)?\d+s)/);return a&&(s+=`#t=${a[1]}`),s},Mt=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class At extends G{onBeforeInitSlide(t,e,i){this.processType(i)}onCreateSlide(t,e,i){this.setContent(i)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const i=e.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",e.iframeEl=null);const n=e.contentEl,r=e.placeholderEl;if("inline"===e.type&&n&&r)n.classList.remove("fancybox__content"),"none"!==getComputedStyle(n).getPropertyValue("display")&&(n.style.display="none"),setTimeout((()=>{r&&(n&&r.parentNode&&r.parentNode.insertBefore(n,r),r.remove())}),0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,i){i.state===lt.Ready&&this.playVideo()}onUnselectSlide(t,e,i){var n,r;if(i.type===wt){try{null===(r=null===(n=i.el)||void 0===n?void 0:n.querySelector("video"))||void 0===r||r.pause()}catch(t){}return}let s;i.type===Ct?s={method:"pause",value:"true"}:i.type===Pt&&(s={event:"command",func:"pauseVideo"}),s&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),i.poller&&clearTimeout(i.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach((t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))}))}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of Array.from(document.getElementsByClassName("fancybox__iframe")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready="true")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,"src")||"";this.instance.showLoading(t);const i=this.instance,n=new XMLHttpRequest;i.showLoading(t),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===ot.Ready&&(i.hideLoading(t),200===n.status?i.setContent(t,n.responseText):i.setError(t,404===n.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const r=t.ajax||null;n.open(r?"POST":"GET",e+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(r),t.xhr=n}setInlineContent(t){let e=null;if(C(t.src))e=t.src;else if("string"==typeof t.src){const i=t.src.split("#",2).pop();e=i?document.getElementById(i):null}if(e){if("clone"===t.type||e.closest(".fancybox__slide")){e=e.cloneNode(!0);const i=e.dataset.animationName;i&&(e.classList.remove(i),delete e.dataset.animationName);let n=e.getAttribute("id");n=n?`${n}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute("id",n)}else if(e.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(i,e),t.placeholderEl=i}this.instance.setContent(t,e)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:e,el:i}=t;if(!e||"string"!=typeof e||!i)return;i.classList.add("is-loading");const n=this.instance,r=document.createElement("iframe");r.className="fancybox__iframe",r.setAttribute("id",`fancybox__iframe_${n.id}_${t.index}`);for(const[e,i]of Object.entries(this.optionFor(t,"iframeAttr")||{}))r.setAttribute(e,i);r.onerror=()=>{n.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=r;const s=this.optionFor(t,"preload");if("iframe"!==t.type||!1===s)return r.setAttribute("src",t.src+""),n.setContent(t,r,!1),this.resizeIframe(t),void n.revealContent(t);n.showLoading(t),r.onload=()=>
2{if(!r.src.length)return;const e="true"!==r.dataset.ready;r.dataset.ready="true",this.resizeIframe(t),e?n.revealContent(t):n.hideLoading(t)},r.setAttribute("src",e),n.setContent(t,r,!1)}resizeIframe(t){const{type:e,iframeEl:i}=t;if(e===Pt||e===Ct)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let r=t.autoSize;void 0===r&&(r=this.optionFor(t,"autoSize"));let s=t.width||0,a=t.height||0;s&&a&&(r=!1);const o=n&&n.style;if(!1!==t.preload&&!1!==r&&o)try{const t=window.getComputedStyle(n),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=i.contentWindow;if(l){const t=l.document,i=t.getElementsByTagName(Et)[0],n=t.body;o.width="",n.style.overflow="hidden",s=s||i.scrollWidth+e,o.width=`${s}px`,n.style.overflow="",o.flex="0 0 auto",o.height=`${n.scrollHeight}px`,a=i.scrollHeight+r}}catch(t){}if(s||a){const t={flex:"0 1 auto",width:"",height:""};s&&"auto"!==s&&(t.width=`${s}px`),a&&"auto"!==a&&(t.height=`${a}px`),Object.assign(o,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,"videoAutoplay"))return;if(t.type===wt)try{const t=e.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(t){}if(t.type!==Pt&&t.type!==Ct)return;const i=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if("true"===t.iframeEl.dataset.ready)return e=t.type===Pt?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===Pt&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(i,250)};i()}processType(t){if(t.html)return t.type=Et,t.src=t.html,void(t.html="");const e=this.instance.optionFor(t,"src","");if(!e||"string"!=typeof e)return;let i=t.type,n=null;if(n=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const r=this.optionFor(t,Pt),{nocookie:s}=r,a=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i}(r,["nocookie"]),o=`www.youtube${s?"-nocookie":""}.com`,l=Tt(e,a),h=encodeURIComponent(n[2]);t.videoId=h,t.src=`https://${o}/embed/${h}?${l}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${h}/mqdefault.jpg`,i=Pt}else if(n=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const r=Tt(e,this.optionFor(t,Ct)),s=encodeURIComponent(n[1]),a=n[4]||"";t.videoId=s,t.src=`https://player.vimeo.com/video/${s}?${a?`h=${a}${r?"&":""}`:""}${r}`,i=Ct}if(!i&&t.triggerEl){const e=t.triggerEl.dataset.type;Mt.includes(e)&&(i=e)}i||"string"==typeof e&&("#"===e.charAt(0)?i="inline":(n=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=wt,t.videoFormat=t.videoFormat||"video/"+("ogv"===n[1]?"ogg":n[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=_t:e.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`https://maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(parseFloat(n[3]))+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,i=St):(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=St),i=i||this.instance.option("defaultType"),t.type=i,i===_t&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,"src")||"";if(t&&t.type&&e){switch(t.type){case Et:this.instance.setContent(t,e);break;case wt:const i=this.option("videoTpl");i&&this.instance.setContent(t,i.replace(/\{\{src\}\}/gi,e+"").replace(/\{\{format\}\}/gi,this.optionFor(t,"videoFormat")||"").replace(/\{\{poster\}\}/gi,t.poster||t.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case St:case Pt:case Ct:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[Pt,Ct,wt].includes(t.type)))return;let i,n=t.width||"auto",r=t.height||"auto";if("auto"===n||"auto"===r){i=this.optionFor(t,"videoRatio");const e=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(i+"")}else n&&r&&(i=n/r);if(!i)return;e.style.aspectRatio="",e.style.width="",e.style.height="",e.offsetHeight;const s=e.getBoundingClientRect(),a=s.width||1,o=s.height||1;e.style.aspectRatio=i+"",i<a/o?(r="auto"===r?o:Math.min(o,r),e.style.width="auto",e.style.height=`${r}px`):(n="auto"===n?a:Math.min(a,n),e.style.width=`${n}px`,e.style.height="auto")}attach(){const t=this,e=t.instance;e.on("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.selectSlide",t.onSelectSlide),e.on("Carousel.unselectSlide",t.onUnselectSlide),e.on("Carousel.Panzoom.refresh",t.onRefresh),e.on("done",t.onDone),e.on("clearContent",t.onClearContent),window.addEventListener("message",t.onMessage)}detach(){const t=this,e=t.instance;e.off("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.selectSlide",t.onSelectSlide),e.off("Carousel.unselectSlide",t.onUnselectSlide),e.off("Carousel.Panzoom.refresh",t.onRefresh),e.off("done",t.onDone),e.off("clearContent",t.onClearContent),window.removeEventListener("message",t.onMessage)}}Object.defineProperty(At,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});const kt="play",Dt="pause",It="ready";class Ft extends G{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:
2It}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==It}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,(null===(t=this.instance.panzoom)||void 0===t?void 0:t.isResting)&&this.resume()}onTimerEnd(){const t=this.instance;"play"===this.state&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const e=this.instance,i=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let n=this.option("progressParentEl");if(n||(n=(1===i.length?i[0].el:null)||e.viewport),!n)return null;const r=document.createElement("div");return T(r,"f-progress"),n.prepend(r),this.progressBar=r,r.offsetHeight,r}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;const i=t.option("timeout");t.state=kt,T(e.container,"has-autoplay");let n=t.createProgressBar();n&&(n.style.transitionDuration=`${i}ms`,n.style.transform="scaleX(1)"),t.timer=setTimeout((()=>{t.timer=null,t.inHover||t.onTimerEnd()}),i),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==It){if(t.option("pauseOnHover")){const e=t.instance.container;e.addEventListener("mouseenter",t.onMouseEnter,!1),e.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,e=t.state,i=t.instance.container;t.clear(),t.state=It,i.removeEventListener("mouseenter",t.onMouseEnter,!1),i.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),w(i,"has-autoplay"),e!==It&&t.emit("stop")}pause(){const t=this;t.state===kt&&(t.state=Dt,t.clear(),t.emit(Dt))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==kt){if(t.state===Dt&&!t.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===kt||this.state===Dt?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on("ready",t.onReady),e.on("Panzoom.startAnimation",t.onChange),e.on("Panzoom.endAnimation",t.onSettle),e.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,e=t.instance;e.off("ready",t.onReady),e.off("Panzoom.startAnimation",t.onChange),e.off("Panzoom.endAnimation",t.onSettle),e.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(Ft,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Lt extends G{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const i=t.container;i&&(e.options.Autoplay=m({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var n;i.classList.add("has-slideshow"),(null===(n=t.getSlide())||void 0===n?void 0:n.state)!==lt.Ready&&e.pause()},stop:()=>{i.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")},resume:(e,i)=>{var n,r,s;!i||!i.cancelable||(null===(n=t.getSlide())||void 0===n?void 0:n.state)===lt.Ready&&(null===(s=null===(r=t.carousel)||void 0===r?void 0:r.panzoom)||void 0===s?void 0:s.isResting)||i.preventDefault()}}}),e.attachPlugins({Autoplay:Ft}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,i=this.ref;i&&e&&this.option("playOnStart")&&(e.isInfinite||e.page<e.pages.length-1)&&i.start()}onDone(t,e){const i=this.ref,n=t.carousel;if(!i||!n)return;const r=e.panzoom;r&&r.on("startAnimation",(()=>{t.isCurrentSlide(e)&&i.stop()})),t.isCurrentSlide(e)&&i.resume()}onKeydown(t,e){var i;const n=this.ref;n&&e===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.toggle()}attach(){const t=this,e=t.instance;e.on("Carousel.init",t.onPrepare),e.on("Carousel.ready",t.onReady),e.on("done",t.onDone),e.on("key
2down",t.onKeydown)}detach(){const t=this,e=t.instance;e.off("Carousel.init",t.onPrepare),e.off("Carousel.ready",t.onReady),e.off("done",t.onDone),e.off("keydown",t.onKeydown)}}Object.defineProperty(Lt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const Ot={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Rt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"}(Rt||(Rt={}));const Bt="isResting",zt="thumbWidth",Vt="thumbHeight",Nt="thumbClipWidth";let jt=class extends G{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Rt.Init})}get isModern(){return"modern"===this.type}onInitSlide(t,e){const i=e.el?e.el.dataset:void 0;i&&(e.thumbSrc=i.thumbSrc||e.thumbSrc||"",e[Nt]=parseFloat(i[Nt]||"")||e[Nt]||0,e[Vt]=parseFloat(i.thumbHeight||"")||e[Vt]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,i=this.instance,n=i.panzoom,r=this.carousel,s=r?r.panzoom:null,a=i.page;if(n&&r&&s){if(n.isDragging){w(e,this.cn(Bt));let n=(null===(t=r.pages[a])||void 0===t?void 0:t.pos)||0;n+=i.getProgress(a)*(this[Nt]+this.thumbGap);let o=s.getBounds();-1*n>o.x.min&&-1*n<o.x.max&&s.panTo({x:-1*n,friction:.12})}else l(e,this.cn(Bt),n.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const e=this.instance;let i=0;for(const t of e.slides||[])t.thumbSrc&&i++;if(i<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[zt]=t[Nt]&&t[Vt]?Math.round(this[Vt]*(t[Nt]/t[Vt])):this[zt])}updateProps(){const t=this.container;if(!t)return;const e=e=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+e))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[zt]=e("width")||40,this[Nt]=e("clip-width")||40,this[Vt]=e("height")||40}build(){const t=this;if(t.state!==Rt.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,i=e.container,n=t.getSlides(),r=t.option("type");t.type=r;const s=t.option("parentEl"),a=t.cn("container"),o=t.cn("track");let l=null==s?void 0:s.querySelector("."+a);l||(l=document.createElement("div"),T(l,a),s?s.appendChild(l):i.after(l)),T(l,`is-${r}`),T(i,t.cn("hasThumbs")),t.container=l,t.updateProps();let h=l.querySelector("."+o);h||(h=document.createElement("div"),T(h,t.cn("track")),l.appendChild(h)),t.track=h;const c=m({},{track:h,infinite:!1,center:!0,fill:"classic"===r,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},t.option("Carousel")||{},{Sync:{target:e},slides:n}),p=new e.constructor(l,c);p.on("createSlide",((e,i)=>{t.setProps(i.index),t.emit("createSlide",i,i.el)})),p.on("ready",(()=>{t.shiftModern(),t.emit("ready")})),p.on("refresh",(()=>{t.shiftModern()})),p.on("Panzoom.click",((e,i,n)=>{t.onClick(n)})),t.carousel=p,t.state=Rt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:i,page:n}=e,r=t=>{if(t){const e=t.closest("[data-carousel-index]");if(e)return[parseInt(e.dataset.carouselIndex||"",10)||0,e]}return[-1,void 0]},s=(t,e)=>{const i=document.elementFromPoint(t,e);return i?r(i):[-1,void 0]};let[a,o]=r(t.target);if(a>-1)return;const l=this[Nt],h=t.clientX,c=t.clientY;let[p,u]=s(h-l,c),[f,d]=s(h+l,c);u&&d?(a=Math.abs(h-u.getBoundingClientRect().right)<Math.abs(h-d.getBoundingClientRect().left)?p:f,a===n&&(a=a===p?f:p)):u?a=p:d&&(a=f),a>-1&&i[a]&&e.slideTo(a)}getShift(t){var e;const i=this,{instance:n}=i,r=i.carousel;if(!n||!r)return 0;const s=i[zt],a=i[Nt],o=i.thumbGap,l=i.thumbExtraGap;if(!(null===(e=r.slides[t])||void 0===e?void 0:e.el))return 0;const h=.5*(s-a),c=n.pages.length-1;let p=n.getProgress(0),u=n.getProgress(c),f=n.getProgress(t,!1,!0),d=0,m=h+l+o;const g=p<0&&p>-1,y=u>0&&u<1;return 0===t?(d=m*Math.abs(p),y&&1===p&&(d-=m*Math.abs(u))):t===c?(d=m*Math.abs(u)*-1,g&&-1===u&&(d+=m*Math.abs(p))):g||y?(d=-1*m,d+=m*Math.abs(p),d+=m*(1-Math.abs(u))):d=m*f,d}setProps(t){var e;const i=this;if(!i.isModern)return;const{instance:r}=i,s=i.carousel;if(r&&s){const a=null===(e=s.slides[t])||void 0===e?void 0:e.el;if(a&&a.childNodes.length){let e=n(1-Math.abs(r.getProgress(t))),s=n(i.getShift(t));a.style.setProperty("--progress",e?e+"":""),a.style.setProperty("--shift",s+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:i}=t,n=e.panzoom,r=t.carousel;if(!(e&&i&&n&&r))return;if(n.state===b.Init||n.state===b.Destroy)return;for(const i of e.slides)t.setProps(i.index);let s=(t[Nt]+t.thumbGap)*(r.slides.length||0);i.style.setProperty("--width",s+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=Rt.Init,w(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===V.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty(jt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ot});const Gt=Object.assign(Object.assign({},Ot),{key:"t",showOnStart:!0,parentEl:null}),Ht="is-masked",Wt="aria-hidden";class qt extends G{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var i,n,r;const s=(null===(r=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[e.index])||void 0===r?void 0:r.type)||"",a=e.el;if(a&&s){let t=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(t+=" for-video"),T(a,t)}}onInit(){var t;const e=this,i=e.instance,n=i.carousel;if(e.ref||!n)return;const r=e.option("parentEl")||i.footer||i.container;if(!r)return;const s=m({},e.options,{parentEl:r,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:t=>{const i=t.container;i&&this.hidden&&(e.refresh(),i.style.transition="none",e.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition="",e.show()})))}}});s.Carousel=s.Carousel||{},s.Carousel.on=m((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=s,n.attachPlugins({Thumbs:jt}),e.ref=n.plugins.Thumbs,e.option("showOnStart")||(e.ref.state=Rt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight="")}onKeydown(t,e){const i=this.option("key");i&&i===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===Rt.Hidden?(t.state=Rt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(Wt),e.classList.remove(Ht),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Ht),e.setAttribute(Wt,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,i=(null==e?void 0:e.firstChild)||null;e&&i&&i.childNodes.length&&(e.style.maxHeight=`${i.getBoundingClientRect().height}px`)}
2attach(){const t=this,e=t.instance;e.state===ot.Init?e.on("Carousel.init",t.onInit):t.onInit(),e.on("resize",t.onResize),e.on("keydown",t.onKeydown)}detach(){var t;const e=this,i=e.instance;i.off("Carousel.init",e.onInit),i.off("resize",e.onResize),i.off("keydown",e.onKeydown),null===(t=i.carousel)||void 0===t||t.detachPlugins(["Thumbs"]),e.ref=null}}Object.defineProperty(qt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Gt});const $t={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Xt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"}(Xt||(Xt={}));const Yt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ut="has-toolbar",Zt="fancybox__toolbar";class Jt extends G{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Xt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let i=this.option("display"),n=this.option("absolute"),r=this.option("enabled");if("auto"===r){const t=this.instance.carousel;let e=0;if(t)for(const i of t.slides)(i.panzoom||"image"===i.type)&&e++;e||(r=!1)}r||(i=void 0);let s=0;const a={left:[],middle:[],right:[]};if(i)for(const t of["left","middle","right"])for(const n of i[t]){const i=this.createEl(n);i&&(null===(e=a[t])||void 0===e||e.push(i),s++)}let o=null;if(s&&(o=this.createContainer()),o){for(const[t,e]of Object.entries(a)){const i=document.createElement("div");T(i,Zt+"__column is-"+t);for(const t of e)i.appendChild(t);"auto"!==n||"middle"!==t||e.length||(n=!0),o.appendChild(i)}!0===n&&T(o,"is-absolute"),this.state=Xt.Ready,this.onRefresh()}else this.state=Xt.Disabled}onClick(t){var e,i;const n=this.instance,r=n.getSlide(),s=null==r?void 0:r.panzoom,a=t.target,o=a&&C(a)?a.dataset:null;if(!o)return;if(void 0!==o.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=n.plugins.Thumbs
2)||void 0===e||e.toggle());if(void 0!==o.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==o.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let r=e.isActive;return s&&"mousemove"===s.panMode&&!r&&s.reset(),void(r?e.stop():e.start())}const l=o.panzoomAction,h=o.panzoomChange;if((h||l)&&(t.preventDefault(),t.stopPropagation()),h){let e={};try{e=JSON.parse(h)}catch(t){}s&&s.applyChange(e)}else l&&s&&s[l]&&s[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==lt.Ready)return;const i=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll("[data-panzoom-action]"))i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));let n=i&&i.canZoomIn(),r=i&&i.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))r?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){r||n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=n?"":"none")}}onDone(t,e){var i;null===(i=e.panzoom)||void 0===i||i.on("afterTransform",(()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()})),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option("parentEl")||t;let i=e.querySelector("."+Zt);return i||(i=document.createElement("div"),T(i,Zt),e.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&T(t,Ut),this.container=i,i}createEl(t){const e=this.instance,i=e.carousel;if(!i)return null;if("toggleFS"===t)return null;if("fullscreen"===t&&!st())return null;let n=null;const r=i.slides.length||0;let s=0,o=0;for(const t of i.slides)(t.panzoom||"image"===t.type)&&s++,("image"===t.type||t.downloadSrc)&&o++;if(r<2&&["infobar","prev","next"].includes(t))return n;if(void 0!==$t[t]&&!s)return null;if("download"===t&&!o)return null;if("thumbs"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if("slideshow"===t&&(!i.plugins.Autoplay||r<2))return null;if(void 0!==$t[t]){const e=$t[t];n=document.createElement("button"),n.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),T(n,"f-button"),e.action&&(n.dataset.panzoomAction=e.action),e.change&&(n.dataset.panzoomChange=JSON.stringify(e.change)),n.appendChild(a(this.instance.localize(e.icon)))}else{const e=(this.option("items")||[])[t];e&&(n=a(this.instance.localize(e.tpl)),"function"==typeof e.click&&n.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof e.click&&e.click.call(this,this,t)})))}const l=null==n?void 0:n.querySelector("svg");if(l)for(const[t,e]of Object.entries(Yt))l.getAttribute(t)||l.setAttribute(t,String(e));return n}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Xt.Disabled;const e=this.instance.container;e&&w(e,Ut)}attach(){const t=this,e=t.instance;e.on("Carousel.initSlides",t.onReady),e.on("done",t.onDone),e.on(["reveal","Carousel.change"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off("Carousel.initSlides",t.onReady),e.off("done",t.onDone),e.off(["reveal","Carousel.change"],t.onChange),t.removeContainer()}}Object.defineProperty(Jt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g>
2<path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const Kt={Hash:class extends G{onReady(){ct=!1}onChange(t){ut&&clearTimeout(ut);const{hash:e}=ft(),{hash:i}=dt(),n=t.isOpeningSlide(t.getSlide());n&&(ht=i===e?"":i),e&&e!==i&&(ut=setTimeout((()=>{try{if(t.state===ot.Ready){let t="replaceState";n&&!pt&&(t="pushState",pt=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}}),300))}onClose(t){if(ut&&clearTimeout(ut),!ct&&pt)return pt=!1,ct=!1,void window.history.back();if(!ct)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ht||""))}catch(t){}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return dt()}static startFromUrl(){mt()}static destroy(){window.removeEventListener("hashchange",yt,!1)}},Html:At,Images:xt,Slideshow:Lt,Thumbs:qt,Toolbar:Jt},Qt="with-fancybox",te="hide-scrollbar",ee="--fancybox-scrollbar-compensate",ie="--fancybox-body-margin",ne="aria-hidden",re="is-using-tab",se="is-animated",ae="is-compact",oe="is-loading",le="is-opening",he="has-caption",ce="disabled",pe="tabindex",ue="download",fe="href",de="src",me=t=>"string"==typeof t,ge=function(){var t=window.getSelection();return!!t&&"Range"===t.type};let ye,ve=null,be=null,xe=0,Ee=0,_e=0,Se=0;const Pe=new Map;let Ce=0;class we extends v{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],e={},i={}){super(e),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ot.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ye||(ye=st()),this.id=e.id||++Ce,Pe.set(this.id,this),this.userSlides=t,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===ot.Destroy)return;this.state=ot.Init,this.attachPlugins(Object.assign(Object.assign({}
2,we.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!et)return;const t=document,e=t.body,i=t.documentElement;if(e.classList.contains(te))return;let n=window.innerWidth-i.getBoundingClientRect().width;const r=parseFloat(window.getComputedStyle(e).marginRight);n<0&&(n=0),i.style.setProperty(ee,`${n}px`),r&&e.style.setProperty(ie,`${r}px`),e.classList.add(te)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=ot.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(ne,"false")}),16)};this.option("Fullscreen.autoStart")&&ye&&!ye.isFullscreen()?ye.request().then((()=>{this.startedFs=!0,t()})).catch((()=>t())):t()}initLayout(){var t,e;const i=this.option("parentEl")||document.body,n=a(this.localize(this.option("tpl.main")||""));if(n){if(n.setAttribute("id",`fancybox-${this.id}`),n.setAttribute("aria-label",this.localize("{{MODAL}}")),n.classList.toggle(ae,this.isCompact),T(n,this.option("mainClass")||""),T(n,le),this.container=n,this.footer=n.querySelector(".fancybox__footer"),i.appendChild(n),T(document.documentElement,Qt),ve&&be||(ve=document.createElement("span"),T(ve,"fancybox-focus-guard"),ve.setAttribute(pe,"0"),ve.setAttribute(ne,"true"),ve.setAttribute("aria-label","Focus guard"),be=ve.cloneNode(),null===(t=n.parentElement)||void 0===t||t.insertBefore(ve,n),null===(e=n.parentElement)||void 0===e||e.append(be)),n.addEventListener("mousedown",(t=>{xe=t.pageX,Ee=t.pageY,w(n,re)})),this.option("closeExisting"))for(const t of Pe.values())t.id!==this.id&&t.close();else this.option("animated")&&(T(n,se),setTimeout((()=>{this.isClosing()||w(n,se)}),350));this.emit("initLayout")}}initCarousel(t){const e=this.container;if(!e)return;const i=e.querySelector(".fancybox__carousel");if(!i)return;const n=this.carousel=new Q(i,m({},{slides:t,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));n.on("*",((t,e,...i)=>{this.emit(`Carousel.${e}`,t,...i)})),n.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((t,e,i)=>{this.clearContent(i),i.state=void 0})),n.on("Panzoom.touchStart",(()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(".f-thumbs"))&&(null===(e=this.container)||void 0===e||e.focus())})),n.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(n.on("Panzoom.afterTransform",((t,e)=>{const i=this.getSlide();if(i&&r(i.el))return;const n=this.container;if(n){const t=Math.abs(e.current.f),i=t<1?"":Math.max(.5,Math.min(1,1-t/e.contentRect.fitHeight*1.5));n.style.setProperty("--fancybox-ts",i?"0s":""),n.style.setProperty("--fancybox-opacity",i+"")}})),n.on("Panzoom.touchEnd",((t,e,i)=>{var n;const s=this.getSlide();if(s&&r(s.el))return;if(e.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName))return;const a=Math.abs(e.dragOffset.y);"y"===e.lockedAxis&&(a>=200||a>=50&&e.dragOffset.time<300)&&(i&&i.cancelable&&i.preventDefault(),this.close(i,"f-throwOut"+(e.current.f<0?"Up":"Down")))}))),n.on("change",(t=>{var e;let i=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(i){const e=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:t.page});i.dispatchEvent(e)}})),n.on(["refresh","change"],(t=>{const e=this.container;if(!e)return;for(const i of e.querySelectorAll("[data-fancybox-current-index]"))i.innerHTML=t.page+1;for(const i of e.querySelectorAll("[data-fancybox-count]"))i.innerHTML=t.pages.length;if(!t.isInfinite){for(const i of e.querySelectorAll("[data-fancybox-next]"))t.page<t.pages.length-1?(i.removeAttribute(ce),i.removeAttribute(pe)):(i.setAttribute(ce,""),i.setAttribute(pe,"-1"));for(const i of e.querySelectorAll("[data-fancybox-prev]"))t.page>0?(i.removeAttribute(ce),i.removeAttribute(pe)):(i.setAttribute(ce,""),i.setAttribute(pe,"-1"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||"";n||"image"!==i.type||i.error||!me(i.src)||(n=i.src);for(const t of e.querySelectorAll("[data-fancybox-download]")){const e=i.downloadFilename;n?(t.removeAttribute(ce),t.removeAttribute(pe),t.setAttribute(fe,n),t.setAttribute(ue,e||n),t.setAttribute("target","_blank")):(t.setAttribute(ce,""),t.setAttribute(pe,"-1"),t.removeAttribute(fe),t.removeAttribute(ue))}}
2)),this.emit("initCarousel")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener("click",t.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",t.onVisibilityChange,!1),document.addEventListener("mousemove",t.onMousemove),t.option("trapFocus")&&document.addEventListener("focus",t.onFocus,!0),window.addEventListener("resize",t.onResize);const i=window.visualViewport;i&&(i.addEventListener("scroll",t.onResize),i.addEventListener("resize",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",t.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",t.onMousemove),window.removeEventListener("resize",t.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",t.onResize),i.removeEventListener("scroll",t.onResize)),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),document.removeEventListener("focus",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,i=Math.max(1,(null==e?void 0:e.scale)||1);let n="",r="",s="";if(e&&i>1){let t=`${e.offsetLeft}px`,a=`${e.offsetTop}px`;n=e.width*i+"px",r=e.height*i+"px",s=`translate3d(${t}, ${a}, 0) scale(${1/i})`}t.style.transform=s,t.style.width=n,t.style.height=r}onClick(t){var e;const{container:i,isCompact:n}=this;if(!i||this.isClosing())return;!n&&this.option("idle")&&this.resetIdle();const r=t.composedPath()[0];if(r.closest(".fancybox-spinner")||r.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(r.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(r.closest("[data-fancybox-next]"))return t.preventDefault(),void this.next();if("click"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-xe)>30||Math.abs(t.pageY-Ee)>30)return;const s=document.activeElement;if(ge()&&s&&i.contains(s))return;if(n&&"image"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",t),t.defaultPrevented)return;let a=!1;if(r.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;r.matches(nt)||s.blur()}if(ge())return;a=this.option("contentClick")}else r.closest(".fancybox__carousel")&&!r.matches(nt)&&(a=this.option("backdropClick"));"close"===a?(t.preventDefault(),this.close(t)):"next"===a?(t.preventDefault(),this.next()):"prev"===a&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let i=this.option("wheel",t);e.closest(".fancybox__thumbs")&&(i="slide");const n="slide"===i,r=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t})),a=Math.max(-1,Math.min(1,r)),o=Date.now();this.pwt&&o-this.pwt<300?n&&t.preventDefault():(this.pwt=o,this.emit("wheel",t,a),t.defaultPrevented||("close"===i?(t.preventDefault(),this.close(t)):"slide"===i&&(s(e)||(t.preventDefault(),this[a>0?"prev":"next"]()))))}onScroll(){window.scrollTo(_e,Se)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const e=t.key,i=this.option("keyboard");if(!i)return;const n=t.composedPath()[0],r=document.activeElement&&document.activeElement.classList,s=r&&r.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if("Escape"!==e&&!s&&C(n)&&(n.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName)))return;if("Tab"===t.key?T(this.container,re):w(this.container,re),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit("keydown",e,t);const a=i[e];a&&"function"==typeof this[a]&&(t.preventDefault(),this[a]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(ae,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
2("resize")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,"closeButton")||!1;if("auto"===e){const t=this.plugins.Toolbar;if(t&&t.state===Xt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const e=a(this.localize(i));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&T(t.el,"has-close-btn")}}manageCaption(t){var e,i;const n="fancybox__caption",r=this.container;if(!r)return;w(r,he);const s=this.isCompact||this.option("commonCaption"),a=!s;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),s&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,w(t.el,he),null===(i=t.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||s&&!this.isCurrentSlide(t))return;const o=t.el;let l=this.optionFor(t,"caption","");if(!l)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let h=null;if(a){if(h=t.captionEl||null,o&&!h){const e=`fancybox__caption_${this.id}_${t.index}`;h=document.createElement("div"),T(h,n),h.setAttribute("id",e),t.captionEl=o.appendChild(h),T(o,he),o.setAttribute("aria-labelledby",e)}}else h=this.caption,h||(h=r.querySelector("."+n)),h||(h=document.createElement("div"),h.dataset.fancyboxCaption="",T(h,n),(this.footer||r).prepend(h)),T(r,he),this.caption=h;h&&(h.innerHTML="",me(l)||"number"==typeof l?h.innerHTML=l+"":l instanceof HTMLElement&&h.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==t?void 0:t.target)||null,r=this.container,s=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!r||!s)return;if(!t&&i&&r.contains(i))return;const a=this.getSlide(),o=a&&a.state===lt.Ready?a.el:null;if(!o||o.contains(i)||r===i)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(r.querySelectorAll(nt));let h=[],c=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden="true"]'),i=o&&o.contains(t),n=!s.contains(t);if(t===r||(i||n)&&!e){h.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute("data-orig-tabindex"),!t.hasAttribute("autoFocus")&&c||(c=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute("tabindex")||"":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let p=null;t?(!n||h.indexOf(n)<0)&&(p=c||r,h.length&&(i===be?p=h[0]:this.lastFocus!==r&&i!==ve||(p=h[h.length-1]))):p=a&&"image"===a.type?r:c||r,p&&rt(p),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=we.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e="",i){if(!t||!e)return void(i&&i());this.stop(t);const n=r=>{r.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",n),delete t.dataset.animationName,i&&i(),w(t,e))};t.dataset.animationName=e,t.addEventListener("animationend",n),T(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e="",i=!0){if(this.isClosing())return;const n=t.el;if(!n)return;let r=null;if(C(e)?r=e:(r=a(e+""),C(r)||(r=document.createElement("div"),r.innerHTML=e+"")),["img","picture","iframe","video","audio"].includes(r.nodeName.toLowerCase())){const t=document.createElement("div");t.appendChild(r),r=t}C(r)&&t.filter&&!t.error&&(r=r.querySelector(t.filter)),r&&C(r)?(T(r,"fancybox__content"),t.id&&r.setAttribute("id",t.id),n.classList.add(`has-${t.error?"error":t.type||"unknown"}`),n.prepend(r),"none"===r.style.display&&(r.style.display=""),"none"===getComputedStyle(r).getPropertyValue("display")&&(r.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=r,i&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,e){const i=t.el,n=t.contentEl;
2i&&n&&(this.emit("reveal",t),this.hideLoading(t),t.state=lt.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,"showClass"):e:"f-fadeIn")?this.animate(n,e,(()=>{this.done(t)})):this.done(t))}done(t){this.isClosing()||(t.state=lt.Ready,this.emit("done",t),T(t.el,"is-done"),this.isCurrentSlide(t)&&this.option("autoFocus")&&queueMicrotask((()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(t)&&(w(this.container,le),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,i;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(t){t.state=lt.Loading;const e=t.el;e&&(T(e,oe),this.emit("loading",t),t.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===lt.Loading){let i=a(P);T(i,"fancybox-spinner"),t.spinnerEl=i,e.prepend(i),this.animate(i,"f-fadeIn")}}),250))}hideLoading(t){const e=t.el;if(!e)return;const i=t.spinnerEl;this.isClosing()?null==i||i.remove():(w(e,oe),i&&this.animate(i,"f-fadeOut",(()=>{i.remove()}
2)),t.state===lt.Loading&&(this.emit("loaded",t),t.state=lt.Ready))}setError(t,e){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,t),i.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,n)}clearContent(t){if(void 0===t.state)return;this.emit("clearContent",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(w(e,"has-error"),w(e,"has-unknown"),w(e,`has-${t.type||"unknown"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,t),i.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const n=()=>{this.proceedClose(t,e)};this.startedFs&&ye&&ye.isFullscreen()?Promise.resolve(ye.exit()).then((()=>n())):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,T(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option("idle");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,w(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){ye&&(ye.isFullscreen()?ye.exit():ye.request().then((()=>{this.startedFs=!0})))}isClosing(){return[ot.Closing,ot.CustomClosing,ot.Destroy].includes(this.state)}proceedClose(t,e){var i,n;this.state=ot.Closing,this.clearIdle(),this.detachEvents();const r=this.container,s=this.carousel,a=this.getSlide(),o=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(o&&(tt(o)?rt(o):o.focus()),r&&(w(r,le),T(r,"is-closing"),r.setAttribute(ne,"true"),this.option("animated")&&T(r,se),r.style.pointerEvents="none"),s){s.clearTransitions(),null===(i=s.panzoom)||void 0===i||i.destroy(),null===(n=s.plugins.Navigation)||void 0===n||n.detach();for(const t of s.slides){t.state=lt.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const i=null==t?void 0:t.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(t)||s.emit("removeSlide",t)}}_e=window.scrollX,Se=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",t),this.state!==ot.CustomClosing?(void 0===e&&a&&(e=this.optionFor(a,"hideClass")),e&&a?(this.animate(a.contentEl,e,(()=>{s&&s.emit("removeSlide",a)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===ot.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=ot.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),Pe.delete(this.id);const i=we.getInstance();i?i.focus():(ve&&(ve.remove(),ve=null),be&&(be.remove(),be=null),w(document.documentElement,Qt),(()=>{if(!et)return;const t=document,e=t.body;e.classList.remove(te),e.style.setProperty(ie,""),t.documentElement.style.setProperty(ee,"")})(),this.emit("destroy"))}static bind(t,e,i){if(!et)return;let n,r="",s={};if(void 0===t?n=document.body:me(t)?(n=document.body,r=t,"object"==typeof e&&(s=e||{})):(n=t,me(e)&&(r=e),"object"==typeof i&&(s=i||{})),!n||!C(n))return;r=r||"[data-fancybox]";const a=we.openers.get(n)||new Map;a.set(r,s),we.openers.set(n,a),1===a.size&&n.addEventListener("click",we.fromEvent)}static unbind(t,e){let i,n="";if(me(t)?(i=document.body,n=t):(i=t,me(e)&&(n=e)),!i)return;const r=we.openers.get(i);r&&n&&r.delete(n),n&&r||(we.openers.delete(i),i.removeEventListener("click",we.fromEvent))}static destroy(){let t;for(;t=we.getInstance();)t.destroy();for(const t of we.openers.keys())t.removeEventListener("click",we.fromEvent);we.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const i=e.closest("[data-fancybox-trigger]");if(i){const t=i.dataset.fancyboxTrigger||"",n=document.querySelectorAll(`[data-fancybox="${t}"]`),r=parseInt(i.dataset.fancyboxIndex||"",10)||0;e=n[r]||e}if(!(e&&e instanceof Element))return;let n,r,s,a;if([...we.openers].reverse().find((([t,i])=>
2!(!t.contains(e)||![...i].reverse().find((([i,o])=>{let l=e.closest(i);return!!l&&(n=t,r=i,s=l,a=o,!0)}))))),!n||!r||!s)return;a=a||{},t.preventDefault(),e=s;let o=[],l=m({},at,a);l.event=t,l.triggerEl=e,l.delegate=i;const h=l.groupAll,c=l.groupAttr,p=c&&e?e.getAttribute(`${c}`):"";if((!e||p||h)&&(o=[].slice.call(n.querySelectorAll(r))),e&&!h&&(o=p?o.filter((t=>t.getAttribute(`${c}`)===p)):[e]),!o.length)return;const u=we.getInstance();return u&&u.options.triggerEl&&o.indexOf(u.options.triggerEl)>-1?void 0:(e&&(l.startIndex=o.indexOf(e)),we.fromNodes(o,l))}static fromSelector(t,e,i){let n=null,r="",s={};if(me(t)?(n=document.body,r=t,"object"==typeof e&&(s=e||{})):t instanceof HTMLElement&&me(e)&&(n=t,r=e,"object"==typeof i&&(s=i||{})),!n||!r)return!1;const a=we.openers.get(n);return!!a&&(s=m({},a.get(r)||{},s),!!s&&we.fromNodes(Array.from(n.querySelectorAll(r)),s))}static fromNodes(t,e){e=m({},at,e||{});const i=[];for(const n of t){const t=n.dataset||{},r=t.src||n.getAttribute(fe)||n.getAttribute("currentSrc")||n.getAttribute(de)||void 0;let s;const a=e.delegate;let o;a&&i.length===e.startIndex&&(s=a instanceof HTMLImageElement?a:a.querySelector("img:not([aria-hidden])")),s||(s=n instanceof HTMLImageElement?n:n.querySelector("img:not([aria-hidden])")),s&&(o=s.currentSrc||s.src||void 0,!o&&s.dataset&&(o=s.dataset.lazySrc||s.dataset.src||void 0));const l={src:r,triggerEl:n,thumbEl:s,thumbElSrc:o,thumbSrc:o};for(const e in t){let i=t[e]+"";i="false"!==i&&("true"===i||i),l[e]=i}i.push(l)}return new we(i,e)}static getInstance(t){return t?Pe.get(t):Array.from(Pe.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=we.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new we(t,e)}static next(){const t=we.getInstance();t&&t.next()}static prev(){const t=we.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of Pe.values())t.close(...e);else{const t=we.getInstance();t&&t.close(...e)}}}Object.defineProperty(we,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(we,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:at}),Object.defineProperty(we,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Kt}),Object.defineProperty(we,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map})},9662:function(t,e,i){var n=i(7854),r=i(614),s=i(6330),a=n.TypeError;t.exports=function(t){if(r(t))return t;throw a(s(t)+" is not a function")}},9483:function(t,e,i){var n=i(7854),r=i(4411),s=i(6330),a=n.TypeError;t.exports=function(t){if(r(t))return t;throw a(s(t)+" is not a constructor")}},6077:function(t,e,i){var n=i(7854),r=i(614),s=n.String,a=n.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+s(t)+" as a prototype")}},5787:function(t,e,i){var n=i(7854),r=i(7976),s=n.TypeError;t.exports=function(t,e){if(r(e,t))return t;throw s("Incorrect invocation")}},9670:function(t,e,i){var n=i(7854),r=i(111),s=n.String,a=n.TypeError;t.exports=function(t){if(r(t))return t;throw a(s(t)+" is not an object")}},8533:function(t,e,i){"use strict";var n=i(2092).forEach,r=i(9341)("forEach");t.exports=r?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},1318:function(t,e,i){var n=i(5656),r=i(1400),s=i(6244),a=function(t){return function(e,i,a){var o,l=n(e),h=s(l),c=r(a,h);if(t&&i!=i){for(;h>c;)if((o=l[c++])!=o)return!0}else for(;h>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,i){var n=i(9974),r=i(1702),s=i(8361),a=i(7908),o=i(6244),l=i(5417),h=r([].push),c=function(t){var e=1==t,i=2==t,r=3==t,c=4==t,p=6==t,u=7==t,f=5==t||p;return function(d,m,g,y){for(var v,b,x=a(d),E=s(x),_=n(m,g),S=o(E),P=0,C=y||l,w=e?C(d,S):i||u?C(d,0):void 0;S>P;P++)if((f||P in E)&&(b=_(v=E[P],P,x),t))if(e)w[P]=b;else if(b)switch(t){case 3:return!0;case 5:return v;case 6:return P;case 2:h(w,v)}else switch(t){case 4:return!1;case 7:h(w,v)}return p?-1:r||c?c:w}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}
vendor: 3,600 bytes, line 2
2,1194:function(t,e,i){var n=i(7293),r=i(5112),s=i(7392),a=r("species");t.exports=function(t){return s>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,i){"use strict";var n=i(7293);t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){return 1},1)}))}},206:function(t,e,i){var n=i(1702);t.exports=n([].slice)},7475:function(t,e,i){var n=i(7854),r=i(3157),s=i(4411),a=i(111),o=i(5112)("species"),l=n.Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(s(e)&&(e===l||r(e.prototype))||a(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?l:e}},5417:function(t,e,i){var n=i(7475);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},7072:function(t,e,i){var n=i(5112)("iterator"),r=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var s={};s[n]=function(){return{next:function(){return{done:i=!0}}}},t(s)}catch(t){}return i}},4326:function(t,e,i){var n=i(1702),r=n({}.toString),s=n("".slice);t.exports=function(t){return s(r(t),8,-1)}},648:function(t,e,i){var n=i(7854),r=i(1694),s=i(614),a=i(4326),o=i(5112)("toStringTag"),l=n.Object,h="Arguments"==a(function(){return arguments}());t.exports=r?a:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=l(t),o))?i:h?a(e):"Object"==(n=a(e))&&s(e.callee)?"Arguments":n}},9920:function(t,e,i){var n=i(2597),r=i(3887),s=i(1236),a=i(3070);t.exports=function(t,e,i){for(var o=r(e),l=a.f,h=s.f,c=0;c<o.length;c++){var p=o[c];n(t,p)||i&&n(i,p)||l(t,p,h(e,p))}}},8880:function(t,e,i){var n=i(9781),r=i(3070),s=i(9114);t.exports=n?function(t,e,i){return r.f(t,e,s(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,i){"use strict";var n=i(4948),r=i(3070),s=i(9114);t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,s(0,i)):t[a]=i}},8052:function(t,e,i){var n=i(7854),r=i(614),s=i(8880),a=i(6339),o=i(3505);t.exports=function(t,e,i,l){var h=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,p=!!l&&!!l.noTargetGet,u=l&&void 0!==l.name?l.name:e;return r(i)&&a(i,u,l),t===n?(c?t[e]=i:o(e,i),t):(h?!p&&t[e]&&(c=!0):delete t[e],c?t[e]=i:s(t,e,i),t)}},9781:function(t,e,i){var n=i(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,i){var n=i(7854),r=i(111),s=n.document,a=r(s)&&r(s.createElement);t.exports=function(t){return a?s.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,i){var n=i(317)("span").classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r},7871:function(t){t.exports="object"==typeof window&&"object"!=typeof Deno},1528:function(t,e,i){var n=i(8113),r=i(7854);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},6833:function(t,e,i){var n=i(8113);
vendor: 4,191 bytes, line 2
2t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5268:function(t,e,i){var n=i(4326),r=i(7854);t.exports="process"==n(r.process)},1036:function(t,e,i){var n=i(8113);t.exports=/web0s(?!.*chrome)/i.test(n)},8113:function(t,e,i){var n=i(5005);t.exports=n("navigator","userAgent")||""},7392:function(t,e,i){var n,r,s=i(7854),a=i(8113),o=s.process,l=s.Deno,h=o&&o.versions||l&&l.version,c=h&&h.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,i){var n=i(7854),r=i(1236).f,s=i(8880),a=i(8052),o=i(3505),l=i(9920),h=i(4705);t.exports=function(t,e){var i,c,p,u,f,d=t.target,m=t.global,g=t.stat;if(i=m?n:g?n[d]||o(d,{}):(n[d]||{}).prototype)for(c in e){if(u=e[c],p=t.noTargetGet?(f=r(i,c))&&f.value:i[c],!h(m?c:d+(g?".":"#")+c,t.forced)&&void 0!==p){if(typeof u==typeof p)continue;l(u,p)}(t.sham||p&&p.sham)&&s(u,"sham",!0),a(i,c,u,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},2104:function(t,e,i){var n=i(4374),r=Function.prototype,s=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(s):function(){return a.apply(s,arguments)})},9974:function(t,e,i){var n=i(1702),r=i(9662),s=i(4374),a=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:s?a(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,i){var n=i(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,i){var n=i(4374),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,i){var n=i(9781),r=i(2597),s=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(s,"name"),l=o&&"something"===function(){}.name,h=o&&(!n||n&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:l,CONFIGURABLE:h}},1702:function(t,e,i){var n=i(4374),r=Function.prototype,s=r.bind,a=r.call,o=n&&s.bind(a,a);t.exports=n?function(t){return t&&o(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5005:function(t,e,i){var n=i(7854),r=i(614),s=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(n[t]):n[t]&&n[t][e]}},1246:function(t,e,i){var n=i(648),r=i(8173),s=i(7497),a=i(5112)("iterator");t.exports=function(t){if(null!=t)return r(t,a)||r(t,"@@iterator")||s[n(t)]}},8554:function(t,e,i){var n=i(7854),r=i(6916),s=i(9662),a=i(9670),o=i(6330),l=i(1246),h=n.TypeError;t.exports=function(t,e){var i=arguments.length<2?l(t):e;if(s(i))return a(r(i,t));throw h(o(t)+" is not iterable")}},8173:function(t,e,i){var n=i(9662);t.exports=function(t,e){var i=t[e];return null==i?void 0:n(i)}},7854:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},2597:function(t,e,i){var n=i(1702),r=i(7908),s=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(r(t),e)}},3501:function(t){t.exports={}},842:function(t,e,i){var n=i(7854);t.exports=function(t,e){var i=n.console;i&&i.error&&(1==arguments.length?i.error(t):i.error(t,e))}},490:function(t,e,i){var n=i(5005);t.exports=n("document","documentElement")},4664:function(t,e,i){var n=i(9781),r=i(7293),s=i(317);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){var n=i(7854),r=i(1702),s=i(7293),a=i(4326),o=n.Object,l=r("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?l(t,""):o(t)}:o},9587:function(t,e,i){var n=i(614),r=i(111),s=i(7674);t.exports=function(t,e,i){var a,o;return s&&n(a=e.constructor)&&a!==i&&r(o=a.prototype)&&o!==i.prototype&&s(t,o),t}},2788:function(t,e,i){var n=i(1702),r=i(614),s=i(5465),a=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(t){return a(t)}),t.exports=s.inspectSource}
vendor: 4,163 bytes, line 2
2,9909:function(t,e,i){var n,r,s,a=i(8536),o=i(7854),l=i(1702),h=i(111),c=i(8880),p=i(2597),u=i(5465),f=i(6200),d=i(3501),m="Object already initialized",g=o.TypeError,y=o.WeakMap;if(a||u.state){var v=u.state||(u.state=new y),b=l(v.get),x=l(v.has),E=l(v.set);n=function(t,e){if(x(v,t))throw new g(m);return e.facade=t,E(v,t,e),e},r=function(t){return b(v,t)||{}},s=function(t){return x(v,t)}}else{var _=f("state");d[_]=!0,n=function(t,e){if(p(t,_))throw new g(m);return e.facade=t,c(t,_,e),e},r=function(t){return p(t,_)?t[_]:{}},s=function(t){return p(t,_)}}t.exports={set:n,get:r,has:s,enforce:function(t){return s(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!h(e)||(i=r(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return i}}}},7659:function(t,e,i){var n=i(5112),r=i(7497),s=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[s]===t)}},3157:function(t,e,i){var n=i(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,i){var n=i(1702),r=i(7293),s=i(614),a=i(648),o=i(5005),l=i(2788),h=function(){},c=[],p=o("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=n(u.exec),d=!u.exec(h),m=function(t){if(!s(t))return!1;try{return p(h,c,t),!0}catch(t){return!1}},g=function(t){if(!s(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(u,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!p||r((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?g:m},4705:function(t,e,i){var n=i(7293),r=i(614),s=/#|\.prototype\./,a=function(t,e){var i=l[o(t)];return i==c||i!=h&&(r(e)?n(e):!!e)},o=a.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=a.data={},h=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},111:function(t,e,i){var n=i(614);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},2190:function(t,e,i){var n=i(7854),r=i(5005),s=i(614),a=i(7976),o=i(3307),l=n.Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return s(e)&&a(e.prototype,l(t))}},408:function(t,e,i){var n=i(7854),r=i(9974),s=i(6916),a=i(9670),o=i(6330),l=i(7659),h=i(6244),c=i(7976),p=i(8554),u=i(1246),f=i(9212),d=n.TypeError,m=function(t,e){this.stopped=t,this.result=e},g=m.prototype;t.exports=function(t,e,i){var n,y,v,b,x,E,_,S=i&&i.that,P=!(!i||!i.AS_ENTRIES),C=!(!i||!i.IS_ITERATOR),w=!(!i||!i.INTERRUPTED),T=r(e,S),M=function(t){return n&&f(n,"normal",t),new m(!0,t)},A=function(t){return P?(a(t),w?T(t[0],t[1],M):T(t[0],t[1])):w?T(t,M):T(t)};if(C)n=t;else{if(!(y=u(t)))throw d(o(t)+" is not iterable");if(l(y)){for(v=0,b=h(t);b>v;v++)if((x=A(t[v]))&&c(g,x))return x;return new m(!1)}n=p(t,y)}for(E=n.next;!(_=s(E,n)).done;){try{x=A(_.value)}catch(t){f(n,"throw",t)}if("object"==typeof x&&x&&c(g,x))return x}return new m(!1)}},9212:function(t,e,i){var n=i(6916),r=i(9670),s=i(8173);t.exports=function(t,e,i){var a,o;r(t);try{if(!(a=s(t,"return"))){if("throw"===e)throw i;return i}a=n(a,t)}catch(t){o=!0,a=t}if("throw"===e)throw i;if(o)throw a;return r(a),i}},7497:function(t){t.exports={}},6244:function(t,e,i){var n=i(7466);t.exports=function(t){return n(t.length)}},6339:function(t,e,i){var n=i(7293),r=i(614),s=i(2597),a=i(9781),o=i(6530).CONFIGURABLE,l=i(2788),h=i(9909),c=h.enforce,p=h.get,u=Object.defineProperty,f=a&&!n((function(){return 8!==u((function(){}),"length",{value:8}).length})),d=String(String).split("String"),m=t.exports=function(t,e,i){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!s(t,"name")||o&&t.name!==e)&&u(t,"name",{value:e,configurable:!0}),f&&i&&s(i,"arity")&&t.length!==i.arity&&u(t,"length",{value:i.arity}),i&&s(i,"constructor")&&i.constructor){if(a)try{u(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var n=c(t);return s(n,"source")||(n.source=d.join("string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return r(this)&&p(this).source||l(this)}),"toString")}
vendor: 16,923 bytes, line 2
2,5948:function(t,e,i){var n,r,s,a,o,l,h,c,p=i(7854),u=i(9974),f=i(1236).f,d=i(261).set,m=i(6833),g=i(1528),y=i(1036),v=i(5268),b=p.MutationObserver||p.WebKitMutationObserver,x=p.document,E=p.process,_=p.Promise,S=f(p,"queueMicrotask"),P=S&&S.value;P||(n=function(){var t,e;for(v&&(t=E.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?a():s=void 0,t}}s=void 0,t&&t.enter()},m||v||y||!b||!x?!g&&_&&_.resolve?((h=_.resolve(void 0)).constructor=_,c=u(h.then,h),a=function(){c(n)}):v?a=function(){E.nextTick(n)}:(d=u(d,p),a=function(){d(n)}):(o=!0,l=x.createTextNode(""),new b(n).observe(l,{characterData:!0}),a=function(){l.data=o=!o})),t.exports=P||function(t){var e={fn:t,next:void 0};s&&(s.next=e),r||(r=e,a()),s=e}},133:function(t,e,i){var n=i(7392),r=i(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8536:function(t,e,i){var n=i(7854),r=i(614),s=i(2788),a=n.WeakMap;t.exports=r(a)&&/native code/.test(s(a))},8523:function(t,e,i){"use strict";var n=i(9662),r=function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=n(e),this.reject=n(i)};t.exports.f=function(t){return new r(t)}},2814:function(t,e,i){var n=i(7854),r=i(7293),s=i(1702),a=i(1340),o=i(3111).trim,l=i(1361),h=s("".charAt),c=n.parseFloat,p=n.Symbol,u=p&&p.iterator,f=1/c(l+"-0")!=-1/0||u&&!r((function(){c(Object(u))}));t.exports=f?function(t){var e=o(a(t)),i=c(e);return 0===i&&"-"==h(e,0)?-0:i}:c},3009:function(t,e,i){var n=i(7854),r=i(7293),s=i(1702),a=i(1340),o=i(3111).trim,l=i(1361),h=n.parseInt,c=n.Symbol,p=c&&c.iterator,u=/^[+-]?0x/i,f=s(u.exec),d=8!==h(l+"08")||22!==h(l+"0x16")||p&&!r((function(){h(Object(p))}));t.exports=d?function(t,e){var i=o(a(t));return h(i,e>>>0||(f(u,i)?16:10))}:h},3070:function(t,e,i){var n=i(7854),r=i(9781),s=i(4664),a=i(3353),o=i(9670),l=i(4948),h=n.TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,u="enumerable",f="configurable",d="writable";e.f=r?a?function(t,e,i){if(o(t),e=l(e),o(i),"function"==typeof t&&"prototype"===e&&"value"in i&&d in i&&!i.writable){var n=p(t,e);n&&n.writable&&(t[e]=i.value,i={configurable:f in i?i.configurable:n.configurable,enumerable:u in i?i.enumerable:n.enumerable,writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(o(t),e=l(e),o(i),s)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw h("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var n=i(9781),r=i(6916),s=i(5296),a=i(9114),o=i(5656),l=i(4948),h=i(2597),c=i(4664),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=o(t),e=l(e),c)try{return p(t,e)}catch(t){}if(h(t,e))return a(!r(s.f,t,e),t[e])}},8006:function(t,e,i){var n=i(6324),r=i(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,i){var n=i(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,i){var n=i(1702),r=i(2597),s=i(5656),a=i(1318).indexOf,o=i(3501),l=n([].push);t.exports=function(t,e){var i,n=s(t),h=0,c=[];for(i in n)!r(o,i)&&r(n,i)&&l(c,i);for(;e.length>h;)r(n,i=e[h++])&&(~a(c,i)||l(c,i));return c}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},7674:function(t,e,i){var n=i(1702),r=i(9670),s=i(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return r(i),s(n),e?t(i,n):i.__proto__=n,i}}():void 0)},288:function(t,e,i){"use strict";var n=i(1694),r=i(648);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(t,e,i){var n=i(7854),r=i(6916),s=i(614),a=i(111),o=n.TypeError;t.exports=function(t,e){var i,n;if("string"===e&&s(i=t.toString)&&!a(n=r(i,t)))return n;if(s(i=t.valueOf)&&!a(n=r(i,t)))return n;if("string"!==e&&s(i=t.toString)&&!a(n=r(i,t)))return n;throw o("Can't convert object to primitive value")}},3887:function(t,e,i){var n=i(5005),r=i(1702),s=i(8006),a=i(5181),o=i(9670),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=s.f(o(t)),i=a.f;return i?l(e,i(t)):e}},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},3702:function(t,e,i){var n=i(7854),r=i(2492),s=i(614),a=i(4705),o=i(2788),l=i(5112),h=i(7871),c=i(1913),p=i(7392),u=r&&r.prototype,f=l("species"),d=!1,m=s(n.PromiseRejectionEvent),g=a("Promise",(function(){var t=o(r),e=t!==String(r);if(!e&&66===p)return!0;if(c&&(!u.catch||!u.finally))return!0;if(p>=51&&/native code/.test(t))return!1;var i=new r((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(i.constructor={})[f]=n,!(d=i.then((function(){}))instanceof n)||!e&&h&&!m}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:d}},2492:function(t,e,i){var n=i(7854);t.exports=n.Promise},9478:function(t,e,i){var n=i(9670),r=i(111),s=i(8523);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=s.f(t);return(0,i.resolve)(e),i.promise}},612:function(t,e,i){var n=i(2492),r=i(7072),s=i(3702).CONSTRUCTOR;t.exports=s||!r((function(t){n.all(t).then(void 0,(function(){}))}))},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},4488:function(t,e,i){var n=i(7854).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},3505:function(t,e,i){var n=i(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},6340:function(t,e,i){"use strict";var n=i(5005),r=i(3070),s=i(5112),a=i(9781),o=s("species");t.exports=function(t){var e=n(t),i=r.f;a&&e&&!e[o]&&i(e,o,{configurable:!0,get:function(){return this}})}},8003:function(t,e,i){var n=i(3070).f,r=i(2597),s=i(5112)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,s)&&n(t,s,{configurable:!0,value:e})}},6200:function(t,e,i){var n=i(2309),r=i(9711),s=n("keys");t.exports=function(t){return s[t]||(s[t]=r(t))}},5465:function(t,e,i){var n=i(7854),r=i(3505),s="__core-js_shared__",a=n[s]||r(s,{});t.exports=a},2309:function(t,e,i){var n=i(1913),r=i(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.5",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,i){var n=i(9670),r=i(9483),s=i(5112)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||null==(i=n(a)[s])?e:r(i)}},3111:function(t,e,i){var n=i(1702),r=i(4488),s=i(1340),a=i(1361),o=n("".replace),l="["+a+"]",h=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),p=function(t){return function(e){var i=s(r(e));return 1&t&&(i=o(i,h,"")),2&t&&(i=o(i,c,"")),i}};t.exports={start:p(1),end:p(2),trim:p(3)}},261:function(t,e,i){var n,r,s,a,o=i(7854),l=i(2104),h=i(9974),c=i(614),p=i(2597),u=i(7293),f=i(490),d=i(206),m=i(317),g=i(8053),y=i(6833),v=i(5268),b=o.setImmediate,x=o.clearImmediate,E=o.process,_=o.Dispatch,S=o.Function,P=o.MessageChannel,C=o.String,w=0,T={},M="onreadystatechange";try{n=o.location}catch(t){}var A=function(t){if(p(T,t)){var e=T[t];delete T[t],e()}},k=function(t){return function(){A(t)}},D=function(t){A(t.data)},I=function(t){o.postMessage(C(t),n.protocol+"//"+n.host)};b&&x||(b=function(t){g(arguments.length,1);var e=c(t)?t:S(t),i=d(arguments,1);return T[++w]=function(){l(e,void 0,i)},r(w),w},x=function(t){delete T[t]},v?r=function(t){E.nextTick(k(t))}:_&&_.now?r=function(t){_.now(k(t))}:P&&!y?(a=(s=new P).port2,s.port1.onmessage=D,r=h(a.postMessage,a)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&n&&"file:"!==n.protocol&&!u(I)?(r=I,o.addEventListener("message",D,!1)):r=M in m("script")?function(t){f.appendChild(m("script")).onreadystatechange=function(){f.removeChild(this),A(t)}}:function(t){setTimeout(k(t),0)}),t.exports={set:b,clear:x}},863:function(t,e,i){var n=i(1702);t.exports=n(1..valueOf)},1400:function(t,e,i){var n=i(9303),r=Math.max,s=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):s(i,e)}},5656:function(t,e,i){var n=i(8361),r=i(4488);t.exports=function(t){return n(r(t))}},9303:function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?i:e)(n)}},7466:function(t,e,i){var n=i(9303),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},7908:function(t,e,i){var n=i(7854),r=i(4488),s=n.Object;t.exports=function(t){return s(r(t))}},7593:function(t,e,i){var n=i(7854),r=i(6916),s=i(111),a=i(2190),o=i(8173),l=i(2140),h=i(5112),c=n.TypeError,p=h("toPrimitive");t.exports=function(t,e){if(!s(t)||a(t))return t;var i,n=o(t,p);if(n){if(void 0===e&&(e="default"),i=r(n,t,e),!s(i)||a(i))return i;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},4948:function(t,e,i){var n=i(7593),r=i(2190);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},1694:function(t,e,i){var n={};n[i(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:function(t,e,i){var n=i(7854),r=i(648),s=n.String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t)}},6330:function(t,e,i){var n=i(7854).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},9711:function(t,e,i){var n=i(1702),r=0,s=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+s,36)}},3307:function(t,e,i){var n=i(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){var n=i(9781),r=i(7293);t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,i){var n=i(7854).TypeError;t.exports=function(t,e){if(t<e)throw n("Not enough arguments");return t}},5112:function(t,e,i){var n=i(7854),r=i(2309),s=i(2597),a=i(9711),o=i(133),l=i(3307),h=r("wks"),c=n.Symbol,p=c&&c.for,u=l?c:c&&c.withoutSetter||a;t.exports=function(t){if(!s(h,t)||!o&&"string"!=typeof h[t]){var e="Symbol."+t;o&&s(c,t)?h[t]=c[t]:h[t]=l&&p?p(e):u(e)}return h[t]}},1361:function(t){t.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},2222:function(t,e,i){"use strict";var n=i(2109),r=i(7854),s=i(7293),a=i(3157),o=i(111),l=i(7908),h=i(6244),c=i(6135),p=i(5417),u=i(1194),f=i(5112),d=i(7392),m=f("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",v=r.TypeError,b=d>=51||!s((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),x=u("concat"),E=function(t){if(!o(t))return!1;var e=t[m];return void 0!==e?!!e:a(t)};n({target:"Array",proto:!0,arity:1,forced:!b||!x},{concat:function(t){var e,i,n,r,s,a=l(this),o=p(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(E(s=-1===e?a:arguments[e])){if(u+(r=h(s))>g)throw v(y);for(i=0;i<r;i++,u++)i in s&&c(o,u,s[i])}else{if(u>=g)throw v(y);c(o,u++,s)}return o.length=u,o}})},9653:function(t,e,i){"use strict";var n=i(9781),r=i(7854),s=i(1702),a=i(4705),o=i(8052),l=i(2597),h=i(9587),c=i(7976),p=i(2190),u=i(7593),f=i(7293),d=i(8006).f,m=i(1236).f,g=i(3070).f,y=i(863),v=i(3111).trim,b="Number",x=r.Number,E=x.prototype,_=r.TypeError,S=s("".slice),P=s("".charCodeAt),C=function(t){var e=u(t,"number");return"bigint"==typeof e?e:w(e)},w=function(t){var e,i,n,r,s,a,o,l,h=u(t,"number");if(p(h))throw _("Cannot convert a Symbol value to a number");if("string"==typeof h&&h.length>2)if(h=v(h),43===(e=P(h,0))||45===e){if(88===(i=P(h,2))||120===i)return NaN}else if(48===e){switch(P(h,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+h}for(a=(s=S(h,2)).length,o=0;o<a;o++)if((l=P(s,o))<48||l>r)return NaN;return parseInt(s,n)}return+h};if(a(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var T,M=function(t){var e=arguments.length<1?0:x(C(t)),i=this;return c(E,i)&&f((function(){y(i)}))?h(Object(e),i,M):e},A=n?d(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),k=0;A.length>k;k++)l(x,T=A[k])&&!l(M,T)&&g(M,T,m(x,T));M.prototype=E,E.constructor=M,o(r,b,M,{constructor:!0})}},9494:function(t,e,i){var n=i(2109),r=i(3009);n({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},1539:function(t,e,i){var n=i(1694),r=i(8052),s=i(288);n||r(Object.prototype,"toString",s,{unsafe:!0})},4678:function(t,e,i){var n=i(2109),r=i(2814);n({global:!0,forced:parseFloat!=r},{parseFloat:r})},821:function(t,e,i){"use strict";var n=i(2109),r=i(6916),s=i(9662),a=i(8523),o=i(2534),l=i(408);n({target:"Promise",stat:!0,forced:i(612)},{all:function(t){var e=this,i=a.f(e),n=i.resolve,h=i.reject,c=o((function(){var i=s(e.resolve),a=[],o=0,c=1;l(t,(function(t){var s=o++,l=!1;c++,r(i,e,t).then((function(t){l||(l=!0,a[s]=t,--c||n(a))}),h)})),--c||n(a)}));return c.error&&h(c.value),i.promise}})},4164:function(t,e,i){"use strict";var n=i(2109),r=i(1913),s=i(3702).CONSTRUCTOR,a=i(2492),o=i(5005),l=i(614),h=i(8052),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&l(a)){var p=o("Promise").prototype.catch;c.catch!==p&&h(c,"catch",p,{unsafe:!0})}},3401:function(t,e,i){"use strict";var n,r,s,a=i(2109),o=i(1913),l=i(5268),h=i(7854),c=i(6916),p=i(8052),u=i(7674),f=i(8003),d=i(6340),m=i(9662),g=i(614),y=i(111),v=i(5787),b=i(6707),x=i(261).set,E=i(5948),_=i(842),S=i(2534),P=i(8572),C=i(9909),w=i(2492),T=i(3702),M=i(8523),A="Promise",k=T.CONSTRUCTOR,D=T.REJECTION_EVENT,I=T.SUBCLASSING,F=C.getterFor(A),L=C.set,O=w&&w.prototype,R=w,B=O,z=h.TypeError,V=h.document,N=h.process,j=M.f,G=j,H=!!(V&&V.createEvent&&h.dispatchEvent),W="unhandledrejection",q=function(t){var e;return!(!y(t)||!g(e=t.then))&&e},$=function(t,e){var i,n,r,s=e.value,a=1==e.state,o=a?t.ok:t.fail,l=t.resolve,h=t.reject,p=t.domain;try{o?(a||(2===e.rejection&&J(e),e.rejection=1),!0===o?i=s:(p&&p.enter(),i=o(s),p&&(p.exit(),r=!0)),i===t.promise?h(z("Promise-chain cycle")):(n=q(i))?c(n,i,l,h):l(i)):h(s)}catch(t){p&&!r&&p.exit(),h(t)}},X=function(t,e){t.notified||(t.notified=!0,E((function(){for(var i,n=t.reactions;i=n.get();)$(i,t);t.notified=!1,e&&!t.rejection&&U(t)})))},Y=function(t,e,i){var n,r;H?((n=V.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),h.dispatchEvent(n)):n={promise:e,reason:i},!D&&(r=h["on"+t])?r(n):t===W&&_("Unhandled promise rejection",i)},U=function(t){c(x,h,(function(){var e,i=t.facade,n=t.value;if(Z(t)&&(e=S((function(){l?N.emit("unhandledRejection",n,i):Y(W,i,n)})),t.rejection=l||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},J=function(t){c(x,h,(function(){var e=t.facade;l?N.emit("rejectionHandled",e):Y("rejectionhandled",e,t.value)}))},K=function(t,e,i){return function(n){t(e,n,i)}},Q=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,X(t,!0))},tt=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw z("Promise can't be resolved itself");var n=q(e);n?E((function(){var i={done:!1};try{c(n,e,K(tt,i,t),K(Q,i,t))}catch(e){Q(i,e,t)}})):(t.value=e,t.state=1,X(t,!1))}catch(e){Q({done:!1},e,t)}}};if(k&&(B=(R=function(t){v(this,B),m(t),c(n,this);var e=F(this);try{t(K(tt,e),K(Q,e))}catch(t){Q(e,t)}}).prototype,(n=function(t){L(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new P,rejection:!1,state:0,value:void 0})}).prototype=p(B,"then",(function(t,e){var i=F(this),n=j(b(this,R));return i.parent=!0,n.ok=!g(t)||t,n.fail=g(e)&&e,n.domain=l?N.domain:void 0,0==i.state?i.reactions.add(n):E((function(){$(n,i)})),n.promise})),r=function(){var t=new n,e=F(t);this.promise=t,this.resolve=K(tt,e),this.reject=K(Q,e)},M.f=j=function(t){return t===R||undefined===t?new r(t):G(t)},!o&&g(w)&&O!==Object.prototype)){s=O.then,I||p(O,"then",(function(t,e){var i=this;return new R((function(t,e){c(s,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete O.constructor}catch(t){}u&&u(O,B)}a({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:R}),f(R,A,!1,!0),d(A)},8674:function(t,e,i){i(3401),i(821),i(4164),i(6027),i(683),i(6294)},6027:function(t,e,i){"use strict";var n=i(2109),r=i(6916),s=i(9662),a=i(8523),o=i(2534),l=i(408);n({target:"Promise",stat:!0,forced:i(612)},{race:function(t){var e=this,i=a.f(e),n=i.reject,h=o((function(){var a=s(e.resolve);l(t,(function(t){r(a,e,t).then(i.resolve,n)}))}));return h.error&&n(h.value),i.promise}})}
vendor: 34,376 bytes, line 2
2,683:function(t,e,i){"use strict";var n=i(2109),r=i(6916),s=i(8523);n({target:"Promise",stat:!0,forced:i(3702).CONSTRUCTOR},{reject:function(t){var e=s.f(this);return r(e.reject,void 0,t),e.promise}})},6294:function(t,e,i){"use strict";var n=i(2109),r=i(5005),s=i(1913),a=i(2492),o=i(3702).CONSTRUCTOR,l=i(9478),h=r("Promise"),c=s&&!o;n({target:"Promise",stat:!0,forced:s||o},{resolve:function(t){return l(c&&this===h?a:this,t)}})},4747:function(t,e,i){var n=i(7854),r=i(8324),s=i(8509),a=i(8533),o=i(8880),l=function(t){if(t&&t.forEach!==a)try{o(t,"forEach",a)}catch(e){t.forEach=a}};for(var h in r)r[h]&&l(n[h]&&n[h].prototype);l(s)},7158:function(t){var e,i;e="undefined"!=typeof window?window:this,i=function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let r of i)n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e);return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t},t.exports?t.exports=i():e.EvEmitter=i()},9047:function(t){var e,i;e=this,i=function(t){let e={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){let i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){let e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,i){return(t=e.makeArray(t)).filter((t=>t instanceof HTMLElement)).reduce(((t,e)=>{if(!i)return t.push(e),t;e.matches(i)&&t.push(e);let n=e.querySelectorAll(i);return t=t.concat(...n)}),[])},debounceMethod:function(t,e,i){i=i||100;let n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[r]);let t=arguments;this[r]=setTimeout((()=>{n.apply(this,t),delete this[r]}),i)}},docReady:function(t){let e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},i=t.console;return e.htmlInit=function(n,r){e.docReady((function(){let s="data-"+e.toDashed(r),a=document.querySelectorAll(`[${s}]`),o=t.jQuery;[...a].forEach((t=>{let e,a=t.getAttribute(s);try{e=a&&JSON.parse(a)}catch(e){return void(i&&i.error(`Error parsing ${s} on ${t.className}: ${e}`))}let l=new n(t,e);o&&o.data(t,r,l)}))}))},e},t.exports?t.exports=i(e):e.fizzyUIUtils=i(e)},3597:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(9047)):n(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.prototype;return i.insert=function(t,e){let i=this._makeCells(t);if(!i||!i.length)return;let n=this.cells.length;e=void 0===e?n:e;let r=function(t){let e=document.createDocumentFragment();return t.forEach((t=>e.appendChild(t.element))),e}(i),s=e===n;if(s)this.slider.appendChild(r);else{let t=this.cells[e].element;this.slider.insertBefore(r,t)}if(0===e)this.cells=i.concat(this.cells);else if(s)this.cells=this.cells.concat(i);else{let t=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(t)}this._sizeCells(i),this.cellChange(e),this.positionSliderAtSelected()},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){let i=this.getCells(t);if(!i||!i.length)return;let n=this.cells.length-1;i.forEach((t=>{t.remove();let i=this.cells.indexOf(t);n=Math.min(i,n),e.removeFrom(this.cells,t)})),this.cellChange(n),this.positionSliderAtSelected()},i.cellSizeChange=function(t){let e=this.getCell(t);if(!e)return;e.getSize();let i=this.cells.indexOf(e);this.cellChange(i)},i.cellChange=function(t){let e=this.selectedElement;this._positionCells(t),this._updateWrapShiftCells(),this.setGallerySize();let i=this.getCell(e);i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex)},t}))},7880:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(9047)):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=n(e.fizzyUIUtils))}("undefined"!=typeof window?window:this,(function(t){let e={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();let t=this.x;this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating&&requestAnimationFrame((()=>this.animate()))},positionSlider:function(){let e=this.x;this.isWrapping&&(e=t.modulo(e,this.slideableWidth)-this.slideableWidth,this.shiftWrapCells(e)),this.setTranslateX(e,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,this.options.rightToLeft&&(t=-t);let i=this.getPositionValue(t);this.slider.style.transform=e?`translate3d(${i},0,0)`:`translateX(${i})`},dispatchScrollEvent:function(){let t=this.slides[0];if(!t)return;let e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){!this.isPointerDown&&Math.round(100*this.x)===Math.round(100*t)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){let e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);let i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){t.forEach((t=>{let n=e>0?i:0;this._wrapShiftCell(t,n),e-=t.size.outerWidth}))},_unshiftCells:function(t){t&&t.length&&t.forEach((t=>this._wrapShiftCell(t,0)))},_wrapShiftCell:function(t,e){this._renderCellPosition(t,t.x+this.slideableWidth*e)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(!this.isDraggable||!this.isPointerDown)return;let t=this.dragX-this.x-this.velocity;this.applyForce(t)},applySelectedAttraction:function(){if(this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length)return;let t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}};return e}))},7229:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6131)):(e.Flickity=e.Flickity||{},e.Flickity.Cell=n(e.getSize))}("undefined"!=typeof window?window:this,(function(t){const e="flickity-cell";function i(t){this.element=t,this.element.classList.add(e),this.x=0,this.unselect()}let n=i.prototype;return n.destroy=function(){this.unselect(),this.element.classList.remove(e),this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=t(this.element)},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.remove=function(){this.element.remove()},i}))},6680:function(t,e,i){!function(e,n){if(t.exports)t.exports=n(e,i(7158),i(6131),i(9047),i(7229),i(9714),i(7880));else{let t=e.Flickity;e.Flickity=n(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}}("undefined"!=typeof window?window:this,(function(t,e,i,n,r,s,a){const{getComputedStyle:o,console:l}=t;let{jQuery:h}=t,c=0,p={};function u(t,e){let i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){let t=p[this.element.flickityGUID];return t&&t.option(e),t}h&&(this.$element=h(this.element)),this.options={...this.constructor.defaults},this.option(e),this._create()}else l&&l.error(`Bad element for Flickity: ${i||t}`)}u.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},u.create={};let f=u.prototype;Object.assign(f,e.prototype),f._create=function(){let{resize:e,watchCSS:i,rightToLeft:n}=this.options,r=this.guid=++c;this.element.flickityGUID=r,p[r]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.beginMargin=n?"marginRight":"marginLeft",this.endMargin=n?"marginLeft":"marginRight",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),this.focusableElems=[this.element],(e||i)&&t.addEventListener("resize",this);for(let t in this.options.on){let e=this.options.on[t];this.on(t,e)}for(let t in u.create)u.create[t].call(this);i?this.watchCSS():this.activate()},f.option=function(t){Object.assign(this.options,t)},f.activate=function(){if(this.isActive)return;this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();let t=this._filterFindCellElements(this.element.children);this.slider.append(...t),this.viewport.append(this.slider),this.element.append(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")},f._createSlider=function(){let t=document.createElement("div");t.className="flickity-slider",this.slider=t},f._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize()},f._makeCells=function(t){return this._filterFindCellElements(t).map((t=>new r(t)))},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;let e=0;if(t>0){let i=this.cells[t-1];e=i.x+i.size.outerWidth}this.cells.slice(t).forEach((t=>{t.x=e,this._renderCellPosition(t,e),e+=t.size.outerWidth,this.maxCellHeight=Math.max(t.size.outerHeight,this.maxCellHeight)})),this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=this.cells.length?this.getLastSlide().target-this.slides[0].target:0},f._renderCellPosition=function(t,e){let i=e*(this.options.rightToLeft?-1:1);this.options.percentPosition&&(i*=this.size.innerWidth/t.size.width);let n=this.getPositionValue(i);t.element.style.transform=`translateX( ${n} )`},f._sizeCells=function(t){t.forEach((t=>t.getSize()))},f.updateSlides=function(){if(this.slides=[],!this.cells.length)return;let{beginMargin:t,endMargin:e}=this,i=new s(t,e,this.cellAlign);this.slides.push(i);let n=this._getCanCellFit();this.cells.forEach(((r,a)=>{if(!i.cells.length)return void i.addCell(r);let o=i.outerWidth-i.firstMargin+(r.size.outerWidth-r.size[e]);n(a,o)||(i.updateTarget(),i=new s(t,e,this.cellAlign),this.slides.push(i)),i.addCell(r)})),i.updateTarget(),this.updateSelectedSlide()},f._getCanCellFit=function(){let{groupCells:t}=this.options;if(!t)return()=>!1;if("number"==typeof t){let e=parseInt(t,10);return t=>t%e!=0}let e=1,i="string"==typeof t&&t.match(/^(\d+)%$/);i&&(e=parseInt(i[1],10)/100);let n=(this.size.innerWidth+1)*e;return(t,e)=>e<=n},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};let d={left:0,center:.5,right:1};f.setCellAlign=function(){let{cellAlign:t,rightToLeft:e}=this.options,i=d[t];this.cellAlign=void 0!==i?i:t,e&&(this.cellAlign=1-this.cellAlign)},f.setGallerySize=function(){if(!this.options.setGallerySize)return;let t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=`${t}px`},f._updateWrapShiftCells=function(){if(this.isWrapping=this.getIsWrapping(),!this.isWrapping)return;this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);let t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1);let i=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(i,0,1)},f.getIsWrapping=function(){let{wrapAround:t}=this.options;if(!t||this.slides.length<2)return!1;if("fill"!==t)return!0;let e=this.slideableWidth-this.size.innerWidth;if(e>this.size.innerWidth)return!0;for(let t of this.cells)if(t.size.outerWidth>e)return!1;return!0},f._getGapCells=function(t,e,i){let n=[];for(;t>0;){let r=this.cells[e];if(!r)break;n.push(r),e+=i,t-=r.size.outerWidth}return n},f._containSlides=function(){if(!(this.options.contain&&!this.isWrapping&&this.cells.length))return;let t=this.slideableWidth-this.getLastCell().size[this.endMargin];if(t<this.size.innerWidth)this.slides.forEach((e=>{e.target=t*this.cellAlign}));else{let e=this.cursorPosition+this.cells[0].size[this.beginMargin],i=t-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach((t=>{t.target=Math.max(t.target,e),t.target=Math.min(t.target,i)}))}},f.dispatchEvent=function(t,e,i){let n=e?[e].concat(i):i;if(this.emitEvent(t,n),h&&this.$element){let n=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){let i=new h.Event(e);i.type=t,n=i}this.$element.trigger(n,i)}};const m=["dragStart","dragMove","dragEnd","pointerDown","pointerMove","pointerEnd","staticClick"];let g=f.emitEvent;f.emitEvent=function(t,e){if("staticClick"===t){let t=this.getParentCell(e[0].target),i=t&&t.element,n=t&&this.cells.indexOf(t);e=e.concat(i,n)}if(g.call(this,t,e),!m.includes(t)||!h||!this.$element)return;t+=this.options.namespaceJQueryEvents?".flickity":"";let i=e.shift(0),n=new h.Event(i);n.type=t,this.$element.trigger(n,e)},f.select=function(t,e,i){if(!this.isActive)return;if(t=parseInt(t,10),this._wrapSelect(t),(this.isWrapping||e)&&(t=n.modulo(t,this.slides.length)),!this.slides[t])return;let r=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!==r&&this.dispatchEvent("change",null,[t])},f._wrapSelect=function(t){if(!this.isWrapping)return;const{selectedIndex:e,slideableWidth:i,slides:{length:r}}=this;if(!this.isDragSelect){let i=n.modulo(t,r),s=Math.abs(i-e),a=Math.abs(i+r-e),o=Math.abs(i-r-e);a<s?t+=r:o<s&&(t-=r)}t<0?this.x-=i:t>=r&&(this.x+=i)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){let t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){let t=this.options.initialIndex;if(this.isInitActivated)return void this.select(this.selectedIndex,!1,!0);if(t&&"string"==typeof t){if(this.queryCell(t))return void this.selectCell(t,!1,!0)}let e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)},f.selectCell=function(t,e,i){let n=this.queryCell(t);if(!n)return;let r=this.getCellSlideIndex(n);this.select(r,e,i)},f.getCellSlideIndex=function(t){let e=this.slides.find((e=>e.cells.includes(t)));return this.slides.indexOf(e)},f.getCell=function(t){for(let e of this.cells)if(e.element===t)return e},f.getCells=function(t){return(t=n.makeArray(t)).map((t=>this.getCell(t))).filter(Boolean)},f.getCellElements=function(){return this.cells.map((t=>t.element))},f.getParentCell=function(t){let e=this.getCell(t);if(e)return e;let i=t.closest(".flickity-slider > *");return this.getCell(i)},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;let i=this.slides.length;if(1+2*t>=i)return this.getCellElements();let r=[];for(let s=e-t;s<=e+t;s++){let t=this.isWrapping?n.modulo(s,i):s,e=this.slides[t];e&&(r=r.concat(e.getCellElements()))}return r},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];return"string"==typeof t&&!t.match(/^[#.]?[\d/]/)&&(t=this.element.querySelector(t)),this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(u,"onresize",150),f.resize=function(){if(!this.isActive||this.isAnimating||this.isDragging)return;this.getSize(),this.isWrapping&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");let t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)},f.watchCSS=function(){if(!this.options.watchCSS)return;o(this.element,":after").content.includes("flickity")?this.activate():this.deactivate()},f.onkeydown=function(t){let{activeElement:e}=document,i=u.keyboardHandlers[t.key];this.options.accessibility&&e&&i&&this.focusableElems.some((t=>e===t))&&i.call(this)},u.keyboardHandlers={ArrowLeft:function(){this.uiChange(),this[this.options.rightToLeft?"next":"previous"]()},ArrowRight:function(){this.uiChange(),this[this.options.rightToLeft?"previous":"next"]()}},f.focus=function(){this.element.focus({preventScroll:!0})},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach((t=>t.destroy())),this.viewport.remove(),this.element.append(...this.slider.children),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),h&&this.$element&&h.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete p[this.guid]},Object.assign(f,a),u.data=function(t){if(t=n.getQueryElement(t))return p[t.flickityGUID]},n.htmlInit(u,"flickity");let{jQueryBridget:y}=t;return h&&y&&y("flickity",u,h),u.setJQuery=function(t){h=t},u.Cell=r,u.Slide=s,u}))},9690:function(t,e,i){!function(e,n){t.exports?t.exports=n(e,i(6680),i(4842),i(9047)):e.Flickity=n(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e,i,n){Object.assign(e.defaults,{draggable:">1",dragThreshold:3});let r=e.prototype;function s(){return{x:t.pageXOffset,y:t.pageYOffset}}return Object.assign(r,i.prototype),r.touchActionValue="",e.create.drag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("pointerDown",this.handlePointerDone),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.on("staticClick",this.handleStaticClick)},r.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},r.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},r.updateDraggable=function(){">1"===this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.element.classList.toggle("is-draggable",this.isDraggable)},r._uiChangeDrag=function(){delete this.isFreeScrolling},r.handlePointerDown=function(e){if(!this.isDraggable)return void this.bindActivePointerEvents(e);let i="touchstart"===e.type,n="touch"===e.pointerType,r=e.target.matches("input, textarea, select");i||n||r||e.preventDefault(),r||this.focus(),document.activeElement!==this.element&&document.activeElement.blur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=s(),t.addEventListener("scroll",this),this.bindActivePointerEvents(e)},r.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},r.handlePointerUp=function(){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down")},r.handlePointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},r.handleDragStart=function(){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this))},r.handleDragMove=function(t,e,i){if(!this.isDraggable)return;t.preventDefault(),this.previousDragX=this.dragX;let n=this.options.rightToLeft?-1:1;this.isWrapping&&(i.x%=this.slideableWidth);let r=this.dragStartPosition+i.x*n;if(!this.isWrapping){let t=Math.max(-this.slides[0].target,this.dragStartPosition);r=r>t?.5*(r+t):r;let e=Math.min(-this.getLastSlide().target,this.dragStartPosition);r=r<e?.5*(r+e):r}this.dragX=r,this.dragMoveTime=new Date},r.handleDragEnd=function(){if(!this.isDraggable)return;let{freeScroll:t}=this.options;t&&(this.isFreeScrolling=!0);let e=this.dragEndRestingSelect();if(t&&!this.isWrapping){let t=this.getRestingPosition();this.isFreeScrolling=-t>this.slides[0].target&&-t<this.getLastSlide().target}else t||e!==this.selectedIndex||(e+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.isWrapping,this.select(e),delete this.isDragSelect},r.dragEndRestingSelect=function(){let t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},r._getClosestResting=function(t,e,i){let n=this.selectedIndex,r=1/0,s=this.options.contain&&!this.isWrapping?(t,e)=>t<=e:(t,e)=>t<e;for(;s(e,r)&&(n+=i,r=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:r,index:n-i}},r.getSlideDistance=function(t,e){let i=this.slides.length,r=this.options.wrapAround&&i>1,s=r?n.modulo(e,i):e,a=this.slides[s];if(!a)return null;let o=r?this.slideableWidth*Math.floor(e/i):0;return t-(a.target+o)},r.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;let t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},r.onscroll=function(){let t=s(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this.pointerDone()},e}))},2835:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(7564)):n(e.Flickity,e.imagesLoaded)}("undefined"!=typeof window?window:this,(function(t,e){return t.create.imagesLoaded=function(){this.on("activate",this.imagesLoaded)},t.prototype.imagesLoaded=function(){if(!this.options.imagesLoaded)return;e(this.slider).on("progress",((t,e)=>{let i=this.getParentCell(e.img);this.cellSizeChange(i&&i.element),this.options.freeScroll||this.positionSliderAtSelected()}))},t}))},2442:function(t,e,i){if(t.exports){const e=i(6680);i(9690),i(2410),i(7573),i(8516),i(3597),i(7227),i(2835),t.exports=e}},7227:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(9047)):n(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e){const i="data-flickity-lazyload",n=`${i}-src`,r=`${i}-srcset`,s=`img[${i}], img[${n}], img[${r}], source[${r}]`;t.create.lazyLoad=function(){this.on("select",this.lazyLoad),this.handleLazyLoadComplete=this.onLazyLoadComplete.bind(this)};let a=t.prototype;function o(t){if(t.matches("img")){let e=t.getAttribute(i),s=t.getAttribute(n),a=t.getAttribute(r);if(e||s||a)return t}return[...t.querySelectorAll(s)]}function l(t,e){this.img=t,this.onComplete=e,this.load()}return a.lazyLoad=function(){let{lazyLoad:t}=this.options;if(!t)return;let e="number"==typeof t?t:0;this.getAdjacentCellElements(e).map(o).flat().forEach((t=>new l(t,this.handleLazyLoadComplete)))},a.onLazyLoadComplete=function(t,e){let i=this.getParentCell(t),n=i&&i.element;this.cellSizeChange(n),this.dispatchEvent("lazyLoad",e,n)},l.prototype.handleEvent=e.handleEvent,l.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);let t=this.img.getAttribute(i)||this.img.getAttribute(n),e=this.img.getAttribute(r);this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute(i),this.img.removeAttribute(n),this.img.removeAttribute(r)},l.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},l.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},l.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this),(this.img.parentNode.matches("picture")?this.img.parentNode:this.img).classList.add(e),this.onComplete(this.img,t)},t.LazyLoader=l,t}))},7573:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(9047)):n(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e){function i(){this.holder=document.createElement("div"),this.holder.className="flickity-page-dots",this.dots=[]}i.prototype.setDots=function(t){let e=t-this.dots.length;e>0?this.addDots(e):e<0&&this.removeDots(-e)},i.prototype.addDots=function(t){let e=new Array(t).fill().map(((t,e)=>{let i=document.createElement("button");i.setAttribute("type","button");let n=e+1+this.dots.length;return i.className="flickity-page-dot",i.textContent=`View slide ${n}`,i}));this.holder.append(...e),this.dots=this.dots.concat(e)},i.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach((t=>t.remove()))},i.prototype.updateSelected=function(t){this.selectedDot&&(this.selectedDot.classList.remove("is-selected"),this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[t],this.selectedDot.classList.add("is-selected"),this.selectedDot.setAttribute("aria-current","step"))},t.PageDots=i,Object.assign(t.defaults,{pageDots:!0}),t.create.pageDots=function(){this.options.pageDots&&(this.pageDots=new i,this.handlePageDotsClick=this.onPageDotsClick.bind(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))};let n=t.prototype;return n.activatePageDots=function(){this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots),this.pageDots.holder.addEventListener("click",this.handlePageDotsClick),this.element.append(this.pageDots.holder)},n.onPageDotsClick=function(t){let e=this.pageDots.dots.indexOf(t.target);-1!==e&&(this.uiChange(),this.select(e))},n.updateSelectedPageDots=function(){this.pageDots.updateSelected(this.selectedIndex)},n.updatePageDots=function(){this.pageDots.dots.forEach((t=>{e.removeFrom(this.focusableElems,t)})),this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots)},n.deactivatePageDots=function(){this.pageDots.holder.remove(),this.pageDots.holder.removeEventListener("click",this.handlePageDotsClick)},t.PageDots=i,t}))},8516:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680)):n(e.Flickity)}("undefined"!=typeof window?window:this,(function(t){function e(t,e){this.autoPlay=t,this.onTick=e,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}e.prototype.play=function(){if("playing"===this.state)return;document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick())},e.prototype.tick=function(){if("playing"!==this.state)return;let t="number"==typeof this.autoPlay?this.autoPlay:3e3;this.clear(),this.timeout=setTimeout((()=>{this.onTick(),this.tick()}),t)},e.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},e.prototype.clear=function(){clearTimeout(this.timeout)},e.prototype.pause=function(){"playing"===this.state&&(this.state="paused",this.clear())},e.prototype.unpause=function(){"paused"===this.state&&this.play()},e.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},e.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},Object.assign(t.defaults,{pauseAutoPlayOnHover:!0}),t.create.player=function(){this.player=new e(this.options.autoPlay,(()=>{this.next(!0)})),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)};let i=t.prototype;return i.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},i.playPlayer=function(){this.player.play()},i.stopPlayer=function(){this.player.stop()},i.pausePlayer=function(){this.player.pause()},i.unpausePlayer=function(){this.player.unpause()},i.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},i.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},i.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},t.Player=e,t}))},2410:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680)):n(e.Flickity)}("undefined"!=typeof window?window:this,(function(t){const e="http://www.w3.org/2000/svg";function i(t,e,i){this.increment=t,this.direction=e,this.isPrevious="previous"===t,this.isLeft="left"===e,this._create(i)}i.prototype._create=function(t){let e=this.element=document.createElement("button");e.className=`flickity-button flickity-prev-next-button ${this.increment}`;let i=this.isPrevious?"Previous":"Next";e.setAttribute("type","button"),e.setAttribute("aria-label",i),this.disable();let n=this.createSVG(i,t);e.append(n)},i.prototype.createSVG=function(t,i){let n=document.createElementNS(e,"svg");n.setAttribute("class","flickity-button-icon"),n.setAttribute("viewBox","0 0 100 100");let r=document.createElementNS(e,"title");r.append(t);let s=document.createElementNS(e,"path"),a=function(t){if("string"==typeof t)return t;let{x0:e,x1:i,x2:n,x3:r,y1:s,y2:a}=t;return`M ${e}, 50\n L ${i}, ${s+50}\n L ${n}, ${a+50}\n L ${r}, 50\n L ${n}, ${50-a}\n L ${i}, ${50-s}\n Z`}(i);return s.setAttribute("d",a),s.setAttribute("class","arrow"),this.isLeft||s.setAttribute("transform","translate(100, 100) rotate(180)"),n.append(r,s),n},i.prototype.enable=function(){this.element.removeAttribute("disabled")},i.prototype.disable=function(){this.element.setAttribute("disabled",!0)},Object.assign(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.create.prevNextButtons=function(){if(!this.options.prevNextButtons)return;let{rightToLeft:t,arrowShape:e}=this.options,n=t?"right":"left",r=t?"left":"right";this.prevButton=new i("previous",n,e),this.nextButton=new i("next",r,e),this.focusableElems.push(this.prevButton.element),this.focusableElems.push(this.nextButton.element),this.handlePrevButtonClick=()=>{this.uiChange(),this.previous()},this.handleNextButtonClick=()=>{this.uiChange(),this.next()},this.on("activate",this.activatePrevNextButtons),this.on("select",this.updatePrevNextButtons)};let n=t.prototype;return n.updatePrevNextButtons=function(){let t=this.slides.length?this.slides.length-1:0;this.updatePrevNextButton(this.prevButton,0),this.updatePrevNextButton(this.nextButton,t)},n.updatePrevNextButton=function(t,e){if(this.isWrapping&&this.slides.length>1)return void t.enable();let i=this.selectedIndex!==e;t[i?"enable":"disable"](),!i&&document.activeElement===t.element&&this.focus()},n.activatePrevNextButtons=function(){this.prevButton.element.addEventListener("click",this.handlePrevButtonClick),this.nextButton.element.addEventListener("click",this.handleNextButtonClick),this.element.append(this.prevButton.element,this.nextButton.element),this.on("deactivate",this.deactivatePrevNextButtons)},n.deactivatePrevNextButtons=function(){this.prevButton.element.remove(),this.nextButton.element.remove(),this.prevButton.element.removeEventListener("click",this.handlePrevButtonClick),this.nextButton.element.removeEventListener("click",this.handleNextButtonClick),this.off("deactivate",this.deactivatePrevNextButtons)},t.PrevNextButton=i,t}))},9714:function(t){!function(e,i){t.exports?t.exports=i():(e.Flickity=e.Flickity||{},e.Flickity.Slide=i())}("undefined"!=typeof window?window:this,(function(){function t(t,e,i){this.beginMargin=t,this.endMargin=e,this.cellAlign=i,this.cells=[],this.outerWidth=0,this.height=0}let e=t.prototype;return e.addCell=function(t){this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1===this.cells.length&&(this.x=t.x,this.firstMargin=t.size[this.beginMargin])},e.updateTarget=function(){let t=this.getLastCell(),e=t?t.size[this.endMargin]:0,i=this.outerWidth-(this.firstMargin+e);this.target=this.x+this.firstMargin+i*this.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]}
2,e.select=function(){this.cells.forEach((t=>t.select()))},e.unselect=function(){this.cells.forEach((t=>t.unselect()))},e.getCellElements=function(){return this.cells.map((t=>t.element))},t}))},6131:function(t){!function(e,i){t.exports?t.exports=i():e.getSize=i()}(window,(function(){function t(t){let e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}let e=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];e.length;return function(i){if("string"==typeof i&&(i=document.querySelector(i)),!(i&&"object"==typeof i&&i.nodeType))return;let n=getComputedStyle(i);if("none"==n.display)return function(){let t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return e.forEach((e=>{t[e]=0})),t}();let r={};r.width=i.offsetWidth,r.height=i.offsetHeight;let s=r.isBorderBox="border-box"==n.boxSizing;e.forEach((t=>{let e=n[t],i=parseFloat(e);r[t]=isNaN(i)?0:i}));let a=r.paddingLeft+r.paddingRight,o=r.paddingTop+r.paddingBottom,l=r.marginLeft+r.marginRight,h=r.marginTop+r.marginBottom,c=r.borderLeftWidth+r.borderRightWidth,p=r.borderTopWidth+r.borderBottomWidth,u=t(n.width);!1!==u&&(r.width=u+(s?0:a+c));let f=t(n.height);return!1!==f&&(r.height=f+(s?0:o+p)),r.innerWidth=r.width-(a+c),r.innerHeight=r.height-(o+p),r.outerWidth=r.width+l,r.outerHeight=r.height+h,r}}))},9092:function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i.d(e,{i:function(){return Xe}});var r,s,a,o,l,h,c,p,u,f,d,m,g=function(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r},y=1,v=[],b=[],x=[],E=Date.now,_=function(t,e){return e},S=function(t,e){return~x.indexOf(t)&&x[x.indexOf(t)+1][e]},P=function(t){return!!~f.indexOf(t)},C=function(t,e,i,n,r){return t.addEventListener(e,i,{passive:!n,capture:!!r})},w=function(t,e,i,n){return t.removeEventListener(e,i,!!n)},T="scrollLeft",M="scrollTop",A=function(){return d&&d.isPressed||b.cache++},k=function(t,e){var i=function i(n){if(n||0===n){y&&(a.history.scrollRestoration="manual");var r=d&&d.isPressed;n=i.v=Math.round(n)||(d&&d.iOS?1:0),t(n),i.cacheID=b.cache,r&&_("ss",n)}else(e||b.cache!==i.cacheID||_("ref"))&&(i.cacheID=b.cache,i.v=t());return i.v+i.offset};return i.offset=0,t&&i},D={s:T,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:k((function(t){return arguments.length?a.scrollTo(t,I.sc()):a.pageXOffset||o.scrollLeft||l.scrollLeft||h.scrollLeft||0}))},I={s:M,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:D,sc:k((function(t){return arguments.length?a.scrollTo(D.sc(),t):a.pageYOffset||o.scrollTop||l.scrollTop||h.scrollTop||0}))},F=function(t){return r.utils.toArray(t)[0]||("string"==typeof t&&!1!==r.config().nullTargetWarn?console.warn("Element not found:",t):null)},L=function(t,e){var i=e.s,n=e.sc,r=b.indexOf(t),s=n===I.sc?1:2;return!~r&&(r=b.push(t)-1),b[r+s]||(b[r+s]=k(S(t,i),!0)||(P(t)?n:k((function(e){return arguments.length?t[i]=e:t[i]}))))},O=function(t,e,i){var n=t,r=t,s=E(),a=s,o=e||50,l=Math.max(500,3*o),h=function(t,e){var l=E();e||l-s>o?(r=n,n=t,a=s,s=l):i?n+=t:n=r+(t-r)/(l-a)*(s-a)};return{update:h,reset:function(){r=n=i?0:n,a=s=0},getVelocity:function(t){var e=a,o=r,c=E();return(t||0===t)&&t!==n&&h(t),s===a||c-a>l?0:(n+(i?o:-o))/((i?c:s)-e)*1e3}}},R=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},B=function(t){var e=Math.max.apply(Math,t),i=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(i)?e:i},z=function(){var t,e,i,n;(u=r.core.globals().ScrollTrigger)&&u.core&&(t=u.core,e=t.bridge||{},i=t._scrollers,n=t._proxies,i.push.apply(i,b),n.push.apply(n,x),b=i,x=n,_=function(t,i){return e[t](i)})},V=function(t){return(r=t||g())&&"undefined"!=typeof document&&document.body&&(a=window,o=document,l=o.documentElement,h=o.body,f=[a,o,l,h],r.utils.clamp,p="onpointerenter"in h?"pointer":"mouse",c=N.isTouch=a.matchMedia&&a.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in a||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,m=N.eventTypes=("ontouchstart"in l?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in l?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return y=0}),500),z(),s=1),s};D.op=I,b.cache=0;var N=function(){function t(t){this.init(t)}var e,i,f;return t.prototype.init=function(t){s||V(r)||console.warn("Please gsap.registerPlugin(Observer)"),u||z();var e=t.tolerance,i=t.dragMinimum,n=t.type,f=t.target,g=t.lineHeight,y=t.debounce,b=t.preventDefault,x=t.onStop,_=t.onStopDelay,S=t.ignore,T=t.wheelSpeed,M=t.event,k=t.onDragStart,N=t.onDragEnd,j=t.onDrag,G=t.onPress,H=t.onRelease,W=t.onRight,q=t.onLeft,$=t.onUp,X=t.onDown,Y=t.onChangeX,U=t.onChangeY,Z=t.onChange,J=t.onToggleX,K=t.onToggleY,Q=t.onHover,tt=t.onHoverEnd,et=t.onMove,it=t.ignoreCheck,nt=t.isNormalizer,rt=t.onGestureStart,st=t.onGestureEnd,at=t.onWheel,ot=t.onEnable,lt=t.onDisable,ht=t.onClick,ct=t.scrollSpeed,pt=t.capture,ut=t.allowClicks,ft=t.lockAxis,dt=t.onLockAxis;this.target=f=F(f)||l,this.vars=t,S&&(S=r.utils.toArray(S)),e=e||0,i=i||0,T=T||1,ct=ct||1,n=n||"wheel,touch,pointer",y=!1!==y,g||(g=parseFloat(a.getComputedStyle(h).lineHeight)||22);var mt,gt,yt,vt,bt,xt,Et,_t=this,St=0,Pt=0,Ct=L(f,D),wt=L(f,I),Tt=Ct(),Mt=wt(),At=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===m[0],kt=P(f),Dt=f.ownerDocument||o,It=[0,0,0],Ft=[0,0,0],Lt=0,Ot=function(){return Lt=E()},Rt=function(t,e){return(_t.event=t)&&S&&~S.indexOf(t.target)||e&&At&&"touch"!==t.pointerType||it&&it
vendor: 5,218 bytes, line 2
2(t,e)},Bt=function(){var t=_t.deltaX=B(It),i=_t.deltaY=B(Ft),n=Math.abs(t)>=e,r=Math.abs(i)>=e;Z&&(n||r)&&Z(_t,t,i,It,Ft),n&&(W&&_t.deltaX>0&&W(_t),q&&_t.deltaX<0&&q(_t),Y&&Y(_t),J&&_t.deltaX<0!=St<0&&J(_t),St=_t.deltaX,It[0]=It[1]=It[2]=0),r&&(X&&_t.deltaY>0&&X(_t),$&&_t.deltaY<0&&$(_t),U&&U(_t),K&&_t.deltaY<0!=Pt<0&&K(_t),Pt=_t.deltaY,Ft[0]=Ft[1]=Ft[2]=0),(vt||yt)&&(et&&et(_t),dt&&xt&&dt(_t),yt&&(j(_t),yt=!1),vt=xt=!1),bt&&(at(_t),bt=!1),mt=0},zt=function(t,e,i){It[i]+=t,Ft[i]+=e,_t._vx.update(t),_t._vy.update(e),y?mt||(mt=requestAnimationFrame(Bt)):Bt()},Vt=function(t,e){"y"!==Et&&(It[2]+=t,_t._vx.update(t,!0)),"x"!==Et&&(Ft[2]+=e,_t._vy.update(e,!0)),ft&&!Et&&(_t.axis=Et=Math.abs(t)>Math.abs(e)?"x":"y",xt=!0),y?mt||(mt=requestAnimationFrame(Bt)):Bt()},Nt=function(t){if(!Rt(t,1)){var e=(t=R(t,b)).clientX,n=t.clientY,r=e-_t.x,s=n-_t.y,a=_t.isDragging;_t.x=e,_t.y=n,(a||Math.abs(_t.startX-e)>=i||Math.abs(_t.startY-n)>=i)&&(j&&(yt=!0),a||(_t.isDragging=!0),Vt(r,s),a||k&&k(_t))}},jt=_t.onPress=function(t){Rt(t,1)||(_t.axis=Et=null,gt.pause(),_t.isPressed=!0,t=R(t),St=Pt=0,_t.startX=_t.x=t.clientX,_t.startY=_t.y=t.clientY,_t._vx.reset(),_t._vy.reset(),C(nt?f:Dt,m[1],Nt,b,!0),_t.deltaX=_t.deltaY=0,G&&G(_t))},Gt=function(t){if(!Rt(t,1)){w(nt?f:Dt,m[1],Nt,!0);var e=_t.isDragging&&(Math.abs(_t.x-_t.startX)>3||Math.abs(_t.y-_t.startY)>3),i=R(t);e||(_t._vx.reset(),_t._vy.reset(),b&&ut&&r.delayedCall(.08,(function(){if(E()-Lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Dt.createEvent){var e=Dt.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,a,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),_t.isDragging=_t.isGesturing=_t.isPressed=!1,x&&!nt&>.restart(!0),N&&e&&N(_t),H&&H(_t,e)}},Ht=function(t){return t.touches&&t.touches.length>1&&(_t.isGesturing=!0)&&rt(t,_t.isDragging)},Wt=function(){return(_t.isGesturing=!1)||st(_t)},qt=function(t){if(!Rt(t)){var e=Ct(),i=wt();zt((e-Tt)*ct,(i-Mt)*ct,1),Tt=e,Mt=i,x&>.restart(!0)}},$t=function(t){if(!Rt(t)){t=R(t,b),at&&(bt=!0);var e=(1===t.deltaMode?g:2===t.deltaMode?a.innerHeight:1)*T;zt(t.deltaX*e,t.deltaY*e,0),x&&!nt&>.restart(!0)}},Xt=function(t){if(!Rt(t)){var e=t.clientX,i=t.clientY,n=e-_t.x,r=i-_t.y;_t.x=e,_t.y=i,vt=!0,(n||r)&&Vt(n,r)}},Yt=function(t){_t.event=t,Q(_t)},Ut=function(t){_t.event=t,tt(_t)},Zt=function(t){return Rt(t)||R(t,b)&&ht(_t)};gt=_t._dc=r.delayedCall(_||.25,(function(){_t._vx.reset(),_t._vy.reset(),gt.pause(),x&&x(_t)})).pause(),_t.deltaX=_t.deltaY=0,_t._vx=O(0,50,!0),_t._vy=O(0,50,!0),_t.scrollX=Ct,_t.scrollY=wt,_t.isDragging=_t.isGesturing=_t.isPressed=!1,_t.enable=function(t){return _t.isEnabled||(C(kt?Dt:f,"scroll",A),n.indexOf("scroll")>=0&&C(kt?Dt:f,"scroll",qt,b,pt),n.indexOf("wheel")>=0&&C(f,"wheel",$t,b,pt),(n.indexOf("touch")>=0&&c||n.indexOf("pointer")>=0)&&(C(f,m[0],jt,b,pt),C(Dt,m[2],Gt),C(Dt,m[3],Gt),ut&&C(f,"click",Ot,!1,!0),ht&&C(f,"click",Zt),rt&&C(Dt,"gesturestart",Ht),st&&C(Dt,"gestureend",Wt),Q&&C(f,p+"enter",Yt),tt&&C(f,p+"leave",Ut),et&&C(f,p+"move",Xt)),_t.isEnabled=!0,t&&t.type&&jt(t),ot&&ot(_t)),_t},_t.disable=function(){_t.isEnabled&&(v.filter((function(t){return t!==_t&&P(t.target)})).length||w(kt?Dt:f,"scroll",A),_t.isPressed&&(_t._vx.reset(),_t._vy.reset(),w(nt?f:Dt,m[1],Nt,!0)),w(kt?Dt:f,"scroll",qt,pt),w(f,"wheel",$t,pt),w(f,m[0],jt,pt),w(Dt,m[2],Gt),w(Dt,m[3],Gt),w(f,"click",Ot,!0),w(f,"click",Zt),w(Dt,"gesturestart",Ht),w(Dt,"gestureend",Wt),w(f,p+"enter",Yt),w(f,p+"leave",Ut),w(f,p+"move",Xt),_t.isEnabled=_t.isPressed=_t.isDragging=!1,lt&<(_t))},_t.kill=function(){_t.disable();var t=v.indexOf(_t);t>=0&&v.splice(t,1),d===_t&&(d=0)},v.push(_t),nt&&P(f)&&(d=_t),_t.enable(M)},e=t,(i=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&n(e.prototype,i),f&&n(e,f),t}();N.version="3.10.4",N.create=function(t){return new N(t)},N.register=V,N.getAll=function(){return v.slice()},N.getById=function(t){return v.filter((function(e){return e.vars.id===t}))[0]},g()&&r.registerPlugin(N);var j,G,H,W,q,$,X,Y,U,Z,J,K,Q,tt,et,it,nt,rt,st,at,ot,lt,ht,ct,pt,ut,ft,dt,mt,gt,yt,vt,bt,xt=1,Et=Date.now,_t=Et(),St=0,Pt=0,Ct=function(){return tt=1},wt=function(){return tt=0},Tt=function(t){return t},Mt=function(t){return Math.round(1e5*t)/1e5||0},At=function(){return"undefined"!=typeof window},kt=function(){return j||At()&&(j=window.gsap)&&j.registerPlugin&&j},Dt=function(t){return!!~X.indexOf(t)},It=function(t){return S(t,"getBoundingClientRect")||(Dt(t)?function(){return Ge.width=H.innerWidth,Ge.height=H.innerHeight,Ge}:function(){return ee(t)})},Ft=function(t,e){var i=e.s,n=e.d2,r=e.d,s=e.a;return(i="scroll"+n)&&(s=S(t,i))?s()-It(t)()[r]:Dt(t)?(q[i]||$[i])-(H["inner"+n]||q["client"+n]||$["client"+n]):t[i]-t["offset"+n]},Lt=function(t,e){for(var i=0;i<st.length;i+=3)(!e||~e.indexOf(st[i+1]))&&t(st[i],st[i+1],st[i+2])},Ot=function(t){return"string"==typeof t},Rt=function(t){return"function"==typeof t},Bt=function(t){return"number"==typeof t},zt=function(t){return"object"==typeof t},Vt=function(t){return Rt(t)&&t()},Nt=function(t,e){return function(){var i=Vt(t),n=Vt(e);return function(){Vt(i),Vt(n)}}}
2,jt=function(t,e,i){return t&&t.progress(e?0:1)&&i&&t.pause()},Gt=function(t,e){if(t.enabled){var i=e(t);i&&i.totalTime&&(t.callbackAnimation=i)}},Ht=Math.abs,Wt="left",qt="right",$t="bottom",Xt="width",Yt="height",Ut="padding",Zt="margin",Jt="Width",Kt="px",Qt=function(t){return H.getComputedStyle(t)},te=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},ee=function(t,e){var i=e&&"matrix(1, 0, 0, 1, 0, 0)"!==Qt(t)[et]&&j.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return i&&i.progress(0).kill(),n},ie=function(t,e){var i=e.d2;return t["offset"+i]||t["client"+i]||0},ne=function(t){var e,i=[],n=t.labels,r=t.duration();for(e in n)i.push(n[e]/r);return i},re=function(t){var e=j.utils.snap(t),i=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return i?function(t,n,r){var s;if(void 0===r&&(r=.001),!n)return e(t);if(n>0){for(t-=r,s=0;s<i.length;s++)if(i[s]>=t)return i[s];return i[s-1]}for(s=i.length,t+=r;s--;)if(i[s]<=t)return i[s];return i[0]}:function(i,n,r){void 0===r&&(r=.001);var s=e(i);return!n||Math.abs(s-i)<r||s-i<0==n<0?s:e(n<0?i-t:i+t)}},se=function(t,e,i,n){return i.split(",").forEach((function(i){return t(e,i,n)}))},ae=function(t,e,i,n,r){return t.addEventListener(e,i,{passive:!n,capture:!!r})},oe=function(t,e,i,n){return t.removeEventListener(e,i,!!n)},le=function(t,e,i){return i&&i.wheelHandler&&t(e,"wheel",i)},he={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},ce={toggleActions:"play",anticipatePin:0},pe={top:0,left:0,center:.5,bottom:1,right:1},ue=function(t,e){if(Ot(t)){var i=t.indexOf("="),n=~i?+(t.charAt(i-1)+1)*parseFloat(t.substr(i+1)):0;~i&&(t.indexOf("%")>i&&(n*=e/100),t=t.substr(0,i-1)),t=n+(t in pe?pe[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},fe=function(t,e,i,n,r,s,a,o){var l=r.startColor,h=r.endColor,c=r.fontSize,p=r.indent,u=r.fontWeight,f=W.createElement("div"),d=Dt(i)||"fixed"===S(i,"pinType"),m=-1!==t.indexOf("scroller"),g=d?$:i,y=-1!==t.indexOf("start"),v=y?l:h,b="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+((m||o)&&d?"fixed;":"absolute;"),(m||o||!d)&&(b+=(n===I?qt:$t)+":"+(s+parseFloat(p))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),f._isStart=y,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=b,f.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(f,g.children[0]):g.appendChild(f),f._offset=f["offset"+n.op.d2],de(f,0,n,y),f},de=function(t,e,i,n){var r={display:"block"},s=i[n?"os2":"p2"],a=i[n?"p2":"os2"];t._isFlipped=n,r[i.a+"Percent"]=n?-100:0,r[i.a]=n?"1px":0,r["border"+s+Jt]=1,r["border"+a+Jt]=0,r[i.p]=e+"px",j.set(t,r)},me=[],ge={},ye=function(){return Et()-St>34&&Oe()},ve=function(){(!ht||!ht.isPressed||ht.startX>$.clientWidth)&&(b.cache++,mt||(mt=requestAnimationFrame(Oe)),St||we("scrollStart"),St=Et())},be=function(){ut=H.innerWidth,pt=H.innerHeight},xe=function(){b.cache++,!Q&&!lt&&!W.fullscreenElement&&!W.webkitFullscreenElement&&(!ct||ut!==H.innerWidth||Math.abs(H.innerHeight-pt)>.25*H.innerHeight)&&Y.restart(!0)},Ee={},_e=[],Se=[],Pe=function(t){var e,i=j.ticker.frame,n=[],r=0;if(yt!==i||xt){for(Ae();r<Se.length;r+=4)(e=H.matchMedia(Se[r]).matches)!==Se[r+3]&&(Se[r+3]=e,e?n.push(r):Ae(1,Se[r])||Rt(Se[r+2])&&Se[r+2]());for(Me(),r=0;r<n.length;r++)e=n[r],gt=Se[e],Se[e+2]=Se[e+1](t);gt=0,G&&Ie(0,1),yt=i,we("matchMedia")}},Ce=function t(){return oe(Xe,"scrollEnd",t)||Ie(!0)},we=function(t){return Ee[t]&&Ee[t].map((function(t){return t()}))||_e},Te=[],Me=function(t){for(var e=0;e<Te.length;e+=5)t&&Te[e+4]!==t||(Te[e].style.cssText=Te[e+1],Te[e].getBBox&&Te[e].setAttribute("transform",Te[e+2]||""),Te[e+3].uncache=1)},Ae=function(t,e){var i;for(it=0;it<me.length;it++)i=me[it],e&&i.media!==e||(t?i.kill(1):i.revert());e&&Me(e),e||we("revert")},ke=function(){return b.cache++&&b.forEach((function(t){return"function"==typeof t&&(t.rec=0)}))},De=0,Ie=function(t,e){if(!St||t){vt=!0;var i=we("refreshInit");
2at&&Xe.sort(),e||Ae(),me.slice(0).forEach((function(t){return t.refresh()})),me.forEach((function(t){return"max"===t.vars.end&&t.setPositions(t.start,Ft(t.scroller,t._dir))})),i.forEach((function(t){return t&&t.render&&t.render(-1)})),ke(),Y.pause(),De++,vt=!1,we("refresh")}else ae(Xe,"scrollEnd",Ce)},Fe=0,Le=1,Oe=function(){if(!vt){Xe.isUpdating=!0,bt&&bt.update(0);var t=me.length,e=Et(),i=e-_t>=50,n=t&&me[0].scroll();if(Le=Fe>n?-1:1,Fe=n,i&&(St&&!tt&&e-St>200&&(St=0,we("scrollEnd")),J=_t,_t=e),Le<0){for(it=t;it-- >0;)me[it]&&me[it].update(0,i);Le=1}else for(it=0;it<t;it++)me[it]&&me[it].update(0,i);Xe.isUpdating=!1}mt=0},Re=[Wt,"top",$t,qt,"marginBottom","marginRight","marginTop","marginLeft","display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Be=Re.concat([Xt,Yt,"boxSizing","maxWidth","maxHeight","position",Zt,Ut,"paddingTop","paddingRight","paddingBottom","paddingLeft"]),ze=function(t,e,i,n){if(t.parentNode!==e){for(var r,s=Re.length,a=e.style,o=t.style;s--;)a[r=Re[s]]=i[r];a.position="absolute"===i.position?"absolute":"relative","inline"===i.display&&(a.display="inline-block"),o.bottom=o.right=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a.width=ie(t,D)+Kt,a.height=ie(t,I)+Kt,a.padding=o.margin=o.top=o.left="0",Ne(n),o.width=o.maxWidth=i.width,o.height=o.maxHeight=i.height,o.padding=i.padding,t.parentNode.insertBefore(e,t),e.appendChild(t)}},Ve=/([A-Z])/g,Ne=function(t){if(t){var e,i,n=t.t.style,r=t.length,s=0;for((t.t._gsap||j.core.getCache(t.t)).uncache=1;s<r;s+=2)i=t[s+1],e=t[s],i?n[e]=i:n[e]&&n.removeProperty(e.replace(Ve,"-$1").toLowerCase())}},je=function(t){for(var e=Be.length,i=t.style,n=[],r=0;r<e;r++)n.push(Be[r],i[Be[r]]);return n.t=t,n},Ge={left:0,top:0},He=function(t,e,i,n,r,s,a,o,l,h,c,p,u){Rt(t)&&(t=t(o)),Ot(t)&&"max"===t.substr(0,3)&&(t=p+("="===t.charAt(4)?ue("0"+t.substr(3),i):0));var f,d,m,g=u?u.time():0;if(u&&u.seek(0),Bt(t))a&&de(a,i,n,!0);else{Rt(e)&&(e=e(o));var y,v,b,x,E=t.split(" ");m=F(e)||$,(y=ee(m)||{})&&(y.left||y.top)||"none"!==Qt(m).display||(x=m.style.display,m.style.display="block",y=ee(m),x?m.style.display=x:m.style.removeProperty("display")),v=ue(E[0],y[n.d]),b=ue(E[1]||"0",i),t=y[n.p]-l[n.p]-h+v+r-b,a&&de(a,b,n,i-b<20||a._isStart&&b>20),i-=i-b}if(s){var _=t+i,S=s._isStart;f="scroll"+n.d2,de(s,_,n,S&&_>20||!S&&(c?Math.max($[f],q[f]):s.parentNode[f])<=_+1),c&&(l=ee(a),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+Kt))}return u&&m&&(f=ee(m),u.seek(p),d=ee(m),u._caScrollDist=f[n.p]-d[n.p],t=t/u._caScrollDist*p),u&&u.seek(g),u?t:Math.round(t)},We=/(webkit|moz|length|cssText|inset)/i,qe=function(t,e,i,n){if(t.parentNode!==e){var r,s,a=t.style;if(e===$){for(r in t._stOrig=a.cssText,s=Qt(t))+r||We.test(r)||!s[r]||"string"!=typeof a[r]||"0"===r||(a[r]=s[r]);a.top=i,a.left=n}else a.cssText=t._stOrig;j.core.getCache(t).uncache=1,e.appendChild(t)}},$e=function(t,e){var i,n,r=L(t,e),s="_scroll"+e.p2,a=function e(a,o,l,h,c){var p=e.tween,u=o.onComplete,f={};return l=l||r(),c=h&&c||0,h=h||a-l,p&&p.kill(),i=Math.round(l),o[s]=a,o.modifiers=f,f[s]=function(t){return(t=Mt(r()))!==i&&t!==n&&Math.abs(t-i)>2&&Math.abs(t-n)>2?(p.kill(),e.tween=0):t=l+h*p.ratio+c*p.ratio*p.ratio,n=i,i=Mt(t)},o.onComplete=function(){e.tween=0,u&&u.call(p)},p=e.tween=j.to(t,o)};return t[s]=r,r.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},ae(t,"wheel",r.wheelHandler),a},Xe=function(){function t(e,i){G||t.register(j)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,i)}return t.prototype.init=function(e,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Pt){var n,r,s,a,o,l,h,c,p,u,f,d,m,g,y,v,b,E,_,P,C,w,T,M,A,k,O,R,B,z,V,N,G,X,Y,K,et,nt,rt,st,lt,ht=e=te(Ot(e)||Bt(e)||e.nodeType?{trigger:e}:e,ce),ct=ht.onUpdate,pt=ht.toggleClass,ut=ht.id,ft=ht.onToggle,mt=ht.onRefresh,yt=ht.scrub,_t=ht.trigger,Ct=ht.pin,wt=ht.pinSpacing,At=ht.invalidateOnRefresh,kt=ht.anticipatePin,Lt=ht.onScrubComplete,Vt=ht.onSnapComplete,Nt=ht.once,Wt=ht.snap,qt=ht.pinReparent,$t=ht.pinSpacer,Xt=ht.containerAnimation,Yt=ht.fastScrollEnd,se=ht.preventOverlaps,le=e.horizontal||e.containerAnimation&&!1!==e.horizontal?D:I,pe=!yt&&0!==yt,de=F(e.scroller||H),ye=j.core.getCache(de),be=Dt(de),Ee="fixed"===("pinType"in e?e.pinType:S(de,"pinType")||be&&"fixed"),_e=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Se=pe&&e.toggleActions.split(" "),Pe="markers"in e?e.markers:ce.markers,we=be?0:parseFloat(Qt(de)["border"+le.p2+Jt])||0,Te=this,Me=e.onRefreshInit&&function(){return e.onRefreshInit(Te)}
2,Ae=function(t,e,i){var n=i.d,r=i.d2,s=i.a;return(s=S(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?H["inner"+r]:t["client"+r])||0}}(de,be,le),ke=function(t,e){return!e||~x.indexOf(t)?It(t):function(){return Ge}}(de,be),De=0,Ie=0,Fe=L(de,le);if(Te.media=gt,Te._dir=le,kt*=45,Te.scroller=de,Te.scroll=Xt?Xt.time.bind(Xt):Fe,a=Fe(),Te.vars=e,i=i||e.animation,"refreshPriority"in e&&(at=1,-9999===e.refreshPriority&&(bt=Te)),ye.tweenScroll=ye.tweenScroll||{top:$e(de,I),left:$e(de,D)},Te.tweenTo=n=ye.tweenScroll[le.p],Te.scrubDuration=function(t){(V=Bt(t)&&t)?z?z.duration(t):z=j.to(i,{ease:"expo",totalProgress:"+=0.001",duration:V,paused:!0,onComplete:function(){return Lt&&Lt(Te)}}):(z&&z.progress(1).kill(),z=0)},i&&(i.vars.lazy=!1,i._initted||!1!==i.vars.immediateRender&&!1!==e.immediateRender&&i.render(0,!0,!0),Te.animation=i.pause(),i.scrollTrigger=Te,Te.scrubDuration(yt),R=0,ut||(ut=i.vars.id)),me.push(Te),Wt&&(zt(Wt)&&!Wt.push||(Wt={snapTo:Wt}),"scrollBehavior"in $.style&&j.set(be?[$,q]:de,{scrollBehavior:"auto"}),s=Rt(Wt.snapTo)?Wt.snapTo:"labels"===Wt.snapTo?function(t){return function(e){return j.utils.snap(ne(t),e)}}(i):"labelsDirectional"===Wt.snapTo?(rt=i,function(t,e){return re(ne(rt))(t,e.direction)}):!1!==Wt.directional?function(t,e){return re(Wt.snapTo)(t,Et()-Ie<500?0:e.direction)}:j.utils.snap(Wt.snapTo),N=Wt.duration||{min:.1,max:2},N=zt(N)?Z(N.min,N.max):Z(N,N),G=j.delayedCall(Wt.delay||V/2||.1,(function(){var t=Fe(),e=Et()-Ie<500,r=n.tween;if(!(e||Math.abs(Te.getVelocity())<10)||r||tt||De===t)Te.isActive&&De!==t&&G.restart(!0);else{var a=(t-l)/m,o=i&&!pe?i.totalProgress():a,c=e?0:(o-B)/(Et()-J)*1e3||0,p=j.utils.clamp(-a,1-a,Ht(c/2)*c/.185),u=a+(!1===Wt.inertia?0:p),f=Z(0,1,s(u,Te)),d=Math.round(l+f*m),g=Wt,y=g.onStart,v=g.onInterrupt,b=g.onComplete;if(t<=h&&t>=l&&d!==t){if(r&&!r._initted&&r.data<=Ht(d-t))return;!1===Wt.inertia&&(p=f-a),n(d,{duration:N(Ht(.185*Math.max(Ht(u-o),Ht(f-o))/c/.05||0)),ease:Wt.ease||"power3",data:Ht(d-t),onInterrupt:function(){return G.restart(!0)&&v&&v(Te)},onComplete:function(){Te.update(),De=Fe(),R=B=i&&!pe?i.totalProgress():Te.progress,Vt&&Vt(Te),b&&b(Te)}},t,p*m,d-t-p*m),y&&y(Te,n.tween)}}})).pause()),ut&&(ge[ut]=Te),(nt=(_t=Te.trigger=F(_t||Ct))&&_t._gsap&&_t._gsap.stRevert)&&(nt=nt(Te)),Ct=!0===Ct?_t:F(Ct),Ot(pt)&&(pt={targets:_t,className:pt}),Ct&&(!1===wt||wt===Zt||(wt=!(!wt&&"flex"===Qt(Ct.parentNode).display)&&Ut),Te.pin=Ct,!1!==e.force3D&&j.set(Ct,{force3D:!0}),(r=j.core.getCache(Ct)).spacer?g=r.pinState:($t&&(($t=F($t))&&!$t.nodeType&&($t=$t.current||$t.nativeElement),r.spacerIsNative=!!$t,$t&&(r.spacerState=je($t))),r.spacer=b=$t||W.createElement("div"),b.classList.add("pin-spacer"),ut&&b.classList.add("pin-spacer-"+ut),r.pinState=g=je(Ct)),Te.spacer=b=r.spacer,O=Qt(Ct),T=O[wt+le.os2],_=j.getProperty(Ct),P=j.quickSetter(Ct,le.a,Kt),ze(Ct,b,O),v=je(Ct)),Pe){d=zt(Pe)?te(Pe,he):he,u=fe("scroller-start",ut,de,le,d,0),f=fe("scroller-end",ut,de,le,d,0,u),E=u["offset"+le.op.d2];var Oe=F(S(de,"content")||de);c=this.markerStart=fe("start",ut,Oe,le,d,E,0,Xt),p=this.markerEnd=fe("end",ut,Oe,le,d,E,0,Xt),Xt&&(et=j.quickSetter([c,p],le.a,Kt)),Ee||x.length&&!0===S(de,"fixedMarkers")||(lt=Qt(st=be?$:de).position,st.style.position="absolute"===lt||"fixed"===lt?lt:"relative",j.set([u,f],{force3D:!0}),A=j.quickSetter(u,le.a,Kt),k=j.quickSetter(f,le.a,Kt))}if(Xt){var Re=Xt.vars.onUpdate,Be=Xt.vars.onUpdateParams;Xt.eventCallback("onUpdate",(function(){Te.update(0,0,1),Re&&Re.apply(Be||[])}))}Te.previous=function(){return me[me.indexOf(Te)-1]},Te.next=function(){return me[me.indexOf(Te)+1]},Te.revert=function(t){var e=!1!==t||!Te.enabled,n=Q;e!==Te.isReverted&&(e&&(Te.scroll.rec||!Q||!vt||(Te.scroll.rec=Fe()),Y=Math.max(Fe(),Te.scroll.rec||0),X=Te.progress,K=i&&i.progress()),c&&[c,p,u,f].forEach((function(t){return t.style.display=e?"none":"block"})),e&&(Q=1),Te.update(e),Q=n,Ct&&(e?function(t,e,i){Ne(i);var n=t._gsap;if(n.spacerIsNative)Ne(n.spacerState);else if(t.parentNode===e){var r=e.parentNode;r&&(r.insertBefore(t,e),r.removeChild(e))}}(Ct,b,g):(!qt||!Te.isActive)&&ze(Ct,b,Qt(Ct),M)),Te.isReverted=e)},Te.refresh=function(r,s){if(!Q&&Te.enabled||s)if(Ct&&r&&St)ae(t,"scrollEnd",Ce);else{!vt&&Me&&Me(Te),Q=1,Ie=Et(),n.tween&&(n.tween.kill(),n.tween=0),z&&z.pause(),At&&i&&i.time(-.01,!0).invalidate(),Te.isReverted||Te.revert();for(var d,x,E,S,P,T,A,k,O,R,B=Ae(),V=ke(),N=Xt?Xt.duration():Ft(de,le),H=0,W=0,q=e.end,U=e.endTrigger||_t,Z=e.start||(0!==e.start&&_t?Ct?"0 0":"0 100%":0),J=Te.pinnedContainer=e.pinnedContainer&&F(e.pinnedContainer),tt=_t&&Math.max(0,me.indexOf(Te))||0,et=tt;et--;)(T=me[et]).end||T.refresh(0,1)||(Q=1),!(A=T.pin)||A!==_t&&A!==Ct||T.isReverted||(R||(R=[]),R.unshift(T),T.revert()),T!==me[et]&&(tt--,et--);for(Rt(Z)&&(Z=Z(Te)),l=He(Z,_t,B,le,Fe(),c,u,Te,V,we,Ee,N,Xt)||(Ct?-.001:0),Rt(q)&&(q=q(Te)),Ot(q)&&!q.indexOf("+=")&&(~q.indexOf(" ")?q=(Ot(Z)?Z.split(" ")[0]:"")+q:(H=ue(q.substr(2),B),q=Ot(Z)?Z:l+H,U=_t)),h=Math.max(l,He(q||(U?"100% 0":N),U,B,le,Fe()+H,p,f,Te,V,we,Ee,N,Xt))||-.001,m=h-l||(l-=.01)&&.001,H=0,et=tt;et--;)(A=(T=me[et]).pin)&&T.start-T._pinPush<l&&!Xt&&T.end>
20&&(d=T.end-T.start,A!==_t&&A!==J||Bt(Z)||(H+=d*(1-T.progress)),A===Ct&&(W+=d));if(l+=H,h+=H,Te._pinPush=W,c&&H&&((d={})[le.a]="+="+H,J&&(d[le.p]="-="+Fe()),j.set([c,p],d)),Ct)d=Qt(Ct),S=le===I,E=Fe(),C=parseFloat(_(le.a))+W,!N&&h>1&&((be?$:de).style["overflow-"+le.a]="scroll"),ze(Ct,b,d),v=je(Ct),x=ee(Ct,!0),k=Ee&&L(de,S?D:I)(),wt&&((M=[wt+le.os2,m+W+Kt]).t=b,(et=wt===Ut?ie(Ct,le)+m+W:0)&&M.push(le.d,et+Kt),Ne(M),Ee&&Fe(Y)),Ee&&((P={top:x.top+(S?E-l:k)+Kt,left:x.left+(S?k:E-l)+Kt,boxSizing:"border-box",position:"fixed"}).width=P.maxWidth=Math.ceil(x.width)+Kt,P.height=P.maxHeight=Math.ceil(x.height)+Kt,P.margin=P.marginTop=P.marginRight=P.marginBottom=P.marginLeft="0",P.padding=d.padding,P.paddingTop=d.paddingTop,P.paddingRight=d.paddingRight,P.paddingBottom=d.paddingBottom,P.paddingLeft=d.paddingLeft,y=function(t,e,i){for(var n,r=[],s=t.length,a=i?8:0;a<s;a+=2)n=t[a],r.push(n,n in e?e[n]:t[a+1]);return r.t=t.t,r}(g,P,qt)),i?(O=i._initted,ot(1),i.render(i.duration(),!0,!0),w=_(le.a)-C+m+W,m!==w&&Ee&&y.splice(y.length-2,2),i.render(0,!0,!0),O||i.invalidate(),ot(0)):w=m;else if(_t&&Fe()&&!Xt)for(x=_t.parentNode;x&&x!==$;)x._pinOffset&&(l-=x._pinOffset,h-=x._pinOffset),x=x.parentNode;R&&R.forEach((function(t){return t.revert(!1)})),Te.start=l,Te.end=h,a=o=Fe(),Xt||(a<Y&&Fe(Y),Te.scroll.rec=0),Te.revert(!1),G&&(De=-1,Te.isActive&&Fe(l+m*X),G.restart(!0)),Q=0,i&&pe&&(i._initted||K)&&i.progress()!==K&&i.progress(K,!0).render(i.time(),!0,!0),(X!==Te.progress||Xt)&&(i&&!pe&&i.totalProgress(X,!0),Te.progress=X,Te.update(0,0,1)),Ct&&wt&&(b._pinOffset=Math.round(Te.progress*w)),mt&&mt(Te)}},Te.getVelocity=function(){return(Fe()-o)/(Et()-J)*1e3||0},Te.endAnimation=function(){jt(Te.callbackAnimation),i&&(z?z.progress(1):i.paused()?pe||jt(i,Te.direction<0,1):jt(i,i.reversed()))},Te.labelToScroll=function(t){return i&&i.labels&&(l||Te.refresh()||l)+i.labels[t]/i.duration()*m||0},Te.getTrailing=function(t){var e=me.indexOf(Te),i=Te.direction>0?me.slice(0,e).reverse():me.slice(e+1);return(Ot(t)?i.filter((function(e){return e.vars.preventOverlaps===t})):i).filter((function(t){return Te.direction>0?t.end<=l:t.start>=h}))},Te.update=function(t,e,r){if(!Xt||r||t){var s,c,p,f,d,g,x,E=Te.scroll(),_=t?0:(E-l)/m,S=_<0?0:_>1?1:_||0,M=Te.progress;if(e&&(o=a,a=Xt?Fe():E,Wt&&(B=R,R=i&&!pe?i.totalProgress():S)),kt&&!S&&Ct&&!Q&&!xt&&St&&l<E+(E-o)/(Et()-J)*kt&&(S=1e-4),S!==M&&Te.enabled){if(f=(d=(s=Te.isActive=!!S&&S<1)!==(!!M&&M<1))||!!S!=!!M,Te.direction=S>M?1:-1,Te.progress=S,f&&!Q&&(c=S&&!M?0:1===S?1:1===M?2:3,pe&&(p=!d&&"none"!==Se[c+1]&&Se[c+1]||Se[c],x=i&&("complete"===p||"reset"===p||p in i))),se&&(d||x)&&(x||yt||!i)&&(Rt(se)?se(Te):Te.getTrailing(se).forEach((function(t){return t.endAnimation()}))),pe||(!z||Q||xt?i&&i.totalProgress(S,!!Q):((Xt||bt&&bt!==Te)&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",S,i._tTime/i._tDur):(z.vars.totalProgress=S,z.invalidate().restart()))),Ct)if(t&&wt&&(b.style[wt+le.os2]=T),Ee){if(f){if(g=!t&&S>M&&h+1>E&&E+1>=Ft(de,le),qt)if(t||!s&&!g)qe(Ct,b);else{var D=ee(Ct,!0),F=E-l;qe(Ct,$,D.top+(le===I?F:0)+Kt,D.left+(le===I?0:F)+Kt)}Ne(s||g?y:v),w!==m&&S<1&&s||P(C+(1!==S||g?0:w))}}else P(Mt(C+w*S));Wt&&!n.tween&&!Q&&!xt&&G.restart(!0),pt&&(d||Nt&&S&&(S<1||!dt))&&U(pt.targets).forEach((function(t){return t.classList[s||Nt?"add":"remove"](pt.className)})),ct&&!pe&&!t&&ct(Te),f&&!Q?(pe&&(x&&("complete"===p?i.pause().totalProgress(1):"reset"===p?i.restart(!0).pause():"restart"===p?i.restart(!0):i[p]()),ct&&ct(Te)),!d&&dt||(ft&&d&&Gt(Te,ft),_e[c]&&Gt(Te,_e[c]),Nt&&(1===S?Te.kill(!1,1):_e[c]=0),d||_e[c=1===S?1:3]&&Gt(Te,_e[c])),Yt&&!s&&Math.abs(Te.getVelocity())>(Bt(Yt)?Yt:2500)&&(jt(Te.callbackAnimation),z?z.progress(1):jt(i,!S,1))):pe&&ct&&!Q&&ct(Te)}if(k){var L=Xt?E/Xt.duration()*(Xt._caScrollDist||0):E;A(L+(u._isFlipped?1:0)),k(L)}et&&et(-E/Xt.duration()*(Xt._caScrollDist||0))}},Te.enable=function(e,i){Te.enabled||(Te.enabled=!0,ae(de,"resize",xe),ae(be?W:de,"scroll",ve),Me&&ae(t,"refreshInit",Me),!1!==e&&(Te.progress=X=0,a=o=De=Fe()),!1!==i&&Te.refresh())},Te.getTween=function(t){return t&&n?n.tween:z},Te.setPositions=function(t,e){Ct&&(C+=t-l,w+=e-t-m),Te.start=l=t,Te.end=h=e,m=e-t,Te.update(
2)},Te.disable=function(e,i){if(Te.enabled&&(!1!==e&&Te.revert(),Te.enabled=Te.isActive=!1,i||z&&z.pause(),Y=0,r&&(r.uncache=1),Me&&oe(t,"refreshInit",Me),G&&(G.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!be)){for(var s=me.length;s--;)if(me[s].scroller===de&&me[s]!==Te)return;oe(de,"resize",xe),oe(de,"scroll",ve)}},Te.kill=function(t,n){Te.disable(t,n),z&&!n&&z.kill(),ut&&delete ge[ut];var s=me.indexOf(Te);s>=0&&me.splice(s,1),s===it&&Le>0&&it--,s=0,me.forEach((function(t){return t.scroller===Te.scroller&&(s=1)})),s||(Te.scroll.rec=0),i&&(i.scrollTrigger=null,t&&i.render(-1),n||i.kill()),c&&[c,p,u,f].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),bt===Te&&(bt=0),Ct&&(r&&(r.uncache=1),s=0,me.forEach((function(t){return t.pin===Ct&&s++})),s||(r.spacer=0)),e.onKill&&e.onKill(Te)},Te.enable(!1,!1),nt&&nt(Te),i&&i.add&&!m?j.delayedCall(.01,(function(){return l||h||Te.refresh()}))&&(m=.01)&&(l=h=0):Te.refresh()}else this.update=this.refresh=this.kill=Tt},t.register=function(e){return G||(j=e||kt(),At()&&window.document&&t.enable(),G=Pt),G},t.defaults=function(t){if(t)for(var e in t)ce[e]=t[e];return ce},t.disable=function(t,e){Pt=0,me.forEach((function(i){return i[e?"kill":"disable"](t)})),oe(H,"wheel",ve),oe(W,"scroll",ve),clearInterval(K),oe(W,"touchcancel",Tt),oe($,"touchstart",Tt),se(oe,W,"pointerdown,touchstart,mousedown",Ct),se(oe,W,"pointerup,touchend,mouseup",wt),Y.kill(),Lt(oe);for(var i=0;i<b.length;i+=3)le(oe,b[i],b[i+1]),le(oe,b[i],b[i+2])},t.enable=function(){if(H=window,W=document,q=W.documentElement,$=W.body,j&&(U=j.utils.toArray,Z=j.utils.clamp,ot=j.core.suppressOverwrites||Tt,j.core.globals("ScrollTrigger",t),$)){Pt=1,N.register(j),t.isTouch=N.isTouch,ft=N.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ae(H,"wheel",ve),X=[H,W,q,$],t.matchMedia({"(orientation: portrait)":function(){return be(),be}}),ae(W,"scroll",ve);var e,i,n=$.style,r=n.borderTopStyle;for(n.borderTopStyle="solid",e=ee($),I.m=Math.round(e.top+I.sc())||0,D.m=Math.round(e.left+D.sc())||0,r?n.borderTopStyle=r:n.removeProperty("border-top-style"),K=setInterval(ye,250),j.delayedCall(.5,(function(){return xt=0})),ae(W,"touchcancel",Tt),ae($,"touchstart",Tt),se(ae,W,"pointerdown,touchstart,mousedown",Ct),se(ae,W,"pointerup,touchend,mouseup",wt),et=j.utils.checkPrefix("transform"),Be.push(et),G=Et(),Y=j.delayedCall(.2,Ie).pause(),st=[W,"visibilitychange",function(){var t=H.innerWidth,e=H.innerHeight;W.hidden?(nt=t,rt=e):nt===t&&rt===e||xe()},W,"DOMContentLoaded",Ie,H,"load",Ie,H,"resize",xe],Lt(ae),me.forEach((function(t){return t.enable(0,1)})),i=0;i<b.length;i+=3)le(oe,b[i],b[i+1]),le(oe,b[i],b[i+2])}},t.config=function(e){"limitCallbacks"in e&&(dt=!!e.limitCallbacks);var i=e.syncInterval;i&&clearInterval(K)||(K=i)&&setInterval(ye,i),"ignoreMobileResize"in e&&(ct=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Lt(oe)||Lt(ae,e.autoRefreshEvents||"none"),lt=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var i=F(t),n=b.indexOf(i),r=Dt(i);~n&&b.splice(n,r?6:2),e&&(r?x.unshift(H,e,$,e,q,e):x.unshift(i,e))},t.matchMedia=function(t){var e,i,n,r,s;for(i in t)n=Se.indexOf(i),r=t[i],gt=i,"all"===i?r():(e=H.matchMedia(i))&&(e.matches&&(s=r()),~n?(Se[n+1]=Nt(Se[n+1],r),Se[n+2]=Nt(Se[n+2],s)):(n=Se.length,Se.push(i,r,s),e.addListener?e.addListener(Pe):e.addEventListener("change",Pe)),Se[n+3]=e.matches),gt=0;return Se},t.clearMatchMedia=function(t){t||(Se.length=0),(t=Se.indexOf(t))>=0&&Se.splice(t,4)},t.isInViewport=function(t,e,i){var n=(Ot(t)?F(t):t).getBoundingClientRect(),r=n[i?Xt:Yt]*e||0;return i?n.right-r>0&&n.left+r<H.innerWidth:n.bottom-r>0&&n.top+r<H.innerHeight},t.positionInViewport=function(t,e,i){Ot(t)&&(t=F(t));var n=t.getBoundingClientRect(),r=n[i?Xt:Yt],s=null==e?r/2:e in pe?pe[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0;return i?(n.left+s)/H.innerWidth:(n.top+s)/H.innerHeight},t}();Xe.version="3.10.4",Xe.saveStyles=function(t){return t?U(t).forEach((function(t){if(t&&t.style){var e=Te.indexOf(t);e>=0&&Te.splice(e,5),Te.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),j.core.getCache(t),gt)}})):Te},Xe.revert=function(t,e){return Ae(!t,e)},Xe.create=function(t,e){return new Xe(t,e)},Xe.refresh=function(t){return t?xe():(G||Xe.register())&&Ie(!0)},Xe.update=Oe,Xe.clearScrollMemory=ke,Xe.maxScroll=function(t,e){return Ft(t,e?D:I)},Xe.getScrollFunc=function(t,e){return L(F(t),e?D:I)},Xe.getById=function(t){return ge[t]},Xe.getAll=function(){return me.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},Xe.isScrolling=function(){return!!St},Xe.snapDirectional=re,Xe.addEventListener=function(t,e){var i=Ee[t]||(Ee[t]=[]);~i.indexOf(e)||i.push(e)},Xe.removeEventListener=function(t,e){var i=Ee[t],n=i&&i.indexOf(e);n>=0&&i.splice(n,1)},Xe.batch=function(t,e){var i,n=[],r={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var i=[],n=[],r=j.delayedCall(s,(function(){e(i,n),i=[],n=[]})).pause();return function(t){i.length||r.restart(!0),i.push(t.trigger),n.push(t),a<=i.length&&r.progress(1)}};for(i in e)r[i]="on"===i.substr(0,2)&&Rt(e[i])&&"onRefreshInit"!==i?o(0,e[i]):e[i];
2return Rt(a)&&(a=a(),ae(Xe,"refresh",(function(){return a=e.batchMax()}))),U(t).forEach((function(t){var e={};for(i in r)e[i]=r[i];e.trigger=t,n.push(Xe.create(e))})),n};var Ye,Ue=function(t,e,i,n){return e>n?t(n):e<0&&t(0),i>n?(n-e)/(i-e):i<0?e/(e-i):1},Ze=function t(e,i){!0===i?e.style.removeProperty("touch-action"):e.style.touchAction=!0===i?"auto":i?"pan-"+i+(N.isTouch?" pinch-zoom":""):"none",e===q&&t($,i)},Je={auto:1,scroll:1},Ke=function(t){var e,i=t.event,n=t.target,r=t.axis,s=(i.changedTouches?i.changedTouches[0]:i).target,a=s._gsap||j.core.getCache(s),o=Et();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s.scrollHeight<=s.clientHeight;)s=s.parentNode;a._isScroll=s&&!Dt(s)&&s!==n&&(Je[(e=Qt(s)).overflowY]||Je[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===r)&&(i._gsapAllow=!0)},Qe=function(t,e,i,n){return N.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&Ke,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return i&&ae(W,N.eventTypes[0],ei,!1,!0)},onDisable:function(){return oe(W,N.eventTypes[0],ei,!0)}})},ti=/(input|label|select|textarea)/i,ei=function(t){var e=ti.test(t.target.tagName);(e||Ye)&&(t._gsapAllow=!0,Ye=e)},ii=function(t){zt(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,i,n,r,s,a,o,l,h=t,c=h.normalizeScrollX,p=h.momentum,u=h.allowNestedScroll,f=F(t.target)||q,d=j.core.globals().ScrollSmoother,m=ft&&(t.content&&F(t.content)||d&&d.get()&&d.get().content()),g=L(f,I),y=L(f,D),v=1,x=(N.isTouch&&H.visualViewport?H.visualViewport.scale*H.visualViewport.width:H.outerWidth)/H.innerWidth,E=0,_=Rt(p)?function(){return p(e)}:function(){return p||2.8},S=Qe(f,t.type,!0,u),P=function(){return n=!1},C=Tt,w=Tt,T=function(){i=Ft(f,I),w=Z(ft?1:0,i),c&&(C=Z(0,Ft(f,D))),r=De},M=function(){T(),s.isActive()&&s.vars.scrollY>i&&(g()>i?s.progress(1)&&g(i):s.resetTo("scrollY",i))};return t.ignoreCheck=function(t){return ft&&"touchmove"===t.type&&function(){if(n){requestAnimationFrame(P);var t=Mt(e.deltaY/2),i=w(g.v-t);return m&&i!==g.v+g.offset&&(g.offset=i-g.v,m.style.transform="translateY("+-g.offset+"px)",m._gsap&&(m._gsap.y=-g.offset+"px"),g.cacheID=b.cache,Oe()),!0}m&&(m.style.transform="translateY(0px)",g.offset=g.cacheID=0,m._gsap&&(m._gsap.y="0px")),n=!0}()||v>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){var t=v;v=Mt((H.visualViewport&&H.visualViewport.scale||1)/x),s.pause(),t!==v&&Ze(f,v>1.01||!c&&"x"),n=!1,a=y(),o=g(),T(),r=De},t.onRelease=t.onGestureStart=function(t,e){if(m&&(m.style.transform="translateY(0px)",g.offset=g.cacheID=0,m._gsap&&(m._gsap.y="0px")),e){b.cache++;var n,r,a=_();c&&(r=(n=y())+.05*a*-t.velocityX/.227,a*=Ue(y,n,r,Ft(f,D)),s.vars.scrollX=C(r)),r=(n=g())+.05*a*-t.velocityY/.227,a*=Ue(g,n,r,Ft(f,I)),s.vars.scrollY=w(r),s.invalidate().duration(a).play(.01),(ft&&s.vars.scrollY>=i||n>=i-1)&&j.to({},{onUpdate:M,duration:a})}else l.restart(!0)},t.onWheel=function(){s._ts&&s.pause(),Et()-E>1e3&&(r=0,E=Et())},t.onChange=function(t,e,i,n,s){De!==r&&T(),e&&c&&y(C(n[2]===e?a+(t.startX-t.x):y()+e-n[1])),i&&g(w(s[2]===i?o+(t.startY-t.y):g()+i-s[1])),Oe()},t.onEnable=function(){Ze(f,!c&&"x"),ae(H,"resize",M),S.enable()},t.onDisable=function(){Ze(f,!0),oe(H,"resize",M),S.kill()},(e=new N(t)).iOS=ft,ft&&!g()&&g(1),l=e._dc,s=j.to(e,{ease:"power4",paused:!0,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:l.vars.onComplete}),e};Xe.sort=function(t){return me.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},Xe.observe=function(t){return new N(t)},Xe.normalizeScroll=function(t){if(void 0===t)return ht;if(!0===t&&ht)return ht.enable();if(!1===t)return ht&&ht.kill();var e=t instanceof N?t:ii(t);return ht&&ht.target===e.target&&ht.kill(),Dt(e.target)&&(ht=e),e},Xe.core={_getVelocityProp:O,_inputObserver:Qe,_scrollers:b,_proxies:x,bridge:{ss:function(){St||we("scrollStart"),St=Et()},ref:function(){return Q}}},kt()&&j.registerPlugin(Xe)},6358:function(t,e,i){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}i.d(e,{ZP:function(){return jn}});var s,a,o,l,h,c,p,u,f,d,m,g,y,v,b,x,E,_,S,P,C,w,T,M,A,k,D,I,F={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},L={duration:.5,overwrite:!1,delay:0},O=1e8,R=1e-8,B=2*Math.PI,z=B/4,V=0,N=Math.sqrt,j=Math.cos,G=Math.sin,H=function(t){return"string"==typeof t},W=function(t){return"function"==typeof t},q=function(t){return"number"==typeof t},$=function(t){return void 0===t},X=function(t){return"object"==typeof t},Y=function(t){return!1!==t},U=function(){return"undefined"!=typeof window},Z=function(t){return W(t)||H(t)},J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},K=Array.isArray,Q=/(?:-?\.?\d|\.)+/gi,tt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,et=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,rt=/[^,'"\[\]\s]+/gi,st=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,at={},ot={},lt=function(t){return(ot=Lt(t,at))&&Pi},ht=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ct=function(t,e){return!e&&console.warn(t)},pt=function(t,e){return t&&(at[t]=e)&&ot&&(ot[t]=e)||at},ut=function(){return 0},ft={},dt=[],mt={},gt={},yt={},vt=30,bt=[],xt="",Et=function(t){var e,i,n=t[0];if(X(n)||W(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=bt.length;i--&&!bt[i].targetTest(n););e=bt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Xe(t[i],e)))||t.splice(i,1);return t},_t=function(t){return t._gsap||Et(ue(t))[0]._gsap}
vendor: 14,350 bytes, line 2
2,St=function(t,e,i){return(i=t[e])&&W(i)?t[e]():$(i)&&t.getAttribute&&t.getAttribute(e)||i},Pt=function(t,e){return(t=t.split(",")).forEach(e)||t},Ct=function(t){return Math.round(1e5*t)/1e5||0},wt=function(t){return Math.round(1e7*t)/1e7||0},Tt=function(t,e){var i=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===i?t+n:"-"===i?t-n:"*"===i?t*n:t/n},Mt=function(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++n<i;);return n<i},At=function(){var t,e,i=dt.length,n=dt.slice(0);for(mt={},dt.length=0,t=0;t<i;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},kt=function(t,e,i,n){dt.length&&At(),t.render(e,i,n),dt.length&&At()},Dt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(rt).length<2?e:H(t)?t.trim():t},It=function(t){return t},Ft=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Lt=function(t,e){for(var i in e)t[i]=e[i];return t},Ot=function t(e,i){for(var n in i)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=X(i[n])?t(e[n]||(e[n]={}),i[n]):i[n]);return e},Rt=function(t,e){var i,n={};for(i in t)i in e||(n[i]=t[i]);return n},Bt=function(t){var e,i=t.parent||a,n=t.keyframes?(e=K(t.keyframes),function(t,i){for(var n in i)n in t||"duration"===n&&e||"ease"===n||(t[n]=i[n])}):Ft;if(Y(t.inherit))for(;i;)n(t,i.vars.defaults),i=i.parent||i._dp;return t},zt=function(t,e,i,n,r){void 0===i&&(i="_first"),void 0===n&&(n="_last");var s,a=t[n];if(r)for(s=e[r];a&&a[r]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t,e},Vt=function(t,e,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var r=e._prev,s=e._next;r?r._next=s:t[i]===e&&(t[i]=s),s?s._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Nt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},jt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Gt=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Ht=function t(e){return!e||e._ts&&t(e.parent)},Wt=function(t){return t._repeat?qt(t._tTime,t=t.duration()+t._rDelay)*t:0},qt=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},$t=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Xt=function(t){return t._end=wt(t._start+(t._tDur/Math.abs(t._ts||t._rts||R)||0))},Yt=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=wt(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Xt(t),i._dirty||jt(i,t)),t},Ut=function(t,e){var i;if((e._time||e._initted&&!e._dur)&&(i=$t(t.rawTime(),e),(!e._dur||oe(0,e.totalDuration(),i)-e._tTime>R)&&e.render(i,!0)),jt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-1e-8}},Zt=function(t,e,i,n){return e.parent&&Nt(e),e._start=wt((q(i)?i:i||t!==a?re(t,i,e):t._time)+e._delay),e._end=wt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),zt(t,e,"_first","_last",t._sort?"_start":0),te(e)||(t._recent=e),n||Ut(t,e),t},Jt=function(t,e){return(at.ScrollTrigger||ht("scrollTrigger",e))&&at.ScrollTrigger.create(e,t)},Kt=function(t,e,i,n){return ei(t,e),t._initted?!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&p!==Le.frame?(dt.push(t),t._lazy=[e,n],1):void 0:1},Qt=function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))},te=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ee=function(t,e,i,n){var r=t._repeat,s=wt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=r?r<0?1e10:wt(s*(r+1)+t._rDelay*r):s,a>0&&!n?Yt(t,t._tTime=t._tDur*a):t.parent&&Xt(t),i||jt(t.parent,t),t},ie=function(t){return t instanceof Ue?jt(t):ee(t,t._dur)},ne={_start:0,endTime:ut,totalDuration:ut},re=function t(e,i,n){var r,s,a,o=e.labels,l=e._recent||ne,h=e.duration()>=O?l.endTime(!1):e._dur;return H(i)&&(isNaN(i)||i in o)?(s=i.charAt(0),a="%"===i.substr(-1),r=i.indexOf("="),"<"===s||">"===s?(r>=0&&(i=i.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(a?(r<0?l:n).totalDuration()/100:1)):r<0?(i in o||(o[i]=h),o[i]):(s=parseFloat(i.charAt(r-1)+i.substr(r+1)),a&&n&&(s=s/100*(K(n)?n[0]:n).totalDuration()),r>1?t(e,i.substr(0,r-1),n)+s:h+s)):null==i?h:+i},se=function(t,e,i){var n,r,s=q(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=i,t){for(n=o,r=i;r&&!("immediateRender"in n);)n=r.vars.defaults||{},r=Y(r.vars.inherit)&&r.parent;o.immediateRender=Y(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new ai(e[0],o,e[a+1])},ae=function(t,e){return t||0===t?e(t):e},oe=function(t,e,i){return i<t?t:i>e?e:i},le=function(t,e){return H(t)&&(e=st.exec(t))?e[1]:""},he=[].slice,ce=function(t,e){return t&&X(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&X(t[0]))&&!t.nodeType&&t!==o},pe=function(t,e,i){return void 0===i&&(i=[]),t.forEach((function(t){var n;return H(t)&&!e||ce(t,1)?(n=i).push.apply(n,ue(t)):i.push(t)}))||i},ue=function(t,e,i){return!H(t)||i||!l&&Oe()?K(t)?pe(t,i):ce(t)?he.call(t,0):t?[t]:[]:he.call((e||h).querySelectorAll(t),0)},fe=function(t){return t.sort((function(){return.5-Math.random()}))},de=function(t){if(W(t))return t;var e=X(t)?t:{each:t},i=Ge(e.ease),n=e.from||0,r=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,l=e.axis,h=n,c=n;return H(n)?h=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(h=n[0],c=n[1]),function(t,a,p){var u,f,d,m,g,y,v,b,x,E=(p||e).length,_=s[E];if(!_){if(!(x="auto"===e.grid?0:(e.grid||[1,O])[1])){for(v=-O;v<(v=p[x++].getBoundingClientRect().left)&&x<E;);x--}for(_=s[E]=[],u=o?Math.min(x,E)*h-.5:n%x,f=x===O?0:o?E*c/x-.5:n/x|0,v=0,b=O,y=0;y<E;y++)d=y%x-u,m=f-(y/x|0),_[y]=g=l?Math.abs("y"===l?m:d):N(d*d+m*m),g>v&&(v=g),g<b&&(b=g);"random"===n&&fe(_),_.max=v-b,_.min=b,_.v=E=(parseFloat(e.amount)||parseFloat(e.each)*(x>E?E-1:l?"y"===l?E/x:x:Math.max(x,E/x))||0)*("edges"===n?-1:1),_.b=E<0?r-E:r,_.u=le(e.amount||e.each)||0,i=i&&E<0?Ne(i):i}return E=(_[t]-_.min)/_.max||0,wt(_.b+(i?i(E):E)*_.v)+_.u}},me=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var n=Math.round(parseFloat(i)/t)*t*e;return(n-n%1)/e+(q(i)?0:le(i))}},ge=function(t,e){var i,n,r=K(t);return!r&&X(t)&&(i=r=t.radius||O,t.values?(t=ue(t.values),(n=!q(t[0]))&&(i*=i)):t=me(t.increment)),ae(e,r?W(t)?function(e){return n=t(e),Math.abs(n-e)<=i?n:e}:function(e){for(var r,s,a=parseFloat(n?e.x:e),o=parseFloat(n?e.y:0),l=O,h=0,c=t.length;c--;)(r=n?(r=t[c].x-a)*r+(s=t[c].y-o)*s:Math.abs(t[c]-a))<l&&(l=r,h=c);return h=!i||l<=i?t[h]:e,n||h===e||q(e)?h:h+le(e)}:me(t))},ye=function(t,e,i,n){return ae(K(t)?!e:!0===i?!!(i=0):!n,(function(){return K(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+.99*i))/i)*i*n)/n}))},ve=function(t,e,i){return ae(i,(function(i){return t[~~e(i)]}))},be=function(t){for(var e,i,n,r,s=0,a="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),r="["===t.charAt(e+7),i=t.substr(e+7,n-e-7).match(r?rt:Q),a+=t.substr(s,e-s)+ye(r?i:+i[0],r?0:+i[1],+i[2]||1e-5),s=n+1;return a+t.substr(s,t.length-s)},xe=function(t,e,i,n,r){var s=e-t,a=n-i;return ae(r,(function(e){return i+((e-t)/s*a||0)}))},Ee=function(t,e,i){var n,r,s,a=t.labels,o=O;for(n in a)(r=a[n]-e)<0==!!i&&r&&o>(r=Math.abs(r))&&(s=n,o=r);return s},_e=function(t,e,i){var n,r,s=t.vars,a=s[e];if(a)return n=s[e+"Params"],r=s.callbackScope||t,i&&dt.length&&At(),n?a.apply(r,n):a.call(r)},Se=function(t){return Nt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&_e(t,"onInterrupt"),t},Pe=function(t){var e=(t=!t.name&&t.default||t).name,i=W(t),n=e&&!i&&t.init?function(){this._props=[]}:t,r={init:ut,render:mi,add:Qe,kill:yi,modifier:gi,rawVars:0},s={targetTest:0,get:0,getSetter:pi,aliases:{},register:0};if(Oe(),t!==n){if(gt[e])return;Ft(n,Ft(Rt(t,r),s)),Lt(n.prototype,Lt(r,Rt(t,s))),gt[n.prop=e]=n,t.targetTest&&(bt.push(n),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}pt(e,n),t.register&&t.register(Pi,n,xi)},Ce=255,we={aqua:[0,Ce,Ce],lime:[0,Ce,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ce],navy:[0,0,128],white:[Ce,Ce,Ce],olive:[128,128,0],yellow:[Ce,Ce,0],orange:[Ce,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ce,0,0],pink:[Ce,192,203],cyan:[0,Ce,Ce],transparent:[Ce,Ce,Ce,0]},Te=function(t,e,i){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*Ce+.5|0},Me=function(t,e,i){var n,r,s,a,o,l,h,c,p,u,f=t?q(t)?[t>>16,t>>8&Ce,t&Ce]:0:we.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),we[t])f=we[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+n+n+r+r+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&Ce,f&Ce,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ce,t&Ce]}else if("hsl"===t.substr(0,3))if(f=u=t.match(Q),e){if(~t.indexOf("="))return f=t.match(tt),i&&f.length<4&&(f[3]=1),f}else a=+f[0]%360/360,o=+f[1]/100,n=2*(l=+f[2]/100)-(r=l<=.5?l*(o+1):l+o-l*o),f.length>3&&(f[3]*=1),f[0]=Te(a+1/3,n,r),f[1]=Te(a,n,r),f[2]=Te(a-1/3,n,r);else f=t.match(Q)||we.transparent;f=f.map(Number)}return e&&!u&&(n=f[0]/Ce,r=f[1]/Ce,s=f[2]/Ce,l=((h=Math.max(n,r,s))+(c=Math.min(n,r,s)))/2,h===c?a=o=0:(p=h-c,o=l>.5?p/(2-h-c):p/(h+c),a=h===n?(r-s)/p+(r<s?6:0):h===r?(s-n)/p+2:(n-r)/p+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*o+.5),f[2]=~~(100*l+.5)),i&&f.length<4&&(f[3]=1),f},Ae=function(t){var e=[],i=[],n=-1;return t.split(De).forEach((function(t){var r=t.match(et)||[];e.push.apply(e,r),i.push(n+=r.length+1)})),e.c=i,e},ke=function(t,e,i){var n,r,s,a,o="",l=(t+o).match(De),h=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map((function(t){return(t=Me(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),i&&(s=Ae(t),(n=i.c).join(o)!==s.c.join(o)))for(a=(r=t.replace(De,"1").split(et)).length-1;c<a;c++)o+=r[c]+(~n.indexOf(c)?l.shift()||h+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!r)for(a=(r=t.split(De)).length-1;c<a;c++)o+=r[c]+l[c];return o+r[a]},De=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in we)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ie=/hsl[a]?\(/,Fe=function(t){var e,i=t.join(" ");if(De.lastIndex=0,De.test(i))return e=Ie.test(i),t[1]=ke(t[1],e),t[0]=ke(t[0],e,Ae(t[1])),!0},Le=(x=Date.now,E=500,_=33,S=x(),P=S,w=C=1e3/240,M=function t(e){var i,n,r,s,a=x()-P,o=!0===e;if(a>E&&(S+=a-_),((i=(r=(P+=a)-S)-w)>0||o)&&(s=++y.frame,v=r-1e3*y.time,y.time=r/=1e3,w+=i+(i>=C?4:C-i),n=1),o||(d=m(t)),n)for(b=0;b<T.length;b++)T[b](r,v,s,e)},y={time:0,frame:0,tick:function(){M(!0)},deltaRatio:function(t){return v/(1e3/(t||60))},wake:function(){c&&(!l&&U()&&(o=l=window,h=o.document||{},at.gsap=Pi,(o.gsapVersions||(o.gsapVersions=[])).push(Pi.version),lt(ot||o.GreenSockGlobals||!o.gsap&&o||{}),g=o.requestAnimationFrame),d&&y.sleep(),m=g||function(t){return setTimeout(t,w-1e3*y.time+1|0)},f=1,M(2))},sleep:function(){(g?o.cancelAnimationFrame:clearTimeout)(d),f=0,m=ut},lagSmoothing:function(t,e){E=t||1e8,_=Math.min(e,E,0)},fps:function(t){C=1e3/(t||240),w=1e3*y.time+C},add:function(t,e,i){var n=e?function(e,i,r,s){t(e,i,r,s),y.remove(n)}:t;return y.remove(t),T[i?"unshift":"push"](n),Oe(),n},remove:function(t,e){~(e=T.indexOf(t))&&T.splice(e,1)&&b>=e&&b--},_listeners:T=[]}),Oe=function(){return!f&&Le.wake()},Re={},Be=/^[\d.\-M][\d.\-,\s]/,ze=/["']/g,Ve=function(t){for(var e,i,n,r={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,l=s.length;o<l;o++)i=s[o],e=o!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,e),r[a]=isNaN(n)?n.replace(ze,"").trim():+n,a=i.substr(e+1).trim();return r},Ne=function(t){return function(e){return 1-t(1-e)}},je=function t(e,i){for(var n,r=e._first;r;)r instanceof Ue?t(r,i):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===i||(r.timeline?t(r.timeline,i):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=i)),r=r._next},Ge=function(t,e){return t&&(W(t)?t:Re[t]||function(t){var e,i,n,r,s=(t+"").split("("),a=Re[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Ve(s[1])]:(e=t,i=e.indexOf("(")+1,n=e.indexOf(")"),r=e.indexOf("(",i),e.substring(i,~r&&r<n?e.indexOf(")",n+1):n)).split(",").map(Dt)):Re._CE&&Be.test(t)?Re._CE("",t):a}(t))||e},He=function(t,e,i,n){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var r,s={easeIn:e,easeOut:i,easeInOut:n};return Pt(t,(function(t){for(var e in Re[t]=at[t]=s,Re[r=t.toLowerCase()]=i,s)Re[r+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Re[t+"."+e]=s[e]})),s},We=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},qe=function t(e,i,n){var r=i>=1?i:1,s=(n||(e?.3:.45))/(i<1?i:1),a=s/B*(Math.asin(1/r)||0),o=function(t){return 1===t?1:r*Math.pow(2,-10*t)*G((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:We(o);return s=B/s,l.config=function(i,n){return t(e,i,n)},l},$e=function t(e,i){void 0===i&&(i=1.70158);var n=function(t){return t?--t*t*((i+1)*t+i)+1:0},r="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:We(n);return r.config=function(i){return t(e,i)},r};Pt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var i=e<5?e+1:e;He(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},(function(t){return 1-Math.pow(1-t,i)}),(function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2}))})),Re.Linear.easeNone=Re.none=Re.Linear.easeIn,He("Elastic",qe("in"),qe("out"),qe()),A=7.5625,D=1/(k=2.75),He("Bounce",(function(t){return 1-I(1-t)}),I=function(t){return t<D?A*t*t:t<.7272727272727273?A*Math.pow(t-1.5/k,2)+.75:t<.9090909090909092?A*(t-=2.25/k)*t+.9375:A*Math.pow(t-2.625/k,2)+.984375}),He("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),He("Circ",(function(t){return-(N(1-t*t)-1)})),He("Sine",(function(t){return 1===t?1:1-j(t*z)})),He("Back",$e("in"),$e("out"),$e()),Re.SteppedEase=Re.steps=at.SteppedEase={config:function(t,e){void 0===t&&(t=1);var i=1/t,n=t+(e?0:1),r=e?1:0;return function(t){return((n*oe(0,.99999999,t)|0)+r)*i}}},L.ease=Re["quad.out"],Pt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return xt+=t+","+t+"Param
2s,"}));var Xe=function(t,e){this.id=V++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:St,this.set=e?e.getSetter:pi},Ye=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ee(this,+t.duration,1,1),this.data=t.data,f||Le.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ee(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Oe(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Yt(this,t),!i._dp||i.parent||Ut(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Zt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===R||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),kt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Wt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Wt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?qt(this._tTime,i)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?$t(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(oe(-this._delay,this._tDur,e),!0),Xt(this),Gt(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Oe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==R&&(this._tTime-=R)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Zt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Y(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$t(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(e._ts||1),e=e._dp;return i},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,ie(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,ie(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(re(this,t),Y(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Y(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0}
vendor: 38,571 bytes, line 2
2,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-R))},e.eventCallback=function(t,e,i){var n=this.vars;return arguments.length>1?(e?(n[t]=e,i&&(n[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(i){var n=W(t)?t:It,r=function(){var t=e.then;e.then=null,W(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),i(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r}))},e.kill=function(){Se(this)},t}();Ft(Ye.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ue=function(t){function e(e,i){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=Y(e.sortChildren),a&&Zt(e.parent||a,n(r),i),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Jt(n(r),e.scrollTrigger),r}r(e,t);var i=e.prototype;return i.to=function(t,e,i){return se(0,arguments,this),this},i.from=function(t,e,i){return se(1,arguments,this),this},i.fromTo=function(t,e,i,n){return se(2,arguments,this),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,Bt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ai(t,e,re(this,i),1),this},i.call=function(t,e,i){return Zt(this,ai.delayedCall(0,t,e),i)},i.staggerTo=function(t,e,i,n,r,s,a){return i.duration=e,i.stagger=i.stagger||n,i.onComplete=s,i.onCompleteParams=a,i.parent=this,new ai(t,i,re(this,r)),this},i.staggerFrom=function(t,e,i,n,r,s,a){return i.runBackwards=1,Bt(i).immediateRender=Y(i.immediateRender),this.staggerTo(t,e,i,n,r,s,a)},i.staggerFromTo=function(t,e,i,n,r,s,a,o){return n.startAt=i,Bt(n).immediateRender=Y(n.immediateRender),this.staggerTo(t,e,n,r,s,a,o)},i.render=function(t,e,i){var n,r,s,o,l,h,c,p,u,f,d,m,g=this._time,y=this._dirty?this.totalDuration():this._tDur,v=this._dur,b=t<=0?0:wt(t),x=this._zTime<0!=t<0&&(this._initted||!v);if(this!==a&&b>y&&t>=0&&(b=y),b!==this._tTime||i||x){if(g!==this._time&&v&&(b+=this._time-g,t+=this._time-g),n=b,u=this._start,h=!(p=this._ts),x&&(v||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,l=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,i);if(n=wt(b%l),b===y?(o=this._repeat,n=v):((o=~~(b/l))&&o===b/l&&(n=v,o--),n>v&&(n=v)),f=qt(this._tTime,l),!g&&this._tTime&&f!==o&&(f=o),d&&1&o&&(n=v-n,m=1),o!==f&&!this._lock){var E=d&&1&f,_=E===(d&&1&o);if(o<f&&(E=!E),g=E?0:v,this._lock=1,this.render(g||(m?0:wt(o*l)),e,!v)._lock=0,this._tTime=b,!e&&this.parent&&_e(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||h!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,y=this._tDur,_&&(this._lock=2,g=E?v:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!h)return this;je(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,i){var n;if(i>e)for(n=t._first;n&&n._start<=i;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,wt(g),wt(n)),c&&(b-=n-(n=c._start))),this._tTime=b,this._time=n,this._act=!p,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&n&&!e&&(_e(this,"onStart"),this._tTime!==b))return this;if(n>=g&&t>=0)for(r=this._first;r;){if(s=r._next,(r._act||n>=r._start)&&r._ts&&c!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(n-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(n-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!h){c=0,s&&(b+=this._zTime=-1e-8);break}}r=s}else{r=this._last;for(var S=t<0?t:n;r;){if(s=r._prev,(r._act||S<=r._end)&&r._ts&&c!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(S-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(S-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!h){c=0,s&&(b+=this._zTime=S?-1e-8:R);break}}r=s}}if(c&&!e&&(this.pause(),c.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=u,Xt(this),this.render(t,e,i);this._onUpdate&&!e&&_e(this,"onUpdate",!0),(b===y&&this._tTime>=this.totalDuration()||!b&&g)&&(u!==this._start&&Math.abs(p)===Math.abs(this._ts)||this._lock||((t||!v)&&(b===y&&this._ts>0||!b&&this._ts<0)&&Nt(this,1),e||t<0&&!g||!b&&!g&&y||(_e(this,b===y&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<y&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(q(e)||(e=re(this,e,t)),!(t instanceof Ye)){if(K(t))return t.forEach((function(t){return i.add(t,e)})),this;if(H(t))return this.addLabel(t,e);if(!W(t))return this;t=ai.delayedCall(0,t)}return this!==t?Zt(this,t,e):this},i.getChildren=function(t,e,i,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=-O);for(var r=[],s=this._first;s;)s._start>=n&&(s instanceof ai?e&&r.push(s):(i&&r.push(s),t&&r.push.apply(r,s.getChildren(!0,e,i)))),s=s._next;return r},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return H(t)?this.removeLabel(t):W(t)?this.killTweensOf(t):(Vt(this,t),t===this._recent&&(this._recent=this._last),jt(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wt(Le.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=re(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var n=ai.delayedCall(0,e||ut,i);return n.data="isPause",this._hasPause=1,Zt(this,n,re(this,t))},i.removePause=function(t){var e=this._first;for(t=re(this,t);e;)e._start===t&&"isPause"===e.data&&Nt(e),e=e._next},i.killTweensOf=function(t,e,i){for(var n=this.getTweensOf(t,i),r=n.length;r--;)Ze!==n[r]&&n[r].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,n=[],r=ue(t),s=this._first,a=q(e);s;)s instanceof ai?Mt(s._targets,r)&&(a?(!Ze||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(i=s.getTweensOf(r,e)).length&&n.push.apply(n,i),s=s._next;return n},i.tweenTo=function(t,e){e=e||{};var i,n=this,r=re(n,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,h=s.immediateRender,c=ai.to(n,Ft({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:e.duration||Math.abs((r-(a&&"time"in a?a.time:n._time))/n.timeScale())||R,onStart:function(){if(n.pause(),!i){var t=e.duration||Math.abs((r-(a&&"time"in a?a.time:n._time))/n.timeScale());c._dur!==t&&ee(c,t,0,1).render(c._time,!0,!0),i=1}o&&o.apply(c,l||[])}},e));return h?c.render(0):c},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,Ft({startAt:{time:re(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),Ee(this,re(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),Ee(this,re(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+R)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var n,r=this._first,s=this.labels;r;)r._start>=i&&(r._start+=t,r._end+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return jt(this)},i.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),jt(this)},i.totalDuration=function(t){var e,i,n,r=0,s=this,o=s._last,l=O;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(i=o._start)>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,Zt(s,o,i-o._delay,1)._lock=0):l=i,i<0&&o._ts&&(r-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),l=0),o._end>r&&o._ts&&(r=o._end),o=e;ee(s,s===a&&s._time>r?s._time:r,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(a._ts&&(kt(a,$t(t,a)),p=Le.frame),Le.frame>=vt){vt+=F.autoSleep||120;var e=a._first;if((!e||!e._ts)&&F.autoSleep&&Le._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Le.sleep()}}},e}(Ye);Ft(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ze,Je,Ke=function(t,e,i,n,r,s,a){var o,l,h,c,p,u,f,d,m=new xi(this._pt,t,e,0,1,di,null,r),g=0,y=0;for(m.b=i,m.e=n,i+="",(f=~(n+="").indexOf("random("))&&(n=be(n)),s&&(s(d=[i,n],t,e),i=d[0],n=d[1]),l=i.match(it)||[];o=it.exec(n);)c=o[0],p=n.substring(g,o.index),h?h=(h+1)%5:"rgba("===p.substr(-5)&&(h=1),c!==l[y++]&&(u=parseFloat(l[y-1])||0,m._pt={_next:m._pt,p:p||1===y?p:",",s:u,c:"="===c.charAt(1)?Tt(u,c)-u:parseFloat(c)-u,m:h&&h<4?Math.round:0},g=it.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=a,(nt.test(n)||f)&&(m.e=0),this._pt=m,m},Qe=function(t,e,i,n,r,s,a,o,l){W(n)&&(n=n(r||0,t,s));var h,c=t[e],p="get"!==i?i:W(c)?l?t[e.indexOf("set")||!W(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,u=W(c)?l?hi:li:oi;if(H(n)&&(~n.indexOf("random(")&&(n=be(n)),"="===n.charAt(1)&&((h=Tt(p,n)+(le(p)||0))||0===h)&&(n=h)),p!==n||Je)return isNaN(p*n)||""===n?(!c&&!(e in t)&&ht(e,n),Ke.call(this,t,e,p,n,u,o||F.stringFilter,l)):(h=new xi(this._pt,t,e,+p||0,n-(p||0),"boolean"==typeof c?fi:ui,0,u),l&&(h.fp=l),a&&h.modifier(a,this,t),this._pt=h)},ti=function(t,e,i,n,r,s){var a,o,l,h;if(gt[t]&&!1!==(a=new gt[t]).init(r,a.rawVars?e[t]:function(t,e,i,n,r){if(W(t)&&(t=ni(t,r,e,i,n)),!X(t)||t.style&&t.nodeType||K(t)||J(t))return H(t)?ni(t,r,e,i,n):t;var s,a={};for(s in t)a[s]=ni(t[s],r,e,i,n);return a}(e[t],n,r,s,i),i,n,s)&&(i._pt=o=new xi(i._pt,r,t,0,1,a.render,a,0,a.priority),i!==u))for(l=i._ptLookup[i._targets.indexOf(r)],h=a._props.length;h--;)l[a._props[h]]=o;return a},ei=function t(e,i){var n,r,o,l,h,c,p,u,f,d,m,g,y,v=e.vars,b=v.ease,x=v.startAt,E=v.immediateRender,_=v.lazy,S=v.onUpdate,P=v.onUpdateParams,C=v.callbackScope,w=v.runBackwards,T=v.yoyoEase,M=v.keyframes,A=v.autoRevert,k=e._dur,D=e._startAt,I=e._targets,F=e.parent,B=F&&"nested"===F.data?F.parent._targets:I,z="auto"===e._overwrite&&!s,V=e.timeline;if(V&&(!M||!b)&&(b="none"),e._ease=Ge(b,L.ease),e._yEase=T?Ne(Ge(!0===T?b:T,L.ease)):0,T&&e._yoyo&&!e._repeat&&(T=e._yEase,e._yEase=e._ease,e._ease=T),e._from=!V&&!!v.runBackwards,!V||M&&!v.stagger){if(g=(u=I[0]?_t(I[0]).harness:0)&&v[u.prop],n=Rt(v,ft),D&&(Nt(D.render(-1,!0)),D._lazy=0),x)if(Nt(e._startAt=ai.set(I,Ft({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:Y(_),startAt:null,delay:0,onUpdate:S,onUpdateParams:P,callbackScope:C,stagger:0},x))),i<0&&!E&&!A&&e._startAt.render(-1,!0),E){if(i>0&&!A&&(e._startAt=0),k&&i<=0)return void(i&&(e._zTime=i))}else!1===A&&(e._startAt=0);else if(w&&k)if(D)!A&&(e._startAt=0);else if(i&&(E=!1),o=Ft({overwrite:!1,data:"isFromStart",lazy:E&&Y(_),immediateRender:E,stagger:0,parent:F},n),g&&(o[u.prop]=g),Nt(e._startAt=ai.set(I,o)),i<0&&e._startAt.render(-1,!0),e._zTime=i,E){if(!i)return}else t(e._startAt,R);for(e._pt=e._ptCache=0,_=k&&Y(_)||_&&!k,r=0;r<I.length;r++){if(p=(h=I[r])._gsap||Et(I)[r]._gsap,e._ptLookup[r]=d={},mt[p.id]&&dt.length&&At(),m=B===I?r:B.indexOf(h),u&&!1!==(f=new u).init(h,g||n,e,m,B)&&(e._pt=l=new xi(e._pt,h,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=l})),f.priority&&(c=1)),!u||g)for(o in n)gt[o]&&(f=ti(o,n,e,m,h,B))?f.priority&&(c=1):d[o]=l=Qe.call(e,h,o,"get",n[o],m,B,0,v.stringFilter);e._op&&e._op[r]&&e.kill(h,e._op[r]),z&&e._pt&&(Ze=e,a.killTweensOf(h,d,e.globalTime(i)),y=!e.parent,Ze=0),e._pt&&_&&(mt[p.id]=1)}c&&bi(e),e._onInit&&e._onInit(e)}e._onUpdate=S,e._initted=(!e._op||e._pt)&&!y,M&&i<=0&&V.render(O,!0,!0)},ii=function(t,e,i,n){var r,s,a=e.ease||n||"power1.inOut";if(K(e))s=i[t]||(i[t]=[]),e.forEach((function(t,i){return s.push({t:i/(e.length-1)*100,v:t,e:a})}));else for(r in e)s=i[r]||(i[r]=[]),"ease"===r||s.push({t:parseFloat(t),v:e[r],e:a})},ni=function(t,e,i,n,r){return W(t)?t.call(e,i,n,r):H(t)&&~t.indexOf("random(")?be(t):t},ri=xt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",si={};Pt(ri+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return si[t]=1}));var ai=function(t){function e(e,i,r,o){var l;"number"==typeof i&&(r.duration=i,i=r,r=null);var h,c,p,u,f,d,m,g,y=(l=t.call(this,o?i:Bt(i))||this).vars,v=y.duration,b=y.delay,x=y.immediateRender,E=y.stagger,_=y.overwrite,S=y.keyframes,P=y.defaults,C=y.scrollTrigger,w=y.yoyoEase,T=i.parent||a,M=(K(e)||J(e)?q(e[0]):"length"in i)?[e]:ue(e);if(l._targets=M.length?Et(M):ct("GSAP target "+e+" not found. https://greensock.com",!F.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=_,S||E||Z(v)||Z(b)){if(i=l.vars,(h=l.timeline=new Ue({data:"nested",defaults:P||{}})).kill(),h.parent=h._dp=n(l),h._start=0,E||Z(v)||Z(b)){if(u=M.length,m=E&&de(E),X(E))for(f in E)~ri.indexOf(f)&&(g||(g={}),g[f]=E[f]);for(c=0;c<u;c++)(p=Rt(i,si)).stagger=0,w&&(p.yoyoEase=w),g&&Lt(p,g),d=M[c],p.duration=+ni(v,n(l),c,d,M),p.delay=(+ni(b,n(l),c,d,M)||0)-l._delay,!E&&1===u&&p.delay&&(l._delay=b=p.delay,l._start+=b,p.delay=0),h.to(d,p,m?m(c,d,M):0),h._ease=Re.none;h.duration()?v=b=0:l.timeline=0}else if(S){Bt(Ft(h.vars.defaults,{ease:"none"})),h._ease=Ge(S.ease||i.ease||"none");var A,k,D,I=0;if(K(S))S.forEach((function(t){return h.to(M,t,">")}));else{for(f in p={},S)"ease"===f||"easeEach"===f||ii(f,S[f],p,S.easeEach);for(f in p)for(A=p[f].sort((function(t,e){return t.t-e.t})),I=0,c=0;c<A.length;c++)(D={ease:(k=A[c]).e,duration:(k.t-(c?A[c-1].t:0))/100*v})[f]=k.v,h.to(M,D,I),I+=D.duration;h.duration()<v&&h.to({},{duration:v-h.duration()})}}v||l.duration(v=h.duration())}else l.timeline=0;return!0!==_||s||(Ze=n(l),a.killTweensOf(M),Ze=0),Zt(T,n(l),r),i.reversed&&l.reverse(),i.paused&&l.paused(!0),(x||!v&&!S&&l._start===wt(T._time)&&Y(x)&&Ht(n(l))&&"nested"!==T.data)&&(l._tTime=-1e-8,l.render(Math.max(0,-b))),C&&Jt(n(l),C),l}r(e,t);var i=e.prototype;return i.render=function(t,e,i){var n,r,s,a,o,l,h,c,p,u=this._time,f=this._tDur,d=this._dur,m=t>f-R&&t>=0?f:t<R?0:t;if(d){if(m!==this._tTime||!t||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(n=m,c=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,i);if(n=wt(m%a),m===f?(s=this._repeat,n=d):((s=~~(m/a))&&s===m/a&&(n=d,s--),n>d&&(n=d)),(l=this._yoyo&&1&s)&&(p=this._yEase,n=d-n),o=qt(this._tTime,a),n===u&&!i&&this._initted)return this._tTime=m,this;s!==o&&(c&&this._yEase&&je(c,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=i=1,this.render(wt(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(Kt(this,t<0?t:n,i,e))return this._tTime=0,this;if(u!==this._time)return this;if(d!==this._dur)return this.render(t,e,i)}if(this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(p||this._ease)(n/d),this._from&&(this.ratio=h=1-h),n&&!u&&!e&&(_e(this,"onStart"),this._tTime!==m))return this;for(r=this._pt;r;)r.r(h,r.d),r=r._next;c&&c.render(t<0?t:!n&&l?-1e-8:c._dur*c._ease(n/this._dur),e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,i),_e(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&_e(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!d)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Nt(this,1),e||t<0&&!u||!m&&!u||(_e(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,i,n){var r,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&Qt(t)&&(t._initted||!te(t))||(t._ts<0||t._dp._ts<0)&&!te(t))?0:1,h=t._rDelay,c=0;if(h&&t._repeat&&(c=oe(0,t._tDur,e),s=qt(c,h),t._yoyo&&1&s&&(l=1-l),s!==qt(t._tTime,h)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||n||t._zTime===R||!e&&t._zTime){if(!t._initted&&Kt(t,e,n,i))return;for(a=t._zTime,t._zTime=e||(i?R:0),i||(i=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,r=t._pt;r;)r.r(l,r.d),r=r._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!i&&_e(t,"onUpdate"),c&&t._repeat&&!i&&t.parent&&_e(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Nt(t,1),i||(_e(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},i.resetTo=function(t,e,i,n){f||Le.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||ei(this,r),function(t,e,i,n,r,s,a){var o,l,h,c=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!c)for(c=t._ptCache[e]=[],l=t._ptLookup,h=t._targets.length;h--;){if((o=l[h][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e;)o=o._next;if(!o)return Je=1,t.vars[e]="+=0",ei(t,a),Je=0,1;c.push(o)}for(h=c.length;h--;)(o=c[h]).s=!n&&0!==n||r?o.s+(n||0)+s*o.c:n,o.c=i-o.s,o.e&&(o.e=Ct(i)+le(o.e)),o.b&&(o.b=o.s+le(o.b))}(this,t,e,i,n,this._ease(r/this._dur),r)?this.resetTo(t,e,i,n):(Yt(this,0),this.parent||zt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Se(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ze&&!0!==Ze.vars.overwrite)._first||Se(this),this.parent&&i!==this.timeline.totalDuration()&&ee(this,this._dur*this.timeline._tDur/i,0,1),this}var n,r,s,a,o,l,h,c=this._targets,p=t?ue(t):c,u=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(c,p))return"all"===e&&(this._pt=0),Se(this);for(n=this._op=this._op||[],"all"!==e&&(H(e)&&(o={},Pt(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var i,n,r,s,a=t[0]?_t(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in i=Lt({},e),o)if(n in i)for(r=(s=o[n].split(",")).length;r--;)i[s[r]]=i[n];return i}(c,e)),h=c.length;h--;)if(~p.indexOf(c[h]))for(o in r=u[h],"all"===e?(n[h]=e,a=r,s={}):(s=n[h]=n[h]||{},a=e),a)(l=r&&r[o])&&("kill"in l.d&&!0!==l.d.kill(o)||Vt(this,l,"_pt"),delete r[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&f&&Se(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,e){return se(1,arguments)},e.delayedCall=function(t,i,n,r){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},e.fromTo=function(t,e,i){return se(2,arguments)},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return a.killTweensOf(t,e,i)},e}(Ye);Ft(ai.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pt("staggerTo,staggerFrom,staggerFromTo",(function(t){ai[t]=function(){var e=new Ue,i=he.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}}));var oi=function(t,e,i){return t[e]=i},li=function(t,e,i){return t[e](i)},hi=function(t,e,i,n){return t[e](n.fp,i)},ci=function(t,e,i){return t.setAttribute(e,i)},pi=function(t,e){return W(t[e])?li:$(t[e])&&t.setAttribute?ci:oi},ui=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},fi=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},di=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},mi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},gi=function(t,e,i,n){for(var r,s=this._pt;s;)r=s._next,s.p===n&&s.modifier(t,e,i),s=r},yi=function(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?Vt(this,n,"_pt"):n.dep||(e=1),n=i;return!e},vi=function(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)},bi=function(t){for(var e,i,n,r,s=t._pt;s;){for(e=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:r)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:r=s,s=e}t._pt=n},xi=function(){function t(t,e,i,n,r,s,a,o,l){this.t=e,this.s=n,this.c=r,this.p=i,this.r=s||ui,this.d=a||this,this.set=o||oi,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=vi,this.m=t,this.mt=i,this.tween=e},t}();Pt(xt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return ft[t]=1})),at.TweenMax=at.TweenLite=ai,at.TimelineLite=at.TimelineMax=Ue,a=new Ue({sortChildren:!1,defaults:L,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),F.stringFilter=Fe;var Ei={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach((function(t){return Pe(t)}))},timeline:function(t){return new Ue(t)},getTweensOf:function(t,e){return a.getTweensOf(t,e)},getProperty:function(t,e,i,n){H(t)&&(t=ue(t)[0]);var r=_t(t||{}).get,s=i?It:Dt;return"native"===i&&(i=""),t?e?s((gt[e]&>[e].get||r)(t,e,i,n)):function(e,i,n){return s((gt[e]&>[e].get||r)(t,e,i,n))}:t},quickSetter:function(t,e,i){if((t=ue(t)).length>1){var n=t.map((function(t){return Pi.quickSetter(t,e,i)})),r=n.length;return function(t){for(var e=r;e--;)n[e](t)}}t=t[0]||{};var s=gt[e],a=_t(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;u._pt=0,n.init(t,i?e+i:e,u,0,[t]),n.render(1,n),u._pt&&mi(1,u)}:a.set(t,o);return s?l:function(e){return l(t,o,i?e+i:e,a,1)}},quickTo:function(t,e,i){var n,r=Pi.to(t,Lt(((n={})[e]="+=0.1",n.paused=!0,n),i||{})),s=function(t,i,n){return r.resetTo(e,t,i,n)};return s.tween=r,s},isTweening:function(t){return a.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ge(t.ease,L.ease)),Ot(L,t||{})},config:function(t){return Ot(F,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,n=t.plugins,r=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!gt[t]&&!at[t]&&ct(e+" effect requires "+t+" plugin.")})),yt[e]=function(t,e,n){return i(ue(t),Ft(e||{},r),n)},s&&(Ue.prototype[e]=function(t,i,n){return this.add(yt[e](t,X(i)?i:(n=i)&&{},this),n)})},registerEase:function(t,e){Re[t]=Ge(e)},parseEase:function(t,e){return arguments.length?Ge(t,e):Re},getById:function(t){return a.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,n,r=new Ue(t);for(r.smoothChildTiming=Y(t.smoothChildTiming),a.remove(r),r._dp=0,r._time=r._tTime=a._time,i=a._first;i;)n=i._next,!e&&!i._dur&&i instanceof ai&&i.vars.onComplete===i._targets[0]||Zt(r,i,i._start-i._delay),i=n;return Zt(a,r,0),r},utils:{wrap:function t(e,i,n){var r=i-e;return K(e)?ve(e,t(0,e.length),i):ae(n,(function(t){return(r+(t-e)%r)%r+e}))},wrapYoyo:function t(e,i,n){var r=i-e,s=2*r;return K(e)?ve(e,t(0,e.length-1),i):ae(n,(function(t){return e+((t=(s+(t-e)%s)%s||0)>r?s-t:t)}))},distribute:de,random:ye,snap:ge,normalize:function(t,e,i){return xe(t,e,0,1,i)},getUnit:le,clamp:function(t,e,i){return ae(i,(function(i){return oe(t,e,i)}))},splitColor:Me,toArray:ue,selector:function(t){return t=ue(t)[0]||ct("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ue(e,i.querySelectorAll?i:i===t?ct("Invalid scope")||h.createElement("div"):t)}},mapRange:xe,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(i){return t(parseFloat(i))+(e||le(i))}},interpolate:function t(e,i,n,r){var s=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!s){var a,o,l,h,c,p=H(e),u={};if(!0===n&&(r=1)&&(n=null),p)e={p:e},i={p:i};else if(K(e)&&!K(i)){for(l=[],h=e.length,c=h-2,o=1;o<h;o++)l.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(c,~~t);return l[e](t-e)},n=i}else r||(e=Lt(K(e)?[]:{},e));if(!l){for(a in i)Qe.call(u,e,a,"get",i[a]);s=function(t){return mi(t,u)||(p?e.p:e)}}}return ae(n,s)},shuffle:fe},install:lt,effects:yt,ticker:Le,updateRoot:Ue.updateRoot,plugins:gt,globalTimeline:a,core:{PropTween:xi,globals:pt,Tween:ai,Timeline:Ue,Animation:Ye,getCache:_t,_removeLinkedListItem:Vt,suppressOverwrites:function(t){return s=t}}};Pt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ei[t]=ai[t]})),Le.add(Ue.updateRoot),u=Ei.to({},{duration:0});var _i=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Si=function(t,e){return{name:t,rawVars:1,init:function(t,i,n){n._onInit=function(t){var n,r;if(H(i)&&(n={},Pt(i,(function(t){return n[t]=1})),i=n),e){for(r in n={},i)n[r]=e(i[r]);i=n}!function(t,e){var i,n,r,s=t._targets;for(i in e)for(n=s.length;n--;)(r=t._ptLookup[n][i])&&(r=r.d)&&(r._pt&&(r=_i(r,i)),r&&r.modifier&&r.modifier(e[i],t,s[n],i))}(t,i)}}}},Pi=Ei.registerPlugin({name:"attr",init:function(t,e,i,n,r){var s,a;for(s in e)(a=this.add(t,"setAttribute",(t.getAttribute(s)||0)+"",e[s],n,r,0,0,s))&&(a.op=s),this._props.push(s)}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i])}},Si("roundProps",me),Si("modifiers"),Si("snap",ge))||Ei;ai.version=Ue.version=Pi.version="3.10.4",c=1,U()&&Oe();Re.Power0,Re.Power1,Re.Power2,Re.Power3,Re.Power4,Re.Linear,Re.Quad,Re.Cubic,Re.Quart,Re.Quint,Re.Strong,Re.Elastic,Re.Back,Re.SteppedEase,Re.Bounce,Re.Sine,Re.Expo,Re.Circ;var Ci,wi,Ti,Mi,Ai,ki,Di,Ii={},Fi=180/Math.PI,Li=Math.PI/180,Oi=Math.atan2,Ri=/([A-Z])/g,Bi=/(left|right|width|margin|padding|x)/i,zi=/[\s,\(]\S/,Vi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ni=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ji=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Gi=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Hi=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Wi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},qi=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},$i=function(t,e,i){return t.style[e]=i},Xi=function(t,e,i){return t.style.setProperty(e,i)},Yi=function(t,e,i){return t._gsap[e]=i},Ui=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},Zi=function(t,e,i,n,r){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},Ji=function(t,e,i,n,r){var s=t._gsap;s[e]=i,s.renderTransform(r,s)},Ki="transform",Qi=Ki+"Origin",tn=function(t,e){var i=wi.createElementNS?wi.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):wi.createElement(t);return i.style?i:wi.createElement(t)},en=function t(e,i,n){var r=getComputedStyle(e);return r[i]||r.getPropertyValue(i.replace(Ri,"-$1").toLowerCase())||r.getPropertyValue(i)||!n&&t(e,rn(i)||i,1)||""},nn="O,Moz,ms,Ms,Webkit".split(","),rn=function(t,e,i){var n=(e||Ai).style,r=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);r--&&!(nn[r]+t in n););return r<0?null:(3===r?"ms":r>=0?nn[r]:"")+t},sn=function(){"undefined"!=typeof window&&window.document&&(Ci=window,wi=Ci.document,Ti=wi.documentElement,Ai=tn("div")||{style:{}},tn("div"),Ki=rn(Ki),Qi=Ki+"Origin",Ai.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Di=!!rn("perspective"),Mi=1)},an=function t(e){var i,n=tn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,a=this.style.cssText;if(Ti.appendChild(n),n.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),Ti.removeChild(n),this.style.cssText=a,i},on=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},ln=function(t){var e;try{e=t.getBBox()}catch(i){e=an.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===an||(e=an.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+on(t,["x","cx","x1"])||0,y:+on(t,["y","cy","y1"])||0,width:0,height:0}},hn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ln(t))},cn=function(t,e){if(e){var i=t.style;e in Ii&&e!==Qi&&(e=Ki),i.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty(e.replace(Ri,"-$1").toLowerCase())):i.removeAttribute(e)}},pn=function(t,e,i,n,r,s){var a=new xi(t._pt,e,i,0,1,s?qi:Wi);return t._pt=a,a.b=n,a.e=r,t._props.push(i),a},un={deg:1,rad:1,turn:1},fn=function t(e,i,n,r){var s,a,o,l,h=parseFloat(n)||0,c=(n+"").trim().substr((h+"").length)||"px",p=Ai.style,u=Bi.test(i),f="svg"===e.tagName.toLowerCase(),d=(f?"client":"offset")+(u?"Width":"Height"),m=100,g="px"===r,y="%"===r;return r===c||!h||un[r]||un[c]?h:("px"!==c&&!g&&(h=t(e,i,n,"px")),l=e.getCTM&&hn(e),!y&&"%"!==c||!Ii[i]&&!~i.indexOf("adius")?(p[u?"width":"height"]=m+(g?c:r),a=~i.indexOf("adius")||"em"===r&&e.appendChild&&!f?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==wi&&a.appendChild||(a=wi.body),(o=a._gsap)&&y&&o.width&&u&&o.time===Le.time?Ct(h/o.width*m):((y||"%"===c)&&(p.position=en(e,"position")),a===e&&(p.position="static"),a.appendChild(Ai),s=Ai[d],a.removeChild(Ai),p.position="absolute",u&&y&&((o=_t(a)).time=Le.time,o.width=a[d]),Ct(g?s*h/m:s&&h?m/s*h:0))):(s=l?e.getBBox()[u?"width":"height"]:e[d],Ct(y?h/s*m:h/100*s)))},dn=function(t,e,i,n){var r;return Mi||sn(),e in Vi&&"transform"!==e&&~(e=Vi[e]).indexOf(",")&&(e=e.split(",")[0]),Ii[e]&&"transform"!==e?(r=Cn(t,n),r="transformOrigin"!==e?r[e]:r.svg?r.origin:wn(en(t,Qi))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=vn[e]&&vn[e](t,e,i)||en(t,e)||St(t,e)||("opacity"===e?1:0)),i&&!~(r+"").trim().indexOf(" ")?fn(t,e,r,i)+i:r},mn=function(t,e,i,n){if(!i||"none"===i){var r=rn(e,t,1),s=r&&en(t,r,1);s&&s!==i?(e=r,i=s):"borderColor"===e&&(i=en(t,"borderTopColor"))}var a,o,l,h,c,p,u,f,d,m,g,y=new xi(this._pt,t.style,e,0,1,di),v=0,b=0;if(y.b=i,y.e=n,i+="","auto"===(n+="")&&(t.style[e]=n,n=en(t,e)||n,t.style[e]=i),Fe(a=[i,n]),n=a[1],l=(i=a[0]).match(et)||[],(n.match(et)||[]).length){for(;o=et.exec(n);)u=o[0],d=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),u!==(p=l[b++]||"")&&(h=parseFloat(p)||0,g=p.substr((h+"").length),"="===u.charAt(1)&&(u=Tt(h,u)+g),f=parseFloat(u),m=u.substr((f+"").length),v=et.lastIndex-m.length,m||(m=m||F.units[e]||g,v===n.length&&(n+=m,y.e+=m)),g!==m&&(h=fn(t,e,p,m)||0),y._pt={_next:y._pt,p:d||1===b?d:",",s:h,c:f-h,m:c&&c<4||"zIndex"===e?Math.round:0});y.c=v<n.length?n.substring(v,n.length):""}else y.r="display"===e&&"none"===n?qi:Wi;return nt.test(n)&&(y.e=0),this._pt=y,y},gn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},yn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,n,r,s=e.t,a=s.style,o=e.u,l=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(r=(o=o.split(",")).length;--r>-1;)i=o[r],Ii[i]&&(n=1,i="transformOrigin"===i?Qi:Ki),cn(s,i);n&&(cn(s,Ki),l&&(l.svg&&s.removeAttribute("transform"),Cn(s,1),l.uncache=1))}},vn={clearProps:function(t,e,i,n,r){if("isFromStart"!==r.data){var s=t._pt=new xi(t._pt,e,i,0,0,yn);return s.u=n,s.pr=-10,s.tween=r,t._props.push(i),1}}},bn=[1,0,0,1,0,0],xn={},En=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},_n=function(t){var e=en(t,Ki);return En(e)?bn:e.substr(7).match(tt).map(Ct)},Sn=function(t,e){var i,n,r,s,a=t._gsap||_t(t),o=t.style,l=_n(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?bn:l:(l!==bn||t.offsetParent||t===Ti||a.svg||(r=o.display,o.display="block",(i=t.parentNode)&&t.offsetParent||(s=1,n=t.nextSibling,Ti.appendChild(t)),l=_n(t),r?o.display=r:cn(t,"display"),s&&(n?i.insertBefore(t,n):i?i.appendChild(t):Ti.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Pn=function(t,e,i,n,r,s){var a,o,l,h=t._gsap,c=r||Sn(t,!0),p=h.xOrigin||0,u=h.yOrigin||0,f=h.xOffset||0,d=h.yOffset||0,m=c[0],g=c[1],y=c[2],v=c[3],b=c[4],x=c[5],E=e.split(" "),_=parseFloat(E[0])||0,S=parseFloat(E[1])||0;i?c!==bn&&(o=m*v-g*y)&&(l=_*(-g/o)+S*(m/o)-(m*x-g*b)/o,_=_*(v/o)+S*(-y/o)+(y*x-v*b)/o,S=l):(_=(a=ln(t)).x+(~E[0].indexOf("%")?_/100*a.width:_),S=a.y+(~(E[1]||E[0]).indexOf("%")?S/100*a.height:S)),n||!1!==n&&h.smooth?(b=_-p,x=S-u,h.xOffset=f+(b*m+x*y)-b,h.yOffset=d+(b*g+x*v)-x):h.xOffset=h.yOffset=0,h.xOrigin=_,h.yOrigin=S,h.smooth=!!n,h.origin=e,h.originIsAbsolute=!!i,t.style[Qi]="0px 0px",s&&(pn(s,h,"xOrigin",p,_),pn(s,h,"yOrigin",u,S),pn(s,h,"xOffset",f,h.xOffset),pn(s,h,"yOffset",d,h.yOffset)),t.setAttribute("data-svg-origin",_+" "+S)},Cn=function(t,e){var i=t._gsap||new Xe(t);if("x"in i&&!e&&!i.uncache)return i;var n,r,s,a,o,l,h,c,p,u,f,d,m,g,y,v,b,x,E,_,S,P,C,w,T,M,A,k,D,I,L,O,R=t.style,B=i.scaleX<0,z="px",V="deg",N=en(t,Qi)||"0";return n=r=s=l=h=c=p=u=f=0,a=o=1,i.svg=!(!t.getCTM||!hn(t)),g=Sn(t,i.svg),i.svg&&(w=(!i.uncache||"0px 0px"===N)&&!e&&t.getAttribute("data-svg-origin"),Pn(t,w||N,!!w||i.originIsAbsolute,!1!==i.smooth,g)),d=i.xOrigin||0,m=i.yOrigin||0,g!==bn&&(x=g[0],E=g[1],_=g[2],S=g[3],n=P=g[4],r=C=g[5],6===g.length?(a=Math.sqrt(x*x+E*E),o=Math.sqrt(S*S+_*_),l=x||E?Oi(E,x)*Fi:0,(p=_||S?Oi(_,S)*Fi+l:0)&&(o*=Math.abs(Math.cos(p*Li))),i.svg&&(n-=d-(d*x+m*_),r-=m-(d*E+m*S))):(O=g[6],I=g[7],A=g[8],k=g[9],D=g[10],L=g[11],n=g[12],r=g[13],s=g[14],h=(y=Oi(O,D))*Fi,y&&(w=P*(v=Math.cos(-y))+A*(b=Math.sin(-y)),T=C*v+k*b,M=O*v+D*b,A=P*-b+A*v,k=C*-b+k*v,D=O*-b+D*v,L=I*-b+L*v,P=w,C=T,O=M),c=(y=Oi(-_,D))*Fi,y&&(v=Math.cos(-y),L=S*(b=Math.sin(-y))+L*v,x=w=x*v-A*b,E=T=E*v-k*b,_=M=_*v-D*b),l=(y=Oi(E,x))*Fi,y&&(w=x*(v=Math.cos(y))+E*(b=Math.sin(y)),T=P*v+C*b,E=E*v-x*b,C=C*v-P*b,x=w,P=T),h&&Math.abs(h)+Math.abs(l)>359.9&&(h=l=0,c=180-c),a=Ct(Math.sqrt(x*x+E*E+_*_)),o=Ct(Math.sqrt(C*C+O*O)),y=Oi(P,C),p=Math.abs(y)>2e-4?y*Fi:0,f=L?1/(L<0?-L:L):0),i.svg&&(w=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!En(en(t,Ki)),w&&t.setAttribute("transform",w))),Math.abs(p)>90&&Math.abs(p)<270&&(B?(a*=-1,p+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,p+=p<=0?180:-180)),e=e||i.uncache,i.x=n-((i.xPercent=n&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+z,i.y=r-((i.yPercent=r&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+z,i.z=s+z,i.scaleX=Ct(a),i.scaleY=Ct(o),i.rotation=Ct(l)+V,i.rotationX=Ct(h)+V,i.rotationY=Ct(c)+V,i.skewX=p+V,i.skewY=u+V,i.transformPerspective=f+z,(i.zOrigin=parseFloat(N.split(" ")[2])||0)&&(R[Qi]=wn(N)),i.xOffset=i.yOffset=0,i.force3D=F.force3D,i.renderTransform=i.svg?Fn:Di?In:Mn,i.uncache=0,i},wn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Tn=function(t,e,i){var n=le(e);return Ct(parseFloat(e)+parseFloat(fn(t,"x",i+"px",n)))+n},Mn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,In(t,e)},An="0deg",kn="0px",Dn=") ",In=function(t,e){var i=e||this,n=i.xPercent,r=i.yPercent,s=i.x,a=i.y,o=i.z,l=i.rotation,h=i.rotationY,c=i.rotationX,p=i.skewX,u=i.skewY,f=i.scaleX,d=i.scaleY,m=i.transformPerspective,g=i.force3D,y=i.target,v=i.zOrigin,b="",x="auto"===g&&t&&1!==t||!0===g;if(v&&(c!==An||h!==An)){var E,_=parseFloat(h)*Li,S=Math.sin(_),P=Math.cos(_);_=parseFloat(c)*Li,E=Math.cos(_),s=Tn(y,s,S*E*-v),a=Tn(y,a,-Math.sin(_)*-v),o=Tn(y,o,P*E*-v+v)}m!==kn&&(b+="perspective("+m+Dn),(n||r)&&(b+="translate("+n+"%, "+r+"%) "),(x||s!==kn||a!==kn||o!==kn)&&(b+=o!==kn||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Dn),l!==An&&(b+="rotate("+l+Dn),h!==An&&(b+="rotateY("+h+Dn),c!==An&&(b+="rotateX("+c+Dn),p===An&&u===An||(b+="skew("+p+", "+u+Dn),1===f&&1===d||(b+="scale("+f+", "+d+Dn),y.style[Ki]=b||"translate(0, 0)"},Fn=function(t,e){var i,n,r,s,a,o=e||this,l=o.xPercent,h=o.yPercent,c=o.x,p=o.y,u=o.rotation,f=o.skewX,d=o.skewY,m=o.scaleX,g=o.scaleY,y=o.target,v=o.xOrigin,b=o.yOrigin,x=o.xOffset,E=o.yOffset,_=o.forceCSS,S=parseFloat(c),P=parseFloat(p);u=parseFloat(u),f=parseFloat(f),(d=parseFloat(d))&&(f+=d=parseFloat(d),u+=d),u||f?(u*=Li,f*=Li,i=Math.cos(u)*m,n=Math.sin(u)*m,r=Math.sin(u-f)*-g,s=Math.cos(u-f)*g,f&&(d*=Li,a=Math.tan(f-d),r*=a=Math.sqrt(1+a*a),s*=a,d&&(a=Math.tan(d),i*=a=Math.sqrt(1+a*a),n*=a)),i=Ct(i),n=Ct(n),r=Ct(r),s=Ct(s)):(i=m,s=g,n=r=0),(S&&!~(c+"").indexOf("px")||P&&!~(p+"").indexOf("px"))&&(S=fn(y,"x",c,"px"),P=fn(y,"y",p,"px")),(v||b||x||E)&&(S=Ct(S+v-(v*i+b*r)+x),P=Ct(P+b-(v*n+b*s)+E)),(l||h)&&(a=y.getBBox(),S=Ct(S+l/100*a.width),P=Ct(P+h/100*a.height)),a="matrix("+i+","+n+","+r+","+s+","+S+","+P+")",y.setAttribute("transform",a),_&&(y.style[Ki]=a)},Ln=function(t,e,i,n,r){var s,a,o=360,l=H(r),h=parseFloat(r)*(l&&~r.indexOf("rad")?Fi:1)-n,c=n+h+"deg";return l&&("short"===(s=r.split("_")[1])&&(h%=o)!==h%180&&(h+=h<0?o:-360),"cw"===s&&h<0?h=(h+36e9)%o-~~(h/o)*o:"ccw"===s&&h>0&&(h=(h-36e9)%o-~~(h/o)*o)),t._pt=a=new xi(t._pt,e,i,n,h,ji),a.e=c,a.u="deg",t._props.push(i),a},On=function(t,e){for(var i in e)t[i]=e[i];return t},Rn=function(t,e,i){var n,r,s,a,o,l,h,c=On({},i._gsap),p=i.style;for(r in c.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),p[Ki]=e,n=Cn(i,1),cn(i,Ki),i.setAttribute("transform",s)):(s=getComputedStyle(i)[Ki],p[Ki]=e,n=Cn(i,1),p[Ki]=s),Ii)(s=c[r])!==(a=n[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(o=le(s)!==(h=le(a))?fn(i,r,s,h):parseFloat(s),l=parseFloat(a),t._pt=new xi(t._pt,n,r,o,l-o,Ni),t._pt.u=h||0,t._props.push(r));On(n,c)};Pt("padding,margin,Width,Radius",(function(t,e){var i="Top",n="Right",r="Bottom",s="Left",a=(e<3?[i,n,r,s]:[i+s,i+n,r+n,r+s]).map((function(i){return e<2?t+i:"border"+i+t}));vn[e>1?"border"+t:t]=function(t,e,i,n,r){var s,o;if(arguments.length<4)return s=a.map((function(e){return dn(t,e,i)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(n+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,r)}}));var Bn,zn,Vn,Nn={name:"css",register:sn,targetTest:function(t){return t.style&&t.nodeType}
2,init:function(t,e,i,n,r){var s,a,o,l,h,c,p,u,f,d,m,g,y,v,b,x,E,_,S,P=this._props,C=t.style,w=i.vars.startAt;for(p in Mi||sn(),e)if("autoRound"!==p&&(a=e[p],!gt[p]||!ti(p,e,i,n,t,r)))if(h=typeof a,c=vn[p],"function"===h&&(h=typeof(a=a.call(i,n,t,r))),"string"===h&&~a.indexOf("random(")&&(a=be(a)),c)c(this,t,p,a,i)&&(b=1);else if("--"===p.substr(0,2))s=(getComputedStyle(t).getPropertyValue(p)+"").trim(),a+="",De.lastIndex=0,De.test(s)||(u=le(s),f=le(a)),f?u!==f&&(s=fn(t,p,s,f)+f):u&&(a+=u),this.add(C,"setProperty",s,a,n,r,0,0,p),P.push(p);else if("undefined"!==h){if(w&&p in w?(s="function"==typeof w[p]?w[p].call(i,n,t,r):w[p],H(s)&&~s.indexOf("random(")&&(s=be(s)),le(s+"")||(s+=F.units[p]||le(dn(t,p))||""),"="===(s+"").charAt(1)&&(s=dn(t,p))):s=dn(t,p),l=parseFloat(s),(d="string"===h&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),p in Vi&&("autoAlpha"===p&&(1===l&&"hidden"===dn(t,"visibility")&&o&&(l=0),pn(this,C,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==p&&"transform"!==p&&~(p=Vi[p]).indexOf(",")&&(p=p.split(",")[0])),m=p in Ii)if(g||((y=t._gsap).renderTransform&&!e.parseTransform||Cn(t,e.parseTransform),v=!1!==e.smoothOrigin&&y.smooth,(g=this._pt=new xi(this._pt,C,Ki,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===p)this._pt=new xi(this._pt,y,"scaleY",y.scaleY,(d?Tt(y.scaleY,d+o):o)-y.scaleY||0),P.push("scaleY",p),p+="X";else{if("transformOrigin"===p){E=void 0,_=void 0,S=void 0,E=(x=a).split(" "),_=E[0],S=E[1]||"50%","top"!==_&&"bottom"!==_&&"left"!==S&&"right"!==S||(x=_,_=S,S=x),E[0]=gn[_]||_,E[1]=gn[S]||S,a=E.join(" "),y.svg?Pn(t,a,0,v,0,this):((f=parseFloat(a.split(" ")[2])||0)!==y.zOrigin&&pn(this,y,"zOrigin",y.zOrigin,f),pn(this,C,p,wn(s),wn(a)));continue}if("svgOrigin"===p){Pn(t,a,1,v,0,this);continue}if(p in xn){Ln(this,y,p,l,d?Tt(l,d+a):a);continue}if("smoothOrigin"===p){pn(this,y,"smooth",y.smooth,a);continue}if("force3D"===p){y[p]=a;continue}if("transform"===p){Rn(this,a,t);continue}}else p in C||(p=rn(p)||p);if(m||(o||0===o)&&(l||0===l)&&!zi.test(a)&&p in C)o||(o=0),(u=(s+"").substr((l+"").length))!==(f=le(a)||(p in F.units?F.units[p]:u))&&(l=fn(t,p,s,f)),this._pt=new xi(this._pt,m?y:C,p,l,(d?Tt(l,d+o):o)-l,m||"px"!==f&&"zIndex"!==p||!1===e.autoRound?Ni:Hi),this._pt.u=f||0,u!==f&&"%"!==f&&(this._pt.b=s,this._pt.r=Gi);else if(p in C)mn.call(this,t,p,s,d?d+a:a);else{if(!(p in t)){ht(p,a);continue}this.add(t,p,s||t[p],d?d+a:a,n,r)}P.push(p)}b&&bi(this)},get:dn,aliases:Vi,getSetter:function(t,e,i){var n=Vi[e];return n&&n.indexOf(",")<0&&(e=n),e in Ii&&e!==Qi&&(t._gsap.x||dn(t,"x"))?i&&ki===i?"scale"===e?Ui:Yi:(ki=i||{})&&("scale"===e?Zi:Ji):t.style&&!$(t.style[e])?$i:~e.indexOf("-")?Xi:pi(t,e)},core:{_removeProperty:cn,_getMatrix:Sn}};Pi.utils.checkPrefix=rn,Vn=Pt((Bn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(zn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ii[t]=1})),Pt(zn,(function(t){F.units[t]="deg",xn[t]=1})),Vi[Vn[13]]=Bn+","+zn,Pt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Vi[e[1]]=Vn[e[0]]})),Pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){F.units[t]="px"})),Pi.registerPlugin(Nn);var jn=Pi.registerPlugin(Nn)||Pi;jn.core.Tween},7564:function(t,e,i){!function(e,n){t.exports?t.exports=n(e,i(7158)):e.imagesLoaded=n(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,n=t.console;function r(t,e,s){if(!(this instanceof r))return new r(t,e,s);let a=t;var o;("string"==typeof t&&(a=document.querySelectorAll(t)),a)?(this.elements=(o=a,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?[...o]:[o]),this.options={},"function"==typeof e?s=e:Object.assign(this.options,e),s&&this.on("always",s),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error(`Bad element for imagesLoaded ${a||t}`)}r.prototype=Object.create(e.prototype),r.prototype.getImages=function(){this.images=[],this.elements.forEac
vendor: 4,104 bytes, line 2
2h(this.addElementImages,this)};const s=[1,9,11];r.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!s.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const a=/url\((['"])?(.*?)\1\)/gi;function o(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=a.exec(e.backgroundImage);for(;null!==i;){let n=i&&i[2];n&&this.addBackground(n,t),i=a.exec(e.backgroundImage)}},r.prototype.addImage=function(t){let e=new o(t);this.images.push(e)},r.prototype.addBackground=function(t,e){let i=new l(t,e);this.images.push(i)},r.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&n&&n.log(`progress: ${i}`,t,e)},r.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,n="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,n,e])},o.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(o.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}))},5440:function(t){t.exports=function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i(2));t.exports=r.default},function(t,e){function i(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(9)),s=n(i(3)),a=i(4),o=function(){if("undefined"!=typeof window){var t=100,e=["scroll","resize","load"],i={history:[]},n={offset:{},threshold:0,test:a.inViewport},o=(0,r.default)((function(){i.history.forEach((function(t){i[t].check()}))}),t);e.forEach((function(t){return addEventListener(t,o)})),window.MutationObserver&&addEventListener("DOMContentLoaded",(function(){new MutationObserver(o).observe(document.body,{attributes:!0,childList:!0,subtree:!0})}));var l=function(t){if("string"==typeof t){var e=[].slice.call(document.querySelectorAll(t));return i.history.indexOf(t)>-1?i[t].elements=e:(i[t]=(0,s.default)(e,n),i.history.push(t)),i[t]}};return l.offset=function(t){if(void 0===t)return n.offset;var e=function(t){return"number"==typeof t};return["top","right","bottom","left"].forEach(e(t)?function(e){return n.offset[e]=t}:function(i){return e(t[i])?n.offset[i]=t[i]:null}),n.offset},l.threshold=function(t){return"number"==typeof t&&t>=0&&t<=1?n.threshold=t:n.threshold},l.test=function(t){return"function"==typeof t?n.test=t:n.test},l.is=function(t){return n.test(t,n)},l.offset(0),l}};e.default=o()},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function(){function t(e,n){i(this,t),this.options=n,this.elements=e,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}return n(t,[{key:"check",value:function(){var t=this;return this.elements.forEach((function(e){var i=t.options.test(e,t.options),n=t.current.indexOf(e),r=n>-1,s=!i&&r;i&&!r&&(t.current.push(e),t.emit("enter",e)),s&&(t.current.splice(n,1),t.emit("exit",e))})),this}},{key:"on",value:function(t,e){return this.handlers[t].push(e),this}},{key:"once",value:function(t,e){return this.singles[t].unshift(e),this}},{key:"emit",value:function(t,e){for(;this.singles[t].length;)this.singles[t].pop()(e);for(var i=this.handlers[t].length;--i>-1;)this.handlers[t][i](e);return this}}]),t}();e.default=function(t,e){return new r(t,e)}},function(t,e){"use strict";function i(t,e){var i=t.getBoundingClientRect(),n=i.top,r=i.right,s=i.bottom,a=i.left,o=i.width,l=i.height,h={t:s,r:window.innerWidth-a,b:window.innerHeight-n,l:r},c={x:e.threshold*o,y:e.threshold*l};return h.t>e.offset.top+c.y&&h.r>e.offset.right+c.x&&h.b>e.offset.bottom+c.y&&h.l>e.offset.left+c.x}Object.defineProperty(e,"__esModule",{value:!0}),e.inViewport=i},function(t,e){(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.exports=i}).call(e,function(){return this}())},function(t,e,i){var n=i(5),r="object"==typeof self&&self&&self.Object===Object&&self,s=n||r||Function("return this")();t.exports=s},function(t,e,i){function n(t,e,i){function n(e){var i=v,n=b;return v=b=void 0,P=e,E=t.apply(n,i)}function c(t){return P=t,_=setTimeout(f,e),C?n(t):E}function p(t){var i=e-(t-S);return w?h(i,x-(t-P)):i}function u(t){var i=t-S;return void 0===S||i>=e||i<0||w&&t-P>=x}function f(){var t=s();return u(t)?d(t):void(_=setTimeout(f,p(t)))}function d(t){return _=void 0,T&&v?n(t):(v=b=void 0,E)}function m(){void 0!==_&&clearTimeout(_),P=0,v=S=b=_=void 0}function g(){return void 0===_?E:d(s())}function y(){var t=s(),i=u(t);if(v=arguments,b=this,S=t,i){if(void 0===_)return c(S);if(w)return _=setTimeout(f,e),n(S)}return void 0===_&&(_=setTimeout(f,e)),E}var v,b,x,E,_,S,P=0,C=!1,w=!1,T=!0;if("function"!=typeof t)throw new TypeError(o);return e=a(e)||0,r(i)&&(C=!!i.leading,x=(w="maxWait"in i)?l(a(i.maxWait)||0,e):x,T="trailing"in i?!!i.trailing:T),y.cancel=m,y.flush=g,y}var r=i(1),s=i(8),a=i(10),o="Expected a function",l=Math.max,h=Math.min;t.exports=n},function(t,e,i){var n=i(6),r=function(){return n.Date.now()};t.exports=r},function(t,e,i){function n(t,e,i){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError(a);return s(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),r(t,e,{leading:n,maxWait:e,trailing:o})}var r=i(7),s=i(1),a="Expected a function";t.exports=n},function(t,e){function i(t){return t}t.exports=i}])},1248:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i<r;i+=1)for(var s in n=t[i].prototype)Object.prototype.hasOwnProperty.call(n,s)&&(e.prototype[s]=n[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,n=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<e;n+=1)r.push(i);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="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},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),n=t.length;for(e=0;e<n;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,n){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var n,r,s,a,o,l,h,c;switch(l=i*(1-e),h=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),c=i*(1-(1-o)*e),a%6){case 0:n=i,r=c,s=l;break;case 1:n=h,r=i,s=l;break;case 2:n=l,r=i,s=c;break;case 3:n=l,r=h,s=i;break;case 4:n=c,r=l,s=i;break;case 5:n=i,r=l,s=h}return[n,r,s]}
vendor: 24,412 bytes, line 2
2function RGBtoHSV(t,e,i){var n,r=Math.max(t,e,i),s=Math.min(t,e,i),a=r-s,o=0===r?0:a/r,l=r/255;switch(r){case s:n=0;break;case t:n=e-i+a*(e<i?6:0),n/=6*a;break;case e:n=i-t+2*a,n/=6*a;break;case i:n=t-e+4*a,n/=6*a}return[n,o,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="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},_typeof$5(t)}var dataManager=function(){var t,e,i=1,n=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){r.onmessage({data:t})}};function a(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,r}((function(t){if(s.dataManager||(s.dataManager=function(){function t(r,s){var a,o,l,h,c,u,f=r.length;for(o=0;o<f;o+=1)if("ks"in(a=r[o])&&!a.completed){if(a.completed=!0,a.hasMask){var d=a.masksProperties;for(h=d.length,l=0;l<h;l+=1)if(d[l].pt.k.i)n(d[l].pt.k);else for(u=d[l].pt.k.length,c=0;c<u;c+=1)d[l].pt.k[c].s&&n(d[l].pt.k[c].s[0]),d[l].pt.k[c].e&&n(d[l].pt.k[c].e[0])}0===a.ty?(a.layers=e(a.refId,s),t(a.layers,s)):4===a.ty?i(a.shapes):5===a.ty&&p(a)}}function e(t,e){var i=function(t,e){for(var i=0,n=e.length;i<n;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,r,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,r=0;r<s;r+=1)t[e].ks.k[r].s&&n(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&n(t[e].ks.k[r].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function n(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var s,a=function(){var t=[4,4,14];function e(t){var e,i,n,r=t.length;for(e=0;e<r;e+=1)5===t[e].ty&&(n=void 0,n=(i=t[e]).t.d,i.t.d={k:[{s:n,t:0}]})}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var n,s=i.assets.length;for(n=0;n<s;n+=1)i.assets[n].layers&&e(i.assets[n].layers)}}}(),o=(s=[4,7,99],function(t){if(t.chars&&!r(s,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(i(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e,i,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=void 0,"number"==typeof(i=t[e].t.p).a&&(i.a={a:0,k:i.a}),"number"==typeof i.p&&(i.p={a:0,k:i.p}),"number"==typeof i.r&&(i.r={a:0,k:i.r}))}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var n,s=i.assets.length;for(n=0;n<s;n+=1)i.assets[n].layers&&e(i.assets[n].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var i,n,r,s=t.length;for(i=0;i<s;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,n=0;n<r;n+=1)t[i].c.k[n].s&&(t[i].c.k[n].s[0]/=255,t[i].c.k[n].s[1]/=255,t[i].c.k[n].s[2]/=255,t[i].c.k[n].s[3]/=255),t[i].c.k[n].e&&(t[i].c.k[n].e[0]/=255,t[i].c.k[n].e[1]/=255,t[i].c.k[n].e[2]/=255,t[i].c.k[n].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,n,r;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n<r;n+=1)t[i].ks.k[n].s&&(t[i].ks.k[n].s[0].c=t[i].closed),t[i].ks.k[n].e&&(t[i].ks.k[n].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,n,r,s,a,o,l=t.length;for(n=0;n<l;n+=1){if((i=t[n]).hasMask){var h=i.masksProperties;for(s=h.length,r=0;r<s;r+=1)if(h[r].pt.k.i)h[r].pt.k.c=h[r].cl;else for(o=h[r].pt.k.length,a=0;a<o;a+=1)h[r].pt.k[a].s&&(h[r].pt.k[a].s[0].c=h[r].cl),h[r].pt.k[a].e&&(h[r].pt.k[a].e[0].c=h[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}();function p(t){0===t.t.a.length&&t.t.p}var u={completeData:function(i){i.__complete||(h(i),a(i),o(i),l(i),c(i),t(i.layers,i.assets),function(i,n){if(i){var r=0,s=i.length;for(r=0;r<s;r+=1)1===i[r].t&&(i[r].data.layers=e(i[r].data.refId,n),t(i[r].data.layers,n))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=h,u.checkChars=o,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,n,r){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=t(a),n(s);else try{s=t(a),n(s)}catch(t){r&&r(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,i=e.id,r=n[i];n[i]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function o(t,e){var r="processId_"+(i+=1);return n[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,n){a();var r=o(i,n);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,n){a();var r=o(i,n);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,n){a();var r=o(i,n);e.postMessage({type:"complete",animation:t,id:r})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,i){var n="";if(t.e)n=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),n=e+r}else n=i,n+=t.u?t.u:"",n+=t.p;return n}function r(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},i=n(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var n=t.length;for(i=0;i<n;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=n(e,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.src=i;var s={img:r,assetData:e};return s},createImageData:function(e){var i=n(e,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var s={img:r,assetData:e};return s},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],n=0;n<i.length;n+=1)i[n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),n={},r=0,s=0;s<i.length;s+=1)2===(e=i[s].split(":")).length&&(n[e[0]]=e[1].trim(),r+=1);if(0===r)throw new Error;return n}return function(e){for(var i=[],n=0;n<e.length;n+=1){var r=e[n],s={time:r.tm,duration:r.dr};try{s.payload=JSON.parse(e[n].cm)}catch(i){try{s.payload=t(e[n].cm)}catch(t){s.payload={name:e[n].cm}}}i.push(s)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="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},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10));var s=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;i.autoplay="false"!==s,i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,s=t.layers,a=s.length;for(i=0;i<a;i+=1)for(e=0;e<r;){if(n[e].id===s[i].id){n[e]=s[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,n="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(n,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,n=t.length;for(i=0;i<n
vendor: 4,358 bytes, line 2
2;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,
vendor: 3,520 bytes, line 2
2n=0,r=0,s=!0,a=!1;function o(t){for(var i=0,r=t.target;i<n;)e[i].animation===r&&(e.splice(i,1),i-=1,n-=1,r.isPaused||c()),i+=1}function l(t,i){if(!t)return null;for(var r=0;r<n;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var s=new AnimationItem;return p(s,t),s.setData(t,i),s}function h(){r+=1,d()}function c(){r-=1}function p(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",h),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),n+=1}function u(t){var o,l=t-i;for(o=0;o<n;o+=1)e[o].animation.advanceTime(l);i=t,r&&!a?window.requestAnimationFrame(u):s=!0}function f(t){i=t,window.requestAnimationFrame(u)}function d(){!a&&r&&s&&(window.requestAnimationFrame(f),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return p(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setSpeed(t,i)},t.setDirection=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(n=0;n<s;n+=1)i&&r[n].setAttribute("data-bm-type",i),l(r[n],t);if(e&&0===s){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),a.appendChild(o),l(o,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,r){var s;for(s=0;s<n;s+=1)e[s].animation.goToAndStop(t,i,r)},t.destroy=function(t){var i;for(i=n-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,d()},t.setVolume=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,n=[];for(t=0;t<i;t+=1)n.push(e[t].animation);return n},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,i,n,r,s){var a=s||("bez_"+t+"_"+i+"_"+n+"_"+r).replace(/\./g,"p");if(e[a])return e[a];var o=new h([t,i,n,r]);return e[a]=o,o}},e={},i=.1,n="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function a(t){return 3*t}function o(t,e,i){return((r(e,i)*t+s(e,i))*t+a(e))*t}function l(t,e,i){return 3*r(e,i)*t*t+2*s(e,i)*t+a(e)}function h(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&n===r?t:0===t?0:1===t?1:o(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=o(n*i,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,s=0,a=1;10!==a&&r[a]<=t;++a)s+=i;var h=s+(t-r[--a])/(r[a+1]-r[a])*i,c=l(h,e,n);return c>
vendor: 4,811 bytes, line 2
2=.001?function(t,e,i,n){for(var r=0;r<4;++r){var s=l(e,i,n);if(0===s)return e;e-=(o(e,i,n)-t)/s}return e}(t,h,e,n):0===c?h:function(t,e,i,n,r){var s,a,l=0;do{(s=o(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a}while(Math.abs(s)>1e-7&&++l<10);return a}(t,s,s+i,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var n=0,r=t,s=createSizedArray(r);return{newElement:function(){return n?s[n-=1]:e()},release:function(t){n===r&&(s=pooling.double(s),r*=2),i&&i(t),s[n]=t,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,i,n,r,s){var a=t*n+e*r+i*s-r*n-s*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,n){var r,s,a,o,l,h,c=getDefaultCurveSegments(),p=0,u=[],f=[],d=bezierLengthPool.newElement();for(a=i.length,r=0;r<c;r+=1){for(l=r/(c-1),h=0,s=0;s<a;s+=1)o=bmPow(1-l,3)*t[s]+3*bmPow(1-l,2)*l*i[s]+3*(1-l)*bmPow(l,2)*n[s]+bmPow(l,3)*e[s],u[s]=o,null!==f[s]&&(h+=bmPow(u[s]-f[s],2)),f[s]=u[s];h&&(p+=h=bmSqrt(h)),d.percents[r]=l,d.lengths[r]=p}return d.addedLength=p,d};function n(t){this.segmentLength=0,this.points=new Array(t)}function r(t,e){this.partialLength=t,this.point=e}var s,a=(s={},function(t,i,a,o){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[l]){var h,c,p,u,f,d,m,g=getDefaultCurveSegments(),y=0,v=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(g=2);var b=new n(g);for(p=a.length,h=0;h<g;h+=1){for(m=createSizedArray(p),f=h/(g-1),d=0,c=0;c<p;c+=1)u=bmPow(1-f,3)*t[c]+3*bmPow(1-f,2)*f*(t[c]+a[c])+3*(1-f)*bmPow(f,2)*(i[c]+o[c])+bmPow(f,3)*i[c],m[c]=u,null!==v&&(d+=bmPow(m[c]-v[c],2));y+=d=bmSqrt(d),b.points[h]=new r(d,m),v=m}b.segmentLength=y,s[l]=b}return s[l]});function o(t,e){var i=e.percents,n=e.lengths,r=i.length,s=bmFloor((r-1)*t),a=t*e.addedLength,o=0;if(s===r-1||0===s||a===n[s])return i[s];for(var l=n[s]>a?-1:1,h=!0;h;)if(n[s]<=a&&n[s+1]>a?(o=(a-n[s])/(n[s+1]-n[s]),h=!1):s+=l,s<0||s>=r-1){if(s===r-1)return i[s];h=!1}return i[s]+(i[s+1]-i[s])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,n=segmentsLengthPool.newElement(),r=t.c,s=t.v,a=t.o,o=t.i,l=t._length,h=n.lengths,c=0;for(e=0;e<l-1;e+=1)h[e]=i(s[e],s[e+1],a[e],o[e+1]),c+=h[e].addedLength;return r&&l&&(h[e]=i(s[e],s[0],a[e],o[0]),c+=h[e].addedLength),n.totalLength=c,n},getNewSegment:function(e,i,n,r,s,a,h){s<0?s=0:s>1&&(s=1);var c,p=o(s,h),u=o(a=a>1?1:a,h),f=e.length,d=1-p,m=1-u,g=d*d*d,y=p*d*d*3,v=p*p*d*3,b=p*p*p,x=d*d*m,E=p*d*m+d*p*m+d*d*u,_=p*p*m+d*p*u+p*d*u,S=p*p*u,P=d*m*m,C=p*m*m+d*u*m+d*m*u,w=p*u*m+d*u*u+p*m*u,T=p*u*u,M=m*m*m,A=u*m*m+m*u*m+m*m*u,k=u*u*m+m*u*u+u*m*u,D=u*u*u;for(c=0;c<f;c+=1)l[4*c]=t.round(1e3*(g*e[c]+y*n[c]+v*r[c]+b*i[c]))/1e3,l[4*c+1]=t.round(1e3*(x*e[c]+E*n[c]+_*r[c]+S*i[c]))/1e3,l[4*c+2]=t.round(1e3*(P*e[c]+C*n[c]+w*r[c]+T*i[c]))/1e3,l[4*c+3]=t.round(1e3*(M*e[c]+A*n[c]+k*r[c]+D*i[c]))/1e3;return l},getPointInSegment:function(e,i,n,r,s,a){var l=o(s,a),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*n[0]+(l*l*h+h*l*l+l*h*l)*r[0]+l*l*l*i[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*n[1]+(l*l*h+h*l*l+l*h*l)*r[1]+l*l*l*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,n,r,s,a,o,l,h,c){if(0===r&&0===o&&0===c)return e(i,n,s,a,l,h);var p,u=t.sqrt(t.pow(s-i,2)+t.pow(a-n,2)+t.pow(o-r,2)),f=t.sqrt(t.pow(l-i,2)+t.pow(h-n,2)+t.pow(c-r,2)),d=t.sqrt(t.pow(l-s,2)+t.pow(h-a,2)+t.pow(c-o,2));return(p=u>f?u>d?u-f-d:d-f-u:d>f?d-f-u:f-u-d)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,n=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var r,s,a,o,l,h,c,p,u,f=e.lastIndex,d=f,m=this.keyframes.length-1,g=!0;g;){if(r=this.keyframes[d],s=this.keyframes[d+1],d===m-1&&t>=s.t-n){r.h&&(r=s),f=0;break}if(s.t-n>t){f=d;break}d<m-1?d+=1:(f=0,g=!1)}a=this.keyframesMetadata[d]||{};var y,v=s.t-n,b=r.t-n;if(r.to){a.bezierData||(a.bezierData=bez.buildBezierData(r.s,s.s||r.e,r.to,r.ti));var x=a.bezierData;if(t>=v||t<b){var E=t>=v?x.points.length-1:0;for(l=x.points[E].point.length,o=0;o<l;o+=1)i[o]=x.points[E].point[o]}else{a.__fnct?u=a.__fnct:(u=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,a.__fnct=u),h=u((t-b)/(v-b));var _,S=x.segmentLength*h,P=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastAddedLe
vendor: 6,222 bytes, line 2
2ngth:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastPoint:0,g=!0,c=x.points.length;g;){if(P+=x.points[p].partialLength,0===S||0===h||p===x.points.length-1){for(l=x.points[p].point.length,o=0;o<l;o+=1)i[o]=x.points[p].point[o];break}if(S>=P&&S<P+x.points[p+1].partialLength){for(_=(S-P)/x.points[p+1].partialLength,l=x.points[p].point.length,o=0;o<l;o+=1)i[o]=x.points[p].point[o]+(x.points[p+1].point[o]-x.points[p].point[o])*_;break}p<c-1?p+=1:g=!1}e._lastPoint=p,e._lastAddedLength=P-x.points[p].partialLength,e._lastKeyframeIndex=d}}else{var C,w,T,M,A;if(m=r.s.length,y=s.s||r.e,this.sh&&1!==r.h)t>=v?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=b?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):quaternionToEuler(i,slerp(createQuaternion(r.s),createQuaternion(y),(t-b)/(v-b)));else for(d=0;d<m;d+=1)1!==r.h&&(t>=v?h=1:t<b?h=0:(r.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[d]?u=a.__fnct[d]:(C=void 0===r.o.x[d]?r.o.x[0]:r.o.x[d],w=void 0===r.o.y[d]?r.o.y[0]:r.o.y[d],T=void 0===r.i.x[d]?r.i.x[0]:r.i.x[d],M=void 0===r.i.y[d]?r.i.y[0]:r.i.y[d],u=BezierFactory.getBezierEasing(C,w,T,M).get,a.__fnct[d]=u)):a.__fnct?u=a.__fnct:(C=r.o.x,w=r.o.y,T=r.i.x,M=r.i.y,u=BezierFactory.getBezierEasing(C,w,T,M).get,r.keyframeMetadata=u),h=u((t-b)/(v-b)))),y=s.s||r.e,A=1===r.h?r.s[d]:r.s[d]+(y[d]-r.s[d])*h,"multidimensional"===this.propType?i[d]=A:i=A}return e.lastIndex=f,i}function slerp(t,e,i){var n,r,s,a,o,l=[],h=t[0],c=t[1],p=t[2],u=t[3],f=e[0],d=e[1],m=e[2],g=e[3];return(r=h*f+c*d+p*m+u*g)<0&&(r=-r,f=-f,d=-d,m=-m,g=-g),1-r>1e-6?(n=Math.acos(r),s=Math.sin(n),a=Math.sin((1-i)*n)/s,o=Math.sin(i*n)/s):(a=1-i,o=i),l[0]=a*h+o*f,l[1]=a*c+o*d,l[2]=a*p+o*m,l[3]=a*u+o*g,l}function quaternionToEuler(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],a=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r),o=Math.asin(2*i*n+2*r*s),l=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(n/2),o=Math.sin(e/2),l=Math.sin(i/2),h=Math.sin(n/2);return[o*l*a+r*s*h,o*s*a+r*l*h,r*l*a-o*s*h,r*s*a-o*l*h]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,n){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,n){var r;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=e.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),r=0;r<s;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,n){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,n){var r;this.propType="multidimensional";var s,a,o,l,h=e.k.length;for(r=0;r<h-1;r+=1)e.k[r].to&&e.k[r].s&&e.k[r+1]&&e.k[r+1].s&&(s=e.k[r].s,a=e.k[r+1].s,o=e.k[r].to,l=e.k[r].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+o[0],s[1]+o[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+o[0],s[1]+o[1],s[2]+o[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(e.k[r].to=null,e.k[r].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===s.length||s[2]===a[2]&&0===o[2]&&0===l[2])&&(e.k[r].to=null,e.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),r=0;r<c;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}
vendor: 9,106 bytes, line 2
2var PropertyFactory={getProp:function(t,e,i,n,r){var s;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])s=new MultiDimensionalProperty(t,e,n,r);else switch(i){case 0:s=new KeyframedValueProperty(t,e,n,r);break;case 1:s=new KeyframedMultidimensionalProperty(t,e,n,r)}else s=new ValueProperty(t,e,n,r);return s.effectsSequence.length&&r.addDynamicProperty(s),s}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,n,r){var s;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[n]||s[n]&&!r)&&(s[n]=pointPool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,r,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(r,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var s,a=this._length-1,o=this._length;for(s=r;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],n[a][0],n[a][1],i[a][0],i[a][1],s,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,i=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(i.setLength(n),i.c=t.c,e=0;e<n;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var n,r,s,a,o,l,h,c,p,u=i.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)n=f[0].s[0],s=!0,u=0;else if(t>=f[f.length-1].t-this.offsetTime)n=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],s=!0;else{for(var d,m,g,y=u,v=f.length-1,b=!0;b&&(d=f[y],!((m=f[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},u=y,!(s=1===d.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<d.t-this.offsetTime)c=0;else{var x;g.__fnct?x=g.__fnct:(x=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,g.__fnct=x),c=x((t-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}r=m.s?m.s[0]:d.e[0]}n=d.s[0]}for(l=e._length,h=n.i[0].length,i.lastIndex=u,a=0;a<l;a+=1)for(o=0;o<h;o+=1)p=s?n.i[a][o]:n.i[a][o]+(r.i[a][o]-n.i[a][o])*c,e.i[a][o]=p,p=s?n.o[a][o]:n.o[a][o]+(r.o[a][o]-n.o[a][o])*c,e.o[a][o]=p,p=s?n.v[a][o]:n.v[a][o]+(r.v[a][o]-n.v[a][o])*c,e.v[a][o]=p}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>n&&e>n)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function r(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,n=t._length;for(i=0;i<n;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,r,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=r,a.prototype.addEffect=o,l.prototype.getValue=s,l.prototype.interpolateShape=e,l.prototype.setVValue=r,l.prototype.addEffect=o;var h=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-r,a.v[1][0]=s?e+n:e-n,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+r,a.v[3][0]=s?e-n:e+n,a.v[3][1]=i,a.i[0][0]=s?e-n*t:e+n*t,a.i[0][1]=i-r,a.i[1][0]=s?e+n:e-n,a.i[1][1]=i-r*t,a.i[2][0]=s?e+n*t:e-n*t,a.i[2][1]=i+r,a.i[3][0]=s?e-n:e+n,a.i[3][1]=i+r*t,a.o[0][0]=s?e+n*t:e-n*t,a.o[0][1]=i-r,a.o[1][0]=s?e+n:e-n,a.o[1][1]=i+r*t,a.o[2][0]=s?e-n*t:e+n*t,a.o[2][1]=i+r,a.o[3][0]=s?e-n:e+n,a.o[3][1]=i-r*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 6,797 bytes, line 2
2pertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,n,r=2*Math.floor(this.pt.v),s=2*Math.PI/r,a=!0,o=this.or.v,l=this.ir.v,h=this.os.v,c=this.is.v,p=2*Math.PI*o/(2*r),u=2*Math.PI*l/(2*r),f=-Math.PI/2;f+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=a?h:c,n=a?p:u;var m=(e=a?o:l)*Math.cos(f),g=e*Math.sin(f),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*n*i*d,g-v*n*i*d,m+y*n*i*d,g+v*n*i*d,t,!0),a=!a,f+=s*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,n=this.or.v,r=this.os.v,s=2*Math.PI*n/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=n*Math.cos(a),h=n*Math.sin(a),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),p=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*s*r*o,h-p*s*r*o,l+c*s*r*o,h+p*s*r*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,r=bmMin(i,n,this.r.v),s=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+r,t+i,e-n+s,0,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-s,t+i,e+n-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+n,t+i-r,e+n,t+i-s,e+n,2,!0),this.v.setTripleAt(t-i+r,e+n,t-i+s,e+n,t-i+r,e+n,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-r,t-i,e+n-s,4,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+s,t-i,e-n+r,5,!0),this.v.setTripleAt(t-i+r,e-n,t-i+r,e-n,t-i+s,e-n,6,!0),this.v.setTripleAt(t+i-r,e-n,t+i-s,e-n,t+i-r,e-n,7,!0)):(this.v.setTripleAt(t-i,e+n,t-i+s,e+n,t-i,e+n,2),this.v.setTripleAt(t-i,e-n,t-i,e-n+s,t-i,e-n,3))):(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+s,t+i,e-n+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-n,t+i-r,e-n,t+i-s,e-n,1,!0),this.v.setTripleAt(t-i+r,e-n,t-i+s,e-n,t-i+r,e-n,2,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+r,t-i,e-n+s,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-s,t-i,e+n-r,4,!0),this.v.setTripleAt(t-i+r,e+n,t-i+r,e+n,t-i+s,e+n,5,!0),this.v.setTripleAt(t+i-r,e+n,t+i-s,e+n,t+i-r,e+n,6,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-r,t+i,e+n-s,7,!0)):(this.v.setTripleAt(t-i,e-n,t-i+s,e-n,t-i,e-n,1,!0),this.v.setTripleAt(t-i,e+n,t-i,e+n-s,t-i,e+n,2,!0),this.v.setTripleAt(t+i,e+n,t+i-s,e+n,t+i,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}(),u={getShapeProp:function(t,e,i){var n;return 3===i||4===i?n=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?n=new p(t,e):6===i?n=new h(t,e):7===i&&(n=new c(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,n=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1)}function o(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1)}function l(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(i(t),i(e))}function p(n,r){var s=t(r),a=e(r);return this._t(s,a,0,0,-a,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(n),1,0,0,0,0,1,0,0,0,0,1)._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,n,r,s,a,o,l,h,c,p,u,f,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=n,this.props[4]=r,this.props[5]=s,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=p,this.props[12]=u,this.props[13]=f,this.props[14]=d,this.props[15]=m,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,n,r,s,a,o,l,h,c,p,u,f,d,m){var g=this.props;if(1===t&&0===e&&0===i&&0===n&&0===r&&1===s&&0===a&&0===o&&0===l&&0===h&&1===c&&0===p)return g[12]=g[12]*t+g[15]*u,g[13]=g[13]*s+g[15]*f,g[14]=g[14]*c+g[15]*d,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],E=g[4],_=g[5],S=g[6],P=g[7],C=g[8],w=g[9],T=g[10],M=g[11],A=g[12],k=g[13],D=g[14],I=g[15];return g[0]=y*t+v*r+b*l+x*u,g[1]=y*e+v*s+b*h+x*f,g[2]=y*i+v*a+b*c+x*d,g[3]=y*n+v*o+b*p+x*m,g[4]=E*t+_*r+S*l+P*u,g[5]=E*e+_*s+S*h+P*f,g[6]=E*i+_*a+S*c+P*d,g[7]=E*n+_*o+S*p+P*m,g[8]=C*t+w*r+T*l+M*u,g[9]=C*e+w*s+T*h+M*f,g[10]=C*i+w*a+T*c+M*d,g[11]=C*n+w*o+T*p+M*m,g[12]=A*t+k*r+D*l+I*u,g[13]=A*e+k*s+D*h+I*f,g[14]=A*i+k*a+D*c+I*d,g[15]=A*n+k*o+D*p+I*m,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||
vendor: 7,541 bytes, line 2
20!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function E(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function _(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function S(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function P(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function C(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,n=-this.props[4]/t,r=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=n,o.props[5]=r,o.props[12]=s,o.props[13]=a,o}function w(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function T(t){var e,i=t.length,n=[];for(e=0;e<i;e+=1)n[e]=w(t[e]);return n}function M(t,e,i){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=i[0],n[5]=i[1];else{var r=this.props[0],s=this.props[1],a=this.props[4],o=this.props[5],l=this.props[12],h=this.props[13];n[0]=t[0]*r+t[1]*a+l,n[1]=t[0]*s+t[1]*o+h,n[2]=e[0]*r+e[1]*a+l,n[3]=e[0]*s+e[1]*o+h,n[4]=i[0]*r+i[1]*a+l,n[5]=i[0]*s+i[1]*o+h}return n}function A(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function k(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function D(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=n(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function F(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=h,this.scale=u,this.setTransform=f,this.translate=d,this.transform=m,this.multiply=g,this.applyToPoint=E,this.applyToX=_,this.applyToY=S,this.applyToZ=P,this.applyToPointArray=A,this.applyToTriplePoints=M,this.applyToPointStringified=k,this.toCSS=D,this.to2dCSS=F,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=T,this.inversePoint=w,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="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},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,n){return new e[t](i,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=Pro
vendor: 5,368 bytes, line 2
2pertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,n,r){var s=[];e<=1?s.push({s:t,e:e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],h=s.length;for(a=0;a<h;a+=1){var c,p;(o=s[a]).e*r<n||o.s*r>n+i||(c=o.s*r<=n?0:(o.s*r-n)/i,p=o.e*r>=n+i?1:(o.e*r-n)/i,l.push([c,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,n,r;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(i=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,l,h,c,p,u=this.shapes.length,f=0;if(i===e)for(r=0;r<u;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<u;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var d,m,g=[];for(r=0;r<u;r+=1)if((d=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(l=(n=d.shape.paths)._length,p=0,!d.shape._mdf&&d.pathsData.length)p=d.totalShapeLength;else{for(h=this.releasePathsData(d.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(n.shapes[o]),h.push(c),p+=c.totalLength;d.totalShapeLength=p,d.pathsData=h}f+=p,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y,v=e,b=i,x=0;for(r=u-1;r>=0;r-=1)if((d=this.shapes[r]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&u>1?(y=this.calculateShapeEdges(e,i,d.totalShapeLength,x,f),x+=d.totalShapeLength):y=[[v,b]],l=y.length,o=0;o<l;o+=1){v=y[o][0],b=y[o][1],g.length=0,b<=1?g.push({s:d.totalShapeLength*v,e:d.totalShapeLength*b}):v>=1?g.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(g.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),g.push({s:0,e:d.totalShapeLength*(b-1)}));var E=this.addShapes(d,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var _=E.pop();this.addPaths(E,m),E=this.addShapes(d,g[1],_)}else this.addPaths(E,m),E=this.addShapes(d,g[1]);this.addPaths(E,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,n,r,s,a){r.setXYAt(e[0],e[1],"o",s),r.setXYAt(i[0],i[1],"i",s+1),a&&r.setXYAt(t[0],t[1],"v",s),r.setXYAt(n[0],n[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,n){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),n&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var n,r,s,a,o,l,h,c,p=t.pathsData,u=t.shape.paths.shapes,f=t.shape.paths._length,d=0,m=[],g=!0;for(i?(o=i._length,c=i._length):(i=shapePool.newElement(),o=0,c=0),m.push(i),n=0;n<f;n+=1){for(l=p[n].lengths,i.c=u[n].c,s=u[n].c?l.length:l.length+1,r=1;r<s;r+=1)if(d+(a=l[r-1]).addedLength<e.s)d+=a.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(u[n].v[r-1],u[n].o[r-1],u[n].i[r],u[n].v[r],i,o,g),g=!1):(h=bez.getNewSegment(u[n].v[r-1],u[n].v[r],u[n].o[r-1],u[n].i[r],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,l[r-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1),d+=a.addedLength,o+=1}if(u[n].c&&l.length){if(a=l[r-1],d<=e.e){var y=l[r-1].addedLength;e.s<=d&&e.e>=d+y?(this.addSegment(u[n].v[r-1],u[n].o[r-1],u[n].i[0],u[n].v[0],i,o,g),g=!1):(h=bez.getNewSegment(u[n].v[r-1],u[n].v[0],u[n].o[r-1],u[n].i[0],(e.s-d)/y,(e.e-d)/y,l[r-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1)}else i.c=!1;d+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;n<f-1&&(i=shapePool.newElement(),g=!0,m.push(i),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,n=[0,0],r=t._length,s=0;for(s=0;s<r;s+=1)n[0]+=t.v[s][0],n[1]+=t.v[s][1];n[0]/=r,n[1]/=r;var a,o,l,h,c,p,u=shapePool.newElement();for(u.c=t.c,s=0;s<r;s+=1)a=t.v[s][0]+(n[0]-t.v[s][0])*i,o=t.v[s][1]+(n[1]-t.v[s][1])*i,l=t.o[s][0]+(n[0]-t.o[s][0])*-i,h=t.o[s][1]+(n[1]-t.o[s][1])*-i,c=t.i[s][0]+(n[0]-t.i[s][0])*-i,p=t.i[s][1]+(n[1]-t.i[s][1])*-i,u.setTripleAt(a,o,l,h,c,p,s);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r
vendor: 23,508 bytes, line 2
2=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n<r;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,r;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],r=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(n[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[0]=s.getValueAtTime(s.keyframes[0].t/i,0),r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(n[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(n=[s.pv,a.pv],r[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else n=r=t;this.v.rotate(-Math.atan2(n[1]-r[1],n[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,n){return new e(t,i,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var n=e*e-4*t*i;if(n<0)return[];var r=-e/(2*t);if(0===n)return[r];var s=Math.sqrt(n)/(2*t);return[r-s,r+s]}function polynomialCoefficients(t,e,i,n){return[3*e-t-3*i+n,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,n,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),r&&pointEqual(i,n)&&(i=lerpPoint(t,n,2/3));var s=polynomialCoefficients(t[0],e[0],i[0],n[0]),a=polynomialCoefficients(t[1],e[1],i[1],n[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,i,n]}function extrema(t,e){var i=t.points[0][e],n=t.points[t.points.length-1][e];if(i>n){var r=n;n=i,i=r}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<i?i=o:o>n&&(n=o)}return{min:i,max:n}}function intersectData(t,e,i){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,n,r,s){if(boxIntersect(t,e))if(i>=s||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n)r.push([t.t,e.t]);else{var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],i+1,n,r,s),intersectsImpl(a[0],o[1],i+1,n,r,s),intersectsImpl(a[1],o[0],i+1,n,r,s),intersectsImpl(a[1],o[1],i+1,n,r,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,n){var r=[t[0],t[1],1],s=[e[0],e[1],1],a=[i[0],i[1],1],o=[n[0],n[1],1],l=crossProduct(crossProduct(r,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,n,r,s,a){var o=i-Math.PI/2,l=i+Math.PI/2,h=e[0]+Math.cos(i)*n*r,c=e[1]-Math.sin(i)*n*r;t.setTripleAt(h,c,h+Math.cos(o)*s,c-Math.sin(o)*s,h+Math.cos(l)*a,c-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],n=.5*-Math.PI;return[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,n=(e+1)%t.length(),r=getPerpendicularVector(t.v[i],t.v[n]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(t,e,i,n,r,s,a){var o=getProjectingAngle(e,i),l=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],c=e.v[(i+1)%e._length],p=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,u=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[i%e._length],o,a,n,u/(2*(r+1)),p/(2*(r+1)),s)}function zigZagSegment(t,e,i,n,r,s){for(var a=0;a<n;a+=1){var o=(a+1)/(n+1),l=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(o);setPoint(t,e.point(o),h,s,i,l/(2*(n+1)),l/(2*(n+1)),r),s=-s}return s}function linearOffset(t,e,i){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,i),polarOffset(e,n,i)]}function offsetSegment(t,e){var i,n,r,s,a,o,l;i=(l=linearOffset(t.points[0],t.points[1],e))[0],n=l[1],r=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],o=l[1];var h=lineIntersection(i,n,r,s);null===h&&(h=n);var c=lineIntersection(a,o,r,s);return null===c&&(c=a),new PolynomialBezier(i,h,c,o)}function joinLines(t,e,i,n,r){var s=e.points[3],a=i.points[0];if(3===n)return s;if(pointEqual(s,a))return s;if(2===n){var o=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,h=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),c=h?pointDistance(h,s):pointDistance(s,a)/2,p=polarOffset(s,o,2*c*roundCorner);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=polarOffset(a,l,2*c*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],t.length()),a}var u=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,a,pointEqual(a,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,s)<r?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):s}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),n=e.slice(),r=getIntersection(t[t.length-1],e[0]);return r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],n[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,n]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,n,r,s,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return i=(r=t.split(a[0]))[0],n=r[1],[offsetSegment(i,e),offsetSegment(n,e)];i=(r=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(r=r[1].split(o))[0],n=r[1],[offsetSegment(i,e),offsetSegment(s,e),offsetSegment(n,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",n="normal",r=e.length,s=0;s<r;s+=1)switch(e[s].toLowerCase()){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:n,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,n,r,s){var a=s?-1:1,o=n.s.v[0]+(1-n.s.v[0])*(1-r),l=n.s.v[1]+(1-n.s.v[1])*(1-r);t.translate(n.p.v[0]*a*r,n.p.v[1]*a*r,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*r),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(s?1/o:o,s?1/l:l),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,n){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,n,r,s,a=!1;if(this._mdf||t){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,n=0;n<=this._groups.length-1;n+=1){if(o=s<l,this._groups[n]._render=o,this.changeGroupRender(this._groups[n].it,o),!o){var c=this.elemsData[n].it,p=c[c.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}s+=1}this._currentCopies=l;var u=this.o.v,f=u%1,d=u>0?Math.floor(u):Math.ceil(u),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(u>0){for(;x<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),x+=f)}else if(u<0){for(;x>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),x-=f)}for(n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;s;){if(b=(i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==x){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)i[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)i[v]=this.matrix.props[v];x+=1,s-=1,n+=r}}else for(s=this._currentCopies,n=0,r=1;s;)i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,n+=r;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,n=shapePool.newElement();n.c=t.c;var r,s,a,o,l,h,c,p,u,f,d,m,g=t._length,y=0;for(i=0;i<g;i+=1)r=t.v[i],a=t.o[i],s=t.i[i],r[0]===a[0]&&r[1]===a[1]&&r[0]===s[0]&&r[1]===s[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],h=(l=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=d=r[0]+(o[0]-r[0])*h,p=m=r[1]-(r[1]-o[1])*h,u=c-(c-r[0])*roundCorner,f=p-(p-r[1])*roundCorner,n.setTripleAt(c,p,u,f,d,m,y),y+=1,o=i===g-1?t.v[0]:t.v[i+1],h=(l=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=u=r[0]+(o[0]-r[0])*h,p=f=r[1]+(o[1]-r[1])*h,d=c-(c-r[0])*roundCorner,m=p-(p-r[1])*roundCorner,n.setTripleAt(c,p,u,f,d,m,y),y+=1):(n.setTripleAt(r[0],r[1],a[0],a[1],s[0],s[1],y),y+=1):(n.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var n=Math.sqrt(i);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),s=lerpPoint(i,n,t),a=lerpPoint(r,s,t);return[new PolynomialBezier(this.points[0],e,r,a,!0),new PolynomialBezier(a,s,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,i),n},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,n){var r=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(r-=1),0===r)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,i,n,a);for(var l=0;l<r;l+=1)a=zigZagSegment(s,o,e,i,n,-a),o=l!==r-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%r):null,zigZagCorner(s,t,l+1,e,i,n,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l,h,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,n){var r=shapePool.newElement();r.c=t.c;var s,a,o,l=t.length();t.c||(l-=1);var h=[];for(s=0;s<l;s+=1)o=PolynomialBezier.shapeSegment(t,s),h.push(offsetSegmentSplit(o,e));if(!t.c)for(s=l-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(o,e));h=pruneIntersections(h);var c=null,p=null;for(s=0;s<h.length;s+=1){var u=h[s];for(p&&(c=joinLines(r,p,u[0],i,n)),p=u[u.length-1],a=0;a<u.length;a+=1)o=u[a],c&&pointEqual(o.points[0],c)?r.setXYAt(o.points[1][0],o.points[1][1],"o",r.length()-1):r.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],r.length()),r.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],r.length()),c=o.points[3]}return h.length&&joinLines(r,p,h[0][0],i,n),r},OffsetPathModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function r(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var n=createTag("span");n.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300
2px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(n),document.body.appendChild(i);var r=n.offsetWidth;return n.style.fontFamily=function(t){var e,i=t.split(","),n=i.length,r=[];for(e=0;e<n;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&r.push(i[e]);return r.join(",")}(t)+", "+e,{node:n,w:r,parent:i}}function s(t,e){var i,n=document.body&&e?"svg":"canvas",r=getFontProperties(t);if("svg"===n){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",r.style),s.setAttribute("font-weight",r.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),i=s}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=r.style+" "+r.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===n?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function a(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var n=t.charCodeAt(1);n>=56320&&n<=57343&&(e=1024*(i-55296)+n-56320+65536)}return e}function o(t){var e=a(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==n.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return o(t.substr(0,2))&&o(t.substr(2,2))},l.isRegionalCode=o,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var n=a(t.substr(e,2));if(n!==i)return!1;var r=0;for(e+=2;r<5;){if((n=a(t.substr(e,2)))<917601||n>917626)return!1;r+=1,e+=2}return 917631===a(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i;var h={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,n,r=t.length,s=this.chars.length;for(e=0;e<r;e+=1){for(i=0,n=!1;i<s;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(n=!0),i+=1;n||(this.chars.push(t[e]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=s(t),t.cache={}})),void(this.fonts=t.list);var i,n=t.list,a=n.length,o=a;for(i=0;i<a;i+=1){var l,h,c=!0;if(n[i].loaded=!1,n[i].monoCase=r(n[i].fFamily,"monospace"),n[i].sansCase=r(n[i].fFamily,"sans-serif"),n[i].fPath){if("p"===n[i].fOrigin||3===n[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[i].fFamily+'"], style[f-origin="3"][f-family="'+n[i].fFamily+'"]')).length>0&&(c=!1),c){var p=createTag("style");p.setAttribute("f-forigin",n[i].fOrigin),p.setAttribute("f-origin",n[i].origin),p.setAttribute("f-family",n[i].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(p)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(n[i].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",n[i].fOrigin),u.setAttribute("f-origin",n[i].origin),u.type="text/css",u.rel="stylesheet",u.href=n[i].fPath,document.body.appendChild(u)}}else if("t"===n[i].fOrigin||2===n[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)n[i].fPath===l[h].src&&(c=!1);if(c){var f=createTag("link");f.setAttribute("f-forigin",n[i].fOrigin),f.setAttribute("f-origin",n[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",n[i].fPath),e.appendChild(f)}}}else n[i].loaded=!0,o-=1;n[i].helper=s(n[i],e),n[i].cache={},this.fonts.push(n[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,n){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===e&&this.chars[r].style===i&&this.chars[r].fFamily===n)return this.chars[r];r+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,n)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}
vendor: 9,813 bytes, line 2
2,measureText:function(t,e,i){var n=this.getFontByName(e),r=t;if(!n.cache[r]){var s=n.helper;if(" "===t){var a=s.measureText("|"+t+"|"),o=s.measureText("||");n.cache[r]=(a-o)/100}else n.cache[r]=s.measureText(t)/100}return n.cache[r]*i},checkLoadedFonts:function(){var t,e,i,n=this.fonts.length,r=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(r-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=h,l}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,n=t.ef||[];this.effectElements=[];var r,s=n.length;for(i=0;i<s;i+=1)r=new GroupEffect(n[i],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,r=this.data.ef.length,s=this.data.ef;for(i=0;i<r;i+=1){switch(n=null,s[i].ty){case 0:n=new SliderEffect(s[i],e,this);break;case 1:n=new AngleEffect(s[i],e,this);break;case 2:n=new ColorEffect(s[i],e,this);break;case 3:n=new PointEffect(s[i],e,this);break;case 4:case 7:n=new CheckboxEffect(s[i],e,this);break;case 10:n=new LayerIndexEffect(s[i],e,this);break;case 11:n=new MaskIndexEffect(s[i],e,this);break;case 5:n=new EffectsManager(s[i],e,this);break;default:n=new NoValueEffect(s[i],e,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),n=t("shape"),r=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}
vendor: 11,366 bytes, line 2
2},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,n=t.length,r=this.layers.length;for(e=0;e<n;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var n=this.elements,r=this.layers,s=0,a=r.length;s<a;)r[s].ind==e&&(n[s]&&!0!==n[s]?(i.push(n[s]),n[s].setAsParent(),void 0!==r[s].parent?this.buildElementParenting(t,r[s].parent,i):t.setHierarchy(i)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var n,r=this.elements.length;for(n=0;n<r;n+=1)if(this.elements[n].data.nm===i){e=this.elements[n];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,r,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,h,c,p,u,f=this.masksProperties,d=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(n=0;n<a;n+=1)if(("a"!==f[n].mode&&"n"!==f[n].mode||f[n].inv||100!==f[n].o.k||f[n].o.x)&&(y="mask",v="mask"),"s"!==f[n].mode&&"i"!==f[n].mode||0!==d?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),m.push(h)),r=createNS("path"),"n"===f[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),elem:r,lastPath:""},s.appendChild(r);else{var b;if(d+=1,r.setAttribute("fill","s"===f[n].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==f[n].x.k?(y="mask",v="mask",u=PropertyFactory.getProp(this.element,f[n].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),s.appendChild(c),r.setAttribute("stroke","s"===f[n].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[n]={elem:r,x:u,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===f[n].mode){l=m.length;var x=createNS("g");for(o=0;o<l;o+=1)x.appendChild(m[o]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",g+"_"+d),E.appendChild(r),s.appendChild(E),x.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+d+")"),m.length=0,m.push(x)}else m.push(r);f[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),invRect:h},this.viewData[n].prop.k||this.drawPath(f[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);d>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<n;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<n;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var n=this.localTransforms[t].matrix;i.multiply(n)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)r*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=r}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,n=!0,r=this.comp;n;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):n=!1;var s,a=e.length;for(i=0;i<a;i+=1)s=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,i){var n,r,s=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,n=1;n<r;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&r>1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i,n="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],e=0;e<r;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(i=new(0,registeredEffects$1[l].effect)(a,t.effectsManager.effectElements[e],t,idPrefix+o,n),n=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}
vendor: 13,653 bytes, line 2
2function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,n=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=createElementID();if(i.setAttribute("id",r),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,n,r,s=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(n),a.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),e=createElementID(),i=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),i.appendChild(h);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(i);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(p),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),l.appendChild(p),r.appendChild(this.layerElement),l.appendChild(r)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,n=e.length;i<n;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,n=i.length;n;)if(i[n-=1].elem===t)return void(i[n].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var n=0,r=t.length;n<r;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,n){var r;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var s,a=e.length||0;for(r=0;r<a;r+=1)s=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=s.k||this.k,this.dataProps[r]={n:e[r].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,n=this.o.length/2;i<n;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,n,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,n=Math.round(this.prop.v[e]*i),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),n=createNS(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var r,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)r=createNS("stop"),n.appendChild(r),o.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=n,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,r,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[
vendor: 8,893 bytes, line 2
20].s.length:t.g.k.k.length;var c=this.stops;for(n=4*t.g.p;n<r;n+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),c.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=c,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,n){if(0===e)return"";var r,s=t.o,a=t.i,o=t.v,l=" M"+n.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<e;r+=1)l+=" C"+n.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+n.applyToPointStringified(a[r][0],a[r][1])+" "+n.applyToPointStringified(o[r][0],o[r][1]);return i&&e&&(l+=" C"+n.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function r(i,n,r){var s,a,o,l,h,c,p,u,f,d,m=n.styles.length,g=n.lvl;for(c=0;c<m;c+=1){if(l=n.sh._mdf||r,n.styles[c].lvl<g){for(u=e.reset(),f=g-n.styles[c].lvl,d=n.transformers.length-1;!l&&f>0;)l=n.transformers[d].mProps._mdf||l,f-=1,d-=1;if(l)for(f=g-n.styles[c].lvl,d=n.transformers.length-1;f>0;)u.multiply(n.transformers[d].mProps.v),f-=1,d-=1}else u=t;if(a=(p=n.sh.paths)._length,l){for(o="",s=0;s<a;s+=1)(h=p.shapes[s])&&h._length&&(o+=buildShapeString(h,h._length,h.c,u));n.caches[c]=o}else o=n.caches[c];n.styles[c].d+=!0===i.hd?"":o,n.styles[c]._mdf=l||n.styles[c]._mdf}}function s(t,e,i){var n=e.style;(e.c._mdf||i)&&n.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),l(0,e,i)}function o(t,e,i){var n,r,s,a,o,l=e.gf,h=e.g._hasOpacity,c=e.s.v,p=e.e.v;if(e.o._mdf||i){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||i){var f=1===t.t?"x1":"cx",d="x1"===f?"y1":"cy";l.setAttribute(f,c[0]),l.setAttribute(d,c[1]),h&&!e.g._collapsable&&(e.of.setAttribute(f,c[0]),e.of.setAttribute(d,c[1]))}if(e.g._cmdf||i){n=e.cst;var m=e.g.c;for(s=n.length,r=0;r<s;r+=1)(a=n[r]).setAttribute("offset",m[4*r]+"%"),a.setAttribute("stop-color","rgb("+m[4*r+1]+","+m[4*r+2]+","+m[4*r+3]+")")}if(h&&(e.g._omdf||i)){var g=e.g.o;for(s=(n=e.g._collapsable?e.cst:e.ost).length,r=0;r<s;r+=1)a=n[r],e.g._collapsable||a.setAttribute("offset",g[2*r]+"%"),a.setAttribute("stop-opacity",g[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)),l.setAttribute("r",o),h&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)));var y=Math.atan2(p[1]-c[1],p[0]-c[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,x=Math.cos(y+e.a.v)*b+c[0],E=Math.sin(y+e.a.v)*b+c[1];l.setAttribute("fx",x),l.setAttribute("fy",E),h&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",E))}}function l(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return r;case"tr":return i;case"no":return n;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,n,r,s){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=r,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!n,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,n,r=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(i=0;i<s;i+=1){for(n=this.stylesList[i],o=!1,a.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,n=new SVGStyleData(t,e),r=n.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,n):"fl"===t.ty?i=new SVGFillStyleData(this,t,n):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,n)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,n,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()}
vendor: 30,018 bytes, line 2
2,SVGShapeElement.prototype.searchShapes=function(t,e,i,n,r,s,a){var o,l,h,c,p,u,f=[].concat(s),d=t.length-1,m=[],g=[];for(o=d;o>=0;o-=1){if((u=this.searchProcessedElement(t[o]))?e[o]=i[u-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)u?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&e[o].style.pElem.parentNode!==n&&n.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(u)for(h=e[o].it.length,l=0;l<h;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,r+1,f,a),t[o]._render&&e[o].gr.parentNode!==n&&n.appendChild(e[o].gr)}else"tr"===t[o].ty?(u||(e[o]=this.createTransformElement(t[o],n)),c=e[o].transform,f.push(c)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(u||(e[o]=this.createShapeElement(t[o],f,r)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(u?(p=e[o]).closed=!1:((p=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===t[o].ty&&(u?(p=e[o]).closed=!0:(p=ShapeModifiers.getModifier(t[o].ty),e[o]=p,p.init(this,t,o,e),this.shapeModifiers.push(p),a=!1),g.push(p));this.addProcessedElement(t[o],o+1)}for(d=m.length,o=0;o<d;o+=1)m[o].closed=!0;for(d=g.length,o=0;o<d;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,n,r,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;n<r;n+=1)s=i!==this.keysIndex?this.effectsSequence[n](s,s.t):this.effectsSequence[n](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,n=[],r=0,s=t.length,a=!1,o=!1,l="";r<s;)a=o,o=!1,e=t.charCodeAt(r),l=t.charAt(r),FontManager.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,r)?l=t.substr(r,14):(i=t.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(r,2),a=!0):l=FontManager.isFlagEmoji(t.substr(r,4))?t.substr(r,4):t.substr(r,2)):e>56319?(i=t.charCodeAt(r+1),FontManager.isVariationSelector(e)&&(a=!0)):FontManager.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(n[n.length-1]+=l,a=!1):n.push(l),r+=l.length;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,s,a,o,l=this.elem.globalData.fontManager,h=this.data,c=[],p=0,u=h.m.g,f=0,d=0,m=0,g=[],y=0,v=0,b=l.getFontByName(t.f),x=0,E=getFontProperties(b);t.fWeight=E.weight,t.fStyle=E.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var _,S=t.tr/1e3*t.finalSize;if(t.sz)for(var P,C,w=!0,T=t.sz[0],M=t.sz[1];w;){P=0,y=0,i=(C=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<i;e+=1)_=C[e].charCodeAt(0),n=!1," "===C[e]?A=e:13!==_&&3!==_||(y=0,n=!0,P+=t.finalLineHeight||1.2*t.finalSize),l.chars?(o=l.getCharData(C[e],b.fStyle,b.fFamily),x=n?0:o.w*t.finalSize/100):x=l.measureText(C[e],t.f,t.finalSize),y+x>T&&" "!==C[e]?(-1===A?i+=1:e=A,P+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,A===e?1:0,"\r"),A=-1,y=0):(y+=x,y+=S);P+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&M<P?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,i=t.finalText.length,w=!1)}y=-S,x=0;var k,D=0;for(e=0;e<i;e+=1)if(n=!1,13===(_=(k=t.finalText[e]).charCodeAt(0))||3===_?(D=0,g.push(y),v=y>v?y:v,y=-2*S,r="",n=!0,m+=1):r=k,l.chars?(o=l.getCharData(k,b.fStyle,l.getFontByName(t.f).fFamily),x=n?0:o.w*t.finalSize/100):x=l.measureText(r,t.f,t.finalSize)," "===k?D+=x+S:(y+=x+S+D,D=0),c.push({l:x,an:x,add:f,n:n,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==u){if(f+=x,""===r||" "===r||e===i-1){for(""!==r&&" "!==r||(f-=x);d<=e;)c[d].an=f,c[d].ind=p,c[d].extra=x,d+=1;p+=1,f=0}}else if(3==u){if(f+=x,""===r||e===i-1){for(""===r&&(f-=x);d<=e;)c[d].an=f,c[d].ind=p,c[d].extra=x,d+=1;f=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(t.l=c,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var I,F,L,O,R=h.a;a=R.length;var B=[];for(s=0;s<a;s+=1){for((I=R[s]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),O=0,L=I.s.b,e=0;e<i;e+=1)(F=c[e]).anIndexes[s]=O,(1==L&&""!==F.val||2==L&&""!==F.val&&" "!==F.val||3==L&&(F.n||" "==F.val||e==i-1)||4==L&&(F.n||e==i-1))&&(1===I.s.rn&&B.push(O),O+=1);h.a[s].s.totalChars=O;var z,V=-1;if(1===I.s.rn)for(e=0;e<i;e+=1)V!=(F=c[e]).anIndexes[s]&&(V=F.anIndexes[s],z=B.splice(Math.floor(Math.random()*B.length),1)[0]),F.anIndexes[s]=z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,s=0,a=1,o=1;this.ne.v>0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,s,a,o).get,h=0,c=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)h=l(h=p===c?n>=p?1:0:t(0,e(.5/(p-c)+(n-c)/(p-c),1)));else if(3===u)h=l(h=p===c?n>=p?0:1:1-t(0,e(.5/(p-c)+(n-c)/(p-c),1)));else if(4===u)p===c?h=0:(h=t(0,e(.5/(p-c)+(n-c)/(p-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===u){if(p===c)h=0;else{var f=p-c,d=-f/2+(n=e(t(0,n+.5-c),p-c)),m=f/2;h=Math.sqrt(1-d*d/(m*m))}h=l(h)}else 6===u?(p===c?h=0:(n=e(t(0,n+.5-c),p-c),h=(1+Math.cos(Math.PI+2*Math.PI*n/(p-c)))/2),h=l(h)):(n>=i(c)&&(h=t(0,e(n-c<0?e(p,1)-(c-n):p-n,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;h<y?h=0:(h=(h-y)/g)>1&&(h=1)}return h*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var s=n;n=r,r=s}this.finalS=n,this.finalE=r}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,e,i){return new n(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var n={propType:!1},r=PropertyFactory.getProp,s=e.a;this.a={r:s.r?r(t,s.r,0,degToRads,i):n,rx:s.rx?r(t,s.rx,0,degToRads,i):n,ry:s.ry?r(t,s.ry,0,degToRads,i):n,sk:s.sk?r(t,s.sk,0,degToRads,i):n,sa:s.sa?r(t,s.sa,0,degToRads,i):n,s:s.s?r(t,s.s,1,.01,i):n,a:s.a?r(t,s.a,1,0,i):n,o:s.o?r(t,s.o,0,.01,i):n,p:s.p?r(t,s.p,1,0,i):n,sw:s.sw?r(t,s.sw,0,0,i):n,sc:s.sc?r(t,s.sc,1,0,i):n,fc:s.fc?r(t,s.fc,1,0,i):n,fh:s.fh?r(t,s.fh,0,0,i):n,fs:s.fs?r(t,s.fs,0,.01,i):n,fb:s.fb?r(t,s.fb,0,.01,i):n,t:s.t?r(t,s.t,0,0,i):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,n=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,n,r,s,a,o,l,h,c,p,u,f,d,m,g,y,v,b,x,E=this._moreOptions.alignment.v,_=this._animatorsData,S=this._textData,P=this.mHelper,C=this._renderType,w=this.renderedLetters.length,T=t.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var M,A=x.v;for(this._pathData.r.v&&(A=A.reverse()),a={tLength:0,segments:[]},s=A._length-1,y=0,r=0;r<s;r+=1)M=bez.buildBezierData(A.v[r],A.v[r+1],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[r+1][0]-A.v[r+1][0],A.i[r+1][1]-A.v[r+1][1]]),a.tLength+=M.segmentLength,a.segments.push(M),y+=M.segmentLength;r=s,x.v.c&&(M=bez.buildBezierData(A.v[r],A.v[0],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),a.tLength+=M.segmentLength,a.segments.push(M),y+=M.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,u=0,p=1,h=0,c=!0,m=a.segments,o<0&&x.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),p=(d=m[u=m.length-1].points).length-1;o<0;)o+=d[p].partialLength,(p-=1)<0&&(p=(d=m[u-=1].points).length-1);f=(d=m[u].points)[p-1],g=(l=d[p]).partialLength}s=T.length,i=0,n=0;var k,D,I,F,L,O=1.2*t.finalSize*.714,R=!0;I=_.length;var B,z,V,N,j,G,H,W,q,$,X,Y,U=-1,Z=o,J=u,K=p,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,nt=0,rt=2===t.j?-.5:-1,st=0,at=!0;for(r=0;r<s;r+=1)if(T[r].n){for(it&&(it+=nt);st<r;)T[st].animatorJustifyOffset=it,st+=1;it=0,at=!0}else{for(D=0;D<I;D+=1)(k=_[D].a).t.propType&&(at&&2===t.j&&(nt+=k.t.v*rt),(L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars)).length?it+=k.t.v*L[0]*rt:it+=k.t.v*L*rt);at=!1}for(it&&(it+=nt);st<r;)T[st].animatorJustifyOffset=it,st+=1}for(r=0;r<s;r+=1){if(P.reset(),N=1,T[r].n)i=0,n+=t.yOffset,n+=R?1:0,o=Z,R=!1,this._hasMaskedPath&&(p=K,f=(d=m[u=J].points)[p-1],g=(l=d[p]).partialLength,h=0),tt="",X="",q="",Y="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==T[r].line){switch(t.j){case 1:o+=y-t.lineWidths[T[r].line];break;case 2:o+=(y-t.lineWidths[T[r].line])/2}Q=T[r].line}U!==T[r].ind&&(T[U]&&(o+=T[U].extra),o+=T[r].an/2,U=T[r].ind),o+=E[0]*T[r].an*.005;var ot=0;for(D=0;D<I;D+=1)(k=_[D].a).p.propType&&((L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars)).length?ot+=k.p.v[0]*L[0]:ot+=k.p.v[0]*L),k.a.propType&&((L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars)).length?ot+=k.a.v[0]*L[0]:ot+=k.a.v[0]*L);for(c=!0,this._pathData.a.v&&(o=.5*T[0].an+(y-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*U/(s-1),o+=this._pathData.f.v);c;)h+g>=o+ot||!d?(v=(o+ot-h)/l.partialLength,z=f.point[0]+(l.point[0]-f.point[0])*v,V=f.point[1]+(l.point[1]-f.point[1])*v,P.translate(-E[0]*T[r].an*.005,-E[1]*O*.01),c=!1):d&&(h+=l.partialLength,(p+=1)>=d.length&&(p=0,m[u+=1]?d=m[u].points:x.v.c?(p=0,d=m[u=0].points):(h-=l.partialLength,d=null)),d&&(f=l,g=(l=d[p]).partialLength));B=T[r].an/2-T[r].add,P.translate(-B,0,0)}else B=T[r].an/2-T[r].add,P.translate(-B,0,0),P.translate(-E[0]*T[r].an*.005,-E[1]*O*.01,0);for(D=0;D<I;D+=1)(k=_[D].a).t.propType&&(L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?o+=k.t.v*L[0]:o+=k.t.v*L:L.length?i+=k.t.v*L[0]:i+=k.t.v*L));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(j=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<I;D+=1)(k=_[D].a).a.propType&&((L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars)).length?P.translate(-k.a.v[0]*L[0],-k.a.v[1]*L[1],k.a.v[2]*L[2]):P.translate(-k.a.v[0]*L,-k.a.v[1]*L,k.a.v[2]*L));for(D=0;D<I;D+=1)(k=_[D].a).s.propType&&((L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars)).length?P.scale(1+(k.s.v[0]-1)*L[0],1+(k.s.v[1]-1)*L[1],1):P.scale(1+(k.s.v[0]-1)*L,1+(k.s.v[1]-1)*L,1));for(D=0;D<I;D+=1){if(k=_[D].a,L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars),k.sk.propType&&(L.length?P.skewFromAxis(-k.sk.v*L[0],k.sa.v*L[1]):P.skewFromAxis(-k.sk.v*L,k.sa.v*L)),k.r.propType&&(L.length?P.rotateZ(-k.r.v*L[2]):P.rotateZ(-k.r.v*L)),k.ry.propType&&(L.length?P.rotateY(k.ry.v*L[1]):P.rotateY(k.ry.v*L)),k.rx.propType&&(L.length?P.rotateX(k.rx.v*L[0]):P.rotateX(k.rx.v*L)),k.o.propType&&(L.length?N+=(k.o.v*L[0]-N)*L[0]:N+=(k.o.v*L-N)*L),t.strokeWidthAnim&&k.sw.propType&&(L.length?G+=k.sw.v*L[0]:G+=k.sw.v*L),t.strokeColorAnim&&k.sc.propType)for(W=0;W<3;W+=1)L.length?j[W]+=(k.sc.v[W]-j[W])*L[0]:j[W]+=(k.sc.v[W]-j[W])*L;if(t.fillColorAnim&&t.fc){if(k.fc.propType)for(W=0;W<3;W+=1)L.length?H[W]+=(k.fc.v[W]-H[W])*L[0]:H[W]+=(k.fc.v[W]-H[W])*L;k.fh.propType&&(H=L.length?addHueToRGB(H,k.fh.v*L[0]):addHueToRGB(H,k.fh.v*L)),k.fs.propType&&(H=L.length?addSaturationToRGB(H,k.fs.v*L[0]):addSaturationToRGB(H,k.fs.v*L)),k.fb.propType&&(H=L.length?addBrightnessToRGB(H,k.fb.v*L[0]):addBrightnessToRGB(H,k.fb.v*L))}}for(D=0;D<I;D+=1)(k=_[D].a).p.propType&&(L=_[D].s.getMult(T[r].anIndexes[D],S.a[D].s.totalChars),this._hasMaskedPath?L.length?P.translate(0,k.p.v[1]*L[0],-k.p.v[2]*L[1]):P.translate(0,k.p.v[1]*L,-k.p.v[2]*L):L.length?P.translate(k.p.v[0]*L[0],k.p.v[1]*L[1],-k.p.v[2]*L[2]):P.translate(k.p.v[0]*L,k.p.v[1]*L,-k.p.v[2]*L));if(t.strokeWidthAnim&&(q=G<0?0:G),t.strokeColorAnim&&($="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),t.fillColorAnim&&t.fc&&(X="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(P.translate(0,-t.ls),P.translate(0,E[1]*O*.01+n,0),this._pathData.p.v){b=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var lt=180*Math.atan(b)/Math.PI;l.point[0]<f.point[0]&&(lt+=180),P.rotate(-lt*Math.PI/180)}P.translate(z,V,0),o-=E[0]*T[r].an*.005,T[r+1]&&U!==T[r+1].ind&&(o+=T[r].an/2,o+=.001*t.tr*t.finalSize)}else{switch(P.translate(i,n,0),t.ps&&P.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:P.translate(T[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[r].line]),0,0);break;case 2:P.translate(T[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[r].line])/2,0,0)}P.translate(0,-t.ls),P.translate(B,0,0),P.translate(E[0]*T[r].an*.005,E[1]*O*.01,0),i+=T[r].l+.001*t.tr*t.finalSize}"html"===C?tt=P.toCSS():"svg"===C?tt=P.to2dCSS():et=[P.props[0],P.props[1],P.props[2],P.props[3],P.props[4],P.props[5],P.props[6],P.props[7],P.props[8],P.props[9],P.props[10],P.props[11],P.props[12],P.props[13],P.props[14],P.props[15]],Y=N}w<=r?(F=new LetterProps(Y,q,$,X,tt,et),this.renderedLetters.push(F),w+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[r],this.lettersChangedFlag=F.update(Y,q,$,X,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,n,r=e.length,s="";for(i=0;i<r;i+=1)"sh"===e[i].ty&&(n=e[i].ks.k,s+=buildShapeString(n,n.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,n,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(n,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var n=createNS("title"),r=createElementID();n.setAttribute("id",r),n.textContent=e.title,this.svgElement.appendChild(n),i+=r}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,n=[],r="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(r),r=""):r+=t[e],e+=1;return n.push(r),n},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var r=i.fWeight,s=i.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],l=!!this.globalData.fontManager.chars;e=o.length;var h=this.mHelper,c=this.data.singleShape,p=0,u=0,f=!0,d=.001*i.tr*i.finalSize;if(!c||l||i.sz){var m,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(a=g>t?this.textSpans[t].span:createNS(l?"g":"text"),g<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(h.reset(),c&&(o[t].n&&(p=-d,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,h,o[t].line,p,u),p+=o[t].l||0,p+=d),l){var v;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,i.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var x=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var E=this.textContainer,_="start";switch(i.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}E.setAttribute("text-anchor",_),E.setAttribute("letter-spacing",d);var S=this.buildTextContents(i.finalText);for(e=S.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=S[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",E.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(E)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,n,r,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=s[t],n=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&n.setAttribute("transform",i.m),i._mdf.o&&n.setAttribute("opacity",i.o),i._mdf.sw&&n.setAttribute("stroke-width",i.sw),i._mdf.sc&&n.setAttribute("stroke",i.sc),i._mdf.fc&&n.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
20,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var r=e[n].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(n),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[n].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var n,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(i,n):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,n="_";for(e=0;e<i;e+=1)n+=t[e].transform.key+"_";var r=this.sequences[n];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i=0,n=t.transforms.length,r=e;i<n&&!e;){if(t.transforms[i].transform.mProps._mdf){r=!0;break}i+=1}if(r)for(t.finalTransform.reset(),i=n-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=r},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,i=null,n=null;function r(){var r,s,a;e||(r=createNS("svg"),s=createNS("filter"),a=createNS("feColorMatrix"),s.setAttribute("id",t),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),s.appendChild(a),r.appendChild(s),r.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(r.style.display="none"),n=r,document.body.appendChild(n),e=createTag("canvas"),(i=e.getContext("2d")).filter="url
2(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:r,get:function(n){return e||r(),e.width=n.width,e.height=n.height,i.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(t){var e,i,n=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<n;e+=1){i=null;var r=t.data.ef[e].ty;registeredEffects[r]&&(i=new(0,registeredEffects[r].effect)(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,r=!1;for(i=0;i<n;i+=1)"n"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,n=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,n,r=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t<a;t+=1)if("n"!==this.masksProperties[t].mode){var o;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),n=this.viewData[t].v,e=r.applyToPointArray(n.v[0][0],n.v[0][1],0),s.moveTo(e[0],e[1]);var l=n._length;for(o=1;o<l;o+=1)i=r.applyToTriplePoints(n.o[o-1],n.i[o],n.v[o]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=r.applyToTriplePoints(n.o[o-1],n.i[0],n.v[0]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,s=4;"rc"===e.ty?s=5:"el"===e.ty?s=6:"sr"===e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,o=i.length;for(r=0;r<o;r+=1)i[r].closed||(a={transforms:n.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(a),i[r].elements.push(a
vendor: 4,168 bytes, line 2
2))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var
vendor: 24,167 bytes, line 2
2n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,s=t.ks.or.k.length;for(r=0;r<s;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},n={};if("fl"===t.ty||"st"===t.ty?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(i.wi=n.w.v),t.d){var r=new DashProperty(this,t.d,"canvas",this);n.d=r,n.d.k||(i.da=n.d.dashArray,i.do=n.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),n.style=i,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,n,r){var s,a,o,l,h,c,p=t.length-1,u=[],f=[],d=[].concat(r);for(s=p;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=i[l-1]:t[s]._shouldRender=n,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],d),u.push(e[s].style);else if("gr"===t[s].ty){if(l)for(o=e[s].it.length,a=0;a<o;a+=1)e[s].prevViewData[a]=e[s].it[a];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,n,d)}else"tr"===t[s].ty?(l||(c=this.createTransformElement(t[s]),e[s]=c),d.push(e[s]),this.addTransformToStyleList(e[s])):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?l||(e[s]=this.createShapeElement(t[s])):"tm"===t[s].ty||"rd"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"===t[s].ty&&(l?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),n=!1),f.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=f.length,s=0;s<p;s+=1)f[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,n,r,s,a,o,l,h=this.stylesList.length,c=this.globalData.renderer,p=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(("st"!==(o=(l=this.stylesList[t]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),s=l.elements,"st"===o||"gs"===o?(c.ctxStrokeStyle("st"===o?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===o?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&p.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),i=s.length,e=0;e<i;e+=1){for("st"!==o&&"gs"!==o||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),r=(a=s[e].trNodes).length,n=0;n<r;n+=1)"m"===a[n].t?p.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?p.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):p.closePath();"st"!==o&&"gs"!==o||(c.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,n){var r,s;for(s=t,r=e.length-1;r>=0;r-=1)"tr"===e[r].ty?(s=i[r].transform,this.renderShapeTransform(t,s)):"sh"===e[r].ty||"el"===e[r].ty||"rc"===e[r].ty||"sr"===e[r].ty?this.renderPath(e[r],i[r]):"fl"===e[r].ty?this.renderFill(e[r],i[r],s):"st"===e[r].ty?this.renderStroke(e[r],i[r],s):"gf"===e[r].ty||"gs"===e[r].ty?this.renderGradientFill(e[r],i[r],s):"gr"===e[r].ty?this.renderShape(s,e[r].it,i[r].it):e[r].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,n,r,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(r=0;r<o;r+=1){var h=a.shapes[r];if(h&&h.v){for(n=h._length,i=1;i<n;i+=1)1===i&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===n&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&n&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,n=e.styledShapes.length;for(i=0;i<n;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var n,r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var s,a=this.globalData.canvasContext,o=e.s.v,l=e.e.v;if(1===t.t)n=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=Math.atan2(l[1]-o[1],l[0]-o[0]),p=e.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var u=h*p,f=Math.cos(c+e.a.v)*u+o[0],d=Math.sin(c+e.a.v)*u+o[1];n=a.createRadialGradient(f,d,0,o[0],o[1],h)}var m=t.g.p,g=e.g.c,y=1;for(s=0;s<m;s+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*s+1]),n.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+y+")");r.grd=n}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(n.da=r.dashArray,n.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var n,r,s,a,o,l,h,c,p,u,f,d,m=this.globalData.fontManager.getFontByName(t.f),g=t.l,y=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,r=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,x=0,E=0,_=!0,S=0;for(n=0;n<r;n+=1){a=(s=this.globalData.fontManager.getCharData(t.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},y.reset(),v&&g[n].n&&(x=-b,E+=t.yOffset,E+=_?1:0,_=!1),p=(h=a.shapes?a.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,y,g[n].line,x,E),f=createSizedArray(p-1);var P=0;for(c=0;c<p;c+=1)if("sh"===h[c].ty){for(l=h[c].ks.k.i.length,u=h[c].ks.k,d=[],o=1;o<l;o+=1)1===o&&d.push(y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),d.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[o][0],u.i[o][1],0),y.applyToY(u.i[o][0],u.i[o][1],0),y.applyToX(u.v[o][0],u.v[o][1],0),y.applyToY(u.v[o][0],u.v[o][1],0));d.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[0][0],u.i[0][1],0),y.applyToY(u.i[0][0],u.i[0][1],0),y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),f[P]=d,P+=1}v&&(x+=g[n].l,x+=b),this.textSpans[S]?this.textSpans[S].elem=f:this.textSpans[S]={elem:f},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,n,r,s;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var h,c,p=null,u=null,f=null,d=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((a=o[t])&&(d.save(),d.ctxTransform(a.p),d.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(d.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,d.ctxFillStyle(this.values.fill)),n=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<n;i+=1)for(s=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),r=2;r<s;r+=6)this.globalData.canvasContext.bezierCurveTo(c[r],c[r+1],c[r+2],c[r+3],c[r+4],c[r+5]);this.globalData.canvasContext.closePath(),d.ctxFill()}if(this.stroke){for(a&&a.sw?f!==a.sw&&(f=a.sw,d.ctxLineWidth(a.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),a&&a.sc?u!==a.sc&&(u=a.sc,d.ctxStrokeStyle(a.sc)):u!==this.values.stroke&&(u=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),n=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<n;i+=1)for(s=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),r=2;r<s;r+=6)this.globalData.canvasContext.bezierCurveTo(c[r],c[r+1],c[r+2],c[r+3],c[r+4],c[r+5]);this.globalData.canvasContext.closePath(),d.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,n=t.getContext("2d"),r=this.img.width,s=this.img.height,a=r/s,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&"xMidYMid slice"===l||a<o&&"xMidYMid slice"!==l?e=(i=s)*o:i=(e=r)/o,n.drawImage(this.img,(r-e)/2,(s-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,n){this.canvasContext.fillRect(t,e,i,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,n,r,s;if(this.reset(),t?(i=t,n=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",h=l.substr(0,4),c=l.substr(4);r=i/n,(s=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===o||s<r&&"slice"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===h&&(s<r&&"meet"===o||s>r&&"slice"===o)?(i-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(s<r&&"meet"===o||s>r&&"slice"===o)?(i-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.t
vendor: 4,282 bytes, line 2
2y="YMid"===c&&(s>r&&"meet"===o||s<r&&"slice"===o)?(n-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(s>r&&"meet"===o||s<r&&"slice"===o)?(n-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,i=this.stack[this.cArrPos],n=i.transform,r=this.cTr.props;for(e=0;e<16;e+=1)r[e]=n[e];if(t){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,n=this.stack[this.cArrPos];for(i=0;i<16;i+=1)n.transform[i]=e[i];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=n.opacity,r.fillStyle=n.fillStyle,r.strokeStyle=n.strokeStyle,r.lineWidth=n.lineWidth,r.lineCap=n.lineCap,r.lineJoin=n.lineJoin,r.miter
vendor: 5,362 bytes, line 2
2Limit=n.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRe
vendor: 46,664 bytes, line 2
2nderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,n,r,s,a,o=t.sh.v,l=t.transformers,h=o._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)n=this.getTransformedPoint(l,o.v[i]),r=this.getTransformedPoint(l,o.o[i]),s=this.getTransformedPoint(l,o.i[i+1]),a=this.getTransformedPoint(l,o.v[i+1]),this.checkBounds(n,r,s,a,e);o.c&&(n=this.getTransformedPoint(l,o.v[i]),r=this.getTransformedPoint(l,o.o[i]),s=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(n,r,s,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,n,r){this.getBoundsOfCurve(t,e,i,n);var s=this.shapeBoundingBox;r.x=bmMin(s.left,r.x),r.xMax=bmMax(s.right,r.xMax),r.y=bmMin(s.top,r.y),r.yMax=bmMax(s.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,n){for(var r,s,a,o,l,h,c,p=[[t[0],n[0]],[t[1],n[1]]],u=0;u<2;++u)s=6*t[u]-12*e[u]+6*i[u],r=-3*t[u]+9*e[u]-9*i[u]+3*n[u],a=3*e[u]-3*t[u],s|=0,a|=0,0==(r|=0)&&0===s||(0===r?(o=-a/s)>0&&o<1&&p[u].push(this.calculateF(o,t,e,i,n,u)):(l=s*s-4*a*r)>=0&&((h=(-s+bmSqrt(l))/(2*r))>0&&h<1&&p[u].push(this.calculateF(h,t,e,i,n,u)),(c=(-s-bmSqrt(l))/(2*r))>0&&c<1&&p[u].push(this.calculateF(c,t,e,i,n,u))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(t,e,i,n,r,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*i[s]+3*(1-t)*bmPow(t,2)*n[s]+bmPow(t,3)*r[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var n=0;n<t.keyframes.length;n+=1){var r=t.keyframes[n].s;r>i&&(i=r)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=r,n.webkitTransform=r}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n,r,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var a=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=a}var l,h,c,p=t.l;r=p.length;var u,f=this.mHelper,d="",m=0;for(n=0;n<r;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(h=this.textSpans[m]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],l=this.textPaths[m]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(t.finalText[n],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=y?y.data:null,f.reset(),g&&g.shapes&&g.shapes.length&&(u=g.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),d=this.createPathShape(f,u),l.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),g&&g.shapes){document.body.appendChild(c);var v=c.getBBox();c.setAttribute("width",v.width+2),c.setAttribute("height",v.height+2),c.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=c.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=x,b.webkitTransform=x,p[n].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=p[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var E=l.style,_="translate3d(0,"+-t.finalSize/1.2+"px,0)";E.transform=_,E.webkitTransform=_}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,n,r,s,a,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(n=h.length,i=0;i<n;i+=1)h[i].n?o+=1:(s=this.textSpans[i],a=this.textPaths[i],r=l[o],o+=1,r._mdf.m&&(this.isMasked?s.setAttribute("transform",r.m):(s.style.webkitTransform=r.m,s.style.transform=r.m)),s.style.opacity=r.o,r.sw&&r._mdf.sw&&a.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&a.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(a.setAttribute("fill",r.fc),a.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=p,t.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,n,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,n=e.container.style;var s=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=s,i.webkitPerspective=s,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,i=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)i=this.hierarchy[t].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/s,r[1]/s,r[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),h=Math.atan2(a[0],-a[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var p,u,f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(p=this.comp.threeDElements[t]).type){if(c){var d=this.mat.toCSS();(f=p.container.style).transform=d,f.webkitTransform=d}this.pe._mdf&&((u=p.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var r,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],r=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||r),a+=1;r?n.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):n.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,n,r=createTag("div");styleDiv(r);var s=createTag("div");if(styleDiv(s),"3d"===e){(i=r.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=s.style).transform=o,n.webkitTransform=o}r.appendChild(s);var l={container:s,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,n="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==n&&(n="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==n&&(n="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,n=this.threeDElements.length;i<n;){if(e<=this.threeDElements[i].endPos){for(var r,s=this.threeDElements[i].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(r=this.elements[s].getBaseElement()),s+=1;r?this.threeDElements[i].container.insertBefore(t,r):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,n=e.style;n.width=t.w+"px",n.height=t.h+"px",this.resizerElem=e,styleDiv(e),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),n.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var s=createNS("defs");r.appendChild(s),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,n,r=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=r/s;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,n=(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,n=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+n+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t<n;t+=1){var r=this.threeDElements[t].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,n=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e],n,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,n=0;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="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},_typeof$2(t)}function seedRandom(t,e){var i=this,n=256,r=e.pow(n,6),s=e.pow(2,52),a=2*s,o=255;function l(t){var e,i=t.length,r=this,s=0,a=r.i=r.j=0,l=r.S=[];for(i||(t=[i++]);s<n;)l[s]=s++;for(s=0;s<n;s++)l[s]=l[a=o&a+t[s%i]+(e=l[s])],l[a]=e;r.g=function(t){for(var e,i=0,s=r.i,a=r.j,l=r.S;t--;)e=l[s=o&s+1],i=i*n+l[o&(l[s]=l[a=o&a+e])+(l[a]=e)];return r.i=s,r.j=a,i}}function h(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){var i,n=[],r=_typeof$2(t);if(e&&"object"==r)for(i in t)try{n.push(c(t[i],e-1))}catch(t){}return n.length?n:"string"==r?t:t+"\0"}function p(t,e){for(var i,n=t+"",r=0;r<n.length;)e[o&r]=o&(i^=19*e[o&r])+n.charCodeAt(r++);return u(e)}function u(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(o,f,d){var m=[],g=p(c((f=!0===f?{entropy:!0}:f||{}).entropy?[o,u(t)]:null===o?function(){try{var e=new Uint8Array(n);return(i.crypto||i.msCrypto).getRandomValues(e),u(e)}catch(e){var r=i.navigator,s=r&&r.plugins;return[+new Date,i,s,i.screen,u(t)]}}():o,3),m),y=new l(m),v=function(){for(var t=y.g(6),e=r,i=0;t<s;)t=(t+i)*n,e*=n,i=y.g(1);for(;t>=a;)t/=2,e/=2,i>>>=1;return(t+i)/e};return v.int32=function(){return 0|y.g(4)},v.quick=function(){return y.g(4)/4294967296},v.double=v,p(u(y.S),t),(f.pass||d||function(t,i,n,r){return r&&(r.S&&h(r,y),t.state=function(){return h(y,{})}),n?(e.random=t,i):t})(v,g,"global"in f?f.global:this==e,f.state)},p(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="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},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var i,n=t.length,r=[];for(i=0;i<n;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),n=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(n,e)||"string"===i||"string"===n)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,s=t.length,a=e.length,o=[];r<s||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]+e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),n=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(n,e))return"string"===i&&(t=parseInt(t,10)),"string"===n&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,s=t.length,a=e.length,o=[];r<s||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]-e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}function mul(t,e){var i,n,r,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(r=t.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t[n]*e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t*e[n];return i}return 0}function div(t,e){var i,n,r,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(r=t.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t[n]/e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t/e[n];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var n=Math.min(t.length,e.length),r=0;for(i=0;i<n;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,n=t[0],r=t[1],s=t[2],a=Math.max(n,r,s),o=Math.min(n,r,s),l=(a+o)/2;if(a===o)e=0,i=0;else{var h=a-o;switch(i=l>.5?h/(2-a-o):h/(a+o),a){case n:e=(r-s)/h+(r<s?6:0);break;case r:e=(s-n)/h+2;break;case s:e=(n-r)/h+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,n,r=t[0],s=t[1],a=t[2];if(0===s)e=a,n=a,i=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,r+1/3),i=hue2rgb(l,o,r),n=hue2rgb(l,o,r-1/3)}return[e,i,n,t[3]]}function linear(t,e,i,n,r){if(void 0!==n&&void 0!==r||(n=e,r=i,e=0,i=1),i<e){var s=i;i=e,e=s}if(t<=e)return n;if(t>=i)return r;var a,o=i===e?0:(t-e)/(i-e);if(!n.length)return n+(r-n)*o;var l=n.length,h=createTypedArray("float32",l);for(a=0;a<l;a+=1)h[a]=n[a]+(r[a]-n[a])*o;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,n=e.length;t||(t=createTypedArray("float32",n));var r=createTypedArray("float32",n),s=BMMath.random();for(i=0;i<n;i+=1)r[i]=t[i]+s*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,n){var r,s=t.length,a=shapePool.newElement();a.setPathData(!!n,s);var o,l,h=[0,0];for(r=0;r<s;r+=1)o=e&&e[r]?e[r]:h,l=i&&i[r]?i[r]:h,a.setTripleAt(t[r][0],t[r][1],l[0]+t[r][0],l[1]+t[r][1],o[0]+t[r][0],o[1]+t[r][1],r,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var i,n,r=this.pv.length?this.pv.length:1,s=createTypedArray("float32",r),a=Math.floor(5*time);for(i=0,n=0;i<a;){for(n=0;n<r;n+=1)s[n]+=-e+2*e*BMMath.random();i+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",r);if(r>1){for(n=0;n<r;n+=1)h[n]=this.pv[n]+s[n]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,n,0]}function easeOut(t,e,i,n,r){return applyEase(easeOutBez,t,e,i,n,r)}function easeIn(t,e,i,n,r){return applyEase(easeInBez,t,e,i,n,r)}function ease(t,e,i,n,r){return applyEase(easeInOutBez,t,e,i,n,r)}function applyEase(t,e,i,n,r,s){void 0===r?(r=i,s=n):e=(e-i)/(n-i),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(r)){var o,l=r.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(s[o]-r[o])*a+r[o];return h}return(s-r)*a+r}function nearestKey(t){var e,i,n,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,n=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1,n=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,n=data.k[e+1].t):(i=e+1,n=data.k[e].t);break}}-1===i&&(i=e+1,n=data.k[e].t)}else i=0,n=0;var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,i,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=r.length,i=0;i<n;i+=1)e[i]=r[i],e.value[i]=r[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,n=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)n[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return n[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(!t.numKeys)return 0;var r="";r="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var s="unidimensional"===i?new Number(r):Object.assign({},r);return s.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===i?r[0]:r,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(r){return r?"unidimensional"===r.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,r=e.pv*n,s=new Number(r);return s.value=r,i(s,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*n,s.value!==r&&((s=new Number(r)).value=r,i(s,e,"unidimensional")),s}}(r):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,r=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",r),a=createTypedArray("float32",r);return s.value=a,i(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<r;e+=1)a[e]=t.v[e]*n,s[e]=a[e];return s}}(r):n}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,n,r,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[i(),n(),r?r():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function n(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(h){var c;function p(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=t,p.invertPoint=a,p.applyPoint=s,p.toWorld=i,p.toWorldVec=e,p.fromWorld=r,p.fromWorldVec=n,p.toComp=i,p.fromComp=o,p.sampleImage=l,p.sourceRectAtTime=h.sourceRectAtTime.bind(h),p._elem=h;var u=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),p.startTime=h.data.st,p.index=h.data.ind,p.source=h.data.refId,p.height=0===h.data.ty?h.data.h:100,p.width=0===h.data.ty?h.data.w:100,p.inPoint=h.data.ip/h.comp.globalData.frameRate,p.outPoint=h.data.op/h.comp.globalData.frameRate,p._name=h.data.nm,p.registerMaskInterface=function(t){p.mask=new MaskManagerInterface(t,h)},p.registerEffectsInterface=function(t){p.effect=t},p}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){function t(i,n,r,s){function a(t){for(var e=i.ef,n=0,r=e.length;n<r;){if(t===e[n].nm||t===e[n].mn||t===e[n].ix)return 5===e[n].ty?h[n]:h[n]();n+=1}throw new Error}var o,l=propertyGroupFactory(a,r),h=[],c=i.ef.length;for(o=0;o<c;o+=1)5===i.ef[o].ty?h.push(t(i.ef[o],n.effectElements[o],n.effectElements[o].propertyGroup,s)):h.push(e(n.effectElements[o],i.ef[o].ty,s,l));return"ADBE Color Control"===i.mn&&Object.defineProperty(a,"color",{get:function(){return h[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:l}}),a.enabled=0!==i.en,a.active=a.enabled,a}function e(t,e,i,n){var r=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===e?i.comp.compInterface(t.p.v):r()}}return{createEffectsInterface:function(e,i){if(e.effectsManager){var n,r=[],s=e.data.ef,a=e.effectsManager.effectElements.length;for(n=0;n<a;n+=1)r.push(t(s[n],e.effectsManager.effectElements[n],i,e));var o=e.data.ef||[],l=function(t){for(n=0,a=o.length;n<a;){if(t===o[n].nm||t===o[n].mn||t===o[n].ix)return r[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(t,e,i){var n=e.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var s=propertyGroupFactory(r,i);return n.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r},ShapeExpressionInterface=function(){function t(t,a,u){var f,d=[],m=t?t.length:0;for(f=0;f<m;f+=1)"gr"===t[f].ty?d.push(e(t[f],a[f],u)):"fl"===t[f].ty?d.push(i(t[f],a[f],u)):"st"===t[f].ty?d.push(r(t[f],a[f],u)):"tm"===t[f].ty?d.push(s(t[f],a[f],u)):"tr"===t[f].ty||("el"===t[f].ty?d.push(o(t[f],a[f],u)):"sr"===t[f].ty?d.push(l(t[f],a[f],u)):"sh"===t[f].ty?d.push(ShapePathInterface(t[f],a[f],u)):"rc"===t[f].ty?d.push(h(t[f],a[f],u)):"rd"===t[f].ty?d.push(c(t[f],a[f],u)):"rp"===t[f].ty?d.push(p(t[f],a[f],u)):"gf"===t[f].ty?d.push(n(t[f],a[f],u)):d.push((t[f],a[f],function(){return null})));return d}function e(e,i,n){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,n);var s=function(e,i,n){var r,s=function(t){for(var e=0,i=r.length;e<i;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}return"number"==typeof t?r[t-1]:null};s.propertyGroup=propertyGroupFactory(s,n),r=t(e.it,i.it,s.propertyGroup),s.numProperties=r.length;var o=a(e.it[e.it.length-1],i.it[i.it.length-1],s.propertyGroup);return s.transform=o,s.propertyIndex=e.cix,s._name=e.nm,s}(e,i,r.propertyGroup),o=a(e.it[e.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=s,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return e.nm}}),r.numProperties=e.np,r.propertyIndex=e.ix,r.nm=e.nm,r.mn=e.mn,r}function i(t,e,i){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),n}function n(t,e,i){function n(t){return"Start Point"===t||"start point"===t?n.startPoint:"End Point"===t||"end point"===t?n.endPoint:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),n}function r(t,e,i){var n,r=propertyGroupFactory(h,i),s=propertyGroupFactory(l,r);function a(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,l={};for(n=0;n<o;n+=1)a(n),e.d.dataProps[n].p.setGroupProperty(s);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),e.w.setGroupProperty(PropertyInterface("Stroke Width",r)),h}function s(t,e,i){function n(e){return e===t.e.ix||"End"===e||"end"===e?n.end:e===t.s.ix?n.start:e===t.o.ix?n.offset:null}var r=propertyGroupFactory(n,i);return n.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",r)),e.e.
vendor: 17,794 bytes, line 2
2setGroupProperty(PropertyInterface("End",r)),e.o.setGroupProperty(PropertyInterface("Offset",r)),n.propertyIndex=t.ix,n.propertyGroup=i,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),n.mn=t.mn,n}function a(t,e,i){function n(e){return t.a.ix===e||"Anchor Point"===e?n.anchorPoint:t.o.ix===e||"Opacity"===e?n.opacity:t.p.ix===e||"Position"===e?n.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?n.rotation:t.s.ix===e||"Scale"===e?n.scale:t.sk&&t.sk.ix===e||"Skew"===e?n.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?n.skewAxis:null}var r=propertyGroupFactory(n,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),n.ty="tr",n.mn=t.mn,n.propertyGroup=i,n}function o(t,e,i){function n(e){return t.p.ix===e?n.position:t.s.ix===e?n.size:null}var r=propertyGroupFactory(n,i);n.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",r)),s.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),n.mn=t.mn,n}function l(t,e,i){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.rotation:t.pt.ix===e?n.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?n.outerRadius:t.os.ix===e?n.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?n.innerRoundness:null:n.innerRadius}var r=propertyGroupFactory(n,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",r)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),s.pt.setGroupProperty(PropertyInterface("Points",r)),s.p.setGroupProperty(PropertyInterface("Position",r)),s.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),n.mn=t.mn,n}function h(t,e,i){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?n.size:null}var r=propertyGroupFactory(n,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",r)),s.s.setGroupProperty(PropertyInterface("Size",r)),s.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),n.mn=t.mn,n}function c(t,e,i){function n(e){return t.r.ix===e||"Round Corners 1"===e?n.radius:null}var r=propertyGroupFactory(n,i),s=e;return n.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),n.mn=t.mn,n}function p(t,e,i){function n(e){return t.c.ix===e||"Copies"===e?n.copies:t.o.ix===e||"Offset"===e?n.offset:null}var r=propertyGroupFactory(n,i),s=e;return n.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",r)),s.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),n.mn=t.mn,n}return function(e,i,n){var r;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?n:r[t-1];for(var e=0,i=r.length;e<i;){if(r[e]._name===t)return r[e];e+=1}return null}return s.propertyGroup=propertyGroupFactory(s,(function(){return n})),r=t(e,i,s.propertyGroup),s.numProperties=r.length,s._name="Contents",s}}(),TextExpressionInterface=function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i};function _typeof(t){return _typeof="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},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function n(t){if(i[t])return e=t,"object"===_typeof(i=i[t])?n:i;var r=t.indexOf(e);if(-1!==r){var s=parseInt(t.substr(r+e.length),10);return"object"===_typeof(i=i[s])?n:i}return""}return function(){return e="",i=t.getFootageData(),n}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),n=0;if(e.length){var r;for(r=0;r<e.length;r+=1)n+=Math.pow(i[r]-e[r],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,n=-.001,r=this.getValueAtTime(t),s=this.getValueAtTime(t+n);if(r.length)for(e=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)e[i]=(s[i]-r[i])/n;else e=(s-r)/n;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,r,s,a,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(i?r=c-(n=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),n=c-(r=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-r)/n)%2!=0)return this.getValueAtTime((n-(l-r)%n+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(r/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0),d=Math.floor((l-r)/n);if(this.pv.length){for(a=(o=new Array(p.length)).length,s=0;s<a;s+=1)o[s]=(u[s]-p[s])*d+f[s];return o}return(u-p)*d+f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*((l-c)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,r,s,a,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(l>=c)return this.pv;if(i?r=c+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>h.length-1)&&(e=h.length-1),n=(r=h[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/n)%2==0)return this.getValueAtTime(((c-l)%n+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(r/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(c-l)%n+c)/this.comp.globalData.frameRate,0),d=Math.floor((c-l)/n)+1;if(this.pv.length){for(a=(o=new Array(p.length)).length,s=0;s<a;s+=1)o[s]=f[s]-(u[s]-p[s])*d;return o}return f-(u-p)*d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*(c-l)/.001;return o}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((n-((c-l)%n+c))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var i,n,r=this.comp.renderedFrame/this.comp.globalData.frameRate,s=r-t,a=e>1?(r+t-s)/(e-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(n=this.getValueAtTime(s+o*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=n[l];else i+=n;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function n(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(t);e.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-r*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),h=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var f=this.pz.getValueAtTime(t);e.translate(p*this.px.mult,u*this.py.mult,-f*this.pz.mult)}else e.translate(p*this.px.mult,u*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function r(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var a=s(t,e,i);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=r.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,r,s,o,l){var h=a(n,r,s,o,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=t,h.loopIn=e,h.smooth=i,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===r.a?r.k.length:0,h.propertyIndex=r.ix;var c=0;return 0!==s&&(c=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(n,r,h),h.k&&l.addDynamicProperty(h),h};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(t,e){this.k&&this.getValue();var i,n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0));var r=n._length,s=n[t],a=n.v,o=createSizedArray(r);for(i=0;i<r;i+=1)o[i]="i"===t||"o"===t?[s[i][0]-a[i][0],s[i][1]-a[i][1]]:[s[i][0],s[i][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var n,r=this._segmentsLength,s=r.lengths,a=r.totalLength*t,o=0,l=s.length,h=0;o<l;){if(h+s[o].addedLength>a){var c=o,p=i.c&&o===l-1?0:o+1,u=(a-h)/s[o].addedLength;n=bez.getPointInSegment(i.v[c],i.v[p],i.o[c],i.i[p],u,s[o]);break}h+=s[o].addedLength,o+=1}return n||(n=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),n},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var n=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),s=r[0]-n[0],a=r[1]-n[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===i?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,n,r){var s=c(t,e,i,n,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,n,r=createNS("feMerge");for(r.setAttribute("result",t),n=0;n<e.length;n+=1)(i=createNS("feMergeNode")).setAttribute("in",e[n]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,i,n,r){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",n+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(n,[r,n+"_tint_1",n+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,i,n){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",n),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,n){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(r);var s=createNS("feComponentTransfer");
vendor: 5,079 bytes, line 2
2s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",n),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,i,n){this.filterManager=e;var r=this.filterManager.effectElements,s=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",n),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,i,n,r){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",n+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",n+"_drop_shadow_3"),c.setAttribute("in2",n+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(c);var p=this.createMergeNode(n,[n+"_drop_shadow_4",r]);t.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,n,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,i=0):n=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<n;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=s,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var i,n,r=this.paths.length;for(e=0;e<r;
vendor: 4,562 bytes, line 2
2e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&n.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();s="0 0 0 "+l*a+" ";var h,c=l*(o-a),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/p);for(h=0;h<u;h+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,r=n[0]+" "+i[0]+" "+e[0],s=n[1]+" "+i[1]+" "+e[1],a=n[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,n,r){for(var s,a,o=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),p=0,u=r-n,f=e-t;o<=256;)a=(s=o/256)<=l?f<0?r:n:s>=h?f<0?n:r:n+u*Math.pow((s-t)/f,1/i),c[p]=a,p+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,
vendor: 4,292 bytes, line 2
2n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(n),s=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,n){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var r=createNS("feGaussianBlur");r.setAttribute("result",n),t.appendChild(r),this.feGaussianBlur=r}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var n,r=i.children,s=0,a=r.length;s<a&&r[s]!==t.layerElement;)s+=1;s<=a-2&&(n=r[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),n?i.insertBefore(o,n):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(n);var s=createNS("symbol");s.setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),r.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+i),n.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,n=e.length;i<n;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=3==i?0:e,r=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+r);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,n=e[1].p.v,r=1===e[2].p.v,s=e[3].p.v,a=r?s:e[4].p.v,o=e[5].p.v,l=e[6].p.v,h=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*a,.01*s,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}
vendor: 2,294 bytes, line 2
2,4842:function(t,e,i){!function(e,n){t.exports?t.exports=n(e,i(7158)):e.Unidragger=n(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){function i(){}let n,r,s=i.prototype=Object.create(e.prototype);s.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},"ontouchstart"in t?(n="touchstart",r=["touchmove","touchend","touchcancel"]):t.PointerEvent?(n="pointerdown",r=["pointermove","pointerup","pointercancel"]):(n="mousedown",r=["mousemove","mouseup"]),s.touchActionValue="none",s.bindHandles=function(){this._bindHandles("addEventListener",this.touchActionValue)},s.unbindHandles=function(){this._bindHandles("removeEventListener","")},s._bindHandles=function(e,i){this.handles.forEach((r=>{r[e](n,this),r[e]("click",this),t.PointerEvent&&(r.style.touchAction=i)}))},s.bindActivePointerEvents=function(){r.forEach((e=>{t.addEventListener(e,this)}))},s.unbindActivePointerEvents=function(){r.forEach((e=>{t.removeEventListener(e,this)}))},s.withPointer=function(t,e){e.pointerId===this.pointerIdentifier&&this[t](e,e)},s.withTouch=function(t,e){let i;for(let t of e.changedTouches)t.identifier===this.pointerIdentifier&&(i=t);i&&this[t](e,i)},s.onmousedown=function(t){this.pointerDown(t,t)},s.ontouchstart=function(t){this.pointerDown(t,t.changedTouches[0])},s.onpointerdown=function(t){this.pointerDown(t,t)};const a=["TEXTAREA","INPUT","SELECT","OPTION"],o=["radio","checkbox","button","submit","image","file"];return s.pointerDown=function(t,e){let i=a.includes(t.target.nodeName),n=o.includes(t.target.type),r=!i||n;!this.isPointerDown&&!t.button&&r&&(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this.bindActivePointerEvents(),this.emitEvent("pointerDown",[t,e]))},s.onmousemove=function(t){this.pointerMove(t,t)},s.onpointermove=function(t){this.withPointer("pointerMove",t)},s.ontouchmove=function(t){this.withTouch("pointerMove",t)},s.pointerMove=function(t,e){let i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};this.emitEvent("pointerMove",[t,e,i]),!this.isDragging&&this.hasDragStarted(i)&&this.dragStart(t,e),this.isDragging&&this.dragMove(t,e,i)},s.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3}
2,s.dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent("dragStart",[t,e])},s.dragMove=function(t,e,i){this.emitEvent("dragMove",[t,e,i])},s.onmouseup=function(t){this.pointerUp(t,t)},s.onpointerup=function(t){this.withPointer("pointerUp",t)},s.ontouchend=function(t){this.withTouch("pointerUp",t)},s.pointerUp=function(t,e){this.pointerDone(),this.emitEvent("pointerUp",[t,e]),this.isDragging?this.dragEnd(t,e):this.staticClick(t,e)},s.dragEnd=function(t,e){this.isDragging=!1,setTimeout((()=>delete this.isPreventingClicks)),this.emitEvent("dragEnd",[t,e])},s.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent("pointerDone")},s.onpointercancel=function(t){this.withPointer("pointerCancel",t)},s.ontouchcancel=function(t){this.withTouch("pointerCancel",t)},s.pointerCancel=function(t,e){this.pointerDone(),this.emitEvent("pointerCancel",[t,e])},s.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},s.staticClick=function(t,e){let i="mouseup"===t.type;i&&this.isIgnoringMouseUp||(this.emitEvent("staticClick",[t,e]),i&&(this.isIgnoringMouseUp=!0,setTimeout((()=>{delete this.isIgnoringMouseUp}),400)))},i}))},2732:function(t){t.exports=function(){"use strict";function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.apply(this,arguments)}var e="undefined"!=typeof window,i=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=e&&"IntersectionObserver"in window,r=e&&"classList"in document.createElement("p"),s=e&&window.devicePixelRatio>1,a={elements_selector:".lazy",container:i||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},o=function(e){return t({},a,e)},l=function(t,e){var i,n="LazyLoad::Initialized",r=new t(e);try{i=new CustomEvent(n,{detail:{instance:r}})}catch(t){(i=document.createEvent("CustomEvent")).initCustomEvent(n,!1,!1,{instance:r})}window.dispatchEvent(i)},h="src",c="srcset",p="sizes",u="poster",f="llOriginalAttrs",d="data",m="loading",g="loaded",y="applied",v="error",b="native",x="data-",E="ll-status",_=function(t,e){return t.getAttribute(x+e)},S=function(t){return _(t,E)},P=function(t,e){return function(t,e,i){var n="data-ll-status";null!==i?t.setAttribute(n,i):t.removeAttribute(n)}(t,0,e)},C=function(t){return P(t,null)},w=function(t){return null===S(t)},T=function(t){return S(t)===b},M=[m,g,y,v],A=function(t,e,i,n){t&&(void 0===n?void 0===i?t(e):t(e,i):t(e,i,n))},k=function(t,e){r?t.classList.add(e):t.className+=(t.className?" ":"")+e},D=function(t,e){r?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},I=function(t){return t.llTempImage},F=function(t,e){if(e){var i=e._observer;i&&i.unobserve(t)}},L=function(t,e){t&&(t.loadingCount+=e)},O=function(t,e){t&&(t.toLoadCount=e)},R=function(t){for(var e,i=[],n=0;e=t.children[n];n+=1)"SOURCE"===e.tagName&&i.push(e);return i},B=function(t,e){var i=t.parentNode;
2i&&"PICTURE"===i.tagName&&R(i).forEach(e)},z=function(t,e){R(t).forEach(e)},V=[h],N=[h,u],j=[h,c,p],G=[d],H=function(t){return!!t[f]},W=function(t){return t[f]},q=function(t){return delete t[f]},$=function(t,e){if(!H(t)){var i={};e.forEach((function(e){i[e]=t.getAttribute(e)})),t[f]=i}},X=function(t,e){if(H(t)){var i=W(t);e.forEach((function(e){!function(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}(t,e,i[e])}))}},Y=function(t,e,i){k(t,e.class_applied),P(t,y),i&&(e.unobserve_completed&&F(t,e),A(e.callback_applied,t,i))},U=function(t,e,i){k(t,e.class_loading),P(t,m),i&&(L(i,1),A(e.callback_loading,t,i))},Z=function(t,e,i){i&&t.setAttribute(e,i)},J=function(t,e){Z(t,p,_(t,e.data_sizes)),Z(t,c,_(t,e.data_srcset)),Z(t,h,_(t,e.data_src))},K={IMG:function(t,e){B(t,(function(t){$(t,j),J(t,e)})),$(t,j),J(t,e)},IFRAME:function(t,e){$(t,V),Z(t,h,_(t,e.data_src))},VIDEO:function(t,e){z(t,(function(t){$(t,V),Z(t,h,_(t,e.data_src))})),$(t,N),Z(t,u,_(t,e.data_poster)),Z(t,h,_(t,e.data_src)),t.load()},OBJECT:function(t,e){$(t,G),Z(t,d,_(t,e.data_src))}},Q=["IMG","IFRAME","VIDEO","OBJECT"],tt=function(t,e){!e||function(t){return t.loadingCount>0}(e)||function(t){return t.toLoadCount>0}(e)||A(t.callback_finish,e)},et=function(t,e,i){t.addEventListener(e,i),t.llEvLisnrs[e]=i},it=function(t,e,i){t.removeEventListener(e,i)},nt=function(t){return!!t.llEvLisnrs},rt=function(t){if(nt(t)){var e=t.llEvLisnrs;for(var i in e){var n=e[i];it(t,i,n)}delete t.llEvLisnrs}},st=function(t,e,i){!function(t){delete t.llTempImage}(t),L(i,-1),function(t){t&&(t.toLoadCount-=1)}(i),D(t,e.class_loading),e.unobserve_completed&&F(t,i)},at=function(t,e,i){var n=I(t)||t;nt(n)||function(t,e,i){nt(t)||(t.llEvLisnrs={});var n="VIDEO"===t.tagName?"loadeddata":"load";et(t,n,e),et(t,"error",i)}(n,(function(r){!function(t,e,i,n){var r=T(e);st(e,i,n),k(e,i.class_loaded),P(e,g),A(i.callback_loaded,e,n),r||tt(i,n)}(0,t,e,i),rt(n)}),(function(r){!function(t,e,i,n){var r=T(e);st(e,i,n),k(e,i.class_error),P(e,v),A(i.callback_error,e,n),i.restore_on_error&&X(e,j),r||tt(i,n)}(0,t,e,i),rt(n)}))},ot=function(t,e,i){!function(t){return Q.indexOf(t.tagName)>-1}(t)?function(t,e,i){!function(t){t.llTempImage=document.createElement("IMG")}(t),at(t,e,i),function(t){H(t)||(t[f]={backgroundImage:t.style.backgroundImage})}(t),function(t,e,i){var n=_(t,e.data_bg),r=_(t,e.data_bg_hidpi),a=s&&r?r:n;a&&(t.style.backgroundImage='url("'.concat(a,'")'),I(t).setAttribute(h,a),U(t,e,i))}(t,e,i),function(t,e,i){var n=_(t,e.data_bg_multi),r=_(t,e.data_bg_multi_hidpi),a=s&&r?r:n;a&&(t.style.backgroundImage=a,Y(t,e,i))}(t,e,i),function(t,e,i){var n=_(t,e.data_bg_set);if(n){var r=n.split("|"),s=r.map((function(t){return"image-set(".concat(t,")")}));t.style.backgroundImage=s.join(),""===t.style.backgroundImage&&(s=r.map((function(t){return"-webkit-image-set(".concat(t,")")})),t.style.backgroundImage=s.join()),Y(t,e,i)}}(t,e,i)}(t,e,i):function(t,e,i){at(t,e,i),function(t,e,i){var n=K[t.tagName];n&&(n(t,e),U(t,e,i))}(t,e,i)}(t,e,i)},lt=function(t){t.removeAttribute(h),t.removeAttribute(c),t.removeAttribute(p)},ht=function(t){B(t,(function(t){X(t,j)})),X(t,j)},ct={IMG:ht,IFRAME:function(t){X(t,V)},VIDEO:function(t){z(t,(function(t){X(t,V)})),X(t,N),t.load()},OBJECT:function(t){X(t,G)}},pt=function(t,e){(function(t){var e=ct[t.tagName];e?e(t):function(t){if(H(t)){var e=W(t);t.style.backgroundImage=e.backgroundImage}}(t)})(t),function(t,e){w(t)||T(t)||(D(t,e.class_entered),D(t,e.class_exited),D(t,e.class_applied),D(t,e.class_loading),D(t,e.class_loaded),D(t,e.class_error))}(t,e),C(t),q(t)},ut=["IMG","IFRAME","VIDEO"],ft=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},dt=function(t,e,i){t.forEach((function(t){return function(t){return t.isIntersecting||t.intersectionRatio>0}(t)?function(t,e,i,n){var r=function(t){return M.indexOf(S(t))>=0}(t);P(t,"entered"),k(t,i.class_entered),D(t,i.class_exited),function(t,e,i){e.unobserve_entered&&F(t,i)}(t,i,n),A(i.callback_enter,t,e,n),r||ot(t,i,n)}(t.target,t,e,i):function(t,e,i,n){w(t)||(k(t,i.class_exited),function(t,e,i,n){i.cancel_on_exit&&function(t){return S(t)===m}(t)&&"IMG"===t.tagName&&(rt(t),function(t){B(t,(function(t){lt(t)})),lt(t)}(t),ht(t),D(t,i.class_loading),L(n,-1),C(t),A(i.callback_cancel,t,e,n))}(t,e,i,n),A(i.callback_exit,t,e,n))}(t.target,t,e,i)}))},mt=function(t){return Array.prototype.slice.call(t)},gt=function(t){return t.container.querySelectorAll(t.elements_selector)},yt=function(t){return function(t){return S(t)===v}(t)},vt=function(t,e){return function(t){return mt(t).filter(w)}(t||gt(e))},bt=function(t,i){var r=o(t);this._settings=r,this.loadingCount=0,function(t,e){n&&!ft(t)&&(e._observer=new IntersectionObserver((function(i){dt(i,t,e)}),function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}}(t)))}(r,this),function(t,i){e&&window.addEventListener("online",(function(){!function(t,e){var i;
2(i=gt(t),mt(i).filter(yt)).forEach((function(e){D(e,t.class_error),C(e)})),e.update()}(t,i)}))}(r,this),this.update(i)};return bt.prototype={update:function(t){var e,r,s=this._settings,a=vt(t,s);O(this,a.length),!i&&n?ft(s)?function(t,e,i){t.forEach((function(t){-1!==ut.indexOf(t.tagName)&&function(t,e,i){t.setAttribute("loading","lazy"),at(t,e,i),function(t,e){var i=K[t.tagName];i&&i(t,e)}(t,e),P(t,b)}(t,e,i)})),O(i,0)}(a,s,this):(r=a,function(t){t.disconnect()}(e=this._observer),function(t,e){e.forEach((function(e){t.observe(e)}))}(e,r)):this.loadAll(a)},destroy:function(){this._observer&&this._observer.disconnect(),gt(this._settings).forEach((function(t){q(t)})),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,i=this._settings;vt(t,i).forEach((function(t){F(t,e),ot(t,i,e)}))},restoreAll:function(){var t=this._settings;gt(t).forEach((function(e){pt(e,t)}))}},bt.load=function(t,e){var i=o(e);ot(t,i)},bt.resetStatus=function(t){C(t)},e&&function(t,e){if(e)if(e.length)for(var i,n=0;i=e[n];n+=1)l(t,i);else l(t,e)}(bt,window.lazyLoadOptions),bt}()},5671:function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}i.d(e,{Z:function(){return n}})},3144:function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}i.d(e,{Z:function(){return r}})},1955:function(t,e,i){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)"__proto__"!==n&&(t[n]=i[n])}return t}i.d(e,{Z:function(){return r}});var r=function t(e,i){function r(t,r,s){if("undefined"!=typeof document){"number"==typeof(s=n({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var o in s)s[o]&&(a+="; "+o,!0!==s[o]&&(a+="="+s[o].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+a}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var i=document.cookie?document.cookie.split("; "):[],n={},r=0;r<i.length;r++){var s=i[r].split("="),a=s.slice(1).join("=");try{var o=decodeURIComponent(s[0]);if(o in n||(n[o]=e.read(a,o)),t===o)break}catch(t){}}return t?n[t]:n}},remove:function(t,e){r(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]); 3//# sourceMappingURL=vendors.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.