(()=>{var Y5=Object.create;var{getPrototypeOf:D5,defineProperty:rJ,getOwnPropertyNames:CQ,getOwnPropertyDescriptor:E5}=Object,kQ=Object.prototype.hasOwnProperty;var PQ=(G,$,Z)=>{Z=G!=null?Y5(D5(G)):{};let J=$||!G||!G.__esModule?rJ(Z,"default",{value:G,enumerable:!0}):Z;for(let K of CQ(G))if(!kQ.call(J,K))rJ(J,K,{get:()=>G[K],enumerable:!0});return J},BQ=new WeakMap,Cz=(G)=>{var $=BQ.get(G),Z;if($)return $;if($=rJ({},"__esModule",{value:!0}),G&&typeof G==="object"||typeof G==="function")CQ(G).map((J)=>!kQ.call($,J)&&rJ($,J,{get:()=>G[J],enumerable:!(Z=E5(G,J))||Z.enumerable}));return BQ.set(G,$),$},SQ=(G,$)=>()=>($||G(($={exports:{}}).exports,$),$.exports);var y1=(G,$)=>{for(var Z in $)rJ(G,Z,{get:$[Z],enumerable:!0,configurable:!0,set:(J)=>$[Z]=()=>J})};var lG=SQ((f$,CK)=>{(function($,Z){if(typeof f$==="object"&&typeof CK==="object")CK.exports=Z();else if(typeof define==="function"&&define.amd)define([],Z);else if(typeof f$==="object")f$.rive=Z();else $.rive=Z()})(f$,()=>{return(()=>{var G=[,(K,Q,W)=>{W.r(Q),W.d(Q,{default:()=>z});var H=(()=>{var L=typeof document<"u"?document.currentScript?.src:void 0;return function(q={}){var U,F=q,N,O,Y=new Promise((R,j)=>{N=R,O=j}),M=typeof window=="object",P=typeof importScripts=="function";function k(){function R(t){let p=h;f=j=0,h=new Map,p.forEach((n)=>{try{n(t)}catch(e){console.error(e)}}),this.ua(),y&&y.Oa()}let j=0,f=0,h=new Map,y=null,u=null;this.requestAnimationFrame=function(t){j||=requestAnimationFrame(R.bind(this));let p=++f;return h.set(p,t),p},this.cancelAnimationFrame=function(t){h.delete(t),j&&h.size==0&&(cancelAnimationFrame(j),j=0)},this.Ma=function(t){u&&(document.body.remove(u),u=null),t||(u=document.createElement("div"),u.style.backgroundColor="black",u.style.position="fixed",u.style.right=0,u.style.top=0,u.style.color="white",u.style.padding="4px",u.innerHTML="RIVE FPS",t=function(p){u.innerHTML="RIVE FPS "+p.toFixed(1)},document.body.appendChild(u)),y=new function(){let p=0,n=0;this.Oa=function(){var e=performance.now();n?(++p,e-=n,1000>R,j.has(h)&&clearTimeout(j.get(h)),j.set(h,setTimeout(function(){j.delete(h),j.length==0?f=-1/0:h==f&&(f=Math.max(...j.keys()),console.assert(f{let u=F.ptrToFileAsset(y);return u.isImage?F.ptrToImageAsset(y):u.isFont?F.ptrToFontAsset(y):u.isAudio?F.ptrToAudioAsset(y):u},F.CustomFileAssetLoader=f.extend("CustomFileAssetLoader",{__construct:function({loadContents:y}){this.__parent.__construct.call(this),this.Da=y},loadContents:function(y,u){return y=F.ptrToAsset(y),this.Da(y,u)}}),F.CDNFileAssetLoader=f.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(y){let u=F.ptrToAsset(y);if(y=u.cdnUuid,y==="")return!1;return function(t,p){var n=new XMLHttpRequest;n.responseType="arraybuffer",n.onreadystatechange=function(){n.readyState==4&&n.status==200&&p(n)},n.open("GET",t,!0),n.send(null)}(u.cdnBaseUrl+"/"+y,(t)=>{u.decode(new Uint8Array(t.response))}),!0}}),F.FallbackFileAssetLoader=f.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.ta=[]},addLoader:function(y){this.ta.push(y)},loadContents:function(y,u){for(let t of this.ta)if(t.loadContents(y,u))return!0;return!1}});let h=F.computeAlignment;F.computeAlignment=function(y,u,t,p,n=1){return h.call(this,y,u,t,p,n)}};let B="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),I=new function(){function R(){if(!j){let J1=function(a0,O0,q1){if(O0=$0.createShader(O0),$0.shaderSource(O0,q1),$0.compileShader(O0),q1=$0.getShaderInfoLog(O0),0<(q1||"").length)throw q1;$0.attachShader(a0,O0)};var d=document.createElement("canvas"),U0={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let $0;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if($0=d.getContext("webgl",U0),f=1,!$0)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if($0=d.getContext("webgl2",U0))f=2;else if($0=d.getContext("webgl",U0))f=1;else return console.log("No WebGL support. Image mesh will not be drawn."),!1;if($0=new Proxy($0,{get(a0,O0){if(a0.isContextLost()){if(n||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",O0),n=!0),typeof a0[O0]==="function")return function(){}}else return typeof a0[O0]==="function"?function(...q1){return a0[O0].apply(a0,q1)}:a0[O0]},set(a0,O0,q1){if(a0.isContextLost())n||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+O0),n=!0);else return a0[O0]=q1,!0}}),h=Math.min($0.getParameter($0.MAX_RENDERBUFFER_SIZE),$0.getParameter($0.MAX_TEXTURE_SIZE)),d=$0.createProgram(),J1(d,$0.VERTEX_SHADER,`attribute vec2 vertex; attribute vec2 uv; uniform vec4 mat; uniform vec2 translate; varying vec2 st; void main() { st = uv; gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1); }`),J1(d,$0.FRAGMENT_SHADER,`precision highp float; uniform sampler2D image; varying vec2 st; void main() { gl_FragColor = texture2D(image, st); }`),$0.bindAttribLocation(d,0,"vertex"),$0.bindAttribLocation(d,1,"uv"),$0.linkProgram(d),U0=$0.getProgramInfoLog(d),0<(U0||"").trim().length)throw U0;y=$0.getUniformLocation(d,"mat"),u=$0.getUniformLocation(d,"translate"),$0.useProgram(d),$0.bindBuffer($0.ARRAY_BUFFER,$0.createBuffer()),$0.enableVertexAttribArray(0),$0.enableVertexAttribArray(1),$0.bindBuffer($0.ELEMENT_ARRAY_BUFFER,$0.createBuffer()),$0.uniform1i($0.getUniformLocation(d,"image"),0),$0.pixelStorei($0.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),j=$0}return!0}let j=null,f=0,h=0,y=null,u=null,t=0,p=0,n=!1;R(),this.Wa=function(){return R(),h},this.Ia=function(d){j.deleteTexture&&j.deleteTexture(d)},this.Ha=function(d){if(!R())return null;let U0=j.createTexture();if(!U0)return null;return j.bindTexture(j.TEXTURE_2D,U0),j.texImage2D(j.TEXTURE_2D,0,j.RGBA,j.RGBA,j.UNSIGNED_BYTE,d),j.texParameteri(j.TEXTURE_2D,j.TEXTURE_WRAP_S,j.CLAMP_TO_EDGE),j.texParameteri(j.TEXTURE_2D,j.TEXTURE_WRAP_T,j.CLAMP_TO_EDGE),j.texParameteri(j.TEXTURE_2D,j.TEXTURE_MAG_FILTER,j.LINEAR),f==2?(j.texParameteri(j.TEXTURE_2D,j.TEXTURE_MIN_FILTER,j.LINEAR_MIPMAP_LINEAR),j.generateMipmap(j.TEXTURE_2D)):j.texParameteri(j.TEXTURE_2D,j.TEXTURE_MIN_FILTER,j.LINEAR),U0};let e=new E(8),G0=new E(8),B0=new E(10),x0=new E(10);this.La=function(d,U0,$0,J1,a0){if(R()){var O0=e.push(d),q1=G0.push(U0);if(j.canvas){if(j.canvas.width!=O0||j.canvas.height!=q1)j.canvas.width=O0,j.canvas.height=q1;j.viewport(0,q1-U0,d,U0),j.disable(j.SCISSOR_TEST),j.clearColor(0,0,0,0),j.clear(j.COLOR_BUFFER_BIT),j.enable(j.SCISSOR_TEST),$0.sort((n0,G8)=>G8.xa-n0.xa),O0=B0.push(J1),t!=O0&&(j.bufferData(j.ARRAY_BUFFER,8*O0,j.DYNAMIC_DRAW),t=O0),O0=0;for(var n1 of $0)j.bufferSubData(j.ARRAY_BUFFER,O0,n1.ha),O0+=4*n1.ha.length;console.assert(O0==4*J1);for(var w9 of $0)j.bufferSubData(j.ARRAY_BUFFER,O0,w9.Aa),O0+=4*w9.Aa.length;console.assert(O0==8*J1),O0=x0.push(a0),p!=O0&&(j.bufferData(j.ELEMENT_ARRAY_BUFFER,2*O0,j.DYNAMIC_DRAW),p=O0),n1=0;for(var l8 of $0)j.bufferSubData(j.ELEMENT_ARRAY_BUFFER,n1,l8.indices),n1+=2*l8.indices.length;console.assert(n1==2*a0),l8=0,w9=!0,O0=n1=0;for(let n0 of $0){n0.image.ca!=l8&&(j.bindTexture(j.TEXTURE_2D,n0.image.ba||null),l8=n0.image.ca),n0.Za?(j.scissor(n0.ma,q1-n0.na-n0.sa,n0.kb,n0.sa),w9=!0):w9&&(j.scissor(0,q1-U0,d,U0),w9=!1),$0=2/d;let G8=-2/U0;j.uniform4f(y,n0.M[0]*$0*n0.W,n0.M[1]*G8*n0.X,n0.M[2]*$0*n0.W,n0.M[3]*G8*n0.X),j.uniform2f(u,n0.M[4]*$0*n0.W+$0*(n0.ma-n0.Xa*n0.W)-1,n0.M[5]*G8*n0.X+G8*(n0.na-n0.Ya*n0.X)+1),j.vertexAttribPointer(0,2,j.FLOAT,!1,0,O0),j.vertexAttribPointer(1,2,j.FLOAT,!1,0,O0+4*J1),j.drawElements(j.TRIANGLES,n0.indices.length,j.UNSIGNED_SHORT,n1),O0+=4*n0.ha.length,n1+=2*n0.indices.length}console.assert(O0==4*J1),console.assert(n1==2*a0)}}},this.canvas=function(){return R()&&j.canvas}},C=F.onRuntimeInitialized;F.onRuntimeInitialized=function(){function R(J0){switch(J0){case e.srcOver:return"source-over";case e.screen:return"screen";case e.overlay:return"overlay";case e.darken:return"darken";case e.lighten:return"lighten";case e.colorDodge:return"color-dodge";case e.colorBurn:return"color-burn";case e.hardLight:return"hard-light";case e.softLight:return"soft-light";case e.difference:return"difference";case e.exclusion:return"exclusion";case e.multiply:return"multiply";case e.hue:return"hue";case e.saturation:return"saturation";case e.color:return"color";case e.luminosity:return"luminosity"}}function j(J0){return"rgba("+((16711680&J0)>>>16)+","+((65280&J0)>>>8)+","+((255&J0)>>>0)+","+((4278190080&J0)>>>24)/255+")"}function f(){0J0)throw"restore() called without matching save().";this.F.splice(J0),this.u.push(this.m.restore.bind(this.m))},transform:function(J0,F0,p0,r0,y0,l0){let Z1=this.F,Q1=Z1.length-6;Z1.splice(Q1,6,Z1[Q1]*J0+Z1[Q1+2]*F0,Z1[Q1+1]*J0+Z1[Q1+3]*F0,Z1[Q1]*p0+Z1[Q1+2]*r0,Z1[Q1+1]*p0+Z1[Q1+3]*r0,Z1[Q1]*y0+Z1[Q1+2]*l0+Z1[Q1+4],Z1[Q1+1]*y0+Z1[Q1+3]*l0+Z1[Q1+5]),this.u.push(this.m.transform.bind(this.m,J0,F0,p0,r0,y0,l0))},rotate:function(J0){let F0=Math.sin(J0);J0=Math.cos(J0),this.transform(J0,F0,-F0,J0,0,0)},_drawPath:function(J0,F0){this.u.push(F0.draw.bind(F0,this.m,J0.G,J0.ja===x0?"evenodd":"nonzero"))},_drawRiveImage:function(J0,F0,p0,r0){var y0=J0.Ca;if(y0){var l0=this.m,Z1=R(p0);this.u.push(function(){l0.globalCompositeOperation=Z1,l0.globalAlpha=r0,l0.drawImage(y0,0,0),l0.globalAlpha=1})}},_getMatrix:function(J0){let F0=this.F,p0=F0.length-6;for(let r0=0;6>r0;++r0)J0[r0]=F0[p0+r0]},_drawImageMesh:function(J0,F0,p0,r0,y0,l0,Z1,Q1,J8,r1,c9){F0=this.m.canvas.width;var a1=this.m.canvas.height;let jQ=r1-Q1,RQ=c9-J8;Q1=Math.max(Q1,0),J8=Math.max(J8,0),r1=Math.min(r1,F0),c9=Math.min(c9,a1);let oJ=r1-Q1,nJ=c9-J8;if(console.assert(oJ<=Math.min(jQ,F0)),console.assert(nJ<=Math.min(RQ,a1)),!(0>=oJ||0>=nJ)){r1=oJa1&&(c9*=a1/s8,s8=a1),i8>a1&&(F0*=a1/i8,i8=a1),O0||(O0=new F.DynamicRectanizer(a1),O0.reset(512,512)),a1=O0.addRect(s8,i8),0>a1&&(f(),a0.add(this),a1=O0.addRect(s8,i8),console.assert(0<=a1));var MQ=a1&65535,VQ=a1>>16;q1.push({M:this.F.slice(this.F.length-6),image:J0,ma:MQ,na:VQ,Xa:Q1,Ya:J8,kb:s8,sa:i8,W:c9,X:F0,ha:new Float32Array(y0),Aa:new Float32Array(l0),indices:new Uint16Array(Z1),Za:r1,xa:J0.ca<<1|(r1?1:0)}),n1+=y0.length,w9+=Z1.length;var RJ=this.m,O5=R(p0);this.u.push(function(){RJ.save(),RJ.resetTransform(),RJ.globalCompositeOperation=O5,RJ.globalAlpha=r0;let IQ=I.canvas();IQ&&RJ.drawImage(IQ,MQ,VQ,s8,i8,Q1,J8,oJ,nJ),RJ.restore()})}},_clipPath:function(J0){this.u.push(this.m.clip.bind(this.m,J0.G,J0.ja===x0?"evenodd":"nonzero"))},clear:function(){a0.add(this),this.u.push(this.m.clearRect.bind(this.m,0,0,this.ia.width,this.ia.height))},flush:function(){},translate:function(J0,F0){this.transform(1,0,0,1,J0,F0)}});F.makeRenderer=function(J0){let F0=new l8(J0),p0=F0.m;return new Proxy(F0,{get(r0,y0){if(typeof r0[y0]==="function")return function(...l0){return r0[y0].apply(r0,l0)};if(typeof p0[y0]==="function"){if(-1{p0[y0]=l0}),!0}})},F.decodeImage=function(J0,F0){new U0({P:F0}).decode(J0)},F.renderFactory={makeRenderPaint:function(){return new J1},makeRenderPath:function(){return new $0},makeRenderImage:function(){let J0=G8;return new U0({V:()=>{J0.total++},P:()=>{if(J0.loaded++,J0.loaded===J0.total){let F0=J0.ready;F0&&(F0(),J0.ready=null)}}})}};let n0=F.load,G8=null;F.load=function(J0,F0,p0=!0){let r0=new F.FallbackFileAssetLoader;return F0!==void 0&&r0.addLoader(F0),p0&&(F0=new F.CDNFileAssetLoader,r0.addLoader(F0)),new Promise(function(y0){let l0=null;G8={total:0,loaded:0,ready:function(){y0(l0)}},l0=n0(J0,r0),G8.total==0&&y0(l0)})};let X5=F.RendererWrapper.prototype.align;F.RendererWrapper.prototype.align=function(J0,F0,p0,r0,y0=1){X5.call(this,J0,F0,p0,r0,y0)},h=new k,F.requestAnimationFrame=h.requestAnimationFrame.bind(h),F.cancelAnimationFrame=h.cancelAnimationFrame.bind(h),F.enableFPSCounter=h.Ma.bind(h),F.disableFPSCounter=h.Ja,h.ua=f,F.resolveAnimationFrame=f,F.cleanup=function(){O0&&O0.delete()}};var T=Object.assign({},F),A="./this.program",x="",b,v;if(M||P)P?x=self.location.href:typeof document<"u"&&document.currentScript&&(x=document.currentScript.src),L&&(x=L),x.startsWith("blob:")?x="":x=x.substr(0,x.replace(/[?#].*/,"").lastIndexOf("/")+1),P&&(v=(R)=>{var j=new XMLHttpRequest;return j.open("GET",R,!1),j.responseType="arraybuffer",j.send(null),new Uint8Array(j.response)}),b=(R,j,f)=>{if(v0(R)){var h=new XMLHttpRequest;h.open("GET",R,!0),h.responseType="arraybuffer",h.onload=()=>{h.status==200||h.status==0&&h.response?j(h.response):f()},h.onerror=f,h.send(null)}else fetch(R,{credentials:"same-origin"}).then((y)=>y.ok?y.arrayBuffer():Promise.reject(Error(y.status+" : "+y.url))).then(j,f)};var c=F.print||console.log.bind(console),i=F.printErr||console.error.bind(console);Object.assign(F,T),T=null,F.thisProgram&&(A=F.thisProgram);var l;F.wasmBinary&&(l=F.wasmBinary);var o,r=!1,K0,Z0,_,z0,E0,H0,q0,w0;function D0(){var R=o.buffer;F.HEAP8=K0=new Int8Array(R),F.HEAP16=_=new Int16Array(R),F.HEAPU8=Z0=new Uint8Array(R),F.HEAPU16=z0=new Uint16Array(R),F.HEAP32=E0=new Int32Array(R),F.HEAPU32=H0=new Uint32Array(R),F.HEAPF32=q0=new Float32Array(R),F.HEAPF64=w0=new Float64Array(R)}var b0=[],S0=[],u0=[];function f0(){var R=F.preRun.shift();b0.unshift(R)}var t0=0,X1=null,A0=null;function i0(R){throw F.onAbort?.(R),R="Aborted("+R+")",i(R),r=!0,R=new WebAssembly.RuntimeError(R+". Build with -sASSERTIONS for more info."),O(R),R}var O1=(R)=>R.startsWith("data:application/octet-stream;base64,"),v0=(R)=>R.startsWith("file://"),m;function M1(R){if(R==m&&l)return new Uint8Array(l);if(v)return v(R);throw"both async and sync fetching of the wasm failed"}function H1(R){return l?Promise.resolve().then(()=>M1(R)):new Promise((j,f)=>{b(R,(h)=>j(new Uint8Array(h)),()=>{try{j(M1(R))}catch(h){f(h)}})})}function o1(R,j,f){return H1(R).then((h)=>WebAssembly.instantiate(h,j)).then(f,(h)=>{i(`failed to asynchronously prepare wasm: ${h}`),i0(h)})}function e0(R,j){var f=m;return l||typeof WebAssembly.instantiateStreaming!="function"||O1(f)||v0(f)||typeof fetch!="function"?o1(f,R,j):fetch(f,{credentials:"same-origin"}).then((h)=>WebAssembly.instantiateStreaming(h,R).then(j,function(y){return i(`wasm streaming compile failed: ${y}`),i("falling back to ArrayBuffer instantiation"),o1(f,R,j)}))}var P1=(R)=>{for(;0Object.defineProperty(j,"name",{value:R}),S=[],X=[],D,w=(R)=>{if(!R)throw new D("Cannot use deleted val. handle = "+R);return X[R]},g=(R)=>{switch(R){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let j=S.pop()||X.length;return X[j]=R,X[j+1]=1,j}},s=(R)=>{var j=Error,f=S1(R,function(h){this.name=R,this.message=h,h=Error(h).stack,h!==void 0&&(this.stack=this.toString()+` `+h.replace(/^Error(:[^\n]*)?\n/,""))});return f.prototype=Object.create(j.prototype),f.prototype.constructor=f,f.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},f},a,j0,Q0=(R)=>{for(var j="";Z0[R];)j+=j0[Z0[R++]];return j},N0=[],P0=()=>{for(;N0.length;){var R=N0.pop();R.g.L=!1,R.delete()}},d0,$1={},o0=(R,j)=>{if(j===void 0)throw new D("ptr should not be undefined");for(;R.o;)j=R.R(j),R=R.o;return j},V1={},C0=(R)=>{R=DQ(R);var j=Q0(R);return Y8(R),j},j1=(R,j)=>{var f=V1[R];if(f===void 0)throw R=`${j} has unknown type ${C0(R)}`,new D(R);return f},U1=()=>{},Y1=!1,x1=(R,j,f)=>{if(j===f)return R;if(f.o===void 0)return null;return R=x1(R,j,f.o),R===null?null:f.Ka(R)},J9={},G9=(R,j)=>{return j=o0(R,j),$1[j]},I1,h0=(R,j)=>{if(!j.j||!j.i)throw new I1("makeClassHandle requires ptr and ptrType");if(!!j.v!==!!j.s)throw new I1("Both smartPtrType and smartPtr must be specified");return j.count={value:1},V0(Object.create(R,{g:{value:j,writable:!0}}))},V0=(R)=>{if(typeof FinalizationRegistry>"u")return V0=(j)=>j,R;return Y1=new FinalizationRegistry((j)=>{j=j.g,--j.count.value,j.count.value===0&&(j.s?j.v.C(j.s):j.j.h.C(j.i))}),V0=(j)=>{var f=j.g;return f.s&&Y1.register(j,{g:f},j),j},U1=(j)=>{Y1.unregister(j)},V0(R)},I0={},c0=(R)=>{for(;R.length;){var j=R.pop();R.pop()(j)}};function W0(R){return this.fromWireType(H0[R>>2])}var k0={},R0={},M0=(R,j,f)=>{function h(p){if(p=f(p),p.length!==R.length)throw new I1("Mismatched type converter count");for(var n=0;n{V1.hasOwnProperty(p)?y[n]=V1[p]:(u.push(p),k0.hasOwnProperty(p)||(k0[p]=[]),k0[p].push(()=>{y[n]=V1[p],++t,t===u.length&&h(y)}))}),u.length===0&&h(y)};function _1(R,j,f={}){var h=j.name;if(!R)throw new D(`type "${h}" must have a positive integer typeid pointer`);if(V1.hasOwnProperty(R)){if(f.Ua)return;throw new D(`Cannot register type '${h}' twice`)}V1[R]=j,delete R0[R],k0.hasOwnProperty(R)&&(j=k0[R],delete k0[R],j.forEach((y)=>y()))}function T0(R,j,f={}){if(!("argPackAdvance"in j))throw TypeError("registerType registeredInstance requires argPackAdvance");return _1(R,j,f)}var R1=(R)=>{throw new D(R.g.j.h.name+" instance already deleted")};function h1(){}var D1=(R,j,f)=>{if(R[j].l===void 0){var h=R[j];R[j]=function(...y){if(!R[j].l.hasOwnProperty(y.length))throw new D(`Function '${f}' called with an invalid number of arguments (${y.length}) - expects one of (${R[j].l})!`);return R[j].l[y.length].apply(this,y)},R[j].l=[],R[j].l[h.K]=h}},z1=(R,j,f)=>{if(F.hasOwnProperty(R)){if(f===void 0||F[R].l!==void 0&&F[R].l[f]!==void 0)throw new D(`Cannot register public name '${R}' twice`);if(D1(F,R,R),F.hasOwnProperty(f))throw new D(`Cannot register multiple overloads of a function with the same number of arguments (${f})!`);F[R].l[f]=j}else F[R]=j,f!==void 0&&(F[R].mb=f)},W1=(R)=>{if(R===void 0)return"_unknown";R=R.replace(/[^a-zA-Z0-9_]/g,"$");var j=R.charCodeAt(0);return 48<=j&&57>=j?`_${R}`:R};function A9(R,j,f,h,y,u,t,p){this.name=R,this.constructor=j,this.B=f,this.C=h,this.o=y,this.Pa=u,this.R=t,this.Ka=p,this.va=[]}var L1=(R,j,f)=>{for(;j!==f;){if(!j.R)throw new D(`Expected null or instance of ${f.name}, got an instance of ${j.name}`);R=j.R(R),j=j.o}return R};function F9(R,j){if(j===null){if(this.da)throw new D(`null is not a valid ${this.name}`);return 0}if(!j.g)throw new D(`Cannot pass "${iZ(j)}" as a ${this.name}`);if(!j.g.i)throw new D(`Cannot pass deleted object as a pointer of type ${this.name}`);return L1(j.g.i,j.g.j.h,this.h)}function _9(R,j){if(j===null){if(this.da)throw new D(`null is not a valid ${this.name}`);if(this.U){var f=this.ea();return R!==null&&R.push(this.C,f),f}return 0}if(!j||!j.g)throw new D(`Cannot pass "${iZ(j)}" as a ${this.name}`);if(!j.g.i)throw new D(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.T&&j.g.j.T)throw new D(`Cannot convert argument of type ${j.g.v?j.g.v.name:j.g.j.name} to parameter type ${this.name}`);if(f=L1(j.g.i,j.g.j.h,this.h),this.U){if(j.g.s===void 0)throw new D("Passing raw pointer to smart pointer is illegal");switch(this.fb){case 0:if(j.g.v===this)f=j.g.s;else throw new D(`Cannot convert argument of type ${j.g.v?j.g.v.name:j.g.j.name} to parameter type ${this.name}`);break;case 1:f=j.g.s;break;case 2:if(j.g.v===this)f=j.g.s;else{var h=j.clone();f=this.ab(f,g(()=>h.delete())),R!==null&&R.push(this.C,f)}break;default:throw new D("Unsupporting sharing policy")}}return f}function c1(R,j){if(j===null){if(this.da)throw new D(`null is not a valid ${this.name}`);return 0}if(!j.g)throw new D(`Cannot pass "${iZ(j)}" as a ${this.name}`);if(!j.g.i)throw new D(`Cannot pass deleted object as a pointer of type ${this.name}`);if(j.g.j.T)throw new D(`Cannot convert argument of type ${j.g.j.name} to parameter type ${this.name}`);return L1(j.g.i,j.g.j.h,this.h)}function A1(R,j,f,h,y,u,t,p,n,e,G0){this.name=R,this.h=j,this.da=f,this.T=h,this.U=y,this.$a=u,this.fb=t,this.wa=p,this.ea=n,this.ab=e,this.C=G0,y||j.o!==void 0?this.toWireType=_9:(this.toWireType=h?F9:c1,this.A=null)}var p1=(R,j,f)=>{if(!F.hasOwnProperty(R))throw new I1("Replacing nonexistent public symbol");F[R].l!==void 0&&f!==void 0?F[R].l[f]=j:(F[R]=j,F[R].K=f)},g9=[],p8,l1=(R)=>{var j=g9[R];return j||(R>=g9.length&&(g9.length=R+1),g9[R]=j=p8.get(R)),j},b1=(R,j,f=[])=>{return R.includes("j")?(R=R.replace(/p/g,"i"),j=(0,F["dynCall_"+R])(j,...f)):j=l1(j)(...f),j},u9=(R,j)=>(...f)=>b1(R,j,f),g1=(R,j)=>{R=Q0(R);var f=R.includes("j")?u9(R,j):l1(j);if(typeof f!="function")throw new D(`unknown function pointer with signature ${R}: ${j}`);return f},iJ,N9=(R,j)=>{function f(u){y[u]||V1[u]||(R0[u]?R0[u].forEach(f):(h.push(u),y[u]=!0))}var h=[],y={};throw j.forEach(f),new iJ(`${R}: `+h.map(C0).join([", "]))};function m9(R){for(var j=1;ju)throw new D("argTypes array size mismatch! Must at least get return value and 'this' types!");var t=j[1]!==null&&f!==null,p=m9(j),n=j[0].name!=="void",e=u-2,G0=Array(e),B0=[],x0=[];return S1(R,function(...d){if(d.length!==e)throw new D(`function ${R} called with ${d.length} arguments, expected ${e}`);if(x0.length=0,B0.length=t?2:1,B0[0]=y,t){var U0=j[1].toWireType(x0,this);B0[1]=U0}for(var $0=0;$0{for(var f=[],h=0;h>2]);return f},d9=(R)=>{R=R.trim();let j=R.indexOf("(");return j!==-1?R.substr(0,j):R},WQ=(R,j,f)=>{if(!(R instanceof Object))throw new D(`${f} with invalid "this": ${R}`);if(!(R instanceof j.h.constructor))throw new D(`${f} incompatible with "this" of type ${R.constructor.name}`);if(!R.g.i)throw new D(`cannot call emscripten binding method ${f} on deleted object`);return L1(R.g.i,R.g.j.h,j.h)},sZ=(R)=>{9{var j=w(R);return sZ(R),j},toWireType:(R,j)=>g(j),argPackAdvance:8,readValueFromPointer:W0,A:null},tW=(R,j,f)=>{switch(j){case 1:return f?function(h){return this.fromWireType(K0[h])}:function(h){return this.fromWireType(Z0[h])};case 2:return f?function(h){return this.fromWireType(_[h>>1])}:function(h){return this.fromWireType(z0[h>>1])};case 4:return f?function(h){return this.fromWireType(E0[h>>2])}:function(h){return this.fromWireType(H0[h>>2])};default:throw TypeError(`invalid integer width (${j}): ${R}`)}},iZ=(R)=>{if(R===null)return"null";var j=typeof R;return j==="object"||j==="array"||j==="function"?R.toString():""+R},eW=(R,j)=>{switch(j){case 4:return function(f){return this.fromWireType(q0[f>>2])};case 8:return function(f){return this.fromWireType(w0[f>>3])};default:throw TypeError(`invalid float width (${j}): ${R}`)}},J5=(R,j,f)=>{switch(j){case 1:return f?(h)=>K0[h]:(h)=>Z0[h];case 2:return f?(h)=>_[h>>1]:(h)=>z0[h>>1];case 4:return f?(h)=>E0[h>>2]:(h)=>H0[h>>2];default:throw TypeError(`invalid integer width (${j}): ${R}`)}},HQ=(R,j,f,h)=>{if(0=u){var t=R.charCodeAt(++y);u=65536+((u&1023)<<10)|t&1023}if(127>=u){if(f>=h)break;j[f++]=u}else{if(2047>=u){if(f+1>=h)break;j[f++]=192|u>>6}else{if(65535>=u){if(f+2>=h)break;j[f++]=224|u>>12}else{if(f+3>=h)break;j[f++]=240|u>>18,j[f++]=128|u>>12&63}j[f++]=128|u>>6&63}j[f++]=128|u&63}}j[f]=0}},UQ=(R)=>{for(var j=0,f=0;f=h?j++:2047>=h?j+=2:55296<=h&&57343>=h?(j+=4,++f):j+=3}return j},zQ=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,u$=(R,j,f)=>{var h=j+f;for(f=j;R[f]&&!(f>=h);)++f;if(16y?h+=String.fromCharCode(y):(y-=65536,h+=String.fromCharCode(55296|y>>10,56320|y&1023))}}else h+=String.fromCharCode(y)}return h},LQ=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,$5=(R,j)=>{var f=R>>1;for(var h=f+j/2;!(f>=h)&&z0[f];)++f;if(f<<=1,32=j/2);++h){var y=_[R+2*h>>1];if(y==0)break;f+=String.fromCharCode(y)}return f},Z5=(R,j,f)=>{if(f??=2147483647,2>f)return 0;f-=2;var h=j;f=f<2*R.length?f/2:R.length;for(var y=0;y>1]=R.charCodeAt(y),j+=2;return _[j>>1]=0,j-h},K5=(R)=>2*R.length,Q5=(R,j)=>{for(var f=0,h="";!(f>=j/4);){var y=E0[R+4*f>>2];if(y==0)break;++f,65536<=y?(y-=65536,h+=String.fromCharCode(55296|y>>10,56320|y&1023)):h+=String.fromCharCode(y)}return h},G5=(R,j,f)=>{if(f??=2147483647,4>f)return 0;var h=j;f=h+f-4;for(var y=0;y=u){var t=R.charCodeAt(++y);u=65536+((u&1023)<<10)|t&1023}if(E0[j>>2]=u,j+=4,j+4>f)break}return E0[j>>2]=0,j-h},W5=(R)=>{for(var j=0,f=0;f=h&&++f,j+=4}return j},qQ=(R,j,f)=>{var h=[];return R=R.toWireType(h,f),h.length&&(H0[j>>2]=g(h)),R},H5={},oZ=(R)=>{var j=H5[R];return j===void 0?Q0(R):j},nZ=[],U5=(R)=>{var j=nZ.length;return nZ.push(R),j},z5=(R,j)=>{for(var f=Array(R),h=0;h>2],"parameter "+h);return f},L5=Reflect.construct,rZ={},FQ=()=>{if(!aZ){var R={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:A||"./this.program"},j;for(j in rZ)rZ[j]===void 0?delete R[j]:R[j]=rZ[j];var f=[];for(j in R)f.push(`${j}=${R[j]}`);aZ=f}return aZ},aZ,q5=[null,[],[]],m$=(R)=>R%4===0&&(R%100!==0||R%400===0),NQ=[31,29,31,30,31,30,31,31,30,31,30,31],XQ=[31,28,31,30,31,30,31,31,30,31,30,31];function F5(R){var j=Array(UQ(R)+1);return HQ(R,j,0,j.length),j}var N5=(R,j,f,h)=>{function y(d,U0,$0){for(d=typeof d=="number"?d.toString():d||"";d.lengtha0?-1:0J1-d.getDate())U0-=J1-d.getDate()+1,d.setDate(1),11>$0?d.setMonth($0+1):(d.setMonth(0),d.setFullYear(d.getFullYear()+1));else{d.setDate(d.getDate()+U0);break}}return $0=new Date(d.getFullYear()+1,0,4),U0=p(new Date(d.getFullYear(),0,4)),$0=p($0),0>=t(U0,d)?0>=t($0,d)?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var e=H0[h+40>>2];h={ib:E0[h>>2],hb:E0[h+4>>2],Y:E0[h+8>>2],ga:E0[h+12>>2],Z:E0[h+16>>2],J:E0[h+20>>2],D:E0[h+24>>2],I:E0[h+28>>2],nb:E0[h+32>>2],gb:E0[h+36>>2],jb:e?e?u$(Z0,e):"":""},f=f?u$(Z0,f):"",e={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var G0 in e)f=f.replace(new RegExp(G0,"g"),e[G0]);var B0="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),x0="January February March April May June July August September October November December".split(" ");e={"%a":(d)=>B0[d.D].substring(0,3),"%A":(d)=>B0[d.D],"%b":(d)=>x0[d.Z].substring(0,3),"%B":(d)=>x0[d.Z],"%C":(d)=>u((d.J+1900)/100|0,2),"%d":(d)=>u(d.ga,2),"%e":(d)=>y(d.ga,2," "),"%g":(d)=>n(d).toString().substring(2),"%G":n,"%H":(d)=>u(d.Y,2),"%I":(d)=>{return d=d.Y,d==0?d=12:12{for(var U0=0,$0=0;$0<=d.Z-1;U0+=(m$(d.J+1900)?NQ:XQ)[$0++]);return u(d.ga+U0,3)},"%m":(d)=>u(d.Z+1,2),"%M":(d)=>u(d.hb,2),"%n":()=>` `,"%p":(d)=>0<=d.Y&&12>d.Y?"AM":"PM","%S":(d)=>u(d.ib,2),"%t":()=>"\t","%u":(d)=>d.D||7,"%U":(d)=>u(Math.floor((d.I+7-d.D)/7),2),"%V":(d)=>{var U0=Math.floor((d.I+7-(d.D+6)%7)/7);if(2>=(d.D+371-d.I-2)%7&&U0++,U0)U0==53&&($0=(d.D+371-d.I)%7,$0==4||$0==3&&m$(d.J)||(U0=1));else{U0=52;var $0=(d.D+7-d.I-1)%7;($0==4||$0==5&&m$(d.J%400-1))&&U0++}return u(U0,2)},"%w":(d)=>d.D,"%W":(d)=>u(Math.floor((d.I+7-(d.D+6)%7)/7),2),"%y":(d)=>(d.J+1900).toString().substring(2),"%Y":(d)=>d.J+1900,"%z":(d)=>{d=d.gb;var U0=0<=d;return d=Math.abs(d)/60,(U0?"+":"-")+String("0000"+(d/60*100+d%60)).slice(-4)},"%Z":(d)=>d.jb,"%%":()=>"%"},f=f.replace(/%%/g,"\x00\x00");for(G0 in e)f.includes(G0)&&(f=f.replace(new RegExp(G0,"g"),e[G0](h)));if(f=f.replace(/\0\0/g,"%"),G0=F5(f),G0.length>j)return 0;return K0.set(G0,R),G0.length-1};D=F.BindingError=class extends Error{constructor(R){super(R);this.name="BindingError"}},X.push(0,1,void 0,1,null,1,!0,1,!1,1),F.count_emval_handles=()=>X.length/2-5-S.length,a=F.PureVirtualError=s("PureVirtualError");for(var OQ=Array(256),d$=0;256>d$;++d$)OQ[d$]=String.fromCharCode(d$);j0=OQ,F.getInheritedInstanceCount=()=>Object.keys($1).length,F.getLiveInheritedInstances=()=>{var R=[],j;for(j in $1)$1.hasOwnProperty(j)&&R.push($1[j]);return R},F.flushPendingDeletes=P0,F.setDelayFunction=(R)=>{d0=R,N0.length&&d0&&d0(P0)},I1=F.InternalError=class extends Error{constructor(R){super(R);this.name="InternalError"}},Object.assign(h1.prototype,{isAliasOf:function(R){if(!(this instanceof h1&&R instanceof h1))return!1;var j=this.g.j.h,f=this.g.i;R.g=R.g;var h=R.g.j.h;for(R=R.g.i;j.o;)f=j.R(f),j=j.o;for(;h.o;)R=h.R(R),h=h.o;return j===h&&f===R},clone:function(){if(this.g.i||R1(this),this.g.N)return this.g.count.value+=1,this;var R=V0,j=Object,f=j.create,h=Object.getPrototypeOf(this),y=this.g;return R=R(f.call(j,h,{g:{value:{count:y.count,L:y.L,N:y.N,i:y.i,j:y.j,s:y.s,v:y.v}}})),R.g.count.value+=1,R.g.L=!1,R},["delete"](){if(this.g.i||R1(this),this.g.L&&!this.g.N)throw new D("Object already scheduled for deletion");U1(this);var R=this.g;--R.count.value,R.count.value===0&&(R.s?R.v.C(R.s):R.j.h.C(R.i)),this.g.N||(this.g.s=void 0,this.g.i=void 0)},isDeleted:function(){return!this.g.i},deleteLater:function(){if(this.g.i||R1(this),this.g.L&&!this.g.N)throw new D("Object already scheduled for deletion");return N0.push(this),N0.length===1&&d0&&d0(P0),this.g.L=!0,this}}),Object.assign(A1.prototype,{Qa(R){return this.wa&&(R=this.wa(R)),R},oa(R){this.C?.(R)},argPackAdvance:8,readValueFromPointer:W0,fromWireType:function(R){function j(){return this.U?h0(this.h.B,{j:this.$a,i:f,v:this,s:R}):h0(this.h.B,{j:this,i:R})}var f=this.Qa(R);if(!f)return this.oa(R),null;var h=G9(this.h,f);if(h!==void 0){if(h.g.count.value===0)return h.g.i=f,h.g.s=R,h.clone();return h=h.clone(),this.oa(R),h}if(h=this.h.Pa(f),h=J9[h],!h)return j.call(this);h=this.T?h.Ga:h.pointerType;var y=x1(f,this.h,h.h);return y===null?j.call(this):this.U?h0(h.h.B,{j:h,i:y,v:this,s:R}):h0(h.h.B,{j:h,i:y})}}),iJ=F.UnboundTypeError=s("UnboundTypeError");var YQ={_abort_js:()=>{i0("")},_embind_create_inheriting_constructor:(R,j,f)=>{R=Q0(R),j=j1(j,"wrapper"),f=w(f);var h=j.h,y=h.B,u=h.o.B,t=h.o.constructor;return R=S1(R,function(...p){h.o.va.forEach(function(n){if(this[n]===u[n])throw new a(`Pure virtual function ${n} must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,"__parent",{value:y}),this.__construct(...p)}),y.__construct=function(...p){if(this===y)throw new D("Pass correct 'this' to __construct");p=t.implement(this,...p),U1(p);var n=p.g;if(p.notifyOnDestruction(),n.N=!0,Object.defineProperties(this,{g:{value:n}}),V0(this),p=n.i,p=o0(h,p),$1.hasOwnProperty(p))throw new D(`Tried to register registered instance: ${p}`);$1[p]=this},y.__destruct=function(){if(this===y)throw new D("Pass correct 'this' to __destruct");U1(this);var p=this.g.i;if(p=o0(h,p),$1.hasOwnProperty(p))delete $1[p];else throw new D(`Tried to unregister unregistered instance: ${p}`)},R.prototype=Object.create(y),Object.assign(R.prototype,f),g(R)},_embind_finalize_value_object:(R)=>{var j=I0[R];delete I0[R];var{ea:f,C:h,ra:y}=j,u=y.map((t)=>t.Ta).concat(y.map((t)=>t.cb));M0([R],u,(t)=>{var p={};return y.forEach((n,e)=>{var G0=t[e],B0=n.Ra,x0=n.Sa,d=t[e+y.length],U0=n.bb,$0=n.eb;p[n.Na]={read:(J1)=>G0.fromWireType(B0(x0,J1)),write:(J1,a0)=>{var O0=[];U0($0,J1,d.toWireType(O0,a0)),c0(O0)}}}),[{name:j.name,fromWireType:(n)=>{var e={},G0;for(G0 in p)e[G0]=p[G0].read(n);return h(n),e},toWireType:(n,e)=>{for(var G0 in p)if(!(G0 in e))throw TypeError(`Missing field: "${G0}"`);var B0=f();for(G0 in p)p[G0].write(B0,e[G0]);return n!==null&&n.push(h,B0),B0},argPackAdvance:8,readValueFromPointer:W0,A:h}]})},_embind_register_bigint:()=>{},_embind_register_bool:(R,j,f,h)=>{j=Q0(j),T0(R,{name:j,fromWireType:function(y){return!!y},toWireType:function(y,u){return u?f:h},argPackAdvance:8,readValueFromPointer:function(y){return this.fromWireType(Z0[y])},A:null})},_embind_register_class:(R,j,f,h,y,u,t,p,n,e,G0,B0,x0)=>{G0=Q0(G0),u=g1(y,u),p&&=g1(t,p),e&&=g1(n,e),x0=g1(B0,x0);var d=W1(G0);z1(d,function(){N9(`Cannot construct ${G0} due to unbound types`,[h])}),M0([R,j,f],h?[h]:[],(U0)=>{if(U0=U0[0],h)var $0=U0.h,J1=$0.B;else J1=h1.prototype;U0=S1(G0,function(...n1){if(Object.getPrototypeOf(this)!==a0)throw new D("Use 'new' to construct "+G0);if(O0.H===void 0)throw new D(G0+" has no accessible constructor");var w9=O0.H[n1.length];if(w9===void 0)throw new D(`Tried to invoke ctor of ${G0} with invalid number of parameters (${n1.length}) - expected (${Object.keys(O0.H).toString()}) parameters instead!`);return w9.apply(this,n1)});var a0=Object.create(J1,{constructor:{value:U0}});U0.prototype=a0;var O0=new A9(G0,U0,a0,x0,$0,u,p,e);if(O0.o){var q1;(q1=O0.o).S??(q1.S=[]),O0.o.S.push(O0)}return $0=new A1(G0,O0,!0,!1,!1),q1=new A1(G0+"*",O0,!1,!1,!1),J1=new A1(G0+" const*",O0,!1,!0,!1),J9[R]={pointerType:q1,Ga:J1},p1(d,U0),[$0,q1,J1]})},_embind_register_class_class_function:(R,j,f,h,y,u,t)=>{var p=O8(f,h);j=Q0(j),j=d9(j),u=g1(y,u),M0([],[R],(n)=>{function e(){N9(`Cannot call ${G0} due to unbound types`,p)}n=n[0];var G0=`${n.name}.${j}`;j.startsWith("@@")&&(j=Symbol[j.substring(2)]);var B0=n.h.constructor;return B0[j]===void 0?(e.K=f-1,B0[j]=e):(D1(B0,j,G0),B0[j].l[f-1]=e),M0([],p,(x0)=>{if(x0=Q8(G0,[x0[0],null].concat(x0.slice(1)),null,u,t),B0[j].l===void 0?(x0.K=f-1,B0[j]=x0):B0[j].l[f-1]=x0,n.h.S)for(let d of n.h.S)d.constructor.hasOwnProperty(j)||(d.constructor[j]=x0);return[]}),[]})},_embind_register_class_class_property:(R,j,f,h,y,u,t,p)=>{j=Q0(j),u=g1(y,u),M0([],[R],(n)=>{n=n[0];var e=`${n.name}.${j}`,G0={get(){N9(`Cannot access ${e} due to unbound types`,[f])},enumerable:!0,configurable:!0};return G0.set=p?()=>{N9(`Cannot access ${e} due to unbound types`,[f])}:()=>{throw new D(`${e} is a read-only property`)},Object.defineProperty(n.h.constructor,j,G0),M0([],[f],(B0)=>{B0=B0[0];var x0={get(){return B0.fromWireType(u(h))},enumerable:!0};return p&&(p=g1(t,p),x0.set=(d)=>{var U0=[];p(h,B0.toWireType(U0,d)),c0(U0)}),Object.defineProperty(n.h.constructor,j,x0),[]}),[]})},_embind_register_class_constructor:(R,j,f,h,y,u)=>{var t=O8(j,f);y=g1(h,y),M0([],[R],(p)=>{p=p[0];var n=`constructor ${p.name}`;if(p.h.H===void 0&&(p.h.H=[]),p.h.H[j-1]!==void 0)throw new D(`Cannot register multiple constructors with identical number of parameters (${j-1}) for class '${p.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return p.h.H[j-1]=()=>{N9(`Cannot construct ${p.name} due to unbound types`,t)},M0([],t,(e)=>{return e.splice(1,0,null),p.h.H[j-1]=Q8(n,e,null,y,u),[]}),[]})},_embind_register_class_function:(R,j,f,h,y,u,t,p)=>{var n=O8(f,h);j=Q0(j),j=d9(j),u=g1(y,u),M0([],[R],(e)=>{function G0(){N9(`Cannot call ${B0} due to unbound types`,n)}e=e[0];var B0=`${e.name}.${j}`;j.startsWith("@@")&&(j=Symbol[j.substring(2)]),p&&e.h.va.push(j);var x0=e.h.B,d=x0[j];return d===void 0||d.l===void 0&&d.className!==e.name&&d.K===f-2?(G0.K=f-2,G0.className=e.name,x0[j]=G0):(D1(x0,j,B0),x0[j].l[f-2]=G0),M0([],n,(U0)=>{return U0=Q8(B0,U0,e,u,t),x0[j].l===void 0?(U0.K=f-2,x0[j]=U0):x0[j].l[f-2]=U0,[]}),[]})},_embind_register_class_property:(R,j,f,h,y,u,t,p,n,e)=>{j=Q0(j),y=g1(h,y),M0([],[R],(G0)=>{G0=G0[0];var B0=`${G0.name}.${j}`,x0={get(){N9(`Cannot access ${B0} due to unbound types`,[f,t])},enumerable:!0,configurable:!0};return x0.set=n?()=>N9(`Cannot access ${B0} due to unbound types`,[f,t]):()=>{throw new D(B0+" is a read-only property")},Object.defineProperty(G0.h.B,j,x0),M0([],n?[f,t]:[f],(d)=>{var U0=d[0],$0={get(){var a0=WQ(this,G0,B0+" getter");return U0.fromWireType(y(u,a0))},enumerable:!0};if(n){n=g1(p,n);var J1=d[1];$0.set=function(a0){var O0=WQ(this,G0,B0+" setter"),q1=[];n(e,O0,J1.toWireType(q1,a0)),c0(q1)}}return Object.defineProperty(G0.h.B,j,$0),[]}),[]})},_embind_register_emval:(R)=>T0(R,aW),_embind_register_enum:(R,j,f,h)=>{function y(){}j=Q0(j),y.values={},T0(R,{name:j,constructor:y,fromWireType:function(u){return this.constructor.values[u]},toWireType:(u,t)=>t.value,argPackAdvance:8,readValueFromPointer:tW(j,f,h),A:null}),z1(j,y)},_embind_register_enum_value:(R,j,f)=>{var h=j1(R,"enum");j=Q0(j),R=h.constructor,h=Object.create(h.constructor.prototype,{value:{value:f},constructor:{value:S1(`${h.name}_${j}`,function(){})}}),R.values[f]=h,R[j]=h},_embind_register_float:(R,j,f)=>{j=Q0(j),T0(R,{name:j,fromWireType:(h)=>h,toWireType:(h,y)=>y,argPackAdvance:8,readValueFromPointer:eW(j,f),A:null})},_embind_register_function:(R,j,f,h,y,u)=>{var t=O8(j,f);R=Q0(R),R=d9(R),y=g1(h,y),z1(R,function(){N9(`Cannot call ${R} due to unbound types`,t)},j-1),M0([],t,(p)=>{return p1(R,Q8(R,[p[0],null].concat(p.slice(1)),null,y,u),j-1),[]})},_embind_register_integer:(R,j,f,h,y)=>{if(j=Q0(j),y===-1&&(y=4294967295),y=(p)=>p,h===0){var u=32-8*f;y=(p)=>p<>>u}var t=j.includes("unsigned")?function(p,n){return n>>>0}:function(p,n){return n};T0(R,{name:j,fromWireType:y,toWireType:t,argPackAdvance:8,readValueFromPointer:J5(j,f,h!==0),A:null})},_embind_register_memory_view:(R,j,f)=>{function h(u){return new y(K0.buffer,H0[u+4>>2],H0[u>>2])}var y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][j];f=Q0(f),T0(R,{name:f,fromWireType:h,argPackAdvance:8,readValueFromPointer:h},{Ua:!0})},_embind_register_std_string:(R,j)=>{j=Q0(j);var f=j==="std::string";T0(R,{name:j,fromWireType:function(h){var y=H0[h>>2],u=h+4;if(f)for(var t=u,p=0;p<=y;++p){var n=u+p;if(p==y||Z0[n]==0){if(t=t?u$(Z0,t,n-t):"",e===void 0)var e=t;else e+=String.fromCharCode(0),e+=t;t=n+1}}else{e=Array(y);for(p=0;p>2]=t,f&&u)HQ(y,Z0,n,t+1);else if(u)for(u=0;u{if(f=Q0(f),j===2)var h=$5,y=Z5,u=K5,t=(p)=>z0[p>>1];else j===4&&(h=Q5,y=G5,u=W5,t=(p)=>H0[p>>2]);T0(R,{name:f,fromWireType:(p)=>{for(var n=H0[p>>2],e,G0=p+4,B0=0;B0<=n;++B0){var x0=p+4+B0*j;if(B0==n||t(x0)==0)G0=h(G0,x0-G0),e===void 0?e=G0:(e+=String.fromCharCode(0),e+=G0),G0=x0+j}return Y8(p),e},toWireType:(p,n)=>{if(typeof n!="string")throw new D(`Cannot pass non-string to C++ string type ${f}`);var e=u(n),G0=tZ(4+e+j);return H0[G0>>2]=e/j,y(n,G0+4,e+j),p!==null&&p.push(Y8,G0),G0},argPackAdvance:8,readValueFromPointer:W0,A(p){Y8(p)}})},_embind_register_value_object:(R,j,f,h,y,u)=>{I0[R]={name:Q0(j),ea:g1(f,h),C:g1(y,u),ra:[]}},_embind_register_value_object_field:(R,j,f,h,y,u,t,p,n,e)=>{I0[R].ra.push({Na:Q0(j),Ta:f,Ra:g1(h,y),Sa:u,cb:t,bb:g1(p,n),eb:e})},_embind_register_void:(R,j)=>{j=Q0(j),T0(R,{lb:!0,name:j,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},_emscripten_get_now_is_monotonic:()=>1,_emscripten_memcpy_js:(R,j,f)=>Z0.copyWithin(R,j,j+f),_emval_as:(R,j,f)=>{return R=w(R),j=j1(j,"emval::as"),qQ(j,f,R)},_emval_call_method:(R,j,f,h,y)=>{return R=nZ[R],j=w(j),f=oZ(f),R(j,j[f],h,y)},_emval_decref:sZ,_emval_get_method_caller:(R,j,f)=>{var h=z5(R,j),y=h.shift();R--;var u=Array(R);return j=`methodCaller<(${h.map((t)=>t.name).join(", ")}) => ${y.name}>`,U5(S1(j,(t,p,n,e)=>{for(var G0=0,B0=0;B0{return R=oZ(R),g(F[R])},_emval_get_property:(R,j)=>{return R=w(R),j=w(j),g(R[j])},_emval_incref:(R)=>{9g([]),_emval_new_cstring:(R)=>g(oZ(R)),_emval_new_object:()=>g({}),_emval_run_destructors:(R)=>{var j=w(R);c0(j),sZ(R)},_emval_set_property:(R,j,f)=>{R=w(R),j=w(j),f=w(f),R[j]=f},_emval_take_value:(R,j)=>{return R=j1(R,"_emval_take_value"),R=R.readValueFromPointer(j),g(R)},emscripten_date_now:()=>Date.now(),emscripten_get_now:()=>performance.now(),emscripten_resize_heap:(R)=>{var j=Z0.length;if(R>>>=0,2147483648=f;f*=2){var h=j*(1+0.2/f);h=Math.min(h,R+100663296);var y=Math;h=Math.max(R,h);J:{y=(y.min.call(y,2147483648,h+(65536-h%65536)%65536)-o.buffer.byteLength+65535)/65536;try{o.grow(y),D0();var u=1;break J}catch(t){}u=void 0}if(u)return!0}return!1},environ_get:(R,j)=>{var f=0;return FQ().forEach((h,y)=>{var u=j+f;y=H0[R+4*y>>2]=u;for(u=0;u{var f=FQ();H0[R>>2]=f.length;var h=0;return f.forEach((y)=>h+=y.length+1),H0[j>>2]=h,0},fd_close:()=>52,fd_seek:function(){return 70},fd_write:(R,j,f,h)=>{for(var y=0,u=0;u>2],p=H0[j+4>>2];j+=8;for(var n=0;n>2]=y,0},strftime_l:(R,j,f,h)=>N5(R,j,f,h)},T9=function(){function R(f){return T9=f.exports,o=T9.memory,D0(),p8=T9.__indirect_function_table,S0.unshift(T9.__wasm_call_ctors),t0--,F.monitorRunDependencies?.(t0),t0==0&&(X1!==null&&(clearInterval(X1),X1=null),A0&&(f=A0,A0=null,f())),T9}var j={env:YQ,wasi_snapshot_preview1:YQ};if(t0++,F.monitorRunDependencies?.(t0),F.instantiateWasm)try{return F.instantiateWasm(j,R)}catch(f){i(`Module.instantiateWasm callback failed with error: ${f}`),O(f)}return m||=O1("canvas_advanced.wasm")?"canvas_advanced.wasm":F.locateFile?F.locateFile("canvas_advanced.wasm",x):x+"canvas_advanced.wasm",e0(j,function(f){R(f.instance)}).catch(O),{}}(),Y8=(R)=>(Y8=T9.free)(R),tZ=(R)=>(tZ=T9.malloc)(R),DQ=(R)=>(DQ=T9.__getTypeName)(R);F.dynCall_jiji=(R,j,f,h,y)=>(F.dynCall_jiji=T9.dynCall_jiji)(R,j,f,h,y),F.dynCall_viijii=(R,j,f,h,y,u,t)=>(F.dynCall_viijii=T9.dynCall_viijii)(R,j,f,h,y,u,t),F.dynCall_iiiiij=(R,j,f,h,y,u,t)=>(F.dynCall_iiiiij=T9.dynCall_iiiiij)(R,j,f,h,y,u,t),F.dynCall_iiiiijj=(R,j,f,h,y,u,t,p,n)=>(F.dynCall_iiiiijj=T9.dynCall_iiiiijj)(R,j,f,h,y,u,t,p,n),F.dynCall_iiiiiijj=(R,j,f,h,y,u,t,p,n,e)=>(F.dynCall_iiiiiijj=T9.dynCall_iiiiiijj)(R,j,f,h,y,u,t,p,n,e);var c$;A0=function R(){c$||EQ(),c$||(A0=R)};function EQ(){function R(){if(!c$&&(c$=!0,F.calledRun=!0,!r)){if(P1(S0),N(F),F.onRuntimeInitialized)F.onRuntimeInitialized();if(F.postRun)for(typeof F.postRun=="function"&&(F.postRun=[F.postRun]);F.postRun.length;){var j=F.postRun.shift();u0.unshift(j)}P1(u0)}}if(!(0{K.exports=JSON.parse(`{"name":"@rive-app/canvas-lite","version":"2.32.1","description":"A lite version of Rive's canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso (https://rive.app)","Maxwell Talbot (https://rive.app)","Arthur Vivian (https://rive.app)","Umberto Sonnino (https://rive.app)","Matthew Sullivan (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(K,Q,W)=>{W.r(Q),W.d(Q,{Animation:()=>H.Animation});var H=W(4)},(K,Q,W)=>{W.r(Q),W.d(Q,{Animation:()=>H});var H=function(){function z(L,q,U,F){this.animation=L,this.artboard=q,this.playing=F,this.loopCount=0,this.scrubTo=null,this.instance=new U.LinearAnimationInstance(L,q)}return Object.defineProperty(z.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"time",{get:function(){return this.instance.time},set:function(L){this.instance.time=L},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),z.prototype.advance=function(L){if(this.scrubTo===null)this.instance.advance(L);else this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null},z.prototype.apply=function(L){this.instance.apply(L)},z.prototype.cleanup=function(){this.instance.delete()},z}()},(K,Q,W)=>{W.r(Q),W.d(Q,{AudioAssetWrapper:()=>L.AudioAssetWrapper,AudioWrapper:()=>L.AudioWrapper,BLANK_URL:()=>z.BLANK_URL,CustomFileAssetLoaderWrapper:()=>L.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>L.FileAssetWrapper,FileFinalizer:()=>L.FileFinalizer,FontAssetWrapper:()=>L.FontAssetWrapper,FontWrapper:()=>L.FontWrapper,ImageAssetWrapper:()=>L.ImageAssetWrapper,ImageWrapper:()=>L.ImageWrapper,createFinalization:()=>L.createFinalization,finalizationRegistry:()=>L.finalizationRegistry,registerTouchInteractions:()=>H.registerTouchInteractions,sanitizeUrl:()=>z.sanitizeUrl});var H=W(6),z=W(7),L=W(8)},(K,Q,W)=>{W.r(Q),W.d(Q,{registerTouchInteractions:()=>L});var H=void 0,z=function(q,U,F){var N,O,Y=[];if(["touchstart","touchmove"].indexOf(q.type)>-1&&((N=q.changedTouches)===null||N===void 0?void 0:N.length)){if(!U)q.preventDefault();var M=0,P=F?q.changedTouches.length:1;while(M"u")return null;var b=null,v=!1,c=function(l){if(v&&l instanceof MouseEvent){if(l.type=="mouseup")v=!1;return}v=V&&l.type==="touchend"&&b==="touchstart",b=l.type;var o=l.currentTarget.getBoundingClientRect(),r=z(l,V,T),K0=M.computeAlignment(P,k,{minX:0,minY:0,maxX:o.width,maxY:o.height},F.bounds,x),Z0=new M.Mat2D;switch(K0.invert(Z0),r.forEach(function(v0){var{clientX:m,clientY:M1}=v0;if(!m&&!M1)return;var H1=m-o.left,o1=M1-o.top,e0=new M.Vec2D(H1,o1),P1=M.mapXY(Z0,e0),S1=P1.x(),S=P1.y();v0.transformedX=S1,v0.transformedY=S,P1.delete(),e0.delete()}),Z0.delete(),K0.delete(),l.type){case"mouseout":var _=function(v0){if(I)r.forEach(function(m){v0.pointerExit(m.transformedX,m.transformedY,m.identifier)});else r.forEach(function(m){v0.pointerMove(m.transformedX,m.transformedY,m.identifier)})};for(var z0=0,E0=O;z0{W.r(Q),W.d(Q,{BLANK_URL:()=>N,sanitizeUrl:()=>M});var H=/^([^\w]*)(javascript|data|vbscript)/im,z=/&#(\w+)(^\w|;)?/g,L=/&(newline|tab);/gi,q=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,U=/^.+(:|:)/gim,F=[".","/"],N="about:blank";function O(P){return F.indexOf(P[0])>-1}function Y(P){var k=P.replace(q,"");return k.replace(z,function(E,V){return String.fromCharCode(V)})}function M(P){if(!P)return N;var k=Y(P).replace(L,"").replace(q,"").trim();if(!k)return N;if(O(k))return k;var E=k.match(U);if(!E)return k;var V=E[0];if(H.test(V))return N;return k}},(K,Q,W)=>{W.r(Q),W.d(Q,{AudioAssetWrapper:()=>P,AudioWrapper:()=>F,CustomFileAssetLoaderWrapper:()=>O,FileAssetWrapper:()=>Y,FileFinalizer:()=>z,FontAssetWrapper:()=>k,FontWrapper:()=>N,ImageAssetWrapper:()=>M,ImageWrapper:()=>U,createFinalization:()=>I,finalizationRegistry:()=>B});var H=function(){var C=function(T,A){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var v in b)if(Object.prototype.hasOwnProperty.call(b,v))x[v]=b[v]},C(T,A)};return function(T,A){if(typeof A!=="function"&&A!==null)throw TypeError("Class extends value "+String(A)+" is not a constructor or null");C(T,A);function x(){this.constructor=T}T.prototype=A===null?Object.create(A):(x.prototype=A.prototype,new x)}}(),z=function(){function C(T){this.selfUnref=!1,this._file=T}return C.prototype.unref=function(){if(this._file)this._file.unref()},C}(),L=function(){function C(T){this._finalizableObject=T}return C.prototype.unref=function(){this._finalizableObject.unref()},C}(),q=function(){function C(){this.selfUnref=!1}return C.prototype.unref=function(){},C}(),U=function(C){H(T,C);function T(A){var x=C.call(this)||this;return x._nativeImage=A,x}return Object.defineProperty(T.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),T.prototype.unref=function(){if(this.selfUnref)this._nativeImage.unref()},T}(q),F=function(C){H(T,C);function T(A){var x=C.call(this)||this;return x._nativeAudio=A,x}return Object.defineProperty(T.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),T.prototype.unref=function(){if(this.selfUnref)this._nativeAudio.unref()},T}(q),N=function(C){H(T,C);function T(A){var x=C.call(this)||this;return x._nativeFont=A,x}return Object.defineProperty(T.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),T.prototype.unref=function(){if(this.selfUnref)this._nativeFont.unref()},T}(q),O=function(){function C(T,A){this._assetLoaderCallback=A,this.assetLoader=new T.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return C.prototype.loadContents=function(T,A){var x;if(T.isImage)x=new M(T);else if(T.isAudio)x=new P(T);else if(T.isFont)x=new k(T);return this._assetLoaderCallback(x,A)},C}(),Y=function(){function C(T){this._nativeFileAsset=T}return C.prototype.decode=function(T){this._nativeFileAsset.decode(T)},Object.defineProperty(C.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),C}(),M=function(C){H(T,C);function T(){return C!==null&&C.apply(this,arguments)||this}return T.prototype.setRenderImage=function(A){this._nativeFileAsset.setRenderImage(A.nativeImage)},T}(Y),P=function(C){H(T,C);function T(){return C!==null&&C.apply(this,arguments)||this}return T.prototype.setAudioSource=function(A){this._nativeFileAsset.setAudioSource(A.nativeAudio)},T}(Y),k=function(C){H(T,C);function T(){return C!==null&&C.apply(this,arguments)||this}return T.prototype.setFont=function(A){this._nativeFileAsset.setFont(A.nativeFont)},T}(Y),E=function(){function C(T){}return C.prototype.register=function(T){T.selfUnref=!0},C.prototype.unregister=function(T){},C}(),V=typeof FinalizationRegistry<"u"?FinalizationRegistry:E,B=new V(function(C){C===null||C===void 0||C.unref()}),I=function(C,T){var A=new L(T);B.register(C,A)}}],$={};function Z(K){var Q=$[K];if(Q!==void 0)return Q.exports;var W=$[K]={exports:{}};return G[K](W,W.exports,Z),W.exports}(()=>{Z.d=(K,Q)=>{for(var W in Q)if(Z.o(Q,W)&&!Z.o(K,W))Object.defineProperty(K,W,{enumerable:!0,get:Q[W]})}})(),(()=>{Z.o=(K,Q)=>Object.prototype.hasOwnProperty.call(K,Q)})(),(()=>{Z.r=(K)=>{if(typeof Symbol<"u"&&Symbol.toStringTag)Object.defineProperty(K,Symbol.toStringTag,{value:"Module"});Object.defineProperty(K,"__esModule",{value:!0})}})();var J={};return(()=>{Z.r(J),Z.d(J,{Alignment:()=>M,DataEnum:()=>w0,EventType:()=>b,Fit:()=>Y,Layout:()=>P,LoopType:()=>v,Rive:()=>H0,RiveEventType:()=>B,RiveFile:()=>E0,RuntimeLoader:()=>k,StateMachineInput:()=>V,StateMachineInputType:()=>E,Testing:()=>o1,ViewModel:()=>q0,ViewModelInstance:()=>b0,ViewModelInstanceArtboard:()=>m,ViewModelInstanceAssetImage:()=>v0,ViewModelInstanceBoolean:()=>t0,ViewModelInstanceColor:()=>O1,ViewModelInstanceEnum:()=>A0,ViewModelInstanceList:()=>i0,ViewModelInstanceNumber:()=>f0,ViewModelInstanceString:()=>u0,ViewModelInstanceTrigger:()=>X1,ViewModelInstanceValue:()=>S0,decodeAudio:()=>e0,decodeFont:()=>S1,decodeImage:()=>P1});var K=Z(1),Q=Z(2),W=Z(3),H=Z(5),z=function(){var S=function(X,D){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,g){w.__proto__=g}||function(w,g){for(var s in g)if(Object.prototype.hasOwnProperty.call(g,s))w[s]=g[s]},S(X,D)};return function(X,D){if(typeof D!=="function"&&D!==null)throw TypeError("Class extends value "+String(D)+" is not a constructor or null");S(X,D);function w(){this.constructor=X}X.prototype=D===null?Object.create(D):(w.prototype=D.prototype,new w)}}(),L=function(){return L=Object.assign||function(S){for(var X,D=1,w=arguments.length;D0&&s[s.length-1]))&&(N0[0]===6||N0[0]===2)){D=0;continue}if(N0[0]===3&&(!s||N0[1]>s[0]&&N0[1]0)(D=S.callBackQueue.shift())===null||D===void 0||D(S.runtime)}).catch(function(X){var D={message:(X===null||X===void 0?void 0:X.message)||"Unknown error",type:(X===null||X===void 0?void 0:X.name)||"Error",wasmError:X instanceof WebAssembly.CompileError||X instanceof WebAssembly.RuntimeError,originalError:X};console.debug("Rive WASM load error details:",D);var w="https://cdn.jsdelivr.net/npm/".concat(Q.name,"@").concat(Q.version,"/rive_fallback.wasm");if(S.wasmURL.toLowerCase()!==w)console.warn("Failed to load WASM from ".concat(S.wasmURL," (").concat(D.message,"), trying jsdelivr as a backup")),S.setWasmUrl(w),S.loadRuntime();else{var g=["Could not load Rive WASM file from ".concat(S.wasmURL," or ").concat(w,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible",` Error details:`,"- Type: ".concat(D.type),"- Message: ".concat(D.message),"- WebAssembly-specific error: ".concat(D.wasmError),` To resolve, you may need to:`,"1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join(` `);console.error(g)}})},S.getInstance=function(X){if(!S.isLoading)S.isLoading=!0,S.loadRuntime();if(!S.runtime)S.callBackQueue.push(X);else X(S.runtime)},S.awaitInstance=function(){return new Promise(function(X){return S.getInstance(function(D){return X(D)})})},S.setWasmUrl=function(X){S.wasmURL=X},S.getWasmUrl=function(){return S.wasmURL},S.isLoading=!1,S.callBackQueue=[],S.wasmURL="https://unpkg.com/".concat(Q.name,"@").concat(Q.version,"/rive.wasm"),S}(),E;(function(S){S[S.Number=56]="Number",S[S.Trigger=58]="Trigger",S[S.Boolean=59]="Boolean"})(E||(E={}));var V=function(){function S(X,D){this.type=X,this.runtimeInput=D}return Object.defineProperty(S.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(X){this.runtimeInput.value=X},enumerable:!1,configurable:!0}),S.prototype.fire=function(){if(this.type===E.Trigger)this.runtimeInput.fire()},S.prototype.delete=function(){this.runtimeInput=null},S}(),B;(function(S){S[S.General=128]="General",S[S.OpenUrl=131]="OpenUrl"})(B||(B={}));var I=function(){function S(X){this.isBindableArtboard=!1,this.isBindableArtboard=X}return S}(),C=function(S){z(X,S);function X(D,w){var g=S.call(this,!1)||this;return g.nativeArtboard=D,g.file=w,g}return X}(I),T=function(S){z(X,S);function X(D){var w=S.call(this,!0)||this;return w.selfUnref=!1,w.nativeArtboard=D,w}return X.prototype.destroy=function(){if(this.selfUnref)this.nativeArtboard.unref()},X}(I),A=function(){function S(X,D,w,g){this.stateMachine=X,this.playing=w,this.artboard=g,this.inputs=[],this.instance=new D.StateMachineInstance(X,g),this.initInputs(D)}return Object.defineProperty(S.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statesChanged",{get:function(){var X=[];for(var D=0;D=0||Q0>=0)if(j0>=0)this.animations[j0].playing=D;else this.stateMachines[Q0].playing=D;else{var N0=this.artboard.animationByName(X[a]);if(N0){var P0=new W.Animation(N0,this.artboard,this.runtime,D);P0.advance(0),P0.apply(1),this.animations.push(P0)}else{var d0=this.artboard.stateMachineByName(X[a]);if(d0){var $1=new A(d0,this.runtime,D,this.artboard);this.stateMachines.push($1)}}}}}if(w)if(D)this.eventManager.fire({type:b.Play,data:this.playing});else this.eventManager.fire({type:b.Pause,data:this.paused});return D?this.playing:this.paused},S.prototype.initLinearAnimations=function(X,D){var w=this.animations.map(function(Q0){return Q0.name});for(var g=0;g=0)this.animations[s].playing=D;else{var a=this.artboard.animationByName(X[g]);if(a){var j0=new W.Animation(a,this.artboard,this.runtime,D);j0.advance(0),j0.apply(1),this.animations.push(j0)}else console.error("Animation with name ".concat(X[g]," not found."))}}},S.prototype.initStateMachines=function(X,D){var w=this.stateMachines.map(function(Q0){return Q0.name});for(var g=0;g=0)this.stateMachines[s].playing=D;else{var a=this.artboard.stateMachineByName(X[g]);if(a){var j0=new A(a,this.runtime,D,this.artboard);this.stateMachines.push(j0)}else console.warn("State Machine with name ".concat(X[g]," not found.")),this.initLinearAnimations([X[g]],D)}}},S.prototype.play=function(X){return this.add(X,!0)},S.prototype.advanceIfPaused=function(){this.stateMachines.forEach(function(X){if(!X.playing)X.advanceAndApply(0)})},S.prototype.pause=function(X){return this.add(X,!1)},S.prototype.scrub=function(X,D){var w=this.animations.filter(function(g){return X.includes(g.name)});return w.forEach(function(g){return g.scrubTo=D}),w.map(function(g){return g.name})},Object.defineProperty(S.prototype,"playing",{get:function(){return this.animations.filter(function(X){return X.playing}).map(function(X){return X.name}).concat(this.stateMachines.filter(function(X){return X.playing}).map(function(X){return X.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"paused",{get:function(){return this.animations.filter(function(X){return!X.playing}).map(function(X){return X.name}).concat(this.stateMachines.filter(function(X){return!X.playing}).map(function(X){return X.name}))},enumerable:!1,configurable:!0}),S.prototype.stop=function(X){var D=this;X=H1(X);var w=[];if(X.length===0)w=this.animations.map(function(a){return a.name}).concat(this.stateMachines.map(function(a){return a.name})),this.animations.forEach(function(a){return a.cleanup()}),this.stateMachines.forEach(function(a){return a.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var g=this.animations.filter(function(a){return X.includes(a.name)});g.forEach(function(a){a.cleanup(),D.animations.splice(D.animations.indexOf(a),1)});var s=this.stateMachines.filter(function(a){return X.includes(a.name)});s.forEach(function(a){a.cleanup(),D.stateMachines.splice(D.stateMachines.indexOf(a),1)}),w=g.map(function(a){return a.name}).concat(s.map(function(a){return a.name}))}return this.eventManager.fire({type:b.Stop,data:w}),w},Object.defineProperty(S.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(X,D){return X||D.playing},!1)||this.stateMachines.reduce(function(X,D){return X||D.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),S.prototype.atLeastOne=function(X,D){if(D===void 0)D=!0;var w;if(this.animations.length===0&&this.stateMachines.length===0){if(this.artboard.animationCount()>0)this.add([w=this.artboard.animationByIndex(0).name],X,D);else if(this.artboard.stateMachineCount()>0)this.add([w=this.artboard.stateMachineByIndex(0).name],X,D)}return w},S.prototype.handleLooping=function(){for(var X=0,D=this.animations.filter(function(g){return g.playing});X1)this.eventManager.fire({type:b.Loop,data:{animation:w.name,type:v.PingPong}}),w.loopCount=0}},S.prototype.handleStateChanges=function(){var X=[];for(var D=0,w=this.stateMachines.filter(function(s){return s.playing});D0)this.eventManager.fire({type:b.StateChange,data:X})},S.prototype.handleAdvancing=function(X){this.eventManager.fire({type:b.Advance,data:X})},S}(),b;(function(S){S.Load="load",S.LoadError="loaderror",S.Play="play",S.Pause="pause",S.Stop="stop",S.Loop="loop",S.Draw="draw",S.Advance="advance",S.StateChange="statechange",S.RiveEvent="riveevent",S.AudioStatusChange="audiostatuschange"})(b||(b={}));var v;(function(S){S.OneShot="oneshot",S.Loop="loop",S.PingPong="pingpong"})(v||(v={}));var c=function(){function S(X){if(X===void 0)X=[];this.listeners=X}return S.prototype.getListeners=function(X){return this.listeners.filter(function(D){return D.type===X})},S.prototype.add=function(X){if(!this.listeners.includes(X))this.listeners.push(X)},S.prototype.remove=function(X){for(var D=0;D0){var X=this.queue.shift();if(X===null||X===void 0?void 0:X.action)X.action();if(X===null||X===void 0?void 0:X.event)this.eventManager.fire(X.event)}},S}(),l;(function(S){S[S.AVAILABLE=0]="AVAILABLE",S[S.UNAVAILABLE=1]="UNAVAILABLE"})(l||(l={}));var o=function(S){z(X,S);function X(){var D=S!==null&&S.apply(this,arguments)||this;return D._started=!1,D._enabled=!1,D._status=l.UNAVAILABLE,D}return X.prototype.delay=function(D){return q(this,void 0,void 0,function(){return U(this,function(w){return[2,new Promise(function(g){return setTimeout(g,D)})]})})},X.prototype.timeout=function(){return q(this,void 0,void 0,function(){return U(this,function(D){return[2,new Promise(function(w,g){return setTimeout(g,50)})]})})},X.prototype.reportToListeners=function(){this.fire({type:b.AudioStatusChange}),this.removeAll()},X.prototype.enableAudio=function(){return q(this,void 0,void 0,function(){return U(this,function(D){if(!this._enabled)this._enabled=!0,this._status=l.AVAILABLE,this.reportToListeners();return[2]})})},X.prototype.testAudio=function(){return q(this,void 0,void 0,function(){var D;return U(this,function(w){switch(w.label){case 0:if(!(this._status===l.UNAVAILABLE&&this._audioContext!==null))return[3,4];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return w.sent(),this.enableAudio(),[3,4];case 3:return D=w.sent(),[3,4];case 4:return[2]}})})},X.prototype._establishAudio=function(){return q(this,void 0,void 0,function(){return U(this,function(D){switch(D.label){case 0:if(this._started)return[3,5];if(this._started=!0,!(typeof window>"u"))return[3,1];return this.enableAudio(),[3,5];case 1:this._audioContext=new AudioContext,this.listenForUserAction(),D.label=2;case 2:if(this._status!==l.UNAVAILABLE)return[3,5];return[4,this.testAudio()];case 3:return D.sent(),[4,this.delay(1000)];case 4:return D.sent(),[3,2];case 5:return[2]}})})},X.prototype.listenForUserAction=function(){var D=this,w=function(){return q(D,void 0,void 0,function(){return U(this,function(g){return this.enableAudio(),[2]})})};document.addEventListener("pointerdown",w,{once:!0})},X.prototype.establishAudio=function(){return q(this,void 0,void 0,function(){return U(this,function(D){return this._establishAudio(),[2]})})},Object.defineProperty(X.prototype,"systemVolume",{get:function(){if(this._status===l.UNAVAILABLE)return this.testAudio(),0;return 1},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),X}(c),r=new o,K0=function(){function S(){}return S.prototype.observe=function(){},S.prototype.unobserve=function(){},S.prototype.disconnect=function(){},S}(),Z0=globalThis.ResizeObserver||K0,_=function(){function S(){var X=this;this._elementsMap=new Map,this._onObservedEntry=function(D){var w=X._elementsMap.get(D.target);if(w!==null)w.onResize(D.target.clientWidth==0||D.target.clientHeight==0);else X._resizeObserver.unobserve(D.target)},this._onObserved=function(D){D.forEach(X._onObservedEntry)},this._resizeObserver=new Z0(this._onObserved)}return S.prototype.add=function(X,D){var w={onResize:D,element:X};return this._elementsMap.set(X,w),this._resizeObserver.observe(X),w},S.prototype.remove=function(X){this._resizeObserver.unobserve(X.element),this._elementsMap.delete(X.element)},S}(),z0=new _,E0=function(){function S(X){if(this.enableRiveAssetCDN=!0,this.referenceCount=0,this.destroyed=!1,this.selfUnref=!1,this.bindableArtboards=[],this.src=X.src,this.buffer=X.buffer,X.assetLoader)this.assetLoader=X.assetLoader;if(this.enableRiveAssetCDN=typeof X.enableRiveAssetCDN=="boolean"?X.enableRiveAssetCDN:!0,this.eventManager=new c,X.onLoad)this.on(b.Load,X.onLoad);if(X.onLoadError)this.on(b.LoadError,X.onLoadError)}return S.prototype.releaseFile=function(){var X;if(this.selfUnref)(X=this.file)===null||X===void 0||X.unref();this.file=null},S.prototype.releaseBindableArtboards=function(){this.bindableArtboards.forEach(function(X){return X.destroy()})},S.prototype.initData=function(){return q(this,void 0,void 0,function(){var X,D,w,g,s;return U(this,function(a){switch(a.label){case 0:if(!this.src)return[3,2];return X=this,[4,M1(this.src)];case 1:X.buffer=a.sent(),a.label=2;case 2:if(this.destroyed)return[2];if(this.assetLoader)w=new H.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader),D=w.assetLoader;return g=this,[4,this.runtime.load(new Uint8Array(this.buffer),D,this.enableRiveAssetCDN)];case 3:if(g.file=a.sent(),s=new H.FileFinalizer(this.file),H.finalizationRegistry.register(this,s),this.destroyed)return this.releaseFile(),[2];if(this.file!==null)this.eventManager.fire({type:b.Load,data:this});else this.fireLoadError(S.fileLoadErrorMessage);return[2]}})})},S.prototype.init=function(){return q(this,void 0,void 0,function(){var X,D;return U(this,function(w){switch(w.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(S.missingErrorMessage),[2];w.label=1;case 1:return w.trys.push([1,4,,5]),X=this,[4,k.awaitInstance()];case 2:if(X.runtime=w.sent(),this.destroyed)return[2];return[4,this.initData()];case 3:return w.sent(),[3,5];case 4:return D=w.sent(),this.fireLoadError(D instanceof Error?D.message:S.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},S.prototype.fireLoadError=function(X){throw this.eventManager.fire({type:b.LoadError,data:X}),Error(X)},S.prototype.on=function(X,D){this.eventManager.add({type:X,callback:D})},S.prototype.off=function(X,D){this.eventManager.remove({type:X,callback:D})},S.prototype.cleanup=function(){if(this.referenceCount-=1,this.referenceCount<=0)this.removeAllRiveEventListeners(),this.releaseFile(),this.releaseBindableArtboards(),this.destroyed=!0},S.prototype.removeAllRiveEventListeners=function(X){this.eventManager.removeAll(X)},S.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},S.prototype.destroyIfUnused=function(){if(this.referenceCount<=0)this.cleanup()},S.prototype.createBindableArtboard=function(X){if(X!=null){var D=new T(X);return(0,H.createFinalization)(D,D.nativeArtboard),this.bindableArtboards.push(D),D}return null},S.prototype.getArtboard=function(X){var D=this.file.artboardByName(X);if(D!=null)return new C(D,this)},S.prototype.getBindableArtboard=function(X){var D=this.file.bindableArtboardByName(X);return this.createBindableArtboard(D)},S.prototype.getDefaultBindableArtboard=function(){var X=this.file.bindableArtboardDefault();return this.createBindableArtboard(X)},S.prototype.internalBindableArtboardFromArtboard=function(X){var D=this.file.internalBindableArtboardFromArtboard(X);return this.createBindableArtboard(D)},S.missingErrorMessage="Rive source file or data buffer required",S.fileLoadErrorMessage="The file failed to load",S}(),H0=function(){function S(X){var D=this,w;if(this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.dispatchPointerExit=!0,this.enableMultiTouch=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._audioEventListener=null,this._boundDraw=null,this._viewModelInstance=null,this._dataEnums=null,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(g){var s=D._hasZeroSize!==g;if(D._hasZeroSize=g,!g){if(s)D.resizeDrawingSurfaceToCanvas()}else if(!D._layout.maxX||!D._layout.maxY)D.resizeToCanvas()},this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),this.canvas=X.canvas,X.canvas.constructor===HTMLCanvasElement)this._observed=z0.add(this.canvas,this.onCanvasResize);if(this.src=X.src,this.buffer=X.buffer,this.riveFile=X.riveFile,this.layout=(w=X.layout)!==null&&w!==void 0?w:new P,this.shouldDisableRiveListeners=!!X.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!X.isTouchScrollEnabled,this.automaticallyHandleEvents=!!X.automaticallyHandleEvents,this.dispatchPointerExit=X.dispatchPointerExit===!1?X.dispatchPointerExit:this.dispatchPointerExit,this.enableMultiTouch=!!X.enableMultiTouch,this.enableRiveAssetCDN=X.enableRiveAssetCDN===void 0?!0:X.enableRiveAssetCDN,this.eventManager=new c,X.onLoad)this.on(b.Load,X.onLoad);if(X.onLoadError)this.on(b.LoadError,X.onLoadError);if(X.onPlay)this.on(b.Play,X.onPlay);if(X.onPause)this.on(b.Pause,X.onPause);if(X.onStop)this.on(b.Stop,X.onStop);if(X.onLoop)this.on(b.Loop,X.onLoop);if(X.onStateChange)this.on(b.StateChange,X.onStateChange);if(X.onAdvance)this.on(b.Advance,X.onAdvance);if(X.onload&&!X.onLoad)this.on(b.Load,X.onload);if(X.onloaderror&&!X.onLoadError)this.on(b.LoadError,X.onloaderror);if(X.onplay&&!X.onPlay)this.on(b.Play,X.onplay);if(X.onpause&&!X.onPause)this.on(b.Pause,X.onpause);if(X.onstop&&!X.onStop)this.on(b.Stop,X.onstop);if(X.onloop&&!X.onLoop)this.on(b.Loop,X.onloop);if(X.onstatechange&&!X.onStateChange)this.on(b.StateChange,X.onstatechange);if(X.assetLoader)this.assetLoader=X.assetLoader;this.taskQueue=new i(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:X.autoplay,autoBind:X.autoBind,animations:X.animations,stateMachines:X.stateMachines,artboard:X.artboard,useOffscreenRenderer:X.useOffscreenRenderer})}return Object.defineProperty(S.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),S.new=function(X){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new S(X)},S.prototype.onSystemAudioChanged=function(){this.volume=this._volume},S.prototype.init=function(X){var D=this,w=X.src,g=X.buffer,s=X.riveFile,a=X.animations,j0=X.stateMachines,Q0=X.artboard,N0=X.autoplay,P0=N0===void 0?!1:N0,d0=X.useOffscreenRenderer,$1=d0===void 0?!1:d0,o0=X.autoBind,V1=o0===void 0?!1:o0;if(this.destroyed)return;if(this.src=w,this.buffer=g,this.riveFile=s,!this.src&&!this.buffer&&!this.riveFile)throw new N(S.missingErrorMessage);var C0=H1(a),j1=H1(j0);this.loaded=!1,this.readyForPlaying=!1,k.awaitInstance().then(function(U1){if(D.destroyed)return;if(D.runtime=U1,D.removeRiveListeners(),D.deleteRiveRenderer(),D.renderer=D.runtime.makeRenderer(D.canvas,$1),!(D.canvas.width||D.canvas.height))D.resizeDrawingSurfaceToCanvas();D.initData(Q0,C0,j1,P0,V1).then(function(Y1){if(Y1)return D.setupRiveListeners()}).catch(function(Y1){console.error(Y1)})}).catch(function(U1){console.error(U1)})},S.prototype.setupRiveListeners=function(X){var D=this;if(this.eventCleanup)this.eventCleanup();if(!this.shouldDisableRiveListeners){var w=(this.animator.stateMachines||[]).filter(function(j0){return j0.playing&&D.runtime.hasListeners(j0.instance)}).map(function(j0){return j0.instance}),g=this.isTouchScrollEnabled,s=this.dispatchPointerExit,a=this.enableMultiTouch;if(X&&"isTouchScrollEnabled"in X)g=X.isTouchScrollEnabled;this.eventCleanup=(0,H.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:w,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:g,dispatchPointerExit:s,enableMultiTouch:a,layoutScaleFactor:this._layout.layoutScaleFactor})}},S.prototype.removeRiveListeners=function(){if(this.eventCleanup)this.eventCleanup(),this.eventCleanup=null},S.prototype.initializeAudio=function(){var X=this,D;if(r.status==l.UNAVAILABLE){if(((D=this.artboard)===null||D===void 0?void 0:D.hasAudio)&&this._audioEventListener===null)this._audioEventListener={type:b.AudioStatusChange,callback:function(){return X.onSystemAudioChanged()}},r.add(this._audioEventListener),r.establishAudio()}},S.prototype.initArtboardSize=function(){if(!this.artboard)return;this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height},S.prototype.initData=function(X,D,w,g,s){return q(this,void 0,void 0,function(){var a,j0,Q0,N0;return U(this,function(P0){switch(P0.label){case 0:if(P0.trys.push([0,3,,4]),this.riveFile!=null)return[3,2];return a=new E0({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),this.riveFile=a,[4,a.init()];case 1:if(P0.sent(),this.destroyed)return a.destroyIfUnused(),[2,!1];P0.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(X,D,w,g,s),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:b.Load,data:(N0=this.src)!==null&&N0!==void 0?N0:"buffer"}),this.animator.advanceIfPaused(),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:return j0=P0.sent(),Q0=O(j0),console.warn(Q0),this.eventManager.fire({type:b.LoadError,data:Q0}),[2,Promise.reject(Q0)];case 4:return[2]}})})},S.prototype.initArtboard=function(X,D,w,g,s){if(!this.file)return;var a=X?this.file.artboardByName(X):this.file.defaultArtboard();if(!a){var j0="Invalid artboard name or no default artboard";console.warn(j0),this.eventManager.fire({type:b.LoadError,data:j0});return}this.artboard=a,a.volume=this._volume*r.systemVolume,this.animator=new x(this.runtime,this.artboard,this.eventManager);var Q0;if(D.length>0||w.length>0)Q0=D.concat(w),this.animator.initLinearAnimations(D,g),this.animator.initStateMachines(w,g);else Q0=[this.animator.atLeastOne(g,!1)];if(this.taskQueue.add({event:{type:g?b.Play:b.Pause,data:Q0}}),s){var N0=this.file.defaultArtboardViewModel(a);if(N0!==null){var P0=N0.defaultInstance();if(P0!==null){var d0=new b0(P0,null);(0,H.createFinalization)(d0,d0.runtimeInstance),this.bindViewModelInstance(d0)}}}},S.prototype.drawFrame=function(){var X,D;if((X=document===null||document===void 0?void 0:document.timeline)===null||X===void 0?void 0:X.currentTime){if(this.loaded&&this.artboard&&!this.frameRequestId)this._boundDraw(document.timeline.currentTime),(D=this.runtime)===null||D===void 0||D.resolveAnimationFrame()}else this.startRendering()},S.prototype.draw=function(X,D){var w;this.frameRequestId=null;var g=performance.now();if(!this.lastRenderTime)this.lastRenderTime=X;if(this.renderSecondTimer+=X-this.lastRenderTime,this.renderSecondTimer>5000)this.renderSecondTimer=0,D===null||D===void 0||D();var s=(X-this.lastRenderTime)/1000;this.lastRenderTime=X;var a=this.animator.animations.filter(function(V0){return V0.playing||V0.needsScrub}).sort(function(V0){return V0.needsScrub?-1:1});for(var j0=0,Q0=a;j00)this.animator.stateMachines.forEach(function(w){return w.bindViewModelInstance(X)});else this.artboard.bindViewModelInstance(X.runtimeInstance)}},Object.defineProperty(S.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),S.prototype.viewModelByIndex=function(X){var D=this.file.viewModelByIndex(X);if(D!==null)return new q0(D);return null},S.prototype.viewModelByName=function(X){var D=this.file.viewModelByName(X);if(D!==null)return new q0(D);return null},S.prototype.enums=function(){if(this._dataEnums===null){var X=this.file.enums();this._dataEnums=X.map(function(D){return new w0(D)})}return this._dataEnums},S.prototype.defaultViewModel=function(){if(this.artboard){var X=this.file.defaultArtboardViewModel(this.artboard);if(X)return new q0(X)}return null},S.prototype.getArtboard=function(X){var D,w;return(w=(D=this.riveFile)===null||D===void 0?void 0:D.getArtboard(X))!==null&&w!==void 0?w:null},S.prototype.getBindableArtboard=function(X){var D,w;return(w=(D=this.riveFile)===null||D===void 0?void 0:D.getBindableArtboard(X))!==null&&w!==void 0?w:null},S.prototype.getDefaultBindableArtboard=function(){var X,D;return(D=(X=this.riveFile)===null||X===void 0?void 0:X.getDefaultBindableArtboard())!==null&&D!==void 0?D:null},S.missingErrorMessage="Rive source file or data buffer required",S.cleanupErrorMessage="Attempt to use file after calling cleanup.",S}(),q0=function(){function S(X){this._viewModel=X}return Object.defineProperty(S.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),S.prototype.instanceByIndex=function(X){var D=this._viewModel.instanceByIndex(X);if(D!==null){var w=new b0(D,null);return(0,H.createFinalization)(w,D),w}return null},S.prototype.instanceByName=function(X){var D=this._viewModel.instanceByName(X);if(D!==null){var w=new b0(D,null);return(0,H.createFinalization)(w,D),w}return null},S.prototype.defaultInstance=function(){var X=this._viewModel.defaultInstance();if(X!==null){var D=new b0(X,null);return(0,H.createFinalization)(D,X),D}return null},S.prototype.instance=function(){var X=this._viewModel.instance();if(X!==null){var D=new b0(X,null);return(0,H.createFinalization)(D,X),D}return null},Object.defineProperty(S.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),S}(),w0=function(){function S(X){this._dataEnum=X}return Object.defineProperty(S.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),S}(),D0;(function(S){S.Number="number",S.String="string",S.Boolean="boolean",S.Color="color",S.Trigger="trigger",S.Enum="enum",S.List="list",S.Image="image",S.Artboard="artboard"})(D0||(D0={}));var b0=function(){function S(X,D){if(this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this.selfUnref=!1,this._runtimeInstance=X,D!==null)this._parents.push(D)}return Object.defineProperty(S.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"nativeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),S.prototype.handleCallbacks=function(){if(this._propertiesWithCallbacks.length!==0)this._propertiesWithCallbacks.forEach(function(X){X.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(X){X.clearChanges()});this._children.forEach(function(X){return X.handleCallbacks()})},S.prototype.addParent=function(X){if(!this._parents.includes(X)){if(this._parents.push(X),this._propertiesWithCallbacks.length>0||this._children.length>0)X.addToViewModelCallbacks(this)}},S.prototype.removeParent=function(X){var D=this._parents.indexOf(X);if(D!==-1){var w=this._parents[D];w.removeFromViewModelCallbacks(this),this._parents.splice(D,1)}},S.prototype.addToPropertyCallbacks=function(X){var D=this;if(!this._propertiesWithCallbacks.includes(X)){if(this._propertiesWithCallbacks.push(X),this._propertiesWithCallbacks.length>0)this._parents.forEach(function(w){w.addToViewModelCallbacks(D)})}},S.prototype.removeFromPropertyCallbacks=function(X){var D=this;if(this._propertiesWithCallbacks.includes(X)){if(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(w){return w!==X}),this._children.length===0&&this._propertiesWithCallbacks.length===0)this._parents.forEach(function(w){w.removeFromViewModelCallbacks(D)})}},S.prototype.addToViewModelCallbacks=function(X){var D=this;if(!this._children.includes(X))this._children.push(X),this._parents.forEach(function(w){w.addToViewModelCallbacks(D)})},S.prototype.removeFromViewModelCallbacks=function(X){var D=this;if(this._children.includes(X)){if(this._children=this._children.filter(function(w){return w!==X}),this._children.length===0&&this._propertiesWithCallbacks.length===0)this._parents.forEach(function(w){w.removeFromViewModelCallbacks(D)})}},S.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(X){X.clearCallbacks()})},S.prototype.propertyFromPath=function(X,D){var w=X.split("/");return this.propertyFromPathSegments(w,0,D)},S.prototype.viewModelFromPathSegments=function(X,D){var w=this.internalViewModelInstance(X[D]);if(w!==null)if(D==X.length-1)return w;else return w.viewModelFromPathSegments(X,D++);return null},S.prototype.propertyFromPathSegments=function(X,D,w){var g,s,a,j0,Q0,N0,P0,d0,$1,o0,V1,C0,j1,U1,Y1,x1,J9,G9;if(D1?this.viewModelFromPathSegments(D.slice(0,D.length-1),0):this;if(w!=null)return w.internalViewModelInstance(D[D.length-1]);return null},S.prototype.internalReplaceViewModel=function(X,D){var w;if(D.runtimeInstance!==null){var g=((w=this._runtimeInstance)===null||w===void 0?void 0:w.replaceViewModel(X,D.runtimeInstance))||!1;if(g){D.internalIncrementReferenceCount();var s=this.internalViewModelInstance(X);if(s!==null){if(s.removeParent(this),this._children.includes(s))this._children=this._children.filter(function(a){return a!==s});s.cleanup()}this._viewModelInstances.set(X,D),D.addParent(this)}return g}return!1},S.prototype.replaceViewModel=function(X,D){var w,g=X.split("/"),s=g.length>1?this.viewModelFromPathSegments(g.slice(0,g.length-1),0):this;return(w=s===null||s===void 0?void 0:s.internalReplaceViewModel(g[g.length-1],D))!==null&&w!==void 0?w:!1},S.prototype.incrementReferenceCount=function(){var X;this._referenceCount++,(X=this._runtimeInstance)===null||X===void 0||X.incrementReferenceCount()},S.prototype.decrementReferenceCount=function(){var X;this._referenceCount--,(X=this._runtimeInstance)===null||X===void 0||X.decrementReferenceCount()},Object.defineProperty(S.prototype,"properties",{get:function(){var X;return((X=this._runtimeInstance)===null||X===void 0?void 0:X.getProperties().map(function(D){return L({},D)}))||[]},enumerable:!1,configurable:!0}),S.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},S.prototype.cleanup=function(){var X=this,D;if(this._referenceCount--,this._referenceCount<=0){if(this.selfUnref)(D=this._runtimeInstance)===null||D===void 0||D.unref();this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(s){s.cleanup()}),this._viewModelInstances.clear();var w=F([],this._children,!0);this._children.length=0;var g=F([],this._parents,!0);this._parents.length=0,w.forEach(function(s){s.removeParent(X)}),g.forEach(function(s){s.removeFromViewModelCallbacks(X)})}},S}(),S0=function(){function S(X,D){this.callbacks=[],this._viewModelInstanceValue=X,this._parentViewModel=D}return S.prototype.on=function(X){if(this.callbacks.length===0)this._viewModelInstanceValue.clearChanges();if(!this.callbacks.includes(X))this.callbacks.push(X),this._parentViewModel.addToPropertyCallbacks(this)},S.prototype.off=function(X){if(!X)this.callbacks.length=0;else this.callbacks=this.callbacks.filter(function(D){return D!==X});if(this.callbacks.length===0)this._parentViewModel.removeFromPropertyCallbacks(this)},S.prototype.internalHandleCallback=function(X){},S.prototype.handleCallbacks=function(){var X=this;if(this._viewModelInstanceValue.hasChanged)this.callbacks.forEach(function(D){X.internalHandleCallback(D)})},S.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},S.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(S.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),S}(),u0=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(D){this._viewModelInstanceValue.value=D},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(D){D(this.value)},X}(S0),f0=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(D){this._viewModelInstanceValue.value=D},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(D){D(this.value)},X}(S0),t0=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(D){this._viewModelInstanceValue.value=D},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(D){D(this.value)},X}(S0),X1=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return X.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},X.prototype.internalHandleCallback=function(D){D()},X}(S0),A0=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(D){this._viewModelInstanceValue.value=D},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(D){this._viewModelInstanceValue.valueIndex=D},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(D){D(this.value)},X}(S0),i0=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),X.prototype.addInstance=function(D){if(D.runtimeInstance!=null)this._viewModelInstanceValue.addInstance(D.runtimeInstance),D.addParent(this._parentViewModel)},X.prototype.addInstanceAt=function(D,w){if(D.runtimeInstance!=null){if(this._viewModelInstanceValue.addInstanceAt(D.runtimeInstance,w))return D.addParent(this._parentViewModel),!0}return!1},X.prototype.removeInstance=function(D){if(D.runtimeInstance!=null)this._viewModelInstanceValue.removeInstance(D.runtimeInstance),D.removeParent(this._parentViewModel)},X.prototype.removeInstanceAt=function(D){this._viewModelInstanceValue.removeInstanceAt(D)},X.prototype.instanceAt=function(D){var w=this._viewModelInstanceValue.instanceAt(D);if(w!=null){var g=new b0(w,this._parentViewModel);return(0,H.createFinalization)(g,w),g}return null},X.prototype.swap=function(D,w){this._viewModelInstanceValue.swap(D,w)},X.prototype.internalHandleCallback=function(D){D()},X}(S0),O1=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(D){this._viewModelInstanceValue.value=D},enumerable:!1,configurable:!0}),X.prototype.rgb=function(D,w,g){this._viewModelInstanceValue.rgb(D,w,g)},X.prototype.rgba=function(D,w,g,s){this._viewModelInstanceValue.argb(s,D,w,g)},X.prototype.argb=function(D,w,g,s){this._viewModelInstanceValue.argb(D,w,g,s)},X.prototype.alpha=function(D){this._viewModelInstanceValue.alpha(D)},X.prototype.opacity=function(D){this._viewModelInstanceValue.alpha(Math.round(Math.max(0,Math.min(1,D))*255))},X.prototype.internalHandleCallback=function(D){D(this.value)},X}(S0),v0=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"value",{set:function(D){var w;this._viewModelInstanceValue.value((w=D===null||D===void 0?void 0:D.nativeImage)!==null&&w!==void 0?w:null)},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(D){D()},X}(S0),m=function(S){z(X,S);function X(D,w){return S.call(this,D,w)||this}return Object.defineProperty(X.prototype,"value",{set:function(D){var w,g;if(D.isBindableArtboard)g=D;else g=D.file.internalBindableArtboardFromArtboard(D.nativeArtboard);this._viewModelInstanceValue.value((w=g===null||g===void 0?void 0:g.nativeArtboard)!==null&&w!==void 0?w:null)},enumerable:!1,configurable:!0}),X.prototype.internalHandleCallback=function(D){D()},X}(S0),M1=function(S){return q(void 0,void 0,void 0,function(){var X,D,w;return U(this,function(g){switch(g.label){case 0:return X=new Request(S),[4,fetch(X)];case 1:return D=g.sent(),[4,D.arrayBuffer()];case 2:return w=g.sent(),[2,w]}})})},H1=function(S){if(typeof S==="string")return[S];else if(S instanceof Array)return S;return[]},o1={EventManager:c,TaskQueueManager:i},e0=function(S){return q(void 0,void 0,void 0,function(){var X,D,w;return U(this,function(g){switch(g.label){case 0:return X=new Promise(function(s){return k.getInstance(function(a){a.decodeAudio(S,s)})}),[4,X];case 1:return D=g.sent(),w=new H.AudioWrapper(D),H.finalizationRegistry.register(w,D),[2,w]}})})},P1=function(S){return q(void 0,void 0,void 0,function(){var X,D,w;return U(this,function(g){switch(g.label){case 0:return X=new Promise(function(s){return k.getInstance(function(a){a.decodeImage(S,s)})}),[4,X];case 1:return D=g.sent(),w=new H.ImageWrapper(D),H.finalizationRegistry.register(w,D),[2,w]}})})},S1=function(S){return q(void 0,void 0,void 0,function(){var X,D,w;return U(this,function(g){switch(g.label){case 0:return X=new Promise(function(s){return k.getInstance(function(a){a.decodeFont(S,s)})}),[4,X];case 1:return D=g.sent(),w=new H.FontWrapper(D),H.finalizationRegistry.register(w,D),[2,w]}})})}})(),J})()})});var sG=SQ((x$,PK)=>{/*! * matter-js 0.20.0 by @liabru * http://brm.io/matter-js/ * License MIT * * The MIT License (MIT) * * Copyright (c) Liam Brummitt and contributors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */(function($,Z){if(typeof x$==="object"&&typeof PK==="object")PK.exports=Z();else if(typeof define==="function"&&define.amd)define("Matter",[],Z);else if(typeof x$==="object")x$.Matter=Z();else $.Matter=Z()})(x$,function(){return function(G){var $={};function Z(J){if($[J])return $[J].exports;var K=$[J]={i:J,l:!1,exports:{}};return G[J].call(K.exports,K,K.exports,Z),K.l=!0,K.exports}return Z.m=G,Z.c=$,Z.d=function(J,K,Q){if(!Z.o(J,K))Object.defineProperty(J,K,{enumerable:!0,get:Q})},Z.r=function(J){if(typeof Symbol<"u"&&Symbol.toStringTag)Object.defineProperty(J,Symbol.toStringTag,{value:"Module"});Object.defineProperty(J,"__esModule",{value:!0})},Z.t=function(J,K){if(K&1)J=Z(J);if(K&8)return J;if(K&4&&typeof J==="object"&&J&&J.__esModule)return J;var Q=Object.create(null);if(Z.r(Q),Object.defineProperty(Q,"default",{enumerable:!0,value:J}),K&2&&typeof J!="string")for(var W in J)Z.d(Q,W,function(H){return J[H]}.bind(null,W));return Q},Z.n=function(J){var K=J&&J.__esModule?function(){return J.default}:function(){return J};return Z.d(K,"a",K),K},Z.o=function(J,K){return Object.prototype.hasOwnProperty.call(J,K)},Z.p="",Z(Z.s=20)}([function(G,$){var Z={};G.exports=Z,function(){Z._baseDelta=16.666666666666668,Z._nextId=0,Z._seed=0,Z._nowStartTime=+new Date,Z._warnedOnce={},Z._decomp=null,Z.extend=function(K,Q){var W,H,z;if(typeof Q==="boolean")W=2,z=Q;else W=1,z=!0;for(var L=W;L0;Q--){var W=Math.floor(Z.random()*(Q+1)),H=K[Q];K[Q]=K[W],K[W]=H}return K},Z.choose=function(K){return K[Math.floor(Z.random()*K.length)]},Z.isElement=function(K){if(typeof HTMLElement<"u")return K instanceof HTMLElement;return!!(K&&K.nodeType&&K.nodeName)},Z.isArray=function(K){return Object.prototype.toString.call(K)==="[object Array]"},Z.isFunction=function(K){return typeof K==="function"},Z.isPlainObject=function(K){return typeof K==="object"&&K.constructor===Object},Z.isString=function(K){return toString.call(K)==="[object String]"},Z.clamp=function(K,Q,W){if(KW)return W;return K},Z.sign=function(K){return K<0?-1:1},Z.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();else if(window.performance.webkitNow)return window.performance.webkitNow()}if(Date.now)return Date.now();return new Date-Z._nowStartTime},Z.random=function(K,Q){return K=typeof K<"u"?K:0,Q=typeof Q<"u"?Q:1,K+J()*(Q-K)};var J=function(){return Z._seed=(Z._seed*9301+49297)%233280,Z._seed/233280};Z.colorToNumber=function(K){if(K=K.replace("#",""),K.length==3)K=K.charAt(0)+K.charAt(0)+K.charAt(1)+K.charAt(1)+K.charAt(2)+K.charAt(2);return parseInt(K,16)},Z.logLevel=1,Z.log=function(){if(console&&Z.logLevel>0&&Z.logLevel<=3)console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},Z.info=function(){if(console&&Z.logLevel>0&&Z.logLevel<=2)console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},Z.warn=function(){if(console&&Z.logLevel>0&&Z.logLevel<=3)console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},Z.warnOnce=function(){var K=Array.prototype.slice.call(arguments).join(" ");if(!Z._warnedOnce[K])Z.warn(K),Z._warnedOnce[K]=!0},Z.deprecated=function(K,Q,W){K[Q]=Z.chain(function(){Z.warnOnce("\uD83D\uDD05 deprecated \uD83D\uDD05",W)},K[Q])},Z.nextId=function(){return Z._nextId++},Z.indexOf=function(K,Q){if(K.indexOf)return K.indexOf(Q);for(var W=0;WJ.max.x)J.max.x=H.x;if(H.xJ.max.y)J.max.y=H.y;if(H.y0)J.max.x+=Q.x;else J.min.x+=Q.x;if(Q.y>0)J.max.y+=Q.y;else J.min.y+=Q.y}},Z.contains=function(J,K){return K.x>=J.min.x&&K.x<=J.max.x&&K.y>=J.min.y&&K.y<=J.max.y},Z.overlaps=function(J,K){return J.min.x<=K.max.x&&J.max.x>=K.min.x&&J.max.y>=K.min.y&&J.min.y<=K.max.y},Z.translate=function(J,K){J.min.x+=K.x,J.max.x+=K.x,J.min.y+=K.y,J.max.y+=K.y},Z.shift=function(J,K){var Q=J.max.x-J.min.x,W=J.max.y-J.min.y;J.min.x=K.x,J.max.x=K.x+Q,J.min.y=K.y,J.max.y=K.y+W}}()},function(G,$){var Z={};G.exports=Z,function(){Z.create=function(J,K){return{x:J||0,y:K||0}},Z.clone=function(J){return{x:J.x,y:J.y}},Z.magnitude=function(J){return Math.sqrt(J.x*J.x+J.y*J.y)},Z.magnitudeSquared=function(J){return J.x*J.x+J.y*J.y},Z.rotate=function(J,K,Q){var W=Math.cos(K),H=Math.sin(K);if(!Q)Q={};var z=J.x*W-J.y*H;return Q.y=J.x*H+J.y*W,Q.x=z,Q},Z.rotateAbout=function(J,K,Q,W){var H=Math.cos(K),z=Math.sin(K);if(!W)W={};var L=Q.x+((J.x-Q.x)*H-(J.y-Q.y)*z);return W.y=Q.y+((J.x-Q.x)*z+(J.y-Q.y)*H),W.x=L,W},Z.normalise=function(J){var K=Z.magnitude(J);if(K===0)return{x:0,y:0};return{x:J.x/K,y:J.y/K}},Z.dot=function(J,K){return J.x*K.x+J.y*K.y},Z.cross=function(J,K){return J.x*K.y-J.y*K.x},Z.cross3=function(J,K,Q){return(K.x-J.x)*(Q.y-J.y)-(K.y-J.y)*(Q.x-J.x)},Z.add=function(J,K,Q){if(!Q)Q={};return Q.x=J.x+K.x,Q.y=J.y+K.y,Q},Z.sub=function(J,K,Q){if(!Q)Q={};return Q.x=J.x-K.x,Q.y=J.y-K.y,Q},Z.mult=function(J,K){return{x:J.x*K,y:J.y*K}},Z.div=function(J,K){return{x:J.x/K,y:J.y/K}},Z.perp=function(J,K){return K=K===!0?-1:1,{x:K*-J.y,y:K*J.x}},Z.neg=function(J){return{x:-J.x,y:-J.y}},Z.angle=function(J,K){return Math.atan2(K.y-J.y,K.x-J.x)},Z._temp=[Z.create(),Z.create(),Z.create(),Z.create(),Z.create(),Z.create()]}()},function(G,$,Z){var J={};G.exports=J;var K=Z(2),Q=Z(0);(function(){J.create=function(W,H){var z=[];for(var L=0;L0)return!1;U=F}return!0},J.scale=function(W,H,z,L){if(H===1&&z===1)return W;L=L||J.centre(W);var q,U;for(var F=0;F=0?F-1:W.length-1],O=W[F],Y=W[(F+1)%W.length],M=H[F0)H|=2;if(H===3)return!1}if(H!==0)return!0;else return null},J.hull=function(W){var H=[],z=[],L,q;W=W.slice(0),W.sort(function(U,F){var N=U.x-F.x;return N!==0?N:U.y-F.y});for(q=0;q=2&&K.cross3(z[z.length-2],z[z.length-1],L)<=0)z.pop();z.push(L)}for(q=W.length-1;q>=0;q-=1){L=W[q];while(H.length>=2&&K.cross3(H[H.length-2],H[H.length-1],L)<=0)H.pop();H.push(L)}return H.pop(),z.pop(),H.concat(z)}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(3),Q=Z(2),W=Z(7),H=Z(0),z=Z(1),L=Z(11);(function(){J._timeCorrection=!0,J._inertiaScale=4,J._nextCollidingGroupId=1,J._nextNonCollidingGroupId=-1,J._nextCategory=1,J._baseDelta=16.666666666666668,J.create=function(U){var F={id:H.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:K.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:0.001,restitution:0,friction:0.1,frictionStatic:0.5,frictionAir:0.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:0.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,deltaTime:16.666666666666668,_original:null},N=H.extend(F,U);return q(N,U),N},J.nextGroup=function(U){if(U)return J._nextNonCollidingGroupId--;return J._nextCollidingGroupId++},J.nextCategory=function(){return J._nextCategory=J._nextCategory<<1,J._nextCategory};var q=function(U,F){F=F||{},J.set(U,{bounds:U.bounds||z.create(U.vertices),positionPrev:U.positionPrev||Q.clone(U.position),anglePrev:U.anglePrev||U.angle,vertices:U.vertices,parts:U.parts||[U],isStatic:U.isStatic,isSleeping:U.isSleeping,parent:U.parent||U}),K.rotate(U.vertices,U.angle,U.position),L.rotate(U.axes,U.angle),z.update(U.bounds,U.vertices,U.velocity),J.set(U,{axes:F.axes||U.axes,area:F.area||U.area,mass:F.mass||U.mass,inertia:F.inertia||U.inertia});var N=U.isStatic?"#14151f":H.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),O=U.isStatic?"#555":"#ccc",Y=U.isStatic&&U.render.fillStyle===null?1:0;U.render.fillStyle=U.render.fillStyle||N,U.render.strokeStyle=U.render.strokeStyle||O,U.render.lineWidth=U.render.lineWidth||Y,U.render.sprite.xOffset+=-(U.bounds.min.x-U.position.x)/(U.bounds.max.x-U.bounds.min.x),U.render.sprite.yOffset+=-(U.bounds.min.y-U.position.y)/(U.bounds.max.y-U.bounds.min.y)};J.set=function(U,F,N){var O;if(typeof F==="string")O=F,F={},F[O]=N;for(O in F){if(!Object.prototype.hasOwnProperty.call(F,O))continue;switch(N=F[O],O){case"isStatic":J.setStatic(U,N);break;case"isSleeping":W.set(U,N);break;case"mass":J.setMass(U,N);break;case"density":J.setDensity(U,N);break;case"inertia":J.setInertia(U,N);break;case"vertices":J.setVertices(U,N);break;case"position":J.setPosition(U,N);break;case"angle":J.setAngle(U,N);break;case"velocity":J.setVelocity(U,N);break;case"angularVelocity":J.setAngularVelocity(U,N);break;case"speed":J.setSpeed(U,N);break;case"angularSpeed":J.setAngularSpeed(U,N);break;case"parts":J.setParts(U,N);break;case"centre":J.setCentre(U,N);break;default:U[O]=N}}},J.setStatic=function(U,F){for(var N=0;N0)Q.rotateAbout(M.position,O,U.position,M.position)}},J.setVelocity=function(U,F){var N=U.deltaTime/J._baseDelta;U.positionPrev.x=U.position.x-F.x*N,U.positionPrev.y=U.position.y-F.y*N,U.velocity.x=(U.position.x-U.positionPrev.x)/N,U.velocity.y=(U.position.y-U.positionPrev.y)/N,U.speed=Q.magnitude(U.velocity)},J.getVelocity=function(U){var F=J._baseDelta/U.deltaTime;return{x:(U.position.x-U.positionPrev.x)*F,y:(U.position.y-U.positionPrev.y)*F}},J.getSpeed=function(U){return Q.magnitude(J.getVelocity(U))},J.setSpeed=function(U,F){J.setVelocity(U,Q.mult(Q.normalise(J.getVelocity(U)),F))},J.setAngularVelocity=function(U,F){var N=U.deltaTime/J._baseDelta;U.anglePrev=U.angle-F*N,U.angularVelocity=(U.angle-U.anglePrev)/N,U.angularSpeed=Math.abs(U.angularVelocity)},J.getAngularVelocity=function(U){return(U.angle-U.anglePrev)*J._baseDelta/U.deltaTime},J.getAngularSpeed=function(U){return Math.abs(J.getAngularVelocity(U))},J.setAngularSpeed=function(U,F){J.setAngularVelocity(U,H.sign(J.getAngularVelocity(U))*F)},J.translate=function(U,F,N){J.setPosition(U,Q.add(U.position,F),N)},J.rotate=function(U,F,N,O){if(!N)J.setAngle(U,U.angle+F,O);else{var Y=Math.cos(F),M=Math.sin(F),P=U.position.x-N.x,k=U.position.y-N.y;J.setPosition(U,{x:N.x+(P*Y-k*M),y:N.y+(P*M+k*Y)},O),J.setAngle(U,U.angle+F,O)}},J.scale=function(U,F,N,O){var Y=0,M=0;O=O||U.position;for(var P=0;P0)Y+=k.area,M+=k.inertia;k.position.x=O.x+(k.position.x-O.x)*F,k.position.y=O.y+(k.position.y-O.y)*N,z.update(k.bounds,k.vertices,U.velocity)}if(U.parts.length>1){if(U.area=Y,!U.isStatic)J.setMass(U,U.density*Y),J.setInertia(U,M)}if(U.circleRadius)if(F===N)U.circleRadius*=F;else U.circleRadius=null},J.update=function(U,F){F=(typeof F<"u"?F:16.666666666666668)*U.timeScale;var N=F*F,O=J._timeCorrection?F/(U.deltaTime||F):1,Y=1-U.frictionAir*(F/H._baseDelta),M=(U.position.x-U.positionPrev.x)*O,P=(U.position.y-U.positionPrev.y)*O;U.velocity.x=M*Y+U.force.x/U.mass*N,U.velocity.y=P*Y+U.force.y/U.mass*N,U.positionPrev.x=U.position.x,U.positionPrev.y=U.position.y,U.position.x+=U.velocity.x,U.position.y+=U.velocity.y,U.deltaTime=F,U.angularVelocity=(U.angle-U.anglePrev)*Y*O+U.torque/U.inertia*N,U.anglePrev=U.angle,U.angle+=U.angularVelocity;for(var k=0;k0)E.position.x+=U.velocity.x,E.position.y+=U.velocity.y;if(U.angularVelocity!==0){if(K.rotate(E.vertices,U.angularVelocity,U.position),L.rotate(E.axes,U.angularVelocity),k>0)Q.rotateAbout(E.position,U.angularVelocity,U.position,E.position)}z.update(E.bounds,E.vertices,U.velocity)}},J.updateVelocities=function(U){var F=J._baseDelta/U.deltaTime,N=U.velocity;N.x=(U.position.x-U.positionPrev.x)*F,N.y=(U.position.y-U.positionPrev.y)*F,U.speed=Math.sqrt(N.x*N.x+N.y*N.y),U.angularVelocity=(U.angle-U.anglePrev)*F,U.angularSpeed=Math.abs(U.angularVelocity)},J.applyForce=function(U,F,N){var O={x:F.x-U.position.x,y:F.y-U.position.y};U.force.x+=N.x,U.force.y+=N.y,U.torque+=O.x*N.y-O.y*N.x},J._totalProperties=function(U){var F={mass:0,area:0,inertia:0,centre:{x:0,y:0}};for(var N=U.parts.length===1?0:1;N0){if(!H)H={};z=W.split(" ");for(var N=0;N0&&F.motion=F.sleepThreshold/L)J.set(F,!0)}else if(F.sleepCounter>0)F.sleepCounter-=1}},J.afterCollisions=function(H){var z=J._motionSleepThreshold;for(var L=0;Lz)J.set(O,!1)}}},J.set=function(H,z){var L=H.isSleeping;if(z){if(H.isSleeping=!0,H.sleepCounter=H.sleepThreshold,H.positionImpulse.x=0,H.positionImpulse.y=0,H.positionPrev.x=H.position.x,H.positionPrev.y=H.position.y,H.anglePrev=H.angle,H.speed=0,H.angularSpeed=0,H.motion=0,!L)Q.trigger(H,"sleepStart")}else if(H.isSleeping=!1,H.sleepCounter=0,L)Q.trigger(H,"sleepEnd")}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(3),Q=Z(9);(function(){var W=[],H={overlap:0,axis:null},z={overlap:0,axis:null};J.create=function(L,q){return{pair:null,collided:!1,bodyA:L,bodyB:q,parentA:L.parent,parentB:q.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[null,null],supportCount:0}},J.collides=function(L,q,U){if(J._overlapAxes(H,L.vertices,q.vertices,L.axes),H.overlap<=0)return null;if(J._overlapAxes(z,q.vertices,L.vertices,q.axes),z.overlap<=0)return null;var F=U&&U.table[Q.id(L,q)],N;if(!F)N=J.create(L,q),N.collided=!0,N.bodyA=L.id=0)B=-B,I=-I;Y.x=B,Y.y=I,M.x=-I,M.y=B,P.x=B*E,P.y=I*E,N.depth=E;var A=J._findSupports(L,q,Y,1),x=0;if(K.contains(L.vertices,A[0]))k[x++]=A[0];if(K.contains(L.vertices,A[1]))k[x++]=A[1];if(x<2){var b=J._findSupports(q,L,Y,-1);if(K.contains(q.vertices,b[0]))k[x++]=b[0];if(x<2&&K.contains(q.vertices,b[1]))k[x++]=b[1]}if(x===0)k[x++]=A[0];return N.supportCount=x,N},J._overlapAxes=function(L,q,U,F){var N=q.length,O=U.length,Y=q[0].x,M=q[0].y,P=U[0].x,k=U[0].y,E=F.length,V=Number.MAX_VALUE,B=0,I,C,T,A,x,b;for(x=0;xr)r=A;else if(AK0)K0=A;else if(AF.frictionStatic?U.frictionStatic:F.frictionStatic,Q.restitution=U.restitution>F.restitution?U.restitution:F.restitution,Q.slop=U.slop>F.slop?U.slop:F.slop,Q.contactCount=L,W.pair=Q;var N=z[0],O=q[0],Y=z[1],M=q[1];if(M.vertex===N||O.vertex===Y)q[1]=O,q[0]=O=M,M=q[1];O.vertex=N,M.vertex=Y},J.setActive=function(Q,W,H){if(W)Q.isActive=!0,Q.timeUpdated=H;else Q.isActive=!1,Q.contactCount=0},J.id=function(Q,W){return Q.id0?1:0.7),U.damping=U.damping||0,U.angularStiffness=U.angularStiffness||0,U.angleA=U.bodyA?U.bodyA.angle:U.angleA,U.angleB=U.bodyB?U.bodyB.angle:U.angleB,U.plugin={};var Y={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};if(U.length===0&&U.stiffness>0.1)Y.type="pin",Y.anchors=!1;else if(U.stiffness<0.9)Y.type="spring";return U.render=L.extend(Y,U.render),U},J.preSolveAll=function(q){for(var U=0;U=1||q.length===0,I=B?q.stiffness*U:q.stiffness*U*U,C=q.damping*U,T=Q.mult(k,V*I),A=(F?F.inverseMass:0)+(N?N.inverseMass:0),x=(F?F.inverseInertia:0)+(N?N.inverseInertia:0),b=A+x,v,c,i,l,o;if(C>0){var r=Q.create();i=Q.div(k,E),o=Q.sub(N&&Q.sub(N.position,N.positionPrev)||r,F&&Q.sub(F.position,F.positionPrev)||r),l=Q.dot(i,o)}if(F&&!F.isStatic){if(c=F.inverseMass/A,F.constraintImpulse.x-=T.x*c,F.constraintImpulse.y-=T.y*c,F.position.x-=T.x*c,F.position.y-=T.y*c,C>0)F.positionPrev.x-=C*i.x*l*c,F.positionPrev.y-=C*i.y*l*c;v=Q.cross(O,T)/b*J._torqueDampen*F.inverseInertia*(1-q.angularStiffness),F.constraintImpulse.angle-=v,F.angle-=v}if(N&&!N.isStatic){if(c=N.inverseMass/A,N.constraintImpulse.x+=T.x*c,N.constraintImpulse.y+=T.y*c,N.position.x+=T.x*c,N.position.y+=T.y*c,C>0)N.positionPrev.x+=C*i.x*l*c,N.positionPrev.y+=C*i.y*l*c;v=Q.cross(Y,T)/b*J._torqueDampen*N.inverseInertia*(1-q.angularStiffness),N.constraintImpulse.angle+=v,N.angle+=v}},J.postSolveAll=function(q){for(var U=0;U0)Y.position.x+=N.x,Y.position.y+=N.y;if(N.angle!==0){if(K.rotate(Y.vertices,N.angle,F.position),z.rotate(Y.axes,N.angle),O>0)Q.rotateAbout(Y.position,N.angle,F.position,Y.position)}H.update(Y.bounds,Y.vertices,F.velocity)}N.angle*=J._warming,N.x*=J._warming,N.y*=J._warming}},J.pointAWorld=function(q){return{x:(q.bodyA?q.bodyA.position.x:0)+(q.pointA?q.pointA.x:0),y:(q.bodyA?q.bodyA.position.y:0)+(q.pointA?q.pointA.y:0)}},J.pointBWorld=function(q){return{x:(q.bodyB?q.bodyB.position.x:0)+(q.pointB?q.pointB.x:0),y:(q.bodyB?q.bodyB.position.y:0)+(q.pointB?q.pointB.y:0)}},J.currentLength=function(q){var U=(q.bodyA?q.bodyA.position.x:0)+(q.pointA?q.pointA.x:0),F=(q.bodyA?q.bodyA.position.y:0)+(q.pointA?q.pointA.y:0),N=(q.bodyB?q.bodyB.position.x:0)+(q.pointB?q.pointB.x:0),O=(q.bodyB?q.bodyB.position.y:0)+(q.pointB?q.pointB.y:0),Y=U-N,M=F-O;return Math.sqrt(Y*Y+M*M)}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(2),Q=Z(0);(function(){J.fromVertices=function(W){var H={};for(var z=0;z=1)Q.warn("Bodies.trapezoid: slope parameter must be < 1.");N*=0.5;var Y=(1-N*2)*U,M=U*N,P=M+Y,k=P+M,E;if(N<0.5)E="L 0 0 L "+M+" "+-F+" L "+P+" "+-F+" L "+k+" 0";else E="L 0 0 L "+P+" "+-F+" L "+k+" 0";var V={label:"Trapezoid Body",position:{x:L,y:q},vertices:K.fromPath(E)};if(O.chamfer){var B=O.chamfer;V.vertices=K.chamfer(V.vertices,B.radius,B.quality,B.qualityMin,B.qualityMax),delete O.chamfer}return W.create(Q.extend({},V,O))},J.circle=function(L,q,U,F,N){F=F||{};var O={label:"Circle Body",circleRadius:U};N=N||25;var Y=Math.ceil(Math.max(10,Math.min(N,U)));if(Y%2===1)Y+=1;return J.polygon(L,q,Y,U,Q.extend({},O,F))},J.polygon=function(L,q,U,F,N){if(N=N||{},U<3)return J.circle(L,q,F,N);var O=2*Math.PI/U,Y="",M=O*0.5;for(var P=0;P0&&K.area(o)1)return E=W.create(Q.extend({parts:V.slice(0)},F)),W.setPosition(E,{x:L,y:q}),E;else return V[0]}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(0),Q=Z(8);(function(){J.create=function(W){var H={bodies:[],collisions:[],pairs:null};return K.extend(H,W)},J.setBodies=function(W,H){W.bodies=H.slice(0)},J.clear=function(W){W.bodies=[],W.collisions=[]},J.collisions=function(W){var{pairs:H,bodies:z}=W,L=z.length,q=J.canCollide,U=Q.collides,F=W.collisions,N=0,O,Y;z.sort(J._compareBoundsX);for(O=0;Ok)break;if(EA.max.y)continue;if(B&&(T.isStatic||T.isSleeping))continue;if(!q(M.collisionFilter,T.collisionFilter))continue;var x=T.parts.length;if(C&&x===1){var b=U(M,T,H);if(b)F[N++]=b}else{var v=I>1?1:0,c=x>1?1:0;for(var i=v;iA.max.x||P.max.xA.max.y)continue;var b=U(l,r,H);if(b)F[N++]=b}}}}}if(F.length!==N)F.length=N;return F},J.canCollide=function(W,H){if(W.group===H.group&&W.group!==0)return W.group>0;return(W.mask&H.category)!==0&&(H.mask&W.category)!==0},J._compareBoundsX=function(W,H){return W.bounds.min.x-H.bounds.min.x}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(0);(function(){J.create=function(Q){var W={};if(!Q)K.log("Mouse.create: element was undefined, defaulting to document.body","warn");return W.element=Q||document.body,W.absolute={x:0,y:0},W.position={x:0,y:0},W.mousedownPosition={x:0,y:0},W.mouseupPosition={x:0,y:0},W.offset={x:0,y:0},W.scale={x:1,y:1},W.wheelDelta=0,W.button=-1,W.pixelRatio=parseInt(W.element.getAttribute("data-pixel-ratio"),10)||1,W.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},W.mousemove=function(H){var z=J._getRelativeMousePosition(H,W.element,W.pixelRatio),L=H.changedTouches;if(L)W.button=0,H.preventDefault();W.absolute.x=z.x,W.absolute.y=z.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y,W.sourceEvents.mousemove=H},W.mousedown=function(H){var z=J._getRelativeMousePosition(H,W.element,W.pixelRatio),L=H.changedTouches;if(L)W.button=0,H.preventDefault();else W.button=H.button;W.absolute.x=z.x,W.absolute.y=z.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y,W.mousedownPosition.x=W.position.x,W.mousedownPosition.y=W.position.y,W.sourceEvents.mousedown=H},W.mouseup=function(H){var z=J._getRelativeMousePosition(H,W.element,W.pixelRatio),L=H.changedTouches;if(L)H.preventDefault();W.button=-1,W.absolute.x=z.x,W.absolute.y=z.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y,W.mouseupPosition.x=W.position.x,W.mouseupPosition.y=W.position.y,W.sourceEvents.mouseup=H},W.mousewheel=function(H){W.wheelDelta=Math.max(-1,Math.min(1,H.wheelDelta||-H.detail)),H.preventDefault(),W.sourceEvents.mousewheel=H},J.setElement(W,W.element),W},J.setElement=function(Q,W){Q.element=W,W.addEventListener("mousemove",Q.mousemove,{passive:!0}),W.addEventListener("mousedown",Q.mousedown,{passive:!0}),W.addEventListener("mouseup",Q.mouseup,{passive:!0}),W.addEventListener("wheel",Q.mousewheel,{passive:!1}),W.addEventListener("touchmove",Q.mousemove,{passive:!1}),W.addEventListener("touchstart",Q.mousedown,{passive:!1}),W.addEventListener("touchend",Q.mouseup,{passive:!1})},J.clearSourceEvents=function(Q){Q.sourceEvents.mousemove=null,Q.sourceEvents.mousedown=null,Q.sourceEvents.mouseup=null,Q.sourceEvents.mousewheel=null,Q.wheelDelta=0},J.setOffset=function(Q,W){Q.offset.x=W.x,Q.offset.y=W.y,Q.position.x=Q.absolute.x*Q.scale.x+Q.offset.x,Q.position.y=Q.absolute.y*Q.scale.y+Q.offset.y},J.setScale=function(Q,W){Q.scale.x=W.x,Q.scale.y=W.y,Q.position.x=Q.absolute.x*Q.scale.x+Q.offset.x,Q.position.y=Q.absolute.y*Q.scale.y+Q.offset.y},J._getRelativeMousePosition=function(Q,W,H){var z=W.getBoundingClientRect(),L=document.documentElement||document.body.parentNode||document.body,q=window.pageXOffset!==void 0?window.pageXOffset:L.scrollLeft,U=window.pageYOffset!==void 0?window.pageYOffset:L.scrollTop,F=Q.changedTouches,N,O;if(F)N=F[0].pageX-z.left-q,O=F[0].pageY-z.top-U;else N=Q.pageX-z.left-q,O=Q.pageY-z.top-U;return{x:N/(W.clientWidth/(W.width||W.clientWidth)*H),y:O/(W.clientHeight/(W.height||W.clientHeight)*H)}}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(0);(function(){J._registry={},J.register=function(Q){if(!J.isPlugin(Q))K.warn("Plugin.register:",J.toString(Q),"does not implement all required fields.");if(Q.name in J._registry){var W=J._registry[Q.name],H=J.versionParse(Q.version).number,z=J.versionParse(W.version).number;if(H>z)K.warn("Plugin.register:",J.toString(W),"was upgraded to",J.toString(Q)),J._registry[Q.name]=Q;else if(H-1},J.isFor=function(Q,W){var H=Q.for&&J.dependencyParse(Q.for);return!Q.for||W.name===H.name&&J.versionSatisfies(W.version,H.range)},J.use=function(Q,W){if(Q.uses=(Q.uses||[]).concat(W||[]),Q.uses.length===0){K.warn("Plugin.use:",J.toString(Q),"does not specify any dependencies to install.");return}var H=J.dependencies(Q),z=K.topologicalSort(H),L=[];for(var q=0;q0)K.info(L.join(" "))},J.dependencies=function(Q,W){var H=J.dependencyParse(Q),z=H.name;if(W=W||{},z in W)return;Q=J.resolve(Q)||Q,W[z]=K.map(Q.uses||[],function(q){if(J.isPlugin(q))J.register(q);var U=J.dependencyParse(q),F=J.resolve(q);if(F&&!J.versionSatisfies(F.version,U.range))K.warn("Plugin.dependencies:",J.toString(F),"does not satisfy",J.toString(U),"used by",J.toString(H)+"."),F._warned=!0,Q._warned=!0;else if(!F)K.warn("Plugin.dependencies:",J.toString(q),"used by",J.toString(H),"could not be resolved."),Q._warned=!0;return U.name});for(var L=0;L=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;if(!W.test(Q))K.warn("Plugin.versionParse:",Q,"is not a valid version or range.");var H=W.exec(Q),z=Number(H[4]),L=Number(H[5]),q=Number(H[6]);return{isRange:Boolean(H[1]||H[2]),version:H[3],range:Q,operator:H[1]||H[2]||"",major:z,minor:L,patch:q,parts:[z,L,q],prerelease:H[7],number:z*1e8+L*1e4+q}},J.versionSatisfies=function(Q,W){W=W||"*";var H=J.versionParse(W),z=J.versionParse(Q);if(H.isRange){if(H.operator==="*"||Q==="*")return!0;if(H.operator===">")return z.number>H.number;if(H.operator===">=")return z.number>=H.number;if(H.operator==="~")return z.major===H.major&&z.minor===H.minor&&z.patch>=H.patch;if(H.operator==="^"){if(H.major>0)return z.major===H.major&&z.number>=H.number;if(H.minor>0)return z.minor===H.minor&&z.patch>=H.patch;return z.patch===H.patch}}return Q===W||Q==="*"}})()},function(G,$){var Z={};G.exports=Z,function(){Z.create=function(J){return{vertex:J,normalImpulse:0,tangentImpulse:0}}}()},function(G,$,Z){var J={};G.exports=J;var K=Z(7),Q=Z(18),W=Z(13),H=Z(19),z=Z(5),L=Z(6),q=Z(10),U=Z(0),F=Z(4);(function(){J._deltaMax=16.666666666666668,J.create=function(N){N=N||{};var O={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:0.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0,lastUpdatesPerFrame:0}},Y=U.extend(O,N);return Y.world=N.world||L.create({label:"World"}),Y.pairs=N.pairs||H.create(),Y.detector=N.detector||W.create(),Y.detector.pairs=Y.pairs,Y.grid={buckets:[]},Y.world.gravity=Y.gravity,Y.broadphase=Y.grid,Y.metrics={},Y},J.update=function(N,O){var Y=U.now(),M=N.world,P=N.detector,k=N.pairs,E=N.timing,V=E.timestamp,B;if(O>J._deltaMax)U.warnOnce("Matter.Engine.update: delta argument is recommended to be less than or equal to",J._deltaMax.toFixed(3),"ms.");O=typeof O<"u"?O:U._baseDelta,O*=E.timeScale,E.timestamp+=O,E.lastDelta=O;var I={timestamp:E.timestamp,delta:O};z.trigger(N,"beforeUpdate",I);var C=L.allBodies(M),T=L.allConstraints(M);if(M.isModified)W.setBodies(P,C),L.setModified(M,!1,!1,!0);if(N.enableSleeping)K.update(C,O);if(J._bodiesApplyGravity(C,N.gravity),O>0)J._bodiesUpdate(C,O);z.trigger(N,"beforeSolve",I),q.preSolveAll(C);for(B=0;B0)z.trigger(N,"collisionStart",{pairs:k.collisionStart,timestamp:E.timestamp,delta:O});var x=U.clamp(20/N.positionIterations,0,1);Q.preSolvePosition(k.list);for(B=0;B0)z.trigger(N,"collisionActive",{pairs:k.collisionActive,timestamp:E.timestamp,delta:O});if(k.collisionEnd.length>0)z.trigger(N,"collisionEnd",{pairs:k.collisionEnd,timestamp:E.timestamp,delta:O});return J._bodiesClearForces(C),z.trigger(N,"afterUpdate",I),N.timing.lastElapsed=U.now()-Y,N},J.merge=function(N,O){if(U.extend(N,O),O.world){N.world=O.world,J.clear(N);var Y=L.allBodies(N.world);for(var M=0;Mo1){if(k=m>0?m:-m,P=B.friction*(m>0?1:-1)*U,P<-k)P=-k;else if(P>k)P=k}else P=m,k=Y;var e0=D0*x-b0*A,P1=S0*x-u0*A,S1=r/(c+C.inverseInertia*e0*e0+T.inverseInertia*P1*P1),S=(1+B.restitution)*v0*S1;if(P*=S1,v00)q0.normalImpulse=0;S=q0.normalImpulse-X}if(m<-N||m>N)q0.tangentImpulse=0;else{var D=q0.tangentImpulse;if(q0.tangentImpulse+=P,q0.tangentImpulse<-k)q0.tangentImpulse=-k;if(q0.tangentImpulse>k)q0.tangentImpulse=k;P=q0.tangentImpulse-D}var w=A*S+b*P,g=x*S+v*P;if(!(C.isStatic||C.isSleeping))C.positionPrev.x+=w*C.inverseMass,C.positionPrev.y+=g*C.inverseMass,C.anglePrev+=(D0*g-b0*w)*C.inverseInertia;if(!(T.isStatic||T.isSleeping))T.positionPrev.x-=w*T.inverseMass,T.positionPrev.y-=g*T.inverseMass,T.anglePrev-=(S0*g-u0*w)*T.inverseInertia}}}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(9),Q=Z(0);(function(){J.create=function(W){return Q.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},W)},J.update=function(W,H,z){var{update:L,create:q,setActive:U}=K,F=W.table,N=W.list,O=N.length,Y=O,M=W.collisionStart,P=W.collisionEnd,k=W.collisionActive,E=H.length,V=0,B=0,I=0,C,T,A;for(A=0;A=z)N[Y++]=T;else if(U(T,!1,z),T.collision.bodyA.sleepCounter>0&&T.collision.bodyB.sleepCounter>0)N[Y++]=T;else P[B++]=T,delete F[T.id];if(N.length!==Y)N.length=Y;if(M.length!==V)M.length=V;if(P.length!==B)P.length=B;if(k.length!==I)k.length=I},J.clear=function(W){return W.table={},W.list.length=0,W.collisionStart.length=0,W.collisionActive.length=0,W.collisionEnd.length=0,W}})()},function(G,$,Z){var J=G.exports=Z(21);J.Axes=Z(11),J.Bodies=Z(12),J.Body=Z(4),J.Bounds=Z(1),J.Collision=Z(8),J.Common=Z(0),J.Composite=Z(6),J.Composites=Z(22),J.Constraint=Z(10),J.Contact=Z(16),J.Detector=Z(13),J.Engine=Z(17),J.Events=Z(5),J.Grid=Z(23),J.Mouse=Z(14),J.MouseConstraint=Z(24),J.Pair=Z(9),J.Pairs=Z(19),J.Plugin=Z(15),J.Query=Z(25),J.Render=Z(26),J.Resolver=Z(18),J.Runner=Z(27),J.SAT=Z(28),J.Sleeping=Z(7),J.Svg=Z(29),J.Vector=Z(2),J.Vertices=Z(3),J.World=Z(30),J.Engine.run=J.Runner.run,J.Common.deprecated(J.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")},function(G,$,Z){var J={};G.exports=J;var K=Z(15),Q=Z(0);(function(){J.name="matter-js",J.version="0.20.0",J.uses=[],J.used=[],J.use=function(){K.use(J,Array.prototype.slice.call(arguments))},J.before=function(W,H){return W=W.replace(/^Matter./,""),Q.chainPathBefore(J,W,H)},J.after=function(W,H){return W=W.replace(/^Matter./,""),Q.chainPathAfter(J,W,H)}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(6),Q=Z(10),W=Z(0),H=Z(4),z=Z(12),L=W.deprecated;(function(){J.stack=function(q,U,F,N,O,Y,M){var P=K.create({label:"Stack"}),k=q,E=U,V,B=0;for(var I=0;IC)C=x;H.translate(A,{x:b*0.5,y:x*0.5}),k=A.bounds.max.x+O,K.addBody(P,A),V=A,B+=1}else k+=O}E+=C+Y,k=q}return P},J.chain=function(q,U,F,N,O,Y){var M=q.bodies;for(var P=1;P0)for(P=0;P0)V=Y[P-1+(M-1)*U],K.addConstraint(q,Q.create(W.extend({bodyA:V,bodyB:E},O)));if(N&&PC)return;V=C-V;var A=V,x=F-1-V;if(Ex)return;if(I===1)H.translate(B,{x:(E+(F%2===1?1:-1))*T,y:0});var b=B?E*T:0;return M(q+b+E*O,k,E,V,B,I)})},J.newtonsCradle=function(q,U,F,N,O){var Y=K.create({label:"Newtons Cradle"});for(var M=0;MO.bounds.max.x||E.bounds.max.yO.bounds.max.y))continue;var V=J._getRegion(H,E);if(!E.region||V.id!==E.region.id||q){if(!E.region||q)E.region=V;var B=J._regionUnion(V,E.region);for(F=B.startCol;F<=B.endCol;F++)for(N=B.startRow;N<=B.endRow;N++){P=J._getBucketId(F,N),M=Y[P];var I=F>=V.startCol&&F<=V.endCol&&N>=V.startRow&&N<=V.endRow,C=F>=E.region.startCol&&F<=E.region.endCol&&N>=E.region.startRow&&N<=E.region.endRow;if(!I&&C){if(C){if(M)J._bucketRemoveBody(H,M,E)}}if(E.region===V||I&&!C||q){if(!M)M=J._createBucket(Y,P);J._bucketAddBody(H,M,E)}}E.region=V,k=!0}}if(k)H.pairsList=J._createActivePairsList(H)},W(J,"update","Grid.update ➤ replaced by Matter.Detector"),J.clear=function(H){H.buckets={},H.pairs={},H.pairsList=[]},W(J,"clear","Grid.clear ➤ replaced by Matter.Detector"),J._regionUnion=function(H,z){var L=Math.min(H.startCol,z.startCol),q=Math.max(H.endCol,z.endCol),U=Math.min(H.startRow,z.startRow),F=Math.max(H.endRow,z.endRow);return J._createRegion(L,q,U,F)},J._getRegion=function(H,z){var L=z.bounds,q=Math.floor(L.min.x/H.bucketWidth),U=Math.floor(L.max.x/H.bucketWidth),F=Math.floor(L.min.y/H.bucketHeight),N=Math.floor(L.max.y/H.bucketHeight);return J._createRegion(q,U,F,N)},J._createRegion=function(H,z,L,q){return{id:H+","+z+","+L+","+q,startCol:H,endCol:z,startRow:L,endRow:q}},J._getBucketId=function(H,z){return"C"+H+"R"+z},J._createBucket=function(H,z){var L=H[z]=[];return L},J._bucketAddBody=function(H,z,L){var q=H.pairs,U=K.id,F=z.length,N;for(N=0;N0)F.push(z);else delete L[q[N]];return F}})()},function(G,$,Z){var J={};G.exports=J;var K=Z(3),Q=Z(7),W=Z(14),H=Z(5),z=Z(13),L=Z(10),q=Z(6),U=Z(0),F=Z(1);(function(){J.create=function(N,O){var Y=(N?N.mouse:null)||(O?O.mouse:null);if(!Y)if(N&&N.render&&N.render.canvas)Y=W.create(N.render.canvas);else if(O&&O.element)Y=W.create(O.element);else Y=W.create(),U.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected");var M=L.create({label:"Mouse Constraint",pointA:Y.position,pointB:{x:0,y:0},length:0.01,stiffness:0.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),P={type:"mouseConstraint",mouse:Y,element:null,body:null,constraint:M,collisionFilter:{category:1,mask:4294967295,group:0}},k=U.extend(P,O);return H.on(N,"beforeUpdate",function(){var E=q.allBodies(N.world);J.update(k,E),J._triggerEvents(k)}),k},J.update=function(N,O){var{mouse:Y,constraint:M,body:P}=N;if(Y.button===0)if(!M.bodyB){for(var k=0;k1?1:0;EC.max.x)C.max.x=b.x;if(x.yC.max.y)C.max.y=b.y}}var v=C.max.x-C.min.x+2*B.x,c=C.max.y-C.min.y+2*B.y,i=E.canvas.height,l=E.canvas.width,o=l/i,r=v/c,K0=1,Z0=1;if(r>o)Z0=r/o;else K0=o/r;if(E.options.hasBounds=!0,E.bounds.min.x=C.min.x,E.bounds.max.x=C.min.x+v*K0,E.bounds.min.y=C.min.y,E.bounds.max.y=C.min.y+c*Z0,I)E.bounds.min.x+=v*0.5-v*K0*0.5,E.bounds.max.x+=v*0.5-v*K0*0.5,E.bounds.min.y+=c*0.5-c*Z0*0.5,E.bounds.max.y+=c*0.5-c*Z0*0.5;if(E.bounds.min.x-=B.x,E.bounds.max.x-=B.x,E.bounds.min.y-=B.y,E.bounds.max.y-=B.y,E.mouse)q.setScale(E.mouse,{x:(E.bounds.max.x-E.bounds.min.x)/E.canvas.width,y:(E.bounds.max.y-E.bounds.min.y)/E.canvas.height}),q.setOffset(E.mouse,E.bounds.min)},J.startViewTransform=function(E){var V=E.bounds.max.x-E.bounds.min.x,B=E.bounds.max.y-E.bounds.min.y,I=V/E.options.width,C=B/E.options.height;E.context.setTransform(E.options.pixelRatio/I,0,0,E.options.pixelRatio/C,0,0),E.context.translate(-E.bounds.min.x,-E.bounds.min.y)},J.endViewTransform=function(E){E.context.setTransform(E.options.pixelRatio,0,0,E.options.pixelRatio,0,0)},J.world=function(E,V){var B=Q.now(),I=E.engine,C=I.world,T=E.canvas,A=E.context,x=E.options,b=E.timing,v=W.allBodies(C),c=W.allConstraints(C),i=x.wireframes?x.wireframeBackground:x.background,l=[],o=[],r,K0={timestamp:I.timing.timestamp};if(z.trigger(E,"beforeRender",K0),E.currentBackground!==i)k(E,i);if(A.globalCompositeOperation="source-in",A.fillStyle="transparent",A.fillRect(0,0,T.width,T.height),A.globalCompositeOperation="source-over",x.hasBounds){for(r=0;r1?1:0;c1?1:0;v1?1:0;A1?1:0;v1?1:0;b1?1:0;b1?1:0;T0){var r=T.contacts[0].vertex.x,K0=T.contacts[0].vertex.y;if(T.contactCount===2)r=(T.contacts[0].vertex.x+T.contacts[1].vertex.x)/2,K0=(T.contacts[0].vertex.y+T.contacts[1].vertex.y)/2;if(A.bodyB===A.supports[0].body||A.bodyA.isStatic===!0)I.moveTo(r-A.normal.x*8,K0-A.normal.y*8);else I.moveTo(r+A.normal.x*8,K0+A.normal.y*8);I.lineTo(r,K0)}}if(C.wireframes)I.strokeStyle="rgba(255,165,0,0.7)";else I.strokeStyle="orange";I.lineWidth=1,I.stroke()},J.separations=function(E,V,B){var I=B,C=E.options,T,A,x,b,v,c,i;I.beginPath();for(c=0;cMath.max(J._maxFrameDelta,z.maxFrameTime))O=z.frameDelta||J._frameDeltaFallback;if(z.frameDeltaSmoothing){z.frameDeltaHistory.push(O),z.frameDeltaHistory=z.frameDeltaHistory.slice(-z.frameDeltaHistorySize);var Y=z.frameDeltaHistory.slice(0).sort(),M=z.frameDeltaHistory.slice(Y.length*J._smoothingLowerBound,Y.length*J._smoothingUpperBound),P=H(M);O=P||O}if(z.frameDeltaSnapping)O=1000/Math.round(1000/O);z.frameDelta=O,z.timeLastTick=q,z.timeBuffer+=z.frameDelta,z.timeBuffer=W.clamp(z.timeBuffer,0,z.frameDelta+F*J._timeBufferMargin),z.lastUpdatesDeferred=0;var k=z.maxUpdates||Math.ceil(z.maxFrameTime/F),E={timestamp:L.timing.timestamp};K.trigger(z,"beforeTick",E),K.trigger(z,"tick",E);var V=W.now();while(F>0&&z.timeBuffer>=F*J._timeBufferMargin){K.trigger(z,"beforeUpdate",E),Q.update(L,F),K.trigger(z,"afterUpdate",E),z.timeBuffer-=F,N+=1;var B=W.now()-U,I=W.now()-V,C=B+J._elapsedNextEstimate*I/N;if(N>=k||C>z.maxFrameTime){z.lastUpdatesDeferred=Math.round(Math.max(0,z.timeBuffer/F-J._timeBufferMargin));break}}if(L.timing.lastUpdatesPerFrame=N,K.trigger(z,"afterTick",E),z.frameDeltaHistory.length>=100){if(z.lastUpdatesDeferred&&Math.round(z.frameDelta/F)>k)W.warnOnce("Matter.Runner: runner reached runner.maxUpdates, see docs.");else if(z.lastUpdatesDeferred)W.warnOnce("Matter.Runner: runner reached runner.maxFrameTime, see docs.");if(typeof z.isFixed<"u")W.warnOnce("Matter.Runner: runner.isFixed is now redundant, see docs.");if(z.deltaMin||z.deltaMax)W.warnOnce("Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs.");if(z.fps!==0)W.warnOnce("Matter.Runner: runner.fps was replaced by runner.delta, see docs.")}},J.stop=function(z){J._cancelNextFrame(z)},J._onNextFrame=function(z,L){if(typeof window<"u"&&window.requestAnimationFrame)z.frameRequestId=window.requestAnimationFrame(L);else throw Error("Matter.Runner: missing required global window.requestAnimationFrame.");return z.frameRequestId},J._cancelNextFrame=function(z){if(typeof window<"u"&&window.cancelAnimationFrame)window.cancelAnimationFrame(z.frameRequestId);else throw Error("Matter.Runner: missing required global window.cancelAnimationFrame.")};var H=function(z){var L=0,q=z.length;for(var U=0;U1;if(!M||x!=M.x||b!=M.y){if(M&&c)E=M.x,V=M.y;else E=0,V=0;var i={x:E+x,y:V+b};if(c||!M)M=i;k.push(i),I=E+x,C=V+b}},A=function(x){var b=x.pathSegTypeAsLetter.toUpperCase();if(b==="Z")return;switch(b){case"M":case"L":case"T":case"C":case"S":case"Q":I=x.x,C=x.y;break;case"H":I=x.x;break;case"V":C=x.y;break}T(I,C,x.pathSegType)};J._svgPathToAbsolute(W),q=W.getTotalLength(),N=[];for(z=0;z"u"},U8=function($){return typeof $==="object"},B9=function($){return $!==!1},E7=function(){return typeof window<"u"},p$=function($){return T1($)||s1($)},_Q=typeof ArrayBuffer==="function"&&ArrayBuffer.isView||function(){},W9=Array.isArray,H7=/(?:-?\.?\d|\.)+/gi,j7=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,a8=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,eZ=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,R7=/[+-]=-?[.\d]+/,gQ=/[^,'"\[\]\s]+/gi,I5=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,C1,W8,U7,M7,x9={},o$={},uQ,mQ=function($){return(o$=IJ($,x9))&&H9},JZ=function($,Z){return console.warn("Invalid property",$,"set to",Z,"Missing plugin? gsap.registerPlugin()")},Z$=function($,Z){return!Z&&console.warn($)},dQ=function($,Z){return $&&(x9[$]=Z)&&o$&&(o$[$]=Z)||x9},K$=function(){return 0},B5={suppressEvents:!0,isStart:!0,kill:!1},l$={suppressEvents:!0,kill:!1},C5={suppressEvents:!0},V7={},w8=[],z7={},cQ,V9={},J7={},AQ=30,s$=[],I7="",B7=function($){var Z=$[0],J,K;if(U8(Z)||T1(Z)||($=[$]),!(J=(Z._gsap||{}).harness)){K=s$.length;while(K--&&!s$[K].targetTest(Z));J=s$[K]}K=$.length;while(K--)$[K]&&($[K]._gsap||($[K]._gsap=new S7($[K],J)))||$.splice(K,1);return $},f8=function($){return $._gsap||B7(s9($))[0]._gsap},C7=function($,Z,J){return(J=$[Z])&&T1(J)?$[Z]():e$(J)&&$.getAttribute&&$.getAttribute(Z)||J},X9=function($,Z){return($=$.split(",")).forEach(Z)||$},w1=function($){return Math.round($*1e5)/1e5||0},u1=function($){return Math.round($*1e7)/1e7||0},t8=function($,Z){var J=Z.charAt(0),K=parseFloat(Z.substr(2));return $=parseFloat($),J==="+"?$+K:J==="-"?$-K:J==="*"?$*K:$/K},k5=function($,Z){var J=Z.length,K=0;for(;$.indexOf(Z[K])<0&&++KH)W=W._prev}if(W)Z._next=W._next,W._next=Z;else Z._next=$[J],$[J]=Z;if(Z._next)Z._next._prev=Z;else $[K]=Z;return Z._prev=W,Z.parent=Z._dp=$,Z},W$=function($,Z,J,K){if(J===void 0)J="_first";if(K===void 0)K="_last";var{_prev:Q,_next:W}=Z;if(Q)Q._next=W;else if($[J]===Z)$[J]=W;if(W)W._prev=Q;else if($[K]===Z)$[K]=Q;Z._next=Z._prev=Z.parent=null},x8=function($,Z){$.parent&&(!Z||$.parent.autoRemoveChildren)&&$.parent.remove&&$.parent.remove($),$._act=0},o8=function($,Z){if($&&(!Z||Z._end>$._dur||Z._start<0)){var J=$;while(J)J._dirty=1,J=J.parent}return $},A5=function($){var Z=$.parent;while(Z&&Z.parent)Z._dirty=1,Z.totalDuration(),Z=Z.parent;return $},L7=function($,Z,J,K){return $._startAt&&(Z9?$._startAt.revert(l$):$.vars.immediateRender&&!$.vars.autoRevert||$._startAt.render(Z,!0,K))},T5=function G($){return!$||$._ts&&G($.parent)},wQ=function($){return $._repeat?BJ($._tTime,$=$.duration()+$._rDelay)*$:0},BJ=function($,Z){var J=Math.floor($=u1($/Z));return $&&J===$?J-1:J},a$=function($,Z){return($-Z._start)*Z._ts+(Z._ts>=0?0:Z._dirty?Z.totalDuration():Z._tDur)},$Z=function($){return $._end=u1($._start+($._tDur/Math.abs($._ts||$._rts||N1)||0))},ZZ=function($,Z){var J=$._dp;if(J&&J.smoothChildTiming&&$._ts)$._start=u1(J._time-($._ts>0?Z/$._ts:(($._dirty?$.totalDuration():$._tDur)-Z)/-$._ts)),$Z($),J._dirty||o8(J,$);return $},oQ=function($,Z){var J;if(Z._time||!Z._dur&&Z._initted||Z._start<$._time&&(Z._dur||!Z.add)){if(J=a$($.rawTime(),Z),!Z._dur||H$(0,Z.totalDuration(),J)-Z._tTime>N1)Z.render(J,!0)}if(o8($,Z)._dp&&$._initted&&$._time>=$._dur&&$._ts){if($._dur<$.duration()){J=$;while(J._dp)J.rawTime()>=0&&J.totalTime(J._tTime),J=J._dp}$._zTime=-N1}},H8=function($,Z,J,K){return Z.parent&&x8(Z),Z._start=u1((j8(J)?J:J||$!==C1?p9($,J,Z):$._time)+Z._delay),Z._end=u1(Z._start+(Z.totalDuration()/Math.abs(Z.timeScale())||0)),iQ($,Z,"_first","_last",$._sort?"_start":0),q7(Z)||($._recent=Z),K||oQ($,Z),$._ts<0&&ZZ($,$._tTime),$},nQ=function($,Z){return(x9.ScrollTrigger||JZ("scrollTrigger",Z))&&x9.ScrollTrigger.create(Z,$)},rQ=function($,Z,J,K,Q){if(w7($,Z,Q),!$._initted)return 1;if(!J&&$._pt&&!Z9&&($._dur&&$.vars.lazy!==!1||!$._dur&&$.vars.lazy)&&cQ!==I9.frame)return w8.push($),$._lazy=[Q,K],1},w5=function G($){var Z=$.parent;return Z&&Z._ts&&Z._initted&&!Z._lock&&(Z.rawTime()<0||G(Z))},q7=function($){var Z=$.data;return Z==="isFromStart"||Z==="isStart"},f5=function($,Z,J,K){var Q=$.ratio,W=Z<0||!Z&&(!$._start&&w5($)&&!(!$._initted&&q7($))||($._ts<0||$._dp._ts<0)&&!q7($))?0:1,H=$._rDelay,z=0,L,q,U;if(H&&$._repeat){if(z=H$(0,$._tDur,Z),q=BJ(z,H),$._yoyo&&q&1&&(W=1-W),q!==BJ($._tTime,H))Q=1-W,$.vars.repeatRefresh&&$._initted&&$.invalidate()}if(W!==Q||Z9||K||$._zTime===N1||!Z&&$._zTime){if(!$._initted&&rQ($,Z,K,J,z))return;U=$._zTime,$._zTime=Z||(J?N1:0),J||(J=Z&&!U),$.ratio=W,$._from&&(W=1-W),$._time=0,$._tTime=z,L=$._pt;while(L)L.r(W,L.d),L=L._next;if(Z<0&&L7($,Z,J,!0),$._onUpdate&&!J&&f9($,"onUpdate"),z&&$._repeat&&!J&&$.parent&&f9($,"onRepeat"),(Z>=$._tDur||Z<0)&&$.ratio===W){if(W&&x8($,1),!J&&!Z9)f9($,W?"onComplete":"onReverseComplete",!0),$._prom&&$._prom()}}else if(!$._zTime)$._zTime=Z},x5=function($,Z,J){var K;if(J>Z){K=$._first;while(K&&K._start<=J){if(K.data==="isPause"&&K._start>Z)return K;K=K._next}}else{K=$._last;while(K&&K._start>=J){if(K.data==="isPause"&&K._start0&&!K&&ZZ($,$._tTime=$._tDur*H),$.parent&&$Z($),J||o8($.parent,$),$},fQ=function($){return $ instanceof $9?o8($):CJ($,$._dur)},h5={_start:0,endTime:K$,totalDuration:K$},p9=function G($,Z,J){var K=$.labels,Q=$._recent||h5,W=$.duration()>=l9?Q.endTime(!1):$._dur,H,z,L;if(s1(Z)&&(isNaN(Z)||(Z in K))){if(z=Z.charAt(0),L=Z.substr(-1)==="%",H=Z.indexOf("="),z==="<"||z===">")return H>=0&&(Z=Z.replace(/=/,"")),(z==="<"?Q._start:Q.endTime(Q._repeat>=0))+(parseFloat(Z.substr(1))||0)*(L?(H<0?Q:J).totalDuration()/100:1);if(H<0)return Z in K||(K[Z]=W),K[Z];if(z=parseFloat(Z.charAt(H-1)+Z.substr(H+1)),L&&J)z=z/100*(W9(J)?J[0]:J).totalDuration();return H>1?G($,Z.substr(0,H-1),J)+z:W+z}return Z==null?W:+Z},J$=function($,Z,J){var K=j8(Z[1]),Q=(K?2:1)+($<2?0:1),W=Z[Q],H,z;if(K&&(W.duration=Z[1]),W.parent=J,$){H=W,z=J;while(z&&!("immediateRender"in H))H=z.vars.defaults||{},z=B9(z.vars.inherit)&&z.parent;W.immediateRender=B9(H.immediateRender),$<2?W.runBackwards=1:W.startAt=Z[Q-1]}return new v1(Z[0],W,Z[Q+1])},h8=function($,Z){return $||$===0?Z($):Z},H$=function($,Z,J){return J<$?$:J>Z?Z:J},K9=function($,Z){return!s1($)||!(Z=I5.exec($))?"":Z[1]},b5=function($,Z,J){return h8(J,function(K){return H$($,Z,K)})},F7=[].slice,aQ=function($,Z){return $&&U8($)&&"length"in $&&(!Z&&!$.length||($.length-1 in $)&&U8($[0]))&&!$.nodeType&&$!==W8},y5=function($,Z,J){if(J===void 0)J=[];return $.forEach(function(K){var Q;return s1(K)&&!Z||aQ(K,1)?(Q=J).push.apply(Q,s9(K)):J.push(K)})||J},s9=function($,Z,J){return B1&&!Z&&B1.selector?B1.selector($):s1($)&&!J&&(U7||!kJ())?F7.call((Z||M7).querySelectorAll($),0):W9($)?y5($,J):aQ($)?F7.call($,0):$?[$]:[]},N7=function($){return $=s9($)[0]||Z$("Invalid scope")||{},function(Z){var J=$.current||$.nativeElement||$;return s9(Z,J.querySelectorAll?J:J===$?Z$("Invalid scope")||M7.createElement("div"):$)}},tQ=function($){return $.sort(function(){return 0.5-Math.random()})},eQ=function($){if(T1($))return $;var Z=U8($)?$:{each:$},J=n8(Z.ease),K=Z.from||0,Q=parseFloat(Z.base)||0,W={},H=K>0&&K<1,z=isNaN(K)||H,L=Z.axis,q=K,U=K;if(s1(K))q=U={center:0.5,edges:0.5,end:1}[K]||0;else if(!H&&z)q=K[0],U=K[1];return function(F,N,O){var Y=(O||Z).length,M=W[Y],P,k,E,V,B,I,C,T,A;if(!M){if(A=Z.grid==="auto"?0:(Z.grid||[1,l9])[1],!A){C=-l9;while(C<(C=O[A++].getBoundingClientRect().left)&&AC&&(C=B),BY?Y-1:!L?Math.max(A,Y/A):L==="y"?Y/A:A)||0)*(K==="edges"?-1:1),M.b=Y<0?Q-Y:Q,M.u=K9(Z.amount||Z.each)||0,J=J&&Y<0?U6(J):J}return Y=(M[F]-M.min)/M.max||0,u1(M.b+(J?J(Y):Y)*M.v)+M.u}},X7=function($){var Z=Math.pow(10,(($+"").split(".")[1]||"").length);return function(J){var K=u1(Math.round(parseFloat(J)/$)*$*Z);return(K-K%1)/Z+(j8(J)?0:K9(J))}},J6=function($,Z){var J=W9($),K,Q;if(!J&&U8($))if(K=J=$.radius||l9,$.values){if($=s9($.values),Q=!j8($[0]))K*=K}else $=X7($.increment);return h8(Z,!J?X7($):T1($)?function(W){return Q=$(W),Math.abs(Q-W)<=K?Q:W}:function(W){var H=parseFloat(Q?W.x:W),z=parseFloat(Q?W.y:0),L=l9,q=0,U=$.length,F,N;while(U--){if(Q)F=$[U].x-H,N=$[U].y-z,F=F*F+N*N;else F=Math.abs($[U]-H);if(FK?Q-W:W)})},PJ=function($){var Z=0,J="",K,Q,W,H;while(~(K=$.indexOf("random(",Z)))W=$.indexOf(")",K),H=$.charAt(K+7)==="[",Q=$.substr(K+7,W-K-7).match(H?gQ:H7),J+=$.substr(Z,K-Z)+$6(H?Q:+Q[0],H?0:+Q[1],+Q[2]||0.00001),Z=W+1;return J+$.substr(Z,$.length-Z)},K6=function($,Z,J,K,Q){var W=Z-$,H=K-J;return h8(Q,function(z){return J+((z-$)/W*H||0)})},d5=function G($,Z,J,K){var Q=isNaN($+Z)?0:function(N){return(1-N)*$+N*Z};if(!Q){var W=s1($),H={},z,L,q,U,F;if(J===!0&&(K=1)&&(J=null),W)$={p:$},Z={p:Z};else if(W9($)&&!W9(Z)){q=[],U=$.length,F=U-2;for(L=1;L(H=Math.abs(H)))z=W,Q=H;return z},f9=function($,Z,J){var K=$.vars,Q=K[Z],W=B1,H=$._ctx,z,L,q;if(!Q)return;return z=K[Z+"Params"],L=K.callbackScope||$,J&&w8.length&&n$(),H&&(B1=H),q=z?Q.apply(L,z):Q.call(L),B1=W,q},aJ=function($){return x8($),$.scrollTrigger&&$.scrollTrigger.kill(!!Z9),$.progress()<1&&f9($,"onInterrupt"),$},MJ,Q6=[],G6=function($){if(!$)return;if($=!$.name&&$.default||$,E7()||$.headless){var Z=$.name,J=T1($),K=Z&&!J&&$.init?function(){this._props=[]}:$,Q={init:K$,render:h7,add:A7,kill:QH,modifier:KH,rawVars:0},W={targetTest:0,get:0,getSetter:KZ,aliases:{},register:0};if(kJ(),$!==K){if(V9[Z])return;if(k9(K,k9(r$($,Q),W)),IJ(K.prototype,IJ(Q,r$($,W))),V9[K.prop=Z]=K,$.targetTest)s$.push(K),V7[Z]=1;Z=(Z==="css"?"CSS":Z.charAt(0).toUpperCase()+Z.substr(1))+"Plugin"}dQ(Z,K),$.register&&$.register(H9,K,O9)}else Q6.push($)},F1=255,tJ={aqua:[0,F1,F1],lime:[0,F1,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,F1],navy:[0,0,128],white:[F1,F1,F1],olive:[128,128,0],yellow:[F1,F1,0],orange:[F1,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[F1,0,0],pink:[F1,192,203],cyan:[0,F1,F1],transparent:[F1,F1,F1,0]},$7=function($,Z,J){return $+=$<0?1:$>1?-1:0,($*6<1?Z+(J-Z)*$*6:$<0.5?J:$*3<2?Z+(J-Z)*(0.6666666666666666-$)*6:Z)*F1+0.5|0},W6=function($,Z,J){var K=!$?tJ.black:j8($)?[$>>16,$>>8&F1,$&F1]:0,Q,W,H,z,L,q,U,F,N,O;if(!K){if($.substr(-1)===",")$=$.substr(0,$.length-1);if(tJ[$])K=tJ[$];else if($.charAt(0)==="#"){if($.length<6)Q=$.charAt(1),W=$.charAt(2),H=$.charAt(3),$="#"+Q+Q+W+W+H+H+($.length===5?$.charAt(4)+$.charAt(4):"");if($.length===9)return K=parseInt($.substr(1,6),16),[K>>16,K>>8&F1,K&F1,parseInt($.substr(7),16)/255];$=parseInt($.substr(1),16),K=[$>>16,$>>8&F1,$&F1]}else if($.substr(0,3)==="hsl"){if(K=O=$.match(H7),!Z)z=+K[0]%360/360,L=+K[1]/100,q=+K[2]/100,W=q<=0.5?q*(L+1):q+L-q*L,Q=q*2-W,K.length>3&&(K[3]*=1),K[0]=$7(z+0.3333333333333333,Q,W),K[1]=$7(z,Q,W),K[2]=$7(z-0.3333333333333333,Q,W);else if(~$.indexOf("="))return K=$.match(j7),J&&K.length<4&&(K[3]=1),K}else K=$.match(H7)||tJ.transparent;K=K.map(Number)}if(Z&&!O){if(Q=K[0]/F1,W=K[1]/F1,H=K[2]/F1,U=Math.max(Q,W,H),F=Math.min(Q,W,H),q=(U+F)/2,U===F)z=L=0;else N=U-F,L=q>0.5?N/(2-U-F):N/(U+F),z=U===Q?(W-H)/N+(W$||P<0)&&(J+=P-Z),K+=P,B=K-J,E=B-W,E>0||k)I=++U.frame,F=B-U.time*1000,U.time=B=B/1000,W+=E+(E>=Q?4:Q-E),V=1;if(k||(z=L(Y)),V)for(N=0;N=P&&N--},_listeners:H},U}(),kJ=function(){return!Q$&&I9.wake()},s0={},p5=/^[\d.\-M][\d.\-,\s]/,l5=/["']/g,s5=function($){var Z={},J=$.substr(1,$.length-3).split(":"),K=J[0],Q=1,W=J.length,H,z,L;for(;Q1&&J.config?J.config.apply(null,~$.indexOf("{")?[s5(Z[1])]:i5($).split(",").map(lQ)):s0._CE&&p5.test($)?s0._CE("",$):J},U6=function($){return function(Z){return 1-$(1-Z)}},z6=function G($,Z){var J=$._first,K;while(J){if(J instanceof $9)G(J,Z);else if(J.vars.yoyoEase&&(!J._yoyo||!J._repeat)&&J._yoyo!==Z)if(J.timeline)G(J.timeline,Z);else K=J._ease,J._ease=J._yEase,J._yEase=K,J._yoyo=Z;J=J._next}},n8=function($,Z){return!$?Z:(T1($)?$:s0[$]||o5($))||Z},e8=function($,Z,J,K){if(J===void 0)J=function(z){return 1-Z(1-z)};if(K===void 0)K=function(z){return z<0.5?Z(z*2)/2:1-Z((1-z)*2)/2};var Q={easeIn:Z,easeOut:J,easeInOut:K},W;return X9($,function(H){s0[H]=x9[H]=Q,s0[W=H.toLowerCase()]=J;for(var z in Q)s0[W+(z==="easeIn"?".in":z==="easeOut"?".out":".inOut")]=s0[H+"."+z]=Q[z]}),Q},L6=function($){return function(Z){return Z<0.5?(1-$(1-Z*2))/2:0.5+$((Z-0.5)*2)/2}},Z7=function G($,Z,J){var K=Z>=1?Z:1,Q=(J||($?0.3:0.45))/(Z<1?Z:1),W=Q/W7*(Math.asin(1/K)||0),H=function(q){return q===1?1:K*Math.pow(2,-10*q)*V5((q-W)*Q)+1},z=$==="out"?H:$==="in"?function(L){return 1-H(1-L)}:L6(H);return Q=W7/Q,z.config=function(L,q){return G($,L,q)},z},K7=function G($,Z){if(Z===void 0)Z=1.70158;var J=function(W){return W?--W*W*((Z+1)*W+Z)+1:0},K=$==="out"?J:$==="in"?function(Q){return 1-J(1-Q)}:L6(J);return K.config=function(Q){return G($,Q)},K};X9("Linear,Quad,Cubic,Quart,Quint,Strong",function(G,$){var Z=$<5?$+1:$;e8(G+",Power"+(Z-1),$?function(J){return Math.pow(J,Z)}:function(J){return J},function(J){return 1-Math.pow(1-J,Z)},function(J){return J<0.5?Math.pow(J*2,Z)/2:1-Math.pow((1-J)*2,Z)/2})});s0.Linear.easeNone=s0.none=s0.Linear.easeIn;e8("Elastic",Z7("in"),Z7("out"),Z7());(function(G,$){var Z=1/$,J=2*Z,K=2.5*Z,Q=function(H){return H0?J+(J+this._rDelay)*this._repeat:J):this.totalDuration()&&this._dur},$.totalDuration=function(J){if(!arguments.length)return this._tDur;return this._dirty=0,CJ(this,this._repeat<0?J:(J-this._repeat*this._rDelay)/(this._repeat+1))},$.totalTime=function(J,K){if(kJ(),!arguments.length)return this._tTime;var Q=this._dp;if(Q&&Q.smoothChildTiming&&this._ts){ZZ(this,J),!Q._dp||Q.parent||oQ(Q,this);while(Q&&Q.parent){if(Q.parent._time!==Q._start+(Q._ts>=0?Q._tTime/Q._ts:(Q.totalDuration()-Q._tTime)/-Q._ts))Q.totalTime(Q._tTime,!0);Q=Q.parent}if(!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&J0||!this._tDur&&!J))H8(this._dp,this,this._start-this._delay)}if(this._tTime!==J||!this._dur&&!K||this._initted&&Math.abs(this._zTime)===N1||!J&&!this._initted&&(this.add||this._ptLookup))this._ts||(this._pTime=J),pQ(this,J,K);return this},$.time=function(J,K){return arguments.length?this.totalTime(Math.min(this.totalDuration(),J+wQ(this))%(this._dur+this._rDelay)||(J?this._dur:0),K):this._time},$.totalProgress=function(J,K){return arguments.length?this.totalTime(this.totalDuration()*J,K):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},$.progress=function(J,K){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-J:J)+wQ(this),K):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},$.iteration=function(J,K){var Q=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(J-1)*Q,K):this._repeat?BJ(this._tTime,Q)+1:1},$.timeScale=function(J,K){if(!arguments.length)return this._rts===-N1?0:this._rts;if(this._rts===J)return this;var Q=this.parent&&this._ts?a$(this.parent._time,this):this._tTime;return this._rts=+J||0,this._ts=this._ps||J===-N1?0:this._rts,this.totalTime(H$(-Math.abs(this._delay),this.totalDuration(),Q),K!==!1),$Z(this),A5(this)},$.paused=function(J){if(!arguments.length)return this._ps;if(this._ps!==J)if(this._ps=J,J)this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0;else kJ(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==N1&&(this._tTime-=N1));return this},$.startTime=function(J){if(arguments.length){this._start=J;var K=this.parent||this._dp;return K&&(K._sort||!this.parent)&&H8(K,this,J-this._delay),this}return this._start},$.endTime=function(J){return this._start+(B9(J)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},$.rawTime=function(J){var K=this.parent||this._dp;return!K?this._tTime:J&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):!this._ts?this._tTime:a$(K.rawTime(J),this)},$.revert=function(J){if(J===void 0)J=C5;var K=Z9;if(Z9=J,k7(this))this.timeline&&this.timeline.revert(J),this.totalTime(-0.01,J.suppressEvents);return this.data!=="nested"&&J.kill!==!1&&this.kill(),Z9=K,this},$.globalTime=function(J){var K=this,Q=arguments.length?J:K.rawTime();while(K)Q=K._start+Q/(Math.abs(K._ts)||1),K=K._dp;return!this.parent&&this._sat?this._sat.globalTime(J):Q},$.repeat=function(J){if(arguments.length)return this._repeat=J===1/0?-2:J,fQ(this);return this._repeat===-2?1/0:this._repeat},$.repeatDelay=function(J){if(arguments.length){var K=this._time;return this._rDelay=J,fQ(this),K?this.time(K):this}return this._rDelay},$.yoyo=function(J){if(arguments.length)return this._yoyo=J,this;return this._yoyo},$.seek=function(J,K){return this.totalTime(p9(this,J),B9(K))},$.restart=function(J,K){return this.play().totalTime(J?-this._delay:0,B9(K)),this._dur||(this._zTime=-N1),this},$.play=function(J,K){return J!=null&&this.seek(J,K),this.reversed(!1).paused(!1)},$.reverse=function(J,K){return J!=null&&this.seek(J||this.totalDuration(),K),this.reversed(!0).paused(!1)},$.pause=function(J,K){return J!=null&&this.seek(J,K),this.paused(!0)},$.resume=function(){return this.paused(!1)},$.reversed=function(J){if(arguments.length)return!!J!==this.reversed()&&this.timeScale(-this._rts||(J?-N1:0)),this;return this._rts<0},$.invalidate=function(){return this._initted=this._act=0,this._zTime=-N1,this},$.isActive=function(){var J=this.parent||this._dp,K=this._start,Q;return!!(!J||this._ts&&this._initted&&J.isActive()&&(Q=J.rawTime(!0))>=K&&Q1){if(!K)delete W[J];else W[J]=K,Q&&(W[J+"Params"]=Q),J==="onUpdate"&&(this._onUpdate=K);return this}return W[J]},$.then=function(J){var K=this;return new Promise(function(Q){var W=T1(J)?J:sQ,H=function(){var L=K.then;K.then=null,T1(W)&&(W=W(K))&&(W.then||W===K)&&(K.then=L),Q(W),K.then=L};if(K._initted&&K.totalProgress()===1&&K._ts>=0||!K._tTime&&K._ts<0)H();else K._prom=H})},$.kill=function(){aJ(this)},G}();k9(G$.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:-N1,_prom:0,_ps:!1,_rts:1});var $9=function(G){yQ($,G);function $(J,K){var Q;if(J===void 0)J={};return Q=G.call(this,J)||this,Q.labels={},Q.smoothChildTiming=!!J.smoothChildTiming,Q.autoRemoveChildren=!!J.autoRemoveChildren,Q._sort=B9(J.sortChildren),C1&&H8(J.parent||C1,D8(Q),K),J.reversed&&Q.reverse(),J.paused&&Q.paused(!0),J.scrollTrigger&&nQ(D8(Q),J.scrollTrigger),Q}var Z=$.prototype;return Z.to=function(K,Q,W){return J$(0,arguments,this),this},Z.from=function(K,Q,W){return J$(1,arguments,this),this},Z.fromTo=function(K,Q,W,H){return J$(2,arguments,this),this},Z.set=function(K,Q,W){return Q.duration=0,Q.parent=this,eJ(Q).repeatDelay||(Q.repeat=0),Q.immediateRender=!!Q.immediateRender,new v1(K,Q,p9(this,W),1),this},Z.call=function(K,Q,W){return H8(this,v1.delayedCall(0,K,Q),W)},Z.staggerTo=function(K,Q,W,H,z,L,q){return W.duration=Q,W.stagger=W.stagger||H,W.onComplete=L,W.onCompleteParams=q,W.parent=this,new v1(K,W,p9(this,z)),this},Z.staggerFrom=function(K,Q,W,H,z,L,q){return W.runBackwards=1,eJ(W).immediateRender=B9(W.immediateRender),this.staggerTo(K,Q,W,H,z,L,q)},Z.staggerFromTo=function(K,Q,W,H,z,L,q,U){return H.startAt=W,eJ(H).immediateRender=B9(H.immediateRender),this.staggerTo(K,Q,H,z,L,q,U)},Z.render=function(K,Q,W){var H=this._time,z=this._dirty?this.totalDuration():this._tDur,L=this._dur,q=K<=0?0:u1(K),U=this._zTime<0!==K<0&&(this._initted||!L),F,N,O,Y,M,P,k,E,V,B,I,C;if(this!==C1&&q>z&&K>=0&&(q=z),q!==this._tTime||W||U){if(H!==this._time&&L)q+=this._time-H,K+=this._time-H;if(F=q,V=this._start,E=this._ts,P=!E,U)L||(H=this._zTime),(K||!Q)&&(this._zTime=K);if(this._repeat){if(I=this._yoyo,M=L+this._rDelay,this._repeat<-1&&K<0)return this.totalTime(M*100+K,Q,W);if(F=u1(q%M),q===z)Y=this._repeat,F=L;else{if(B=u1(q/M),Y=~~B,Y&&Y===B)F=L,Y--;F>L&&(F=L)}if(B=BJ(this._tTime,M),!H&&this._tTime&&B!==Y&&this._tTime-B*M-this._dur<=0&&(B=Y),I&&Y&1)F=L-F,C=1;if(Y!==B&&!this._lock){var T=I&&B&1,A=T===(I&&Y&1);if(Y=H&&K>=0){N=this._first;while(N){if(O=N._next,(N._act||F>=N._start)&&N._ts&&k!==N){if(N.parent!==this)return this.render(K,Q,W);if(N.render(N._ts>0?(F-N._start)*N._ts:(N._dirty?N.totalDuration():N._tDur)+(F-N._start)*N._ts,Q,W),F!==this._time||!this._ts&&!P){k=0,O&&(q+=this._zTime=-N1);break}}N=O}}else{N=this._last;var x=K<0?K:F;while(N){if(O=N._prev,(N._act||x<=N._end)&&N._ts&&k!==N){if(N.parent!==this)return this.render(K,Q,W);if(N.render(N._ts>0?(x-N._start)*N._ts:(N._dirty?N.totalDuration():N._tDur)+(x-N._start)*N._ts,Q,W||Z9&&k7(N)),F!==this._time||!this._ts&&!P){k=0,O&&(q+=this._zTime=x?-N1:N1);break}}N=O}}if(k&&!Q){if(this.pause(),k.render(F>=H?0:-N1)._zTime=F>=H?1:-1,this._ts)return this._start=V,$Z(this),this.render(K,Q,W)}if(this._onUpdate&&!Q&&f9(this,"onUpdate",!0),q===z&&this._tTime>=this.totalDuration()||!q&&H){if(V===this._start||Math.abs(E)!==Math.abs(this._ts)){if(!this._lock){if((K||!L)&&(q===z&&this._ts>0||!q&&this._ts<0)&&x8(this,1),!Q&&!(K<0&&!H)&&(q||H||!z))f9(this,q===z&&K>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(q0)&&this._prom()}}}}return this},Z.add=function(K,Q){var W=this;if(j8(Q)||(Q=p9(this,Q,K)),!(K instanceof G$)){if(W9(K))return K.forEach(function(H){return W.add(H,Q)}),this;if(s1(K))return this.addLabel(K,Q);if(T1(K))K=v1.delayedCall(0,K);else return this}return this!==K?H8(this,K,Q):this},Z.getChildren=function(K,Q,W,H){if(K===void 0)K=!0;if(Q===void 0)Q=!0;if(W===void 0)W=!0;if(H===void 0)H=-l9;var z=[],L=this._first;while(L){if(L._start>=H)if(L instanceof v1)Q&&z.push(L);else W&&z.push(L),K&&z.push.apply(z,L.getChildren(!0,Q,W));L=L._next}return z},Z.getById=function(K){var Q=this.getChildren(1,1,1),W=Q.length;while(W--)if(Q[W].vars.id===K)return Q[W]},Z.remove=function(K){if(s1(K))return this.removeLabel(K);if(T1(K))return this.killTweensOf(K);if(K.parent===this&&W$(this,K),K===this._recent)this._recent=this._last;return o8(this)},Z.totalTime=function(K,Q){if(!arguments.length)return this._tTime;if(this._forcing=1,!this._dp&&this._ts)this._start=u1(I9.time-(this._ts>0?K/this._ts:(this.totalDuration()-K)/-this._ts));return G.prototype.totalTime.call(this,K,Q),this._forcing=0,this},Z.addLabel=function(K,Q){return this.labels[K]=p9(this,Q),this},Z.removeLabel=function(K){return delete this.labels[K],this},Z.addPause=function(K,Q,W){var H=v1.delayedCall(0,Q||K$,W);return H.data="isPause",this._hasPause=1,H8(this,H,p9(this,K))},Z.removePause=function(K){var Q=this._first;K=p9(this,K);while(Q){if(Q._start===K&&Q.data==="isPause")x8(Q);Q=Q._next}},Z.killTweensOf=function(K,Q,W){var H=this.getTweensOf(K,W),z=H.length;while(z--)T8!==H[z]&&H[z].kill(K,Q);return this},Z.getTweensOf=function(K,Q){var W=[],H=s9(K),z=this._first,L=j8(Q),q;while(z){if(z instanceof v1){if(k5(z._targets,H)&&(L?(!T8||z._initted&&z._ts)&&z.globalTime(0)<=Q&&z.globalTime(z.totalDuration())>Q:!Q||z.isActive()))W.push(z)}else if((q=z.getTweensOf(H,Q)).length)W.push.apply(W,q);z=z._next}return W},Z.tweenTo=function(K,Q){Q=Q||{};var W=this,H=p9(W,K),z=Q,L=z.startAt,q=z.onStart,U=z.onStartParams,F=z.immediateRender,N,O=v1.to(W,k9({ease:Q.ease||"none",lazy:!1,immediateRender:!1,time:H,overwrite:"auto",duration:Q.duration||Math.abs((H-(L&&"time"in L?L.time:W._time))/W.timeScale())||N1,onStart:function(){if(W.pause(),!N){var M=Q.duration||Math.abs((H-(L&&"time"in L?L.time:W._time))/W.timeScale());O._dur!==M&&CJ(O,M,0,1).render(O._time,!0,!0),N=1}q&&q.apply(O,U||[])}},Q));return F?O.render(0):O},Z.tweenFromTo=function(K,Q,W){return this.tweenTo(Q,k9({startAt:{time:p9(this,K)}},W))},Z.recent=function(){return this._recent},Z.nextLabel=function(K){if(K===void 0)K=this._time;return xQ(this,p9(this,K))},Z.previousLabel=function(K){if(K===void 0)K=this._time;return xQ(this,p9(this,K),1)},Z.currentLabel=function(K){return arguments.length?this.seek(K,!0):this.previousLabel(this._time+N1)},Z.shiftChildren=function(K,Q,W){if(W===void 0)W=0;var H=this._first,z=this.labels,L;while(H){if(H._start>=W)H._start+=K,H._end+=K;H=H._next}if(Q){for(L in z)if(z[L]>=W)z[L]+=K}return o8(this)},Z.invalidate=function(K){var Q=this._first;this._lock=0;while(Q)Q.invalidate(K),Q=Q._next;return G.prototype.invalidate.call(this,K)},Z.clear=function(K){if(K===void 0)K=!0;var Q=this._first,W;while(Q)W=Q._next,this.remove(Q),Q=W;return this._dp&&(this._time=this._tTime=this._pTime=0),K&&(this.labels={}),o8(this)},Z.totalDuration=function(K){var Q=0,W=this,H=W._last,z=l9,L,q,U;if(arguments.length)return W.timeScale((W._repeat<0?W.duration():W.totalDuration())/(W.reversed()?-K:K));if(W._dirty){U=W.parent;while(H){if(L=H._prev,H._dirty&&H.totalDuration(),q=H._start,q>z&&W._sort&&H._ts&&!W._lock)W._lock=1,H8(W,H,q-H._delay,1)._lock=0;else z=q;if(q<0&&H._ts){if(Q-=q,!U&&!W._dp||U&&U.smoothChildTiming)W._start+=q/W._ts,W._time-=q,W._tTime-=q;W.shiftChildren(-q,!1,-1/0),z=0}H._end>Q&&H._ts&&(Q=H._end),H=L}CJ(W,W===C1&&W._time>Q?W._time:Q,1,1),W._dirty=0}return W._tDur},$.updateRoot=function(K){if(C1._ts)pQ(C1,a$(K,C1)),cQ=I9.frame;if(I9.frame>=AQ){AQ+=C9.autoSleep||120;var Q=C1._first;if(!Q||!Q._ts){if(C9.autoSleep&&I9._listeners.length<2){while(Q&&!Q._ts)Q=Q._next;Q||I9.sleep()}}}},$}(G$);k9($9.prototype,{_lock:0,_hasPause:0,_forcing:0});var n5=function($,Z,J,K,Q,W,H){var z=new O9(this._pt,$,Z,0,1,x7,null,Q),L=0,q=0,U,F,N,O,Y,M,P,k;if(z.b=J,z.e=K,J+="",K+="",P=~K.indexOf("random("))K=PJ(K);if(W)k=[J,K],W(k,$,Z),J=k[0],K=k[1];F=J.match(eZ)||[];while(U=eZ.exec(K)){if(O=U[0],Y=K.substring(L,U.index),N)N=(N+1)%5;else if(Y.substr(-5)==="rgba(")N=1;if(O!==F[q++])M=parseFloat(F[q-1])||0,z._pt={_next:z._pt,p:Y||q===1?Y:",",s:M,c:O.charAt(1)==="="?t8(M,O)-M:parseFloat(O)-M,m:N&&N<4?Math.round:0},L=eZ.lastIndex}if(z.c=L")}),V.duration();else{I={};for(T in O)T==="ease"||T==="easeEach"||e5(T,O[T],I,O.easeEach);for(T in I){c=I[T].sort(function(o,r){return o.t-r.t}),v=0;for(B=0;Bz-N1&&!q?z:KL)F=L;if(P=this._yoyo&&O&1,P)V=this._yEase,F=L-F;if(M=BJ(this._tTime,Y),F===H&&!W&&this._initted&&O===M)return this._tTime=U,this;if(O!==M){if(E&&this._yEase&&z6(E,P),this.vars.repeatRefresh&&!P&&!this._lock&&F!==Y&&this._initted)this._lock=W=1,this.render(u1(Y*O),!0).invalidate()._lock=0}}if(!this._initted){if(rQ(this,q?K:F,W,Q,U))return this._tTime=0,this;if(H!==this._time&&!(W&&this.vars.repeatRefresh&&O!==M))return this;if(L!==this._dur)return this.render(K,Q,W)}if(this._tTime=U,this._time=F,!this._act&&this._ts)this._act=1,this._lazy=0;if(this.ratio=k=(V||this._ease)(F/L),this._from)this.ratio=k=1-k;if(!H&&U&&!Q&&!M){if(f9(this,"onStart"),this._tTime!==U)return this}N=this._pt;while(N)N.r(k,N.d),N=N._next;if(E&&E.render(K<0?K:E._dur*E._ease(F/this._dur),Q,W)||this._startAt&&(this._zTime=K),this._onUpdate&&!Q)q&&L7(this,K,Q,W),f9(this,"onUpdate");if(this._repeat&&O!==M&&this.vars.onRepeat&&!Q&&this.parent&&f9(this,"onRepeat"),(U===this._tDur||!U)&&this._tTime===U){if(q&&!this._onUpdate&&L7(this,K,!0,!0),(K||!L)&&(U===this._tDur&&this._ts>0||!U&&this._ts<0)&&x8(this,1),!Q&&!(q&&!H)&&(U||H||P))f9(this,U===z?"onComplete":"onReverseComplete",!0),this._prom&&!(U0)&&this._prom()}}return this},Z.targets=function(){return this._targets},Z.invalidate=function(K){return(!K||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(K),G.prototype.invalidate.call(this,K)},Z.resetTo=function(K,Q,W,H,z){Q$||I9.wake(),this._ts||this.play();var L=Math.min(this._dur,(this._dp._time-this._start)*this._ts),q;if(this._initted||w7(this,L),q=this._ease(L/this._dur),a5(this,K,Q,W,H,q,L,z))return this.resetTo(K,Q,W,H,1);return ZZ(this,0),this.parent||iQ(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0)},Z.kill=function(K,Q){if(Q===void 0)Q="all";if(!K&&(!Q||Q==="all"))return this._lazy=this._pt=0,this.parent?aJ(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Z9),this;if(this.timeline){var W=this.timeline.totalDuration();return this.timeline.killTweensOf(K,Q,T8&&T8.vars.overwrite!==!0)._first||aJ(this),this.parent&&W!==this.timeline.totalDuration()&&CJ(this,this._dur*this.timeline._tDur/W,0,1),this}var H=this._targets,z=K?s9(K):H,L=this._ptLookup,q=this._pt,U,F,N,O,Y,M,P;if((!Q||Q==="all")&&S5(H,z))return Q==="all"&&(this._pt=0),aJ(this);if(U=this._op=this._op||[],Q!=="all"){if(s1(Q))Y={},X9(Q,function(k){return Y[k]=1}),Q=Y;Q=t5(H,Q)}P=H.length;while(P--)if(~z.indexOf(H[P])){if(F=L[P],Q==="all")U[P]=Q,O=F,N={};else N=U[P]=U[P]||{},O=Q;for(Y in O){if(M=F&&F[Y],M){if(!("kill"in M.d)||M.d.kill(Y)===!0)W$(this,M,"_pt");delete F[Y]}if(N!=="all")N[Y]=1}}return this._initted&&!this._pt&&q&&aJ(this),this},$.to=function(K,Q){return new $(K,Q,arguments[2])},$.from=function(K,Q){return J$(1,arguments)},$.delayedCall=function(K,Q,W,H){return new $(Q,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:K,onComplete:Q,onReverseComplete:Q,onCompleteParams:W,onReverseCompleteParams:W,callbackScope:H})},$.fromTo=function(K,Q,W){return J$(2,arguments)},$.set=function(K,Q){return Q.duration=0,Q.repeatDelay||(Q.repeat=0),new $(K,Q)},$.killTweensOf=function(K,Q,W){return C1.killTweensOf(K,Q,W)},$}(G$);k9(v1.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});X9("staggerTo,staggerFrom,staggerFromTo",function(G){v1[G]=function(){var $=new $9,Z=F7.call(arguments,0);return Z.splice(G==="staggerFromTo"?5:4,0,0),$[G].apply($,Z)}});var f7=function($,Z,J){return $[Z]=J},N6=function($,Z,J){return $[Z](J)},JH=function($,Z,J,K){return $[Z](K.fp,J)},$H=function($,Z,J){return $.setAttribute(Z,J)},KZ=function($,Z){return T1($[Z])?N6:e$($[Z])&&$.setAttribute?$H:f7},X6=function($,Z){return Z.set(Z.t,Z.p,Math.round((Z.s+Z.c*$)*1e6)/1e6,Z)},ZH=function($,Z){return Z.set(Z.t,Z.p,!!(Z.s+Z.c*$),Z)},x7=function($,Z){var J=Z._pt,K="";if(!$&&Z.b)K=Z.b;else if($===1&&Z.e)K=Z.e;else{while(J)K=J.p+(J.m?J.m(J.s+J.c*$):Math.round((J.s+J.c*$)*1e4)/1e4)+K,J=J._next;K+=Z.c}Z.set(Z.t,Z.p,K,Z)},h7=function($,Z){var J=Z._pt;while(J)J.r($,J.d),J=J._next},KH=function($,Z,J,K){var Q=this._pt,W;while(Q)W=Q._next,Q.p===K&&Q.modifier($,Z,J),Q=W},QH=function($){var Z=this._pt,J,K;while(Z){if(K=Z._next,Z.p===$&&!Z.op||Z.op===$)W$(this,Z,"_pt");else if(!Z.dep)J=1;Z=K}return!J},GH=function($,Z,J,K){K.mSet($,Z,K.m.call(K.tween,J,K.mt),K)},b7=function($){var Z=$._pt,J,K,Q,W;while(Z){J=Z._next,K=Q;while(K&&K.pr>Z.pr)K=K._next;if(Z._prev=K?K._prev:W)Z._prev._next=Z;else Q=Z;if(Z._next=K)K._prev=Z;else W=Z;Z=J}$._pt=Q},O9=function(){function G(Z,J,K,Q,W,H,z,L,q){if(this.t=J,this.s=Q,this.c=W,this.p=K,this.r=H||X6,this.d=z||this,this.set=L||f7,this.pr=q||0,this._next=Z,Z)Z._prev=this}var $=G.prototype;return $.modifier=function(J,K,Q){this.mSet=this.mSet||this.set,this.set=GH,this.m=J,this.mt=Q,this.tween=K},G}();X9(I7+"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(G){return V7[G]=1});x9.TweenMax=x9.TweenLite=v1;x9.TimelineLite=x9.TimelineMax=$9;C1=new $9({sortChildren:!1,defaults:VJ,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});C9.stringFilter=P7;var r8=[],i$={},WH=[],bQ=0,HH=0,Q7=function($){return(i$[$]||WH).map(function(Z){return Z()})},Y7=function(){var $=Date.now(),Z=[];if($-bQ>2)Q7("matchMediaInit"),r8.forEach(function(J){var{queries:K,conditions:Q}=J,W,H,z,L;for(H in K)if(W=W8.matchMedia(K[H]).matches,W&&(z=1),W!==Q[H])Q[H]=W,L=1;if(L)J.revert(),z&&Z.push(J)}),Q7("matchMediaRevert"),Z.forEach(function(J){return J.onMatch(J,function(K){return J.add(null,K)})}),bQ=$,Q7("matchMedia")},O6=function(){function G(Z,J){this.selector=J&&N7(J),this.data=[],this._r=[],this.isReverted=!1,this.id=HH++,Z&&this.add(Z)}var $=G.prototype;return $.add=function(J,K,Q){if(T1(J))Q=K,K=J,J=T1;var W=this,H=function(){var L=B1,q=W.selector,U;return L&&L!==W&&L.data.push(W),Q&&(W.selector=N7(Q)),B1=W,U=K.apply(W,arguments),T1(U)&&W._r.push(U),B1=L,W.selector=q,W.isReverted=!1,U};return W.last=H,J===T1?H(W,function(z){return W.add(null,z)}):J?W[J]=H:H},$.ignore=function(J){var K=B1;B1=null,J(this),B1=K},$.getTweens=function(){var J=[];return this.data.forEach(function(K){return K instanceof G?J.push.apply(J,K.getTweens()):K instanceof v1&&!(K.parent&&K.parent.data==="nested")&&J.push(K)}),J},$.clear=function(){this._r.length=this.data.length=0},$.kill=function(J,K){var Q=this;if(J)(function(){var H=Q.getTweens(),z=Q.data.length,L;while(z--)if(L=Q.data[z],L.data==="isFlip")L.revert(),L.getChildren(!0,!0,!1).forEach(function(q){return H.splice(H.indexOf(q),1)});H.map(function(q){return{g:q._dur||q._delay||q._sat&&!q._sat.vars.immediateRender?q.globalTime(0):-1/0,t:q}}).sort(function(q,U){return U.g-q.g||-1/0}).forEach(function(q){return q.t.revert(J)}),z=Q.data.length;while(z--)if(L=Q.data[z],L instanceof $9){if(L.data!=="nested")L.scrollTrigger&&L.scrollTrigger.revert(),L.kill()}else!(L instanceof v1)&&L.revert&&L.revert(J);Q._r.forEach(function(q){return q(J,Q)}),Q.isReverted=!0})();else this.data.forEach(function(H){return H.kill&&H.kill()});if(this.clear(),K){var W=r8.length;while(W--)r8[W].id===this.id&&r8.splice(W,1)}},$.revert=function(J){this.kill(J||{})},G}(),UH=function(){function G(Z){this.contexts=[],this.scope=Z,B1&&B1.data.push(this)}var $=G.prototype;return $.add=function(J,K,Q){U8(J)||(J={matches:J});var W=new O6(0,Q||this.scope),H=W.conditions={},z,L,q;B1&&!W.selector&&(W.selector=B1.selector),this.contexts.push(W),K=W.add("onMatch",K),W.queries=J;for(L in J)if(L==="all")q=1;else if(z=W8.matchMedia(J[L]),z)r8.indexOf(W)<0&&r8.push(W),(H[L]=z.matches)&&(q=1),z.addListener?z.addListener(Y7):z.addEventListener("change",Y7);return q&&K(W,function(U){return W.add(null,U)}),this},$.revert=function(J){this.kill(J||{})},$.kill=function(J){this.contexts.forEach(function(K){return K.kill(J,!0)})},G}(),t$={registerPlugin:function(){for(var $=arguments.length,Z=Array($),J=0;J<$;J++)Z[J]=arguments[J];Z.forEach(function(K){return G6(K)})},timeline:function($){return new $9($)},getTweensOf:function($,Z){return C1.getTweensOf($,Z)},getProperty:function($,Z,J,K){s1($)&&($=s9($)[0]);var Q=f8($||{}).get,W=J?sQ:lQ;return J==="native"&&(J=""),!$?$:!Z?function(H,z,L){return W((V9[H]&&V9[H].get||Q)($,H,z,L))}:W((V9[Z]&&V9[Z].get||Q)($,Z,J,K))},quickSetter:function($,Z,J){if($=s9($),$.length>1){var K=$.map(function(q){return H9.quickSetter(q,Z,J)}),Q=K.length;return function(q){var U=Q;while(U--)K[U](q)}}$=$[0]||{};var W=V9[Z],H=f8($),z=H.harness&&(H.harness.aliases||{})[Z]||Z,L=W?function(q){var U=new W;MJ._pt=0,U.init($,J?q+J:q,MJ,0,[$]),U.render(1,U),MJ._pt&&h7(1,MJ)}:H.set($,z);return W?L:function(q){return L($,z,J?q+J:q,H,1)}},quickTo:function($,Z,J){var K,Q=H9.to($,k9((K={},K[Z]="+=0.1",K.paused=!0,K.stagger=0,K),J||{})),W=function(z,L,q){return Q.resetTo(Z,z,L,q)};return W.tween=Q,W},isTweening:function($){return C1.getTweensOf($,!0).length>0},defaults:function($){return $&&$.ease&&($.ease=n8($.ease,VJ.ease)),TQ(VJ,$||{})},config:function($){return TQ(C9,$||{})},registerEffect:function($){var{name:Z,effect:J,plugins:K,defaults:Q,extendTimeline:W}=$;if((K||"").split(",").forEach(function(H){return H&&!V9[H]&&!x9[H]&&Z$(Z+" effect requires "+H+" plugin.")}),J7[Z]=function(H,z,L){return J(s9(H),k9(z||{},Q),L)},W)$9.prototype[Z]=function(H,z,L){return this.add(J7[Z](H,U8(z)?z:(L=z)&&{},this),L)}},registerEase:function($,Z){s0[$]=n8(Z)},parseEase:function($,Z){return arguments.length?n8($,Z):s0},getById:function($){return C1.getById($)},exportRoot:function($,Z){if($===void 0)$={};var J=new $9($),K,Q;J.smoothChildTiming=B9($.smoothChildTiming),C1.remove(J),J._dp=0,J._time=J._tTime=C1._time,K=C1._first;while(K){if(Q=K._next,Z||!(!K._dur&&K instanceof v1&&K.vars.onComplete===K._targets[0]))H8(J,K,K._start-K._delay);K=Q}return H8(C1,J,0),J},context:function($,Z){return $?new O6($,Z):B1},matchMedia:function($){return new UH($)},matchMediaRefresh:function(){return r8.forEach(function($){var Z=$.conditions,J,K;for(K in Z)if(Z[K])Z[K]=!1,J=1;J&&$.revert()})||Y7()},addEventListener:function($,Z){var J=i$[$]||(i$[$]=[]);~J.indexOf(Z)||J.push(Z)},removeEventListener:function($,Z){var J=i$[$],K=J&&J.indexOf(Z);K>=0&&J.splice(K,1)},utils:{wrap:u5,wrapYoyo:m5,distribute:eQ,random:$6,snap:J6,normalize:g5,getUnit:K9,clamp:b5,splitColor:W6,toArray:s9,selector:N7,mapRange:K6,pipe:v5,unitize:_5,interpolate:d5,shuffle:tQ},install:mQ,effects:J7,ticker:I9,updateRoot:$9.updateRoot,plugins:V9,globalTimeline:C1,core:{PropTween:O9,globals:dQ,Tween:v1,Timeline:$9,Animation:G$,getCache:f8,_removeLinkedListItem:W$,reverting:function(){return Z9},context:function($){if($&&B1)B1.data.push($),$._ctx=B1;return B1},suppressOverwrites:function($){return D7=$}}};X9("to,from,fromTo,delayedCall,set,killTweensOf",function(G){return t$[G]=v1[G]});I9.add($9.updateRoot);MJ=t$.to({},{duration:0});var zH=function($,Z){var J=$._pt;while(J&&J.p!==Z&&J.op!==Z&&J.fp!==Z)J=J._next;return J},LH=function($,Z){var J=$._targets,K,Q,W;for(K in Z){Q=J.length;while(Q--)if(W=$._ptLookup[Q][K],W&&(W=W.d)){if(W._pt)W=zH(W,K);W&&W.modifier&&W.modifier(Z[K],$,J[Q],K)}}},G7=function($,Z){return{name:$,headless:1,rawVars:1,init:function(K,Q,W){W._onInit=function(H){var z,L;if(s1(Q))z={},X9(Q,function(q){return z[q]=1}),Q=z;if(Z){z={};for(L in Q)z[L]=Z(Q[L]);Q=z}LH(H,Q)}}}},H9=t$.registerPlugin({name:"attr",init:function($,Z,J,K,Q){var W,H,z;this.tween=J;for(W in Z)z=$.getAttribute(W)||"",H=this.add($,"setAttribute",(z||0)+"",Z[W],K,Q,0,0,W),H.op=W,H.b=z,this._props.push(W)},render:function($,Z){var J=Z._pt;while(J)Z9?J.set(J.t,J.p,J.b,J):J.r($,J.d),J=J._next}},{name:"endArray",headless:1,init:function($,Z){var J=Z.length;while(J--)this.add($,J,$[J]||0,Z[J],0,0,0,0,0,1)}},G7("roundProps",X7),G7("modifiers"),G7("snap",J6))||t$;v1.version=$9.version=H9.version="3.13.0";uQ=1;E7()&&kJ();var{Power0:qH,Power1:FH,Power2:NH,Power3:XH,Power4:OH,Linear:YH,Quad:DH,Cubic:EH,Quart:jH,Quint:RH,Strong:MH,Elastic:VH,Back:IH,SteppedEase:BH,Bounce:CH,Sine:kH,Expo:PH,Circ:SH}=s0;/*! * CSSPlugin 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var Y6,b8,AJ,m7,KJ,AH,D6,d7,TH=function(){return typeof window<"u"},M8={},ZJ=180/Math.PI,TJ=Math.PI/180,SJ=Math.atan2,E6=1e8,c7=/([A-Z])/g,wH=/(left|right|width|margin|padding|x)/i,fH=/[\s,\(]\S/,z8={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},v7=function($,Z){return Z.set(Z.t,Z.p,Math.round((Z.s+Z.c*$)*1e4)/1e4+Z.u,Z)},xH=function($,Z){return Z.set(Z.t,Z.p,$===1?Z.e:Math.round((Z.s+Z.c*$)*1e4)/1e4+Z.u,Z)},hH=function($,Z){return Z.set(Z.t,Z.p,$?Math.round((Z.s+Z.c*$)*1e4)/1e4+Z.u:Z.b,Z)},bH=function($,Z){var J=Z.s+Z.c*$;Z.set(Z.t,Z.p,~~(J+(J<0?-0.5:0.5))+Z.u,Z)},k6=function($,Z){return Z.set(Z.t,Z.p,$?Z.e:Z.b,Z)},P6=function($,Z){return Z.set(Z.t,Z.p,$!==1?Z.b:Z.e,Z)},yH=function($,Z,J){return $.style[Z]=J},vH=function($,Z,J){return $.style.setProperty(Z,J)},_H=function($,Z,J){return $._gsap[Z]=J},gH=function($,Z,J){return $._gsap.scaleX=$._gsap.scaleY=J},uH=function($,Z,J,K,Q){var W=$._gsap;W.scaleX=W.scaleY=J,W.renderTransform(Q,W)},mH=function($,Z,J,K,Q){var W=$._gsap;W[Z]=J,W.renderTransform(Q,W)},k1="transform",P9=k1+"Origin",dH=function G($,Z){var J=this,K=this.target,Q=K.style,W=K._gsap;if($ in M8&&Q){if(this.tfm=this.tfm||{},$!=="transform")$=z8[$]||$,~$.indexOf(",")?$.split(",").forEach(function(H){return J.tfm[H]=R8(K,H)}):this.tfm[$]=W.x?W[$]:R8(K,$),$===P9&&(this.tfm.zOrigin=W.zOrigin);else return z8.transform.split(",").forEach(function(H){return G.call(J,H,Z)});if(this.props.indexOf(k1)>=0)return;if(W.svg)this.svgo=K.getAttribute("data-svg-origin"),this.props.push(P9,Z,"");$=k1}(Q||Z)&&this.props.push($,Z,Q[$])},S6=function($){if($.translate)$.removeProperty("translate"),$.removeProperty("scale"),$.removeProperty("rotate")},cH=function(){var $=this.props,Z=this.target,J=Z.style,K=Z._gsap,Q,W;for(Q=0;Q<$.length;Q+=3)if(!$[Q+1])$[Q+2]?J[$[Q]]=$[Q+2]:J.removeProperty($[Q].substr(0,2)==="--"?$[Q]:$[Q].replace(c7,"-$1").toLowerCase());else if($[Q+1]===2)Z[$[Q]]($[Q+2]);else Z[$[Q]]=$[Q+2];if(this.tfm){for(W in this.tfm)K[W]=this.tfm[W];if(K.svg)K.renderTransform(),Z.setAttribute("data-svg-origin",this.svgo||"");if(Q=d7(),(!Q||!Q.isStart)&&!J[k1]){if(S6(J),K.zOrigin&&J[P9])J[P9]+=" "+K.zOrigin+"px",K.zOrigin=0,K.renderTransform();K.uncache=1}}},A6=function($,Z){var J={target:$,props:[],revert:cH,save:dH};return $._gsap||H9.core.getCache($),Z&&$.style&&$.nodeType&&Z.split(",").forEach(function(K){return J.save(K)}),J},T6,_7=function($,Z){var J=b8.createElementNS?b8.createElementNS((Z||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),$):b8.createElement($);return J&&J.style?J:b8.createElement($)},i9=function G($,Z,J){var K=getComputedStyle($);return K[Z]||K.getPropertyValue(Z.replace(c7,"-$1").toLowerCase())||K.getPropertyValue(Z)||!J&&G($,wJ(Z)||Z,1)||""},j6="O,Moz,ms,Ms,Webkit".split(","),wJ=function($,Z,J){var K=Z||KJ,Q=K.style,W=5;if($ in Q&&!J)return $;$=$.charAt(0).toUpperCase()+$.substr(1);while(W--&&!(j6[W]+$ in Q));return W<0?null:(W===3?"ms":W>=0?j6[W]:"")+$},g7=function(){if(TH()&&window.document)Y6=window,b8=Y6.document,AJ=b8.documentElement,KJ=_7("div")||{style:{}},AH=_7("div"),k1=wJ(k1),P9=k1+"Origin",KJ.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",T6=!!wJ("perspective"),d7=H9.core.reverting,m7=1},R6=function($){var Z=$.ownerSVGElement,J=_7("svg",Z&&Z.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),K=$.cloneNode(!0),Q;K.style.display="block",J.appendChild(K),AJ.appendChild(J);try{Q=K.getBBox()}catch(W){}return J.removeChild(K),AJ.removeChild(J),Q},M6=function($,Z){var J=Z.length;while(J--)if($.hasAttribute(Z[J]))return $.getAttribute(Z[J])},w6=function($){var Z,J;try{Z=$.getBBox()}catch(K){Z=R6($),J=1}return Z&&(Z.width||Z.height)||J||(Z=R6($)),Z&&!Z.width&&!Z.x&&!Z.y?{x:+M6($,["x","cx","x1"])||0,y:+M6($,["y","cy","y1"])||0,width:0,height:0}:Z},f6=function($){return!!($.getCTM&&(!$.parentNode||$.ownerSVGElement)&&w6($))},QJ=function($,Z){if(Z){var J=$.style,K;if(Z in M8&&Z!==P9)Z=k1;if(J.removeProperty){if(K=Z.substr(0,2),K==="ms"||Z.substr(0,6)==="webkit")Z="-"+Z;J.removeProperty(K==="--"?Z:Z.replace(c7,"-$1").toLowerCase())}else J.removeAttribute(Z)}},y8=function($,Z,J,K,Q,W){var H=new O9($._pt,Z,J,0,1,W?P6:k6);return $._pt=H,H.b=K,H.e=Q,$._props.push(J),H},V6={deg:1,rad:1,turn:1},pH={grid:1,flex:1},v8=function G($,Z,J,K){var Q=parseFloat(J)||0,W=(J+"").trim().substr((Q+"").length)||"px",H=KJ.style,z=wH.test(Z),L=$.tagName.toLowerCase()==="svg",q=(L?"client":"offset")+(z?"Width":"Height"),U=100,F=K==="px",N=K==="%",O,Y,M,P;if(K===W||!Q||V6[K]||V6[W])return Q;if(W!=="px"&&!F&&(Q=G($,Z,J,"px")),P=$.getCTM&&f6($),(N||W==="%")&&(M8[Z]||~Z.indexOf("adius")))return O=P?$.getBBox()[z?"width":"height"]:$[q],w1(N?Q/O*U:Q/100*O);if(H[z?"width":"height"]=U+(F?W:K),Y=K!=="rem"&&~Z.indexOf("adius")||K==="em"&&$.appendChild&&!L?$:$.parentNode,P)Y=($.ownerSVGElement||{}).parentNode;if(!Y||Y===b8||!Y.appendChild)Y=b8.body;if(M=Y._gsap,M&&N&&M.width&&z&&M.time===I9.time&&!M.uncache)return w1(Q/M.width*U);else{if(N&&(Z==="height"||Z==="width")){var k=$.style[Z];$.style[Z]=U+K,O=$[q],k?$.style[Z]=k:QJ($,Z)}else(N||W==="%")&&!pH[i9(Y,"display")]&&(H.position=i9($,"position")),Y===$&&(H.position="static"),Y.appendChild(KJ),O=KJ[q],Y.removeChild(KJ),H.position="absolute";if(z&&N)M=f8(Y),M.time=I9.time,M.width=Y[q]}return w1(F?O*Q/U:O&&Q?U/O*Q:0)},R8=function($,Z,J,K){var Q;if(m7||g7(),Z in z8&&Z!=="transform"){if(Z=z8[Z],~Z.indexOf(","))Z=Z.split(",")[0]}if(M8[Z]&&Z!=="transform")Q=L$($,K),Q=Z!=="transformOrigin"?Q[Z]:Q.svg?Q.origin:GZ(i9($,P9))+" "+Q.zOrigin+"px";else if(Q=$.style[Z],!Q||Q==="auto"||K||~(Q+"").indexOf("calc("))Q=QZ[Z]&&QZ[Z]($,Z,J)||i9($,Z)||C7($,Z)||(Z==="opacity"?1:0);return J&&!~(Q+"").trim().indexOf(" ")?v8($,Z,Q,J)+J:Q},lH=function($,Z,J,K){if(!J||J==="none"){var Q=wJ(Z,$,1),W=Q&&i9($,Q,1);if(W&&W!==J)Z=Q,J=W;else if(Z==="borderColor")J=i9($,"borderTopColor")}var H=new O9(this._pt,$.style,Z,0,1,x7),z=0,L=0,q,U,F,N,O,Y,M,P,k,E,V,B;if(H.b=J,H.e=K,J+="",K+="",K.substring(0,6)==="var(--")K=i9($,K.substring(4,K.indexOf(")")));if(K==="auto")Y=$.style[Z],$.style[Z]=K,K=i9($,Z)||K,Y?$.style[Z]=Y:QJ($,Z);if(q=[J,K],P7(q),J=q[0],K=q[1],F=J.match(a8)||[],B=K.match(a8)||[],B.length){while(U=a8.exec(K)){if(M=U[0],k=K.substring(z,U.index),O)O=(O+1)%5;else if(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")O=1;if(M!==(Y=F[L++]||"")){if(N=parseFloat(Y)||0,V=Y.substr((N+"").length),M.charAt(1)==="="&&(M=t8(N,M)+V),P=parseFloat(M),E=M.substr((P+"").length),z=a8.lastIndex-E.length,!E){if(E=E||C9.units[Z]||V,z===K.length)K+=E,H.e+=E}if(V!==E)N=v8($,Z,Y,E)||0;H._pt={_next:H._pt,p:k||L===1?k:",",s:N,c:P-N,m:O&&O<4||Z==="zIndex"?Math.round:0}}}H.c=z-1){if(H=Q[L],M8[H])z=1,H=H==="transformOrigin"?P9:k1;QJ(J,H)}}if(z){if(QJ(J,k1),W)W.svg&&J.removeAttribute("transform"),K.scale=K.rotate=K.translate="none",L$(J,1),W.uncache=1,S6(K)}}},QZ={clearProps:function($,Z,J,K,Q){if(Q.data!=="isFromStart"){var W=$._pt=new O9($._pt,Z,J,0,0,iH);return W.u=K,W.pr=-10,W.tween=Q,$._props.push(J),1}}},z$=[1,0,0,1,0,0],x6={},h6=function($){return $==="matrix(1, 0, 0, 1, 0, 0)"||$==="none"||!$},B6=function($){var Z=i9($,k1);return h6(Z)?z$:Z.substr(7).match(j7).map(w1)},p7=function($,Z){var J=$._gsap||f8($),K=$.style,Q=B6($),W,H,z,L;if(J.svg&&$.getAttribute("transform"))return z=$.transform.baseVal.consolidate().matrix,Q=[z.a,z.b,z.c,z.d,z.e,z.f],Q.join(",")==="1,0,0,1,0,0"?z$:Q;else if(Q===z$&&!$.offsetParent&&$!==AJ&&!J.svg){if(z=K.display,K.display="block",W=$.parentNode,!W||!$.offsetParent&&!$.getBoundingClientRect().width)L=1,H=$.nextElementSibling,AJ.appendChild($);if(Q=B6($),z?K.display=z:QJ($,"display"),L)H?W.insertBefore($,H):W?W.appendChild($):AJ.removeChild($)}return Z&&Q.length>6?[Q[0],Q[1],Q[4],Q[5],Q[12],Q[13]]:Q},u7=function($,Z,J,K,Q,W){var H=$._gsap,z=Q||p7($,!0),L=H.xOrigin||0,q=H.yOrigin||0,U=H.xOffset||0,F=H.yOffset||0,N=z[0],O=z[1],Y=z[2],M=z[3],P=z[4],k=z[5],E=Z.split(" "),V=parseFloat(E[0])||0,B=parseFloat(E[1])||0,I,C,T,A;if(!J)I=w6($),V=I.x+(~E[0].indexOf("%")?V/100*I.width:V),B=I.y+(~(E[1]||E[0]).indexOf("%")?B/100*I.height:B);else if(z!==z$&&(C=N*M-O*Y))T=V*(M/C)+B*(-Y/C)+(Y*k-M*P)/C,A=V*(-O/C)+B*(N/C)-(N*k-O*P)/C,V=T,B=A;if(K||K!==!1&&H.smooth)P=V-L,k=B-q,H.xOffset=U+(P*N+k*Y)-P,H.yOffset=F+(P*O+k*M)-k;else H.xOffset=H.yOffset=0;if(H.xOrigin=V,H.yOrigin=B,H.smooth=!!K,H.origin=Z,H.originIsAbsolute=!!J,$.style[P9]="0px 0px",W)y8(W,H,"xOrigin",L,V),y8(W,H,"yOrigin",q,B),y8(W,H,"xOffset",U,H.xOffset),y8(W,H,"yOffset",F,H.yOffset);$.setAttribute("data-svg-origin",V+" "+B)},L$=function($,Z){var J=$._gsap||new S7($);if("x"in J&&!Z&&!J.uncache)return J;var K=$.style,Q=J.scaleX<0,W="px",H="deg",z=getComputedStyle($),L=i9($,P9)||"0",q,U,F,N,O,Y,M,P,k,E,V,B,I,C,T,A,x,b,v,c,i,l,o,r,K0,Z0,_,z0,E0,H0,q0,w0;if(q=U=F=Y=M=P=k=E=V=0,N=O=1,J.svg=!!($.getCTM&&f6($)),z.translate){if(z.translate!=="none"||z.scale!=="none"||z.rotate!=="none")K[k1]=(z.translate!=="none"?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(z.rotate!=="none"?"rotate("+z.rotate+") ":"")+(z.scale!=="none"?"scale("+z.scale.split(" ").join(",")+") ":"")+(z[k1]!=="none"?z[k1]:"");K.scale=K.rotate=K.translate="none"}if(C=p7($,J.svg),J.svg){if(J.uncache)K0=$.getBBox(),L=J.xOrigin-K0.x+"px "+(J.yOrigin-K0.y)+"px",r="";else r=!Z&&$.getAttribute("data-svg-origin");u7($,r||L,!!r||J.originIsAbsolute,J.smooth!==!1,C)}if(B=J.xOrigin||0,I=J.yOrigin||0,C!==z$){if(b=C[0],v=C[1],c=C[2],i=C[3],q=l=C[4],U=o=C[5],C.length===6){if(N=Math.sqrt(b*b+v*v),O=Math.sqrt(i*i+c*c),Y=b||v?SJ(v,b)*ZJ:0,k=c||i?SJ(c,i)*ZJ+Y:0,k&&(O*=Math.abs(Math.cos(k*TJ))),J.svg)q-=B-(B*b+I*c),U-=I-(B*v+I*i)}else{if(w0=C[6],H0=C[7],_=C[8],z0=C[9],E0=C[10],q0=C[11],q=C[12],U=C[13],F=C[14],T=SJ(w0,E0),M=T*ZJ,T)A=Math.cos(-T),x=Math.sin(-T),r=l*A+_*x,K0=o*A+z0*x,Z0=w0*A+E0*x,_=l*-x+_*A,z0=o*-x+z0*A,E0=w0*-x+E0*A,q0=H0*-x+q0*A,l=r,o=K0,w0=Z0;if(T=SJ(-c,E0),P=T*ZJ,T)A=Math.cos(-T),x=Math.sin(-T),r=b*A-_*x,K0=v*A-z0*x,Z0=c*A-E0*x,q0=i*x+q0*A,b=r,v=K0,c=Z0;if(T=SJ(v,b),Y=T*ZJ,T)A=Math.cos(T),x=Math.sin(T),r=b*A+v*x,K0=l*A+o*x,v=v*A-b*x,o=o*A-l*x,b=r,l=K0;if(M&&Math.abs(M)+Math.abs(Y)>359.9)M=Y=0,P=180-P;N=w1(Math.sqrt(b*b+v*v+c*c)),O=w1(Math.sqrt(o*o+w0*w0)),T=SJ(l,o),k=Math.abs(T)>0.0002?T*ZJ:0,V=q0?1/(q0<0?-q0:q0):0}if(J.svg)r=$.getAttribute("transform"),J.forceCSS=$.setAttribute("transform","")||!h6(i9($,k1)),r&&$.setAttribute("transform",r)}if(Math.abs(k)>90&&Math.abs(k)<270)if(Q)N*=-1,k+=Y<=0?180:-180,Y+=Y<=0?180:-180;else O*=-1,k+=k<=0?180:-180;if(Z=Z||J.uncache,J.x=q-((J.xPercent=q&&(!Z&&J.xPercent||(Math.round($.offsetWidth/2)===Math.round(-q)?-50:0)))?$.offsetWidth*J.xPercent/100:0)+W,J.y=U-((J.yPercent=U&&(!Z&&J.yPercent||(Math.round($.offsetHeight/2)===Math.round(-U)?-50:0)))?$.offsetHeight*J.yPercent/100:0)+W,J.z=F+W,J.scaleX=w1(N),J.scaleY=w1(O),J.rotation=w1(Y)+H,J.rotationX=w1(M)+H,J.rotationY=w1(P)+H,J.skewX=k+H,J.skewY=E+H,J.transformPerspective=V+W,J.zOrigin=parseFloat(L.split(" ")[2])||!Z&&J.zOrigin||0)K[P9]=GZ(L);return J.xOffset=J.yOffset=0,J.force3D=C9.force3D,J.renderTransform=J.svg?nH:T6?b6:oH,J.uncache=0,J},GZ=function($){return($=$.split(" "))[0]+" "+$[1]},y7=function($,Z,J){var K=K9(Z);return w1(parseFloat(Z)+parseFloat(v8($,"x",J+"px",K)))+K},oH=function($,Z){Z.z="0px",Z.rotationY=Z.rotationX="0deg",Z.force3D=0,b6($,Z)},JJ="0deg",U$="0px",$J=") ",b6=function($,Z){var J=Z||this,K=J.xPercent,Q=J.yPercent,W=J.x,H=J.y,z=J.z,L=J.rotation,q=J.rotationY,U=J.rotationX,F=J.skewX,N=J.skewY,O=J.scaleX,Y=J.scaleY,M=J.transformPerspective,P=J.force3D,k=J.target,E=J.zOrigin,V="",B=P==="auto"&&$&&$!==1||P===!0;if(E&&(U!==JJ||q!==JJ)){var I=parseFloat(q)*TJ,C=Math.sin(I),T=Math.cos(I),A;I=parseFloat(U)*TJ,A=Math.cos(I),W=y7(k,W,C*A*-E),H=y7(k,H,-Math.sin(I)*-E),z=y7(k,z,T*A*-E+E)}if(M!==U$)V+="perspective("+M+$J;if(K||Q)V+="translate("+K+"%, "+Q+"%) ";if(B||W!==U$||H!==U$||z!==U$)V+=z!==U$||B?"translate3d("+W+", "+H+", "+z+") ":"translate("+W+", "+H+$J;if(L!==JJ)V+="rotate("+L+$J;if(q!==JJ)V+="rotateY("+q+$J;if(U!==JJ)V+="rotateX("+U+$J;if(F!==JJ||N!==JJ)V+="skew("+F+", "+N+$J;if(O!==1||Y!==1)V+="scale("+O+", "+Y+$J;k.style[k1]=V||"translate(0, 0)"},nH=function($,Z){var J=Z||this,K=J.xPercent,Q=J.yPercent,W=J.x,H=J.y,z=J.rotation,L=J.skewX,q=J.skewY,U=J.scaleX,F=J.scaleY,N=J.target,O=J.xOrigin,Y=J.yOrigin,M=J.xOffset,P=J.yOffset,k=J.forceCSS,E=parseFloat(W),V=parseFloat(H),B,I,C,T,A;if(z=parseFloat(z),L=parseFloat(L),q=parseFloat(q),q)q=parseFloat(q),L+=q,z+=q;if(z||L){if(z*=TJ,L*=TJ,B=Math.cos(z)*U,I=Math.sin(z)*U,C=Math.sin(z-L)*-F,T=Math.cos(z-L)*F,L){if(q*=TJ,A=Math.tan(L-q),A=Math.sqrt(1+A*A),C*=A,T*=A,q)A=Math.tan(q),A=Math.sqrt(1+A*A),B*=A,I*=A}B=w1(B),I=w1(I),C=w1(C),T=w1(T)}else B=U,T=F,I=C=0;if(E&&!~(W+"").indexOf("px")||V&&!~(H+"").indexOf("px"))E=v8(N,"x",W,"px"),V=v8(N,"y",H,"px");if(O||Y||M||P)E=w1(E+O-(O*B+Y*C)+M),V=w1(V+Y-(O*I+Y*T)+P);if(K||Q)A=N.getBBox(),E=w1(E+K/100*A.width),V=w1(V+Q/100*A.height);A="matrix("+B+","+I+","+C+","+T+","+E+","+V+")",N.setAttribute("transform",A),k&&(N.style[k1]=A)},rH=function($,Z,J,K,Q){var W=360,H=s1(Q),z=parseFloat(Q)*(H&&~Q.indexOf("rad")?ZJ:1),L=z-K,q=K+L+"deg",U,F;if(H){if(U=Q.split("_")[1],U==="short"){if(L%=W,L!==L%(W/2))L+=L<0?W:-W}if(U==="cw"&&L<0)L=(L+W*E6)%W-~~(L/W)*W;else if(U==="ccw"&&L>0)L=(L-W*E6)%W-~~(L/W)*W}return $._pt=F=new O9($._pt,Z,J,K,L,xH),F.e=q,F.u="deg",$._props.push(J),F},C6=function($,Z){for(var J in Z)$[J]=Z[J];return $},aH=function($,Z,J){var K=C6({},J._gsap),Q="perspective,force3D,transformOrigin,svgOrigin",W=J.style,H,z,L,q,U,F,N,O;if(K.svg)L=J.getAttribute("transform"),J.setAttribute("transform",""),W[k1]=Z,H=L$(J,1),QJ(J,k1),J.setAttribute("transform",L);else L=getComputedStyle(J)[k1],W[k1]=Z,H=L$(J,1),W[k1]=L;for(z in M8)if(L=K[z],q=H[z],L!==q&&Q.indexOf(z)<0)N=K9(L),O=K9(q),U=N!==O?v8(J,z,L,O):parseFloat(L),F=parseFloat(q),$._pt=new O9($._pt,H,z,U,F-U,v7),$._pt.u=O||0,$._props.push(z);C6(H,K)};X9("padding,margin,Width,Radius",function(G,$){var Z="Top",J="Right",K="Bottom",Q="Left",W=($<3?[Z,J,K,Q]:[Z+Q,Z+J,K+J,K+Q]).map(function(H){return $<2?G+H:"border"+H+G});QZ[$>1?"border"+G:G]=function(H,z,L,q,U){var F,N;if(arguments.length<4)return F=W.map(function(O){return R8(H,O,L)}),N=F.join(" "),N.split(F[0]).length===5?F[0]:N;F=(q+"").split(" "),N={},W.forEach(function(O,Y){return N[O]=F[Y]=F[Y]||F[(Y-1)/2|0]}),H.init(z,N,U)}});var l7={name:"css",register:g7,targetTest:function($){return $.style&&$.nodeType},init:function($,Z,J,K,Q){var W=this._props,H=$.style,z=J.vars.startAt,L,q,U,F,N,O,Y,M,P,k,E,V,B,I,C,T;m7||g7(),this.styles=this.styles||A6($),T=this.styles.props,this.tween=J;for(Y in Z){if(Y==="autoRound")continue;if(q=Z[Y],V9[Y]&&T7(Y,Z,J,K,$,Q))continue;if(N=typeof q,O=QZ[Y],N==="function")q=q.call(J,K,$,Q),N=typeof q;if(N==="string"&&~q.indexOf("random("))q=PJ(q);if(O)O(this,$,Y,q,J)&&(C=1);else if(Y.substr(0,2)==="--"){if(L=(getComputedStyle($).getPropertyValue(Y)+"").trim(),q+="",E8.lastIndex=0,!E8.test(L))M=K9(L),P=K9(q);P?M!==P&&(L=v8($,Y,L,P)+P):M&&(q+=M),this.add(H,"setProperty",L,q,K,Q,0,0,Y),W.push(Y),T.push(Y,0,H[Y])}else if(N!=="undefined"){if(z&&Y in z)L=typeof z[Y]==="function"?z[Y].call(J,K,$,Q):z[Y],s1(L)&&~L.indexOf("random(")&&(L=PJ(L)),K9(L+"")||L==="auto"||(L+=C9.units[Y]||K9(R8($,Y))||""),(L+"").charAt(1)==="="&&(L=R8($,Y));else L=R8($,Y);if(F=parseFloat(L),k=N==="string"&&q.charAt(1)==="="&&q.substr(0,2),k&&(q=q.substr(2)),U=parseFloat(q),Y in z8){if(Y==="autoAlpha"){if(F===1&&R8($,"visibility")==="hidden"&&U)F=0;T.push("visibility",0,H.visibility),y8(this,H,"visibility",F?"inherit":"hidden",U?"inherit":"hidden",!U)}if(Y!=="scale"&&Y!=="transform")Y=z8[Y],~Y.indexOf(",")&&(Y=Y.split(",")[0])}if(E=Y in M8,E){if(this.styles.save(Y),N==="string"&&q.substring(0,6)==="var(--")q=i9($,q.substring(4,q.indexOf(")"))),U=parseFloat(q);if(!V)B=$._gsap,B.renderTransform&&!Z.parseTransform||L$($,Z.parseTransform),I=Z.smoothOrigin!==!1&&B.smooth,V=this._pt=new O9(this._pt,H,k1,0,1,B.renderTransform,B,0,-1),V.dep=1;if(Y==="scale")this._pt=new O9(this._pt,B,"scaleY",B.scaleY,(k?t8(B.scaleY,k+U):U)-B.scaleY||0,v7),this._pt.u=0,W.push("scaleY",Y),Y+="X";else if(Y==="transformOrigin"){if(T.push(P9,0,H[P9]),q=sH(q),B.svg)u7($,q,0,I,0,this);else P=parseFloat(q.split(" ")[2])||0,P!==B.zOrigin&&y8(this,B,"zOrigin",B.zOrigin,P),y8(this,H,Y,GZ(L),GZ(q));continue}else if(Y==="svgOrigin"){u7($,q,1,I,0,this);continue}else if(Y in x6){rH(this,B,Y,F,k?t8(F,k+q):q);continue}else if(Y==="smoothOrigin"){y8(this,B,"smooth",B.smooth,q);continue}else if(Y==="force3D"){B[Y]=q;continue}else if(Y==="transform"){aH(this,q,$);continue}}else if(!(Y in H))Y=wJ(Y)||Y;if(E||(U||U===0)&&(F||F===0)&&!fH.test(q)&&Y in H){if(M=(L+"").substr((F+"").length),U||(U=0),P=K9(q)||(Y in C9.units?C9.units[Y]:M),M!==P&&(F=v8($,Y,L,P)),this._pt=new O9(this._pt,E?B:H,Y,F,(k?t8(F,k+U):U)-F,!E&&(P==="px"||Y==="zIndex")&&Z.autoRound!==!1?bH:v7),this._pt.u=P||0,M!==P&&P!=="%")this._pt.b=L,this._pt.r=hH}else if(!(Y in H)){if(Y in $)this.add($,Y,L||$[Y],k?k+q:q,K,Q);else if(Y!=="parseTransform"){JZ(Y,q);continue}}else lH.call(this,$,Y,L,k?k+q:q);E||(Y in H?T.push(Y,0,H[Y]):typeof $[Y]==="function"?T.push(Y,2,$[Y]()):T.push(Y,1,L||$[Y])),W.push(Y)}}C&&b7(this)},render:function($,Z){if(Z.tween._time||!d7()){var J=Z._pt;while(J)J.r($,J.d),J=J._next}else Z.styles.revert()},get:R8,aliases:z8,getSetter:function($,Z,J){var K=z8[Z];return K&&K.indexOf(",")<0&&(Z=K),Z in M8&&Z!==P9&&($._gsap.x||R8($,"x"))?J&&D6===J?Z==="scale"?gH:_H:(D6=J||{})&&(Z==="scale"?uH:mH):$.style&&!e$($.style[Z])?yH:~Z.indexOf("-")?vH:KZ($,Z)},core:{_removeProperty:QJ,_getMatrix:p7}};H9.utils.checkPrefix=wJ;H9.core.getStyleSaver=A6;(function(G,$,Z,J){var K=X9(G+","+$+","+Z,function(Q){M8[Q]=1});X9($,function(Q){C9.units[Q]="deg",x6[Q]=1}),z8[K[13]]=G+","+$,X9(J,function(Q){var W=Q.split(":");z8[W[1]]=K[W[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");X9("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(G){C9.units[G]="px"});H9.registerPlugin(l7);var X0=H9.registerPlugin(l7)||H9,fz=X0.core.Tween;function y6(G,$){for(var Z=0;Z<$.length;Z++){var J=$[Z];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(G,J.key,J)}}function tH(G,$,Z){if($)y6(G.prototype,$);if(Z)y6(G,Z);return G}/*! * Observer 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var Q9,UZ,eH,h9,_8,g8,xJ,_6,GJ,F$,g6,V8,$8,u6,m6=function(){return Q9||typeof window<"u"&&(Q9=window.gsap)&&Q9.registerPlugin&&Q9},d6=1,fJ=[],_0=[],Z8=[],N$=Date.now,s7=function($,Z){return Z},JU=function(){var $=F$.core,Z=$.bridge||{},J=$._scrollers,K=$._proxies;J.push.apply(J,_0),K.push.apply(K,Z8),_0=J,Z8=K,s7=function(W,H){return Z[W](H)}},B8=function($,Z){return~Z8.indexOf($)&&Z8[Z8.indexOf($)+1][Z]},X$=function($){return!!~g6.indexOf($)},D9=function($,Z,J,K,Q){return $.addEventListener(Z,J,{passive:K!==!1,capture:!!Q})},Y9=function($,Z,J,K){return $.removeEventListener(Z,J,!!K)},WZ="scrollLeft",HZ="scrollTop",i7=function(){return V8&&V8.isPressed||_0.cache++},zZ=function($,Z){var J=function K(Q){if(Q||Q===0){d6&&(h9.history.scrollRestoration="manual");var W=V8&&V8.isPressed;Q=K.v=Math.round(Q)||(V8&&V8.iOS?1:0),$(Q),K.cacheID=_0.cache,W&&s7("ss",Q)}else if(Z||_0.cache!==K.cacheID||s7("ref"))K.cacheID=_0.cache,K.v=$();return K.v+K.offset};return J.offset=0,$&&J},U9={s:WZ,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:zZ(function(G){return arguments.length?h9.scrollTo(G,m1.sc()):h9.pageXOffset||_8[WZ]||g8[WZ]||xJ[WZ]||0})},m1={s:HZ,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:U9,sc:zZ(function(G){return arguments.length?h9.scrollTo(U9.sc(),G):h9.pageYOffset||_8[HZ]||g8[HZ]||xJ[HZ]||0})},E9=function($,Z){return(Z&&Z._ctx&&Z._ctx.selector||Q9.utils.toArray)($)[0]||(typeof $==="string"&&Q9.config().nullTargetWarn!==!1?console.warn("Element not found:",$):null)},$U=function($,Z){var J=Z.length;while(J--)if(Z[J]===$||Z[J].contains($))return!0;return!1},I8=function($,Z){var{s:J,sc:K}=Z;X$($)&&($=_8.scrollingElement||g8);var Q=_0.indexOf($),W=K===m1.sc?1:2;!~Q&&(Q=_0.push($)-1),_0[Q+W]||D9($,"scroll",i7);var H=_0[Q+W],z=H||(_0[Q+W]=zZ(B8($,J),!0)||(X$($)?K:zZ(function(L){return arguments.length?$[J]=L:$[J]})));return z.target=$,H||(z.smooth=Q9.getProperty($,"scrollBehavior")==="smooth"),z},LZ=function($,Z,J){var K=$,Q=$,W=N$(),H=W,z=Z||50,L=Math.max(500,z*3),q=function(O,Y){var M=N$();if(Y||M-W>z)Q=K,K=O,H=W,W=M;else if(J)K+=O;else K=Q+(O-Q)/(M-H)*(W-H)},U=function(){Q=K=J?0:K,H=W=0},F=function(O){var Y=H,M=Q,P=N$();return(O||O===0)&&O!==K&&q(O),W===H||P-H>L?0:(K+(J?M:-M))/((J?P:W)-Y)*1000};return{update:q,reset:U,getVelocity:F}},q$=function($,Z){return Z&&!$._gsapAllow&&$.preventDefault(),$.changedTouches?$.changedTouches[0]:$},v6=function($){var Z=Math.max.apply(Math,$),J=Math.min.apply(Math,$);return Math.abs(Z)>=Math.abs(J)?Z:J},c6=function(){F$=Q9.core.globals().ScrollTrigger,F$&&F$.core&&JU()},p6=function($){if(Q9=$||m6(),!UZ&&Q9&&typeof document<"u"&&document.body)h9=window,_8=document,g8=_8.documentElement,xJ=_8.body,g6=[h9,_8,g8,xJ],eH=Q9.utils.clamp,u6=Q9.core.context||function(){},GJ="onpointerenter"in xJ?"pointer":"mouse",_6=f1.isTouch=h9.matchMedia&&h9.matchMedia("(hover: none), (pointer: coarse)").matches?1:("ontouchstart"in h9)||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,$8=f1.eventTypes=("ontouchstart"in g8?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in g8)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return d6=0},500),c6(),UZ=1;return UZ};U9.op=m1;_0.cache=0;var f1=function(){function G(Z){this.init(Z)}var $=G.prototype;return $.init=function(J){UZ||p6(Q9)||console.warn("Please gsap.registerPlugin(Observer)"),F$||c6();var{tolerance:K,dragMinimum:Q,type:W,target:H,lineHeight:z,debounce:L,preventDefault:q,onStop:U,onStopDelay:F,ignore:N,wheelSpeed:O,event:Y,onDragStart:M,onDragEnd:P,onDrag:k,onPress:E,onRelease:V,onRight:B,onLeft:I,onUp:C,onDown:T,onChangeX:A,onChangeY:x,onChange:b,onToggleX:v,onToggleY:c,onHover:i,onHoverEnd:l,onMove:o,ignoreCheck:r,isNormalizer:K0,onGestureStart:Z0,onGestureEnd:_,onWheel:z0,onEnable:E0,onDisable:H0,onClick:q0,scrollSpeed:w0,capture:D0,allowClicks:b0,lockAxis:S0,onLockAxis:u0}=J;this.target=H=E9(H)||g8,this.vars=J,N&&(N=Q9.utils.toArray(N)),K=K||0.000000001,Q=Q||0,O=O||1,w0=w0||1,W=W||"wheel,touch,pointer",L=L!==!1,z||(z=parseFloat(h9.getComputedStyle(xJ).lineHeight)||22);var f0,t0,X1,A0,i0,O1,v0,m=this,M1=0,H1=0,o1=J.passive||!q&&J.passive!==!1,e0=I8(H,U9),P1=I8(H,m1),S1=e0(),S=P1(),X=~W.indexOf("touch")&&!~W.indexOf("pointer")&&$8[0]==="pointerdown",D=X$(H),w=H.ownerDocument||_8,g=[0,0,0],s=[0,0,0],a=0,j0=function(){return a=N$()},Q0=function(I0,c0){return(m.event=I0)&&N&&$U(I0.target,N)||c0&&X&&I0.pointerType!=="touch"||r&&r(I0,c0)},N0=function(){m._vx.reset(),m._vy.reset(),t0.pause(),U&&U(m)},P0=function(){var I0=m.deltaX=v6(g),c0=m.deltaY=v6(s),W0=Math.abs(I0)>=K,k0=Math.abs(c0)>=K;if(b&&(W0||k0)&&b(m,I0,c0,g,s),W0)B&&m.deltaX>0&&B(m),I&&m.deltaX<0&&I(m),A&&A(m),v&&m.deltaX<0!==M1<0&&v(m),M1=m.deltaX,g[0]=g[1]=g[2]=0;if(k0)T&&m.deltaY>0&&T(m),C&&m.deltaY<0&&C(m),x&&x(m),c&&m.deltaY<0!==H1<0&&c(m),H1=m.deltaY,s[0]=s[1]=s[2]=0;if(A0||X1){if(o&&o(m),X1)M&&X1===1&&M(m),k&&k(m),X1=0;A0=!1}if(O1&&!(O1=!1)&&u0&&u0(m),i0)z0(m),i0=!1;f0=0},d0=function(I0,c0,W0){g[W0]+=I0,s[W0]+=c0,m._vx.update(I0),m._vy.update(c0),L?f0||(f0=requestAnimationFrame(P0)):P0()},$1=function(I0,c0){if(S0&&!v0)m.axis=v0=Math.abs(I0)>Math.abs(c0)?"x":"y",O1=!0;if(v0!=="y")g[2]+=I0,m._vx.update(I0,!0);if(v0!=="x")s[2]+=c0,m._vy.update(c0,!0);L?f0||(f0=requestAnimationFrame(P0)):P0()},o0=function(I0){if(Q0(I0,1))return;I0=q$(I0,q);var{clientX:c0,clientY:W0}=I0,k0=c0-m.x,R0=W0-m.y,M0=m.isDragging;if(m.x=c0,m.y=W0,M0||(k0||R0)&&(Math.abs(m.startX-c0)>=Q||Math.abs(m.startY-W0)>=Q))X1=M0?2:1,M0||(m.isDragging=!0),$1(k0,R0)},V1=m.onPress=function(V0){if(Q0(V0,1)||V0&&V0.button)return;m.axis=v0=null,t0.pause(),m.isPressed=!0,V0=q$(V0),M1=H1=0,m.startX=m.x=V0.clientX,m.startY=m.y=V0.clientY,m._vx.reset(),m._vy.reset(),D9(K0?H:w,$8[1],o0,o1,!0),m.deltaX=m.deltaY=0,E&&E(m)},C0=m.onRelease=function(V0){if(Q0(V0,1))return;Y9(K0?H:w,$8[1],o0,!0);var I0=!isNaN(m.y-m.startY),c0=m.isDragging,W0=c0&&(Math.abs(m.x-m.startX)>3||Math.abs(m.y-m.startY)>3),k0=q$(V0);if(!W0&&I0){if(m._vx.reset(),m._vy.reset(),q&&b0)Q9.delayedCall(0.08,function(){if(N$()-a>300&&!V0.defaultPrevented){if(V0.target.click)V0.target.click();else if(w.createEvent){var R0=w.createEvent("MouseEvents");R0.initMouseEvent("click",!0,!0,h9,1,k0.screenX,k0.screenY,k0.clientX,k0.clientY,!1,!1,!1,!1,0,null),V0.target.dispatchEvent(R0)}}})}m.isDragging=m.isGesturing=m.isPressed=!1,U&&c0&&!K0&&t0.restart(!0),X1&&P0(),P&&c0&&P(m),V&&V(m,W0)},j1=function(I0){return I0.touches&&I0.touches.length>1&&(m.isGesturing=!0)&&Z0(I0,m.isDragging)},U1=function(){return(m.isGesturing=!1)||_(m)},Y1=function(I0){if(Q0(I0))return;var c0=e0(),W0=P1();d0((c0-S1)*w0,(W0-S)*w0,1),S1=c0,S=W0,U&&t0.restart(!0)},x1=function(I0){if(Q0(I0))return;I0=q$(I0,q),z0&&(i0=!0);var c0=(I0.deltaMode===1?z:I0.deltaMode===2?h9.innerHeight:1)*O;d0(I0.deltaX*c0,I0.deltaY*c0,0),U&&!K0&&t0.restart(!0)},J9=function(I0){if(Q0(I0))return;var{clientX:c0,clientY:W0}=I0,k0=c0-m.x,R0=W0-m.y;m.x=c0,m.y=W0,A0=!0,U&&t0.restart(!0),(k0||R0)&&$1(k0,R0)},G9=function(I0){m.event=I0,i(m)},I1=function(I0){m.event=I0,l(m)},h0=function(I0){return Q0(I0)||q$(I0,q)&&q0(m)};t0=m._dc=Q9.delayedCall(F||0.25,N0).pause(),m.deltaX=m.deltaY=0,m._vx=LZ(0,50,!0),m._vy=LZ(0,50,!0),m.scrollX=e0,m.scrollY=P1,m.isDragging=m.isGesturing=m.isPressed=!1,u6(this),m.enable=function(V0){if(!m.isEnabled){if(D9(D?w:H,"scroll",i7),W.indexOf("scroll")>=0&&D9(D?w:H,"scroll",Y1,o1,D0),W.indexOf("wheel")>=0&&D9(H,"wheel",x1,o1,D0),W.indexOf("touch")>=0&&_6||W.indexOf("pointer")>=0)D9(H,$8[0],V1,o1,D0),D9(w,$8[2],C0),D9(w,$8[3],C0),b0&&D9(H,"click",j0,!0,!0),q0&&D9(H,"click",h0),Z0&&D9(w,"gesturestart",j1),_&&D9(w,"gestureend",U1),i&&D9(H,GJ+"enter",G9),l&&D9(H,GJ+"leave",I1),o&&D9(H,GJ+"move",J9);m.isEnabled=!0,m.isDragging=m.isGesturing=m.isPressed=A0=X1=!1,m._vx.reset(),m._vy.reset(),S1=e0(),S=P1(),V0&&V0.type&&V1(V0),E0&&E0(m)}return m},m.disable=function(){if(m.isEnabled){if(fJ.filter(function(V0){return V0!==m&&X$(V0.target)}).length||Y9(D?w:H,"scroll",i7),m.isPressed)m._vx.reset(),m._vy.reset(),Y9(K0?H:w,$8[1],o0,!0);Y9(D?w:H,"scroll",Y1,D0),Y9(H,"wheel",x1,D0),Y9(H,$8[0],V1,D0),Y9(w,$8[2],C0),Y9(w,$8[3],C0),Y9(H,"click",j0,!0),Y9(H,"click",h0),Y9(w,"gesturestart",j1),Y9(w,"gestureend",U1),Y9(H,GJ+"enter",G9),Y9(H,GJ+"leave",I1),Y9(H,GJ+"move",J9),m.isEnabled=m.isPressed=m.isDragging=!1,H0&&H0(m)}},m.kill=m.revert=function(){m.disable();var V0=fJ.indexOf(m);V0>=0&&fJ.splice(V0,1),V8===m&&(V8=0)},fJ.push(m),K0&&X$(H)&&(V8=m),m.enable(Y)},tH(G,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),G}();f1.version="3.13.0";f1.create=function(G){return new f1(G)};f1.register=p6;f1.getAll=function(){return fJ.slice()};f1.getById=function(G){return fJ.filter(function($){return $.vars.id===G})[0]};m6()&&Q9.registerPlugin(f1);/*! * ScrollTrigger 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var Y0,yJ,m0,E1,v9,G1,UK,kZ,P$,M$,Y$,qZ,z9,TZ,$K,R9,l6,s6,vJ,UG,o7,zG,j9,ZK,LG,qG,u8,KK,zK,_J,LK,PZ,QK,n7,FZ=1,L9=Date.now,r7=L9(),r9=0,D$=0,i6=function($,Z,J){var K=y9($)&&($.substr(0,6)==="clamp("||$.indexOf("max")>-1);return J["_"+Z+"Clamp"]=K,K?$.substr(6,$.length-7):$},o6=function($,Z){return Z&&(!y9($)||$.substr(0,6)!=="clamp(")?"clamp("+$+")":$},ZU=function G(){return D$&&requestAnimationFrame(G)},n6=function(){return TZ=1},r6=function(){return TZ=0},L8=function($){return $},E$=function($){return Math.round($*1e5)/1e5||0},FG=function(){return typeof window<"u"},NG=function(){return Y0||FG()&&(Y0=window.gsap)&&Y0.registerPlugin&&Y0},qJ=function($){return!!~UK.indexOf($)},XG=function($){return($==="Height"?LK:m0["inner"+$])||v9["client"+$]||G1["client"+$]},OG=function($){return B8($,"getBoundingClientRect")||(qJ($)?function(){return CZ.width=m0.innerWidth,CZ.height=LK,CZ}:function(){return C8($)})},KU=function($,Z,J){var{d:K,d2:Q,a:W}=J;return(W=B8($,"getBoundingClientRect"))?function(){return W()[K]}:function(){return(Z?XG(Q):$["client"+Q])||0}},QU=function($,Z){return!Z||~Z8.indexOf($)?OG($):function(){return CZ}},q8=function($,Z){var{s:J,d2:K,d:Q,a:W}=Z;return Math.max(0,(J="scroll"+K)&&(W=B8($,J))?W()-OG($)()[Q]:qJ($)?(v9[J]||G1[J])-XG(K):$[J]-$["offset"+K])},NZ=function($,Z){for(var J=0;J0){K-=W;for(H=0;H=K)return J[H];return J[H-1]}else{H=J.length,K+=W;while(H--)if(J[H]<=K)return J[H]}return J[0]}:function(K,Q,W){if(W===void 0)W=0.001;var H=Z(K);return!Q||Math.abs(H-K)J&&(K*=Z/100),$=$.substr(0,J-1);$=K+($ in AZ?AZ[$]*Z:~$.indexOf("%")?parseFloat($)*Z/100:parseFloat($)||0)}return $},DZ=function($,Z,J,K,Q,W,H,z){var{startColor:L,endColor:q,fontSize:U,indent:F,fontWeight:N}=Q,O=E1.createElement("div"),Y=qJ(J)||B8(J,"pinType")==="fixed",M=$.indexOf("scroller")!==-1,P=Y?G1:J,k=$.indexOf("start")!==-1,E=k?L:q,V="border-color:"+E+";font-size:"+U+";color:"+E+";font-weight:"+N+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return V+="position:"+((M||z)&&Y?"fixed;":"absolute;"),(M||z||!Y)&&(V+=(K===m1?qK:FK)+":"+(W+parseFloat(F))+"px;"),H&&(V+="box-sizing:border-box;text-align:left;width:"+H.offsetWidth+"px;"),O._isStart=k,O.setAttribute("class","gsap-marker-"+$+(Z?" marker-"+Z:"")),O.style.cssText=V,O.innerText=Z||Z===0?$+"-"+Z:$,P.children[0]?P.insertBefore(O,P.children[0]):P.appendChild(O),O._offset=O["offset"+K.op.d2],VZ(O,0,K,k),O},VZ=function($,Z,J,K){var Q={display:"block"},W=J[K?"os2":"p2"],H=J[K?"p2":"os2"];$._isFlipped=K,Q[J.a+"Percent"]=K?-100:0,Q[J.a]=K?"1px":0,Q["border"+W+uJ]=1,Q["border"+H+uJ]=0,Q[J.p]=Z+"px",Y0.set($,Q)},g0=[],GK={},S$,e6=function(){return L9()-r9>34&&(S$||(S$=requestAnimationFrame(k8)))},bJ=function(){if(!j9||!j9.isPressed||j9.startX>G1.clientWidth){if(_0.cache++,j9)S$||(S$=requestAnimationFrame(k8));else k8();r9||NJ("scrollStart"),r9=L9()}},t7=function(){qG=m0.innerWidth,LG=m0.innerHeight},R$=function($){_0.cache++,($===!0||!z9&&!zG&&!E1.fullscreenElement&&!E1.webkitFullscreenElement&&(!ZK||qG!==m0.innerWidth||Math.abs(m0.innerHeight-LG)>m0.innerHeight*0.25))&&kZ.restart(!0)},FJ={},UU=[],jG=function G(){return t1(L0,"scrollEnd",G)||HJ(!0)},NJ=function($){return FJ[$]&&FJ[$].map(function(Z){return Z()})||UU},b9=[],RG=function($){for(var Z=0;ZQ,H=K._startClamp&&K.start>=Q;(W||H)&&K.setPositions(H?Q-1:K.start,W?Math.max(H?Q:K.start+1,Q):K.end,!0)}),$G(!1),QK=0,J.forEach(function(K){return K&&K.render&&K.render(-1)}),_0.forEach(function(K){if(q9(K))K.smooth&&requestAnimationFrame(function(){return K.target.style.scrollBehavior="smooth"}),K.rec&&K(K.rec)}),MG(zK,1),kZ.pause(),LJ++,M9=2,k8(2),g0.forEach(function(K){return q9(K.vars.onRefresh)&&K.vars.onRefresh(K)}),M9=L0.isRefreshing=!1,NJ("refresh")},WK=0,IZ=1,k$,k8=function($){if($===2||!M9&&!PZ){L0.isUpdating=!0,k$&&k$.update(0);var Z=g0.length,J=L9(),K=J-r7>=50,Q=Z&&g0[0].scroll();if(IZ=WK>Q?-1:1,M9||(WK=Q),K){if(r9&&!TZ&&J-r9>200)r9=0,NJ("scrollEnd");Y$=r7,r7=J}if(IZ<0){R9=Z;while(R9-- >0)g0[R9]&&g0[R9].update(0,K);IZ=1}else for(R9=0;R920),J-=J-I}else N&&($=Y0.utils.mapRange(N.scrollTrigger.start,N.scrollTrigger.end,0,F,$)),H&&VZ(H,J,K,!0);if(O)z[O]=$||-0.001,$<0&&($=0);if(W){var T=$+J,A=W._isStart;if(M="scroll"+K.d2,VZ(W,T,K,A&&T>20||!A&&(U?Math.max(G1[M],v9[M]):W.parentNode[M])<=T+1),U)L=C8(H),U&&(W.style[K.op.p]=L[K.op.p]-K.op.m-W._offset+i1)}if(N&&k)M=C8(k),N.seek(F),P=C8(k),N._caScrollDist=M[K.p]-P[K.p],$=$/N._caScrollDist*F;return N&&N.seek(Y),N?$:Math.round($)},NU=/(webkit|moz|length|cssText|inset)/i,KG=function($,Z,J,K){if($.parentNode!==Z){var Q=$.style,W,H;if(Z===G1){$._stOrig=Q.cssText,H=n9($);for(W in H)if(!+W&&!NU.test(W)&&H[W]&&typeof Q[W]==="string"&&W!=="0")Q[W]=H[W];Q.top=J,Q.left=K}else Q.cssText=$._stOrig;Y0.core.getCache($).uncache=1,Z.appendChild($)}},IG=function($,Z,J){var K=Z,Q=K;return function(W){var H=Math.round($());if(H!==K&&H!==Q&&Math.abs(H-K)>3&&Math.abs(H-Q)>3)W=H,J&&J();return Q=K,K=Math.round(W),K}},jZ=function($,Z,J){var K={};K[Z.p]="+="+J,Y0.set($,K)},QG=function($,Z){var J=I8($,Z),K="_scroll"+Z.p2,Q=function W(H,z,L,q,U){var F=W.tween,N=z.onComplete,O={};L=L||J();var Y=IG(J,L,function(){F.kill(),W.tween=0});return U=q&&U||0,q=q||H-L,F&&F.kill(),z[K]=H,z.inherit=!1,z.modifiers=O,O[K]=function(){return Y(L+q*F.ratio+U*F.ratio*F.ratio)},z.onUpdate=function(){_0.cache++,W.tween&&k8()},z.onComplete=function(){W.tween=0,N&&N.call(F)},F=W.tween=Y0.to($,z),F};return $[K]=J,J.wheelHandler=function(){return Q.tween&&Q.tween.kill()&&(Q.tween=0)},e1($,"wheel",J.wheelHandler),L0.isTouch&&e1($,"touchmove",J.wheelHandler),Q},L0=function(){function G(Z,J){yJ||G.register(Y0)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),KK(this),this.init(Z,J)}var $=G.prototype;return $.init=function(J,K){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!D$){this.update=this.refresh=this.kill=L8;return}J=a6(y9(J)||j$(J)||J.nodeType?{trigger:J}:J,YZ);var Q=J,W=Q.onUpdate,H=Q.toggleClass,z=Q.id,L=Q.onToggle,q=Q.onRefresh,U=Q.scrub,F=Q.trigger,N=Q.pin,O=Q.pinSpacing,Y=Q.invalidateOnRefresh,M=Q.anticipatePin,P=Q.onScrubComplete,k=Q.onSnapComplete,E=Q.once,V=Q.snap,B=Q.pinReparent,I=Q.pinSpacer,C=Q.containerAnimation,T=Q.fastScrollEnd,A=Q.preventOverlaps,x=J.horizontal||J.containerAnimation&&J.horizontal!==!1?U9:m1,b=!U&&U!==0,v=E9(J.scroller||m0),c=Y0.core.getCache(v),i=qJ(v),l=("pinType"in J?J.pinType:B8(v,"pinType")||i&&"fixed")==="fixed",o=[J.onEnter,J.onLeave,J.onEnterBack,J.onLeaveBack],r=b&&J.toggleActions.split(" "),K0="markers"in J?J.markers:YZ.markers,Z0=i?0:parseFloat(n9(v)["border"+x.p2+uJ])||0,_=this,z0=J.onRefreshInit&&function(){return J.onRefreshInit(_)},E0=KU(v,i,x),H0=QU(v,i),q0=0,w0=0,D0=0,b0=I8(v,x),S0,u0,f0,t0,X1,A0,i0,O1,v0,m,M1,H1,o1,e0,P1,S1,S,X,D,w,g,s,a,j0,Q0,N0,P0,d0,$1,o0,V1,C0,j1,U1,Y1,x1,J9,G9,I1;if(_._startClamp=_._endClamp=!1,_._dir=x,M*=45,_.scroller=v,_.scroll=C?C.time.bind(C):b0,t0=b0(),_.vars=J,K=K||J.animation,"refreshPriority"in J)UG=1,J.refreshPriority===-9999&&(k$=_);if(c.tweenScroll=c.tweenScroll||{top:QG(v,m1),left:QG(v,U9)},_.tweenTo=S0=c.tweenScroll[x.p],_.scrubDuration=function(W0){if(j1=j$(W0)&&W0,!j1)C0&&C0.progress(1).kill(),C0=0;else C0?C0.duration(W0):C0=Y0.to(K,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:j1,paused:!0,onComplete:function(){return P&&P(_)}})},K)K.vars.lazy=!1,K._initted&&!_.isReverted||K.vars.immediateRender!==!1&&J.immediateRender!==!1&&K.duration()&&K.render(0,!0,!0),_.animation=K.pause(),K.scrollTrigger=_,_.scrubDuration(U),o0=0,z||(z=K.vars.id);if(V){if(!WJ(V)||V.push)V={snapTo:V};"scrollBehavior"in G1.style&&Y0.set(i?[G1,v9]:v,{scrollBehavior:"auto"}),_0.forEach(function(W0){return q9(W0)&&W0.target===(i?E1.scrollingElement||v9:v)&&(W0.smooth=!1)}),f0=q9(V.snapTo)?V.snapTo:V.snapTo==="labels"?WU(K):V.snapTo==="labelsDirectional"?HU(K):V.directional!==!1?function(W0,k0){return XK(V.snapTo)(W0,L9()-w0<500?0:k0.direction)}:Y0.utils.snap(V.snapTo),U1=V.duration||{min:0.1,max:2},U1=WJ(U1)?M$(U1.min,U1.max):M$(U1,U1),Y1=Y0.delayedCall(V.delay||j1/2||0.1,function(){var W0=b0(),k0=L9()-w0<500,R0=S0.tween;if((k0||Math.abs(_.getVelocity())<10)&&!R0&&!TZ&&q0!==W0){var M0=(W0-A0)/e0,_1=K&&!b?K.totalProgress():M0,T0=k0?0:(_1-V1)/(L9()-Y$)*1000||0,R1=Y0.utils.clamp(-M0,1-M0,hJ(T0/2)*T0/0.185),h1=M0+(V.inertia===!1?0:R1),D1,z1,W1=V,A9=W1.onStart,L1=W1.onInterrupt,F9=W1.onComplete;if(D1=f0(h1,_),j$(D1)||(D1=h1),z1=Math.max(0,Math.round(A0+D1*e0)),W0<=i0&&W0>=A0&&z1!==W0){if(R0&&!R0._initted&&R0.data<=hJ(z1-W0))return;if(V.inertia===!1)R1=D1-M0;S0(z1,{duration:U1(hJ(Math.max(hJ(h1-_1),hJ(D1-_1))*0.185/T0/0.05||0)),ease:V.ease||"power3",data:hJ(z1-W0),onInterrupt:function(){return Y1.restart(!0)&&L1&&L1(_)},onComplete:function(){if(_.update(),q0=b0(),K&&!b)C0?C0.resetTo("totalProgress",D1,K._tTime/K._tDur):K.progress(D1);o0=V1=K&&!b?K.totalProgress():_.progress,k&&k(_),F9&&F9(_)}},W0,R1*e0,z1-W0-R1*e0),A9&&A9(_,S0.tween)}}else if(_.isActive&&q0!==W0)Y1.restart(!0)}).pause()}if(z&&(GK[z]=_),F=_.trigger=E9(F||N!==!0&&N),I1=F&&F._gsap&&F._gsap.stRevert,I1&&(I1=I1(_)),N=N===!0?F:E9(N),y9(H)&&(H={targets:F,className:H}),N){if(O===!1||O===o9||(O=!O&&N.parentNode&&N.parentNode.style&&n9(N.parentNode).display==="flex"?!1:d1),_.pin=N,u0=Y0.core.getCache(N),!u0.spacer){if(I)I=E9(I),I&&!I.nodeType&&(I=I.current||I.nativeElement),u0.spacerIsNative=!!I,I&&(u0.spacerState=EZ(I));u0.spacer=X=I||E1.createElement("div"),X.classList.add("pin-spacer"),z&&X.classList.add("pin-spacer-"+z),u0.pinState=P1=EZ(N)}else P1=u0.pinState;J.force3D!==!1&&Y0.set(N,{force3D:!0}),_.spacer=X=u0.spacer,$1=n9(N),j0=$1[O+x.os2],w=Y0.getProperty(N),g=Y0.quickSetter(N,x.a,i1),e7(N,X,$1),S=EZ(N)}if(K0){H1=WJ(K0)?a6(K0,t6):t6,m=DZ("scroller-start",z,v,x,H1,0),M1=DZ("scroller-end",z,v,x,H1,0,m),D=m["offset"+x.op.d2];var h0=E9(B8(v,"content")||v);if(O1=this.markerStart=DZ("start",z,h0,x,H1,D,0,C),v0=this.markerEnd=DZ("end",z,h0,x,H1,D,0,C),C&&(G9=Y0.quickSetter([O1,v0],x.a,i1)),!l&&!(Z8.length&&B8(v,"fixedMarkers")===!0))GU(i?G1:v),Y0.set([m,M1],{force3D:!0}),N0=Y0.quickSetter(m,x.a,i1),d0=Y0.quickSetter(M1,x.a,i1)}if(C){var V0=C.vars.onUpdate,I0=C.vars.onUpdateParams;C.eventCallback("onUpdate",function(){_.update(0,0,1),V0&&V0.apply(C,I0||[])})}if(_.previous=function(){return g0[g0.indexOf(_)-1]},_.next=function(){return g0[g0.indexOf(_)+1]},_.revert=function(W0,k0){if(!k0)return _.kill(!0);var R0=W0!==!1||!_.enabled,M0=z9;if(R0!==_.isReverted){if(R0)x1=Math.max(b0(),_.scroll.rec||0),D0=_.progress,J9=K&&K.progress();if(O1&&[O1,v0,m,M1].forEach(function(_1){return _1.style.display=R0?"none":"block"}),R0)z9=_,_.update(R0);if(N&&(!B||!_.isActive))if(R0)LU(N,X,P1);else e7(N,X,n9(N),Q0);R0||_.update(R0),z9=M0,_.isReverted=R0}},_.refresh=function(W0,k0,R0,M0){if((z9||!_.enabled)&&!k0)return;if(N&&W0&&r9){e1(G,"scrollEnd",jG);return}if(!M9&&z0&&z0(_),z9=_,S0.tween&&!R0)S0.tween.kill(),S0.tween=0;if(C0&&C0.pause(),Y&&K)K.revert({kill:!1}).invalidate(),K.getChildren&&K.getChildren(!0,!0,!1).forEach(function(d9){return d9.vars.immediateRender&&d9.render(0,!0,!0)});_.isReverted||_.revert(!0,!0),_._subPinOffset=!1;var _1=E0(),T0=H0(),R1=C?C.duration():q8(v,x),h1=e0<=0.01||!e0,D1=0,z1=M0||0,W1=WJ(R0)?R0.end:J.end,A9=J.endTrigger||F,L1=WJ(R0)?R0.start:J.start||(J.start===0||!F?0:N?"0 0":"0 100%"),F9=_.pinnedContainer=J.pinnedContainer&&E9(J.pinnedContainer,_),_9=F&&Math.max(0,g0.indexOf(_))||0,c1=_9,A1,p1,g9,p8,l1,b1,u9,g1,iJ,N9,m9,Q8,O8;if(K0&&WJ(R0))Q8=Y0.getProperty(m,x.p),O8=Y0.getProperty(M1,x.p);while(c1-- >0){if(b1=g0[c1],b1.end||b1.refresh(0,1)||(z9=_),u9=b1.pin,u9&&(u9===F||u9===N||u9===F9)&&!b1.isReverted)N9||(N9=[]),N9.unshift(b1),b1.revert(!0,!0);if(b1!==g0[c1])_9--,c1--}if(q9(L1)&&(L1=L1(_)),L1=i6(L1,"start",_),A0=ZG(L1,F,_1,x,b0(),O1,m,_,T0,Z0,l,R1,C,_._startClamp&&"_startClamp")||(N?-0.001:0),q9(W1)&&(W1=W1(_)),y9(W1)&&!W1.indexOf("+="))if(~W1.indexOf(" "))W1=(y9(L1)?L1.split(" ")[0]:"")+W1;else D1=MZ(W1.substr(2),_1),W1=y9(L1)?L1:(C?Y0.utils.mapRange(0,C.duration(),C.scrollTrigger.start,C.scrollTrigger.end,A0):A0)+D1,A9=F;W1=i6(W1,"end",_),i0=Math.max(A0,ZG(W1||(A9?"100% 0":R1),A9,_1,x,b0()+D1,v0,M1,_,T0,Z0,l,R1,C,_._endClamp&&"_endClamp"))||-0.001,D1=0,c1=_9;while(c1--)if(b1=g0[c1],u9=b1.pin,u9&&b1.start-b1._pinPush<=A0&&!C&&b1.end>0){if(A1=b1.end-(_._startClamp?Math.max(0,b1.start):b1.start),(u9===F&&b1.start-b1._pinPush=q8(v,x))){if(A1=n9(N),p8=x===m1,g9=b0(),s=parseFloat(w(x.a))+z1,!R1&&i0>1){if(m9=(i?E1.scrollingElement||v9:v).style,m9={style:m9,value:m9["overflow"+x.a.toUpperCase()]},i&&n9(G1)["overflow"+x.a.toUpperCase()]!=="scroll")m9.style["overflow"+x.a.toUpperCase()]="scroll"}if(e7(N,X,A1),S=EZ(N),p1=C8(N,!0),g1=l&&I8(v,p8?U9:m1)(),O){if(Q0=[O+x.os2,e0+z1+i1],Q0.t=X,c1=O===d1?SZ(N,x)+e0+z1:0,c1)Q0.push(x.d,c1+i1),X.style.flexBasis!=="auto"&&(X.style.flexBasis=c1+i1);if(gJ(Q0),F9)g0.forEach(function(d9){if(d9.pin===F9&&d9.vars.pinSpacing!==!1)d9._subPinOffset=!0});l&&b0(x1)}else c1=SZ(N,x),c1&&X.style.flexBasis!=="auto"&&(X.style.flexBasis=c1+i1);if(l)l1={top:p1.top+(p8?g9-A0:g1)+i1,left:p1.left+(p8?g1:g9-A0)+i1,boxSizing:"border-box",position:"fixed"},l1[UJ]=l1["max"+uJ]=Math.ceil(p1.width)+i1,l1[zJ]=l1["max"+NK]=Math.ceil(p1.height)+i1,l1[o9]=l1[o9+B$]=l1[o9+V$]=l1[o9+C$]=l1[o9+I$]="0",l1[d1]=A1[d1],l1[d1+B$]=A1[d1+B$],l1[d1+V$]=A1[d1+V$],l1[d1+C$]=A1[d1+C$],l1[d1+I$]=A1[d1+I$],S1=FU(P1,l1,B),M9&&b0(0);if(K)iJ=K._initted,o7(1),K.render(K.duration(),!0,!0),a=w(x.a)-s+e0+z1,P0=Math.abs(e0-a)>1,l&&P0&&S1.splice(S1.length-2,2),K.render(0,!0,!0),iJ||K.invalidate(!0),K.parent||K.totalTime(K.totalTime()),o7(0);else a=e0;m9&&(m9.value?m9.style["overflow"+x.a.toUpperCase()]=m9.value:m9.style.removeProperty("overflow-"+x.a))}else if(F&&b0()&&!C){p1=F.parentNode;while(p1&&p1!==G1){if(p1._pinOffset)A0-=p1._pinOffset,i0-=p1._pinOffset;p1=p1.parentNode}}if(N9&&N9.forEach(function(d9){return d9.revert(!1,!0)}),_.start=A0,_.end=i0,t0=X1=M9?x1:b0(),!C&&!M9)t00?g0.slice(0,k0).reverse():g0.slice(k0+1);return(y9(W0)?R0.filter(function(M0){return M0.vars.preventOverlaps===W0}):R0).filter(function(M0){return _.direction>0?M0.end<=A0:M0.start>=i0})},_.update=function(W0,k0,R0){if(C&&!R0&&!W0)return;var M0=M9===!0?x1:_.scroll(),_1=W0?0:(M0-A0)/e0,T0=_1<0?0:_1>1?1:_1||0,R1=_.progress,h1,D1,z1,W1,A9,L1,F9,_9;if(k0){if(X1=t0,t0=C?b0():M0,V)V1=o0,o0=K&&!b?K.totalProgress():T0}if(M&&N&&!z9&&!FZ&&r9){if(!T0&&A0M0+(M0-X1)/(L9()-Y$)*M)T0=0.9999}if(T0!==R1&&_.enabled){if(h1=_.isActive=!!T0&&T0<1,D1=!!R1&&R1<1,L1=h1!==D1,A9=L1||!!T0!==!!R1,_.direction=T0>R1?1:-1,_.progress=T0,A9&&!z9){if(z1=T0&&!R1?0:T0===1?1:R1===1?2:3,b)W1=!L1&&r[z1+1]!=="none"&&r[z1+1]||r[z1],_9=K&&(W1==="complete"||W1==="reset"||(W1 in K))}if(A&&(L1||_9)&&(_9||U||!K)&&(q9(A)?A(_):_.getTrailing(A).forEach(function(g9){return g9.endAnimation()})),!b){if(C0&&!z9&&!FZ)if(C0._dp._time-C0._start!==C0._time&&C0.render(C0._dp._time-C0._start),C0.resetTo)C0.resetTo("totalProgress",T0,K._tTime/K._tDur);else C0.vars.totalProgress=T0,C0.invalidate().restart();else if(K)K.totalProgress(T0,!!(z9&&(w0||W0)))}if(N){if(W0&&O&&(X.style[O+x.os2]=j0),!l)g(E$(s+a*T0));else if(A9){if(F9=!W0&&T0>R1&&i0+1>M0&&M0+1>=q8(v,x),B)if(!W0&&(h1||F9)){var c1=C8(N,!0),A1=M0-A0;KG(N,G1,c1.top+(x===m1?A1:0)+i1,c1.left+(x===m1?0:A1)+i1)}else KG(N,X);gJ(h1||F9?S1:S),P0&&T0<1&&h1||g(s+(T0===1&&!F9?a:0))}}if(V&&!S0.tween&&!z9&&!FZ&&Y1.restart(!0),H&&(L1||E&&T0&&(T0<1||!n7))&&P$(H.targets).forEach(function(g9){return g9.classList[h1||E?"add":"remove"](H.className)}),W&&!b&&!W0&&W(_),A9&&!z9){if(b){if(_9)if(W1==="complete")K.pause().totalProgress(1);else if(W1==="reset")K.restart(!0).pause();else if(W1==="restart")K.restart(!0);else K[W1]();W&&W(_)}if(L1||!n7){if(L&&L1&&a7(_,L),o[z1]&&a7(_,o[z1]),E&&(T0===1?_.kill(!1,1):o[z1]=0),!L1)z1=T0===1?1:3,o[z1]&&a7(_,o[z1])}if(T&&!h1&&Math.abs(_.getVelocity())>(j$(T)?T:2500))O$(_.callbackAnimation),C0?C0.progress(1):O$(K,W1==="reverse"?1:!T0,1)}else if(b&&W&&!z9)W(_)}if(d0){var p1=C?M0/C.duration()*(C._caScrollDist||0):M0;N0(p1+(m._isFlipped?1:0)),d0(p1)}G9&&G9(-M0/C.duration()*(C._caScrollDist||0))},_.enable=function(W0,k0){if(!_.enabled){if(_.enabled=!0,e1(v,"resize",R$),i||e1(v,"scroll",bJ),z0&&e1(G,"refreshInit",z0),W0!==!1)_.progress=D0=0,t0=X1=q0=b0();k0!==!1&&_.refresh()}},_.getTween=function(W0){return W0&&S0?S0.tween:C0},_.setPositions=function(W0,k0,R0,M0){if(C){var _1=C.scrollTrigger,T0=C.duration(),R1=_1.end-_1.start;W0=_1.start+R1*W0/T0,k0=_1.start+R1*k0/T0}_.refresh(!1,!1,{start:o6(W0,R0&&!!_._startClamp),end:o6(k0,R0&&!!_._endClamp)},M0),_.update()},_.adjustPinSpacing=function(W0){if(Q0&&W0){var k0=Q0.indexOf(x.d)+1;Q0[k0]=parseFloat(Q0[k0])+W0+i1,Q0[1]=parseFloat(Q0[1])+W0+i1,gJ(Q0)}},_.disable=function(W0,k0){if(_.enabled){if(W0!==!1&&_.revert(!0,!0),_.enabled=_.isActive=!1,k0||C0&&C0.pause(),x1=0,u0&&(u0.uncache=1),z0&&t1(G,"refreshInit",z0),Y1)Y1.pause(),S0.tween&&S0.tween.kill()&&(S0.tween=0);if(!i){var R0=g0.length;while(R0--)if(g0[R0].scroller===v&&g0[R0]!==_)return;t1(v,"resize",R$),i||t1(v,"scroll",bJ)}}},_.kill=function(W0,k0){_.disable(W0,k0),C0&&!k0&&C0.kill(),z&&delete GK[z];var R0=g0.indexOf(_);if(R0>=0&&g0.splice(R0,1),R0===R9&&IZ>0&&R9--,R0=0,g0.forEach(function(M0){return M0.scroller===_.scroller&&(R0=1)}),R0||M9||(_.scroll.rec=0),K)K.scrollTrigger=null,W0&&K.revert({kill:!1}),k0||K.kill();if(O1&&[O1,v0,m,M1].forEach(function(M0){return M0.parentNode&&M0.parentNode.removeChild(M0)}),k$===_&&(k$=0),N)u0&&(u0.uncache=1),R0=0,g0.forEach(function(M0){return M0.pin===N&&R0++}),R0||(u0.spacer=0);J.onKill&&J.onKill(_)},g0.push(_),_.enable(!1,!1),I1&&I1(_),K&&K.add&&!e0){var c0=_.update;_.update=function(){_.update=c0,_0.cache++,A0||i0||_.refresh()},Y0.delayedCall(0.01,_.update),e0=0.01,A0=i0=0}else _.refresh();N&&zU()},G.register=function(J){if(!yJ)Y0=J||NG(),FG()&&window.document&&G.enable(),yJ=D$;return yJ},G.defaults=function(J){if(J)for(var K in J)YZ[K]=J[K];return YZ},G.disable=function(J,K){D$=0,g0.forEach(function(W){return W[K?"kill":"disable"](J)}),t1(m0,"wheel",bJ),t1(E1,"scroll",bJ),clearInterval(qZ),t1(E1,"touchcancel",L8),t1(G1,"touchstart",L8),XZ(t1,E1,"pointerdown,touchstart,mousedown",n6),XZ(t1,E1,"pointerup,touchend,mouseup",r6),kZ.kill(),NZ(t1);for(var Q=0;Q<_0.length;Q+=3)OZ(t1,_0[Q],_0[Q+1]),OZ(t1,_0[Q],_0[Q+2])},G.enable=function(){if(m0=window,E1=document,v9=E1.documentElement,G1=E1.body,Y0){if(P$=Y0.utils.toArray,M$=Y0.utils.clamp,KK=Y0.core.context||L8,o7=Y0.core.suppressOverwrites||L8,zK=m0.history.scrollRestoration||"auto",WK=m0.pageYOffset||0,Y0.core.globals("ScrollTrigger",G),G1){if(D$=1,_J=document.createElement("div"),_J.style.height="100vh",_J.style.position="absolute",VG(),ZU(),f1.register(Y0),G.isTouch=f1.isTouch,u8=f1.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ZK=f1.isTouch===1,e1(m0,"wheel",bJ),UK=[m0,E1,v9,G1],Y0.matchMedia)G.matchMedia=function(L){var q=Y0.matchMedia(),U;for(U in L)q.add(U,L[U]);return q},Y0.addEventListener("matchMediaInit",function(){return OK()}),Y0.addEventListener("matchMediaRevert",function(){return RG()}),Y0.addEventListener("matchMedia",function(){HJ(0,1),NJ("matchMedia")}),Y0.matchMedia().add("(orientation: portrait)",function(){return t7(),t7});else console.warn("Requires GSAP 3.11.0 or later");t7(),e1(E1,"scroll",bJ);var J=G1.hasAttribute("style"),K=G1.style,Q=K.borderTopStyle,W=Y0.core.Animation.prototype,H,z;if(W.revert||Object.defineProperty(W,"revert",{value:function(){return this.time(-0.01,!0)}}),K.borderTopStyle="solid",H=C8(G1),m1.m=Math.round(H.top+m1.sc())||0,U9.m=Math.round(H.left+U9.sc())||0,Q?K.borderTopStyle=Q:K.removeProperty("border-top-style"),!J)G1.setAttribute("style",""),G1.removeAttribute("style");qZ=setInterval(e6,250),Y0.delayedCall(0.5,function(){return FZ=0}),e1(E1,"touchcancel",L8),e1(G1,"touchstart",L8),XZ(e1,E1,"pointerdown,touchstart,mousedown",n6),XZ(e1,E1,"pointerup,touchend,mouseup",r6),$K=Y0.utils.checkPrefix("transform"),BZ.push($K),yJ=L9(),kZ=Y0.delayedCall(0.2,HJ).pause(),vJ=[E1,"visibilitychange",function(){var{innerWidth:L,innerHeight:q}=m0;if(E1.hidden)l6=L,s6=q;else if(l6!==L||s6!==q)R$()},E1,"DOMContentLoaded",HJ,m0,"load",HJ,m0,"resize",R$],NZ(e1),g0.forEach(function(L){return L.enable(0,1)});for(z=0;z<_0.length;z+=3)OZ(t1,_0[z],_0[z+1]),OZ(t1,_0[z],_0[z+2])}}},G.config=function(J){"limitCallbacks"in J&&(n7=!!J.limitCallbacks);var K=J.syncInterval;if(K&&clearInterval(qZ)||(qZ=K)&&setInterval(e6,K),"ignoreMobileResize"in J&&(ZK=G.isTouch===1&&J.ignoreMobileResize),"autoRefreshEvents"in J)NZ(t1)||NZ(e1,J.autoRefreshEvents||"none"),zG=(J.autoRefreshEvents+"").indexOf("resize")===-1},G.scrollerProxy=function(J,K){var Q=E9(J),W=_0.indexOf(Q),H=qJ(Q);if(~W)_0.splice(W,H?6:2);if(K)H?Z8.unshift(m0,K,G1,K,v9,K):Z8.unshift(Q,K)},G.clearMatchMedia=function(J){g0.forEach(function(K){return K._ctx&&K._ctx.query===J&&K._ctx.kill(!0,!0)})},G.isInViewport=function(J,K,Q){var W=(y9(J)?E9(J):J).getBoundingClientRect(),H=W[Q?UJ:zJ]*K||0;return Q?W.right-H>0&&W.left+H0&&W.top+H=0&&b9.splice(Z,5),b9.push($,$.style.cssText,$.getBBox&&$.getAttribute("transform"),Y0.core.getCache($),KK())}}):b9};L0.revert=function(G,$){return OK(!G,$)};L0.create=function(G,$){return new L0(G,$)};L0.refresh=function(G){return G?R$(!0):(yJ||L0.register())&&HJ(!0)};L0.update=function(G){return++_0.cache&&k8(G===!0?2:0)};L0.clearScrollMemory=MG;L0.maxScroll=function(G,$){return q8(G,$?U9:m1)};L0.getScrollFunc=function(G,$){return I8(E9(G),$?U9:m1)};L0.getById=function(G){return GK[G]};L0.getAll=function(){return g0.filter(function(G){return G.vars.id!=="ScrollSmoother"})};L0.isScrolling=function(){return!!r9};L0.snapDirectional=XK;L0.addEventListener=function(G,$){var Z=FJ[G]||(FJ[G]=[]);~Z.indexOf($)||Z.push($)};L0.removeEventListener=function(G,$){var Z=FJ[G],J=Z&&Z.indexOf($);J>=0&&Z.splice(J,1)};L0.batch=function(G,$){var Z=[],J={},K=$.interval||0.016,Q=$.batchMax||1e9,W=function(L,q){var U=[],F=[],N=Y0.delayedCall(K,function(){q(U,F),U=[],F=[]}).pause();return function(O){U.length||N.restart(!0),U.push(O.trigger),F.push(O),Q<=U.length&&N.progress(1)}},H;for(H in $)J[H]=H.substr(0,2)==="on"&&q9($[H])&&H!=="onRefreshInit"?W(H,$[H]):$[H];if(q9(Q))Q=Q(),e1(L0,"refresh",function(){return Q=$.batchMax()});return P$(G).forEach(function(z){var L={};for(H in J)L[H]=J[H];L.trigger=z,Z.push(L0.create(L))}),Z};var GG=function($,Z,J,K){return Z>K?$(K):Z<0&&$(0),J>K?(K-Z)/(J-Z):J<0?Z/(Z-J):1},JK=function G($,Z){if(Z===!0)$.style.removeProperty("touch-action");else $.style.touchAction=Z===!0?"auto":Z?"pan-"+Z+(f1.isTouch?" pinch-zoom":""):"none";$===v9&&G(G1,Z)},RZ={auto:1,scroll:1},XU=function($){var{event:Z,target:J,axis:K}=$,Q=(Z.changedTouches?Z.changedTouches[0]:Z).target,W=Q._gsap||Y0.core.getCache(Q),H=L9(),z;if(!W._isScrollT||H-W._isScrollT>2000){while(Q&&Q!==G1&&(Q.scrollHeight<=Q.clientHeight&&Q.scrollWidth<=Q.clientWidth||!(RZ[(z=n9(Q)).overflowY]||RZ[z.overflowX])))Q=Q.parentNode;W._isScroll=Q&&Q!==J&&!qJ(Q)&&(RZ[(z=n9(Q)).overflowY]||RZ[z.overflowX]),W._isScrollT=H}if(W._isScroll||K==="x")Z.stopPropagation(),Z._gsapAllow=!0},BG=function($,Z,J,K){return f1.create({target:$,capture:!0,debounce:!1,lockAxis:!0,type:Z,onWheel:K=K&&XU,onPress:K,onDrag:K,onScroll:K,onEnable:function(){return J&&e1(E1,f1.eventTypes[0],HG,!1,!0)},onDisable:function(){return t1(E1,f1.eventTypes[0],HG,!0)}})},OU=/(input|label|select|textarea)/i,WG,HG=function($){var Z=OU.test($.target.tagName);if(Z||WG)$._gsapAllow=!0,WG=Z},YU=function($){WJ($)||($={}),$.preventDefault=$.isNormalizer=$.allowClicks=!0,$.type||($.type="wheel,touch"),$.debounce=!!$.debounce,$.id=$.id||"normalizer";var Z=$,J=Z.normalizeScrollX,K=Z.momentum,Q=Z.allowNestedScroll,W=Z.onRelease,H,z,L=E9($.target)||v9,q=Y0.core.globals().ScrollSmoother,U=q&&q.get(),F=u8&&($.content&&E9($.content)||U&&$.content!==!1&&!U.smooth()&&U.content()),N=I8(L,m1),O=I8(L,U9),Y=1,M=(f1.isTouch&&m0.visualViewport?m0.visualViewport.scale*m0.visualViewport.width:m0.outerWidth)/m0.innerWidth,P=0,k=q9(K)?function(){return K(H)}:function(){return K||2.8},E,V,B=BG(L,$.type,!0,Q),I=function(){return V=!1},C=L8,T=L8,A=function(){z=q8(L,m1),T=M$(u8?1:0,z),J&&(C=M$(0,q8(L,U9))),E=LJ},x=function(){F._gsap.y=E$(parseFloat(F._gsap.y)+N.offset)+"px",F.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(F._gsap.y)+", 0, 1)",N.offset=N.cacheID=0},b=function(){if(V){requestAnimationFrame(I);var K0=E$(H.deltaY/2),Z0=T(N.v-K0);if(F&&Z0!==N.v+N.offset){N.offset=Z0-N.v;var _=E$((parseFloat(F&&F._gsap.y)||0)-N.offset);F.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+_+", 0, 1)",F._gsap.y=_+"px",N.cacheID=_0.cache,k8()}return!0}N.offset&&x(),V=!0},v,c,i,l,o=function(){if(A(),v.isActive()&&v.vars.scrollY>z)N()>z?v.progress(1)&&N(z):v.resetTo("scrollY",z)};return F&&Y0.set(F,{y:"+=0"}),$.ignoreCheck=function(r){return u8&&r.type==="touchmove"&&b(r)||Y>1.05&&r.type!=="touchstart"||H.isGesturing||r.touches&&r.touches.length>1},$.onPress=function(){V=!1;var r=Y;Y=E$((m0.visualViewport&&m0.visualViewport.scale||1)/M),v.pause(),r!==Y&&JK(L,Y>1.01?!0:J?!1:"x"),c=O(),i=N(),A(),E=LJ},$.onRelease=$.onGestureStart=function(r,K0){if(N.offset&&x(),!K0)l.restart(!0);else{_0.cache++;var Z0=k(),_,z0;if(J)_=O(),z0=_+Z0*0.05*-r.velocityX/0.227,Z0*=GG(O,_,z0,q8(L,U9)),v.vars.scrollX=C(z0);if(_=N(),z0=_+Z0*0.05*-r.velocityY/0.227,Z0*=GG(N,_,z0,q8(L,m1)),v.vars.scrollY=T(z0),v.invalidate().duration(Z0).play(0.01),u8&&v.vars.scrollY>=z||_>=z-1)Y0.to({},{onUpdate:o,duration:Z0})}W&&W(r)},$.onWheel=function(){if(v._ts&&v.pause(),L9()-P>1000)E=0,P=L9()},$.onChange=function(r,K0,Z0,_,z0){if(LJ!==E&&A(),K0&&J&&O(C(_[2]===K0?c+(r.startX-r.x):O()+K0-_[1])),Z0){N.offset&&x();var E0=z0[2]===Z0,H0=E0?i+r.startY-r.y:N()+Z0-z0[1],q0=T(H0);E0&&H0!==q0&&(i+=q0-H0),N(q0)}(Z0||K0)&&k8()},$.onEnable=function(){if(JK(L,J?!1:"x"),L0.addEventListener("refresh",o),e1(m0,"resize",o),N.smooth)N.target.style.scrollBehavior="auto",N.smooth=O.smooth=!1;B.enable()},$.onDisable=function(){JK(L,!0),t1(m0,"resize",o),L0.removeEventListener("refresh",o),B.kill()},$.lockAxis=$.lockAxis!==!1,H=new f1($),H.iOS=u8,u8&&!N()&&N(1),u8&&Y0.ticker.add(L8),l=H._dc,v=Y0.to(H,{ease:"power4",paused:!0,inherit:!1,scrollX:J?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:IG(N,N(),function(){return v.pause()})},onUpdate:k8,onComplete:l.vars.onComplete}),H};L0.sort=function(G){if(q9(G))return g0.sort(G);var $=m0.pageYOffset||0;return L0.getAll().forEach(function(Z){return Z._sortY=Z.trigger?$+Z.trigger.getBoundingClientRect().top:Z.start+m0.innerHeight}),g0.sort(G||function(Z,J){return(Z.vars.refreshPriority||0)*-1e6+(Z.vars.containerAnimation?1e6:Z._sortY)-((J.vars.containerAnimation?1e6:J._sortY)+(J.vars.refreshPriority||0)*-1e6)})};L0.observe=function(G){return new f1(G)};L0.normalizeScroll=function(G){if(typeof G>"u")return j9;if(G===!0&&j9)return j9.enable();if(G===!1){j9&&j9.kill(),j9=G;return}var $=G instanceof f1?G:YU(G);return j9&&j9.target===$.target&&j9.kill(),qJ($.target)&&(j9=$),$};L0.core={_getVelocityProp:LZ,_inputObserver:BG,_scrollers:_0,_proxies:Z8,bridge:{ss:function(){r9||NJ("scrollStart"),r9=L9()},ref:function(){return z9}}};NG()&&Y0.registerPlugin(L0);/*! * SplitText 3.13.0 * https://gsap.com * * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license. * @author: Jack Doyle */var A$,mJ,DK,DU=()=>DK||XJ.register(window.gsap),CG=typeof Intl<"u"?new Intl.Segmenter:0,wZ=(G)=>typeof G==="string"?wZ(document.querySelectorAll(G)):("length"in G)?Array.from(G):[G],kG=(G)=>wZ(G).filter(($)=>$ instanceof HTMLElement),EK=[],YK=function(){},EU=/\s+/g,PG=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),SG={left:0,top:0,width:0,height:0},AG=(G,$)=>{if($){let Z=new Set(G.join("").match($)||EK),J=G.length,K,Q,W,H;if(Z.size)while(--J>-1){Q=G[J];for(W of Z)if(W.startsWith(Q)&&W.length>Q.length){K=0,H=Q;while(W.startsWith(H+=G[J+ ++K])&&H.lengthwindow.getComputedStyle(G).display==="inline"&&(G.style.display="inline-block"),dJ=(G,$,Z)=>$.insertBefore(typeof G==="string"?document.createTextNode(G):G,Z),jK=(G,$,Z)=>{let J=$[G+"sClass"]||"",{tag:K="div",aria:Q="auto",propIndex:W=!1}=$,H=G==="line"?"block":"inline-block",z=J.indexOf("++")>-1,L=(q)=>{let U=document.createElement(K),F=Z.length+1;if(J&&(U.className=J+(z?" "+J+F:"")),W&&U.style.setProperty("--"+G,F+""),Q!=="none"&&U.setAttribute("aria-hidden","true"),K!=="span")U.style.position="relative",U.style.display=H;return U.textContent=q,Z.push(U),U};return z&&(J=J.replace("++","")),L.collection=Z,L},jU=(G,$,Z,J)=>{let K=jK("line",Z,J),Q=window.getComputedStyle(G).textAlign||"left";return(W,H)=>{let z=K("");z.style.textAlign=Q,G.insertBefore(z,$[W]);for(;W{var q;let U=Array.from(G.childNodes),F=0,{wordDelimiter:N,reduceWhiteSpace:O=!0,prepareText:Y}=$,M=G.getBoundingClientRect(),P=M,k=!O&&window.getComputedStyle(G).whiteSpace.substring(0,3)==="pre",E=0,V=Z.collection,B,I,C,T,A,x,b,v,c,i,l,o,r,K0,Z0,_,z0,E0;if(typeof N==="object")C=N.delimiter||N,I=N.replaceWith||"";else I=N===""?"":N||" ";B=I!==" ";for(;F-1)x=V[V.length-1],x.appendChild(document.createTextNode(J?"":_));else x=Z(J?"":_),dJ(x,G,T),E&&c===1&&!b&&x.insertBefore(E,x.firstChild);if(J){l=CG?AG([...CG.segment(_)].map((H0)=>H0.segment),z):_.match(H)||EK;for(E0=0;E0P.top&&i.left<=P.left){o=G.cloneNode(),r=G.childNodes[0];while(r&&r!==x)K0=r,r=r.nextSibling,o.appendChild(K0);G.parentNode.insertBefore(o,G),K&&TG(o)}P=i}if(c=A.length?" ":B&&_.slice(-1)===" "?" "+I:I,G,T)}}G.removeChild(T),E=0}else if(T.nodeType===1){if(W&&W.indexOf(T)>-1)V.indexOf(T.previousSibling)>-1&&V[V.length-1].appendChild(T),E=T;else wG(T,$,Z,J,K,Q,W,H,z,!0),E=0;K&&TG(T)}},fG=class G{constructor($,Z){this.isSplit=!1,DU(),this.elements=kG($),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=Z,this._split=()=>this.isSplit&&this.split(this.vars);let J=[],K,Q=()=>{let W=J.length,H;while(W--){H=J[W];let z=H.element.offsetWidth;if(z!==H.width){H.width=z,this._split();return}}};this._data={orig:J,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(K),K=setTimeout(Q,200)})},YK(this),this.split(Z)}split($){this.isSplit&&this.revert(),this.vars=$=$||this.vars||{};let{type:Z="chars,words,lines",aria:J="auto",deepSlice:K=!0,smartWrap:Q,onSplit:W,autoSplit:H=!1,specialChars:z,mask:L}=this.vars,q=Z.indexOf("lines")>-1,U=Z.indexOf("chars")>-1,F=Z.indexOf("words")>-1,N=U&&!F&&!q,O=z&&("push"in z?new RegExp("(?:"+z.join("|")+")","gu"):z),Y=O?new RegExp(O.source+"|"+PG.source,"gu"):PG,M=!!$.ignore&&kG($.ignore),{orig:P,animTime:k,obs:E}=this._data,V;if(U||F||q)this.elements.forEach((B,I)=>{P[I]={element:B,html:B.innerHTML,ariaL:B.getAttribute("aria-label"),ariaH:B.getAttribute("aria-hidden")},J==="auto"?B.setAttribute("aria-label",(B.textContent||"").trim()):J==="hidden"&&B.setAttribute("aria-hidden","true");let C=[],T=[],A=[],x=U?jK("char",$,C):null,b=jK("word",$,T),v,c,i,l;if(wG(B,$,b,x,N,K&&(q||N),M,Y,O,!1),q){let o=wZ(B.childNodes),r=jU(B,o,$,A),K0,Z0=[],_=0,z0=o.map((H0)=>H0.nodeType===1?H0.getBoundingClientRect():SG),E0=SG;for(v=0;vE0.top&&z0[v].left<=E0.left)r(_,v),_=v;E0=z0[v]}_{var q0;return(q0=H0.parentNode)==null?void 0:q0.removeChild(H0)})}if(!F){for(v=0;v{let I=B.cloneNode();return B.replaceWith(I),I.appendChild(B),B.className&&(I.className=B.className.replace(/(\b\w+\b)/g,"$1-mask")),I.style.overflow="clip",I}));if(this.isSplit=!0,mJ&&(H?mJ.addEventListener("loadingdone",this._split):mJ.status==="loading"&&console.warn("SplitText called before fonts loaded")),(V=W&&W(this))&&V.totalTime)this._data.anim=k?V.totalTime(k):V;return q&&H&&this.elements.forEach((B,I)=>{P[I].width=B.offsetWidth,E&&E.observe(B)}),this}revert(){var $,Z;let{orig:J,anim:K,obs:Q}=this._data;if(Q&&Q.disconnect(),J.forEach(({element:W,html:H,ariaL:z,ariaH:L})=>{W.innerHTML=H,z?W.setAttribute("aria-label",z):W.removeAttribute("aria-label"),L?W.setAttribute("aria-hidden",L):W.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=J.length=this.masks.length=0,this.isSplit=!1,mJ==null||mJ.removeEventListener("loadingdone",this._split),K)this._data.animTime=K.totalTime(),K.revert();return(Z=($=this.vars).onRevert)==null||Z.call($,this),this}static create($,Z){return new G($,Z)}static register($){if(A$=A$||$||window.gsap,A$)wZ=A$.utils.toArray,YK=A$.core.context||YK;if(!DK&&window.innerWidth>0)mJ=document.fonts,DK=!0}};fG.version="3.13.0";var XJ=fG;var xG=()=>{return window.matchMedia("(prefers-reduced-motion: reduce)").matches};X0.registerPlugin(L0);var RU={ease:"expo.out",duration:1.2};X0.defaults(RU);var cz=xG(),a9=X0;class RK{#J=[];add(G,$=0,Z=Symbol()){let J=this.#J.findIndex((K)=>K.priority>$);if(J===-1)this.#J.push({fn:G,priority:$,id:Z});else this.#J.splice(J,0,{fn:G,priority:$,id:Z});return()=>this.remove(Z)}remove(G){this.#J=this.#J.filter(($)=>$.id!==G)}notify(G){if(this.#J.length<1)return;this.#J.forEach(($)=>$.fn(G))}}class hG extends RK{constructor(){super();a9.ticker.add(this.update.bind(this))}update(G,$){this.notify({deltaTime:G,time:$*0.01})}}class bG extends RK{width=window.innerWidth;height=window.innerHeight;timeoutId=null;debounceDelay=100;constructor(){super();window.addEventListener("resize",this.update.bind(this))}update(){if(this.timeoutId)window.clearTimeout(this.timeoutId);console.log("update"),this.timeoutId=window.setTimeout(()=>{let{innerWidth:G,innerHeight:$}=window;if(G!==this.width||$!==this.height)this.width=G,this.height=$,this.notify({width:this.width,height:this.height});this.timeoutId=null},this.debounceDelay)}}var MU=new hG,F8=new bG;var VU=[],MK=[];function cJ(G){MK.push(G)}function T$(G){VU.push(G)}function vG(){MK.forEach((G)=>G()),MK.length=0}var yG=[],VK=[];function fZ(G,{element:$}={}){if($)yG.push(async()=>{let Z=$.getBoundingClientRect();return Z.top0?await G():Promise.resolve()});else yG.push(G)}function xZ(G){VK.push(G)}async function _G(){await Promise.allSettled(VK.map((G)=>G())),VK.length=0,document.documentElement.classList.add("is-ready"),document.fonts.ready.then(function(){document.documentElement.classList.add("fonts-loaded")})}function gG(G,{root:$,rootMargin:Z,threshold:J,autoStart:K,once:Q,callback:W}){let H=new w$(G,{root:$,rootMargin:Z,threshold:J,autoStart:K,once:Q,callback:W});return T$(()=>{H.destroy()}),H}var IK={};y1(IK,{Accordion:()=>mG});X0.registerPlugin(L0);class mG{constructor(){this.isInitialized=!1,this.accordions=new Map}init(){if(this.isInitialized)return;this.initAccordions(),this.isInitialized=!0}initAccordions(){document.querySelectorAll(".accordion_wrap").forEach((G,$)=>{if(this.accordions.has(G))this.destroyAccordion(G);let Z=new dG(G,$);this.accordions.set(G,Z)})}destroyAccordion(G){let $=this.accordions.get(G);if($)$.destroy(),this.accordions.delete(G)}destroy(){this.accordions.forEach((G,$)=>{this.destroyAccordion($)}),this.isInitialized=!1}}class dG{constructor(G,$){this.container=G,this.index=$,this.timelines=[],this.closeFunctions=[],this.previousIndex=null,this.closePrevious=G.getAttribute("data-close-previous")!=="false",this.closeOnSecondClick=G.getAttribute("data-close-on-second-click")!=="false",this.openOnHover=G.getAttribute("data-open-on-hover")==="true";let Z=G.getAttribute("data-open-by-default");this.openByDefault=Z!==null&&!isNaN(+Z)?+Z:!1,this.list=G.querySelector(".accordion_list"),this.init()}init(){this.removeCMSList(),this.setupAccordionItems()}removeCMSList(){if(!this.list)return;let G=Array.from(this.list.children).find((J)=>J.classList.contains("w-dyn-list"));if(!G)return;let $=G?.firstElementChild?.children;if(!$)return;let Z=[...this.list.children];[...$].forEach((J)=>{if(J.firstElementChild)this.list.appendChild(J.firstElementChild)}),Z.forEach((J)=>J.remove())}setupAccordionItems(){this.container.querySelectorAll(".accordion_component").forEach((G,$)=>{G.style.setProperty("--_state---false","0");let Z=G.querySelector(".accordion_toggle_button"),J=G.querySelector(".accordion_content_wrap");if(!Z||!J){console.warn("Missing elements:",G);return}this.setupAccordionItem(G,Z,J,$)})}setupAccordionItem(G,$,Z,J){let K=`accordion_button_${this.index}_${J}`,Q=`accordion_content_${this.index}_${J}`;$.setAttribute("aria-expanded","false"),$.setAttribute("id",K),$.setAttribute("aria-controls",Q),Z.setAttribute("id",Q),Z.setAttribute("aria-labelledby",K),Z.style.display="none";let W=()=>{if(H.invalidate(),typeof L0<"u")L0.refresh()},H=X0.timeline({paused:!0,defaults:{duration:0.3,ease:"power1.inOut"},onComplete:W,onReverseComplete:W});H.set(Z,{display:"block"}),H.fromTo(Z,{height:0},{height:"auto"}),this.timelines.push(H);let z=()=>{if(G.classList.contains("is-active"))G.classList.remove("is-active"),H.reverse(),$.setAttribute("aria-expanded","false"),G.style.setProperty("--_state---false","0")};this.closeFunctions[J]=z;let L=(q=!1)=>{if(this.closePrevious&&this.previousIndex!==null&&this.previousIndex!==J)this.closeFunctions[this.previousIndex]?.();if(this.previousIndex=J,$.setAttribute("aria-expanded","true"),G.classList.add("is-active"),G.style.setProperty("--_state---false","1"),q)H.progress(1);else H.play()};if(this.openByDefault===J+1)L(!0);if($.addEventListener("click",()=>{if(window.dispatchEvent(new CustomEvent("accordion:toggle",{detail:{force:15}})),G.classList.contains("is-active")&&this.closeOnSecondClick)z(),this.previousIndex=null;else L()}),this.openOnHover)$.addEventListener("mouseenter",()=>L())}destroy(){this.timelines.forEach((G)=>{if(G)G.kill()}),this.timelines=[],this.closeFunctions=[]}}var BK={};y1(BK,{CardBorder:()=>cG});class cG{constructor(){this.isInitialized=!1,this.cards=new Map,this.prefersReducedMotion=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.initCards(),this.isInitialized=!0}initCards(){document.querySelectorAll("[data-card-border]").forEach((G,$)=>{if(this.cards.has(G))this.destroyCard(G);let Z=new pG(G,$,{prefersReducedMotion:this.prefersReducedMotion});this.cards.set(G,Z)})}destroyCard(G){let $=this.cards.get(G);if($)$.destroy(),this.cards.delete(G)}destroy(){this.cards.forEach((G,$)=>{this.destroyCard($)}),this.isInitialized=!1}}class pG{constructor(G,$,Z={}){this.container=G,this.index=$,this.options=Z,this.boundMouseMove=null,this.boundRecalc=null,this.rect=null,this.init()}init(){if(this.options.prefersReducedMotion)return;this.recalculateRect(),this.setupTracking(),this.setupResizeObserver()}recalculateRect(){this.rect=this.container.getBoundingClientRect()}setupResizeObserver(){this.boundRecalc=()=>this.recalculateRect(),window.addEventListener("resize",this.boundRecalc),window.addEventListener("scroll",this.boundRecalc,{passive:!0})}setupTracking(){this.boundMouseMove=this.handleMouseMove.bind(this),this.container.addEventListener("mousemove",this.boundMouseMove,{passive:!0})}handleMouseMove(G){if(!this.rect)return;let $=(G.clientX-this.rect.left)/this.rect.width*100,Z=(G.clientY-this.rect.top)/this.rect.height*100;this.container.style.setProperty("--_x",Math.round($)+"%"),this.container.style.setProperty("--_y",Math.round(Z)+"%")}destroy(){if(this.boundMouseMove)this.container.removeEventListener("mousemove",this.boundMouseMove),this.boundMouseMove=null;if(this.boundRecalc)window.removeEventListener("resize",this.boundRecalc),window.removeEventListener("scroll",this.boundRecalc),this.boundRecalc=null;this.container.style.removeProperty("--_x"),this.container.style.removeProperty("--_y")}}var kK={};y1(kK,{CoinsAnimation:()=>hZ});var pJ=PQ(lG());class hZ{constructor(G,$,Z=0.8,J="top 0%",K="bottom top"){this.canvasId=G,this.sectionId=$,this.rive=null,this.canvas=null,this.speedProperty=null,this.baseSpeed=Z,this.currentSpeed=Z,this.targetSpeed=Z,this.lastScrollTime=Date.now(),this.observer=null,this.isVisible=!1,this.animationFrameId=null,this.startTrigger=J,this.endTrigger=K}init(){if(X0.registerPlugin(L0),this.canvas=document.getElementById(this.canvasId),!this.canvas)return console.warn(`Canvas #${this.canvasId} not found`),!1;return this.setupHighDPICanvas(),this.setupRive(),this.setupIntersectionObserver(),!0}setupHighDPICanvas(){this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.display="block",this.canvas.style.objectFit="contain"}setupIntersectionObserver(){this.observer=new IntersectionObserver((G)=>{G.forEach(($)=>{if(this.isVisible=$.isIntersecting,this.rive)if($.isIntersecting)this.rive.play();else this.rive.pause()})},{threshold:0.1}),this.observer.observe(this.canvas)}setupRive(){this.rive=new pJ.Rive({src:"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68e1788e590408f8a05d1655_threshold_10.riv",canvas:this.canvas,layoutScaleFactor:1,artboard:"main",stateMachines:"stateMachine",autoplay:!0,autoBind:!0,useOffscreenRenderer:!0,layout:new pJ.Layout({fit:pJ.Fit.Contain,alignment:"center"}),onLoad:()=>{this.rive.resizeDrawingSurfaceToCanvas();let G=this.rive.viewModelInstance;this.speedProperty=G.number("speed"),this.speedProperty.value=this.baseSpeed,this.setupScrollTrigger(),this.startSpeedLerp()}})}setupScrollTrigger(){L0.create({trigger:`#${this.sectionId}`,start:this.startTrigger,end:this.endTrigger,scrub:1,onUpdate:(G)=>{let $=G.getVelocity();if(Math.abs($)>10){this.lastScrollTime=Date.now();let Z=0.01;this.targetSpeed=this.baseSpeed+$*Z;let J=-3,K=3;this.targetSpeed=Math.max(J,Math.min(K,this.targetSpeed))}}})}startSpeedLerp(){let G=()=>{if(!this.speedProperty||!this.isVisible){this.animationFrameId=requestAnimationFrame(G);return}if(Date.now()-this.lastScrollTime>100)this.targetSpeed=this.baseSpeed;let J=0.1;this.currentSpeed+=(this.targetSpeed-this.currentSpeed)*J,this.speedProperty.value=this.currentSpeed,this.animationFrameId=requestAnimationFrame(G)};G()}destroy(){if(this.animationFrameId)cancelAnimationFrame(this.animationFrameId);if(this.observer)this.observer.disconnect(),this.observer=null;if(this.rive)this.rive.cleanup(),this.rive=null;L0.getAll().forEach((G)=>{if(G.vars.trigger===`#${this.sectionId}`)G.kill()})}}var SK={};y1(SK,{CoinsGravity:()=>iG});var P8=PQ(sG());class iG{constructor(){this.isInitialized=!1,this.gravities=new Map,this.prefersReducedMotion=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches;let G=window.innerWidth<=768;this.initGravities(G),this.isInitialized=!0}initGravities(G){document.querySelectorAll("[data-gravity]").forEach((Z,J)=>{if(this.gravities.has(Z))this.destroyGravity(Z);let K=new oG(Z,J,{prefersReducedMotion:this.prefersReducedMotion,isMobile:G});this.gravities.set(Z,K)})}triggerJump(G){this.gravities.forEach(($)=>{$.jump(G)})}destroyGravity(G){let $=this.gravities.get(G);if($)$.destroy(),this.gravities.delete(G)}destroy(){this.gravities.forEach((G,$)=>{this.destroyGravity($)}),this.isInitialized=!1}}class oG{constructor(G,$,Z={}){this.container=G,this.index=$,this.options=Z,this.engine=null,this.render=null,this.runner=null,this.world=null,this.mouse=null,this.mouseConstraint=null,this.boundaries=[],this.coinBodies=[],this.oldWidth=0,this.oldHeight=0,this.isVisible=!1,this.hasInitialized=!1,this.handleResize=this.handleResize.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.click=!1,this.config=this.getConfiguration(),this.setupIntersectionObserver()}getConfiguration(){let G=parseFloat(this.container.getAttribute("data-gravity-x"))||0,$=parseFloat(this.container.getAttribute("data-gravity-y"))||2,Z=parseFloat(this.container.getAttribute("data-duplication-factor"))||2.5;return{gravityX:G,gravityY:$,duplicationFactor:Z,baseCoins:this.getBaseCoins()}}getBaseCoins(){let G=this.options.isMobile||!1,$=G?100:144,Z=G?102:146;return[this.createCoin("TBTC",$,$,"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68dc0f20cc3fcd96decab7f7_tbtc.svg"),this.createCoin("BTC",Z,Z,"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68dc0dca7fd5ce90b30e8acb_btc.svg")]}createCoin(G,$,Z,J){return{text:G,width:$,height:Z,url:J}}setupIntersectionObserver(){let G={root:null,rootMargin:"0px",threshold:0.4};this.observer=new IntersectionObserver(($)=>{$.forEach((Z)=>{if(Z.isIntersecting&&!this.hasInitialized)this.isVisible=!0,this.init(),this.hasInitialized=!0;else if(Z.isIntersecting&&this.hasInitialized)this.isVisible=!0,this.resume();else this.isVisible=!1,this.pause()})},G),this.observer.observe(this.container)}pause(){if(this.runner&&this.engine)this.runner.enabled=!1}resume(){if(this.runner&&this.engine)this.runner.enabled=!0}init(){if(this.options.prefersReducedMotion)return;let{Engine:G,Render:$,MouseConstraint:Z,Mouse:J,World:K,Bodies:Q,Runner:W}=P8.default;this.engine=G.create(),this.world=this.engine.world,this.engine.gravity.x=this.config.gravityX,this.engine.gravity.y=this.config.gravityY,this.engine.positionIterations=10,this.engine.velocityIterations=8,this.engine.constraintIterations=4;let H=this.container.clientWidth,z=this.container.clientHeight;if(H===0||z===0){console.error("Container has no dimensions!");return}this.oldWidth=H,this.oldHeight=z,this.render=$.create({element:this.container,engine:this.engine,options:{width:H,height:z,pixelRatio:2,background:"transparent",wireframes:!1}}),this.createBoundaries();let L=this.prepareCoins();this.preloadImages(L).then(()=>{this.createCoinBodies(L),this.runner=W.create(),W.run(this.runner,this.engine),$.run(this.render)}).catch((q)=>{console.error("Failed to load images:",q)}),this.setupMouseInteraction(),window.addEventListener("resize",this.handleResize),document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)}createBoundaries(){let{World:G,Bodies:$}=P8.default,Z=this.container.clientWidth,J=this.container.clientHeight;this.boundaries.forEach((q)=>G.remove(this.world,q)),this.boundaries=[];let K=(q,U,F,N,O={})=>{return $.rectangle(q,U,F,N,{isStatic:!0,restitution:0.3,friction:0.1,...O})},Q=100,W=K(Z/2,J+Q/2,Z+Q*2,Q,{render:{fillStyle:"transparent"}}),H=K(-Q/2,J/2,Q,J+Q*2,{render:{fillStyle:"transparent"}}),z=K(Z+Q/2,J/2,Q,J+Q*2,{render:{fillStyle:"transparent"}}),L=K(Z/2,-Q/2,Z+Q*2,Q,{render:{fillStyle:"transparent"}});this.boundaries.push(W,H,z,L),G.add(this.world,this.boundaries)}prepareCoins(){let G=[];for(let $=0;${G.push({...Z})});return G}preloadImages(G){return Promise.all(G.map(($)=>new Promise((Z,J)=>{let K=new Image;K.onload=()=>Z(K),K.onerror=()=>{console.error(`Failed to load image: ${$.url}`),J(Error(`Image load error for ${$.url}`))},K.src=$.url})))}createCoinBodies(G){let{World:$,Bodies:Z}=P8.default,J=this.container.clientWidth,K=this.container.clientHeight;this.coinBodies=G.map((Q)=>{let W=this.getRandomPosition(J,K/2),H=this.getRandomVelocity(),z=144,L=Q.width/144,q=Z.rectangle(W.x,W.y,Q.width,Q.height,{chamfer:{radius:20},render:{sprite:{texture:Q.url,xScale:L,yScale:L}},restitution:0.6,friction:0.05,frictionAir:0.02,density:0.001,slop:0.05});return P8.default.Body.setVelocity(q,H),q}),$.add(this.world,this.coinBodies)}getRandomPosition(G,$){return{x:Math.random()*G,y:Math.random()*$}}getRandomVelocity(){return{x:(Math.random()-0.5)*4,y:(Math.random()-0.5)*4}}setupMouseInteraction(){let{MouseConstraint:G,Mouse:$,World:Z}=P8.default;this.mouse=$.create(this.render.canvas),this.mouseConstraint=G.create(this.engine,{mouse:this.mouse,constraint:{stiffness:0.2,render:{visible:!1}}}),Z.add(this.world,this.mouseConstraint),this.render.mouse=this.mouse,this.removeDefaultMouseEvents()}removeDefaultMouseEvents(){if(this.mouse&&this.mouse.element)this.mouse.element.removeEventListener("mousewheel",this.mouse.mousewheel),this.mouse.element.removeEventListener("DOMMouseScroll",this.mouse.mousewheel)}onMouseDown(){this.click=!0}onMouseMove(){this.click=!1}onMouseUp(){}handleResize(){this.resizeCanvas(),this.scaleBodiesToFit(),this.createBoundaries()}resizeCanvas(){this.oldWidth=this.render.options.width,this.oldHeight=this.render.options.height;let G=this.container.clientWidth,$=this.container.clientHeight;this.render.canvas.width=G*this.render.options.pixelRatio,this.render.canvas.height=$*this.render.options.pixelRatio,this.render.canvas.style.width=`${G}px`,this.render.canvas.style.height=`${$}px`,this.render.options.width=G,this.render.options.height=$}scaleBodiesToFit(){let{Body:G}=P8.default;if(!this.oldWidth||!this.oldHeight)return;let $=this.container.clientWidth,Z=this.container.clientHeight,J=$/this.oldWidth,K=Z/this.oldHeight;this.coinBodies.forEach((Q)=>{G.scale(Q,J,K);let W=Q.position.x*J,H=Q.position.y*K;G.setPosition(Q,{x:W,y:H})})}jump(G=15){if(!this.engine||!this.coinBodies.length)return;let{Body:$}=P8.default;this.coinBodies.forEach((Z)=>{let J=(Math.random()-0.5)*15;$.setVelocity(Z,{x:Z.velocity.x+J,y:-G})})}destroy(){let{World:G,Render:$,Runner:Z,Engine:J}=P8.default;if(this.observer)this.observer.disconnect(),this.observer=null;if(window.removeEventListener("resize",this.handleResize),document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.removeDefaultMouseEvents(),this.runner)Z.stop(this.runner),this.runner=null;if(this.render){if($.stop(this.render),this.render.canvas)this.render.canvas.remove();this.render=null}if(this.world)G.clear(this.world,!1),this.world=null;if(this.engine)J.clear(this.engine),this.engine=null;this.coinBodies=[],this.boundaries=[],this.mouse=null,this.mouseConstraint=null}}var AK={};y1(AK,{Counter:()=>nG});X0.registerPlugin(L0);class nG{constructor(){this.isInitialized=!1,this.counters=[]}init(){if(this.isInitialized)return;let G=document.querySelectorAll("[data-counter]");if(G.length===0)return;G.forEach(($,Z)=>{this.setupCounter($,Z)}),this.isInitialized=!0}setupCounter(G,$){let Z=G.textContent.trim();if(!this.isValidNumber(Z))return;let J={element:G,finalNumber:Z,originalValue:this.parseNumberValue(Z),currentValue:0,hasDecimal:Z.includes("."),decimalPlaces:this.getDecimalPlaces(Z),scrollTrigger:null};if(J.hasDecimal)J.element.textContent=0 .toFixed(J.decimalPlaces);else{let K=Math.floor(J.originalValue).toString().length;J.element.textContent=this.formatNumberWithLeadingZeros(0,K)}this.counters.push(J),this.setupScrollTrigger(J,$)}isValidNumber(G){return/^[\d,\.+]+$/.test(G)}getDecimalPlaces(G){let $=G.split(".");return $.length>1?$[1].replace(/,/g,"").length:0}parseNumberValue(G){let $=G.replace(/[,+]/g,"");return parseFloat($)}formatNumberWithLeadingZeros(G,$){return G.toString().padStart($,"0").replace(/\B(?=(\d{3})+(?!\d))/g,",")}setupScrollTrigger(G,$){G.scrollTrigger=L0.create({trigger:G.element,start:"top 80%",markers:!1,onEnter:()=>this.animateCounter(G),once:!0})}animateCounter(G){G.currentValue=0,X0.to(G,{currentValue:G.originalValue,duration:2,ease:"power2.out",onUpdate:()=>{if(G.hasDecimal)G.element.textContent=G.currentValue.toFixed(G.decimalPlaces);else{let $=Math.floor(G.currentValue),Z=Math.floor(G.originalValue).toString().length;G.element.textContent=this.formatNumberWithLeadingZeros($,Z)}}})}destroy(){this.counters.forEach((G)=>{if(G.scrollTrigger)G.scrollTrigger.kill(),G.scrollTrigger=null;G.element.textContent=G.finalNumber}),this.counters=[],this.isInitialized=!1}refresh(){L0.refresh()}toggle(G=!0){this.counters.forEach(($)=>{if($.scrollTrigger)if(G)$.scrollTrigger.enable();else $.scrollTrigger.disable()})}}var TK={};y1(TK,{default:()=>aG});class rG{events;constructor(){this.events={}}on(G,$){if(!this.events[G])this.events[G]=[];this.events[G].push($)}once(G,$){let Z=(J)=>{$(J),this.off(G,Z)};this.on(G,Z)}off(G,$){if(!this.events[G])return;this.events[G]=this.events[G].filter((Z)=>Z!==$)}emit(G,$){if(!this.events[G])return;this.events[G].forEach((Z)=>Z($))}}class N8{static emitter=new rG;static state={};static createProxy(G){return new Proxy(G,{set:function($,Z,J,K){return N8.emitter.emit(Z.toString(),J),Reflect.set($,Z,J,K)}})}static proxy=new Proxy(N8.state,{set:function(G,$,Z,J){if(typeof Z==="object"&&Z!==null)Z=N8.createProxy(Z);return N8.emitter.emit($.toString(),Z),Reflect.set(G,$,Z,J)}});static on(G,$){this.emitter.on(G,$)}static once(G,$){this.emitter.once(G,$)}static off(G,$){this.emitter.off(G,$)}}var IU={get(G,$){if(typeof $==="string"&&$ in N8)return N8[$].bind(N8);return G[$]},set(G,$,Z,J){return Reflect.set(N8.proxy,$,Z,J)}},bZ=new Proxy(N8.proxy,IU);function aG(G,$){bZ.on("SOMETHING",(Z)=>{console.log("something",Z)}),xZ(async()=>{await a9.to(G,{duration:0.2,backgroundColor:"green"})}),fZ(async()=>{await a9.to(G,{duration:1,backgroundColor:"blue"}),await a9.to(G,{duration:1,autoAlpha:0})},{element:G}),cJ(()=>{}),T$(()=>{})}var pK={};y1(pK,{DotsAnimation:()=>jW});/*! * paths 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var BU=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,CU=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,kU=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,PU=/(^[#\.][a-z]|[a-y][a-z])/i,SU=Math.PI/180,AU=180/Math.PI,yZ=Math.sin,vZ=Math.cos,t9=Math.abs,S8=Math.sqrt,TU=Math.atan2,wK=1e8,tG=function($){return typeof $==="string"},KW=function($){return typeof $==="number"},wU=function($){return typeof $>"u"},fU={},xU={},_Z=1e5,QW=function($){return Math.round(($+wK)%1*_Z)/_Z||($<0?0:1)},K1=function($){return Math.round($*_Z)/_Z||0},eG=function($){return Math.round($*10000000000)/10000000000||0},JW=function($,Z,J,K){var Q=$[Z],W=K===1?6:fK(Q,J,K);if((W||!K)&&W+J+2Z){while(--Q&&$[Q]>Z);Q<0&&(Q=0)}else while($[++Q] element or an SVG path data string"):tG(G)?OJ(G):KW(G[0])?[G]:G}function yU(G){var $=[],Z=0;for(;Z-1)if(W=K[Q].nodeName.toLowerCase(),Z.indexOf(","+W+",")<0)J.setAttributeNS(null,W,K[Q].nodeValue);return J},gU={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},uU=function($,Z){var J=Z?Z.split(","):[],K={},Q=J.length;while(--Q>-1)K[J[Q]]=+$.getAttribute(J[Q])||0;return K};function WW(G,$){var Z=G.tagName.toLowerCase(),J=0.552284749831,K,Q,W,H,z,L,q,U,F,N,O,Y,M,P,k,E,V,B,I,C,T,A;if(Z==="path"||!G.getBBox)return G;if(L=_U(G,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),A=uU(G,gU[Z]),Z==="rect")if(H=A.rx,z=A.ry||H,Q=A.x,W=A.y,N=A.width-H*2,O=A.height-z*2,H||z)Y=Q+H*(1-J),M=Q+H,P=M+N,k=P+H*J,E=P+H,V=W+z*(1-J),B=W+z,I=B+O,C=I+z*J,T=I+z,K="M"+E+","+B+" V"+I+" C"+[E,C,k,T,P,T,P-(P-M)/3,T,M+(P-M)/3,T,M,T,Y,T,Q,C,Q,I,Q,I-(I-B)/3,Q,B+(I-B)/3,Q,B,Q,V,Y,W,M,W,M+(P-M)/3,W,P-(P-M)/3,W,P,W,k,W,E,V,E,B].join(",")+"z";else K="M"+(Q+N)+","+W+" v"+O+" h"+-N+" v"+-O+" h"+N+"z";else if(Z==="circle"||Z==="ellipse"){if(Z==="circle")H=z=A.r,U=H*J;else H=A.rx,z=A.ry,U=z*J;Q=A.cx,W=A.cy,q=H*J,K="M"+(Q+H)+","+W+" C"+[Q+H,W+U,Q+q,W+z,Q,W+z,Q-q,W+z,Q-H,W+U,Q-H,W,Q-H,W-U,Q-q,W-z,Q,W-z,Q+q,W-z,Q+H,W-U,Q+H,W].join(",")+"z"}else if(Z==="line")K="M"+A.x1+","+A.y1+" L"+A.x2+","+A.y2;else if(Z==="polyline"||Z==="polygon"){if(F=(G.getAttribute("points")+"").match(CU)||[],Q=F.shift(),W=F.shift(),K="M"+Q+","+W+" L"+F.join(","),Z==="polygon")K+=","+Q+","+W+"z"}if(L.setAttribute("d",b$(L._gsRawPath=OJ(K))),$&&G.parentNode)G.parentNode.insertBefore(L,G),G.parentNode.removeChild(G);return L}function HW(G,$,Z){var J=G[$],K=G[$+2],Q=G[$+4],W;return J+=(K-J)*Z,K+=(Q-K)*Z,J+=(K-J)*Z,W=K+(Q+(G[$+6]-Q)*Z-K)*Z-J,J=G[$+1],K=G[$+3],Q=G[$+5],J+=(K-J)*Z,K+=(Q-K)*Z,J+=(K-J)*Z,K1(TU(K+(Q+(G[$+7]-Q)*Z-K)*Z-J,W)*AU)}function xK(G,$,Z){Z=wU(Z)?1:eG(Z)||0,$=eG($)||0;var J=Math.max(0,~~(t9(Z-$)-0.00000001)),K=yU(G);if($>Z)$=1-$,Z=1-Z,hU(K),K.totalLength=0;if($<0||Z<0){var Q=Math.abs(~~Math.min($,Z))+1;$+=Q,Z+=Q}K.totalLength||m8(K);var W=Z>1,H=ZW(K,$,fU,!0),z=ZW(K,Z,xU),L=z.segment,q=H.segment,U=z.segIndex,F=H.segIndex,N=z.i,O=H.i,Y=F===U,M=N===O&&Y,P,k,E,V,B,I,C,T;if(W||J){if(P=UU)&&K.splice(V,1)}else L.angle=HW(L,N+E,0),N+=E,H=L[N],z=L[N+1],L.length=L.totalLength=0,L.totalPoints=K.totalPoints=8,L.push(H,z,H,z,H,z,H,z);return K.totalLength=0,K}function mU(G,$,Z){if($=$||0,!G.samples)G.samples=[],G.lookup=[];var J=~~G.resolution||12,K=1/J,Q=Z?$+Z*6+1:G.length,W=G[$],H=G[$+1],z=$?$/6*J:0,L=G.samples,q=G.lookup,U=($?G.minLength:wK)||wK,F=L[z+Z*J-1],N=$?L[z-1]:0,O,Y,M,P,k,E,V,B,I,C,T,A,x,b,v,c,i;L.length=q.length=0;for(Y=$+2;Y8)G.splice(Y,6),Y-=6,Q-=6}else for(O=1;O<=J;O++){if(b=K*O,x=1-b,E=V-(V=(b*b*M+3*x*(b*P+x*k))*b),T=A-(A=(b*b*B+3*x*(b*I+x*C))*b),c=S8(T*T+E*E),c=1)return 0;var J=G[$],K=G[$+1],Q=G[$+2],W=G[$+3],H=G[$+4],z=G[$+5],L=G[$+6],q=G[$+7],U=J+(Q-J)*Z,F=Q+(H-Q)*Z,N=K+(W-K)*Z,O=W+(z-W)*Z,Y=U+(F-U)*Z,M=N+(O-N)*Z,P=H+(L-H)*Z,k=z+(q-z)*Z;return F+=(P-F)*Z,O+=(k-O)*Z,G.splice($+2,4,K1(U),K1(N),K1(Y),K1(M),K1(Y+(F-Y)*Z),K1(M+(O-M)*Z),K1(F),K1(O),K1(P),K1(k)),G.samples&&G.samples.splice($/6*G.resolution|0,0,0,0,0,0,0,0),6}function ZW(G,$,Z,J){if(Z=Z||{},G.totalLength||m8(G),$<0||$>1)$=QW($);var K=0,Q=G[0],W,H,z,L,q,U,F;if(!$)F=U=K=0,Q=G[0];else if($===1)F=1,K=G.length-1,Q=G[K],U=Q.length-8;else{if(G.length>1){z=G.totalLength*$,q=U=0;while((q+=G[U++].totalLength)1)$=QW($);if(K.lookup||m8(G),G.length>1){z=G.totalLength*$,q=U=0;while((q+=G[U++].totalLength)=1?0.999999999:F?F:0.000000001):K.angle||0;return Q}function d8(G,$,Z,J,K,Q,W){var H=G.length,z,L,q,U,F;while(--H>-1){z=G[H],L=z.length;for(q=0;q1)Z=S8(V)*Z,J=S8(V)*J;var B=Z*Z,I=J*J,C=(B*I-B*E-I*k)/(B*E+I*k);if(C<0)C=0;var T=(Q===W?-1:1)*S8(C),A=T*(Z*P/J),x=T*-(J*M/Z),b=(G+H)/2,v=($+z)/2,c=b+(q*A-U*x),i=v+(U*A+q*x),l=(M-A)/Z,o=(P-x)/J,r=(-M-A)/Z,K0=(-P-x)/J,Z0=l*l+o*o,_=(o<0?-1:1)*Math.acos(l/S8(Z0)),z0=(l*K0-o*r<0?-1:1)*Math.acos((l*r+o*K0)/S8(Z0*(r*r+K0*K0)));if(isNaN(z0)&&(z0=F),!W&&z0>0)z0-=N;else if(W&&z0<0)z0+=N;_%=N,z0%=N;var E0=Math.ceil(t9(z0)/(N/4)),H0=[],q0=z0/E0,w0=1.3333333333333333*yZ(q0/2)/(1+vZ(q0/2)),D0=q*Z,b0=U*Z,S0=U*-J,u0=q*J,f0;for(f0=0;f0-0.0001?0:x}).match(BU)||[],Z=[],J=0,K=0,Q=0.6666666666666666,W=$.length,H=0,z="ERROR: malformed path: "+G,L,q,U,F,N,O,Y,M,P,k,E,V,B,I,C,T=function(x,b,v,c){k=(v-x)/3,E=(c-b)/3,Y.push(x+k,b+E,v-k,c-E,v,c)};if(!G||!isNaN($[0])||isNaN($[1]))return console.log(z),Z;for(L=0;L0.5||t9(K-F)>0.5){if(T(J,K,U,F),N==="L")L+=2}J=U,K=F}else if(N==="A"){if(I=$[L+4],C=$[L+5],k=$[L+6],E=$[L+7],q=7,I.length>1){if(I.length<3)E=k,k=C,q--;else E=C,k=I.substr(2),q-=2;C=I.charAt(1),I=I.charAt(0)}if(V=dU(J,K,+$[L+1],+$[L+2],+$[L+3],+I,+C,(O?J:0)+k*1,(O?K:0)+E*1),L+=q,V)for(q=0;q1?iU(L):L.getItem(0).matrix,U=L.a*q.x+L.c*q.y,F=L.b*q.x+L.d*q.y;else L=new _$,U=F=0;if(Z&&$.tagName.toLowerCase()==="g")U=F=0;(K?J:W).appendChild(z),z.setAttribute("transform","matrix("+L.a+","+L.b+","+L.c+","+L.d+","+(L.e+U)+","+(L.f+F)+")")}else{if(U=F=0,zW){L=$.offsetParent,q=$;while(q&&(q=q.parentNode)&&q!==L&&q.parentNode)if((YJ.getComputedStyle(q)[K8]+"").length>4)U=q.offsetLeft,F=q.offsetTop,q=0}if(N=YJ.getComputedStyle($),N.position!=="absolute"&&N.position!=="fixed"){L=$.offsetParent;while(W&&W!==L)U+=W.scrollLeft||0,F+=W.scrollTop||0,W=W.parentNode}q=z.style,q.top=$.offsetTop-F+"px",q.left=$.offsetLeft-U+"px",q[K8]=N[K8],q[vK]=N[vK],q.position=N.position==="fixed"?"fixed":"absolute",H.appendChild(z)}return z},yK=function($,Z,J,K,Q,W,H){return $.a=Z,$.b=J,$.c=K,$.d=Q,$.e=W,$.f=H,$},_$=function(){function G(Z,J,K,Q,W,H){if(Z===void 0)Z=1;if(J===void 0)J=0;if(K===void 0)K=0;if(Q===void 0)Q=1;if(W===void 0)W=0;if(H===void 0)H=0;yK(this,Z,J,K,Q,W,H)}var $=G.prototype;return $.inverse=function(){var J=this.a,K=this.b,Q=this.c,W=this.d,H=this.e,z=this.f,L=J*W-K*Q||0.0000000001;return yK(this,W/L,-K/L,-Q/L,J/L,(Q*z-W*H)/L,-(J*z-K*H)/L)},$.multiply=function(J){var K=this.a,Q=this.b,W=this.c,H=this.d,z=this.e,L=this.f,q=J.a,U=J.c,F=J.b,N=J.d,O=J.e,Y=J.f;return yK(this,q*K+F*W,q*Q+F*H,U*K+N*W,U*Q+N*H,z+O*K+Y*W,L+O*Q+Y*H)},$.clone=function(){return new G(this.a,this.b,this.c,this.d,this.e,this.f)},$.equals=function(J){var K=this.a,Q=this.b,W=this.c,H=this.d,z=this.e,L=this.f;return K===J.a&&Q===J.b&&W===J.c&&H===J.d&&z===J.e&&L===J.f},$.apply=function(J,K){if(K===void 0)K={};var{x:Q,y:W}=J,H=this.a,z=this.b,L=this.c,q=this.d,U=this.e,F=this.f;return K.x=Q*H+W*L+U||0,K.y=Q*z+W*q+F||0,K},G}();function DJ(G,$,Z,J){if(!G||!G.parentNode||(A8||LW(G)).documentElement===G)return new _$;var K=cU(G),Q=gK(G),W=Q?qW:FW,H=nU(G,Z),z=W[0].getBoundingClientRect(),L=W[1].getBoundingClientRect(),q=W[2].getBoundingClientRect(),U=H.parentNode,F=!J&&sU(G),N=new _$((L.left-z.left)/100,(L.top-z.top)/100,(q.left-z.left)/100,(q.top-z.top)/100,z.left+(F?0:lU()),z.top+(F?0:pU()));if(U.removeChild(H),K){z=K.length;while(z--)L=K[z],L.scaleX=L.scaleY=0,L.renderTransform(1,L)}return $?N.inverse():N}/*! * MotionPathPlugin 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var rU="x,translateX,left,marginLeft,xPercent".split(","),aU="y,translateY,top,marginTop,yPercent".split(","),tU=Math.PI/180,e9,YW,lJ,mK,uK,NW,eU=function(){return e9||typeof window<"u"&&(e9=window.gsap)&&e9.registerPlugin&&e9},g$=function($,Z,J,K){var Q=Z.length,W=K===2?0:K,H=0,z;for(;H1)$=1;else if($<0)$=0;while(K--)hK(J[K],$,!K&&Z.rotate,J[K]);while(Q)Q.set(Q.t,Q.p,Q.path[Q.pp]+Q.u,Q.d,$),Q=Q._next;Z.rotate&&Z.rSet(Z.target,Z.rProp,J[0].angle*(Z.radians?tU:1)+Z.rOffset+Z.ru,Z,$)}else Z.styles.revert()},getLength:function($){return m8(h$($)).totalLength},sliceRawPath:xK,getRawPath:h$,pointsToSegment:gZ,stringToRawPath:OJ,rawPathToString:b$,transformRawPath:d8,getGlobalMatrix:DJ,getPositionOnPath:hK,cacheRawPathMeasurements:m8,convertToPath:function($,Z){return mK($).map(function(J){return WW(J,Z!==!1)})},convertCoordinates:function($,Z,J){var K=DJ(Z,!0,!0).multiply(DJ($));return J?K.apply(J):K},getAlignMatrix:dK,getRelativePosition:function($,Z,J,K){var Q=dK($,Z,J,K);return{x:Q.e,y:Q.f}},arrayToRawPath:function($,Z){Z=Z||{};var J=g$(g$([],$,Z.x||"x",0),$,Z.y||"y",1);return Z.relative&&DW(J),[Z.type==="cubic"?J:gZ(J,Z.curviness)]}};eU()&&e9.registerPlugin(cK);X0.registerPlugin(cK);class jW{constructor(){this.isInitialized=!1,this.dots=new Map,this.prefersReducedMotion=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.initDots(),this.isInitialized=!0}initDots(){document.querySelectorAll("[data-dots]").forEach((G,$)=>{if(this.dots.has(G))this.destroyDot(G);let Z=new RW(G,$,{prefersReducedMotion:this.prefersReducedMotion});this.dots.set(G,Z)})}destroyDot(G){let $=this.dots.get(G);if($)$.destroy(),this.dots.delete(G)}destroy(){this.dots.forEach((G,$)=>{this.destroyDot($)}),this.isInitialized=!1}}class RW{constructor(G,$,Z={}){this.container=G,this.index=$,this.options=Z,this.timelines=[],this.svgElements=[],this.circles=this.getDefaultCircles(),this.colors=["#7D00FF","#7D00FF"],this.numDots=5,this.init()}init(){if(this.options.prefersReducedMotion)return;let G=this.container.getAttribute("data-dots-count");if(G)this.numDots=parseInt(G,10);let $=this.container.getAttribute("data-dots-colors");if($)this.colors=$.split(",").map((J)=>J.trim());let Z=this.container.getAttribute("data-dots-circles");if(Z)try{this.circles=JSON.parse(Z)}catch(J){console.warn("Invalid circles data, using defaults")}this.setupDots()}getDefaultCircles(){return[{cx:690.183,cy:690.183,r:513.183},{cx:689.496,cy:689.496,r:466.496},{cx:690.421,cy:690.421,r:428.421},{cx:690.406,cy:690.406,r:392.406},{cx:689.896,cy:689.896,r:356.896},{cx:689.954,cy:689.954,r:316.954},{cx:690.305,cy:690.305,r:280.305},{cx:690.293,cy:690.293,r:242.293},{cx:689.958,cy:689.958,r:208.958},{cx:690.345,cy:690.345,r:167.345},{cx:689.94,cy:689.94,r:129.94},{cx:690.259,cy:690.259,r:95.2588},{cx:689.758,cy:689.758,r:65.7582},{cx:690.089,cy:690.089,r:40.0886},{cx:690.178,cy:690.178,r:14.178},{cx:689.643,cy:689.643,r:587.643},{cx:690.372,cy:690.372,r:621.372},{cx:689.846,cy:689.846,r:654.846},{cx:689.944,cy:689.944,r:689.944},{cx:689.53,cy:689.53,r:552.53}]}setupDots(){let G=this.container.querySelector("svg");if(!G){console.warn("No SVG element found in container");return}this.revealCircles(G).then(()=>{this.createDotElements(G)})}revealCircles(G){return new Promise(($)=>{let Z=Array.from(G.querySelectorAll("circle"));if(Z.length===0){$();return}let J=Z.map((Q)=>({element:Q,radius:parseFloat(Q.getAttribute("r"))||0})).sort((Q,W)=>Q.radius-W.radius);J.forEach(({element:Q})=>{let W=parseFloat(Q.getAttribute("cx"))||0,H=parseFloat(Q.getAttribute("cy"))||0;X0.set(Q,{transformOrigin:`${W}px ${H}px`,scale:0,opacity:0})});let K=X0.timeline({onComplete:$});J.forEach(({element:Q},W)=>{K.to(Q,{scale:1,opacity:1,duration:1.6,ease:"expo.out"},W*0.04)}),this.timelines.push(K)})}createDotElements(G){let $=G.querySelector("[data-dots-container]");if(!$)$=document.createElementNS("http://www.w3.org/2000/svg","g"),$.setAttribute("data-dots-container",""),G.appendChild($);this.selectRandomCircles(this.numDots).forEach((J,K)=>{this.createDot($,J,K)})}selectRandomCircles(G){let $=this.circles.map((K,Q)=>({...K,originalIndex:Q})).filter((K)=>K.r>300),Z=[],J=new Set;while(Z.length{if(G)G.kill()}),this.timelines=[],this.svgElements.forEach((G)=>{if(G&&G.parentNode)G.parentNode.removeChild(G)}),this.svgElements=[]}}var lK={};y1(lK,{default:()=>VW});function MW(){let G=window.Webflow||[];if(G.length>0)G.forEach(($)=>{$.destroy(),$.ready()});console.log(G)}function VW(G,$){console.log("form",G),cJ(()=>{MW()})}var sK={};y1(sK,{GhostPosts:()=>IW});class IW{constructor(G={}){this.isInitialized=!1,this.ghostUrl="https://threshold-network.ghost.io/blog",this.apiKey="92bf2e734c4713627111f5976c",this.blogCards=this.getBlogCards(),this.blogCardWrapper=document.querySelector(".blog_card_wrap")?.parentElement?.parentElement,this.posts=[],this.loading=!0}getBlogCards(){let G=document.querySelectorAll(".blog_card_wrap");return Array.from(G).map(($)=>{let Z=$.closest("[class*='blog_card']")||$.parentElement;return{container:Z,tagWrap:Z.querySelector(".blog_card_tag_wrap"),tag:Z.querySelector(".blog_card_tag"),image:Z.querySelector(".blog_card_image"),title:Z.querySelector(".blog_card_title"),excerpt:Z.querySelector(".blog_card_excerpt"),date:Z.querySelector(".blog_card_date"),readtime:Z.querySelector(".blog_card_readtime"),link:Z.querySelector(".blog_card_link a")||Z.querySelector("a")}})}init(){if(this.isInitialized)return;this.showLoading(),this.fetchPosts(),this.isInitialized=!0}async fetchPosts(){try{let G=this.blogCards.length||5,$=`${this.ghostUrl}/ghost/api/content/posts/?key=${this.apiKey}&include=authors,tags&limit=${G}`,Z=await fetch($,{method:"GET",headers:{"Accept-Version":"v5.0"}});if(!Z.ok)throw Error(`HTTP error! status: ${Z.status}`);let J=await Z.json();this.posts=J.posts||[],await this.renderPosts(),this.hideLoading()}catch(G){console.error("Error fetching posts:",G),this.hideLoading()}}async renderPosts(){let G=[];this.blogCards.forEach(($,Z)=>{let J=this.posts[Z];if(!J){$.container?.classList.add("is-hidden");return}$.container?.classList.remove("is-hidden");let K=J.primary_tag?.name||J.tags?.[0]?.name;if(K&&$.tag)$.tag.textContent=K,$.tagWrap?.classList.remove("is-hidden");else $.tagWrap?.classList.add("is-hidden");if($.image&&J.feature_image)if($.image.tagName==="IMG"){let Q=new Promise((W)=>{if($.image.complete)W();else $.image.onload=W,$.image.onerror=W});G.push(Q),$.image.src=J.feature_image,$.image.alt=J.title}else $.image.style.backgroundImage=`url(${J.feature_image})`;if($.title)$.title.textContent=J.title;if($.excerpt)$.excerpt.textContent=J.custom_excerpt||J.excerpt||"";if($.date)$.date.textContent=this.formatDate(J.published_at);if($.readtime)$.readtime.textContent=`${J.reading_time} min read`;if($.link)$.link.href=J.url,$.link.target="_blank",$.link.rel="noopener noreferrer"}),await Promise.all(G),window.dispatchEvent(new Event("resize"))}formatDate(G){return new Date(G).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}showLoading(){this.loading=!0,this.blogCardWrapper?.classList.add("is-loading")}hideLoading(){this.loading=!1,this.blogCardWrapper?.classList.remove("is-loading")}destroy(){this.posts=[],this.loading=!1,this.isInitialized=!1}}var iK={};y1(iK,{default:()=>BW});function BW(G,$){console.log("ilya",G,$),cJ(()=>{console.log("ilya mounted")}),T$(()=>{console.log("ilya destroyed")}),xZ(()=>{console.log("ilya page in")}),fZ(()=>{console.log("ilya page out")})}var oK={};y1(oK,{InfrastructureCard:()=>CW});class CW{constructor(){this.isInitialized=!1,this.resizeHandler=null,this.hoverTimelines=[],this.infrastructureCardWraps=X0.utils.toArray(".infrastructure_card_wrap")}init(){if(this.isInitialized)return;if(!(window.innerWidth<992))this.initDesktopAnimation();else this.infrastructureCardLogosWraps=document.querySelector(".infrastructure_card_logos_wrap"),this.infrastructureCardPlus=document.querySelectorAll(".infrastructure_card_plus"),this.initMobileAnimation();this.bindResize(),this.isInitialized=!0}initDesktopAnimation(){this.cleanup(),this.infrastructureCardWraps.forEach((G)=>{let $=G.querySelectorAll(".infrastructure_card_logos"),Z=X0.timeline({paused:!0}).fromTo($,{y:"0%",opacity:0},{y:"10%",opacity:1,duration:0.6,stagger:{each:0.02,from:"center"},ease:"power2.out"}),J=()=>Z.timeScale(1).play(),K=()=>Z.timeScale(1.5).reverse();G.addEventListener("mouseenter",J),G.addEventListener("mouseleave",K),this.hoverTimelines.push({tl:Z,wrap:G,hoverIn:J,hoverOut:K})})}initMobileAnimation(){this.cleanup(),this.mobileClickHandlers=[],this.infrastructureCardWraps.forEach((G)=>{let $=G.querySelector(".infrastructure_card_logos_wrap"),Z=G.querySelector(".infrastructure_card_plus");if(!$||!Z)return;let J=Z.querySelector("svg"),K=J?J.querySelector("path:nth-child(2)"):null;X0.set($,{height:0});let Q=()=>{let W=Z.getAttribute("aria-expanded")==="true";if(X0.to($,{height:W?0:"auto",duration:0.3,ease:"power2.inOut"}),X0.to(J,{rotation:W?0:180,duration:0.3,ease:"power2.inOut"}),K)X0.to(K,{opacity:W?1:0,duration:0.3,ease:"power2.inOut"});Z.setAttribute("aria-expanded",W?"false":"true")};Z.addEventListener("click",Q),this.mobileClickHandlers.push({cardPlus:Z,clickHandler:Q})})}bindResize(){this.resizeHandler=this.debounceResize(()=>{this.init()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(G,$){let Z=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==Z)Z=innerWidth,G.apply(this,K)},$)}}cleanup(){if(this.hoverTimelines.forEach(({tl:G,wrap:$,hoverIn:Z,hoverOut:J})=>{G.kill(),$.removeEventListener("mouseenter",Z),$.removeEventListener("mouseleave",J)}),this.hoverTimelines=[],this.mobileClickHandlers)this.mobileClickHandlers.forEach(({cardPlus:G,clickHandler:$})=>{G.removeEventListener("click",$)}),this.mobileClickHandlers=[]}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var nK={};y1(nK,{LiquidityProgress:()=>kW});class kW{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.isMobile=!1,this.animatedLines=document.querySelector(".animated-lines"),this.animatedTags=document.querySelector(".animated-tags"),this.tagGroups=X0.utils.toArray(".animated-tags > g"),this.mobileLines=document.querySelector("#liquidityLinesMobile"),this.mobileGroups=X0.utils.toArray("#liquidityLinesMobile > g")}init(){if(this.isInitialized)return;X0.registerPlugin(L0),this.checkViewport(),this.initAnimation(),this.bindResize(),this.isInitialized=!0}checkViewport(){this.isMobile=window.innerWidth<=479}initAnimation(){if(this.cleanup(),this.checkViewport(),this.isMobile)this.initMobileAnimation();else this.initDesktopAnimation()}initDesktopAnimation(){if(!this.animatedLines)return;this.timeline=X0.timeline().fromTo(this.animatedLines,{webkitMaskPosition:"0% 100%",maskPosition:"0% 100%"},{webkitMaskPosition:"0% 0%",maskPosition:"0% 0%",duration:1,ease:"power2.inOut"}),this.scrollTrigger=L0.create({trigger:"#liquiditySection",start:"top 100%",end:"bottom 40%",scrub:1,animation:this.timeline})}initMobileAnimation(){let G=document.querySelector(".liquidity_mobile_mask");if(!G)return;this.timeline=X0.timeline().fromTo(G,{clipPath:"inset(0% 0% 100% 0%)"},{clipPath:"inset(0% 0% 0% 0%)",duration:1,ease:"power2.inOut"}),this.scrollTrigger=L0.create({trigger:"#liquiditySection",start:"top 50%",end:"bottom 80%",scrub:1,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{let G=this.isMobile;if(this.checkViewport(),G!==this.isMobile)L0.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(G,$){let Z=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==Z)Z=innerWidth,G.apply(this,K)},$)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var rK={};y1(rK,{LogosWheel:()=>PW});X0.registerPlugin(L0);class PW{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.wheelCards=X0.utils.toArray(".wheel_card_wrap"),this.currentBreakpoint=null}init(){if(this.isInitialized)return;this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup();let $=window.innerWidth<=768?"mobile":"desktop";if(this.currentBreakpoint===$&&this.timeline)return;this.currentBreakpoint=$;let Z=document.querySelector("#wheelPath"),J=document.querySelector("#wheelSection");if(!Z||!J){console.warn("wheelPath or wheelSection not found");return}requestAnimationFrame(()=>{let K=Z.getBBox(),Q=Z.ownerSVGElement,W=Q.getBoundingClientRect(),H=J.getBoundingClientRect(),z=Q.viewBox.baseVal,L=W.width/z.width,q=W.height/z.height,U=K.width/2*L,F=(K.x+K.width/2)*L+(W.left-H.left),N=(K.y+K.height/2)*q+(W.top-H.top),O=this.wheelCards.length,Y=-Math.PI/2,M=(P,k)=>{let E=P/O*Math.PI*2+Y+k;return{x:Math.cos(E)*U+F,y:Math.sin(E)*U+N}};requestAnimationFrame(()=>{X0.set(this.wheelCards,{position:"absolute",left:0,top:0,xPercent:-50,yPercent:-50,rotation:0,force3D:!0}),this.wheelCards.forEach((k,E)=>{let V=M(E,0);X0.set(k,{x:V.x,y:V.y,force3D:!0})}),this.timeline=X0.timeline({defaults:{ease:"none"}});let P=36;for(let k=1;k<=P;k++){let E=k/P*Math.PI*2;this.timeline.to(this.wheelCards,{duration:1/P,x:(V)=>M(V,E).x,y:(V)=>M(V,E).y,force3D:!0})}this.scrollTrigger=L0.create({trigger:"#wheelSection",start:"top 50%",end:"bottom top",scrub:2,animation:this.timeline,fastScrollEnd:!0})})})}bindResize(){this.resizeHandler=this.debounceResize(()=>{let $=window.innerWidth<=768?"mobile":"desktop";if(this.currentBreakpoint!==$)this.initAnimation();else L0.refresh()},250),window.addEventListener("resize",this.resizeHandler,{passive:!0})}debounceResize(G,$){let Z=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==Z)Z=innerWidth,G.apply(this,K)},$)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null;X0.set(this.wheelCards,{clearProps:"all"})}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1,this.currentBreakpoint=null}}var aK={};y1(aK,{MarketsProgress:()=>SW});class SW{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.marketsSVGs=X0.utils.toArray(".card_markets_svg"),this.marketsContents=X0.utils.toArray(".card_markets_content"),this.marketsDot=document.querySelector(".card_markets_dot")}init(){if(this.isInitialized)return;X0.registerPlugin(L0),this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup();let G=window.innerWidth<992;this.timeline=X0.timeline().set(this.marketsSVGs,{color:"#DFDFDF"}).set(this.marketsContents,{opacity:0.5}).fromTo(".card_market_line",G?{height:"0%",width:"1px"}:{width:"0%",height:"1px"},{...G?{height:"100%",width:"1px"}:{width:"100%",height:"1px"},transformOrigin:G?"top center":"left center",duration:1,ease:"power1.out"}).to(this.marketsSVGs[0],{backgroundColor:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0).to(this.marketsContents[0],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.marketsSVGs[1],{backgroundColor:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.25).to(this.marketsContents[1],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.marketsSVGs[2],{backgroundColor:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.6).to(this.marketsContents[2],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.marketsDot,{scale:0,marginLeft:G?"0rem":"-1rem",marginTop:G?"-.2rem":"0rem",duration:0.2,ease:"power2.out"},">");let $=L0.create({trigger:"#marketsSection",start:G?"top 50%":"0% 60%",end:"bottom center",scrub:!0,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{L0.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(G,$){let Z=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==Z)Z=innerWidth,G.apply(this,K)},$)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var tK={};y1(tK,{Marquee:()=>AW});class AW{constructor(){this.isInitialized=!1,this.resizeHandler=null,this.marquees=new Map,this.prefersReducedMotion=!1,this.isMobile=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.isMobile=window.innerWidth<=768||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.resizeHandler=this.debounceOnWidthChange(()=>{this.isMobile=window.innerWidth<=768,this.initMarquees()},250),this.initMarquees(),window.addEventListener("resize",this.resizeHandler),this.isInitialized=!0}initMarquees(){document.querySelectorAll("[data-marquee]").forEach((G,$)=>{if(this.marquees.has(G))this.destroyMarquee(G);let Z=this.isMobile?100:0;setTimeout(()=>{let J=new TW(G,$,{prefersReducedMotion:this.prefersReducedMotion,isMobile:this.isMobile});this.marquees.set(G,J)},Z)})}destroyMarquee(G){let $=this.marquees.get(G);if($)$.destroy(),this.marquees.delete(G)}debounceOnWidthChange(G,$){let Z=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==Z)Z=innerWidth,G.apply(this,K)},$)}}destroy(){if(this.marquees.forEach((G,$)=>{this.destroyMarquee($)}),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}class TW{constructor(G,$,Z={}){this.container=G,this.list=G.querySelector("[data-marquee-list]"),this.index=$,this.options=Z,this.timeline=null,this.originalItems=[],this.init()}init(){if(this.options.prefersReducedMotion)return;this.setupMarquee()}setupMarquee(){if(!this.list)return;if(this.container.offsetHeight,this.originalItems=Array.from(this.list.querySelectorAll("[data-marquee-item]")),this.originalItems.length===0)return;this.createSeamlessLoop()}createSeamlessLoop(){Array.from(this.list.querySelectorAll("[data-marquee-item]")).forEach((W)=>{if(W.getAttribute("data-marquee-duplicate")==="true")W.remove()});let $=this.container.getBoundingClientRect().width,Z=0;this.originalItems.forEach((W)=>{let H=W.getBoundingClientRect(),z=getComputedStyle(W),L=parseFloat(z.marginLeft)||0,q=parseFloat(z.marginRight)||0;Z+=H.width+L+q});let J=this.options.isMobile?$*4:$*3,K=Math.max(1,Math.ceil(J/Z));for(let W=0;W{let z=H.cloneNode(!0);z.setAttribute("data-marquee-duplicate","true"),this.list.appendChild(z)});let Q=Array.from(this.list.querySelectorAll("[data-marquee-item]"));this.createSimpleAnimation(Q,Z)}createSimpleAnimation(G,$){let J=parseFloat(this.container.getAttribute("data-marquee-speed"))||1;if(this.options.isMobile)J*=0.5;let K=$/100/J;if(this.timeline)this.timeline.kill();X0.set(this.list,{x:0}),this.timeline=X0.to(this.list,{x:-$,duration:K,ease:"none",repeat:-1,onRepeat:()=>{X0.set(this.list,{x:0})}})}destroy(){if(this.timeline)this.timeline.kill(),this.timeline=null;if(this.list)X0.set(this.list,{x:0}),Array.from(this.list.querySelectorAll("[data-marquee-item]")).forEach(($)=>{if($.getAttribute("data-marquee-duplicate")==="true")$.remove()});this.originalItems=[]}}var eK={};y1(eK,{default:()=>wW});function wW(G,$){bZ.on("PAGE",(Z)=>{console.log("page changed")})}var JQ={};y1(JQ,{PurposeProgress:()=>fW});class fW{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.purposeSVGs=X0.utils.toArray(".purpose_card_svg"),this.purposeContents=X0.utils.toArray(".purpose_card_content"),this.purposeDot=document.querySelector(".purpose_progress_dot")}init(){if(this.isInitialized)return;X0.registerPlugin(L0),this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup(),this.timeline=X0.timeline().set(this.purposeSVGs,{color:"#DFDFDF"}).set(this.purposeContents,{opacity:0.5}).fromTo(".purpose_progress_line",{height:"0%"},{height:"100%",transformOrigin:"top center",duration:1,ease:"power1.out"}).to(this.purposeSVGs[0],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0).to(this.purposeSVGs[0].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},0).to(this.purposeContents[0],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeSVGs[1],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.1).to(this.purposeSVGs[1].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},"<").to(this.purposeContents[1],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeSVGs[2],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.4).to(this.purposeSVGs[2].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},"<").to(this.purposeContents[2],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeDot,{scale:0,marginTop:"-1rem",duration:0.2,ease:"power2.out"},">.1");let G=L0.create({trigger:".purpose_progress_wrap",start:"top 55%",end:"bottom center",scrub:!0,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{L0.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(G,$){let Z=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==Z)Z=innerWidth,G.apply(this,K)},$)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var $Q={};y1($Q,{default:()=>xW});function Kz(G){G.setAttribute("aria-hidden","true"),G.style.position="absolute",G.style.left="-9999px",G.style.top="-9999px",G.style.width="1px"}var Qz=(G)=>{let $=G.textContent;G.textContent="";let Z=document.createElement("span");Z.textContent=$,G.appendChild(Z),Kz(Z);let J=document.createElement("span");return J.setAttribute("data-css","overflow-clip"),J.textContent=$,J.setAttribute("aria-hidden","true"),G.appendChild(J),new XJ(J,{type:"chars"})};function xW(G){let $=Qz(G);gG(G,{autoStart:!0,callback:({isIn:Z})=>{if(Z)a9.to($.chars,{yPercent:0,stagger:0.02});else a9.killTweensOf($.chars),a9.set($.chars,{yPercent:100})}})}var ZQ={};y1(ZQ,{Tabs:()=>hW});X0.registerPlugin(L0);class hW{constructor(){this.isInitialized=!1,this.tabs=new Map}init(){if(this.isInitialized)return;this.initTabs(),this.isInitialized=!0}initTabs(){document.querySelectorAll(".tab_wrap").forEach((G,$)=>{if(this.tabs.has(G))this.destroyTab(G);let Z=new bW(G,$);this.tabs.set(G,Z)})}destroyTab(G){let $=this.tabs.get(G);if($)$.destroy(),this.tabs.delete(G)}destroy(){this.tabs.forEach((G,$)=>{this.destroyTab($)}),this.isInitialized=!1}}class bW{constructor(G,$){this.container=G,this.index=$,this.activeIndex=0,this.animating=!1,this.canPlay=!0,this.autoplayTl=null,this.timelines=[],this.eventListeners=[],this.loopControls=G.getAttribute("data-loop-controls")==="true",this.slideTabs=G.getAttribute("data-slide-tabs")==="true",this.pauseOnHover=G.getAttribute("data-pause-on-hover")==="true",this.autoplay=Number(G.getAttribute("data-autoplay-duration"))||0,this.duration=Number(G.getAttribute("data-duration"))||0.3,this.buttonList=G.querySelector(".tab_button_list"),this.panelList=G.querySelector(".tab_content_list"),this.previousButton=G.querySelector('[data-tab="previous"] button'),this.nextButton=G.querySelector('[data-tab="next"] button'),this.toggleWrap=G.querySelector('[data-tab-button="toggle"]'),this.toggleButton=G.querySelector('[data-tab-button="toggle"] button'),this.init()}init(){if(this.container.dataset.scriptInitialized)return;if(this.container.dataset.scriptInitialized="true",this.removeCMSList(this.buttonList),this.removeCMSList(this.panelList),this.buttonItems=Array.from(this.buttonList.children),this.panelItems=Array.from(this.panelList.children),!this.buttonList||!this.panelList||!this.buttonItems.length||!this.panelItems.length){console.warn("Missing elements in:",this.container);return}this.setupAccessibility(),this.setupTabs(),this.makeActive(0,!1,!1),this.setupNavigation(),this.setupAutoplay()}removeCMSList(G){if(!G)return;let $=Array.from(G.children).find((K)=>K.classList.contains("w-dyn-list"));if(!$)return;let Z=$?.firstElementChild?.children;if(!Z)return;let J=[...G.children];[...Z].forEach((K)=>{if(K.firstElementChild)G.appendChild(K.firstElementChild)}),J.forEach((K)=>K.remove())}setupAccessibility(){this.panelItems.forEach((G)=>{G.style.display="none",G.setAttribute("role","tabpanel")}),this.panelList.removeAttribute("role"),this.buttonList.setAttribute("role","tablist"),this.buttonItems.forEach((G)=>{G.setAttribute("role","tab")})}setupTabs(){this.buttonItems.forEach((G,$)=>{let Z=this.container.getAttribute("data-tab-component-id");Z=Z?Z.toLowerCase().replaceAll(" ","-"):this.index+1;let J=G.getAttribute("data-tab-item-id");if(J=J?J.toLowerCase().replaceAll(" ","-"):$+1,G.setAttribute("id",`tab-button-${Z}-${J}`),G.setAttribute("aria-controls",`tab-panel-${Z}-${J}`),this.panelItems[$]?.setAttribute("id",`tab-panel-${Z}-${J}`),this.panelItems[$]?.setAttribute("aria-labelledby",G.id),new URLSearchParams(location.search).get("tab-id")===`${Z}-${J}`)this.makeActive($),this.autoplay=0,this.container.scrollIntoView({behavior:"smooth",block:"start"}),history.replaceState({},"",((W)=>(W.searchParams.delete("tab-id"),W))(new URL(location.href)));let K=()=>this.makeActive($),Q=(W)=>{if(["ArrowRight","ArrowDown"].includes(W.key))this.updateIndex(1,!0);else if(["ArrowLeft","ArrowUp"].includes(W.key))this.updateIndex(-1,!0)};G.addEventListener("click",K),G.addEventListener("keydown",Q),this.eventListeners.push({element:G,type:"click",handler:K},{element:G,type:"keydown",handler:Q})})}setupNavigation(){if(this.nextButton){let G=()=>this.updateIndex(1);this.nextButton.addEventListener("click",G),this.eventListeners.push({element:this.nextButton,type:"click",handler:G})}if(this.previousButton){let G=()=>this.updateIndex(-1);this.previousButton.addEventListener("click",G),this.eventListeners.push({element:this.previousButton,type:"click",handler:G})}}setupAutoplay(){if(this.autoplay===0||typeof X0>"u")return;this.autoplayTl=X0.timeline({repeat:-1}).fromTo(this.container,{"--progress":0},{onComplete:()=>this.updateIndex(1,!1,!1),"--progress":1,ease:"none",duration:this.autoplay});let G=!1,$=!1,Z=!1,J=!0,K=()=>{if(Z||!J||this.canPlay||G||$)this.autoplayTl.pause();else this.autoplayTl.play()},Q=()=>{if(this.canPlay=!this.canPlay,this.toggleButton?.setAttribute("aria-pressed",!this.canPlay?"true":"false"),this.toggleWrap?.classList.toggle("is-pressed",!this.canPlay),!this.canPlay)G=$=Z=!1;K()};if(Q(),this.toggleButton){let q=()=>Q();this.toggleButton.addEventListener("click",q),this.eventListeners.push({element:this.toggleButton,type:"click",handler:q})}let W=(q)=>{Z=q.matches,K(),this.canPlay=!q.matches,Q()},H=window.matchMedia("(prefers-reduced-motion: reduce)");if(W(H),H.addEventListener("change",W),this.pauseOnHover){let q=()=>{G=!0,K()},U=()=>{$=!1,G=!1,K()};this.container.addEventListener("mouseenter",q),this.container.addEventListener("mouseleave",U),this.eventListeners.push({element:this.container,type:"mouseenter",handler:q},{element:this.container,type:"mouseleave",handler:U})}let z=()=>{$=!0,K()},L=(q)=>{if(!q.relatedTarget||!this.container.contains(q.relatedTarget))$=!1,K()};this.container.addEventListener("focusin",z),this.container.addEventListener("focusout",L),this.eventListeners.push({element:this.container,type:"focusin",handler:z},{element:this.container,type:"focusout",handler:L}),this.intersectionObserver=new IntersectionObserver((q)=>{J=q[0].isIntersecting,K()},{threshold:0}),this.intersectionObserver.observe(this.container)}makeActive(G,$=!1,Z=!0,J=!0){if(this.animating)return;if(this.buttonItems.forEach((H,z)=>{H.classList.toggle("is-active",z===G),H.setAttribute("aria-selected",z===G?"true":"false"),H.setAttribute("tabindex",z===G?"0":"-1")}),this.panelItems.forEach((H,z)=>{H.classList.toggle("is-active",z===G)}),typeof L0<"u")L0.refresh();if(this.nextButton)this.nextButton.disabled=G===this.buttonItems.length-1&&!this.loopControls;if(this.previousButton)this.previousButton.disabled=G===0&&!this.loopControls;if($)this.buttonItems[G].focus();let K=this.panelItems[this.activeIndex],Q=this.panelItems[G],W=this.activeIndex>G?-1:1;if(typeof X0<"u"&&Z&&this.activeIndex!==G){if(this.autoplayTl&&!this.canPlay&&typeof this.autoplayTl.restart==="function")this.autoplayTl.restart();this.animating=!0;let H=X0.timeline({onComplete:()=>this.animating=!1,defaults:{duration:this.duration,ease:"power1.out"}});if(this.timelines.push(H),this.slideTabs){if(H.set(Q,{display:"block",position:"relative"}),K)H.set(K,{position:"absolute",top:0,left:0,width:"100%"}),H.fromTo(K,{xPercent:0},{xPercent:-120*W});if(H.fromTo(Q,{xPercent:120*W},{xPercent:0},"<"),K)H.set(K,{display:"none"})}else{if(K)H.to(K,{opacity:0}),H.set(K,{display:"none"});H.set(Q,{display:"block"}),H.fromTo(Q,{opacity:0},{opacity:1})}}else{if(K)K.style.display="none";if(Q)Q.style.display="block"}this.buttonList.scrollTo({left:this.buttonItems[G].offsetLeft-this.buttonList.clientWidth/2,behavior:"smooth"}),this.activeIndex=G}updateIndex(G,$=!1,Z=!0){let J=(this.activeIndex+G+this.buttonItems.length)%this.buttonItems.length;this.makeActive(J,$,!0,Z)}destroy(){if(this.autoplayTl)this.autoplayTl.kill(),this.autoplayTl=null;if(this.timelines.forEach((G)=>{if(G)G.kill()}),this.timelines=[],this.eventListeners.forEach(({element:G,type:$,handler:Z})=>{G.removeEventListener($,Z)}),this.eventListeners=[],this.intersectionObserver)this.intersectionObserver.disconnect(),this.intersectionObserver=null;delete this.container.dataset.scriptInitialized}}var KQ={};y1(KQ,{default:()=>yW});function yW(G,$){}var QQ={};y1(QQ,{TextAnimations:()=>lZ});/*! * CustomEase 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var S9,_W,gW=function(){return S9||typeof window<"u"&&(S9=window.gsap)&&S9.registerPlugin&&S9},vW=function(){if(S9=gW(),S9)S9.registerEase("_CE",EJ.create),_W=1;else console.warn("Please gsap.registerPlugin(CustomEase)")},Gz=100000000000000000000,pZ=function($){return~~($*1000+($<0?-0.5:0.5))/1000},Wz=1,Hz=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,Uz=/[cLlsSaAhHvVtTqQ]/g,zz=function($){var Z=$.length,J=Gz,K;for(K=1;KL*(T*T+A*A))v=q.length,G($,Z,F,N,k,E,I,C,L,q,U),G(I,C,V,B,M,P,H,z,L,q,U+1+(q.length-v));return q},EJ=function(){function G(Z,J,K){_W||vW(),this.id=Z,Wz&&this.setData(J,K)}var $=G.prototype;return $.setData=function(J,K){K=K||{},J=J||"0,0,1,1";var Q=J.match(Hz),W=1,H=[],z=[],L=K.precision||1,q=L<=1,U,F,N,O,Y,M,P,k,E;if(this.data=J,Uz.test(J)||~J.indexOf("M")&&J.indexOf("C")<0)Q=OJ(J)[0];if(U=Q.length,U===4)Q.unshift(0,0),Q.push(1,1),U=8;else if((U-2)%6)throw"Invalid CustomEase";if(+Q[0]!==0||+Q[U-2]!==1)Lz(Q,K.height,K.originY);this.segment=Q;for(O=2;Ok.x||k.y!==P.y&&k.x===P.x||P===k)&&P.x<=1){if(k.cx=P.x-k.x,k.cy=P.y-k.y,k.n=P,k.nx=P.x,q&&O>1&&Math.abs(k.cy/k.cx-H[O-2].cy/H[O-2].cx)>2)q=0;if(k.cxP||F===M-1)q.push(k,E),U=(Y-E)/(O-k);k=O,E=Y}q="M"+q.join(",")}return L&&L.setAttribute("d",q),q},G}();EJ.version="3.13.0";EJ.headless=!0;gW()&&S9.registerPlugin(EJ);X0.registerPlugin(L0,XJ,EJ);class lZ{constructor(){this.isInitialized=!1,this.scrollTriggers=[],this.splitInstances=new WeakMap,EJ.create("smooth","0.215, 0.61, 0.355, 1")}async init(){if(this.isInitialized)return;await document.fonts.ready,this.initSplitInview(),this.isInitialized=!0}destroy(){this.scrollTriggers.forEach((G)=>G.kill()),this.scrollTriggers=[];for(let[G,$]of this.splitInstances.entries())$.revert(),this.splitInstances.delete(G);this.isInitialized=!1}refresh(){L0.refresh()}initSplitInview(){let G=document.querySelectorAll("[data-split-inview]");if(!G.length)return;let $=[];if(G.forEach((J)=>{Array.from(J.children).forEach((Q)=>{if(Q.classList.contains("u-sr-only"))return;if(Q.tagName.toLowerCase()==="ul")return;if(Q.tagName.toLowerCase()==="p")this.addAccessibleFallback(Q);$.push(Q)})}),!$.length)return;let Z=new Map;$.forEach((J)=>{Z.set(J,J.getBoundingClientRect())}),Promise.resolve().then(()=>{$.forEach((J)=>{let K=J.tagName.toLowerCase(),Q=this.getAnimationParams(K);if(this.splitInstances.has(J))this.splitInstances.get(J).revert();let W=XJ.create(J,{type:"lines",mask:"lines",tag:"span",linesClass:"split-line",aria:"hidden"});this.splitInstances.set(J,W),this.setupViewportAnimations(J,W,Q)})})}getAnimationParams(G){if(G.startsWith("h"))return{y:-120,duration:0.6,stagger:0.072,ease:"smooth"};if(G==="p")return{y:120,duration:0.6,stagger:0.072,ease:"smooth"};return{y:100,duration:0.55,stagger:0.06,ease:"smooth"}}setupViewportAnimations(G,$,Z){let J=X0.matchMedia();J.add("(min-width: 992px)",()=>{let K=X0.timeline({scrollTrigger:{trigger:G,toggleClass:"is-inview",start:"top 85%",once:!0}});return K.fromTo($.lines,{y:Z.y},{y:0,duration:Z.duration,stagger:Z.stagger,ease:Z.ease}),this.scrollTriggers.push(K.scrollTrigger),()=>{X0.set($.lines,{clearProps:"all"})}}),J.add("(max-width: 991px)",()=>{return X0.set($.lines,{y:0}),()=>X0.set($.lines,{clearProps:"all"})})}addAccessibleFallback(G){let $=G.textContent.trim();if(!$)return;let Z=document.createElement("span");Z.className="u-sr-only",Z.textContent=$,G.parentNode.insertBefore(Z,G),G.setAttribute("aria-hidden","true")}}var GQ={"./../accordion.js":IK,"./../card-border.js":BK,"./../coins-animation.js":kK,"./../coins-gravity.js":SK,"./../counter.js":AK,"./../cycle.ts":TK,"./../dots-animation.js":pK,"./../form.ts":lK,"./../ghost-posts.js":sK,"./../ilya.js":iK,"./../infrastructure-card.js":oK,"./../liquidity-progress.js":nK,"./../logos-wheel.js":rK,"./../markets-progress.js":aK,"./../marquee.js":tK,"./../nav.ts":eK,"./../purpose-progress.js":JQ,"./../split.ts":$Q,"./../tab.js":ZQ,"./../test.ts":KQ,"./../text-animations.js":QQ};function uW(G="module"){return Array.from(document.querySelectorAll(`[data-${G}]`)).map(($)=>{let Z=$,J=Z.dataset[G];if(Z._moduleInitialized)return null;let K=GQ[`./../${J}.ts`]?`./../${J}.ts`:`./../${J}.js`;if(GQ[K]){let Q=GQ[K].default;if(typeof Q==="function")try{return Z._moduleInitialized=!0,Q(Z,Z.dataset)}catch(W){return delete Z._moduleInitialized,console.warn(`Failed to call default function for ${G} "${J}":`,W),null}else return console.warn(`Default export is not a function for ${G} "${J}"`),null}else return console.warn(`${G} not found: "${J}"`),null}).filter(($)=>$!==null)}class jJ{static instance;groups=[];constructor(){}static getInstance(){if(!jJ.instance)jJ.instance=new jJ;return jJ.instance}configsMatch(G,$){return G.root===$.root&&G.rootMargin===$.rootMargin}handleIntersection(G){G.forEach(($)=>{let Z=this.groups.find((L)=>{return Array.from(L.elements.keys()).includes($.target)});if(!Z)return;let J=$.target,K=Z.elements.get(J);if(!K)return;let{isIntersecting:Q,intersectionRatio:W,boundingClientRect:H}=$,z=-1;if(K.lastDirection!==void 0)z=Q?H.top>0?1:-1:H.top>0?-1:1;if(K.lastDirection=z,Q){if(K.callbacks.isIn?.({entry:$,direction:z}),K.callbacks.callback?.({entry:$,direction:z,isIn:!0}),K.once)this.removeElement(J)}else K.callbacks.isOut?.({entry:$,direction:z}),K.callbacks.callback?.({entry:$,direction:z,isIn:!1})})}addElement(G,$,Z){this.removeElement(G);let J=this.groups.find((K)=>this.configsMatch(K.config,$));if(!J){let K=new IntersectionObserver((Q)=>this.handleIntersection(Q),{...$,threshold:[0]});J={config:$,observer:K,elements:new Map},this.groups.push(J)}return J.elements.set(G,{callbacks:Z,once:$.once||!1,lastDirection:void 0}),J.observer.observe(G),J}removeElement(G){let $=this.groups.find((Z)=>Z.elements.has(G));if(!$)return;if($.observer.unobserve(G),$.elements.delete(G),$.elements.size===0)$.observer.disconnect(),this.groups=this.groups.filter((Z)=>Z!==$)}}class w${element;#J;#Z;isIn(G){}isOut(G){}inView;callback;#$=null;#K=null;constructor(G,$={root:null,rootMargin:"0px",threshold:0,autoStart:!1,once:!1,callback:void 0}){if(this.element=G,this.#J=$,this.inView=!1,this.callback=$.callback||(()=>{}),$.autoStart)this.start()}start(){this.#Z=jJ.getInstance().addElement(this.element,this.#J,{isIn:(G)=>{this.inView=!0,this.isIn?.(G)},isOut:(G)=>{this.inView=!1,this.isOut?.(G)},callback:this.callback})}stop(){jJ.getInstance().removeElement(this.element)}destroy(){this.stop(),this.#$=null,this.#K=null}}var Fz="1.3.11";function cW(G,$,Z){return Math.max(G,Math.min($,Z))}function Nz(G,$,Z){return(1-Z)*G+Z*$}function Xz(G,$,Z,J){return Nz(G,$,1-Math.exp(-Z*J))}function Oz(G,$){return(G%$+$)%$}var Yz=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(G){if(!this.isRunning)return;let $=!1;if(this.duration&&this.easing){this.currentTime+=G;let Z=cW(0,this.currentTime/this.duration,1);$=Z>=1;let J=$?1:this.easing(Z);this.value=this.from+(this.to-this.from)*J}else if(this.lerp){if(this.value=Xz(this.value,this.to,this.lerp*60,G),Math.round(this.value)===this.to)this.value=this.to,$=!0}else this.value=this.to,$=!0;if($)this.stop();this.onUpdate?.(this.value,$)}stop(){this.isRunning=!1}fromTo(G,$,{lerp:Z,duration:J,easing:K,onStart:Q,onUpdate:W}){this.from=this.value=G,this.to=$,this.lerp=Z,this.duration=J,this.easing=K,this.currentTime=0,this.isRunning=!0,Q?.(),this.onUpdate=W}};function Dz(G,$){let Z;return function(...J){let K=this;clearTimeout(Z),Z=setTimeout(()=>{Z=void 0,G.apply(K,J)},$)}}var Ez=class{constructor(G,$,{autoResize:Z=!0,debounce:J=250}={}){if(this.wrapper=G,this.content=$,Z){if(this.debouncedResize=Dz(this.resize,J),this.wrapper instanceof Window)window.addEventListener("resize",this.debouncedResize,!1);else this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper);this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)}this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){if(this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize)window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{if(this.wrapper instanceof Window)this.width=window.innerWidth,this.height=window.innerHeight;else this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight};onContentResize=()=>{if(this.wrapper instanceof Window)this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth;else this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},pW=class{events={};emit(G,...$){let Z=this.events[G]||[];for(let J=0,K=Z.length;J{this.events[G]=this.events[G]?.filter((Z)=>$!==Z)}}off(G,$){this.events[G]=this.events[G]?.filter((Z)=>$!==Z)}destroy(){this.events={}}},mW=16.666666666666668,c8={passive:!1},jz=class{constructor(G,$={wheelMultiplier:1,touchMultiplier:1}){this.element=G,this.options=$,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,c8),this.element.addEventListener("touchstart",this.onTouchStart,c8),this.element.addEventListener("touchmove",this.onTouchMove,c8),this.element.addEventListener("touchend",this.onTouchEnd,c8)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new pW;on(G,$){return this.emitter.on(G,$)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,c8),this.element.removeEventListener("touchstart",this.onTouchStart,c8),this.element.removeEventListener("touchmove",this.onTouchMove,c8),this.element.removeEventListener("touchend",this.onTouchEnd,c8)}onTouchStart=(G)=>{let{clientX:$,clientY:Z}=G.targetTouches?G.targetTouches[0]:G;this.touchStart.x=$,this.touchStart.y=Z,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:G})};onTouchMove=(G)=>{let{clientX:$,clientY:Z}=G.targetTouches?G.targetTouches[0]:G,J=-($-this.touchStart.x)*this.options.touchMultiplier,K=-(Z-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=$,this.touchStart.y=Z,this.lastDelta={x:J,y:K},this.emitter.emit("scroll",{deltaX:J,deltaY:K,event:G})};onTouchEnd=(G)=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:G})};onWheel=(G)=>{let{deltaX:$,deltaY:Z,deltaMode:J}=G,K=J===1?mW:J===2?this.window.width:1,Q=J===1?mW:J===2?this.window.height:1;$*=K,Z*=Q,$*=this.options.wheelMultiplier,Z*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:$,deltaY:Z,event:G})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},dW=(G)=>Math.min(1,1.001-Math.pow(2,-10*G)),lW=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new Yz;emitter=new pW;dimensions;virtualScroll;constructor({wrapper:G=window,content:$=document.documentElement,eventsTarget:Z=G,smoothWheel:J=!0,syncTouch:K=!1,syncTouchLerp:Q=0.075,touchInertiaExponent:W=1.7,duration:H,easing:z,lerp:L=0.1,infinite:q=!1,orientation:U="vertical",gestureOrientation:F=U==="horizontal"?"both":"vertical",touchMultiplier:N=1,wheelMultiplier:O=1,autoResize:Y=!0,prevent:M,virtualScroll:P,overscroll:k=!0,autoRaf:E=!1,anchors:V=!1,autoToggle:B=!1,allowNestedScroll:I=!1,__experimental__naiveDimensions:C=!1}={}){if(window.lenisVersion=Fz,!G||G===document.documentElement)G=window;if(typeof H==="number"&&typeof z!=="function")z=dW;else if(typeof z==="function"&&typeof H!=="number")H=1;if(this.options={wrapper:G,content:$,eventsTarget:Z,smoothWheel:J,syncTouch:K,syncTouchLerp:Q,touchInertiaExponent:W,duration:H,easing:z,lerp:L,infinite:q,gestureOrientation:F,orientation:U,touchMultiplier:N,wheelMultiplier:O,autoResize:Y,prevent:M,virtualScroll:P,overscroll:k,autoRaf:E,anchors:V,autoToggle:B,allowNestedScroll:I,__experimental__naiveDimensions:C},this.dimensions=new Ez(G,$,{autoResize:Y}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window)this.options.wrapper.addEventListener("click",this.onClick,!1);if(this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new jz(Z,{touchMultiplier:N,wheelMultiplier:O}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle)this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0});if(this.options.autoRaf)this.__rafID=requestAnimationFrame(this.raf)}destroy(){if(this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window)this.options.wrapper.removeEventListener("click",this.onClick,!1);if(this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID)cancelAnimationFrame(this.__rafID)}on(G,$){return this.emitter.on(G,$)}off(G,$){return this.emitter.off(G,$)}onScrollEnd=(G)=>{if(!(G instanceof CustomEvent)){if(this.isScrolling==="smooth"||this.isScrolling===!1)G.stopPropagation()}};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=(G)=>{if(G.propertyName.includes("overflow")){let $=this.isHorizontal?"overflow-x":"overflow-y",Z=getComputedStyle(this.rootElement)[$];if(["hidden","clip"].includes(Z))this.internalStop();else this.internalStart()}};setScroll(G){if(this.isHorizontal)this.options.wrapper.scrollTo({left:G,behavior:"instant"});else this.options.wrapper.scrollTo({top:G,behavior:"instant"})}onClick=(G)=>{let Z=G.composedPath().find((J)=>J instanceof HTMLAnchorElement&&(J.getAttribute("href")?.startsWith("#")||J.getAttribute("href")?.startsWith("/#")||J.getAttribute("href")?.startsWith("./#")));if(Z){let J=Z.getAttribute("href");if(J){let K=typeof this.options.anchors==="object"&&this.options.anchors?this.options.anchors:void 0,Q=`#${J.split("#")[1]}`;if(["#","/#","./#","#top","/#top","./#top"].includes(J))Q=0;this.scrollTo(Q,K)}}};onPointerDown=(G)=>{if(G.button===1)this.reset()};onVirtualScroll=(G)=>{if(typeof this.options.virtualScroll==="function"&&this.options.virtualScroll(G)===!1)return;let{deltaX:$,deltaY:Z,event:J}=G;if(this.emitter.emit("virtual-scroll",{deltaX:$,deltaY:Z,event:J}),J.ctrlKey)return;if(J.lenisStopPropagation)return;let K=J.type.includes("touch"),Q=J.type.includes("wheel");this.isTouching=J.type==="touchstart"||J.type==="touchmove";let W=$===0&&Z===0;if(this.options.syncTouch&&K&&J.type==="touchstart"&&W&&!this.isStopped&&!this.isLocked){this.reset();return}let z=this.options.gestureOrientation==="vertical"&&Z===0||this.options.gestureOrientation==="horizontal"&&$===0;if(W||z)return;let L=J.composedPath();L=L.slice(0,L.indexOf(this.rootElement));let q=this.options.prevent;if(L.find((M)=>M instanceof HTMLElement&&(typeof q==="function"&&q?.(M)||M.hasAttribute?.("data-lenis-prevent")||K&&M.hasAttribute?.("data-lenis-prevent-touch")||Q&&M.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(M,{deltaX:$,deltaY:Z}))))return;if(this.isStopped||this.isLocked){if(J.cancelable)J.preventDefault();return}if(!(this.options.syncTouch&&K||this.options.smoothWheel&&Q)){this.isScrolling="native",this.animate.stop(),J.lenisStopPropagation=!0;return}let F=Z;if(this.options.gestureOrientation==="both")F=Math.abs(Z)>Math.abs($)?Z:$;else if(this.options.gestureOrientation==="horizontal")F=$;if(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&Z<0))J.lenisStopPropagation=!0;if(J.cancelable)J.preventDefault();let N=K&&this.options.syncTouch,Y=K&&J.type==="touchend";if(Y)F=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent);this.scrollTo(this.targetScroll+F,{programmatic:!1,...N?{lerp:Y?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null)clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null;if(this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let G=this.animatedScroll;if(this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-G,this.direction=Math.sign(this.animatedScroll-G),!this.isStopped)this.isScrolling="native";if(this.emit(),this.velocity!==0)this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400)}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(!this.isStopped)return;if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}internalStart(){if(!this.isStopped)return;this.reset(),this.isStopped=!1,this.emit()}stop(){if(this.isStopped)return;if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}internalStop(){if(this.isStopped)return;this.reset(),this.isStopped=!0,this.emit()}raf=(G)=>{let $=G-(this.time||G);if(this.time=G,this.animate.advance($*0.001),this.options.autoRaf)this.__rafID=requestAnimationFrame(this.raf)};scrollTo(G,{offset:$=0,immediate:Z=!1,lock:J=!1,duration:K=this.options.duration,easing:Q=this.options.easing,lerp:W=this.options.lerp,onStart:H,onComplete:z,force:L=!1,programmatic:q=!0,userData:U}={}){if((this.isStopped||this.isLocked)&&!L)return;if(typeof G==="string"&&["top","left","start"].includes(G))G=0;else if(typeof G==="string"&&["bottom","right","end"].includes(G))G=this.limit;else{let F;if(typeof G==="string")F=document.querySelector(G);else if(G instanceof HTMLElement&&G?.nodeType)F=G;if(F){if(this.options.wrapper!==window){let O=this.rootElement.getBoundingClientRect();$-=this.isHorizontal?O.left:O.top}let N=F.getBoundingClientRect();G=(this.isHorizontal?N.left:N.top)+this.animatedScroll}}if(typeof G!=="number")return;if(G+=$,G=Math.round(G),this.options.infinite){if(q){this.targetScroll=this.animatedScroll=this.scroll;let F=G-this.animatedScroll;if(F>this.limit/2)G=G-this.limit;else if(F<-this.limit/2)G=G+this.limit}}else G=cW(0,G,this.limit);if(G===this.targetScroll){H?.(this),z?.(this);return}if(this.userData=U??{},Z){this.animatedScroll=this.targetScroll=G,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),z?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}if(!q)this.targetScroll=G;if(typeof K==="number"&&typeof Q!=="function")Q=dW;else if(typeof Q==="function"&&typeof K!=="number")K=1;this.animate.fromTo(this.animatedScroll,G,{duration:K,easing:Q,lerp:W,onStart:()=>{if(J)this.isLocked=!0;this.isScrolling="smooth",H?.(this)},onUpdate:(F,N)=>{if(this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=F-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=F,this.setScroll(this.scroll),q)this.targetScroll=F;if(!N)this.emit();if(N)this.reset(),this.emit(),z?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent()}})}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(G,{deltaX:$,deltaY:Z}){let J=Date.now(),K=G._lenis??={},Q,W,H,z,L,q,U,F,N=this.options.gestureOrientation;if(J-(K.time??0)>2000){K.time=Date.now();let B=window.getComputedStyle(G);K.computedStyle=B;let{overflowX:I,overflowY:C}=B;if(Q=["auto","overlay","scroll"].includes(I),W=["auto","overlay","scroll"].includes(C),K.hasOverflowX=Q,K.hasOverflowY=W,!Q&&!W)return!1;if(N==="vertical"&&!W)return!1;if(N==="horizontal"&&!Q)return!1;L=G.scrollWidth,q=G.scrollHeight,U=G.clientWidth,F=G.clientHeight,H=L>U,z=q>F,K.isScrollableX=H,K.isScrollableY=z,K.scrollWidth=L,K.scrollHeight=q,K.clientWidth=U,K.clientHeight=F}else H=K.isScrollableX,z=K.isScrollableY,Q=K.hasOverflowX,W=K.hasOverflowY,L=K.scrollWidth,q=K.scrollHeight,U=K.clientWidth,F=K.clientHeight;if(!Q&&!W||!H&&!z)return!1;if(N==="vertical"&&(!W||!z))return!1;if(N==="horizontal"&&(!Q||!H))return!1;let O;if(N==="horizontal")O="x";else if(N==="vertical")O="y";else{let B=$!==0,I=Z!==0;if(B&&Q&&H)O="x";if(I&&W&&z)O="y"}if(!O)return!1;let Y,M,P,k,E;if(O==="x")Y=G.scrollLeft,M=L-U,P=$,k=Q,E=H;else if(O==="y")Y=G.scrollTop,M=q-F,P=Z,k=W,E=z;else return!1;return(P>0?Y0)&&k&&E}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){if(this.options.__experimental__naiveDimensions)if(this.isHorizontal)return this.rootElement.scrollWidth-this.rootElement.clientWidth;else return this.rootElement.scrollHeight-this.rootElement.clientHeight;else return this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let G=this.options.wrapper;return this.isHorizontal?G.scrollX??G.scrollLeft:G.scrollY??G.scrollTop}get scroll(){return this.options.infinite?Oz(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(G){if(this._isScrolling!==G)this._isScrolling=G,this.updateClassName()}get isStopped(){return this._isStopped}set isStopped(G){if(this._isStopped!==G)this._isStopped=G,this.updateClassName()}get isLocked(){return this._isLocked}set isLocked(G){if(this._isLocked!==G)this._isLocked=G,this.updateClassName()}get isSmooth(){return this.isScrolling==="smooth"}get className(){let G="lenis";if(this.options.autoToggle)G+=" lenis-autoToggle";if(this.isStopped)G+=" lenis-stopped";if(this.isLocked)G+=" lenis-locked";if(this.isScrolling)G+=" lenis-scrolling";if(this.isScrolling==="smooth")G+=" lenis-smooth";return G}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function sW(G=null){let $=()=>{let Q=document.body.firstElementChild;return Q instanceof HTMLElement&&Q.classList.contains("w-editor-publish-node")},Z=$(),J=Z;if(new MutationObserver((Q)=>{Q.forEach((W)=>{if(W.type==="childList"){let H=$();if(H!==Z){if(console.log("Editor state changed to:",H),G)G(H);Z=H}}})}).observe(document.body,{childList:!0,subtree:!1}),G)G(J);return J}var Rz={infinite:!1,lerp:0.1,smoothWheel:!0,touchMultiplier:2};class iW extends lW{#J=a9.ticker.add((G)=>this.raf(G*1000));constructor(){super(Rz);this.on("scroll",this.#Z.bind(this))}#Z(G){this.notify(G)}toTop(){this.scrollTo(0,{immediate:!0})}#$=[];add(G,$=0,Z=Symbol()){let J=this.#$.findIndex((K)=>K.priority>$);if(J===-1)this.#$.push({fn:G,priority:$,id:Z});else this.#$.splice(J,0,{fn:G,priority:$,id:Z});return()=>this.remove(Z)}remove(G){this.#$=this.#$.filter(($)=>$.id!==G)}notify(G){if(this.#$.length<1)return;this.#$.forEach(($)=>$.fn(G))}}var X8=new iW;sW((G)=>{if(G)X8.destroy();else X8.start()});var oW=(G)=>{let $=G.getBoundingClientRect();return{top:$.top+X8.scroll,bottom:$.bottom+X8.scroll,width:$.width,height:$.height,left:$.left,right:$.right,wh:F8.height,ww:F8.width,offset:$.top+X8.scroll,centery:F8.height/2-$.height/2-$.top-X8.scroll,centerx:-F8.width/2+$.left+$.width/2}};function nW(G,$,Z,J,K){return J+(K-J)*(G-$)/(Z-$)}function rW(G,$,Z){return Math.min(Math.max(Z,G),$)}var Mz={bounds:[0,1],top:"bottom",bottom:"top",callback:void 0};class uG extends w${value=0;init=!1;isIn(G){this.#K()}isOut(G){}bounds;config;resize;handleScroll;#J;#Z;constructor(G,$={}){super(G,{autoStart:!0,once:!1,threshold:0});this.element=G,this.config={...Mz,...$},this.#$(),this.#J=X8.add(this.#K.bind(this)),this.#Z=F8.add(this.#$.bind(this)),this.init=!0,this.#K()}#$=()=>{this.bounds=Vz(this.element,this.config),this.resize?.(this.bounds),this.#K()};#K(){if(!this.inView||!this.init)return;this.value=rW(0,1,nW(X8.scroll,this.bounds.top,this.bounds.bottom,this.config.bounds[0],this.config.bounds[1])),this.handleScroll?.(this.value),this.config.callback?.(this.value)}destroy(){this.config.callback=void 0,this.#J(),this.#Z(),super.destroy()}}function Vz(G,$){let Z=oW(G),{top:J,bottom:K,wh:Q}=Z,W=Q/2;return Z.top=J-($.top==="center"?W:$.top==="bottom"?Q:0),Z.bottom=K-($.bottom==="center"?W:$.bottom==="bottom"?Q:0),Z}uW();_G();vG();var Iz=new lZ;Iz.init();var Bz=new hZ("riveFooter","footerSection",-0.8,"top bottom","bottom 20%");Bz.init();history.scrollRestoration="manual";window.scrollTo(0,0);})(); //# debugId=08AAAC0E9A0C18EE64756E2164756E21