var jo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oe(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function _s(m,t){m.prototype=Object.create(t.prototype),m.prototype.constructor=m,m.__proto__=t}/*!
 * GSAP 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var ue={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},bn={duration:.5,overwrite:!1,delay:0},ai,qt,Rt,he=1e8,Pt=1/he,Xr=Math.PI*2,zo=Xr/4,No=0,ms=Math.sqrt,Wo=Math.cos,Yo=Math.sin,Vt=function(t){return typeof t=="string"},Lt=function(t){return typeof t=="function"},Fe=function(t){return typeof t=="number"},ui=function(t){return typeof t>"u"},Ce=function(t){return typeof t=="object"},Zt=function(t){return t!==!1},li=function(){return typeof window<"u"},cr=function(t){return Lt(t)||Vt(t)},vs=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Qt=Array.isArray,$r=/(?:-?\.?\d|\.)+/gi,gs=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_n=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ir=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ys=/[+-]=-?[.\d]+/,bs=/[^,'"\[\]\s]+/gi,Vo=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Mt,Te,Gr,fi,le={},_r={},ws,Ts=function(t){return(_r=an(t,le))&&ne},ci=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},zn=function(t,e){return!e&&console.warn(t)},As=function(t,e){return t&&(le[t]=e)&&_r&&(_r[t]=e)||le},Nn=function(){return 0},Xo={suppressEvents:!0,isStart:!0,kill:!1},hr={suppressEvents:!0,kill:!1},$o={suppressEvents:!0},hi={},Ye=[],Hr={},xs,se={},Br={},Ji=30,dr=[],di="",pi=function(t){var e=t[0],n,r;if(Ce(e)||Lt(e)||(t=[t]),!(n=(e._gsap||{}).harness)){for(r=dr.length;r--&&!dr[r].targetTest(e););n=dr[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Hs(t[r],n)))||t.splice(r,1);return t},nn=function(t){return t._gsap||pi(de(t))[0]._gsap},Ps=function(t,e,n){return(n=t[e])&&Lt(n)?t[e]():ui(n)&&t.getAttribute&&t.getAttribute(e)||n},Jt=function(t,e){return(t=t.split(",")).forEach(e)||t},Ft=function(t){return Math.round(t*1e5)/1e5||0},Yt=function(t){return Math.round(t*1e7)/1e7||0},vn=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),n==="+"?t+r:n==="-"?t-r:n==="*"?t*r:t/r},Go=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},mr=function(){var t=Ye.length,e=Ye.slice(0),n,r;for(Hr={},Ye.length=0,n=0;n<t;n++)r=e[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Cs=function(t,e,n,r){Ye.length&&!qt&&mr(),t.render(e,n,qt&&e<0&&(t._initted||t._startAt)),Ye.length&&!qt&&mr()},Rs=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(bs).length<2?e:Vt(t)?t.trim():t},Ms=function(t){return t},pe=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Ho=function(t){return function(e,n){for(var r in n)r in e||r==="duration"&&t||r==="ease"||(e[r]=n[r])}},an=function(t,e){for(var n in e)t[n]=e[n];return t},ts=function m(t,e){for(var n in e)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=Ce(e[n])?m(t[n]||(t[n]={}),e[n]):e[n]);return t},vr=function(t,e){var n={},r;for(r in t)r in e||(n[r]=t[r]);return n},Bn=function(t){var e=t.parent||Mt,n=t.keyframes?Ho(Qt(t.keyframes)):pe;if(Zt(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t},qo=function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0},Es=function(t,e,n,r,i){var a=t[r],l;if(i)for(l=e[i];a&&a[i]>l;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t,e},Tr=function(t,e,n,r){n===void 0&&(n="_first"),r===void 0&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Xe=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},rn=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Qo=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},qr=function(t,e,n,r){return t._startAt&&(qt?t._startAt.revert(hr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Ko=function m(t){return!t||t._ts&&m(t.parent)},es=function(t){return t._repeat?wn(t._tTime,t=t.duration()+t._rDelay)*t:0},wn=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},gr=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ar=function(t){return t._end=Yt(t._start+(t._tDur/Math.abs(t._ts||t._rts||Pt)||0))},xr=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Yt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ar(t),n._dirty||rn(n,t)),t},Ss=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=gr(t.rawTime(),e),(!e._dur||Gn(0,e.totalDuration(),n)-e._tTime>Pt)&&e.render(n,!0)),rn(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Pt}},Ae=function(t,e,n,r){return e.parent&&Xe(e),e._start=Yt((Fe(n)?n:n||t!==Mt?ce(t,n,e):t._time)+e._delay),e._end=Yt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Es(t,e,"_first","_last",t._sort?"_start":0),Qr(e)||(t._recent=e),r||Ss(t,e),t._ts<0&&xr(t,t._tTime),t},Os=function(t,e){return(le.ScrollTrigger||ci("scrollTrigger",e))&&le.ScrollTrigger.create(e,t)},Ls=function(t,e,n,r,i){if(mi(t,e,i),!t._initted)return 1;if(!n&&t._pt&&!qt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&xs!==oe.frame)return Ye.push(t),t._lazy=[i,r],1},Zo=function m(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||m(e))},Qr=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Jo=function(t,e,n,r){var i=t.ratio,a=e<0||!e&&(!t._start&&Zo(t)&&!(!t._initted&&Qr(t))||(t._ts<0||t._dp._ts<0)&&!Qr(t))?0:1,l=t._rDelay,c=0,p,v,b;if(l&&t._repeat&&(c=Gn(0,t._tDur,e),v=wn(c,l),t._yoyo&&v&1&&(a=1-a),v!==wn(t._tTime,l)&&(i=1-a,t.vars.repeatRefresh&&t._initted&&t.invalidate())),a!==i||qt||r||t._zTime===Pt||!e&&t._zTime){if(!t._initted&&Ls(t,e,r,n,c))return;for(b=t._zTime,t._zTime=e||(n?Pt:0),n||(n=e&&!b),t.ratio=a,t._from&&(a=1-a),t._time=0,t._tTime=c,p=t._pt;p;)p.r(a,p.d),p=p._next;e<0&&qr(t,e,n,!0),t._onUpdate&&!n&&ae(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&ae(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===a&&(a&&Xe(t,1),!n&&!qt&&(ae(t,a?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},ta=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if(r.data==="isPause"&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if(r.data==="isPause"&&r._start<e)return r;r=r._prev}},Tn=function(t,e,n,r){var i=t._repeat,a=Yt(e)||0,l=t._tTime/t._tDur;return l&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Yt(a*(i+1)+t._rDelay*i):a,l>0&&!r&&xr(t,t._tTime=t._tDur*l),t.parent&&Ar(t),n||rn(t.parent,t),t},ns=function(t){return t instanceof Kt?rn(t):Tn(t,t._dur)},ea={_start:0,endTime:Nn,totalDuration:Nn},ce=function m(t,e,n){var r=t.labels,i=t._recent||ea,a=t.duration()>=he?i.endTime(!1):t._dur,l,c,p;return Vt(e)&&(isNaN(e)||e in r)?(c=e.charAt(0),p=e.substr(-1)==="%",l=e.indexOf("="),c==="<"||c===">"?(l>=0&&(e=e.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(e.substr(1))||0)*(p?(l<0?i:n).totalDuration()/100:1)):l<0?(e in r||(r[e]=a),r[e]):(c=parseFloat(e.charAt(l-1)+e.substr(l+1)),p&&n&&(c=c/100*(Qt(n)?n[0]:n).totalDuration()),l>1?m(t,e.substr(0,l-1),n)+c:a+c)):e==null?a:+e},Un=function(t,e,n){var r=Fe(e[1]),i=(r?2:1)+(t<2?0:1),a=e[i],l,c;if(r&&(a.duration=e[1]),a.parent=n,t){for(l=a,c=n;c&&!("immediateRender"in l);)l=c.vars.defaults||{},c=Zt(c.vars.inherit)&&c.parent;a.immediateRender=Zt(l.immediateRender),t<2?a.runBackwards=1:a.startAt=e[i-1]}return new Dt(e[0],a,e[i+1])},Ge=function(t,e){return t||t===0?e(t):e},Gn=function(t,e,n){return n<t?t:n>e?e:n},Ht=function(t,e){return!Vt(t)||!(e=Vo.exec(t))?"":e[1]},na=function(t,e,n){return Ge(n,function(r){return Gn(t,e,r)})},Kr=[].slice,Fs=function(t,e){return t&&Ce(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Ce(t[0]))&&!t.nodeType&&t!==Te},ra=function(t,e,n){return n===void 0&&(n=[]),t.forEach(function(r){var i;return Vt(r)&&!e||Fs(r,1)?(i=n).push.apply(i,de(r)):n.push(r)})||n},de=function(t,e,n){return Rt&&!e&&Rt.selector?Rt.selector(t):Vt(t)&&!n&&(Gr||!An())?Kr.call((e||fi).querySelectorAll(t),0):Qt(t)?ra(t,n):Fs(t)?Kr.call(t,0):t?[t]:[]},Zr=function(t){return t=de(t)[0]||zn("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return de(e,n.querySelectorAll?n:n===t?zn("Invalid scope")||fi.createElement("div"):t)}},Ds=function(t){return t.sort(function(){return .5-Math.random()})},ks=function(t){if(Lt(t))return t;var e=Ce(t)?t:{each:t},n=sn(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},l=r>0&&r<1,c=isNaN(r)||l,p=e.axis,v=r,b=r;return Vt(r)?v=b={center:.5,edges:.5,end:1}[r]||0:!l&&c&&(v=r[0],b=r[1]),function(T,d,C){var y=(C||e).length,R=a[y],F,D,z,B,I,O,X,$,N;if(!R){if(N=e.grid==="auto"?0:(e.grid||[1,he])[1],!N){for(X=-he;X<(X=C[N++].getBoundingClientRect().left)&&N<y;);N<y&&N--}for(R=a[y]=[],F=c?Math.min(N,y)*v-.5:r%N,D=N===he?0:c?y*b/N-.5:r/N|0,X=0,$=he,O=0;O<y;O++)z=O%N-F,B=D-(O/N|0),R[O]=I=p?Math.abs(p==="y"?B:z):ms(z*z+B*B),I>X&&(X=I),I<$&&($=I);r==="random"&&Ds(R),R.max=X-$,R.min=$,R.v=y=(parseFloat(e.amount)||parseFloat(e.each)*(N>y?y-1:p?p==="y"?y/N:N:Math.max(N,y/N))||0)*(r==="edges"?-1:1),R.b=y<0?i-y:i,R.u=Ht(e.amount||e.each)||0,n=n&&y<0?Xs(n):n}return y=(R[T]-R.min)/R.max||0,Yt(R.b+(n?n(y):y)*R.v)+R.u}},Jr=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Yt(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Fe(n)?0:Ht(n))}},Is=function(t,e){var n=Qt(t),r,i;return!n&&Ce(t)&&(r=n=t.radius||he,t.values?(t=de(t.values),(i=!Fe(t[0]))&&(r*=r)):t=Jr(t.increment)),Ge(e,n?Lt(t)?function(a){return i=t(a),Math.abs(i-a)<=r?i:a}:function(a){for(var l=parseFloat(i?a.x:a),c=parseFloat(i?a.y:0),p=he,v=0,b=t.length,T,d;b--;)i?(T=t[b].x-l,d=t[b].y-c,T=T*T+d*d):T=Math.abs(t[b]-l),T<p&&(p=T,v=b);return v=!r||p<=r?t[v]:a,i||v===a||Fe(a)?v:v+Ht(a)}:Jr(t))},Bs=function(t,e,n,r){return Ge(Qt(t)?!e:n===!0?!!(n=0):!r,function(){return Qt(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+n*.99))/n)*n*r)/r})},ia=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){return e.reduce(function(i,a){return a(i)},r)}},sa=function(t,e){return function(n){return t(parseFloat(n))+(e||Ht(n))}},oa=function(t,e,n){return js(t,e,0,1,n)},Us=function(t,e,n){return Ge(n,function(r){return t[~~e(r)]})},aa=function m(t,e,n){var r=e-t;return Qt(t)?Us(t,m(0,t.length),e):Ge(n,function(i){return(r+(i-t)%r)%r+t})},ua=function m(t,e,n){var r=e-t,i=r*2;return Qt(t)?Us(t,m(0,t.length-1),e):Ge(n,function(a){return a=(i+(a-t)%i)%i||0,t+(a>r?i-a:a)})},Wn=function(t){for(var e=0,n="",r,i,a,l;~(r=t.indexOf("random(",e));)a=t.indexOf(")",r),l=t.charAt(r+7)==="[",i=t.substr(r+7,a-r-7).match(l?bs:$r),n+=t.substr(e,r-e)+Bs(l?i:+i[0],l?0:+i[1],+i[2]||1e-5),e=a+1;return n+t.substr(e,t.length-e)},js=function(t,e,n,r,i){var a=e-t,l=r-n;return Ge(i,function(c){return n+((c-t)/a*l||0)})},la=function m(t,e,n,r){var i=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!i){var a=Vt(t),l={},c,p,v,b,T;if(n===!0&&(r=1)&&(n=null),a)t={p:t},e={p:e};else if(Qt(t)&&!Qt(e)){for(v=[],b=t.length,T=b-2,p=1;p<b;p++)v.push(m(t[p-1],t[p]));b--,i=function(C){C*=b;var y=Math.min(T,~~C);return v[y](C-y)},n=e}else r||(t=an(Qt(t)?[]:{},t));if(!v){for(c in e)_i.call(l,t,c,"get",e[c]);i=function(C){return yi(C,l)||(a?t.p:t)}}}return Ge(n,i)},rs=function(t,e,n){var r=t.labels,i=he,a,l,c;for(a in r)l=r[a]-e,l<0==!!n&&l&&i>(l=Math.abs(l))&&(c=a,i=l);return c},ae=function(t,e,n){var r=t.vars,i=r[e],a=Rt,l=t._ctx,c,p,v;if(i)return c=r[e+"Params"],p=r.callbackScope||t,n&&Ye.length&&mr(),l&&(Rt=l),v=c?i.apply(p,c):i.call(p),Rt=a,v},kn=function(t){return Xe(t),t.scrollTrigger&&t.scrollTrigger.kill(!!qt),t.progress()<1&&ae(t,"onInterrupt"),t},mn,zs=[],Ns=function(t){if(t)if(t=!t.name&&t.default||t,li()||t.headless){var e=t.name,n=Lt(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:Nn,render:yi,add:_i,kill:Pa,modifier:xa,rawVars:0},a={targetTest:0,get:0,getSetter:gi,aliases:{},register:0};if(An(),t!==r){if(se[e])return;pe(r,pe(vr(t,i),a)),an(r.prototype,an(i,vr(t,a))),se[r.prop=e]=r,t.targetTest&&(dr.push(r),hi[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}As(e,r),t.register&&t.register(ne,r,te)}else zs.push(t)},xt=255,In={aqua:[0,xt,xt],lime:[0,xt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,xt],navy:[0,0,128],white:[xt,xt,xt],olive:[128,128,0],yellow:[xt,xt,0],orange:[xt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[xt,0,0],pink:[xt,192,203],cyan:[0,xt,xt],transparent:[xt,xt,xt,0]},Ur=function(t,e,n){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(n-e)*t*6:t<.5?n:t*3<2?e+(n-e)*(2/3-t)*6:e)*xt+.5|0},Ws=function(t,e,n){var r=t?Fe(t)?[t>>16,t>>8&xt,t&xt]:0:In.black,i,a,l,c,p,v,b,T,d,C;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),In[t])r=In[t];else if(t.charAt(0)==="#"){if(t.length<6&&(i=t.charAt(1),a=t.charAt(2),l=t.charAt(3),t="#"+i+i+a+a+l+l+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&xt,r&xt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&xt,t&xt]}else if(t.substr(0,3)==="hsl"){if(r=C=t.match($r),!e)c=+r[0]%360/360,p=+r[1]/100,v=+r[2]/100,a=v<=.5?v*(p+1):v+p-v*p,i=v*2-a,r.length>3&&(r[3]*=1),r[0]=Ur(c+1/3,i,a),r[1]=Ur(c,i,a),r[2]=Ur(c-1/3,i,a);else if(~t.indexOf("="))return r=t.match(gs),n&&r.length<4&&(r[3]=1),r}else r=t.match($r)||In.transparent;r=r.map(Number)}return e&&!C&&(i=r[0]/xt,a=r[1]/xt,l=r[2]/xt,b=Math.max(i,a,l),T=Math.min(i,a,l),v=(b+T)/2,b===T?c=p=0:(d=b-T,p=v>.5?d/(2-b-T):d/(b+T),c=b===i?(a-l)/d+(a<l?6:0):b===a?(l-i)/d+2:(i-a)/d+4,c*=60),r[0]=~~(c+.5),r[1]=~~(p*100+.5),r[2]=~~(v*100+.5)),n&&r.length<4&&(r[3]=1),r},Ys=function(t){var e=[],n=[],r=-1;return t.split(Ve).forEach(function(i){var a=i.match(_n)||[];e.push.apply(e,a),n.push(r+=a.length+1)}),e.c=n,e},is=function(t,e,n){var r="",i=(t+r).match(Ve),a=e?"hsla(":"rgba(",l=0,c,p,v,b;if(!i)return t;if(i=i.map(function(T){return(T=Ws(T,e,1))&&a+(e?T[0]+","+T[1]+"%,"+T[2]+"%,"+T[3]:T.join(","))+")"}),n&&(v=Ys(t),c=n.c,c.join(r)!==v.c.join(r)))for(p=t.replace(Ve,"1").split(_n),b=p.length-1;l<b;l++)r+=p[l]+(~c.indexOf(l)?i.shift()||a+"0,0,0,0)":(v.length?v:i.length?i:n).shift());if(!p)for(p=t.split(Ve),b=p.length-1;l<b;l++)r+=p[l]+i[l];return r+p[b]},Ve=function(){var m="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in In)m+="|"+t+"\\b";return new RegExp(m+")","gi")}(),fa=/hsl[a]?\(/,Vs=function(t){var e=t.join(" "),n;if(Ve.lastIndex=0,Ve.test(e))return n=fa.test(e),t[1]=is(t[1],n),t[0]=is(t[0],n,Ys(t[1])),!0},Yn,oe=function(){var m=Date.now,t=500,e=33,n=m(),r=n,i=1e3/240,a=i,l=[],c,p,v,b,T,d,C=function y(R){var F=m()-r,D=R===!0,z,B,I,O;if((F>t||F<0)&&(n+=F-e),r+=F,I=r-n,z=I-a,(z>0||D)&&(O=++b.frame,T=I-b.time*1e3,b.time=I=I/1e3,a+=z+(z>=i?4:i-z),B=1),D||(c=p(y)),B)for(d=0;d<l.length;d++)l[d](I,T,O,R)};return b={time:0,frame:0,tick:function(){C(!0)},deltaRatio:function(R){return T/(1e3/(R||60))},wake:function(){ws&&(!Gr&&li()&&(Te=Gr=window,fi=Te.document||{},le.gsap=ne,(Te.gsapVersions||(Te.gsapVersions=[])).push(ne.version),Ts(_r||Te.GreenSockGlobals||!Te.gsap&&Te||{}),zs.forEach(Ns)),v=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&b.sleep(),p=v||function(R){return setTimeout(R,a-b.time*1e3+1|0)},Yn=1,C(2))},sleep:function(){(v?cancelAnimationFrame:clearTimeout)(c),Yn=0,p=Nn},lagSmoothing:function(R,F){t=R||1/0,e=Math.min(F||33,t)},fps:function(R){i=1e3/(R||240),a=b.time*1e3+i},add:function(R,F,D){var z=F?function(B,I,O,X){R(B,I,O,X),b.remove(z)}:R;return b.remove(R),l[D?"unshift":"push"](z),An(),z},remove:function(R,F){~(F=l.indexOf(R))&&l.splice(F,1)&&d>=F&&d--},_listeners:l},b}(),An=function(){return!Yn&&oe.wake()},ut={},ca=/^[\d.\-M][\d.\-,\s]/,ha=/["']/g,da=function(t){for(var e={},n=t.substr(1,t.length-3).split(":"),r=n[0],i=1,a=n.length,l,c,p;i<a;i++)c=n[i],l=i!==a-1?c.lastIndexOf(","):c.length,p=c.substr(0,l),e[r]=isNaN(p)?p.replace(ha,"").trim():+p,r=c.substr(l+1).trim();return e},pa=function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)},_a=function(t){var e=(t+"").split("("),n=ut[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[da(e[1])]:pa(t).split(",").map(Rs)):ut._CE&&ca.test(t)?ut._CE("",t):n},Xs=function(t){return function(e){return 1-t(1-e)}},$s=function m(t,e){for(var n=t._first,r;n;)n instanceof Kt?m(n,e):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==e&&(n.timeline?m(n.timeline,e):(r=n._ease,n._ease=n._yEase,n._yEase=r,n._yoyo=e)),n=n._next},sn=function(t,e){return t&&(Lt(t)?t:ut[t]||_a(t))||e},ln=function(t,e,n,r){n===void 0&&(n=function(c){return 1-e(1-c)}),r===void 0&&(r=function(c){return c<.5?e(c*2)/2:1-e((1-c)*2)/2});var i={easeIn:e,easeOut:n,easeInOut:r},a;return Jt(t,function(l){ut[l]=le[l]=i,ut[a=l.toLowerCase()]=n;for(var c in i)ut[a+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ut[l+"."+c]=i[c]}),i},Gs=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},jr=function m(t,e,n){var r=e>=1?e:1,i=(n||(t?.3:.45))/(e<1?e:1),a=i/Xr*(Math.asin(1/r)||0),l=function(v){return v===1?1:r*Math.pow(2,-10*v)*Yo((v-a)*i)+1},c=t==="out"?l:t==="in"?function(p){return 1-l(1-p)}:Gs(l);return i=Xr/i,c.config=function(p,v){return m(t,p,v)},c},zr=function m(t,e){e===void 0&&(e=1.70158);var n=function(a){return a?--a*a*((e+1)*a+e)+1:0},r=t==="out"?n:t==="in"?function(i){return 1-n(1-i)}:Gs(n);return r.config=function(i){return m(t,i)},r};Jt("Linear,Quad,Cubic,Quart,Quint,Strong",function(m,t){var e=t<5?t+1:t;ln(m+",Power"+(e-1),t?function(n){return Math.pow(n,e)}:function(n){return n},function(n){return 1-Math.pow(1-n,e)},function(n){return n<.5?Math.pow(n*2,e)/2:1-Math.pow((1-n)*2,e)/2})});ut.Linear.easeNone=ut.none=ut.Linear.easeIn;ln("Elastic",jr("in"),jr("out"),jr());(function(m,t){var e=1/t,n=2*e,r=2.5*e,i=function(l){return l<e?m*l*l:l<n?m*Math.pow(l-1.5/t,2)+.75:l<r?m*(l-=2.25/t)*l+.9375:m*Math.pow(l-2.625/t,2)+.984375};ln("Bounce",function(a){return 1-i(1-a)},i)})(7.5625,2.75);ln("Expo",function(m){return m?Math.pow(2,10*(m-1)):0});ln("Circ",function(m){return-(ms(1-m*m)-1)});ln("Sine",function(m){return m===1?1:-Wo(m*zo)+1});ln("Back",zr("in"),zr("out"),zr());ut.SteppedEase=ut.steps=le.SteppedEase={config:function(t,e){t===void 0&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0,a=1-Pt;return function(l){return((r*Gn(0,a,l)|0)+i)*n}}};bn.ease=ut["quad.out"];Jt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(m){return di+=m+","+m+"Params,"});var Hs=function(t,e){this.id=No++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Ps,this.set=e?e.getSetter:gi},Vn=function(){function m(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Tn(this,+e.duration,1,1),this.data=e.data,Rt&&(this._ctx=Rt,Rt.data.push(this)),Yn||oe.wake()}var t=m.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,Tn(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,r){if(An(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(xr(this,n),!i._dp||i.parent||Ss(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&Ae(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Pt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),Cs(this,n,r)),this},t.time=function(n,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+es(this))%(this._dur+this._rDelay)||(n?this._dur:0),r):this._time},t.totalProgress=function(n,r){return arguments.length?this.totalTime(this.totalDuration()*n,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(n,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+es(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*i,r):this._repeat?wn(this._tTime,i)+1:1},t.timeScale=function(n,r){if(!arguments.length)return this._rts===-Pt?0:this._rts;if(this._rts===n)return this;var i=this.parent&&this._ts?gr(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Pt?0:this._rts,this.totalTime(Gn(-Math.abs(this._delay),this._tDur,i),r!==!1),Ar(this),Qo(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(An(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Pt&&(this._tTime-=Pt)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Ae(r,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(Zt(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var r=this.parent||this._dp;return r?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?gr(r.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=$o);var r=qt;return qt=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),qt=r,this},t.globalTime=function(n){for(var r=this,i=arguments.length?n:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(n):i},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,ns(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var r=this._time;return this._rDelay=n,ns(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,r){return this.totalTime(ce(this,n),Zt(r))},t.restart=function(n,r){return this.play().totalTime(n?-this._delay:0,Zt(r))},t.play=function(n,r){return n!=null&&this.seek(n,r),this.reversed(!1).paused(!1)},t.reverse=function(n,r){return n!=null&&this.seek(n||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(n,r){return n!=null&&this.seek(n,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Pt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Pt,this},t.isActive=function(){var n=this.parent||this._dp,r=this._start,i;return!!(!n||this._ts&&this._initted&&n.isActive()&&(i=n.rawTime(!0))>=r&&i<this.endTime(!0)-Pt)},t.eventCallback=function(n,r,i){var a=this.vars;return arguments.length>1?(r?(a[n]=r,i&&(a[n+"Params"]=i),n==="onUpdate"&&(this._onUpdate=r)):delete a[n],this):a[n]},t.then=function(n){var r=this;return new Promise(function(i){var a=Lt(n)?n:Ms,l=function(){var p=r.then;r.then=null,Lt(a)&&(a=a(r))&&(a.then||a===r)&&(r.then=p),i(a),r.then=p};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?l():r._prom=l})},t.kill=function(){kn(this)},m}();pe(Vn.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:-Pt,_prom:0,_ps:!1,_rts:1});var Kt=function(m){_s(t,m);function t(n,r){var i;return n===void 0&&(n={}),i=m.call(this,n)||this,i.labels={},i.smoothChildTiming=!!n.smoothChildTiming,i.autoRemoveChildren=!!n.autoRemoveChildren,i._sort=Zt(n.sortChildren),Mt&&Ae(n.parent||Mt,Oe(i),r),n.reversed&&i.reverse(),n.paused&&i.paused(!0),n.scrollTrigger&&Os(Oe(i),n.scrollTrigger),i}var e=t.prototype;return e.to=function(r,i,a){return Un(0,arguments,this),this},e.from=function(r,i,a){return Un(1,arguments,this),this},e.fromTo=function(r,i,a,l){return Un(2,arguments,this),this},e.set=function(r,i,a){return i.duration=0,i.parent=this,Bn(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Dt(r,i,ce(this,a),1),this},e.call=function(r,i,a){return Ae(this,Dt.delayedCall(0,r,i),a)},e.staggerTo=function(r,i,a,l,c,p,v){return a.duration=i,a.stagger=a.stagger||l,a.onComplete=p,a.onCompleteParams=v,a.parent=this,new Dt(r,a,ce(this,c)),this},e.staggerFrom=function(r,i,a,l,c,p,v){return a.runBackwards=1,Bn(a).immediateRender=Zt(a.immediateRender),this.staggerTo(r,i,a,l,c,p,v)},e.staggerFromTo=function(r,i,a,l,c,p,v,b){return l.startAt=a,Bn(l).immediateRender=Zt(l.immediateRender),this.staggerTo(r,i,l,c,p,v,b)},e.render=function(r,i,a){var l=this._time,c=this._dirty?this.totalDuration():this._tDur,p=this._dur,v=r<=0?0:Yt(r),b=this._zTime<0!=r<0&&(this._initted||!p),T,d,C,y,R,F,D,z,B,I,O,X;if(this!==Mt&&v>c&&r>=0&&(v=c),v!==this._tTime||a||b){if(l!==this._time&&p&&(v+=this._time-l,r+=this._time-l),T=v,B=this._start,z=this._ts,F=!z,b&&(p||(l=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(O=this._yoyo,R=p+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(R*100+r,i,a);if(T=Yt(v%R),v===c?(y=this._repeat,T=p):(y=~~(v/R),y&&y===v/R&&(T=p,y--),T>p&&(T=p)),I=wn(this._tTime,R),!l&&this._tTime&&I!==y&&this._tTime-I*R-this._dur<=0&&(I=y),O&&y&1&&(T=p-T,X=1),y!==I&&!this._lock){var $=O&&I&1,N=$===(O&&y&1);if(y<I&&($=!$),l=$?0:v%p?p:v,this._lock=1,this.render(l||(X?0:Yt(y*R)),i,!p)._lock=0,this._tTime=v,!i&&this.parent&&ae(this,"onRepeat"),this.vars.repeatRefresh&&!X&&(this.invalidate()._lock=1),l&&l!==this._time||F!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(p=this._dur,c=this._tDur,N&&(this._lock=2,l=$?p:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!X&&this.invalidate()),this._lock=0,!this._ts&&!F)return this;$s(this,X)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(D=ta(this,Yt(l),Yt(T)),D&&(v-=T-(T=D._start))),this._tTime=v,this._time=T,this._act=!z,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,l=0),!l&&T&&!i&&!y&&(ae(this,"onStart"),this._tTime!==v))return this;if(T>=l&&r>=0)for(d=this._first;d;){if(C=d._next,(d._act||T>=d._start)&&d._ts&&D!==d){if(d.parent!==this)return this.render(r,i,a);if(d.render(d._ts>0?(T-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(T-d._start)*d._ts,i,a),T!==this._time||!this._ts&&!F){D=0,C&&(v+=this._zTime=-Pt);break}}d=C}else{d=this._last;for(var H=r<0?r:T;d;){if(C=d._prev,(d._act||H<=d._end)&&d._ts&&D!==d){if(d.parent!==this)return this.render(r,i,a);if(d.render(d._ts>0?(H-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(H-d._start)*d._ts,i,a||qt&&(d._initted||d._startAt)),T!==this._time||!this._ts&&!F){D=0,C&&(v+=this._zTime=H?-Pt:Pt);break}}d=C}}if(D&&!i&&(this.pause(),D.render(T>=l?0:-Pt)._zTime=T>=l?1:-1,this._ts))return this._start=B,Ar(this),this.render(r,i,a);this._onUpdate&&!i&&ae(this,"onUpdate",!0),(v===c&&this._tTime>=this.totalDuration()||!v&&l)&&(B===this._start||Math.abs(z)!==Math.abs(this._ts))&&(this._lock||((r||!p)&&(v===c&&this._ts>0||!v&&this._ts<0)&&Xe(this,1),!i&&!(r<0&&!l)&&(v||l||!c)&&(ae(this,v===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<c&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(r,i){var a=this;if(Fe(i)||(i=ce(this,i,r)),!(r instanceof Vn)){if(Qt(r))return r.forEach(function(l){return a.add(l,i)}),this;if(Vt(r))return this.addLabel(r,i);if(Lt(r))r=Dt.delayedCall(0,r);else return this}return this!==r?Ae(this,r,i):this},e.getChildren=function(r,i,a,l){r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=!0),l===void 0&&(l=-he);for(var c=[],p=this._first;p;)p._start>=l&&(p instanceof Dt?i&&c.push(p):(a&&c.push(p),r&&c.push.apply(c,p.getChildren(!0,i,a)))),p=p._next;return c},e.getById=function(r){for(var i=this.getChildren(1,1,1),a=i.length;a--;)if(i[a].vars.id===r)return i[a]},e.remove=function(r){return Vt(r)?this.removeLabel(r):Lt(r)?this.killTweensOf(r):(Tr(this,r),r===this._recent&&(this._recent=this._last),rn(this))},e.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Yt(oe.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),m.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},e.addLabel=function(r,i){return this.labels[r]=ce(this,i),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,i,a){var l=Dt.delayedCall(0,i||Nn,a);return l.data="isPause",this._hasPause=1,Ae(this,l,ce(this,r))},e.removePause=function(r){var i=this._first;for(r=ce(this,r);i;)i._start===r&&i.data==="isPause"&&Xe(i),i=i._next},e.killTweensOf=function(r,i,a){for(var l=this.getTweensOf(r,a),c=l.length;c--;)ze!==l[c]&&l[c].kill(r,i);return this},e.getTweensOf=function(r,i){for(var a=[],l=de(r),c=this._first,p=Fe(i),v;c;)c instanceof Dt?Go(c._targets,l)&&(p?(!ze||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&a.push(c):(v=c.getTweensOf(l,i)).length&&a.push.apply(a,v),c=c._next;return a},e.tweenTo=function(r,i){i=i||{};var a=this,l=ce(a,r),c=i,p=c.startAt,v=c.onStart,b=c.onStartParams,T=c.immediateRender,d,C=Dt.to(a,pe({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:i.duration||Math.abs((l-(p&&"time"in p?p.time:a._time))/a.timeScale())||Pt,onStart:function(){if(a.pause(),!d){var R=i.duration||Math.abs((l-(p&&"time"in p?p.time:a._time))/a.timeScale());C._dur!==R&&Tn(C,R,0,1).render(C._time,!0,!0),d=1}v&&v.apply(C,b||[])}},i));return T?C.render(0):C},e.tweenFromTo=function(r,i,a){return this.tweenTo(i,pe({startAt:{time:ce(this,r)}},a))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),rs(this,ce(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),rs(this,ce(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Pt)},e.shiftChildren=function(r,i,a){a===void 0&&(a=0);for(var l=this._first,c=this.labels,p;l;)l._start>=a&&(l._start+=r,l._end+=r),l=l._next;if(i)for(p in c)c[p]>=a&&(c[p]+=r);return rn(this)},e.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return m.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,a;i;)a=i._next,this.remove(i),i=a;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),rn(this)},e.totalDuration=function(r){var i=0,a=this,l=a._last,c=he,p,v,b;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-r:r));if(a._dirty){for(b=a.parent;l;)p=l._prev,l._dirty&&l.totalDuration(),v=l._start,v>c&&a._sort&&l._ts&&!a._lock?(a._lock=1,Ae(a,l,v-l._delay,1)._lock=0):c=v,v<0&&l._ts&&(i-=v,(!b&&!a._dp||b&&b.smoothChildTiming)&&(a._start+=v/a._ts,a._time-=v,a._tTime-=v),a.shiftChildren(-v,!1,-1/0),c=0),l._end>i&&l._ts&&(i=l._end),l=p;Tn(a,a===Mt&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(r){if(Mt._ts&&(Cs(Mt,gr(r,Mt)),xs=oe.frame),oe.frame>=Ji){Ji+=ue.autoSleep||120;var i=Mt._first;if((!i||!i._ts)&&ue.autoSleep&&oe._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||oe.sleep()}}},t}(Vn);pe(Kt.prototype,{_lock:0,_hasPause:0,_forcing:0});var ma=function(t,e,n,r,i,a,l){var c=new te(this._pt,t,e,0,1,to,null,i),p=0,v=0,b,T,d,C,y,R,F,D;for(c.b=n,c.e=r,n+="",r+="",(F=~r.indexOf("random("))&&(r=Wn(r)),a&&(D=[n,r],a(D,t,e),n=D[0],r=D[1]),T=n.match(Ir)||[];b=Ir.exec(r);)C=b[0],y=r.substring(p,b.index),d?d=(d+1)%5:y.substr(-5)==="rgba("&&(d=1),C!==T[v++]&&(R=parseFloat(T[v-1])||0,c._pt={_next:c._pt,p:y||v===1?y:",",s:R,c:C.charAt(1)==="="?vn(R,C)-R:parseFloat(C)-R,m:d&&d<4?Math.round:0},p=Ir.lastIndex);return c.c=p<r.length?r.substring(p,r.length):"",c.fp=l,(ys.test(r)||F)&&(c.e=0),this._pt=c,c},_i=function(t,e,n,r,i,a,l,c,p,v){Lt(r)&&(r=r(i||0,t,a));var b=t[e],T=n!=="get"?n:Lt(b)?p?t[e.indexOf("set")||!Lt(t["get"+e.substr(3)])?e:"get"+e.substr(3)](p):t[e]():b,d=Lt(b)?p?wa:Zs:vi,C;if(Vt(r)&&(~r.indexOf("random(")&&(r=Wn(r)),r.charAt(1)==="="&&(C=vn(T,r)+(Ht(T)||0),(C||C===0)&&(r=C))),!v||T!==r||ti)return!isNaN(T*r)&&r!==""?(C=new te(this._pt,t,e,+T||0,r-(T||0),typeof b=="boolean"?Aa:Js,0,d),p&&(C.fp=p),l&&C.modifier(l,this,t),this._pt=C):(!b&&!(e in t)&&ci(e,r),ma.call(this,t,e,T,r,d,c||ue.stringFilter,p))},va=function(t,e,n,r,i){if(Lt(t)&&(t=jn(t,i,e,n,r)),!Ce(t)||t.style&&t.nodeType||Qt(t)||vs(t))return Vt(t)?jn(t,i,e,n,r):t;var a={},l;for(l in t)a[l]=jn(t[l],i,e,n,r);return a},qs=function(t,e,n,r,i,a){var l,c,p,v;if(se[t]&&(l=new se[t]).init(i,l.rawVars?e[t]:va(e[t],r,i,a,n),n,r,a)!==!1&&(n._pt=c=new te(n._pt,i,t,0,1,l.render,l,0,l.priority),n!==mn))for(p=n._ptLookup[n._targets.indexOf(i)],v=l._props.length;v--;)p[l._props[v]]=c;return l},ze,ti,mi=function m(t,e,n){var r=t.vars,i=r.ease,a=r.startAt,l=r.immediateRender,c=r.lazy,p=r.onUpdate,v=r.runBackwards,b=r.yoyoEase,T=r.keyframes,d=r.autoRevert,C=t._dur,y=t._startAt,R=t._targets,F=t.parent,D=F&&F.data==="nested"?F.vars.targets:R,z=t._overwrite==="auto"&&!ai,B=t.timeline,I,O,X,$,N,H,it,et,ht,bt,wt,gt,st;if(B&&(!T||!i)&&(i="none"),t._ease=sn(i,bn.ease),t._yEase=b?Xs(sn(b===!0?i:b,bn.ease)):0,b&&t._yoyo&&!t._repeat&&(b=t._yEase,t._yEase=t._ease,t._ease=b),t._from=!B&&!!r.runBackwards,!B||T&&!r.stagger){if(et=R[0]?nn(R[0]).harness:0,gt=et&&r[et.prop],I=vr(r,hi),y&&(y._zTime<0&&y.progress(1),e<0&&v&&l&&!d?y.render(-1,!0):y.revert(v&&C?hr:Xo),y._lazy=0),a){if(Xe(t._startAt=Dt.set(R,pe({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:!y&&Zt(c),startAt:null,delay:0,onUpdate:p&&function(){return ae(t,"onUpdate")},stagger:0},a))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(qt||!l&&!d)&&t._startAt.revert(hr),l&&C&&e<=0&&n<=0){e&&(t._zTime=e);return}}else if(v&&C&&!y){if(e&&(l=!1),X=pe({overwrite:!1,data:"isFromStart",lazy:l&&!y&&Zt(c),immediateRender:l,stagger:0,parent:F},I),gt&&(X[et.prop]=gt),Xe(t._startAt=Dt.set(R,X)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(qt?t._startAt.revert(hr):t._startAt.render(-1,!0)),t._zTime=e,!l)m(t._startAt,Pt,Pt);else if(!e)return}for(t._pt=t._ptCache=0,c=C&&Zt(c)||c&&!C,O=0;O<R.length;O++){if(N=R[O],it=N._gsap||pi(R)[O]._gsap,t._ptLookup[O]=bt={},Hr[it.id]&&Ye.length&&mr(),wt=D===R?O:D.indexOf(N),et&&(ht=new et).init(N,gt||I,t,wt,D)!==!1&&(t._pt=$=new te(t._pt,N,ht.name,0,1,ht.render,ht,0,ht.priority),ht._props.forEach(function(kt){bt[kt]=$}),ht.priority&&(H=1)),!et||gt)for(X in I)se[X]&&(ht=qs(X,I,t,wt,N,D))?ht.priority&&(H=1):bt[X]=$=_i.call(t,N,X,"get",I[X],wt,D,0,r.stringFilter);t._op&&t._op[O]&&t.kill(N,t._op[O]),z&&t._pt&&(ze=t,Mt.killTweensOf(N,bt,t.globalTime(e)),st=!t.parent,ze=0),t._pt&&c&&(Hr[it.id]=1)}H&&eo(t),t._onInit&&t._onInit(t)}t._onUpdate=p,t._initted=(!t._op||t._pt)&&!st,T&&e<=0&&B.render(he,!0,!0)},ga=function(t,e,n,r,i,a,l,c){var p=(t._pt&&t._ptCache||(t._ptCache={}))[e],v,b,T,d;if(!p)for(p=t._ptCache[e]=[],T=t._ptLookup,d=t._targets.length;d--;){if(v=T[d][e],v&&v.d&&v.d._pt)for(v=v.d._pt;v&&v.p!==e&&v.fp!==e;)v=v._next;if(!v)return ti=1,t.vars[e]="+=0",mi(t,l),ti=0,c?zn(e+" not eligible for reset"):1;p.push(v)}for(d=p.length;d--;)b=p[d],v=b._pt||b,v.s=(r||r===0)&&!i?r:v.s+(r||0)+a*v.c,v.c=n-v.s,b.e&&(b.e=Ft(n)+Ht(b.e)),b.b&&(b.b=v.s+Ht(b.b))},ya=function(t,e){var n=t[0]?nn(t[0]).harness:0,r=n&&n.aliases,i,a,l,c;if(!r)return e;i=an({},e);for(a in r)if(a in i)for(c=r[a].split(","),l=c.length;l--;)i[c[l]]=i[a];return i},ba=function(t,e,n,r){var i=e.ease||r||"power1.inOut",a,l;if(Qt(e))l=n[t]||(n[t]=[]),e.forEach(function(c,p){return l.push({t:p/(e.length-1)*100,v:c,e:i})});else for(a in e)l=n[a]||(n[a]=[]),a==="ease"||l.push({t:parseFloat(t),v:e[a],e:i})},jn=function(t,e,n,r,i){return Lt(t)?t.call(e,n,r,i):Vt(t)&&~t.indexOf("random(")?Wn(t):t},Qs=di+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ks={};Jt(Qs+",id,stagger,delay,duration,paused,scrollTrigger",function(m){return Ks[m]=1});var Dt=function(m){_s(t,m);function t(n,r,i,a){var l;typeof r=="number"&&(i.duration=r,r=i,i=null),l=m.call(this,a?r:Bn(r))||this;var c=l.vars,p=c.duration,v=c.delay,b=c.immediateRender,T=c.stagger,d=c.overwrite,C=c.keyframes,y=c.defaults,R=c.scrollTrigger,F=c.yoyoEase,D=r.parent||Mt,z=(Qt(n)||vs(n)?Fe(n[0]):"length"in r)?[n]:de(n),B,I,O,X,$,N,H,it;if(l._targets=z.length?pi(z):zn("GSAP target "+n+" not found. https://gsap.com",!ue.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=d,C||T||cr(p)||cr(v)){if(r=l.vars,B=l.timeline=new Kt({data:"nested",defaults:y||{},targets:D&&D.data==="nested"?D.vars.targets:z}),B.kill(),B.parent=B._dp=Oe(l),B._start=0,T||cr(p)||cr(v)){if(X=z.length,H=T&&ks(T),Ce(T))for($ in T)~Qs.indexOf($)&&(it||(it={}),it[$]=T[$]);for(I=0;I<X;I++)O=vr(r,Ks),O.stagger=0,F&&(O.yoyoEase=F),it&&an(O,it),N=z[I],O.duration=+jn(p,Oe(l),I,N,z),O.delay=(+jn(v,Oe(l),I,N,z)||0)-l._delay,!T&&X===1&&O.delay&&(l._delay=v=O.delay,l._start+=v,O.delay=0),B.to(N,O,H?H(I,N,z):0),B._ease=ut.none;B.duration()?p=v=0:l.timeline=0}else if(C){Bn(pe(B.vars.defaults,{ease:"none"})),B._ease=sn(C.ease||r.ease||"none");var et=0,ht,bt,wt;if(Qt(C))C.forEach(function(gt){return B.to(z,gt,">")}),B.duration();else{O={};for($ in C)$==="ease"||$==="easeEach"||ba($,C[$],O,C.easeEach);for($ in O)for(ht=O[$].sort(function(gt,st){return gt.t-st.t}),et=0,I=0;I<ht.length;I++)bt=ht[I],wt={ease:bt.e,duration:(bt.t-(I?ht[I-1].t:0))/100*p},wt[$]=bt.v,B.to(z,wt,et),et+=wt.duration;B.duration()<p&&B.to({},{duration:p-B.duration()})}}p||l.duration(p=B.duration())}else l.timeline=0;return d===!0&&!ai&&(ze=Oe(l),Mt.killTweensOf(z),ze=0),Ae(D,Oe(l),i),r.reversed&&l.reverse(),r.paused&&l.paused(!0),(b||!p&&!C&&l._start===Yt(D._time)&&Zt(b)&&Ko(Oe(l))&&D.data!=="nested")&&(l._tTime=-Pt,l.render(Math.max(0,-v)||0)),R&&Os(Oe(l),R),l}var e=t.prototype;return e.render=function(r,i,a){var l=this._time,c=this._tDur,p=this._dur,v=r<0,b=r>c-Pt&&!v?c:r<Pt?0:r,T,d,C,y,R,F,D,z,B;if(!p)Jo(this,r,i,a);else if(b!==this._tTime||!r||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==v){if(T=b,z=this.timeline,this._repeat){if(y=p+this._rDelay,this._repeat<-1&&v)return this.totalTime(y*100+r,i,a);if(T=Yt(b%y),b===c?(C=this._repeat,T=p):(C=~~(b/y),C&&C===Yt(b/y)&&(T=p,C--),T>p&&(T=p)),F=this._yoyo&&C&1,F&&(B=this._yEase,T=p-T),R=wn(this._tTime,y),T===l&&!a&&this._initted&&C===R)return this._tTime=b,this;C!==R&&(z&&this._yEase&&$s(z,F),this.vars.repeatRefresh&&!F&&!this._lock&&this._time!==y&&this._initted&&(this._lock=a=1,this.render(Yt(y*C),!0).invalidate()._lock=0))}if(!this._initted){if(Ls(this,v?r:T,a,i,b))return this._tTime=0,this;if(l!==this._time&&!(a&&this.vars.repeatRefresh&&C!==R))return this;if(p!==this._dur)return this.render(r,i,a)}if(this._tTime=b,this._time=T,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=D=(B||this._ease)(T/p),this._from&&(this.ratio=D=1-D),T&&!l&&!i&&!C&&(ae(this,"onStart"),this._tTime!==b))return this;for(d=this._pt;d;)d.r(D,d.d),d=d._next;z&&z.render(r<0?r:z._dur*z._ease(T/this._dur),i,a)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(v&&qr(this,r,i,a),ae(this,"onUpdate")),this._repeat&&C!==R&&this.vars.onRepeat&&!i&&this.parent&&ae(this,"onRepeat"),(b===this._tDur||!b)&&this._tTime===b&&(v&&!this._onUpdate&&qr(this,r,!0,!0),(r||!p)&&(b===this._tDur&&this._ts>0||!b&&this._ts<0)&&Xe(this,1),!i&&!(v&&!l)&&(b||l||F)&&(ae(this,b===c?"onComplete":"onReverseComplete",!0),this._prom&&!(b<c&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),m.prototype.invalidate.call(this,r)},e.resetTo=function(r,i,a,l,c){Yn||oe.wake(),this._ts||this.play();var p=Math.min(this._dur,(this._dp._time-this._start)*this._ts),v;return this._initted||mi(this,p),v=this._ease(p/this._dur),ga(this,r,i,a,l,v,p,c)?this.resetTo(r,i,a,l,1):(xr(this,0),this.parent||Es(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?kn(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,ze&&ze.vars.overwrite!==!0)._first||kn(this),this.parent&&a!==this.timeline.totalDuration()&&Tn(this,this._dur*this.timeline._tDur/a,0,1),this}var l=this._targets,c=r?de(r):l,p=this._ptLookup,v=this._pt,b,T,d,C,y,R,F;if((!i||i==="all")&&qo(l,c))return i==="all"&&(this._pt=0),kn(this);for(b=this._op=this._op||[],i!=="all"&&(Vt(i)&&(y={},Jt(i,function(D){return y[D]=1}),i=y),i=ya(l,i)),F=l.length;F--;)if(~c.indexOf(l[F])){T=p[F],i==="all"?(b[F]=i,C=T,d={}):(d=b[F]=b[F]||{},C=i);for(y in C)R=T&&T[y],R&&((!("kill"in R.d)||R.d.kill(y)===!0)&&Tr(this,R,"_pt"),delete T[y]),d!=="all"&&(d[y]=1)}return this._initted&&!this._pt&&v&&kn(this),this},t.to=function(r,i){return new t(r,i,arguments[2])},t.from=function(r,i){return Un(1,arguments)},t.delayedCall=function(r,i,a,l){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:l})},t.fromTo=function(r,i,a){return Un(2,arguments)},t.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(r,i)},t.killTweensOf=function(r,i,a){return Mt.killTweensOf(r,i,a)},t}(Vn);pe(Dt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Jt("staggerTo,staggerFrom,staggerFromTo",function(m){Dt[m]=function(){var t=new Kt,e=Kr.call(arguments,0);return e.splice(m==="staggerFromTo"?5:4,0,0),t[m].apply(t,e)}});var vi=function(t,e,n){return t[e]=n},Zs=function(t,e,n){return t[e](n)},wa=function(t,e,n,r){return t[e](r.fp,n)},Ta=function(t,e,n){return t.setAttribute(e,n)},gi=function(t,e){return Lt(t[e])?Zs:ui(t[e])&&t.setAttribute?Ta:vi},Js=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Aa=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},to=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},yi=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},xa=function(t,e,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(t,e,n),i=a},Pa=function(t){for(var e=this._pt,n,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?Tr(this,e,"_pt"):e.dep||(n=1),e=r;return!n},Ca=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},eo=function(t){for(var e=t._pt,n,r,i,a;e;){for(n=e._next,r=i;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:a)?e._prev._next=e:i=e,(e._next=r)?r._prev=e:a=e,e=n}t._pt=i},te=function(){function m(e,n,r,i,a,l,c,p,v){this.t=n,this.s=i,this.c=a,this.p=r,this.r=l||Js,this.d=c||this,this.set=p||vi,this.pr=v||0,this._next=e,e&&(e._prev=this)}var t=m.prototype;return t.modifier=function(n,r,i){this.mSet=this.mSet||this.set,this.set=Ca,this.m=n,this.mt=i,this.tween=r},m}();Jt(di+"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(m){return hi[m]=1});le.TweenMax=le.TweenLite=Dt;le.TimelineLite=le.TimelineMax=Kt;Mt=new Kt({sortChildren:!1,defaults:bn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ue.stringFilter=Vs;var on=[],pr={},Ra=[],ss=0,Ma=0,Nr=function(t){return(pr[t]||Ra).map(function(e){return e()})},ei=function(){var t=Date.now(),e=[];t-ss>2&&(Nr("matchMediaInit"),on.forEach(function(n){var r=n.queries,i=n.conditions,a,l,c,p;for(l in r)a=Te.matchMedia(r[l]).matches,a&&(c=1),a!==i[l]&&(i[l]=a,p=1);p&&(n.revert(),c&&e.push(n))}),Nr("matchMediaRevert"),e.forEach(function(n){return n.onMatch(n,function(r){return n.add(null,r)})}),ss=t,Nr("matchMedia"))},no=function(){function m(e,n){this.selector=n&&Zr(n),this.data=[],this._r=[],this.isReverted=!1,this.id=Ma++,e&&this.add(e)}var t=m.prototype;return t.add=function(n,r,i){Lt(n)&&(i=r,r=n,n=Lt);var a=this,l=function(){var p=Rt,v=a.selector,b;return p&&p!==a&&p.data.push(a),i&&(a.selector=Zr(i)),Rt=a,b=r.apply(a,arguments),Lt(b)&&a._r.push(b),Rt=p,a.selector=v,a.isReverted=!1,b};return a.last=l,n===Lt?l(a,function(c){return a.add(null,c)}):n?a[n]=l:l},t.ignore=function(n){var r=Rt;Rt=null,n(this),Rt=r},t.getTweens=function(){var n=[];return this.data.forEach(function(r){return r instanceof m?n.push.apply(n,r.getTweens()):r instanceof Dt&&!(r.parent&&r.parent.data==="nested")&&n.push(r)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,r){var i=this;if(n?function(){for(var l=i.getTweens(),c=i.data.length,p;c--;)p=i.data[c],p.data==="isFlip"&&(p.revert(),p.getChildren(!0,!0,!1).forEach(function(v){return l.splice(l.indexOf(v),1)}));for(l.map(function(v){return{g:v._dur||v._delay||v._sat&&!v._sat.vars.immediateRender?v.globalTime(0):-1/0,t:v}}).sort(function(v,b){return b.g-v.g||-1/0}).forEach(function(v){return v.t.revert(n)}),c=i.data.length;c--;)p=i.data[c],p instanceof Kt?p.data!=="nested"&&(p.scrollTrigger&&p.scrollTrigger.revert(),p.kill()):!(p instanceof Dt)&&p.revert&&p.revert(n);i._r.forEach(function(v){return v(n,i)}),i.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),r)for(var a=on.length;a--;)on[a].id===this.id&&on.splice(a,1)},t.revert=function(n){this.kill(n||{})},m}(),Ea=function(){function m(e){this.contexts=[],this.scope=e,Rt&&Rt.data.push(this)}var t=m.prototype;return t.add=function(n,r,i){Ce(n)||(n={matches:n});var a=new no(0,i||this.scope),l=a.conditions={},c,p,v;Rt&&!a.selector&&(a.selector=Rt.selector),this.contexts.push(a),r=a.add("onMatch",r),a.queries=n;for(p in n)p==="all"?v=1:(c=Te.matchMedia(n[p]),c&&(on.indexOf(a)<0&&on.push(a),(l[p]=c.matches)&&(v=1),c.addListener?c.addListener(ei):c.addEventListener("change",ei)));return v&&r(a,function(b){return a.add(null,b)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(r){return r.kill(n,!0)})},m}(),yr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(r){return Ns(r)})},timeline:function(t){return new Kt(t)},getTweensOf:function(t,e){return Mt.getTweensOf(t,e)},getProperty:function(t,e,n,r){Vt(t)&&(t=de(t)[0]);var i=nn(t||{}).get,a=n?Ms:Rs;return n==="native"&&(n=""),t&&(e?a((se[e]&&se[e].get||i)(t,e,n,r)):function(l,c,p){return a((se[l]&&se[l].get||i)(t,l,c,p))})},quickSetter:function(t,e,n){if(t=de(t),t.length>1){var r=t.map(function(v){return ne.quickSetter(v,e,n)}),i=r.length;return function(v){for(var b=i;b--;)r[b](v)}}t=t[0]||{};var a=se[e],l=nn(t),c=l.harness&&(l.harness.aliases||{})[e]||e,p=a?function(v){var b=new a;mn._pt=0,b.init(t,n?v+n:v,mn,0,[t]),b.render(1,b),mn._pt&&yi(1,mn)}:l.set(t,c);return a?p:function(v){return p(t,c,n?v+n:v,l,1)}},quickTo:function(t,e,n){var r,i=ne.to(t,an((r={},r[e]="+=0.1",r.paused=!0,r),n||{})),a=function(c,p,v){return i.resetTo(e,c,p,v)};return a.tween=i,a},isTweening:function(t){return Mt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=sn(t.ease,bn.ease)),ts(bn,t||{})},config:function(t){return ts(ue,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach(function(l){return l&&!se[l]&&!le[l]&&zn(e+" effect requires "+l+" plugin.")}),Br[e]=function(l,c,p){return n(de(l),pe(c||{},i),p)},a&&(Kt.prototype[e]=function(l,c,p){return this.add(Br[e](l,Ce(c)?c:(p=c)&&{},this),p)})},registerEase:function(t,e){ut[t]=sn(e)},parseEase:function(t,e){return arguments.length?sn(t,e):ut},getById:function(t){return Mt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var n=new Kt(t),r,i;for(n.smoothChildTiming=Zt(t.smoothChildTiming),Mt.remove(n),n._dp=0,n._time=n._tTime=Mt._time,r=Mt._first;r;)i=r._next,(e||!(!r._dur&&r instanceof Dt&&r.vars.onComplete===r._targets[0]))&&Ae(n,r,r._start-r._delay),r=i;return Ae(Mt,n,0),n},context:function(t,e){return t?new no(t,e):Rt},matchMedia:function(t){return new Ea(t)},matchMediaRefresh:function(){return on.forEach(function(t){var e=t.conditions,n,r;for(r in e)e[r]&&(e[r]=!1,n=1);n&&t.revert()})||ei()},addEventListener:function(t,e){var n=pr[t]||(pr[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=pr[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:aa,wrapYoyo:ua,distribute:ks,random:Bs,snap:Is,normalize:oa,getUnit:Ht,clamp:na,splitColor:Ws,toArray:de,selector:Zr,mapRange:js,pipe:ia,unitize:sa,interpolate:la,shuffle:Ds},install:Ts,effects:Br,ticker:oe,updateRoot:Kt.updateRoot,plugins:se,globalTimeline:Mt,core:{PropTween:te,globals:As,Tween:Dt,Timeline:Kt,Animation:Vn,getCache:nn,_removeLinkedListItem:Tr,reverting:function(){return qt},context:function(t){return t&&Rt&&(Rt.data.push(t),t._ctx=Rt),Rt},suppressOverwrites:function(t){return ai=t}}};Jt("to,from,fromTo,delayedCall,set,killTweensOf",function(m){return yr[m]=Dt[m]});oe.add(Kt.updateRoot);mn=yr.to({},{duration:0});var Sa=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Oa=function(t,e){var n=t._targets,r,i,a;for(r in e)for(i=n.length;i--;)a=t._ptLookup[i][r],a&&(a=a.d)&&(a._pt&&(a=Sa(a,r)),a&&a.modifier&&a.modifier(e[r],t,n[i],r))},Wr=function(t,e){return{name:t,rawVars:1,init:function(r,i,a){a._onInit=function(l){var c,p;if(Vt(i)&&(c={},Jt(i,function(v){return c[v]=1}),i=c),e){c={};for(p in i)c[p]=e(i[p]);i=c}Oa(l,i)}}}},ne=yr.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,l,c;this.tween=n;for(a in e)c=t.getAttribute(a)||"",l=this.add(t,"setAttribute",(c||0)+"",e[a],r,i,0,0,a),l.op=a,l.b=c,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)qt?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Wr("roundProps",Jr),Wr("modifiers"),Wr("snap",Is))||yr;Dt.version=Kt.version=ne.version="3.12.5";ws=1;li()&&An();ut.Power0;ut.Power1;ut.Power2;ut.Power3;ut.Power4;ut.Linear;ut.Quad;ut.Cubic;ut.Quart;ut.Quint;ut.Strong;ut.Elastic;ut.Back;ut.SteppedEase;ut.Bounce;ut.Sine;ut.Expo;ut.Circ;/*!
 * CSSPlugin 3.12.5
 * https://gsap.com
 *
 * Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var os,Ne,gn,bi,en,as,wi,La=function(){return typeof window<"u"},De={},tn=180/Math.PI,yn=Math.PI/180,pn=Math.atan2,us=1e8,Ti=/([A-Z])/g,Fa=/(left|right|width|margin|padding|x)/i,Da=/[\s,\(]\S/,xe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ni=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},ka=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ia=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Ba=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},ro=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},io=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Ua=function(t,e,n){return t.style[e]=n},ja=function(t,e,n){return t.style.setProperty(e,n)},za=function(t,e,n){return t._gsap[e]=n},Na=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Wa=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Ya=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},Et="transform",ee=Et+"Origin",Va=function m(t,e){var n=this,r=this.target,i=r.style,a=r._gsap;if(t in De&&i){if(this.tfm=this.tfm||{},t!=="transform")t=xe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(l){return n.tfm[l]=Le(r,l)}):this.tfm[t]=a.x?a[t]:Le(r,t),t===ee&&(this.tfm.zOrigin=a.zOrigin);else return xe.transform.split(",").forEach(function(l){return m.call(n,l,e)});if(this.props.indexOf(Et)>=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(ee,e,"")),t=Et}(i||e)&&this.props.push(t,e,i[t])},so=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Xa=function(){var t=this.props,e=this.target,n=e.style,r=e._gsap,i,a;for(i=0;i<t.length;i+=3)t[i+1]?e[t[i]]=t[i+2]:t[i+2]?n[t[i]]=t[i+2]:n.removeProperty(t[i].substr(0,2)==="--"?t[i]:t[i].replace(Ti,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),i=wi(),(!i||!i.isStart)&&!n[Et]&&(so(n),r.zOrigin&&n[ee]&&(n[ee]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},oo=function(t,e){var n={target:t,props:[],revert:Xa,save:Va};return t._gsap||ne.core.getCache(t),e&&e.split(",").forEach(function(r){return n.save(r)}),n},ao,ri=function(t,e){var n=Ne.createElementNS?Ne.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ne.createElement(t);return n&&n.style?n:Ne.createElement(t)},Pe=function m(t,e,n){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Ti,"-$1").toLowerCase())||r.getPropertyValue(e)||!n&&m(t,xn(e)||e,1)||""},ls="O,Moz,ms,Ms,Webkit".split(","),xn=function(t,e,n){var r=e||en,i=r.style,a=5;if(t in i&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);a--&&!(ls[a]+t in i););return a<0?null:(a===3?"ms":a>=0?ls[a]:"")+t},ii=function(){La()&&window.document&&(os=window,Ne=os.document,gn=Ne.documentElement,en=ri("div")||{style:{}},ri("div"),Et=xn(Et),ee=Et+"Origin",en.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ao=!!xn("perspective"),wi=ne.core.reverting,bi=1)},Yr=function m(t){var e=ri("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,r=this.nextSibling,i=this.style.cssText,a;if(gn.appendChild(e),e.appendChild(this),this.style.display="block",t)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=m}catch{}else this._gsapBBox&&(a=this._gsapBBox());return n&&(r?n.insertBefore(this,r):n.appendChild(this)),gn.removeChild(e),this.style.cssText=i,a},fs=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},uo=function(t){var e;try{e=t.getBBox()}catch{e=Yr.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Yr||(e=Yr.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+fs(t,["x","cx","x1"])||0,y:+fs(t,["y","cy","y1"])||0,width:0,height:0}:e},lo=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&uo(t))},un=function(t,e){if(e){var n=t.style,r;e in De&&e!==ee&&(e=Et),n.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),n.removeProperty(r==="--"?e:e.replace(Ti,"-$1").toLowerCase())):n.removeAttribute(e)}},We=function(t,e,n,r,i,a){var l=new te(t._pt,e,n,0,1,a?io:ro);return t._pt=l,l.b=r,l.e=i,t._props.push(n),l},cs={deg:1,rad:1,turn:1},$a={grid:1,flex:1},$e=function m(t,e,n,r){var i=parseFloat(n)||0,a=(n+"").trim().substr((i+"").length)||"px",l=en.style,c=Fa.test(e),p=t.tagName.toLowerCase()==="svg",v=(p?"client":"offset")+(c?"Width":"Height"),b=100,T=r==="px",d=r==="%",C,y,R,F;if(r===a||!i||cs[r]||cs[a])return i;if(a!=="px"&&!T&&(i=m(t,e,n,"px")),F=t.getCTM&&lo(t),(d||a==="%")&&(De[e]||~e.indexOf("adius")))return C=F?t.getBBox()[c?"width":"height"]:t[v],Ft(d?i/C*b:i/100*C);if(l[c?"width":"height"]=b+(T?a:r),y=~e.indexOf("adius")||r==="em"&&t.appendChild&&!p?t:t.parentNode,F&&(y=(t.ownerSVGElement||{}).parentNode),(!y||y===Ne||!y.appendChild)&&(y=Ne.body),R=y._gsap,R&&d&&R.width&&c&&R.time===oe.time&&!R.uncache)return Ft(i/R.width*b);if(d&&(e==="height"||e==="width")){var D=t.style[e];t.style[e]=b+r,C=t[v],D?t.style[e]=D:un(t,e)}else(d||a==="%")&&!$a[Pe(y,"display")]&&(l.position=Pe(t,"position")),y===t&&(l.position="static"),y.appendChild(en),C=en[v],y.removeChild(en),l.position="absolute";return c&&d&&(R=nn(y),R.time=oe.time,R.width=y[v]),Ft(T?C*i/b:C&&i?b/C*i:0)},Le=function(t,e,n,r){var i;return bi||ii(),e in xe&&e!=="transform"&&(e=xe[e],~e.indexOf(",")&&(e=e.split(",")[0])),De[e]&&e!=="transform"?(i=$n(t,r),i=e!=="transformOrigin"?i[e]:i.svg?i.origin:wr(Pe(t,ee))+" "+i.zOrigin+"px"):(i=t.style[e],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=br[e]&&br[e](t,e,n)||Pe(t,e)||Ps(t,e)||(e==="opacity"?1:0))),n&&!~(i+"").trim().indexOf(" ")?$e(t,e,i,n)+n:i},Ga=function(t,e,n,r){if(!n||n==="none"){var i=xn(e,t,1),a=i&&Pe(t,i,1);a&&a!==n?(e=i,n=a):e==="borderColor"&&(n=Pe(t,"borderTopColor"))}var l=new te(this._pt,t.style,e,0,1,to),c=0,p=0,v,b,T,d,C,y,R,F,D,z,B,I;if(l.b=n,l.e=r,n+="",r+="",r==="auto"&&(y=t.style[e],t.style[e]=r,r=Pe(t,e)||r,y?t.style[e]=y:un(t,e)),v=[n,r],Vs(v),n=v[0],r=v[1],T=n.match(_n)||[],I=r.match(_n)||[],I.length){for(;b=_n.exec(r);)R=b[0],D=r.substring(c,b.index),C?C=(C+1)%5:(D.substr(-5)==="rgba("||D.substr(-5)==="hsla(")&&(C=1),R!==(y=T[p++]||"")&&(d=parseFloat(y)||0,B=y.substr((d+"").length),R.charAt(1)==="="&&(R=vn(d,R)+B),F=parseFloat(R),z=R.substr((F+"").length),c=_n.lastIndex-z.length,z||(z=z||ue.units[e]||B,c===r.length&&(r+=z,l.e+=z)),B!==z&&(d=$e(t,e,y,z)||0),l._pt={_next:l._pt,p:D||p===1?D:",",s:d,c:F-d,m:C&&C<4||e==="zIndex"?Math.round:0});l.c=c<r.length?r.substring(c,r.length):""}else l.r=e==="display"&&r==="none"?io:ro;return ys.test(r)&&(l.e=0),this._pt=l,l},hs={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ha=function(t){var e=t.split(" "),n=e[0],r=e[1]||"50%";return(n==="top"||n==="bottom"||r==="left"||r==="right")&&(t=n,n=r,r=t),e[0]=hs[n]||n,e[1]=hs[r]||r,e.join(" ")},qa=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n=e.t,r=n.style,i=e.u,a=n._gsap,l,c,p;if(i==="all"||i===!0)r.cssText="",c=1;else for(i=i.split(","),p=i.length;--p>-1;)l=i[p],De[l]&&(c=1,l=l==="transformOrigin"?ee:Et),un(n,l);c&&(un(n,Et),a&&(a.svg&&n.removeAttribute("transform"),$n(n,1),a.uncache=1,so(r)))}},br={clearProps:function(t,e,n,r,i){if(i.data!=="isFromStart"){var a=t._pt=new te(t._pt,e,n,0,0,qa);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Xn=[1,0,0,1,0,0],fo={},co=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ds=function(t){var e=Pe(t,Et);return co(e)?Xn:e.substr(7).match(gs).map(Ft)},Ai=function(t,e){var n=t._gsap||nn(t),r=t.style,i=ds(t),a,l,c,p;return n.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?Xn:i):(i===Xn&&!t.offsetParent&&t!==gn&&!n.svg&&(c=r.display,r.display="block",a=t.parentNode,(!a||!t.offsetParent)&&(p=1,l=t.nextElementSibling,gn.appendChild(t)),i=ds(t),c?r.display=c:un(t,"display"),p&&(l?a.insertBefore(t,l):a?a.appendChild(t):gn.removeChild(t))),e&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},si=function(t,e,n,r,i,a){var l=t._gsap,c=i||Ai(t,!0),p=l.xOrigin||0,v=l.yOrigin||0,b=l.xOffset||0,T=l.yOffset||0,d=c[0],C=c[1],y=c[2],R=c[3],F=c[4],D=c[5],z=e.split(" "),B=parseFloat(z[0])||0,I=parseFloat(z[1])||0,O,X,$,N;n?c!==Xn&&(X=d*R-C*y)&&($=B*(R/X)+I*(-y/X)+(y*D-R*F)/X,N=B*(-C/X)+I*(d/X)-(d*D-C*F)/X,B=$,I=N):(O=uo(t),B=O.x+(~z[0].indexOf("%")?B/100*O.width:B),I=O.y+(~(z[1]||z[0]).indexOf("%")?I/100*O.height:I)),r||r!==!1&&l.smooth?(F=B-p,D=I-v,l.xOffset=b+(F*d+D*y)-F,l.yOffset=T+(F*C+D*R)-D):l.xOffset=l.yOffset=0,l.xOrigin=B,l.yOrigin=I,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[ee]="0px 0px",a&&(We(a,l,"xOrigin",p,B),We(a,l,"yOrigin",v,I),We(a,l,"xOffset",b,l.xOffset),We(a,l,"yOffset",T,l.yOffset)),t.setAttribute("data-svg-origin",B+" "+I)},$n=function(t,e){var n=t._gsap||new Hs(t);if("x"in n&&!e&&!n.uncache)return n;var r=t.style,i=n.scaleX<0,a="px",l="deg",c=getComputedStyle(t),p=Pe(t,ee)||"0",v,b,T,d,C,y,R,F,D,z,B,I,O,X,$,N,H,it,et,ht,bt,wt,gt,st,kt,Ut,ot,It,St,vt,at,g;return v=b=T=y=R=F=D=z=B=0,d=C=1,n.svg=!!(t.getCTM&&lo(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[Et]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Et]!=="none"?c[Et]:"")),r.scale=r.rotate=r.translate="none"),X=Ai(t,n.svg),n.svg&&(n.uncache?(kt=t.getBBox(),p=n.xOrigin-kt.x+"px "+(n.yOrigin-kt.y)+"px",st=""):st=!e&&t.getAttribute("data-svg-origin"),si(t,st||p,!!st||n.originIsAbsolute,n.smooth!==!1,X)),I=n.xOrigin||0,O=n.yOrigin||0,X!==Xn&&(it=X[0],et=X[1],ht=X[2],bt=X[3],v=wt=X[4],b=gt=X[5],X.length===6?(d=Math.sqrt(it*it+et*et),C=Math.sqrt(bt*bt+ht*ht),y=it||et?pn(et,it)*tn:0,D=ht||bt?pn(ht,bt)*tn+y:0,D&&(C*=Math.abs(Math.cos(D*yn))),n.svg&&(v-=I-(I*it+O*ht),b-=O-(I*et+O*bt))):(g=X[6],vt=X[7],ot=X[8],It=X[9],St=X[10],at=X[11],v=X[12],b=X[13],T=X[14],$=pn(g,St),R=$*tn,$&&(N=Math.cos(-$),H=Math.sin(-$),st=wt*N+ot*H,kt=gt*N+It*H,Ut=g*N+St*H,ot=wt*-H+ot*N,It=gt*-H+It*N,St=g*-H+St*N,at=vt*-H+at*N,wt=st,gt=kt,g=Ut),$=pn(-ht,St),F=$*tn,$&&(N=Math.cos(-$),H=Math.sin(-$),st=it*N-ot*H,kt=et*N-It*H,Ut=ht*N-St*H,at=bt*H+at*N,it=st,et=kt,ht=Ut),$=pn(et,it),y=$*tn,$&&(N=Math.cos($),H=Math.sin($),st=it*N+et*H,kt=wt*N+gt*H,et=et*N-it*H,gt=gt*N-wt*H,it=st,wt=kt),R&&Math.abs(R)+Math.abs(y)>359.9&&(R=y=0,F=180-F),d=Ft(Math.sqrt(it*it+et*et+ht*ht)),C=Ft(Math.sqrt(gt*gt+g*g)),$=pn(wt,gt),D=Math.abs($)>2e-4?$*tn:0,B=at?1/(at<0?-at:at):0),n.svg&&(st=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!co(Pe(t,Et)),st&&t.setAttribute("transform",st))),Math.abs(D)>90&&Math.abs(D)<270&&(i?(d*=-1,D+=y<=0?180:-180,y+=y<=0?180:-180):(C*=-1,D+=D<=0?180:-180)),e=e||n.uncache,n.x=v-((n.xPercent=v&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-v)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+a,n.y=b-((n.yPercent=b&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-b)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+a,n.z=T+a,n.scaleX=Ft(d),n.scaleY=Ft(C),n.rotation=Ft(y)+l,n.rotationX=Ft(R)+l,n.rotationY=Ft(F)+l,n.skewX=D+l,n.skewY=z+l,n.transformPerspective=B+a,(n.zOrigin=parseFloat(p.split(" ")[2])||!e&&n.zOrigin||0)&&(r[ee]=wr(p)),n.xOffset=n.yOffset=0,n.force3D=ue.force3D,n.renderTransform=n.svg?Ka:ao?ho:Qa,n.uncache=0,n},wr=function(t){return(t=t.split(" "))[0]+" "+t[1]},Vr=function(t,e,n){var r=Ht(e);return Ft(parseFloat(e)+parseFloat($e(t,"x",n+"px",r)))+r},Qa=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ho(t,e)},Ze="0deg",Fn="0px",Je=") ",ho=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,l=n.y,c=n.z,p=n.rotation,v=n.rotationY,b=n.rotationX,T=n.skewX,d=n.skewY,C=n.scaleX,y=n.scaleY,R=n.transformPerspective,F=n.force3D,D=n.target,z=n.zOrigin,B="",I=F==="auto"&&t&&t!==1||F===!0;if(z&&(b!==Ze||v!==Ze)){var O=parseFloat(v)*yn,X=Math.sin(O),$=Math.cos(O),N;O=parseFloat(b)*yn,N=Math.cos(O),a=Vr(D,a,X*N*-z),l=Vr(D,l,-Math.sin(O)*-z),c=Vr(D,c,$*N*-z+z)}R!==Fn&&(B+="perspective("+R+Je),(r||i)&&(B+="translate("+r+"%, "+i+"%) "),(I||a!==Fn||l!==Fn||c!==Fn)&&(B+=c!==Fn||I?"translate3d("+a+", "+l+", "+c+") ":"translate("+a+", "+l+Je),p!==Ze&&(B+="rotate("+p+Je),v!==Ze&&(B+="rotateY("+v+Je),b!==Ze&&(B+="rotateX("+b+Je),(T!==Ze||d!==Ze)&&(B+="skew("+T+", "+d+Je),(C!==1||y!==1)&&(B+="scale("+C+", "+y+Je),D.style[Et]=B||"translate(0, 0)"},Ka=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,l=n.y,c=n.rotation,p=n.skewX,v=n.skewY,b=n.scaleX,T=n.scaleY,d=n.target,C=n.xOrigin,y=n.yOrigin,R=n.xOffset,F=n.yOffset,D=n.forceCSS,z=parseFloat(a),B=parseFloat(l),I,O,X,$,N;c=parseFloat(c),p=parseFloat(p),v=parseFloat(v),v&&(v=parseFloat(v),p+=v,c+=v),c||p?(c*=yn,p*=yn,I=Math.cos(c)*b,O=Math.sin(c)*b,X=Math.sin(c-p)*-T,$=Math.cos(c-p)*T,p&&(v*=yn,N=Math.tan(p-v),N=Math.sqrt(1+N*N),X*=N,$*=N,v&&(N=Math.tan(v),N=Math.sqrt(1+N*N),I*=N,O*=N)),I=Ft(I),O=Ft(O),X=Ft(X),$=Ft($)):(I=b,$=T,O=X=0),(z&&!~(a+"").indexOf("px")||B&&!~(l+"").indexOf("px"))&&(z=$e(d,"x",a,"px"),B=$e(d,"y",l,"px")),(C||y||R||F)&&(z=Ft(z+C-(C*I+y*X)+R),B=Ft(B+y-(C*O+y*$)+F)),(r||i)&&(N=d.getBBox(),z=Ft(z+r/100*N.width),B=Ft(B+i/100*N.height)),N="matrix("+I+","+O+","+X+","+$+","+z+","+B+")",d.setAttribute("transform",N),D&&(d.style[Et]=N)},Za=function(t,e,n,r,i){var a=360,l=Vt(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?tn:1),p=c-r,v=r+p+"deg",b,T;return l&&(b=i.split("_")[1],b==="short"&&(p%=a,p!==p%(a/2)&&(p+=p<0?a:-a)),b==="cw"&&p<0?p=(p+a*us)%a-~~(p/a)*a:b==="ccw"&&p>0&&(p=(p-a*us)%a-~~(p/a)*a)),t._pt=T=new te(t._pt,e,n,r,p,ka),T.e=v,T.u="deg",t._props.push(n),T},ps=function(t,e){for(var n in e)t[n]=e[n];return t},Ja=function(t,e,n){var r=ps({},n._gsap),i="perspective,force3D,transformOrigin,svgOrigin",a=n.style,l,c,p,v,b,T,d,C;r.svg?(p=n.getAttribute("transform"),n.setAttribute("transform",""),a[Et]=e,l=$n(n,1),un(n,Et),n.setAttribute("transform",p)):(p=getComputedStyle(n)[Et],a[Et]=e,l=$n(n,1),a[Et]=p);for(c in De)p=r[c],v=l[c],p!==v&&i.indexOf(c)<0&&(d=Ht(p),C=Ht(v),b=d!==C?$e(n,c,p,C):parseFloat(p),T=parseFloat(v),t._pt=new te(t._pt,l,c,b,T-b,ni),t._pt.u=C||0,t._props.push(c));ps(l,r)};Jt("padding,margin,Width,Radius",function(m,t){var e="Top",n="Right",r="Bottom",i="Left",a=(t<3?[e,n,r,i]:[e+i,e+n,r+n,r+i]).map(function(l){return t<2?m+l:"border"+l+m});br[t>1?"border"+m:m]=function(l,c,p,v,b){var T,d;if(arguments.length<4)return T=a.map(function(C){return Le(l,C,p)}),d=T.join(" "),d.split(T[0]).length===5?T[0]:d;T=(v+"").split(" "),d={},a.forEach(function(C,y){return d[C]=T[y]=T[y]||T[(y-1)/2|0]}),l.init(c,d,b)}});var po={name:"css",register:ii,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a=this._props,l=t.style,c=n.vars.startAt,p,v,b,T,d,C,y,R,F,D,z,B,I,O,X,$;bi||ii(),this.styles=this.styles||oo(t),$=this.styles.props,this.tween=n;for(y in e)if(y!=="autoRound"&&(v=e[y],!(se[y]&&qs(y,e,n,r,t,i)))){if(d=typeof v,C=br[y],d==="function"&&(v=v.call(n,r,t,i),d=typeof v),d==="string"&&~v.indexOf("random(")&&(v=Wn(v)),C)C(this,t,y,v,n)&&(X=1);else if(y.substr(0,2)==="--")p=(getComputedStyle(t).getPropertyValue(y)+"").trim(),v+="",Ve.lastIndex=0,Ve.test(p)||(R=Ht(p),F=Ht(v)),F?R!==F&&(p=$e(t,y,p,F)+F):R&&(v+=R),this.add(l,"setProperty",p,v,r,i,0,0,y),a.push(y),$.push(y,0,l[y]);else if(d!=="undefined"){if(c&&y in c?(p=typeof c[y]=="function"?c[y].call(n,r,t,i):c[y],Vt(p)&&~p.indexOf("random(")&&(p=Wn(p)),Ht(p+"")||p==="auto"||(p+=ue.units[y]||Ht(Le(t,y))||""),(p+"").charAt(1)==="="&&(p=Le(t,y))):p=Le(t,y),T=parseFloat(p),D=d==="string"&&v.charAt(1)==="="&&v.substr(0,2),D&&(v=v.substr(2)),b=parseFloat(v),y in xe&&(y==="autoAlpha"&&(T===1&&Le(t,"visibility")==="hidden"&&b&&(T=0),$.push("visibility",0,l.visibility),We(this,l,"visibility",T?"inherit":"hidden",b?"inherit":"hidden",!b)),y!=="scale"&&y!=="transform"&&(y=xe[y],~y.indexOf(",")&&(y=y.split(",")[0]))),z=y in De,z){if(this.styles.save(y),B||(I=t._gsap,I.renderTransform&&!e.parseTransform||$n(t,e.parseTransform),O=e.smoothOrigin!==!1&&I.smooth,B=this._pt=new te(this._pt,l,Et,0,1,I.renderTransform,I,0,-1),B.dep=1),y==="scale")this._pt=new te(this._pt,I,"scaleY",I.scaleY,(D?vn(I.scaleY,D+b):b)-I.scaleY||0,ni),this._pt.u=0,a.push("scaleY",y),y+="X";else if(y==="transformOrigin"){$.push(ee,0,l[ee]),v=Ha(v),I.svg?si(t,v,0,O,0,this):(F=parseFloat(v.split(" ")[2])||0,F!==I.zOrigin&&We(this,I,"zOrigin",I.zOrigin,F),We(this,l,y,wr(p),wr(v)));continue}else if(y==="svgOrigin"){si(t,v,1,O,0,this);continue}else if(y in fo){Za(this,I,y,T,D?vn(T,D+v):v);continue}else if(y==="smoothOrigin"){We(this,I,"smooth",I.smooth,v);continue}else if(y==="force3D"){I[y]=v;continue}else if(y==="transform"){Ja(this,v,t);continue}}else y in l||(y=xn(y)||y);if(z||(b||b===0)&&(T||T===0)&&!Da.test(v)&&y in l)R=(p+"").substr((T+"").length),b||(b=0),F=Ht(v)||(y in ue.units?ue.units[y]:R),R!==F&&(T=$e(t,y,p,F)),this._pt=new te(this._pt,z?I:l,y,T,(D?vn(T,D+b):b)-T,!z&&(F==="px"||y==="zIndex")&&e.autoRound!==!1?Ba:ni),this._pt.u=F||0,R!==F&&F!=="%"&&(this._pt.b=p,this._pt.r=Ia);else if(y in l)Ga.call(this,t,y,p,D?D+v:v);else if(y in t)this.add(t,y,p||t[y],D?D+v:v,r,i);else if(y!=="parseTransform"){ci(y,v);continue}z||(y in l?$.push(y,0,l[y]):$.push(y,1,p||t[y])),a.push(y)}}X&&eo(this)},render:function(t,e){if(e.tween._time||!wi())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Le,aliases:xe,getSetter:function(t,e,n){var r=xe[e];return r&&r.indexOf(",")<0&&(e=r),e in De&&e!==ee&&(t._gsap.x||Le(t,"x"))?n&&as===n?e==="scale"?Na:za:(as=n||{})&&(e==="scale"?Wa:Ya):t.style&&!ui(t.style[e])?Ua:~e.indexOf("-")?ja:gi(t,e)},core:{_removeProperty:un,_getMatrix:Ai}};ne.utils.checkPrefix=xn;ne.core.getStyleSaver=oo;(function(m,t,e,n){var r=Jt(m+","+t+","+e,function(i){De[i]=1});Jt(t,function(i){ue.units[i]="deg",fo[i]=1}),xe[r[13]]=m+","+t,Jt(n,function(i){var a=i.split(":");xe[a[1]]=r[a[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");Jt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(m){ue.units[m]="px"});ne.registerPlugin(po);var oi=ne.registerPlugin(po)||ne;oi.core.Tween;var _o={exports:{}};(function(m,t){(function(n,r){m.exports=r()})(jo,()=>(()=>{var e=[,(a,l,c)=>{c.r(l),c.d(l,{default:()=>v});var p=(()=>{var b=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(T={}){var d=T,C,y;d.ready=new Promise((o,s)=>{C=o,y=s});function R(){function o(L){const M=h;f=s=0,h=new Map,M.forEach(k=>{try{k(L)}catch(S){console.error(S)}}),this.xa(),w&&w.Ta()}let s=0,f=0,h=new Map,w=null,x=null;this.requestAnimationFrame=function(L){s||(s=requestAnimationFrame(o.bind(this)));const M=++f;return h.set(M,L),M},this.cancelAnimationFrame=function(L){h.delete(L),s&&h.size==0&&(cancelAnimationFrame(s),s=0)},this.Ra=function(L){x&&(document.body.remove(x),x=null),L||(x=document.createElement("div"),x.style.backgroundColor="black",x.style.position="fixed",x.style.right=0,x.style.top=0,x.style.color="white",x.style.padding="4px",x.innerHTML="RIVE FPS",L=function(M){x.innerHTML="RIVE FPS "+M.toFixed(1)},document.body.appendChild(x)),w=new function(){let M=0,k=0;this.Ta=function(){var S=performance.now();k?(++M,S-=k,1e3<S&&(L(1e3*M/S),M=k=0)):(k=S,M=0)}}},this.Oa=function(){x&&(document.body.remove(x),x=null),w=null},this.xa=function(){}}function F(o){console.assert(!0);const s=new Map;let f=-1/0;this.push=function(h){return h=h+((1<<o)-1)>>o,s.has(h)&&clearTimeout(s.get(h)),s.set(h,setTimeout(function(){s.delete(h),s.length==0?f=-1/0:h==f&&(f=Math.max(...s.keys()),console.assert(f<h))},1e3)),f=Math.max(h,f),f<<o}}const D=d.onRuntimeInitialized;d.onRuntimeInitialized=function(){D&&D();let o=d.decodeAudio;d.decodeAudio=function(h,w){h=o(h),w(h)};let s=d.decodeFont;d.decodeFont=function(h,w){h=s(h),w(h)};const f=d.FileAssetLoader;d.ptrToAsset=h=>{let w=d.ptrToFileAsset(h);return w.isImage?d.ptrToImageAsset(h):w.isFont?d.ptrToFontAsset(h):w.isAudio?d.ptrToAudioAsset(h):w},d.CustomFileAssetLoader=f.extend("CustomFileAssetLoader",{__construct:function({loadContents:h}){this.__parent.__construct.call(this),this.Ha=h},loadContents:function(h,w){return h=d.ptrToAsset(h),this.Ha(h,w)}}),d.CDNFileAssetLoader=f.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(h){let w=d.ptrToAsset(h);return h=w.cdnUuid,h===""?!1:(function(x,L){var M=new XMLHttpRequest;M.responseType="arraybuffer",M.onreadystatechange=function(){M.readyState==4&&M.status==200&&L(M)},M.open("GET",x,!0),M.send(null)}(w.cdnBaseUrl+"/"+h,x=>{w.decode(new Uint8Array(x.response))}),!0)}}),d.FallbackFileAssetLoader=f.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.wa=[]},addLoader:function(h){this.wa.push(h)},loadContents:function(h,w){for(let x of this.wa)if(x.loadContents(h,w))return!0;return!1}})};const z="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),B=new function(){function o(){if(!s){let mt=function(dt,Q,Ct){if(Q=W.createShader(Q),W.shaderSource(Q,Ct),W.compileShader(Q),Ct=W.getShaderInfoLog(Q),0<(Ct||"").length)throw Ct;W.attachShader(dt,Q)};var A=document.createElement("canvas"),V={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let W;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(W=A.getContext("webgl",V),f=1,!W)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(W=A.getContext("webgl2",V))f=2;else if(W=A.getContext("webgl",V))f=1;else return console.log("No WebGL support. Image mesh will not be drawn."),!1;if(W=new Proxy(W,{get(dt,Q){if(dt.isContextLost()){if(k||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",Q),k=!0),typeof dt[Q]=="function")return function(){}}else return typeof dt[Q]=="function"?function(...Ct){return dt[Q].apply(dt,Ct)}:dt[Q]},set(dt,Q,Ct){if(dt.isContextLost())k||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+Q),k=!0);else return dt[Q]=Ct,!0}}),h=Math.min(W.getParameter(W.MAX_RENDERBUFFER_SIZE),W.getParameter(W.MAX_TEXTURE_SIZE)),A=W.createProgram(),mt(A,W.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);
                }`),mt(A,W.FRAGMENT_SHADER,`precision highp float;
                uniform sampler2D image;
                varying vec2 st;
                void main() {
                    gl_FragColor = texture2D(image, st);
                }`),W.bindAttribLocation(A,0,"vertex"),W.bindAttribLocation(A,1,"uv"),W.linkProgram(A),V=W.getProgramInfoLog(A),0<(V||"").trim().length)throw V;w=W.getUniformLocation(A,"mat"),x=W.getUniformLocation(A,"translate"),W.useProgram(A),W.bindBuffer(W.ARRAY_BUFFER,W.createBuffer()),W.enableVertexAttribArray(0),W.enableVertexAttribArray(1),W.bindBuffer(W.ELEMENT_ARRAY_BUFFER,W.createBuffer()),W.uniform1i(W.getUniformLocation(A,"image"),0),W.pixelStorei(W.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),s=W}return!0}let s=null,f=0,h=0,w=null,x=null,L=0,M=0,k=!1;o(),this.eb=function(){return o(),h},this.Ma=function(A){s.deleteTexture&&s.deleteTexture(A)},this.La=function(A){if(!o())return null;const V=s.createTexture();return V?(s.bindTexture(s.TEXTURE_2D,V),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,A),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.LINEAR),f==2?(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.LINEAR_MIPMAP_LINEAR),s.generateMipmap(s.TEXTURE_2D)):s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.LINEAR),V):null};const S=new F(8),G=new F(8),q=new F(10),tt=new F(10);this.Qa=function(A,V,W,mt,dt){if(o()){var Q=S.push(A),Ct=G.push(V);if(s.canvas){(s.canvas.width!=Q||s.canvas.height!=Ct)&&(s.canvas.width=Q,s.canvas.height=Ct),s.viewport(0,Ct-V,A,V),s.disable(s.SCISSOR_TEST),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.enable(s.SCISSOR_TEST),W.sort((lt,be)=>be.Ba-lt.Ba),Q=q.push(mt),L!=Q&&(s.bufferData(s.ARRAY_BUFFER,8*Q,s.DYNAMIC_DRAW),L=Q),Q=0;for(var Xt of W)s.bufferSubData(s.ARRAY_BUFFER,Q,Xt.ia),Q+=4*Xt.ia.length;console.assert(Q==4*mt);for(var ye of W)s.bufferSubData(s.ARRAY_BUFFER,Q,ye.Ea),Q+=4*ye.Ea.length;console.assert(Q==8*mt),Q=tt.push(dt),M!=Q&&(s.bufferData(s.ELEMENT_ARRAY_BUFFER,2*Q,s.DYNAMIC_DRAW),M=Q),Xt=0;for(var qe of W)s.bufferSubData(s.ELEMENT_ARRAY_BUFFER,Xt,qe.indices),Xt+=2*qe.indices.length;console.assert(Xt==2*dt),qe=0,ye=!0,Q=Xt=0;for(const lt of W){lt.image.da!=qe&&(s.bindTexture(s.TEXTURE_2D,lt.image.ca||null),qe=lt.image.da),lt.hb?(s.scissor(lt.na,Ct-lt.oa-lt.va,lt.sb,lt.va),ye=!0):ye&&(s.scissor(0,Ct-V,A,V),ye=!1),W=2/A;const be=-2/V;s.uniform4f(w,lt.N[0]*W*lt.X,lt.N[1]*be*lt.Y,lt.N[2]*W*lt.X,lt.N[3]*be*lt.Y),s.uniform2f(x,lt.N[4]*W*lt.X+W*(lt.na-lt.fb*lt.X)-1,lt.N[5]*be*lt.Y+be*(lt.oa-lt.gb*lt.Y)+1),s.vertexAttribPointer(0,2,s.FLOAT,!1,0,Q),s.vertexAttribPointer(1,2,s.FLOAT,!1,0,Q+4*mt),s.drawElements(s.TRIANGLES,lt.indices.length,s.UNSIGNED_SHORT,Xt),Q+=4*lt.ia.length,Xt+=2*lt.indices.length}console.assert(Q==4*mt),console.assert(Xt==2*dt)}}},this.canvas=function(){return o()&&s.canvas}},I=d.onRuntimeInitialized;d.onRuntimeInitialized=function(){function o(j){switch(j){case S.srcOver:return"source-over";case S.screen:return"screen";case S.overlay:return"overlay";case S.darken:return"darken";case S.lighten:return"lighten";case S.colorDodge:return"color-dodge";case S.colorBurn:return"color-burn";case S.hardLight:return"hard-light";case S.softLight:return"soft-light";case S.difference:return"difference";case S.exclusion:return"exclusion";case S.multiply:return"multiply";case S.hue:return"hue";case S.saturation:return"saturation";case S.color:return"color";case S.luminosity:return"luminosity"}}function s(j){return"rgba("+((16711680&j)>>>16)+","+((65280&j)>>>8)+","+((255&j)>>>0)+","+((4278190080&j)>>>24)/255+")"}function f(){0<Ct.length&&(B.Qa(Q.drawWidth(),Q.drawHeight(),Ct,Xt,ye),Ct=[],ye=Xt=0,Q.reset(512,512));for(const j of dt){for(const K of j.u)K();j.u=[]}dt.clear()}I&&I();var h=d.RenderPaintStyle;const w=d.RenderPath,x=d.RenderPaint,L=d.Renderer,M=d.StrokeCap,k=d.StrokeJoin,S=d.BlendMode,G=h.fill,q=h.stroke,tt=d.FillRule.evenOdd;let A=1;var V=d.RenderImage.extend("CanvasRenderImage",{__construct:function({R:j,W:K}={}){this.__parent.__construct.call(this),this.da=A,A=A+1&2147483647||1,this.R=j,this.W=K},__destruct:function(){this.ca&&(B.Ma(this.ca),URL.revokeObjectURL(this.la)),this.__parent.__destruct.call(this)},decode:function(j){var K=this;K.W&&K.W(K);var ft=new Image;K.la=URL.createObjectURL(new Blob([j],{type:"image/png"})),ft.onload=function(){K.Ga=ft,K.ca=B.La(ft),K.size(ft.width,ft.height),K.R&&K.R(K)},ft.src=K.la}}),W=w.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.F=new Path2D},rewind:function(){this.F=new Path2D},addPath:function(j,K,ft,ct,rt,pt,_t){var yt=this.F,fe=yt.addPath;j=j.F;const Bt=new DOMMatrix;Bt.a=K,Bt.b=ft,Bt.c=ct,Bt.d=rt,Bt.e=pt,Bt.f=_t,fe.call(yt,j,Bt)},fillRule:function(j){this.ka=j},moveTo:function(j,K){this.F.moveTo(j,K)},lineTo:function(j,K){this.F.lineTo(j,K)},cubicTo:function(j,K,ft,ct,rt,pt){this.F.bezierCurveTo(j,K,ft,ct,rt,pt)},close:function(){this.F.closePath()}}),mt=x.extend("CanvasRenderPaint",{color:function(j){this.ma=s(j)},thickness:function(j){this.Ja=j},join:function(j){switch(j){case k.miter:this.ba="miter";break;case k.round:this.ba="round";break;case k.bevel:this.ba="bevel"}},cap:function(j){switch(j){case M.butt:this.aa="butt";break;case M.round:this.aa="round";break;case M.square:this.aa="square"}},style:function(j){this.Ia=j},blendMode:function(j){this.Fa=o(j)},clearGradient:function(){this.P=null},linearGradient:function(j,K,ft,ct){this.P={Ca:j,Da:K,qa:ft,ra:ct,ga:[]}},radialGradient:function(j,K,ft,ct){this.P={Ca:j,Da:K,qa:ft,ra:ct,ga:[],bb:!0}},addStop:function(j,K){this.P.ga.push({color:j,stop:K})},completeGradient:function(){},draw:function(j,K,ft){let ct=this.Ia;var rt=this.ma,pt=this.P;if(j.globalCompositeOperation=this.Fa,pt!=null){rt=pt.Ca;var _t=pt.Da;const fe=pt.qa;var yt=pt.ra;const Bt=pt.ga;pt.bb?(pt=fe-rt,yt-=_t,rt=j.createRadialGradient(rt,_t,0,rt,_t,Math.sqrt(pt*pt+yt*yt))):rt=j.createLinearGradient(rt,_t,fe,yt);for(let we=0,Wt=Bt.length;we<Wt;we++)_t=Bt[we],rt.addColorStop(_t.stop,s(_t.color));this.ma=rt,this.P=null}switch(ct){case q:j.strokeStyle=rt,j.lineWidth=this.Ja,j.lineCap=this.aa,j.lineJoin=this.ba,j.stroke(K);break;case G:j.fillStyle=rt,j.fill(K,ft)}}});const dt=new Set;let Q=null,Ct=[],Xt=0,ye=0;var qe=d.CanvasRenderer=L.extend("Renderer",{__construct:function(j){this.__parent.__construct.call(this),this.D=[1,0,0,1,0,0],this.o=j.getContext("2d"),this.ja=j,this.u=[]},save:function(){this.D.push(...this.D.slice(this.D.length-6)),this.u.push(this.o.save.bind(this.o))},restore:function(){const j=this.D.length-6;if(6>j)throw"restore() called without matching save().";this.D.splice(j),this.u.push(this.o.restore.bind(this.o))},transform:function(j,K,ft,ct,rt,pt){const _t=this.D,yt=_t.length-6;_t.splice(yt,6,_t[yt]*j+_t[yt+2]*K,_t[yt+1]*j+_t[yt+3]*K,_t[yt]*ft+_t[yt+2]*ct,_t[yt+1]*ft+_t[yt+3]*ct,_t[yt]*rt+_t[yt+2]*pt+_t[yt+4],_t[yt+1]*rt+_t[yt+3]*pt+_t[yt+5]),this.u.push(this.o.transform.bind(this.o,j,K,ft,ct,rt,pt))},rotate:function(j){const K=Math.sin(j);j=Math.cos(j),this.transform(j,K,-K,j,0,0)},_drawPath:function(j,K){this.u.push(K.draw.bind(K,this.o,j.F,j.ka===tt?"evenodd":"nonzero"))},_drawRiveImage:function(j,K,ft){var ct=j.Ga;if(ct){var rt=this.o,pt=o(K);this.u.push(function(){rt.globalCompositeOperation=pt,rt.globalAlpha=ft,rt.drawImage(ct,0,0),rt.globalAlpha=1})}},_getMatrix:function(j){const K=this.D,ft=K.length-6;for(let ct=0;6>ct;++ct)j[ct]=K[ft+ct]},_drawImageMesh:function(j,K,ft,ct,rt,pt,_t,yt,fe,Bt){var we=this.o.canvas.width,Wt=this.o.canvas.height;const Hi=fe-_t,qi=Bt-yt;_t=Math.max(_t,0),yt=Math.max(yt,0),fe=Math.min(fe,we),Bt=Math.min(Bt,Wt);const On=fe-_t,Ln=Bt-yt;if(console.assert(On<=Math.min(Hi,we)),console.assert(Ln<=Math.min(qi,Wt)),!(0>=On||0>=Ln)){fe=On<Hi||Ln<qi,we=Bt=1;var Qe=Math.ceil(On*Bt),Ke=Math.ceil(Ln*we);Wt=B.eb(),Qe>Wt&&(Bt*=Wt/Qe,Qe=Wt),Ke>Wt&&(we*=Wt/Ke,Ke=Wt),Q||(Q=new d.DynamicRectanizer(Wt),Q.reset(512,512)),Wt=Q.addRect(Qe,Ke),0>Wt&&(f(),dt.add(this),Wt=Q.addRect(Qe,Ke),console.assert(0<=Wt));var Qi=Wt&65535,Ki=Wt>>16;Ct.push({N:this.D.slice(this.D.length-6),image:j,na:Qi,oa:Ki,fb:_t,gb:yt,sb:Qe,va:Ke,X:Bt,Y:we,ia:new Float32Array(ct),Ea:new Float32Array(rt),indices:new Uint16Array(pt),hb:fe,Ba:j.da<<1|(fe?1:0)}),Xt+=ct.length,ye+=pt.length;var dn=this.o,Uo=o(K);this.u.push(function(){dn.save(),dn.resetTransform(),dn.globalCompositeOperation=Uo,dn.globalAlpha=ft;const Zi=B.canvas();Zi&&dn.drawImage(Zi,Qi,Ki,Qe,Ke,_t,yt,On,Ln),dn.restore()})}},_clipPath:function(j){this.u.push(this.o.clip.bind(this.o,j.F,j.ka===tt?"evenodd":"nonzero"))},clear:function(){dt.add(this),this.u.push(this.o.clearRect.bind(this.o,0,0,this.ja.width,this.ja.height))},flush:function(){},translate:function(j,K){this.transform(1,0,0,1,j,K)}});d.makeRenderer=function(j){const K=new qe(j),ft=K.o;return new Proxy(K,{get(ct,rt){if(typeof ct[rt]=="function")return function(...pt){return ct[rt].apply(ct,pt)};if(typeof ft[rt]=="function"){if(-1<z.indexOf(rt))throw Error("RiveException: Method call to '"+rt+"()' is not allowed, as the renderer cannot immediately pass through the return                 values of any canvas 2d context methods.");return function(...pt){K.u.push(ft[rt].bind(ft,...pt))}}return ct[rt]},set(ct,rt,pt){if(rt in ft)return K.u.push(()=>{ft[rt]=pt}),!0}})},d.decodeImage=function(j,K){new V({R:K}).decode(j)},d.renderFactory={makeRenderPaint:function(){return new mt},makeRenderPath:function(){return new W},makeRenderImage:function(){let j=be;return new V({W:()=>{j.total++},R:()=>{if(j.loaded++,j.loaded===j.total){const K=j.ready;K&&(K(),j.ready=null)}}})}};let lt=d.load,be=null;d.load=function(j,K,ft=!0){const ct=new d.FallbackFileAssetLoader;return K!==void 0&&ct.addLoader(K),ft&&(K=new d.CDNFileAssetLoader,ct.addLoader(K)),new Promise(function(rt){let pt=null;be={total:0,loaded:0,ready:function(){rt(pt)}},pt=lt(j,ct),be.total==0&&rt(pt)})},h=new R,d.requestAnimationFrame=h.requestAnimationFrame.bind(h),d.cancelAnimationFrame=h.cancelAnimationFrame.bind(h),d.enableFPSCounter=h.Ra.bind(h),d.disableFPSCounter=h.Oa,h.xa=f,d.resolveAnimationFrame=f,d.cleanup=function(){Q&&Q.delete()}};var O=Object.assign({},d),X="./this.program",$=typeof window=="object",N=typeof importScripts=="function",H="",it,et;($||N)&&(N?H=self.location.href:typeof document<"u"&&document.currentScript&&(H=document.currentScript.src),b&&(H=b),H.indexOf("blob:")!==0?H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1):H="",N&&(et=o=>{var s=new XMLHttpRequest;return s.open("GET",o,!1),s.responseType="arraybuffer",s.send(null),new Uint8Array(s.response)}),it=(o,s,f)=>{var h=new XMLHttpRequest;h.open("GET",o,!0),h.responseType="arraybuffer",h.onload=()=>{h.status==200||h.status==0&&h.response?s(h.response):f()},h.onerror=f,h.send(null)});var ht=d.print||console.log.bind(console),bt=d.printErr||console.error.bind(console);Object.assign(d,O),O=null,d.thisProgram&&(X=d.thisProgram);var wt;d.wasmBinary&&(wt=d.wasmBinary),d.noExitRuntime,typeof WebAssembly!="object"&&At("no native wasm support detected");var gt,st,kt=!1,Ut,ot,It,St,vt,at,g,u;function _(){var o=gt.buffer;d.HEAP8=Ut=new Int8Array(o),d.HEAP16=It=new Int16Array(o),d.HEAP32=vt=new Int32Array(o),d.HEAPU8=ot=new Uint8Array(o),d.HEAPU16=St=new Uint16Array(o),d.HEAPU32=at=new Uint32Array(o),d.HEAPF32=g=new Float32Array(o),d.HEAPF64=u=new Float64Array(o)}var P,E=[],U=[],Y=[];function Z(){var o=d.preRun.shift();E.unshift(o)}var Tt=0,J=null;function At(o){throw d.onAbort&&d.onAbort(o),o="Aborted("+o+")",bt(o),kt=!0,o=new WebAssembly.RuntimeError(o+". Build with -sASSERTIONS for more info."),y(o),o}function jt(o){return o.startsWith("data:application/octet-stream;base64,")}var zt;if(zt="canvas_advanced.wasm",!jt(zt)){var Nt=zt;zt=d.locateFile?d.locateFile(Nt,H):H+Nt}function ke(o){if(o==zt&&wt)return new Uint8Array(wt);if(et)return et(o);throw"both async and sync fetching of the wasm failed"}function _e(o){if(!wt&&($||N)){if(typeof fetch=="function"&&!o.startsWith("file://"))return fetch(o,{credentials:"same-origin"}).then(s=>{if(!s.ok)throw"failed to load wasm binary file at '"+o+"'";return s.arrayBuffer()}).catch(()=>ke(o));if(it)return new Promise((s,f)=>{it(o,h=>s(new Uint8Array(h)),f)})}return Promise.resolve().then(()=>ke(o))}function Ie(o,s,f){return _e(o).then(h=>WebAssembly.instantiate(h,s)).then(h=>h).then(f,h=>{bt("failed to asynchronously prepare wasm: "+h),At(h)})}function Hn(o,s){var f=zt;return wt||typeof WebAssembly.instantiateStreaming!="function"||jt(f)||f.startsWith("file://")||typeof fetch!="function"?Ie(f,o,s):fetch(f,{credentials:"same-origin"}).then(h=>WebAssembly.instantiateStreaming(h,o).then(s,function(w){return bt("wasm streaming compile failed: "+w),bt("falling back to ArrayBuffer instantiation"),Ie(f,o,s)}))}var fn=o=>{for(;0<o.length;)o.shift()(d)};function Pn(o){if(o===void 0)return"_unknown";o=o.replace(/[^a-zA-Z0-9_]/g,"$");var s=o.charCodeAt(0);return 48<=s&&57>=s?`_${o}`:o}function Be(o,s){return o=Pn(o),{[o]:function(){return s.apply(this,arguments)}}[o]}function Ue(){this.G=[void 0],this.ta=[]}var $t=new Ue,re=void 0;function nt(o){throw new re(o)}var me=o=>(o||nt("Cannot use deleted val. handle = "+o),$t.get(o).value),ve=o=>{switch(o){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return $t.Za({Aa:1,value:o})}};function xi(o){var s=Error,f=Be(o,function(h){this.name=o,this.message=h,h=Error(h).stack,h!==void 0&&(this.stack=this.toString()+`
`+h.replace(/^Error(:[^\n]*)?\n/,""))});return f.prototype=Object.create(s.prototype),f.prototype.constructor=f,f.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},f}var Pi=void 0,Ci=void 0;function Ot(o){for(var s="";ot[o];)s+=Ci[ot[o++]];return s}var Cn=[];function Pr(){for(;Cn.length;){var o=Cn.pop();o.g.M=!1,o.delete()}}var Rn=void 0,Re={};function Cr(o,s){for(s===void 0&&nt("ptr should not be undefined");o.l;)s=o.S(s),o=o.l;return s}var He={};function Ri(o){o=$i(o);var s=Ot(o);return Se(o),s}function Mn(o,s){var f=He[o];return f===void 0&&nt(s+" has unknown type "+Ri(o)),f}function qn(){}var Rr=!1;function Mi(o){--o.count.value,o.count.value===0&&(o.s?o.A.H(o.s):o.j.h.H(o.i))}function Ei(o,s,f){return s===f?o:f.l===void 0?null:(o=Ei(o,s,f.l),o===null?null:f.Pa(o))}var Si={};function mo(o,s){return s=Cr(o,s),Re[s]}var Oi=void 0;function Qn(o){throw new Oi(o)}function Kn(o,s){return s.j&&s.i||Qn("makeClassHandle requires ptr and ptrType"),!!s.A!=!!s.s&&Qn("Both smartPtrType and smartPtr must be specified"),s.count={value:1},cn(Object.create(o,{g:{value:s}}))}function cn(o){return typeof FinalizationRegistry>"u"?(cn=s=>s,o):(Rr=new FinalizationRegistry(s=>{Mi(s.g)}),cn=s=>{var f=s.g;return f.s&&Rr.register(s,{g:f},s),s},qn=s=>{Rr.unregister(s)},cn(o))}var Zn={};function En(o){for(;o.length;){var s=o.pop();o.pop()(s)}}function Sn(o){return this.fromWireType(vt[o>>2])}var hn={},Jn={};function ie(o,s,f){function h(M){M=f(M),M.length!==o.length&&Qn("Mismatched type converter count");for(var k=0;k<o.length;++k)ge(o[k],M[k])}o.forEach(function(M){Jn[M]=s});var w=Array(s.length),x=[],L=0;s.forEach((M,k)=>{He.hasOwnProperty(M)?w[k]=He[M]:(x.push(M),hn.hasOwnProperty(M)||(hn[M]=[]),hn[M].push(()=>{w[k]=He[M],++L,L===x.length&&h(w)}))}),x.length===0&&h(w)}function tr(o){switch(o){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${o}`)}}function vo(o,s,f={}){var h=s.name;if(o||nt(`type "${h}" must have a positive integer typeid pointer`),He.hasOwnProperty(o)){if(f.ab)return;nt(`Cannot register type '${h}' twice`)}He[o]=s,delete Jn[o],hn.hasOwnProperty(o)&&(s=hn[o],delete hn[o],s.forEach(w=>w()))}function ge(o,s,f={}){if(!("argPackAdvance"in s))throw new TypeError("registerType registeredInstance requires argPackAdvance");vo(o,s,f)}function Mr(o){nt(o.g.j.h.name+" instance already deleted")}function je(){}function Er(o,s,f){if(o[s].m===void 0){var h=o[s];o[s]=function(){return o[s].m.hasOwnProperty(arguments.length)||nt(`Function '${f}' called with an invalid number of arguments (${arguments.length}) - expects one of (${o[s].m})!`),o[s].m[arguments.length].apply(this,arguments)},o[s].m=[],o[s].m[h.L]=h}}function Sr(o,s,f){d.hasOwnProperty(o)?((f===void 0||d[o].m!==void 0&&d[o].m[f]!==void 0)&&nt(`Cannot register public name '${o}' twice`),Er(d,o,o),d.hasOwnProperty(f)&&nt(`Cannot register multiple overloads of a function with the same number of arguments (${f})!`),d[o].m[f]=s):(d[o]=s,f!==void 0&&(d[o].tb=f))}function go(o,s,f,h,w,x,L,M){this.name=o,this.constructor=s,this.B=f,this.H=h,this.l=w,this.Ua=x,this.S=L,this.Pa=M,this.ya=[]}function er(o,s,f){for(;s!==f;)s.S||nt(`Expected null or instance of ${f.name}, got an instance of ${s.name}`),o=s.S(o),s=s.l;return o}function yo(o,s){return s===null?(this.ea&&nt(`null is not a valid ${this.name}`),0):(s.g||nt(`Cannot pass "${Lr(s)}" as a ${this.name}`),s.g.i||nt(`Cannot pass deleted object as a pointer of type ${this.name}`),er(s.g.i,s.g.j.h,this.h))}function bo(o,s){if(s===null){if(this.ea&&nt(`null is not a valid ${this.name}`),this.V){var f=this.fa();return o!==null&&o.push(this.H,f),f}return 0}if(s.g||nt(`Cannot pass "${Lr(s)}" as a ${this.name}`),s.g.i||nt(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.U&&s.g.j.U&&nt(`Cannot convert argument of type ${s.g.A?s.g.A.name:s.g.j.name} to parameter type ${this.name}`),f=er(s.g.i,s.g.j.h,this.h),this.V)switch(s.g.s===void 0&&nt("Passing raw pointer to smart pointer is illegal"),this.nb){case 0:s.g.A===this?f=s.g.s:nt(`Cannot convert argument of type ${s.g.A?s.g.A.name:s.g.j.name} to parameter type ${this.name}`);break;case 1:f=s.g.s;break;case 2:if(s.g.A===this)f=s.g.s;else{var h=s.clone();f=this.jb(f,ve(function(){h.delete()})),o!==null&&o.push(this.H,f)}break;default:nt("Unsupporting sharing policy")}return f}function wo(o,s){return s===null?(this.ea&&nt(`null is not a valid ${this.name}`),0):(s.g||nt(`Cannot pass "${Lr(s)}" as a ${this.name}`),s.g.i||nt(`Cannot pass deleted object as a pointer of type ${this.name}`),s.g.j.U&&nt(`Cannot convert argument of type ${s.g.j.name} to parameter type ${this.name}`),er(s.g.i,s.g.j.h,this.h))}function Me(o,s,f,h){this.name=o,this.h=s,this.ea=f,this.U=h,this.V=!1,this.H=this.jb=this.fa=this.za=this.nb=this.ib=void 0,s.l!==void 0?this.toWireType=bo:(this.toWireType=h?yo:wo,this.v=null)}function Li(o,s,f){d.hasOwnProperty(o)||Qn("Replacing nonexistant public symbol"),d[o].m!==void 0&&f!==void 0?d[o].m[f]=s:(d[o]=s,d[o].L=f)}var nr=[],Fi=o=>{var s=nr[o];return s||(o>=nr.length&&(nr.length=o+1),nr[o]=s=P.get(o)),s},To=(o,s)=>{var f=[];return function(){if(f.length=0,Object.assign(f,arguments),o.includes("j")){var h=d["dynCall_"+o];h=f&&f.length?h.apply(null,[s].concat(f)):h.call(null,s)}else h=Fi(s).apply(null,f);return h}};function Gt(o,s){o=Ot(o);var f=o.includes("j")?To(o,s):Fi(s);return typeof f!="function"&&nt(`unknown function pointer with signature ${o}: ${s}`),f}var Di=void 0;function Ee(o,s){function f(x){w[x]||He[x]||(Jn[x]?Jn[x].forEach(f):(h.push(x),w[x]=!0))}var h=[],w={};throw s.forEach(f),new Di(`${o}: `+h.map(Ri).join([", "]))}function rr(o,s,f,h,w){var x=s.length;2>x&&nt("argTypes array size mismatch! Must at least get return value and 'this' types!");var L=s[1]!==null&&f!==null,M=!1;for(f=1;f<s.length;++f)if(s[f]!==null&&s[f].v===void 0){M=!0;break}var k=s[0].name!=="void",S=x-2,G=Array(S),q=[],tt=[];return function(){if(arguments.length!==S&&nt(`function ${o} called with ${arguments.length} arguments, expected ${S} args!`),tt.length=0,q.length=L?2:1,q[0]=w,L){var A=s[1].toWireType(tt,this);q[1]=A}for(var V=0;V<S;++V)G[V]=s[V+2].toWireType(tt,arguments[V]),q.push(G[V]);if(V=h.apply(null,q),M)En(tt);else for(var W=L?1:2;W<s.length;W++){var mt=W===1?A:G[W-2];s[W].v!==null&&s[W].v(mt)}return A=k?s[0].fromWireType(V):void 0,A}}function ir(o,s){for(var f=[],h=0;h<o;h++)f.push(at[s+4*h>>2]);return f}function ki(o,s,f){return o instanceof Object||nt(`${f} with invalid "this": ${o}`),o instanceof s.h.constructor||nt(`${f} incompatible with "this" of type ${o.constructor.name}`),o.g.i||nt(`cannot call emscripten binding method ${f} on deleted object`),er(o.g.i,o.g.j.h,s.h)}function Or(o){o>=$t.ua&&--$t.get(o).Aa===0&&$t.$a(o)}function Ao(o,s,f){switch(s){case 0:return function(h){return this.fromWireType((f?Ut:ot)[h])};case 1:return function(h){return this.fromWireType((f?It:St)[h>>1])};case 2:return function(h){return this.fromWireType((f?vt:at)[h>>2])};default:throw new TypeError("Unknown integer type: "+o)}}function Lr(o){if(o===null)return"null";var s=typeof o;return s==="object"||s==="array"||s==="function"?o.toString():""+o}function xo(o,s){switch(s){case 2:return function(f){return this.fromWireType(g[f>>2])};case 3:return function(f){return this.fromWireType(u[f>>3])};default:throw new TypeError("Unknown float type: "+o)}}function Po(o,s,f){switch(s){case 0:return f?function(h){return Ut[h]}:function(h){return ot[h]};case 1:return f?function(h){return It[h>>1]}:function(h){return St[h>>1]};case 2:return f?function(h){return vt[h>>2]}:function(h){return at[h>>2]};default:throw new TypeError("Unknown integer type: "+o)}}var Ii=(o,s,f,h)=>{if(0<h){h=f+h-1;for(var w=0;w<o.length;++w){var x=o.charCodeAt(w);if(55296<=x&&57343>=x){var L=o.charCodeAt(++w);x=65536+((x&1023)<<10)|L&1023}if(127>=x){if(f>=h)break;s[f++]=x}else{if(2047>=x){if(f+1>=h)break;s[f++]=192|x>>6}else{if(65535>=x){if(f+2>=h)break;s[f++]=224|x>>12}else{if(f+3>=h)break;s[f++]=240|x>>18,s[f++]=128|x>>12&63}s[f++]=128|x>>6&63}s[f++]=128|x&63}}s[f]=0}},Bi=o=>{for(var s=0,f=0;f<o.length;++f){var h=o.charCodeAt(f);127>=h?s++:2047>=h?s+=2:55296<=h&&57343>=h?(s+=4,++f):s+=3}return s},Ui=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,sr=(o,s,f)=>{var h=s+f;for(f=s;o[f]&&!(f>=h);)++f;if(16<f-s&&o.buffer&&Ui)return Ui.decode(o.subarray(s,f));for(h="";s<f;){var w=o[s++];if(w&128){var x=o[s++]&63;if((w&224)==192)h+=String.fromCharCode((w&31)<<6|x);else{var L=o[s++]&63;w=(w&240)==224?(w&15)<<12|x<<6|L:(w&7)<<18|x<<12|L<<6|o[s++]&63,65536>w?h+=String.fromCharCode(w):(w-=65536,h+=String.fromCharCode(55296|w>>10,56320|w&1023))}}else h+=String.fromCharCode(w)}return h},ji=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Co=(o,s)=>{for(var f=o>>1,h=f+s/2;!(f>=h)&&St[f];)++f;if(f<<=1,32<f-o&&ji)return ji.decode(ot.subarray(o,f));for(f="",h=0;!(h>=s/2);++h){var w=It[o+2*h>>1];if(w==0)break;f+=String.fromCharCode(w)}return f},Ro=(o,s,f)=>{if(f===void 0&&(f=2147483647),2>f)return 0;f-=2;var h=s;f=f<2*o.length?f/2:o.length;for(var w=0;w<f;++w)It[s>>1]=o.charCodeAt(w),s+=2;return It[s>>1]=0,s-h},Mo=o=>2*o.length,Eo=(o,s)=>{for(var f=0,h="";!(f>=s/4);){var w=vt[o+4*f>>2];if(w==0)break;++f,65536<=w?(w-=65536,h+=String.fromCharCode(55296|w>>10,56320|w&1023)):h+=String.fromCharCode(w)}return h},So=(o,s,f)=>{if(f===void 0&&(f=2147483647),4>f)return 0;var h=s;f=h+f-4;for(var w=0;w<o.length;++w){var x=o.charCodeAt(w);if(55296<=x&&57343>=x){var L=o.charCodeAt(++w);x=65536+((x&1023)<<10)|L&1023}if(vt[s>>2]=x,s+=4,s+4>f)break}return vt[s>>2]=0,s-h},Oo=o=>{for(var s=0,f=0;f<o.length;++f){var h=o.charCodeAt(f);55296<=h&&57343>=h&&++f,s+=4}return s},Lo={};function or(o){var s=Lo[o];return s===void 0?Ot(o):s}var ar=[];function Fo(o){var s=ar.length;return ar.push(o),s}function Do(o,s){for(var f=Array(o),h=0;h<o;++h)f[h]=Mn(at[s+4*h>>2],"parameter "+h);return f}var zi=[],Fr={},Ni=()=>{if(!Dr){var o={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",_:X||"./this.program"},s;for(s in Fr)Fr[s]===void 0?delete o[s]:o[s]=Fr[s];var f=[];for(s in o)f.push(`${s}=${o[s]}`);Dr=f}return Dr},Dr,ko=[null,[],[]],ur=o=>o%4===0&&(o%100!==0||o%400===0),Wi=[31,29,31,30,31,30,31,31,30,31,30,31],Yi=[31,28,31,30,31,30,31,31,30,31,30,31];function Io(o){var s=Array(Bi(o)+1);return Ii(o,s,0,s.length),s}var Bo=(o,s,f,h)=>{function w(A,V,W){for(A=typeof A=="number"?A.toString():A||"";A.length<V;)A=W[0]+A;return A}function x(A,V){return w(A,V,"0")}function L(A,V){function W(dt){return 0>dt?-1:0<dt?1:0}var mt;return(mt=W(A.getFullYear()-V.getFullYear()))===0&&(mt=W(A.getMonth()-V.getMonth()))===0&&(mt=W(A.getDate()-V.getDate())),mt}function M(A){switch(A.getDay()){case 0:return new Date(A.getFullYear()-1,11,29);case 1:return A;case 2:return new Date(A.getFullYear(),0,3);case 3:return new Date(A.getFullYear(),0,2);case 4:return new Date(A.getFullYear(),0,1);case 5:return new Date(A.getFullYear()-1,11,31);case 6:return new Date(A.getFullYear()-1,11,30)}}function k(A){var V=A.J;for(A=new Date(new Date(A.K+1900,0,1).getTime());0<V;){var W=A.getMonth(),mt=(ur(A.getFullYear())?Wi:Yi)[W];if(V>mt-A.getDate())V-=mt-A.getDate()+1,A.setDate(1),11>W?A.setMonth(W+1):(A.setMonth(0),A.setFullYear(A.getFullYear()+1));else{A.setDate(A.getDate()+V);break}}return W=new Date(A.getFullYear()+1,0,4),V=M(new Date(A.getFullYear(),0,4)),W=M(W),0>=L(V,A)?0>=L(W,A)?A.getFullYear()+1:A.getFullYear():A.getFullYear()-1}var S=vt[h+40>>2];h={qb:vt[h>>2],pb:vt[h+4>>2],Z:vt[h+8>>2],ha:vt[h+12>>2],$:vt[h+16>>2],K:vt[h+20>>2],C:vt[h+24>>2],J:vt[h+28>>2],ub:vt[h+32>>2],ob:vt[h+36>>2],rb:S&&S?sr(ot,S):""},f=f?sr(ot,f):"",S={"%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 G in S)f=f.replace(new RegExp(G,"g"),S[G]);var q="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),tt="January February March April May June July August September October November December".split(" ");S={"%a":A=>q[A.C].substring(0,3),"%A":A=>q[A.C],"%b":A=>tt[A.$].substring(0,3),"%B":A=>tt[A.$],"%C":A=>x((A.K+1900)/100|0,2),"%d":A=>x(A.ha,2),"%e":A=>w(A.ha,2," "),"%g":A=>k(A).toString().substring(2),"%G":A=>k(A),"%H":A=>x(A.Z,2),"%I":A=>(A=A.Z,A==0?A=12:12<A&&(A-=12),x(A,2)),"%j":A=>{for(var V=0,W=0;W<=A.$-1;V+=(ur(A.K+1900)?Wi:Yi)[W++]);return x(A.ha+V,3)},"%m":A=>x(A.$+1,2),"%M":A=>x(A.pb,2),"%n":()=>`
`,"%p":A=>0<=A.Z&&12>A.Z?"AM":"PM","%S":A=>x(A.qb,2),"%t":()=>"	","%u":A=>A.C||7,"%U":A=>x(Math.floor((A.J+7-A.C)/7),2),"%V":A=>{var V=Math.floor((A.J+7-(A.C+6)%7)/7);if(2>=(A.C+371-A.J-2)%7&&V++,V)V==53&&(W=(A.C+371-A.J)%7,W==4||W==3&&ur(A.K)||(V=1));else{V=52;var W=(A.C+7-A.J-1)%7;(W==4||W==5&&ur(A.K%400-1))&&V++}return x(V,2)},"%w":A=>A.C,"%W":A=>x(Math.floor((A.J+7-(A.C+6)%7)/7),2),"%y":A=>(A.K+1900).toString().substring(2),"%Y":A=>A.K+1900,"%z":A=>{A=A.ob;var V=0<=A;return A=Math.abs(A)/60,(V?"+":"-")+("0000"+(A/60*100+A%60)).slice(-4)},"%Z":A=>A.rb,"%%":()=>"%"},f=f.replace(/%%/g,"\0\0");for(G in S)f.includes(G)&&(f=f.replace(new RegExp(G,"g"),S[G](h)));return f=f.replace(/\0\0/g,"%"),G=Io(f),G.length>s?0:(Ut.set(G,o),G.length-1)};Object.assign(Ue.prototype,{get(o){return this.G[o]},has(o){return this.G[o]!==void 0},Za(o){var s=this.ta.pop()||this.G.length;return this.G[s]=o,s},$a(o){this.G[o]=void 0,this.ta.push(o)}}),re=d.BindingError=class extends Error{constructor(o){super(o),this.name="BindingError"}},$t.G.push({value:void 0},{value:null},{value:!0},{value:!1}),$t.ua=$t.G.length,d.count_emval_handles=function(){for(var o=0,s=$t.ua;s<$t.G.length;++s)$t.G[s]!==void 0&&++o;return o},Pi=d.PureVirtualError=xi("PureVirtualError");for(var Vi=Array(256),lr=0;256>lr;++lr)Vi[lr]=String.fromCharCode(lr);Ci=Vi,d.getInheritedInstanceCount=function(){return Object.keys(Re).length},d.getLiveInheritedInstances=function(){var o=[],s;for(s in Re)Re.hasOwnProperty(s)&&o.push(Re[s]);return o},d.flushPendingDeletes=Pr,d.setDelayFunction=function(o){Rn=o,Cn.length&&Rn&&Rn(Pr)},Oi=d.InternalError=class extends Error{constructor(o){super(o),this.name="InternalError"}},je.prototype.isAliasOf=function(o){if(!(this instanceof je&&o instanceof je))return!1;var s=this.g.j.h,f=this.g.i,h=o.g.j.h;for(o=o.g.i;s.l;)f=s.S(f),s=s.l;for(;h.l;)o=h.S(o),h=h.l;return s===h&&f===o},je.prototype.clone=function(){if(this.g.i||Mr(this),this.g.O)return this.g.count.value+=1,this;var o=cn,s=Object,f=s.create,h=Object.getPrototypeOf(this),w=this.g;return o=o(f.call(s,h,{g:{value:{count:w.count,M:w.M,O:w.O,i:w.i,j:w.j,s:w.s,A:w.A}}})),o.g.count.value+=1,o.g.M=!1,o},je.prototype.delete=function(){this.g.i||Mr(this),this.g.M&&!this.g.O&&nt("Object already scheduled for deletion"),qn(this),Mi(this.g),this.g.O||(this.g.s=void 0,this.g.i=void 0)},je.prototype.isDeleted=function(){return!this.g.i},je.prototype.deleteLater=function(){return this.g.i||Mr(this),this.g.M&&!this.g.O&&nt("Object already scheduled for deletion"),Cn.push(this),Cn.length===1&&Rn&&Rn(Pr),this.g.M=!0,this},Me.prototype.Va=function(o){return this.za&&(o=this.za(o)),o},Me.prototype.pa=function(o){this.H&&this.H(o)},Me.prototype.argPackAdvance=8,Me.prototype.readValueFromPointer=Sn,Me.prototype.deleteObject=function(o){o!==null&&o.delete()},Me.prototype.fromWireType=function(o){function s(){return this.V?Kn(this.h.B,{j:this.ib,i:f,A:this,s:o}):Kn(this.h.B,{j:this,i:o})}var f=this.Va(o);if(!f)return this.pa(o),null;var h=mo(this.h,f);if(h!==void 0)return h.g.count.value===0?(h.g.i=f,h.g.s=o,h.clone()):(h=h.clone(),this.pa(o),h);if(h=this.h.Ua(f),h=Si[h],!h)return s.call(this);h=this.U?h.Ka:h.pointerType;var w=Ei(f,this.h,h.h);return w===null?s.call(this):this.V?Kn(h.h.B,{j:h,i:w,A:this,s:o}):Kn(h.h.B,{j:h,i:w})},Di=d.UnboundTypeError=xi("UnboundTypeError");var Xi={_embind_create_inheriting_constructor:function(o,s,f){o=Ot(o),s=Mn(s,"wrapper"),f=me(f);var h=[].slice,w=s.h,x=w.B,L=w.l.B,M=w.l.constructor;o=Be(o,function(){w.l.ya.forEach(function(S){if(this[S]===L[S])throw new Pi(`Pure virtual function ${S} must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,"__parent",{value:x}),this.__construct.apply(this,h.call(arguments))}),x.__construct=function(){this===x&&nt("Pass correct 'this' to __construct");var S=M.implement.apply(void 0,[this].concat(h.call(arguments)));qn(S);var G=S.g;S.notifyOnDestruction(),G.O=!0,Object.defineProperties(this,{g:{value:G}}),cn(this),S=G.i,S=Cr(w,S),Re.hasOwnProperty(S)?nt(`Tried to register registered instance: ${S}`):Re[S]=this},x.__destruct=function(){this===x&&nt("Pass correct 'this' to __destruct"),qn(this);var S=this.g.i;S=Cr(w,S),Re.hasOwnProperty(S)?delete Re[S]:nt(`Tried to unregister unregistered instance: ${S}`)},o.prototype=Object.create(x);for(var k in f)o.prototype[k]=f[k];return ve(o)},_embind_finalize_value_object:function(o){var s=Zn[o];delete Zn[o];var f=s.fa,h=s.H,w=s.sa,x=w.map(L=>L.Ya).concat(w.map(L=>L.lb));ie([o],x,L=>{var M={};return w.forEach((k,S)=>{var G=L[S],q=k.Wa,tt=k.Xa,A=L[S+w.length],V=k.kb,W=k.mb;M[k.Sa]={read:mt=>G.fromWireType(q(tt,mt)),write:(mt,dt)=>{var Q=[];V(W,mt,A.toWireType(Q,dt)),En(Q)}}}),[{name:s.name,fromWireType:function(k){var S={},G;for(G in M)S[G]=M[G].read(k);return h(k),S},toWireType:function(k,S){for(var G in M)if(!(G in S))throw new TypeError(`Missing field: "${G}"`);var q=f();for(G in M)M[G].write(q,S[G]);return k!==null&&k.push(h,q),q},argPackAdvance:8,readValueFromPointer:Sn,v:h}]})},_embind_register_bigint:function(){},_embind_register_bool:function(o,s,f,h,w){var x=tr(f);s=Ot(s),ge(o,{name:s,fromWireType:function(L){return!!L},toWireType:function(L,M){return M?h:w},argPackAdvance:8,readValueFromPointer:function(L){if(f===1)var M=Ut;else if(f===2)M=It;else if(f===4)M=vt;else throw new TypeError("Unknown boolean type size: "+s);return this.fromWireType(M[L>>x])},v:null})},_embind_register_class:function(o,s,f,h,w,x,L,M,k,S,G,q,tt){G=Ot(G),x=Gt(w,x),M&&(M=Gt(L,M)),S&&(S=Gt(k,S)),tt=Gt(q,tt);var A=Pn(G);Sr(A,function(){Ee(`Cannot construct ${G} due to unbound types`,[h])}),ie([o,s,f],h?[h]:[],function(V){if(V=V[0],h)var W=V.h,mt=W.B;else mt=je.prototype;V=Be(A,function(){if(Object.getPrototypeOf(this)!==dt)throw new re("Use 'new' to construct "+G);if(Q.I===void 0)throw new re(G+" has no accessible constructor");var Xt=Q.I[arguments.length];if(Xt===void 0)throw new re(`Tried to invoke ctor of ${G} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(Q.I).toString()}) parameters instead!`);return Xt.apply(this,arguments)});var dt=Object.create(mt,{constructor:{value:V}});V.prototype=dt;var Q=new go(G,V,dt,tt,W,x,M,S);Q.l&&(Q.l.T===void 0&&(Q.l.T=[]),Q.l.T.push(Q)),W=new Me(G,Q,!0,!1),mt=new Me(G+"*",Q,!1,!1);var Ct=new Me(G+" const*",Q,!1,!0);return Si[o]={pointerType:mt,Ka:Ct},Li(A,V),[W,mt,Ct]})},_embind_register_class_class_function:function(o,s,f,h,w,x,L){var M=ir(f,h);s=Ot(s),x=Gt(w,x),ie([],[o],function(k){function S(){Ee(`Cannot call ${G} due to unbound types`,M)}k=k[0];var G=`${k.name}.${s}`;s.startsWith("@@")&&(s=Symbol[s.substring(2)]);var q=k.h.constructor;return q[s]===void 0?(S.L=f-1,q[s]=S):(Er(q,s,G),q[s].m[f-1]=S),ie([],M,function(tt){if(tt=rr(G,[tt[0],null].concat(tt.slice(1)),null,x,L),q[s].m===void 0?(tt.L=f-1,q[s]=tt):q[s].m[f-1]=tt,k.h.T)for(const A of k.h.T)A.constructor.hasOwnProperty(s)||(A.constructor[s]=tt);return[]}),[]})},_embind_register_class_class_property:function(o,s,f,h,w,x,L,M){s=Ot(s),x=Gt(w,x),ie([],[o],function(k){k=k[0];var S=`${k.name}.${s}`,G={get(){Ee(`Cannot access ${S} due to unbound types`,[f])},enumerable:!0,configurable:!0};return G.set=M?()=>{Ee(`Cannot access ${S} due to unbound types`,[f])}:()=>{nt(`${S} is a read-only property`)},Object.defineProperty(k.h.constructor,s,G),ie([],[f],function(q){q=q[0];var tt={get(){return q.fromWireType(x(h))},enumerable:!0};return M&&(M=Gt(L,M),tt.set=A=>{var V=[];M(h,q.toWireType(V,A)),En(V)}),Object.defineProperty(k.h.constructor,s,tt),[]}),[]})},_embind_register_class_constructor:function(o,s,f,h,w,x){var L=ir(s,f);w=Gt(h,w),ie([],[o],function(M){M=M[0];var k=`constructor ${M.name}`;if(M.h.I===void 0&&(M.h.I=[]),M.h.I[s-1]!==void 0)throw new re(`Cannot register multiple constructors with identical number of parameters (${s-1}) for class '${M.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return M.h.I[s-1]=()=>{Ee(`Cannot construct ${M.name} due to unbound types`,L)},ie([],L,function(S){return S.splice(1,0,null),M.h.I[s-1]=rr(k,S,null,w,x),[]}),[]})},_embind_register_class_function:function(o,s,f,h,w,x,L,M){var k=ir(f,h);s=Ot(s),x=Gt(w,x),ie([],[o],function(S){function G(){Ee(`Cannot call ${q} due to unbound types`,k)}S=S[0];var q=`${S.name}.${s}`;s.startsWith("@@")&&(s=Symbol[s.substring(2)]),M&&S.h.ya.push(s);var tt=S.h.B,A=tt[s];return A===void 0||A.m===void 0&&A.className!==S.name&&A.L===f-2?(G.L=f-2,G.className=S.name,tt[s]=G):(Er(tt,s,q),tt[s].m[f-2]=G),ie([],k,function(V){return V=rr(q,V,S,x,L),tt[s].m===void 0?(V.L=f-2,tt[s]=V):tt[s].m[f-2]=V,[]}),[]})},_embind_register_class_property:function(o,s,f,h,w,x,L,M,k,S){s=Ot(s),w=Gt(h,w),ie([],[o],function(G){G=G[0];var q=`${G.name}.${s}`,tt={get(){Ee(`Cannot access ${q} due to unbound types`,[f,L])},enumerable:!0,configurable:!0};return tt.set=k?()=>{Ee(`Cannot access ${q} due to unbound types`,[f,L])}:()=>{nt(q+" is a read-only property")},Object.defineProperty(G.h.B,s,tt),ie([],k?[f,L]:[f],function(A){var V=A[0],W={get(){var dt=ki(this,G,q+" getter");return V.fromWireType(w(x,dt))},enumerable:!0};if(k){k=Gt(M,k);var mt=A[1];W.set=function(dt){var Q=ki(this,G,q+" setter"),Ct=[];k(S,Q,mt.toWireType(Ct,dt)),En(Ct)}}return Object.defineProperty(G.h.B,s,W),[]}),[]})},_embind_register_emval:function(o,s){s=Ot(s),ge(o,{name:s,fromWireType:function(f){var h=me(f);return Or(f),h},toWireType:function(f,h){return ve(h)},argPackAdvance:8,readValueFromPointer:Sn,v:null})},_embind_register_enum:function(o,s,f,h){function w(){}f=tr(f),s=Ot(s),w.values={},ge(o,{name:s,constructor:w,fromWireType:function(x){return this.constructor.values[x]},toWireType:function(x,L){return L.value},argPackAdvance:8,readValueFromPointer:Ao(s,f,h),v:null}),Sr(s,w)},_embind_register_enum_value:function(o,s,f){var h=Mn(o,"enum");s=Ot(s),o=h.constructor,h=Object.create(h.constructor.prototype,{value:{value:f},constructor:{value:Be(`${h.name}_${s}`,function(){})}}),o.values[f]=h,o[s]=h},_embind_register_float:function(o,s,f){f=tr(f),s=Ot(s),ge(o,{name:s,fromWireType:function(h){return h},toWireType:function(h,w){return w},argPackAdvance:8,readValueFromPointer:xo(s,f),v:null})},_embind_register_function:function(o,s,f,h,w,x){var L=ir(s,f);o=Ot(o),w=Gt(h,w),Sr(o,function(){Ee(`Cannot call ${o} due to unbound types`,L)},s-1),ie([],L,function(M){return Li(o,rr(o,[M[0],null].concat(M.slice(1)),null,w,x),s-1),[]})},_embind_register_integer:function(o,s,f,h,w){s=Ot(s),w===-1&&(w=4294967295),w=tr(f);var x=M=>M;if(h===0){var L=32-8*f;x=M=>M<<L>>>L}f=s.includes("unsigned")?function(M,k){return k>>>0}:function(M,k){return k},ge(o,{name:s,fromWireType:x,toWireType:f,argPackAdvance:8,readValueFromPointer:Po(s,w,h!==0),v:null})},_embind_register_memory_view:function(o,s,f){function h(x){x>>=2;var L=at;return new w(L.buffer,L[x+1],L[x])}var w=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][s];f=Ot(f),ge(o,{name:f,fromWireType:h,argPackAdvance:8,readValueFromPointer:h},{ab:!0})},_embind_register_std_string:function(o,s){s=Ot(s);var f=s==="std::string";ge(o,{name:s,fromWireType:function(h){var w=at[h>>2],x=h+4;if(f)for(var L=x,M=0;M<=w;++M){var k=x+M;if(M==w||ot[k]==0){if(L=L?sr(ot,L,k-L):"",S===void 0)var S=L;else S+="\0",S+=L;L=k+1}}else{for(S=Array(w),M=0;M<w;++M)S[M]=String.fromCharCode(ot[x+M]);S=S.join("")}return Se(h),S},toWireType:function(h,w){w instanceof ArrayBuffer&&(w=new Uint8Array(w));var x=typeof w=="string";x||w instanceof Uint8Array||w instanceof Uint8ClampedArray||w instanceof Int8Array||nt("Cannot pass non-string to std::string");var L=f&&x?Bi(w):w.length,M=kr(4+L+1),k=M+4;if(at[M>>2]=L,f&&x)Ii(w,ot,k,L+1);else if(x)for(x=0;x<L;++x){var S=w.charCodeAt(x);255<S&&(Se(k),nt("String has UTF-16 code units that do not fit in 8 bits")),ot[k+x]=S}else for(x=0;x<L;++x)ot[k+x]=w[x];return h!==null&&h.push(Se,M),M},argPackAdvance:8,readValueFromPointer:Sn,v:function(h){Se(h)}})},_embind_register_std_wstring:function(o,s,f){if(f=Ot(f),s===2)var h=Co,w=Ro,x=Mo,L=()=>St,M=1;else s===4&&(h=Eo,w=So,x=Oo,L=()=>at,M=2);ge(o,{name:f,fromWireType:function(k){for(var S=at[k>>2],G=L(),q,tt=k+4,A=0;A<=S;++A){var V=k+4+A*s;(A==S||G[V>>M]==0)&&(tt=h(tt,V-tt),q===void 0?q=tt:(q+="\0",q+=tt),tt=V+s)}return Se(k),q},toWireType:function(k,S){typeof S!="string"&&nt(`Cannot pass non-string to C++ string type ${f}`);var G=x(S),q=kr(4+G+s);return at[q>>2]=G>>M,w(S,q+4,G+s),k!==null&&k.push(Se,q),q},argPackAdvance:8,readValueFromPointer:Sn,v:function(k){Se(k)}})},_embind_register_value_object:function(o,s,f,h,w,x){Zn[o]={name:Ot(s),fa:Gt(f,h),H:Gt(w,x),sa:[]}},_embind_register_value_object_field:function(o,s,f,h,w,x,L,M,k,S){Zn[o].sa.push({Sa:Ot(s),Ya:f,Wa:Gt(h,w),Xa:x,lb:L,kb:Gt(M,k),mb:S})},_embind_register_void:function(o,s){s=Ot(s),ge(o,{cb:!0,name:s,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(o,s,f){o=me(o),s=Mn(s,"emval::as");var h=[],w=ve(h);return at[f>>2]=w,s.toWireType(h,o)},_emval_call_method:function(o,s,f,h,w){o=ar[o],s=me(s),f=or(f);var x=[];return at[h>>2]=ve(x),o(s,f,x,w)},_emval_call_void_method:function(o,s,f,h){o=ar[o],s=me(s),f=or(f),o(s,f,null,h)},_emval_decref:Or,_emval_get_method_caller:function(o,s){var f=Do(o,s),h=f[0];s=h.name+"_$"+f.slice(1).map(function(L){return L.name}).join("_")+"$";var w=zi[s];if(w!==void 0)return w;var x=Array(o-1);return w=Fo((L,M,k,S)=>{for(var G=0,q=0;q<o-1;++q)x[q]=f[q+1].readValueFromPointer(S+G),G+=f[q+1].argPackAdvance;for(L=L[M].apply(L,x),q=0;q<o-1;++q)f[q+1].Na&&f[q+1].Na(x[q]);if(!h.cb)return h.toWireType(k,L)}),zi[s]=w},_emval_get_module_property:function(o){return o=or(o),ve(d[o])},_emval_get_property:function(o,s){return o=me(o),s=me(s),ve(o[s])},_emval_incref:function(o){4<o&&($t.get(o).Aa+=1)},_emval_new_cstring:function(o){return ve(or(o))},_emval_new_object:function(){return ve({})},_emval_run_destructors:function(o){var s=me(o);En(s),Or(o)},_emval_set_property:function(o,s,f){o=me(o),s=me(s),f=me(f),o[s]=f},_emval_take_value:function(o,s){return o=Mn(o,"_emval_take_value"),o=o.readValueFromPointer(s),ve(o)},abort:()=>{At("")},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(o,s,f)=>ot.copyWithin(o,s,s+f),emscripten_resize_heap:o=>{var s=ot.length;if(o>>>=0,2147483648<o)return!1;for(var f=1;4>=f;f*=2){var h=s*(1+.2/f);h=Math.min(h,o+100663296);var w=Math;h=Math.max(o,h);t:{w=w.min.call(w,2147483648,h+(65536-h%65536)%65536)-gt.buffer.byteLength+65535>>>16;try{gt.grow(w),_();var x=1;break t}catch{}x=void 0}if(x)return!0}return!1},environ_get:(o,s)=>{var f=0;return Ni().forEach(function(h,w){var x=s+f;for(w=at[o+4*w>>2]=x,x=0;x<h.length;++x)Ut[w++>>0]=h.charCodeAt(x);Ut[w>>0]=0,f+=h.length+1}),0},environ_sizes_get:(o,s)=>{var f=Ni();at[o>>2]=f.length;var h=0;return f.forEach(function(w){h+=w.length+1}),at[s>>2]=h,0},fd_close:()=>52,fd_seek:function(){return 70},fd_write:(o,s,f,h)=>{for(var w=0,x=0;x<f;x++){var L=at[s>>2],M=at[s+4>>2];s+=8;for(var k=0;k<M;k++){var S=ot[L+k],G=ko[o];S===0||S===10?((o===1?ht:bt)(sr(G,0)),G.length=0):G.push(S)}w+=M}return at[h>>2]=w,0},strftime_l:(o,s,f,h)=>Bo(o,s,f,h)};(function(){function o(f){if(st=f=f.exports,gt=st.memory,_(),P=st.__indirect_function_table,U.unshift(st.__wasm_call_ctors),Tt--,d.monitorRunDependencies&&d.monitorRunDependencies(Tt),Tt==0&&J){var h=J;J=null,h()}return f}var s={env:Xi,wasi_snapshot_preview1:Xi};if(Tt++,d.monitorRunDependencies&&d.monitorRunDependencies(Tt),d.instantiateWasm)try{return d.instantiateWasm(s,o)}catch(f){bt("Module.instantiateWasm callback failed with error: "+f),y(f)}return Hn(s,function(f){o(f.instance)}).catch(y),{}})();var Se=o=>(Se=st.free)(o),kr=o=>(kr=st.malloc)(o),$i=o=>($i=st.__getTypeName)(o);d.__embind_initialize_bindings=()=>(d.__embind_initialize_bindings=st._embind_initialize_bindings)(),d.dynCall_jiji=(o,s,f,h,w)=>(d.dynCall_jiji=st.dynCall_jiji)(o,s,f,h,w),d.dynCall_viijii=(o,s,f,h,w,x,L)=>(d.dynCall_viijii=st.dynCall_viijii)(o,s,f,h,w,x,L),d.dynCall_iiiiij=(o,s,f,h,w,x,L)=>(d.dynCall_iiiiij=st.dynCall_iiiiij)(o,s,f,h,w,x,L),d.dynCall_iiiiijj=(o,s,f,h,w,x,L,M,k)=>(d.dynCall_iiiiijj=st.dynCall_iiiiijj)(o,s,f,h,w,x,L,M,k),d.dynCall_iiiiiijj=(o,s,f,h,w,x,L,M,k,S)=>(d.dynCall_iiiiiijj=st.dynCall_iiiiiijj)(o,s,f,h,w,x,L,M,k,S);var fr;J=function o(){fr||Gi(),fr||(J=o)};function Gi(){function o(){if(!fr&&(fr=!0,d.calledRun=!0,!kt)){if(fn(U),C(d),d.onRuntimeInitialized&&d.onRuntimeInitialized(),d.postRun)for(typeof d.postRun=="function"&&(d.postRun=[d.postRun]);d.postRun.length;){var s=d.postRun.shift();Y.unshift(s)}fn(Y)}}if(!(0<Tt)){if(d.preRun)for(typeof d.preRun=="function"&&(d.preRun=[d.preRun]);d.preRun.length;)Z();fn(E),0<Tt||(d.setStatus?(d.setStatus("Running..."),setTimeout(function(){setTimeout(function(){d.setStatus("")},1),o()},1)):o())}}if(d.preInit)for(typeof d.preInit=="function"&&(d.preInit=[d.preInit]);0<d.preInit.length;)d.preInit.pop()();return Gi(),T.ready}})();const v=p},a=>{a.exports=JSON.parse(`{"name":"@rive-app/canvas-lite","version":"2.21.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 <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (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}}`)},(a,l,c)=>{c.r(l),c.d(l,{Animation:()=>p.Animation});var p=c(4)},(a,l,c)=>{c.r(l),c.d(l,{Animation:()=>p});var p=function(){function v(b,T,d,C){this.animation=b,this.artboard=T,this.playing=C,this.loopCount=0,this.scrubTo=null,this.instance=new d.LinearAnimationInstance(b,T)}return Object.defineProperty(v.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"time",{get:function(){return this.instance.time},set:function(b){this.instance.time=b},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),v.prototype.advance=function(b){this.scrubTo===null?this.instance.advance(b):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},v.prototype.apply=function(b){this.instance.apply(b)},v.prototype.cleanup=function(){this.instance.delete()},v}()},(a,l,c)=>{c.r(l),c.d(l,{BLANK_URL:()=>v.BLANK_URL,registerTouchInteractions:()=>p.registerTouchInteractions,sanitizeUrl:()=>v.sanitizeUrl});var p=c(6),v=c(7)},(a,l,c)=>{c.r(l),c.d(l,{registerTouchInteractions:()=>b});var p=void 0,v=function(T,d){var C,y;return["touchstart","touchmove"].indexOf(T.type)>-1&&(!((C=T.touches)===null||C===void 0)&&C.length)?(d||T.preventDefault(),{clientX:T.touches[0].clientX,clientY:T.touches[0].clientY}):T.type==="touchend"&&(!((y=T.changedTouches)===null||y===void 0)&&y.length)?{clientX:T.changedTouches[0].clientX,clientY:T.changedTouches[0].clientY}:{clientX:T.clientX,clientY:T.clientY}},b=function(T){var d=T.canvas,C=T.artboard,y=T.stateMachines,R=y===void 0?[]:y,F=T.renderer,D=T.rive,z=T.fit,B=T.alignment,I=T.isTouchScrollEnabled,O=I===void 0?!1:I;if(!d||!R.length||!F||!D||!C||typeof window>"u")return null;var X=null,$=!1,N=function(it){if($&&it instanceof MouseEvent){it.type=="mouseup"&&($=!1);return}$=O&&it.type==="touchend"&&X==="touchstart",X=it.type;var et=it.currentTarget.getBoundingClientRect(),ht=v(it,O),bt=ht.clientX,wt=ht.clientY;if(!(!bt&&!wt)){var gt=bt-et.left,st=wt-et.top,kt=D.computeAlignment(z,B,{minX:0,minY:0,maxX:et.width,maxY:et.height},C.bounds),Ut=new D.Mat2D;kt.invert(Ut);var ot=new D.Vec2D(gt,st),It=D.mapXY(Ut,ot),St=It.x(),vt=It.y();switch(It.delete(),Ut.delete(),ot.delete(),kt.delete(),it.type){case"mouseout":for(var at=0,g=R;at<g.length;at++){var u=g[at];u.pointerMove(St<0?St-1e4:St+1e4,vt<0?vt-1e4:vt+1e4)}break;case"touchmove":case"mouseover":case"mousemove":{for(var _=0,P=R;_<P.length;_++){var u=P[_];u.pointerMove(St,vt)}break}case"touchstart":case"mousedown":{for(var E=0,U=R;E<U.length;E++){var u=U[E];u.pointerDown(St,vt)}break}case"touchend":case"mouseup":{for(var Y=0,Z=R;Y<Z.length;Y++){var u=Z[Y];u.pointerUp(St,vt)}break}}}},H=N.bind(p);return d.addEventListener("mouseover",H),d.addEventListener("mouseout",H),d.addEventListener("mousemove",H),d.addEventListener("mousedown",H),d.addEventListener("mouseup",H),d.addEventListener("touchmove",H,{passive:O}),d.addEventListener("touchstart",H,{passive:O}),d.addEventListener("touchend",H),function(){d.removeEventListener("mouseover",H),d.removeEventListener("mouseout",H),d.removeEventListener("mousemove",H),d.removeEventListener("mousedown",H),d.removeEventListener("mouseup",H),d.removeEventListener("touchmove",H),d.removeEventListener("touchstart",H),d.removeEventListener("touchend",H)}}},(a,l,c)=>{c.r(l),c.d(l,{BLANK_URL:()=>y,sanitizeUrl:()=>D});var p=/^([^\w]*)(javascript|data|vbscript)/im,v=/&#(\w+)(^\w|;)?/g,b=/&(newline|tab);/gi,T=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,d=/^.+(:|&colon;)/gim,C=[".","/"],y="about:blank";function R(z){return C.indexOf(z[0])>-1}function F(z){var B=z.replace(T,"");return B.replace(v,function(I,O){return String.fromCharCode(O)})}function D(z){if(!z)return y;var B=F(z).replace(b,"").replace(T,"").trim();if(!B)return y;if(R(B))return B;var I=B.match(d);if(!I)return B;var O=I[0];return p.test(O)?y:B}}],n={};function r(a){var l=n[a];if(l!==void 0)return l.exports;var c=n[a]={exports:{}};return e[a](c,c.exports,r),c.exports}r.d=(a,l)=>{for(var c in l)r.o(l,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:l[c]})},r.o=(a,l)=>Object.prototype.hasOwnProperty.call(a,l),r.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var i={};return(()=>{r.r(i),r.d(i,{Alignment:()=>C,EventType:()=>O,Fit:()=>d,Layout:()=>y,LoopType:()=>X,Rive:()=>kt,RiveEventType:()=>z,RiveFile:()=>st,RuntimeLoader:()=>R,StateMachineInput:()=>D,StateMachineInputType:()=>F,Testing:()=>It,decodeAudio:()=>St,decodeFont:()=>at,decodeImage:()=>vt});var a=r(1),l=r(2),c=r(3),p=r(5),v=function(){var g=function(u,_){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,E){P.__proto__=E}||function(P,E){for(var U in E)Object.prototype.hasOwnProperty.call(E,U)&&(P[U]=E[U])},g(u,_)};return function(u,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");g(u,_);function P(){this.constructor=u}u.prototype=_===null?Object.create(_):(P.prototype=_.prototype,new P)}}(),b=function(g,u,_,P){function E(U){return U instanceof _?U:new _(function(Y){Y(U)})}return new(_||(_=Promise))(function(U,Y){function Z(At){try{J(P.next(At))}catch(jt){Y(jt)}}function Tt(At){try{J(P.throw(At))}catch(jt){Y(jt)}}function J(At){At.done?U(At.value):E(At.value).then(Z,Tt)}J((P=P.apply(g,u||[])).next())})},T=function(g,u){var _={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},P,E,U,Y;return Y={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function Z(J){return function(At){return Tt([J,At])}}function Tt(J){if(P)throw new TypeError("Generator is already executing.");for(;Y&&(Y=0,J[0]&&(_=0)),_;)try{if(P=1,E&&(U=J[0]&2?E.return:J[0]?E.throw||((U=E.return)&&U.call(E),0):E.next)&&!(U=U.call(E,J[1])).done)return U;switch(E=0,U&&(J=[J[0]&2,U.value]),J[0]){case 0:case 1:U=J;break;case 4:return _.label++,{value:J[1],done:!1};case 5:_.label++,E=J[1],J=[0];continue;case 7:J=_.ops.pop(),_.trys.pop();continue;default:if(U=_.trys,!(U=U.length>0&&U[U.length-1])&&(J[0]===6||J[0]===2)){_=0;continue}if(J[0]===3&&(!U||J[1]>U[0]&&J[1]<U[3])){_.label=J[1];break}if(J[0]===6&&_.label<U[1]){_.label=U[1],U=J;break}if(U&&_.label<U[2]){_.label=U[2],_.ops.push(J);break}U[2]&&_.ops.pop(),_.trys.pop();continue}J=u.call(g,_)}catch(At){J=[6,At],E=0}finally{P=U=0}if(J[0]&5)throw J[1];return{value:J[0]?J[1]:void 0,done:!0}}},d;(function(g){g.Cover="cover",g.Contain="contain",g.Fill="fill",g.FitWidth="fitWidth",g.FitHeight="fitHeight",g.None="none",g.ScaleDown="scaleDown"})(d||(d={}));var C;(function(g){g.Center="center",g.TopLeft="topLeft",g.TopCenter="topCenter",g.TopRight="topRight",g.CenterLeft="centerLeft",g.CenterRight="centerRight",g.BottomLeft="bottomLeft",g.BottomCenter="bottomCenter",g.BottomRight="bottomRight"})(C||(C={}));var y=function(){function g(u){var _,P,E,U,Y,Z;this.fit=(_=u?.fit)!==null&&_!==void 0?_:d.Contain,this.alignment=(P=u?.alignment)!==null&&P!==void 0?P:C.Center,this.minX=(E=u?.minX)!==null&&E!==void 0?E:0,this.minY=(U=u?.minY)!==null&&U!==void 0?U:0,this.maxX=(Y=u?.maxX)!==null&&Y!==void 0?Y:0,this.maxY=(Z=u?.maxY)!==null&&Z!==void 0?Z:0}return g.new=function(u){var _=u.fit,P=u.alignment,E=u.minX,U=u.minY,Y=u.maxX,Z=u.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new g({fit:_,alignment:P,minX:E,minY:U,maxX:Y,maxY:Z})},g.prototype.copyWith=function(u){var _=u.fit,P=u.alignment,E=u.minX,U=u.minY,Y=u.maxX,Z=u.maxY;return new g({fit:_??this.fit,alignment:P??this.alignment,minX:E??this.minX,minY:U??this.minY,maxX:Y??this.maxX,maxY:Z??this.maxY})},g.prototype.runtimeFit=function(u){if(this.cachedRuntimeFit)return this.cachedRuntimeFit;var _;return this.fit===d.Cover?_=u.Fit.cover:this.fit===d.Contain?_=u.Fit.contain:this.fit===d.Fill?_=u.Fit.fill:this.fit===d.FitWidth?_=u.Fit.fitWidth:this.fit===d.FitHeight?_=u.Fit.fitHeight:this.fit===d.ScaleDown?_=u.Fit.scaleDown:_=u.Fit.none,this.cachedRuntimeFit=_,_},g.prototype.runtimeAlignment=function(u){if(this.cachedRuntimeAlignment)return this.cachedRuntimeAlignment;var _;return this.alignment===C.TopLeft?_=u.Alignment.topLeft:this.alignment===C.TopCenter?_=u.Alignment.topCenter:this.alignment===C.TopRight?_=u.Alignment.topRight:this.alignment===C.CenterLeft?_=u.Alignment.centerLeft:this.alignment===C.CenterRight?_=u.Alignment.centerRight:this.alignment===C.BottomLeft?_=u.Alignment.bottomLeft:this.alignment===C.BottomCenter?_=u.Alignment.bottomCenter:this.alignment===C.BottomRight?_=u.Alignment.bottomRight:_=u.Alignment.center,this.cachedRuntimeAlignment=_,_},g}(),R=function(){function g(){}return g.loadRuntime=function(){a.default({locateFile:function(){return g.wasmURL}}).then(function(u){var _;for(g.runtime=u;g.callBackQueue.length>0;)(_=g.callBackQueue.shift())===null||_===void 0||_(g.runtime)}).catch(function(){var u="https://cdn.jsdelivr.net/npm/".concat(l.name,"@").concat(l.version,"/rive_fallback.wasm");g.wasmURL.toLowerCase()!==u?(console.warn("Failed to load WASM from ".concat(g.wasmURL,", trying jsdelivr as a backup")),g.setWasmUrl(u),g.loadRuntime()):console.error("Could not load Rive WASM file from unpkg or jsdelivr, network connection may be down, or 	        you may need to call set a new WASM source via RuntimeLoader.setWasmUrl() and call 	        RuntimeLoader.loadRuntime() again")})},g.getInstance=function(u){g.isLoading||(g.isLoading=!0,g.loadRuntime()),g.runtime?u(g.runtime):g.callBackQueue.push(u)},g.awaitInstance=function(){return new Promise(function(u){return g.getInstance(function(_){return u(_)})})},g.setWasmUrl=function(u){g.wasmURL=u},g.isLoading=!1,g.callBackQueue=[],g.wasmURL="https://unpkg.com/".concat(l.name,"@").concat(l.version,"/rive.wasm"),g}(),F;(function(g){g[g.Number=56]="Number",g[g.Trigger=58]="Trigger",g[g.Boolean=59]="Boolean"})(F||(F={}));var D=function(){function g(u,_){this.type=u,this.runtimeInput=_}return Object.defineProperty(g.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(u){this.runtimeInput.value=u},enumerable:!1,configurable:!0}),g.prototype.fire=function(){this.type===F.Trigger&&this.runtimeInput.fire()},g}(),z;(function(g){g[g.General=128]="General",g[g.OpenUrl=131]="OpenUrl"})(z||(z={}));var B=function(){function g(u,_,P,E){this.stateMachine=u,this.playing=P,this.artboard=E,this.inputs=[],this.instance=new _.StateMachineInstance(u,E),this.initInputs(_)}return Object.defineProperty(g.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"statesChanged",{get:function(){for(var u=[],_=0;_<this.instance.stateChangedCount();_++)u.push(this.instance.stateChangedNameByIndex(_));return u},enumerable:!1,configurable:!0}),g.prototype.advance=function(u){this.instance.advance(u)},g.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},g.prototype.reportedEventAt=function(u){return this.instance.reportedEventAt(u)},g.prototype.initInputs=function(u){for(var _=0;_<this.instance.inputCount();_++){var P=this.instance.input(_);this.inputs.push(this.mapRuntimeInput(P,u))}},g.prototype.mapRuntimeInput=function(u,_){if(u.type===_.SMIInput.bool)return new D(F.Boolean,u.asBool());if(u.type===_.SMIInput.number)return new D(F.Number,u.asNumber());if(u.type===_.SMIInput.trigger)return new D(F.Trigger,u.asTrigger())},g.prototype.cleanup=function(){this.instance.delete()},g}(),I=function(){function g(u,_,P,E,U){E===void 0&&(E=[]),U===void 0&&(U=[]),this.runtime=u,this.artboard=_,this.eventManager=P,this.animations=E,this.stateMachines=U}return g.prototype.add=function(u,_,P){if(P===void 0&&(P=!0),u=ot(u),u.length===0)this.animations.forEach(function(Nt){return Nt.playing=_}),this.stateMachines.forEach(function(Nt){return Nt.playing=_});else for(var E=this.animations.map(function(Nt){return Nt.name}),U=this.stateMachines.map(function(Nt){return Nt.name}),Y=0;Y<u.length;Y++){var Z=E.indexOf(u[Y]),Tt=U.indexOf(u[Y]);if(Z>=0||Tt>=0)Z>=0?this.animations[Z].playing=_:this.stateMachines[Tt].playing=_;else{var J=this.artboard.animationByName(u[Y]);if(J){var At=new c.Animation(J,this.artboard,this.runtime,_);At.advance(0),At.apply(1),this.animations.push(At)}else{var jt=this.artboard.stateMachineByName(u[Y]);if(jt){var zt=new B(jt,this.runtime,_,this.artboard);this.stateMachines.push(zt)}}}}return P&&(_?this.eventManager.fire({type:O.Play,data:this.playing}):this.eventManager.fire({type:O.Pause,data:this.paused})),_?this.playing:this.paused},g.prototype.initLinearAnimations=function(u,_){for(var P=this.animations.map(function(Tt){return Tt.name}),E=0;E<u.length;E++){var U=P.indexOf(u[E]);if(U>=0)this.animations[U].playing=_;else{var Y=this.artboard.animationByName(u[E]);if(Y){var Z=new c.Animation(Y,this.artboard,this.runtime,_);Z.advance(0),Z.apply(1),this.animations.push(Z)}}}},g.prototype.initStateMachines=function(u,_){for(var P=this.stateMachines.map(function(Tt){return Tt.name}),E=0;E<u.length;E++){var U=P.indexOf(u[E]);if(U>=0)this.stateMachines[U].playing=_;else{var Y=this.artboard.stateMachineByName(u[E]);if(Y){var Z=new B(Y,this.runtime,_,this.artboard);this.stateMachines.push(Z)}else this.initLinearAnimations([u[E]],_)}}},g.prototype.play=function(u){return this.add(u,!0)},g.prototype.pause=function(u){return this.add(u,!1)},g.prototype.scrub=function(u,_){var P=this.animations.filter(function(E){return u.includes(E.name)});return P.forEach(function(E){return E.scrubTo=_}),P.map(function(E){return E.name})},Object.defineProperty(g.prototype,"playing",{get:function(){return this.animations.filter(function(u){return u.playing}).map(function(u){return u.name}).concat(this.stateMachines.filter(function(u){return u.playing}).map(function(u){return u.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"paused",{get:function(){return this.animations.filter(function(u){return!u.playing}).map(function(u){return u.name}).concat(this.stateMachines.filter(function(u){return!u.playing}).map(function(u){return u.name}))},enumerable:!1,configurable:!0}),g.prototype.stop=function(u){var _=this;u=ot(u);var P=[];if(u.length===0)P=this.animations.map(function(Y){return Y.name}).concat(this.stateMachines.map(function(Y){return Y.name})),this.animations.forEach(function(Y){return Y.cleanup()}),this.stateMachines.forEach(function(Y){return Y.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var E=this.animations.filter(function(Y){return u.includes(Y.name)});E.forEach(function(Y){Y.cleanup(),_.animations.splice(_.animations.indexOf(Y),1)});var U=this.stateMachines.filter(function(Y){return u.includes(Y.name)});U.forEach(function(Y){Y.cleanup(),_.stateMachines.splice(_.stateMachines.indexOf(Y),1)}),P=E.map(function(Y){return Y.name}).concat(U.map(function(Y){return Y.name}))}return this.eventManager.fire({type:O.Stop,data:P}),P},Object.defineProperty(g.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(u,_){return u||_.playing},!1)||this.stateMachines.reduce(function(u,_){return u||_.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),g.prototype.atLeastOne=function(u,_){_===void 0&&(_=!0);var P;return this.animations.length===0&&this.stateMachines.length===0&&(this.artboard.animationCount()>0?this.add([P=this.artboard.animationByIndex(0).name],u,_):this.artboard.stateMachineCount()>0&&this.add([P=this.artboard.stateMachineByIndex(0).name],u,_)),P},g.prototype.handleLooping=function(){for(var u=0,_=this.animations.filter(function(E){return E.playing});u<_.length;u++){var P=_[u];P.loopValue===0&&P.loopCount?(P.loopCount=0,this.stop(P.name)):P.loopValue===1&&P.loopCount?(this.eventManager.fire({type:O.Loop,data:{animation:P.name,type:X.Loop}}),P.loopCount=0):P.loopValue===2&&P.loopCount>1&&(this.eventManager.fire({type:O.Loop,data:{animation:P.name,type:X.PingPong}}),P.loopCount=0)}},g.prototype.handleStateChanges=function(){for(var u=[],_=0,P=this.stateMachines.filter(function(U){return U.playing});_<P.length;_++){var E=P[_];u.push.apply(u,E.statesChanged)}u.length>0&&this.eventManager.fire({type:O.StateChange,data:u})},g.prototype.handleAdvancing=function(u){this.eventManager.fire({type:O.Advance,data:u})},g}(),O;(function(g){g.Load="load",g.LoadError="loaderror",g.Play="play",g.Pause="pause",g.Stop="stop",g.Loop="loop",g.Draw="draw",g.Advance="advance",g.StateChange="statechange",g.RiveEvent="riveevent",g.AudioStatusChange="audiostatuschange"})(O||(O={}));var X;(function(g){g.OneShot="oneshot",g.Loop="loop",g.PingPong="pingpong"})(X||(X={}));var $=function(){function g(u){u===void 0&&(u=[]),this.listeners=u}return g.prototype.getListeners=function(u){return this.listeners.filter(function(_){return _.type===u})},g.prototype.add=function(u){this.listeners.includes(u)||this.listeners.push(u)},g.prototype.remove=function(u){for(var _=0;_<this.listeners.length;_++){var P=this.listeners[_];if(P.type===u.type&&P.callback===u.callback){this.listeners.splice(_,1);break}}},g.prototype.removeAll=function(u){var _=this;u?this.listeners.filter(function(P){return P.type===u}).forEach(function(P){return _.remove(P)}):this.listeners.splice(0,this.listeners.length)},g.prototype.fire=function(u){var _=this.getListeners(u.type);_.forEach(function(P){return P.callback(u)})},g}(),N=function(){function g(u){this.eventManager=u,this.queue=[]}return g.prototype.add=function(u){this.queue.push(u)},g.prototype.process=function(){for(;this.queue.length>0;){var u=this.queue.shift();u?.action&&u.action(),u?.event&&this.eventManager.fire(u.event)}},g}(),H;(function(g){g[g.AVAILABLE=0]="AVAILABLE",g[g.UNAVAILABLE=1]="UNAVAILABLE"})(H||(H={}));var it=function(g){v(u,g);function u(){var _=g!==null&&g.apply(this,arguments)||this;return _._started=!1,_._enabled=!1,_._status=H.UNAVAILABLE,_}return u.prototype.delay=function(_){return b(this,void 0,void 0,function(){return T(this,function(P){return[2,new Promise(function(E){return setTimeout(E,_)})]})})},u.prototype.timeout=function(){return b(this,void 0,void 0,function(){return T(this,function(_){return[2,new Promise(function(P,E){return setTimeout(E,50)})]})})},u.prototype.reportToListeners=function(){this.fire({type:O.AudioStatusChange}),this.removeAll()},u.prototype.enableAudio=function(){return b(this,void 0,void 0,function(){return T(this,function(_){return this._enabled||(this._enabled=!0,this._status=H.AVAILABLE,this.reportToListeners()),[2]})})},u.prototype.testAudio=function(){return b(this,void 0,void 0,function(){return T(this,function(_){switch(_.label){case 0:if(!(this._status===H.UNAVAILABLE&&this._audioContext!==null))return[3,4];_.label=1;case 1:return _.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return _.sent(),this.enableAudio(),[3,4];case 3:return _.sent(),[3,4];case 4:return[2]}})})},u.prototype._establishAudio=function(){return b(this,void 0,void 0,function(){return T(this,function(_){switch(_.label){case 0:return this._started?[3,5]:(this._started=!0,typeof window>"u"?(this.enableAudio(),[3,5]):[3,1]);case 1:this._audioContext=new AudioContext,this.listenForUserAction(),_.label=2;case 2:return this._status!==H.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return _.sent(),[4,this.delay(1e3)];case 4:return _.sent(),[3,2];case 5:return[2]}})})},u.prototype.listenForUserAction=function(){var _=this,P=function(){return b(_,void 0,void 0,function(){return T(this,function(E){return this.enableAudio(),[2]})})};document.addEventListener("pointerdown",P,{once:!0})},u.prototype.establishAudio=function(){return b(this,void 0,void 0,function(){return T(this,function(_){return this._establishAudio(),[2]})})},Object.defineProperty(u.prototype,"systemVolume",{get:function(){return this._status===H.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),u}($),et=new it,ht=function(){function g(){}return g.prototype.observe=function(){},g.prototype.unobserve=function(){},g.prototype.disconnect=function(){},g}(),bt=globalThis.ResizeObserver||ht,wt=function(){function g(){var u=this;this._elementsMap=new Map,this._onObservedEntry=function(_){var P=u._elementsMap.get(_.target);P!==null?P.onResize(_.target.clientWidth==0||_.target.clientHeight==0):u._resizeObserver.unobserve(_.target)},this._onObserved=function(_){_.forEach(u._onObservedEntry)},this._resizeObserver=new bt(this._onObserved)}return g.prototype.add=function(u,_){var P={onResize:_,element:u};return this._elementsMap.set(u,P),this._resizeObserver.observe(u),P},g.prototype.remove=function(u){this._resizeObserver.unobserve(u.element),this._elementsMap.delete(u.element)},g}(),gt=new wt,st=function(){function g(u){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.src=u.src,this.buffer=u.buffer,u.assetLoader&&(this.assetLoader=u.assetLoader),this.enableRiveAssetCDN=typeof u.enableRiveAssetCDN=="boolean"?u.enableRiveAssetCDN:!0,this.eventManager=new $,u.onLoad&&this.on(O.Load,u.onLoad),u.onLoadError&&this.on(O.LoadError,u.onLoadError)}return g.prototype.initData=function(){return b(this,void 0,void 0,function(){var u,_,P;return T(this,function(E){switch(E.label){case 0:return this.src?(u=this,[4,Ut(this.src)]):[3,2];case 1:u.buffer=E.sent(),E.label=2;case 2:return this.assetLoader&&(_=new this.runtime.CustomFileAssetLoader({loadContents:this.assetLoader})),P=this,[4,this.runtime.load(new Uint8Array(this.buffer),_,this.enableRiveAssetCDN)];case 3:if(P.file=E.sent(),this.file!==null)this.eventManager.fire({type:O.Load,data:this});else throw this.eventManager.fire({type:O.LoadError,data:null}),new Error(g.fileLoadErrorMessage);return[2]}})})},g.prototype.init=function(){return b(this,void 0,void 0,function(){var u;return T(this,function(_){switch(_.label){case 0:if(!this.src&&!this.buffer)throw new Error(g.missingErrorMessage);return u=this,[4,R.awaitInstance()];case 1:return u.runtime=_.sent(),[4,this.initData()];case 2:return _.sent(),[2]}})})},g.prototype.on=function(u,_){this.eventManager.add({type:u,callback:_})},g.prototype.off=function(u,_){this.eventManager.remove({type:u,callback:_})},g.prototype.cleanup=function(){var u;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),(u=this.file)===null||u===void 0||u.delete())},g.prototype.removeAllRiveEventListeners=function(u){this.eventManager.removeAll(u)},g.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},g.missingErrorMessage="Rive source file or data buffer required",g.fileLoadErrorMessage="The file failed to load",g}(),kt=function(){function g(u){var _=this,P;this.loaded=!1,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._hasZeroSize=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(E){_._hasZeroSize=E,(!_._layout.maxX||!_._layout.maxY)&&_.resizeToCanvas()},this.renderSecondTimer=0,this.canvas=u.canvas,u.canvas.constructor===HTMLCanvasElement&&(this._observed=gt.add(this.canvas,this.onCanvasResize)),this.src=u.src,this.buffer=u.buffer,this.riveFile=u.riveFile,this.layout=(P=u.layout)!==null&&P!==void 0?P:new y,this.shouldDisableRiveListeners=!!u.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!u.isTouchScrollEnabled,this.automaticallyHandleEvents=!!u.automaticallyHandleEvents,this.enableRiveAssetCDN=u.enableRiveAssetCDN===void 0?!0:u.enableRiveAssetCDN,this.eventManager=new $,u.onLoad&&this.on(O.Load,u.onLoad),u.onLoadError&&this.on(O.LoadError,u.onLoadError),u.onPlay&&this.on(O.Play,u.onPlay),u.onPause&&this.on(O.Pause,u.onPause),u.onStop&&this.on(O.Stop,u.onStop),u.onLoop&&this.on(O.Loop,u.onLoop),u.onStateChange&&this.on(O.StateChange,u.onStateChange),u.onAdvance&&this.on(O.Advance,u.onAdvance),u.onload&&!u.onLoad&&this.on(O.Load,u.onload),u.onloaderror&&!u.onLoadError&&this.on(O.LoadError,u.onloaderror),u.onplay&&!u.onPlay&&this.on(O.Play,u.onplay),u.onpause&&!u.onPause&&this.on(O.Pause,u.onpause),u.onstop&&!u.onStop&&this.on(O.Stop,u.onstop),u.onloop&&!u.onLoop&&this.on(O.Loop,u.onloop),u.onstatechange&&!u.onStateChange&&this.on(O.StateChange,u.onstatechange),u.assetLoader&&(this.assetLoader=u.assetLoader),this.taskQueue=new N(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:u.autoplay,animations:u.animations,stateMachines:u.stateMachines,artboard:u.artboard,useOffscreenRenderer:u.useOffscreenRenderer})}return g.new=function(u){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new g(u)},g.prototype.onSystemAudioChanged=function(){this.volume=this._volume},g.prototype.init=function(u){var _=this,P=u.src,E=u.buffer,U=u.riveFile,Y=u.animations,Z=u.stateMachines,Tt=u.artboard,J=u.autoplay,At=J===void 0?!1:J,jt=u.useOffscreenRenderer,zt=jt===void 0?!1:jt;if(this.src=P,this.buffer=E,this.riveFile=U,!this.src&&!this.buffer&&!this.riveFile)throw new Error(g.missingErrorMessage);var Nt=ot(Y),ke=ot(Z);this.loaded=!1,this.readyForPlaying=!1,R.awaitInstance().then(function(_e){_.runtime=_e,_.renderer=_.runtime.makeRenderer(_.canvas,zt),_.canvas.width||_.canvas.height||_.resizeDrawingSurfaceToCanvas(),_.initData(Tt,Nt,ke,At).then(function(){return _.setupRiveListeners()}).catch(function(Ie){console.error(Ie)})}).catch(function(_e){console.error(_e)})},g.prototype.setupRiveListeners=function(u){var _=this;if(!this.shouldDisableRiveListeners){var P=(this.animator.stateMachines||[]).filter(function(U){return U.playing&&_.runtime.hasListeners(U.instance)}).map(function(U){return U.instance}),E=this.isTouchScrollEnabled;u&&"isTouchScrollEnabled"in u&&(E=u.isTouchScrollEnabled),this.eventCleanup=(0,p.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:P,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:E})}},g.prototype.removeRiveListeners=function(){this.eventCleanup&&this.eventCleanup()},g.prototype.initializeAudio=function(){var u=this,_;et.status==H.UNAVAILABLE&&!((_=this.artboard)===null||_===void 0)&&_.hasAudio&&(et.add({type:O.AudioStatusChange,callback:function(){return u.onSystemAudioChanged()}}),et.establishAudio())},g.prototype.initData=function(u,_,P,E){var U;return b(this,void 0,void 0,function(){var Y;return T(this,function(Z){switch(Z.label){case 0:return Z.trys.push([0,3,,4]),this.riveFile!=null?[3,2]:(this.riveFile=new st({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()]);case 1:Z.sent(),Z.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(u,_,P,E),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:O.Load,data:(U=this.src)!==null&&U!==void 0?U:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,Promise.resolve()];case 3:return Z.sent(),Y="Problem loading file; may be corrupt!",console.warn(Y),this.eventManager.fire({type:O.LoadError,data:Y}),[2,Promise.reject(Y)];case 4:return[2]}})})},g.prototype.initArtboard=function(u,_,P,E){if(this.file){var U=u?this.file.artboardByName(u):this.file.defaultArtboard();if(!U){var Y="Invalid artboard name or no default artboard";console.warn(Y),this.eventManager.fire({type:O.LoadError,data:Y});return}if(this.artboard=U,U.volume=this._volume*et.systemVolume,this.artboard.animationCount()<1){var Y="Artboard has no animations";throw this.eventManager.fire({type:O.LoadError,data:Y}),Y}this.animator=new I(this.runtime,this.artboard,this.eventManager);var Z;_.length>0||P.length>0?(Z=_.concat(P),this.animator.initLinearAnimations(_,E),this.animator.initStateMachines(P,E)):Z=[this.animator.atLeastOne(E,!1)],this.taskQueue.add({event:{type:E?O.Play:O.Pause,data:Z}})}},g.prototype.drawFrame=function(){this.startRendering()},g.prototype.draw=function(u,_){this.frameRequestId=null;var P=performance.now();this.lastRenderTime||(this.lastRenderTime=u),this.renderSecondTimer+=u-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,_?.());var E=(u-this.lastRenderTime)/1e3;this.lastRenderTime=u;for(var U=this.animator.animations.filter(function(re){return re.playing||re.needsScrub}).sort(function(re){return re.needsScrub?-1:1}),Y=0,Z=U;Y<Z.length;Y++){var Tt=Z[Y];Tt.advance(E),Tt.instance.didLoop&&(Tt.loopCount+=1),Tt.apply(1)}for(var J=this.animator.stateMachines.filter(function(re){return re.playing}),At=0,jt=J;At<jt.length;At++){var zt=jt[At],Nt=zt.reportedEventCount();if(Nt)for(var ke=0;ke<Nt;ke++){var _e=zt.reportedEventAt(ke);if(_e)if(_e.type===z.OpenUrl){if(this.eventManager.fire({type:O.RiveEvent,data:_e}),this.automaticallyHandleEvents){var Ie=document.createElement("a"),Hn=_e,fn=Hn.url,Pn=Hn.target,Be=(0,p.sanitizeUrl)(fn);fn&&Ie.setAttribute("href",Be),Pn&&Ie.setAttribute("target",Pn),Be&&Be!==p.BLANK_URL&&Ie.click()}}else this.eventManager.fire({type:O.RiveEvent,data:_e})}zt.advance(E)}this.artboard.advance(E);var Ue=this.renderer;Ue.clear(),Ue.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(Ue),Ue.restore(),Ue.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(E),this.frameCount++;var $t=performance.now();for(this.frameTimes.push($t),this.durations.push($t-P);this.frameTimes[0]<=$t-1e3;)this.frameTimes.shift(),this.durations.shift();this.animator.isPlaying?this.startRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)},g.prototype.alignRenderer=function(){var u=this,_=u.renderer,P=u.runtime,E=u._layout,U=u.artboard;_.align(E.runtimeFit(P),E.runtimeAlignment(P),{minX:E.minX,minY:E.minY,maxX:E.maxX,maxY:E.maxY},U.bounds)},Object.defineProperty(g.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"frameTime",{get:function(){return this.durations.length===0?0:(this.durations.reduce(function(u,_){return u+_},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),g.prototype.cleanup=function(){var u;this.stopRendering(),this.cleanupInstances(),this._observed!==null&&gt.remove(this._observed),(u=this.riveFile)===null||u===void 0||u.cleanup(),this.riveFile=null,this.file=null},g.prototype.deleteRiveRenderer=function(){var u;(u=this.renderer)===null||u===void 0||u.delete(),this.renderer=null},g.prototype.cleanupInstances=function(){this.eventCleanup!==null&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},g.prototype.retrieveTextRun=function(u){var _;if(!u){console.warn("No text run name provided");return}if(!this.artboard){console.warn("Tried to access text run, but the Artboard is null");return}var P=this.artboard.textRun(u);if(!P){console.warn("Could not access a text run with name '".concat(u,"' in the '").concat((_=this.artboard)===null||_===void 0?void 0:_.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."));return}return P},g.prototype.getTextRunValue=function(u){var _=this.retrieveTextRun(u);return _?_.text:void 0},g.prototype.setTextRunValue=function(u,_){var P=this.retrieveTextRun(u);P&&(P.text=_)},g.prototype.play=function(u,_){var P=this;if(u=ot(u),!this.readyForPlaying){this.taskQueue.add({action:function(){return P.play(u,_)}});return}this.animator.play(u),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()},g.prototype.pause=function(u){var _=this;if(u=ot(u),!this.readyForPlaying){this.taskQueue.add({action:function(){return _.pause(u)}});return}this.eventCleanup&&this.eventCleanup(),this.animator.pause(u)},g.prototype.scrub=function(u,_){var P=this;if(u=ot(u),!this.readyForPlaying){this.taskQueue.add({action:function(){return P.scrub(u,_)}});return}this.animator.scrub(u,_||0),this.drawFrame()},g.prototype.stop=function(u){var _=this;if(u=ot(u),!this.readyForPlaying){this.taskQueue.add({action:function(){return _.stop(u)}});return}this.animator.stop(u),this.eventCleanup&&this.eventCleanup()},g.prototype.reset=function(u){var _,P=u?.artboard,E=ot(u?.animations),U=ot(u?.stateMachines),Y=(_=u?.autoplay)!==null&&_!==void 0?_:!1;this.cleanupInstances(),this.initArtboard(P,E,U,Y),this.taskQueue.process()},g.prototype.load=function(u){this.file=null,this.stop(),this.init(u)},Object.defineProperty(g.prototype,"layout",{get:function(){return this._layout},set:function(u){this._layout=u,(!u.maxX||!u.maxY)&&this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),g.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},g.prototype.resizeDrawingSurfaceToCanvas=function(u){if(this.canvas instanceof HTMLCanvasElement&&window){var _=this.canvas.getBoundingClientRect(),P=_.width,E=_.height,U=u||window.devicePixelRatio||1;this.canvas.width=U*P,this.canvas.height=U*E,this.startRendering(),this.resizeToCanvas()}},Object.defineProperty(g.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var u=[],_=0;_<this.artboard.animationCount();_++)u.push(this.artboard.animationByIndex(_).name);return u},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var u=[],_=0;_<this.artboard.stateMachineCount();_++)u.push(this.artboard.stateMachineByIndex(_).name);return u},enumerable:!1,configurable:!0}),g.prototype.stateMachineInputs=function(u){if(this.loaded){var _=this.animator.stateMachines.find(function(P){return P.name===u});return _?.inputs}},g.prototype.retrieveInputAtPath=function(u,_){if(!u){console.warn("No input name provided for path '".concat(_,"'"));return}if(!this.artboard){console.warn("Tried to access input: '".concat(u,"', at path: '").concat(_,"', but the Artboard is null"));return}var P=this.artboard.inputByPath(u,_);if(!P){console.warn("Could not access an input with name: '".concat(u,"', at path:'").concat(_,"'"));return}return P},g.prototype.setBooleanStateAtPath=function(u,_,P){var E=this.retrieveInputAtPath(u,P);E&&(E.type===F.Boolean?E.asBool().value=_:console.warn("Input with name: '".concat(u,"', at path:'").concat(P,"' is not a boolean")))},g.prototype.setNumberStateAtPath=function(u,_,P){var E=this.retrieveInputAtPath(u,P);E&&(E.type===F.Number?E.asNumber().value=_:console.warn("Input with name: '".concat(u,"', at path:'").concat(P,"' is not a number")))},g.prototype.fireStateAtPath=function(u,_){var P=this.retrieveInputAtPath(u,_);P&&(P.type===F.Trigger?P.asTrigger().fire():console.warn("Input with name: '".concat(u,"', at path:'").concat(_,"' is not a trigger")))},g.prototype.retrieveTextAtPath=function(u,_){if(!u){console.warn("No text name provided for path '".concat(_,"'"));return}if(!_){console.warn("No path provided for text '".concat(u,"'"));return}if(!this.artboard){console.warn("Tried to access text: '".concat(u,"', at path: '").concat(_,"', but the Artboard is null"));return}var P=this.artboard.textByPath(u,_);if(!P){console.warn("Could not access text with name: '".concat(u,"', at path:'").concat(_,"'"));return}return P},g.prototype.getTextRunValueAtPath=function(u,_){var P=this.retrieveTextAtPath(u,_);if(!P){console.warn("Could not get text with name: '".concat(u,"', at path:'").concat(_,"'"));return}return P.text},g.prototype.setTextRunValueAtPath=function(u,_,P){var E=this.retrieveTextAtPath(u,P);if(!E){console.warn("Could not set text with name: '".concat(u,"', at path:'").concat(P,"'"));return}E.text=_},Object.defineProperty(g.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(u){return u.playing}).map(function(u){return u.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(u){return u.playing}).map(function(u){return u.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(u){return!u.playing}).map(function(u){return u.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(u){return!u.playing}).map(function(u){return u.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),g.prototype.on=function(u,_){this.eventManager.add({type:u,callback:_})},g.prototype.off=function(u,_){this.eventManager.remove({type:u,callback:_})},g.prototype.unsubscribe=function(u,_){console.warn("This function is deprecated: please use `off()` instead."),this.off(u,_)},g.prototype.removeAllRiveEventListeners=function(u){this.eventManager.removeAll(u)},g.prototype.unsubscribeAll=function(u){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(u)},g.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},g.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this.draw.bind(this)):this.frameRequestId=requestAnimationFrame(this.draw.bind(this)))},g.prototype.enableFPSCounter=function(u){this.runtime.enableFPSCounter(u)},g.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(g.prototype,"contents",{get:function(){if(this.loaded){for(var u={artboards:[]},_=0;_<this.file.artboardCount();_++){for(var P=this.file.artboardByIndex(_),E={name:P.name,animations:[],stateMachines:[]},U=0;U<P.animationCount();U++){var Y=P.animationByIndex(U);E.animations.push(Y.name)}for(var Z=0;Z<P.stateMachineCount();Z++){for(var Tt=P.stateMachineByIndex(Z),J=Tt.name,At=new this.runtime.StateMachineInstance(Tt,P),jt=[],zt=0;zt<At.inputCount();zt++){var Nt=At.input(zt);jt.push({name:Nt.name,type:Nt.type})}E.stateMachines.push({name:J,inputs:jt})}u.artboards.push(E)}return u}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(u){this._volume=u,this.artboard&&(this.artboard.volume=u*et.systemVolume)},enumerable:!1,configurable:!0}),g.missingErrorMessage="Rive source file or data buffer required",g}(),Ut=function(g){return b(void 0,void 0,void 0,function(){var u,_,P;return T(this,function(E){switch(E.label){case 0:return u=new Request(g),[4,fetch(u)];case 1:return _=E.sent(),[4,_.arrayBuffer()];case 2:return P=E.sent(),[2,P]}})})},ot=function(g){return typeof g=="string"?[g]:g instanceof Array?g:[]},It={EventManager:$,TaskQueueManager:N},St=function(g){return new Promise(function(u){return R.getInstance(function(_){_.decodeAudio(g,u)})})},vt=function(g){return new Promise(function(u){return R.getInstance(function(_){_.decodeImage(g,u)})})},at=function(g){return new Promise(function(u){return R.getInstance(function(_){_.decodeFont(g,u)})})}})(),i})())})(_o);var Dn=_o.exports;document.addEventListener("DOMContentLoaded",function(){if(window.innerWidth<640){let i=function(a){const l=a.data;l.name==="openMenu"?(console.log("Menu is opening"),n.time(0).play()):l.name==="closeMenu"&&(console.log("Menu is closing"),r.time(0).play())};const m=new Dn.Layout({fit:Dn.Fit.FitWidth,alignment:Dn.Alignment.Center}),t=new Dn.Rive({src:"/menu.riv",canvas:document.getElementById("menuCanvas"),autoplay:!0,stateMachines:"Toggle",layout:m,onLoad:()=>{t.resizeDrawingSurfaceToCanvas()}}),e=document.getElementById("navMenu").children,n=oi.timeline({paused:!0});n.to("nav",{color:"black"}),n.to("#menuCanvas",{filter:"invert(0)"},"<"),n.fromTo("#navMenu",{translateY:"-100%"},{translateY:0,duration:.8,ease:"power4.out"},"<"),n.fromTo(e,{opacity:0},{opacity:1,stagger:.05},">-0.6");const r=oi.timeline({paused:!0});r.to("nav",{color:"inherit"}),r.fromTo(e,{opacity:1},{opacity:0,duration:.05,stagger:.05}),r.to("#navMenu",{translateY:"-100%",duration:.5,ease:"power2.out"},"<0.3"),t.on(Dn.EventType.RiveEvent,i)}});document.addEventListener("DOMContentLoaded",function(){});export{oi as g};
