riftt 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ var Rift=function(t){"use strict";function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
2
+ /*!
3
+ * GSAP 3.13.0
4
+ * https://gsap.com
5
+ *
6
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
7
+ * Subject to the terms at https://gsap.com/standard-license
8
+ * @author: Jack Doyle, jack@greensock.com
9
+ */var n,i,s,a,o,u,l,c,h,f,p,d,_,m,g,v,y,b={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},w={duration:.5,overwrite:!1,delay:0},T=1e8,x=1e-8,k=2*Math.PI,A=k/4,O=0,S=Math.sqrt,M=Math.cos,C=Math.sin,E=function(t){return"string"==typeof t},D=function(t){return"function"==typeof t},P=function(t){return"number"==typeof t},R=function(t){return void 0===t},z=function(t){return"object"==typeof t},F=function(t){return!1!==t},L=function(){return"undefined"!=typeof window},I=function(t){return D(t)||E(t)},N="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,q=/(?:-?\.?\d|\.)+/gi,$=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Y=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,W=/[+-]=-?[.\d]+/,U=/[^,'"\[\]\s]+/gi,X=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,V={},G={},H=function(t){return(G=At(t,V))&&Or},J=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},K=function(t,e){return!e&&console.warn(t)},Q=function(t,e){return t&&(V[t]=e)&&G&&(G[t]=e)||V},Z=function(){return 0},tt={suppressEvents:!0,isStart:!0,kill:!1},et={suppressEvents:!0,kill:!1},rt={suppressEvents:!0},nt={},it=[],st={},at={},ot={},ut=30,lt=[],ct="",ht=function(t){var e,r,n=t[0];if(z(n)||D(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=lt.length;r--&&!lt[r].targetTest(n););e=lt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new qe(t[r],e)))||t.splice(r,1);return t},ft=function(t){return t._gsap||ht(ne(t))[0]._gsap},pt=function(t,e,r){return(r=t[e])&&D(r)?t[e]():R(r)&&t.getAttribute&&t.getAttribute(e)||r},dt=function(t,e){return(t=t.split(",")).forEach(e)||t},_t=function(t){return Math.round(1e5*t)/1e5||0},mt=function(t){return Math.round(1e7*t)/1e7||0},gt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},vt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},yt=function(){var t,e,r=it.length,n=it.slice(0);for(st={},it.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},bt=function(t){return!!(t._initted||t._startAt||t.add)},wt=function(t,e,r,n){it.length&&!i&&yt(),t.render(e,r,!!(i&&e<0&&bt(t))),it.length&&!i&&yt()},Tt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(U).length<2?e:E(t)?t.trim():t},xt=function(t){return t},kt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},At=function(t,e){for(var r in e)t[r]=e[r];return t},Ot=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=z(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},St=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Mt=function(t){var e,r=t.parent||a,n=t.keyframes?(e=B(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):kt;if(F(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ct=function(t,e,r,n,i){var s,a=t[n];if(i)for(s=e[i];a&&a[i]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t,e},Et=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Dt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Pt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Rt=function(t,e,r,n){return t._startAt&&(i?t._startAt.revert(et):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},zt=function t(e){return!e||e._ts&&t(e.parent)},Ft=function(t){return t._repeat?Lt(t._tTime,t=t.duration()+t._rDelay)*t:0},Lt=function(t,e){var r=Math.floor(t=mt(t/e));return t&&r===t?r-1:r},It=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Nt=function(t){return t._end=mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||x)||0))},Bt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=mt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Nt(t),r._dirty||Pt(r,t)),t},qt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=It(t.rawTime(),e),(!e._dur||Qt(0,e.totalDuration(),r)-e._tTime>x)&&e.render(r,!0)),Pt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},$t=function(t,e,r,n){return e.parent&&Dt(e),e._start=mt((P(r)?r:r||t!==a?Ht(t,r,e):t._time)+e._delay),e._end=mt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ct(t,e,"_first","_last",t._sort?"_start":0),Ut(e)||(t._recent=e),n||qt(t,e),t._ts<0&&Bt(t,t._tTime),t},jt=function(t,e){return(V.ScrollTrigger||J("scrollTrigger",e))&&V.ScrollTrigger.create(e,t)},Yt=function(t,e,r,n,s){return Ge(t,e,s),t._initted?!r&&t._pt&&!i&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&h!==Se.frame?(it.push(t),t._lazy=[s,n],1):void 0:1},Wt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Ut=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Xt=function(t,e,r,n){var i=t._repeat,s=mt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:mt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&Bt(t,t._tTime=t._tDur*a),t.parent&&Nt(t),r||Pt(t.parent,t),t},Vt=function(t){return t instanceof je?Pt(t):Xt(t,t._dur)},Gt={_start:0,endTime:Z,totalDuration:Z},Ht=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||Gt,l=e.duration()>=T?u.endTime(!1):e._dur;return E(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?u:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=l),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*(B(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},Jt=function(t,e,r){var n,i,s=P(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(n=o,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=F(i.vars.inherit)&&i.parent;o.immediateRender=F(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Ze(e[0],o,e[a+1])},Kt=function(t,e){return t||0===t?e(t):e},Qt=function(t,e,r){return r<t?t:r>e?e:r},Zt=function(t,e){return E(t)&&(e=X.exec(t))?e[1]:""},te=[].slice,ee=function(t,e){return t&&z(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&z(t[0]))&&!t.nodeType&&t!==o},re=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return E(t)&&!e||ee(t,1)?(n=r).push.apply(n,ne(t)):r.push(t)})||r},ne=function(t,e,r){return s&&!e&&s.selector?s.selector(t):!E(t)||r||!u&&Me()?B(t)?re(t,r):ee(t)?te.call(t,0):t?[t]:[]:te.call((e||l).querySelectorAll(t),0)},ie=function(t){return t=ne(t)[0]||K("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return ne(e,r.querySelectorAll?r:r===t?K("Invalid scope")||l.createElement("div"):t)}},se=function(t){return t.sort(function(){return.5-Math.random()})},ae=function(t){if(D(t))return t;var e=z(t)?t:{each:t},r=Fe(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,u=e.axis,l=n,c=n;return E(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(l=n[0],c=n[1]),function(t,a,h){var f,p,d,_,m,g,v,y,b,w=(h||e).length,x=s[w];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,T])[1])){for(v=-1e8;v<(v=h[b++].getBoundingClientRect().left)&&b<w;);b<w&&b--}for(x=s[w]=[],f=o?Math.min(b,w)*l-.5:n%b,p=b===T?0:o?w*c/b-.5:n/b|0,v=0,y=T,g=0;g<w;g++)d=g%b-f,_=p-(g/b|0),x[g]=m=u?Math.abs("y"===u?_:d):S(d*d+_*_),m>v&&(v=m),m<y&&(y=m);"random"===n&&se(x),x.max=v-y,x.min=y,x.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===n?-1:1),x.b=w<0?i-w:i,x.u=Zt(e.amount||e.each)||0,r=r&&w<0?Re(r):r}return w=(x[t]-x.min)/x.max||0,mt(x.b+(r?r(w):w)*x.v)+x.u}},oe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=mt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(P(r)?0:Zt(r))}},ue=function(t,e){var r,n,i=B(t);return!i&&z(t)&&(r=i=t.radius||T,t.values?(t=ne(t.values),(n=!P(t[0]))&&(r*=r)):t=oe(t.increment)),Kt(e,i?D(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,a=parseFloat(n?e.x:e),o=parseFloat(n?e.y:0),u=T,l=0,c=t.length;c--;)(i=n?(i=t[c].x-a)*i+(s=t[c].y-o)*s:Math.abs(t[c]-a))<u&&(u=i,l=c);return l=!r||u<=r?t[l]:e,n||l===e||P(e)?l:l+Zt(e)}:oe(t))},le=function(t,e,r,n){return Kt(B(t)?!e:!0===r?!!(r=0):!n,function(){return B(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n})},ce=function(t,e,r){return Kt(r,function(r){return t[~~e(r)]})},he=function(t){for(var e,r,n,i,s=0,a="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?U:q),a+=t.substr(s,e-s)+le(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return a+t.substr(s,t.length-s)},fe=function(t,e,r,n,i){var s=e-t,a=n-r;return Kt(i,function(e){return r+((e-t)/s*a||0)})},pe=function(t,e,r){var n,i,s,a=t.labels,o=T;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},de=function(t,e,r){var n,i,a,o=t.vars,u=o[e],l=s,c=t._ctx;if(u)return n=o[e+"Params"],i=o.callbackScope||t,r&&it.length&&yt(),c&&(s=c),a=n?u.apply(i,n):u.call(i),s=l,a},_e=function(t){return Dt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!i),t.progress()<1&&de(t,"onInterrupt"),t},me=[],ge=function(t){if(t)if(t=!t.name&&t.default||t,L()||t.headless){var e=t.name,r=D(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:Z,render:ur,add:Xe,kill:cr,modifier:lr,rawVars:0},s={targetTest:0,get:0,getSetter:ir,aliases:{},register:0};if(Me(),t!==n){if(at[e])return;kt(n,kt(St(t,i),s)),At(n.prototype,At(i,St(t,s))),at[n.prop=e]=n,t.targetTest&&(lt.push(n),nt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Q(e,n),t.register&&t.register(Or,n,pr)}else me.push(t)},ve=255,ye={aqua:[0,ve,ve],lime:[0,ve,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ve],navy:[0,0,128],white:[ve,ve,ve],olive:[128,128,0],yellow:[ve,ve,0],orange:[ve,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ve,0,0],pink:[ve,192,203],cyan:[0,ve,ve],transparent:[ve,ve,ve,0]},be=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*ve+.5|0},we=function(t,e,r){var n,i,s,a,o,u,l,c,h,f,p=t?P(t)?[t>>16,t>>8&ve,t&ve]:0:ye.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ye[t])p=ye[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&ve,p&ve,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&ve,t&ve]}else if("hsl"===t.substr(0,3))if(p=f=t.match(q),e){if(~t.indexOf("="))return p=t.match($),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,n=2*(u=+p[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=be(a+1/3,n,i),p[1]=be(a,n,i),p[2]=be(a-1/3,n,i);else p=t.match(q)||ye.transparent;p=p.map(Number)}return e&&!f&&(n=p[0]/ve,i=p[1]/ve,s=p[2]/ve,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?a=o=0:(h=l-c,o=u>.5?h/(2-l-c):h/(l+c),a=l===n?(i-s)/h+(i<s?6:0):l===i?(s-n)/h+2:(n-i)/h+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p},Te=function(t){var e=[],r=[],n=-1;return t.split(ke).forEach(function(t){var i=t.match(j)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},xe=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(ke),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=we(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Te(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(ke,"1").split(j)).length-1;c<a;c++)o+=i[c]+(~n.indexOf(c)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(a=(i=t.split(ke)).length-1;c<a;c++)o+=i[c]+u[c];return o+i[a]},ke=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ye)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ae=/hsl[a]?\(/,Oe=function(t){var e,r=t.join(" ");if(ke.lastIndex=0,ke.test(r))return e=Ae.test(r),t[1]=xe(t[1],e),t[0]=xe(t[0],e,Te(t[1])),!0},Se=function(){var t,e,r,n,i,s,a=Date.now,h=500,f=33,d=a(),_=d,m=1e3/240,g=m,v=[],y=function r(o){var u,l,c,p,y=a()-_,b=!0===o;if((y>h||y<0)&&(d+=y-f),((u=(c=(_+=y)-d)-g)>0||b)&&(p=++n.frame,i=c-1e3*n.time,n.time=c/=1e3,g+=u+(u>=m?4:m-u),l=1),b||(t=e(r)),l)for(s=0;s<v.length;s++)v[s](c,i,p,o)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){c&&(!u&&L()&&(o=u=window,l=o.document||{},V.gsap=Or,(o.gsapVersions||(o.gsapVersions=[])).push(Or.version),H(G||o.GreenSockGlobals||!o.gsap&&o||{}),me.forEach(ge)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,g-1e3*n.time+1|0)},p=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),p=0,e=Z},lagSmoothing:function(t,e){h=t||1/0,f=Math.min(e||33,h)},fps:function(t){m=1e3/(t||240),g=1e3*n.time+m},add:function(t,e,r){var i=e?function(e,r,s,a){t(e,r,s,a),n.remove(i)}:t;return n.remove(t),v[r?"unshift":"push"](i),Me(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),Me=function(){return!p&&Se.wake()},Ce={},Ee=/^[\d.\-M][\d.\-,\s]/,De=/["']/g,Pe=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(De,"").trim():+n,a=r.substr(e+1).trim();return i},Re=function(t){return function(e){return 1-t(1-e)}},ze=function t(e,r){for(var n,i=e._first;i;)i instanceof je?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Fe=function(t,e){return t&&(D(t)?t:Ce[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Ce[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Pe(s[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)).split(",").map(Tt)):Ce._CE&&Ee.test(t)?Ce._CE("",t):a}(t))||e},Le=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return dt(t,function(t){for(var e in Ce[t]=V[t]=s,Ce[i=t.toLowerCase()]=r,s)Ce[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ce[t+"."+e]=s[e]}),s},Ie=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ne=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/k*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*C((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ie(o);return s=k/s,u.config=function(r,n){return t(e,r,n)},u},Be=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Ie(n);return i.config=function(r){return t(e,r)},i};dt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Le(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Ce.Linear.easeNone=Ce.none=Ce.Linear.easeIn,Le("Elastic",Ne("in"),Ne("out"),Ne()),d=7.5625,g=2*(m=1/(_=2.75)),v=2.5*m,Le("Bounce",function(t){return 1-y(1-t)},y=function(t){return t<m?d*t*t:t<g?d*Math.pow(t-1.5/_,2)+.75:t<v?d*(t-=2.25/_)*t+.9375:d*Math.pow(t-2.625/_,2)+.984375}),Le("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Le("Circ",function(t){return-(S(1-t*t)-1)}),Le("Sine",function(t){return 1===t?1:1-M(t*A)}),Le("Back",Be("in"),Be("out"),Be()),Ce.SteppedEase=Ce.steps=V.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*Qt(0,.99999999,t)|0)+i)*r}}},w.ease=Ce["quad.out"],dt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ct+=t+","+t+"Params,"});var qe=function(t,e){this.id=O++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:pt,this.set=e?e.getSetter:ir},$e=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Xt(this,+t.duration,1,1),this.data=t.data,s&&(this._ctx=s,s.data.push(this)),p||Se.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Xt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Me(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Bt(this,t),!r._dp||r.parent||qt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&$t(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===x||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),wt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ft(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ft(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Lt(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?It(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Qt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Nt(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Me(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==x&&(this._tTime-=x)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&$t(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(F(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?It(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=rt);var e=i;return i=t,bt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),i=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Vt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Vt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Ht(this,t),F(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,F(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-x))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise(function(r){var n=D(t)?t:xt,i=function(){var t=e.then;e.then=null,D(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i})},e.kill=function(){_e(this)},t}();kt($e.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var je=function(t){function n(r,n){var i;return void 0===r&&(r={}),(i=t.call(this,r)||this).labels={},i.smoothChildTiming=!!r.smoothChildTiming,i.autoRemoveChildren=!!r.autoRemoveChildren,i._sort=F(r.sortChildren),a&&$t(r.parent||a,e(i),n),r.reversed&&i.reverse(),r.paused&&i.paused(!0),r.scrollTrigger&&jt(e(i),r.scrollTrigger),i}r(n,t);var s=n.prototype;return s.to=function(t,e,r){return Jt(0,arguments,this),this},s.from=function(t,e,r){return Jt(1,arguments,this),this},s.fromTo=function(t,e,r,n){return Jt(2,arguments,this),this},s.set=function(t,e,r){return e.duration=0,e.parent=this,Mt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ze(t,e,Ht(this,r),1),this},s.call=function(t,e,r){return $t(this,Ze.delayedCall(0,t,e),r)},s.staggerTo=function(t,e,r,n,i,s,a){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new Ze(t,r,Ht(this,i)),this},s.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,Mt(r).immediateRender=F(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},s.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,Mt(n).immediateRender=F(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},s.render=function(t,e,r){var n,s,o,u,l,c,h,f,p,d,_,m,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,b=t<=0?0:mt(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==a&&b>v&&t>=0&&(b=v),b!==this._tTime||r||w){if(g!==this._time&&y&&(b+=this._time-g,t+=this._time-g),n=b,p=this._start,c=!(f=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(_=this._yoyo,l=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(n=mt(b%l),b===v?(u=this._repeat,n=y):((u=~~(d=mt(b/l)))&&u===d&&(n=y,u--),n>y&&(n=y)),d=Lt(this._tTime,l),!g&&this._tTime&&d!==u&&this._tTime-d*l-this._dur<=0&&(d=u),_&&1&u&&(n=y-n,m=1),u!==d&&!this._lock){var T=_&&1&d,k=T===(_&&1&u);if(u<d&&(T=!T),g=T?0:b%y?y:b,this._lock=1,this.render(g||(m?0:mt(u*l)),e,!y)._lock=0,this._tTime=b,!e&&this.parent&&de(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||c!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,k&&(this._lock=2,g=T?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!c)return this;ze(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,mt(g),mt(n)),h&&(b-=n-(n=h._start))),this._tTime=b,this._time=n,this._act=!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&b&&!e&&!d&&(de(this,"onStart"),this._tTime!==b))return this;if(n>=g&&t>=0)for(s=this._first;s;){if(o=s._next,(s._act||n>=s._start)&&s._ts&&h!==s){if(s.parent!==this)return this.render(t,e,r);if(s.render(s._ts>0?(n-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(n-s._start)*s._ts,e,r),n!==this._time||!this._ts&&!c){h=0,o&&(b+=this._zTime=-1e-8);break}}s=o}else{s=this._last;for(var A=t<0?t:n;s;){if(o=s._prev,(s._act||A<=s._end)&&s._ts&&h!==s){if(s.parent!==this)return this.render(t,e,r);if(s.render(s._ts>0?(A-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(A-s._start)*s._ts,e,r||i&&bt(s)),n!==this._time||!this._ts&&!c){h=0,o&&(b+=this._zTime=A?-1e-8:x);break}}s=o}}if(h&&!e&&(this.pause(),h.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=p,Nt(this),this.render(t,e,r);this._onUpdate&&!e&&de(this,"onUpdate",!0),(b===v&&this._tTime>=this.totalDuration()||!b&&g)&&(p!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(b===v&&this._ts>0||!b&&this._ts<0)&&Dt(this,1),e||t<0&&!g||!b&&!g&&v||(de(this,b===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<v&&this.timeScale()>0)&&this._prom())))}return this},s.add=function(t,e){var r=this;if(P(e)||(e=Ht(this,e,t)),!(t instanceof $e)){if(B(t))return t.forEach(function(t){return r.add(t,e)}),this;if(E(t))return this.addLabel(t,e);if(!D(t))return this;t=Ze.delayedCall(0,t)}return this!==t?$t(this,t,e):this},s.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof Ze?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},s.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},s.remove=function(t){return E(t)?this.removeLabel(t):D(t)?this.killTweensOf(t):(t.parent===this&&Et(this,t),t===this._recent&&(this._recent=this._last),Pt(this))},s.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=mt(Se.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},s.addLabel=function(t,e){return this.labels[t]=Ht(this,e),this},s.removeLabel=function(t){return delete this.labels[t],this},s.addPause=function(t,e,r){var n=Ze.delayedCall(0,e||Z,r);return n.data="isPause",this._hasPause=1,$t(this,n,Ht(this,t))},s.removePause=function(t){var e=this._first;for(t=Ht(this,t);e;)e._start===t&&"isPause"===e.data&&Dt(e),e=e._next},s.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Ye!==n[i]&&n[i].kill(t,e);return this},s.getTweensOf=function(t,e){for(var r,n=[],i=ne(t),s=this._first,a=P(e);s;)s instanceof Ze?vt(s._targets,i)&&(a?(!Ye||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},s.tweenTo=function(t,e){e=e||{};var r,n=this,i=Ht(n,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,l=s.immediateRender,c=Ze.to(n,kt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||x,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());c._dur!==t&&Xt(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},s.tweenFromTo=function(t,e,r){return this.tweenTo(e,kt({startAt:{time:Ht(this,t)}},r))},s.recent=function(){return this._recent},s.nextLabel=function(t){return void 0===t&&(t=this._time),pe(this,Ht(this,t))},s.previousLabel=function(t){return void 0===t&&(t=this._time),pe(this,Ht(this,t),1)},s.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+x)},s.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return Pt(this)},s.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},s.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Pt(this)},s.totalDuration=function(t){var e,r,n,i=0,s=this,o=s._last,u=T;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,$t(s,o,r-o._delay,1)._lock=0):u=r,r<0&&o._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),u=0),o._end>i&&o._ts&&(i=o._end),o=e;Xt(s,s===a&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},n.updateRoot=function(t){if(a._ts&&(wt(a,It(t,a)),h=Se.frame),Se.frame>=ut){ut+=b.autoSleep||120;var e=a._first;if((!e||!e._ts)&&b.autoSleep&&Se._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Se.sleep()}}},n}($e);kt(je.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ye,We,Ue=function(t,e,r,n,i,s,a){var o,u,l,c,h,f,p,d,_=new pr(this._pt,t,e,0,1,or,null,i),m=0,g=0;for(_.b=r,_.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=he(n)),s&&(s(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(Y)||[];o=Y.exec(n);)c=o[0],h=n.substring(m,o.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?gt(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},m=Y.lastIndex);return _.c=m<n.length?n.substring(m,n.length):"",_.fp=a,(W.test(n)||p)&&(_.e=0),this._pt=_,_},Xe=function(t,e,r,n,i,s,a,o,u,l){D(n)&&(n=n(i||0,t,s));var c,h=t[e],f="get"!==r?r:D(h)?u?t[e.indexOf("set")||!D(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,p=D(h)?u?rr:er:tr;if(E(n)&&(~n.indexOf("random(")&&(n=he(n)),"="===n.charAt(1)&&((c=gt(f,n)+(Zt(f)||0))||0===c)&&(n=c)),!l||f!==n||We)return isNaN(f*n)||""===n?(!h&&!(e in t)&&J(e,n),Ue.call(this,t,e,f,n,p,o||b.stringFilter,u)):(c=new pr(this._pt,t,e,+f||0,n-(f||0),"boolean"==typeof h?ar:sr,0,p),u&&(c.fp=u),a&&c.modifier(a,this,t),this._pt=c)},Ve=function(t,e,r,n,i,s){var a,o,u,l;if(at[t]&&!1!==(a=new at[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(D(t)&&(t=Je(t,i,e,r,n)),!z(t)||t.style&&t.nodeType||B(t)||N(t))return E(t)?Je(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=Je(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new pr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==f))for(u=r._ptLookup[r._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=o;return a},Ge=function t(e,r,s){var o,u,l,c,h,f,p,d,_,m,g,v,y,b=e.vars,k=b.ease,A=b.startAt,O=b.immediateRender,S=b.lazy,M=b.onUpdate,C=b.runBackwards,E=b.yoyoEase,D=b.keyframes,P=b.autoRevert,R=e._dur,z=e._startAt,L=e._targets,I=e.parent,N=I&&"nested"===I.data?I.vars.targets:L,B="auto"===e._overwrite&&!n,q=e.timeline;if(q&&(!D||!k)&&(k="none"),e._ease=Fe(k,w.ease),e._yEase=E?Re(Fe(!0===E?k:E,w.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!q&&!!b.runBackwards,!q||D&&!b.stagger){if(v=(d=L[0]?ft(L[0]).harness:0)&&b[d.prop],o=St(b,nt),z&&(z._zTime<0&&z.progress(1),r<0&&C&&O&&!P?z.render(-1,!0):z.revert(C&&R?et:tt),z._lazy=0),A){if(Dt(e._startAt=Ze.set(L,kt({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!z&&F(S),startAt:null,delay:0,onUpdate:M&&function(){return de(e,"onUpdate")},stagger:0},A))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(i||!O&&!P)&&e._startAt.revert(et),O&&R&&r<=0&&s<=0)return void(r&&(e._zTime=r))}else if(C&&R&&!z)if(r&&(O=!1),l=kt({overwrite:!1,data:"isFromStart",lazy:O&&!z&&F(S),immediateRender:O,stagger:0,parent:I},o),v&&(l[d.prop]=v),Dt(e._startAt=Ze.set(L,l)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(i?e._startAt.revert(et):e._startAt.render(-1,!0)),e._zTime=r,O){if(!r)return}else t(e._startAt,x,x);for(e._pt=e._ptCache=0,S=R&&F(S)||S&&!R,u=0;u<L.length;u++){if(p=(h=L[u])._gsap||ht(L)[u]._gsap,e._ptLookup[u]=m={},st[p.id]&&it.length&&yt(),g=N===L?u:N.indexOf(h),d&&!1!==(_=new d).init(h,v||o,e,g,N)&&(e._pt=c=new pr(e._pt,h,_.name,0,1,_.render,_,0,_.priority),_._props.forEach(function(t){m[t]=c}),_.priority&&(f=1)),!d||v)for(l in o)at[l]&&(_=Ve(l,o,e,g,h,N))?_.priority&&(f=1):m[l]=c=Xe.call(e,h,l,"get",o[l],g,N,0,b.stringFilter);e._op&&e._op[u]&&e.kill(h,e._op[u]),B&&e._pt&&(Ye=e,a.killTweensOf(h,m,e.globalTime(r)),y=!e.parent,Ye=0),e._pt&&S&&(st[p.id]=1)}f&&fr(e),e._onInit&&e._onInit(e)}e._onUpdate=M,e._initted=(!e._op||e._pt)&&!y,D&&r<=0&&q.render(T,!0,!0)},He=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(B(e))s=r[t]||(r[t]=[]),e.forEach(function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:a})});else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:a})},Je=function(t,e,r,n,i){return D(t)?t.call(e,r,n,i):E(t)&&~t.indexOf("random(")?he(t):t},Ke=ct+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Qe={};dt(Ke+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Qe[t]=1});var Ze=function(t){function s(r,i,s,o){var u;"number"==typeof i&&(s.duration=i,i=s,s=null);var l,c,h,f,p,d,_,m,g=(u=t.call(this,o?i:Mt(i))||this).vars,v=g.duration,y=g.delay,w=g.immediateRender,T=g.stagger,x=g.overwrite,k=g.keyframes,A=g.defaults,O=g.scrollTrigger,S=g.yoyoEase,M=i.parent||a,C=(B(r)||N(r)?P(r[0]):"length"in i)?[r]:ne(r);if(u._targets=C.length?ht(C):K("GSAP target "+r+" not found. https://gsap.com",!b.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=x,k||T||I(v)||I(y)){if(i=u.vars,(l=u.timeline=new je({data:"nested",defaults:A||{},targets:M&&"nested"===M.data?M.vars.targets:C})).kill(),l.parent=l._dp=e(u),l._start=0,T||I(v)||I(y)){if(f=C.length,_=T&&ae(T),z(T))for(p in T)~Ke.indexOf(p)&&(m||(m={}),m[p]=T[p]);for(c=0;c<f;c++)(h=St(i,Qe)).stagger=0,S&&(h.yoyoEase=S),m&&At(h,m),d=C[c],h.duration=+Je(v,e(u),c,d,C),h.delay=(+Je(y,e(u),c,d,C)||0)-u._delay,!T&&1===f&&h.delay&&(u._delay=y=h.delay,u._start+=y,h.delay=0),l.to(d,h,_?_(c,d,C):0),l._ease=Ce.none;l.duration()?v=y=0:u.timeline=0}else if(k){Mt(kt(l.vars.defaults,{ease:"none"})),l._ease=Fe(k.ease||i.ease||"none");var E,D,R,L=0;if(B(k))k.forEach(function(t){return l.to(C,t,">")}),l.duration();else{for(p in h={},k)"ease"===p||"easeEach"===p||He(p,k[p],h,k.easeEach);for(p in h)for(E=h[p].sort(function(t,e){return t.t-e.t}),L=0,c=0;c<E.length;c++)(R={ease:(D=E[c]).e,duration:(D.t-(c?E[c-1].t:0))/100*v})[p]=D.v,l.to(C,R,L),L+=R.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||u.duration(v=l.duration())}else u.timeline=0;return!0!==x||n||(Ye=e(u),a.killTweensOf(C),Ye=0),$t(M,e(u),s),i.reversed&&u.reverse(),i.paused&&u.paused(!0),(w||!v&&!k&&u._start===mt(M._time)&&F(w)&&zt(e(u))&&"nested"!==M.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-y)||0)),O&&jt(e(u),O),u}r(s,t);var o=s.prototype;return o.render=function(t,e,r){var n,s,a,o,u,l,c,h,f,p=this._time,d=this._tDur,_=this._dur,m=t<0,g=t>d-x&&!m?d:t<x?0:t;if(_){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=g,h=this.timeline,this._repeat){if(o=_+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+t,e,r);if(n=mt(g%o),g===d?(a=this._repeat,n=_):(a=~~(u=mt(g/o)))&&a===u?(n=_,a--):n>_&&(n=_),(l=this._yoyo&&1&a)&&(f=this._yEase,n=_-n),u=Lt(this._tTime,o),n===p&&!r&&this._initted&&a===u)return this._tTime=g,this;a!==u&&(h&&this._yEase&&ze(h,l),this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(mt(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(Yt(this,m?t:n,r,e,g))return this._tTime=0,this;if(!(p===this._time||r&&this.vars.repeatRefresh&&a!==u))return this;if(_!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(n/_),this._from&&(this.ratio=c=1-c),!p&&g&&!e&&!u&&(de(this,"onStart"),this._tTime!==g))return this;for(s=this._pt;s;)s.r(c,s.d),s=s._next;h&&h.render(t<0?t:h._dur*h._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Rt(this,t,0,r),de(this,"onUpdate")),this._repeat&&a!==u&&this.vars.onRepeat&&!e&&this.parent&&de(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Rt(this,t,0,!0),(t||!_)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Dt(this,1),e||m&&!p||!(g||p||l)||(de(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var s,a,o,u=t.ratio,l=e<0||!e&&(!t._start&&Wt(t)&&(t._initted||!Ut(t))||(t._ts<0||t._dp._ts<0)&&!Ut(t))?0:1,c=t._rDelay,h=0;if(c&&t._repeat&&(h=Qt(0,t._tDur,e),a=Lt(h,c),t._yoyo&&1&a&&(l=1-l),a!==Lt(t._tTime,c)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||i||n||t._zTime===x||!e&&t._zTime){if(!t._initted&&Yt(t,e,n,r,h))return;for(o=t._zTime,t._zTime=e||(r?x:0),r||(r=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=h,s=t._pt;s;)s.r(l,s.d),s=s._next;e<0&&Rt(t,e,0,!0),t._onUpdate&&!r&&de(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&de(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Dt(t,1),r||i||(de(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},o.targets=function(){return this._targets},o.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},o.resetTo=function(t,e,r,n,i){p||Se.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ge(this,s),function(t,e,r,n,i,s,a,o){var u,l,c,h,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((u=c[h][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return We=1,t.vars[e]="+=0",Ge(t,a),We=0,o?K(e+" not eligible for reset"):1;f.push(u)}for(h=f.length;h--;)(u=(l=f[h])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=_t(r)+Zt(l.e)),l.b&&(l.b=u.s+Zt(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Bt(this,0),this.parent||Ct(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?_e(this):this.scrollTrigger&&this.scrollTrigger.kill(!!i),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ye&&!0!==Ye.vars.overwrite)._first||_e(this),this.parent&&r!==this.timeline.totalDuration()&&Xt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,s,a,o,u,l,c,h=this._targets,f=t?ne(t):h,p=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(h,f))return"all"===e&&(this._pt=0),_e(this);for(n=this._op=this._op||[],"all"!==e&&(E(e)&&(u={},dt(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,n,i,s,a=t[0]?ft(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=At({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(h,e)),c=h.length;c--;)if(~f.indexOf(h[c]))for(u in s=p[c],"all"===e?(n[c]=e,o=s,a={}):(a=n[c]=n[c]||{},o=e),o)(l=s&&s[u])&&("kill"in l.d&&!0!==l.d.kill(u)||Et(this,l,"_pt"),delete s[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&d&&_e(this),this},s.to=function(t,e){return new s(t,e,arguments[2])},s.from=function(t,e){return Jt(1,arguments)},s.delayedCall=function(t,e,r,n){return new s(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},s.fromTo=function(t,e,r){return Jt(2,arguments)},s.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new s(t,e)},s.killTweensOf=function(t,e,r){return a.killTweensOf(t,e,r)},s}($e);kt(Ze.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),dt("staggerTo,staggerFrom,staggerFromTo",function(t){Ze[t]=function(){var e=new je,r=te.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var tr=function(t,e,r){return t[e]=r},er=function(t,e,r){return t[e](r)},rr=function(t,e,r,n){return t[e](n.fp,r)},nr=function(t,e,r){return t.setAttribute(e,r)},ir=function(t,e){return D(t[e])?er:R(t[e])&&t.setAttribute?nr:tr},sr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ar=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},or=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},ur=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},lr=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},cr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Et(this,n,"_pt"):n.dep||(e=1),n=r;return!e},hr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},fr=function(t){for(var e,r,n,i,s=t._pt;s;){for(e=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=e}t._pt=n},pr=function(){function t(t,e,r,n,i,s,a,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||sr,this.d=a||this,this.set=o||tr,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=hr,this.m=t,this.mt=r,this.tween=e},t}();dt(ct+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return nt[t]=1}),V.TweenMax=V.TweenLite=Ze,V.TimelineLite=V.TimelineMax=je,a=new je({sortChildren:!1,defaults:w,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),b.stringFilter=Oe;var dr=[],_r={},mr=[],gr=0,vr=0,yr=function(t){return(_r[t]||mr).map(function(t){return t()})},br=function(){var t=Date.now(),e=[];t-gr>2&&(yr("matchMediaInit"),dr.forEach(function(t){var r,n,i,s,a=t.queries,u=t.conditions;for(n in a)(r=o.matchMedia(a[n]).matches)&&(i=1),r!==u[n]&&(u[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),yr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),gr=t,yr("matchMedia"))},wr=function(){function t(t,e){this.selector=e&&ie(e),this.data=[],this._r=[],this.isReverted=!1,this.id=vr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){D(t)&&(r=e,e=t,t=D);var n=this,i=function(){var t,i=s,a=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=ie(r)),s=n,t=e.apply(n,arguments),D(t)&&n._r.push(t),s=i,n.selector=a,n.isReverted=!1,t};return n.last=i,t===D?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=s;s=null,t(this),s=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Ze&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach(function(t){return n.splice(n.indexOf(t),1)}));for(n.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(e){return e.t.revert(t)}),i=r.data.length;i--;)(e=r.data[i])instanceof je?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Ze)&&e.revert&&e.revert(t);r._r.forEach(function(e){return e(t,r)}),r.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),e)for(var n=dr.length;n--;)dr[n].id===this.id&&dr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Tr=function(){function t(t){this.contexts=[],this.scope=t,s&&s.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){z(t)||(t={matches:t});var n,i,a,u=new wr(0,r||this.scope),l=u.conditions={};for(i in s&&!u.selector&&(u.selector=s.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===i?a=1:(n=o.matchMedia(t[i]))&&(dr.indexOf(u)<0&&dr.push(u),(l[i]=n.matches)&&(a=1),n.addListener?n.addListener(br):n.addEventListener("change",br));return a&&e(u,function(t){return u.add(null,t)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(e){return e.kill(t,!0)})},t}(),xr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return ge(t)})},timeline:function(t){return new je(t)},getTweensOf:function(t,e){return a.getTweensOf(t,e)},getProperty:function(t,e,r,n){E(t)&&(t=ne(t)[0]);var i=ft(t||{}).get,s=r?xt:Tt;return"native"===r&&(r=""),t?e?s((at[e]&&at[e].get||i)(t,e,r,n)):function(e,r,n){return s((at[e]&&at[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=ne(t)).length>1){var n=t.map(function(t){return Or.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=at[e],a=ft(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;f._pt=0,n.init(t,r?e+r:e,f,0,[t]),n.render(1,n),f._pt&&ur(1,f)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var n,i=Or.to(t,kt(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),s=function(t,r,n){return i.resetTo(e,t,r,n)};return s.tween=i,s},isTweening:function(t){return a.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Fe(t.ease,w.ease)),Ot(w,t||{})},config:function(t){return Ot(b,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach(function(t){return t&&!at[t]&&!V[t]&&K(e+" effect requires "+t+" plugin.")}),ot[e]=function(t,e,n){return r(ne(t),kt(e||{},i),n)},s&&(je.prototype[e]=function(t,r,n){return this.add(ot[e](t,z(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ce[t]=Fe(e)},parseEase:function(t,e){return arguments.length?Fe(t,e):Ce},getById:function(t){return a.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new je(t);for(i.smoothChildTiming=F(t.smoothChildTiming),a.remove(i),i._dp=0,i._time=i._tTime=a._time,r=a._first;r;)n=r._next,!e&&!r._dur&&r instanceof Ze&&r.vars.onComplete===r._targets[0]||$t(i,r,r._start-r._delay),r=n;return $t(a,i,0),i},context:function(t,e){return t?new wr(t,e):s},matchMedia:function(t){return new Tr(t)},matchMediaRefresh:function(){return dr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||br()},addEventListener:function(t,e){var r=_r[t]||(_r[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=_r[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return B(e)?ce(e,t(0,e.length),r):Kt(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return B(e)?ce(e,t(0,e.length-1),r):Kt(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:ae,random:le,snap:ue,normalize:function(t,e,r){return fe(t,e,0,1,r)},getUnit:Zt,clamp:function(t,e,r){return Kt(r,function(r){return Qt(t,e,r)})},splitColor:we,toArray:ne,selector:ie,mapRange:fe,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||Zt(r))}},interpolate:function t(e,r,n,i){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,l,c,h=E(e),f={};if(!0===n&&(i=1)&&(n=null),h)e={p:e},r={p:r};else if(B(e)&&!B(r)){for(u=[],l=e.length,c=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,s=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},n=r}else i||(e=At(B(e)?[]:{},e));if(!u){for(a in r)Xe.call(f,e,a,"get",r[a]);s=function(t){return ur(t,f)||(h?e.p:e)}}}return Kt(n,s)},shuffle:se},install:H,effects:ot,ticker:Se,updateRoot:je.updateRoot,plugins:at,globalTimeline:a,core:{PropTween:pr,globals:Q,Tween:Ze,Timeline:je,Animation:$e,getCache:ft,_removeLinkedListItem:Et,reverting:function(){return i},context:function(t){return t&&s&&(s.data.push(t),t._ctx=s),s},suppressOverwrites:function(t){return n=t}}};dt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return xr[t]=Ze[t]}),Se.add(je.updateRoot),f=xr.to({},{duration:0});var kr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Ar=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(E(r)&&(n={},dt(r,function(t){return n[t]=1}),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=kr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Or=xr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],n,i,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)i?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Ar("roundProps",oe),Ar("modifiers"),Ar("snap",ue))||xr;Ze.version=je.version=Or.version="3.13.0",c=1,L()&&Me(),Ce.Power0,Ce.Power1,Ce.Power2,Ce.Power3,Ce.Power4,Ce.Linear,Ce.Quad,Ce.Cubic,Ce.Quart,Ce.Quint,Ce.Strong,Ce.Elastic,Ce.Back,Ce.SteppedEase,Ce.Bounce,Ce.Sine,Ce.Expo,Ce.Circ;
10
+ /*!
11
+ * CSSPlugin 3.13.0
12
+ * https://gsap.com
13
+ *
14
+ * Copyright 2008-2025, GreenSock. All rights reserved.
15
+ * Subject to the terms at https://gsap.com/standard-license
16
+ * @author: Jack Doyle, jack@greensock.com
17
+ */
18
+ var Sr,Mr,Cr,Er,Dr,Pr,Rr,zr,Fr={},Lr=180/Math.PI,Ir=Math.PI/180,Nr=Math.atan2,Br=/([A-Z])/g,qr=/(left|right|width|margin|padding|x)/i,$r=/[\s,\(]\S/,jr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Yr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Wr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ur=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Xr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Vr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Gr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Hr=function(t,e,r){return t.style[e]=r},Jr=function(t,e,r){return t.style.setProperty(e,r)},Kr=function(t,e,r){return t._gsap[e]=r},Qr=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Zr=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},tn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},en="transform",rn=en+"Origin",nn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Fr&&s){if(this.tfm=this.tfm||{},"transform"===e)return jr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=jr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Tn(i,t)}):this.tfm[e]=a.x?a[e]:Tn(i,e),e===rn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(en)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(rn,r,"")),e=en}(s||r)&&this.props.push(e,r,s[e])},sn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},an=function(){var t,e,r=this.props,n=this.target,i=n.style,s=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?n[r[t]](r[t+2]):n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(Br,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=Rr())&&t.isStart||i[en]||(sn(i),s.zOrigin&&i[rn]&&(i[rn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},on=function(t,e){var r={target:t,props:[],revert:an,save:nn};return t._gsap||Or.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},un=function(t,e){var r=Mr.createElementNS?Mr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Mr.createElement(t);return r&&r.style?r:Mr.createElement(t)},ln=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Br,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,hn(r)||r,1)||""},cn="O,Moz,ms,Ms,Webkit".split(","),hn=function(t,e,r){var n=(e||Dr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(cn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?cn[i]:"")+t},fn=function(){"undefined"!=typeof window&&window.document&&(Sr=window,Mr=Sr.document,Cr=Mr.documentElement,Dr=un("div")||{style:{}},un("div"),en=hn(en),rn=en+"Origin",Dr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",zr=!!hn("perspective"),Rr=Or.core.reverting,Er=1)},pn=function(t){var e,r=t.ownerSVGElement,n=un("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Cr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Cr.removeChild(n),e},dn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},_n=function(t){var e,r;try{e=t.getBBox()}catch(n){e=pn(t),r=1}return e&&(e.width||e.height)||r||(e=pn(t)),!e||e.width||e.x||e.y?e:{x:+dn(t,["x","cx","x1"])||0,y:+dn(t,["y","cy","y1"])||0,width:0,height:0}},mn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!_n(t))},gn=function(t,e){if(e){var r,n=t.style;e in Fr&&e!==rn&&(e=en),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Br,"-$1").toLowerCase())):n.removeAttribute(e)}},vn=function(t,e,r,n,i,s){var a=new pr(t._pt,e,r,0,1,s?Gr:Vr);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},yn={deg:1,rad:1,turn:1},bn={grid:1,flex:1},wn=function t(e,r,n,i){var s,a,o,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",h=Dr.style,f=qr.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(f?"Width":"Height"),_=100,m="px"===i,g="%"===i;if(i===c||!l||yn[i]||yn[c])return l;if("px"!==c&&!m&&(l=t(e,r,n,"px")),u=e.getCTM&&mn(e),(g||"%"===c)&&(Fr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[f?"width":"height"]:e[d],_t(g?l/s*_:l/100*s);if(h[f?"width":"height"]=_+(m?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Mr&&a.appendChild||(a=Mr.body),(o=a._gsap)&&g&&o.width&&f&&o.time===Se.time&&!o.uncache)return _t(l/o.width*_);if(!g||"height"!==r&&"width"!==r)(g||"%"===c)&&!bn[ln(a,"display")]&&(h.position=ln(e,"position")),a===e&&(h.position="static"),a.appendChild(Dr),s=Dr[d],a.removeChild(Dr),h.position="absolute";else{var v=e.style[r];e.style[r]=_+i,s=e[d],v?e.style[r]=v:gn(e,r)}return f&&g&&((o=ft(a)).time=Se.time,o.width=a[d]),_t(m?s*l/_:s&&l?_/s*l:0)},Tn=function(t,e,r,n){var i;return Er||fn(),e in jr&&"transform"!==e&&~(e=jr[e]).indexOf(",")&&(e=e.split(",")[0]),Fr[e]&&"transform"!==e?(i=zn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Fn(ln(t,rn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Sn[e]&&Sn[e](t,e,r)||ln(t,e)||pt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?wn(t,e,i,r)+r:i},xn=function(t,e,r,n){if(!r||"none"===r){var i=hn(e,t,1),s=i&&ln(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=ln(t,"borderTopColor"))}var a,o,u,l,c,h,f,p,d,_,m,g=new pr(this._pt,t.style,e,0,1,or),v=0,y=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=ln(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=ln(t,e)||n,h?t.style[e]=h:gn(t,e)),Oe(a=[r,n]),n=a[1],u=(r=a[0]).match(j)||[],(n.match(j)||[]).length){for(;o=j.exec(n);)f=o[0],d=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),f!==(h=u[y++]||"")&&(l=parseFloat(h)||0,m=h.substr((l+"").length),"="===f.charAt(1)&&(f=gt(l,f)+m),p=parseFloat(f),_=f.substr((p+"").length),v=j.lastIndex-_.length,_||(_=_||b.units[e]||m,v===n.length&&(n+=_,g.e+=_)),m!==_&&(l=wn(t,e,h,_)||0),g._pt={_next:g._pt,p:d||1===y?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}else g.r="display"===e&&"none"===n?Gr:Vr;return W.test(n)&&(g.e=0),this._pt=g,g},kn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},An=function(t){var e=t.split(" "),r=e[0],n=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==n&&"right"!==n||(t=r,r=n,n=t),e[0]=kn[r]||r,e[1]=kn[n]||n,e.join(" ")},On=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,a=s.style,o=e.u,u=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)r=o[i],Fr[r]&&(n=1,r="transformOrigin"===r?rn:en),gn(s,r);n&&(gn(s,en),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",zn(s,1),u.uncache=1,sn(a)))}},Sn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new pr(t._pt,e,r,0,0,On);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Mn=[1,0,0,1,0,0],Cn={},En=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Dn=function(t){var e=ln(t,en);return En(e)?Mn:e.substr(7).match($).map(_t)},Pn=function(t,e){var r,n,i,s,a=t._gsap||ft(t),o=t.style,u=Dn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Mn:u:(u!==Mn||t.offsetParent||t===Cr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Cr.appendChild(t)),u=Dn(t),i?o.display=i:gn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Cr.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Rn=function(t,e,r,n,i,s){var a,o,u,l=t._gsap,c=i||Pn(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,_=c[0],m=c[1],g=c[2],v=c[3],y=c[4],b=c[5],w=e.split(" "),T=parseFloat(w[0])||0,x=parseFloat(w[1])||0;r?c!==Mn&&(o=_*v-m*g)&&(u=T*(-m/o)+x*(_/o)-(_*b-m*y)/o,T=T*(v/o)+x*(-g/o)+(g*b-v*y)/o,x=u):(T=(a=_n(t)).x+(~w[0].indexOf("%")?T/100*a.width:T),x=a.y+(~(w[1]||w[0]).indexOf("%")?x/100*a.height:x)),n||!1!==n&&l.smooth?(y=T-h,b=x-f,l.xOffset=p+(y*_+b*g)-y,l.yOffset=d+(y*m+b*v)-b):l.xOffset=l.yOffset=0,l.xOrigin=T,l.yOrigin=x,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[rn]="0px 0px",s&&(vn(s,l,"xOrigin",h,T),vn(s,l,"yOrigin",f,x),vn(s,l,"xOffset",p,l.xOffset),vn(s,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",T+" "+x)},zn=function(t,e){var r=t._gsap||new qe(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,u,l,c,h,f,p,d,_,m,g,v,y,w,T,x,k,A,O,S,M,C,E,D,P,R,z,F,L=t.style,I=r.scaleX<0,N="px",B="deg",q=getComputedStyle(t),$=ln(t,rn)||"0";return n=i=s=u=l=c=h=f=p=0,a=o=1,r.svg=!(!t.getCTM||!mn(t)),q.translate&&("none"===q.translate&&"none"===q.scale&&"none"===q.rotate||(L[en]=("none"!==q.translate?"translate3d("+(q.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==q.rotate?"rotate("+q.rotate+") ":"")+("none"!==q.scale?"scale("+q.scale.split(" ").join(",")+") ":"")+("none"!==q[en]?q[en]:"")),L.scale=L.rotate=L.translate="none"),m=Pn(t,r.svg),r.svg&&(r.uncache?(M=t.getBBox(),$=r.xOrigin-M.x+"px "+(r.yOrigin-M.y)+"px",S=""):S=!e&&t.getAttribute("data-svg-origin"),Rn(t,S||$,!!S||r.originIsAbsolute,!1!==r.smooth,m)),d=r.xOrigin||0,_=r.yOrigin||0,m!==Mn&&(w=m[0],T=m[1],x=m[2],k=m[3],n=A=m[4],i=O=m[5],6===m.length?(a=Math.sqrt(w*w+T*T),o=Math.sqrt(k*k+x*x),u=w||T?Nr(T,w)*Lr:0,(h=x||k?Nr(x,k)*Lr+u:0)&&(o*=Math.abs(Math.cos(h*Ir))),r.svg&&(n-=d-(d*w+_*x),i-=_-(d*T+_*k))):(F=m[6],R=m[7],E=m[8],D=m[9],P=m[10],z=m[11],n=m[12],i=m[13],s=m[14],l=(g=Nr(F,P))*Lr,g&&(S=A*(v=Math.cos(-g))+E*(y=Math.sin(-g)),M=O*v+D*y,C=F*v+P*y,E=A*-y+E*v,D=O*-y+D*v,P=F*-y+P*v,z=R*-y+z*v,A=S,O=M,F=C),c=(g=Nr(-x,P))*Lr,g&&(v=Math.cos(-g),z=k*(y=Math.sin(-g))+z*v,w=S=w*v-E*y,T=M=T*v-D*y,x=C=x*v-P*y),u=(g=Nr(T,w))*Lr,g&&(S=w*(v=Math.cos(g))+T*(y=Math.sin(g)),M=A*v+O*y,T=T*v-w*y,O=O*v-A*y,w=S,A=M),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=_t(Math.sqrt(w*w+T*T+x*x)),o=_t(Math.sqrt(O*O+F*F)),g=Nr(A,O),h=Math.abs(g)>2e-4?g*Lr:0,p=z?1/(z<0?-z:z):0),r.svg&&(S=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!En(ln(t,en)),S&&t.setAttribute("transform",S))),Math.abs(h)>90&&Math.abs(h)<270&&(I?(a*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,h+=h<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+N,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+N,r.z=s+N,r.scaleX=_t(a),r.scaleY=_t(o),r.rotation=_t(u)+B,r.rotationX=_t(l)+B,r.rotationY=_t(c)+B,r.skewX=h+B,r.skewY=f+B,r.transformPerspective=p+N,(r.zOrigin=parseFloat($.split(" ")[2])||!e&&r.zOrigin||0)&&(L[rn]=Fn($)),r.xOffset=r.yOffset=0,r.force3D=b.force3D,r.renderTransform=r.svg?jn:zr?$n:In,r.uncache=0,r},Fn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ln=function(t,e,r){var n=Zt(e);return _t(parseFloat(e)+parseFloat(wn(t,"x",r+"px",n)))+n},In=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,$n(t,e)},Nn="0deg",Bn="0px",qn=") ",$n=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,a=r.y,o=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,h=r.skewX,f=r.skewY,p=r.scaleX,d=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==Nn||l!==Nn)){var w,T=parseFloat(l)*Ir,x=Math.sin(T),k=Math.cos(T);T=parseFloat(c)*Ir,w=Math.cos(T),s=Ln(g,s,x*w*-v),a=Ln(g,a,-Math.sin(T)*-v),o=Ln(g,o,k*w*-v+v)}_!==Bn&&(y+="perspective("+_+qn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==Bn||a!==Bn||o!==Bn)&&(y+=o!==Bn||b?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+qn),u!==Nn&&(y+="rotate("+u+qn),l!==Nn&&(y+="rotateY("+l+qn),c!==Nn&&(y+="rotateX("+c+qn),h===Nn&&f===Nn||(y+="skew("+h+", "+f+qn),1===p&&1===d||(y+="scale("+p+", "+d+qn),g.style[en]=y||"translate(0, 0)"},jn=function(t,e){var r,n,i,s,a,o=e||this,u=o.xPercent,l=o.yPercent,c=o.x,h=o.y,f=o.rotation,p=o.skewX,d=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,b=o.xOffset,w=o.yOffset,T=o.forceCSS,x=parseFloat(c),k=parseFloat(h);f=parseFloat(f),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),f+=d),f||p?(f*=Ir,p*=Ir,r=Math.cos(f)*_,n=Math.sin(f)*_,i=Math.sin(f-p)*-m,s=Math.cos(f-p)*m,p&&(d*=Ir,a=Math.tan(p-d),i*=a=Math.sqrt(1+a*a),s*=a,d&&(a=Math.tan(d),r*=a=Math.sqrt(1+a*a),n*=a)),r=_t(r),n=_t(n),i=_t(i),s=_t(s)):(r=_,s=m,n=i=0),(x&&!~(c+"").indexOf("px")||k&&!~(h+"").indexOf("px"))&&(x=wn(g,"x",c,"px"),k=wn(g,"y",h,"px")),(v||y||b||w)&&(x=_t(x+v-(v*r+y*i)+b),k=_t(k+y-(v*n+y*s)+w)),(u||l)&&(a=g.getBBox(),x=_t(x+u/100*a.width),k=_t(k+l/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+x+","+k+")",g.setAttribute("transform",a),T&&(g.style[en]=a)},Yn=function(t,e,r,n,i){var s,a,o=360,u=E(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Lr:1)-n,c=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=o)!==l%180&&(l+=l<0?o:-360),"cw"===s&&l<0?l=(l+36e9)%o-~~(l/o)*o:"ccw"===s&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),t._pt=a=new pr(t._pt,e,r,n,l,Wr),a.e=c,a.u="deg",t._props.push(r),a},Wn=function(t,e){for(var r in e)t[r]=e[r];return t},Un=function(t,e,r){var n,i,s,a,o,u,l,c=Wn({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[en]=e,n=zn(r,1),gn(r,en),r.setAttribute("transform",s)):(s=getComputedStyle(r)[en],h[en]=e,n=zn(r,1),h[en]=s),Fr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=Zt(s)!==(l=Zt(a))?wn(r,i,s,l):parseFloat(s),u=parseFloat(a),t._pt=new pr(t._pt,n,i,o,u-o,Yr),t._pt.u=l||0,t._props.push(i));Wn(n,c)};dt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",a=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map(function(r){return e<2?t+r:"border"+r+t});Sn[e>1?"border"+t:t]=function(t,e,r,n,i){var s,o;if(arguments.length<4)return s=a.map(function(e){return Tn(t,e,r)}),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(n+"").split(" "),o={},a.forEach(function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,o,i)}});var Xn,Vn,Gn,Hn={name:"css",register:fn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,u,l,c,h,f,p,d,_,m,g,v,y,w,T=this._props,x=t.style,k=r.vars.startAt;for(h in Er||fn(),this.styles=this.styles||on(t),w=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(a=e[h],!at[h]||!Ve(h,e,r,n,t,i)))if(l=typeof a,c=Sn[h],"function"===l&&(l=typeof(a=a.call(r,n,t,i))),"string"===l&&~a.indexOf("random(")&&(a=he(a)),c)c(this,t,h,a,r)&&(y=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",ke.lastIndex=0,ke.test(s)||(f=Zt(s),p=Zt(a)),p?f!==p&&(s=wn(t,h,s,p)+p):f&&(a+=f),this.add(x,"setProperty",s,a,n,i,0,0,h),T.push(h),w.push(h,0,x[h]);else if("undefined"!==l){if(k&&h in k?(s="function"==typeof k[h]?k[h].call(r,n,t,i):k[h],E(s)&&~s.indexOf("random(")&&(s=he(s)),Zt(s+"")||"auto"===s||(s+=b.units[h]||Zt(Tn(t,h))||""),"="===(s+"").charAt(1)&&(s=Tn(t,h))):s=Tn(t,h),u=parseFloat(s),(d="string"===l&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),h in jr&&("autoAlpha"===h&&(1===u&&"hidden"===Tn(t,"visibility")&&o&&(u=0),w.push("visibility",0,x.visibility),vn(this,x,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=jr[h]).indexOf(",")&&(h=h.split(",")[0])),_=h in Fr)if(this.styles.save(h),"string"===l&&"var(--"===a.substring(0,6)&&(a=ln(t,a.substring(4,a.indexOf(")"))),o=parseFloat(a)),m||((g=t._gsap).renderTransform&&!e.parseTransform||zn(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new pr(this._pt,x,en,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new pr(this._pt,g,"scaleY",g.scaleY,(d?gt(g.scaleY,d+o):o)-g.scaleY||0,Yr),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(rn,0,x[rn]),a=An(a),g.svg?Rn(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&vn(this,g,"zOrigin",g.zOrigin,p),vn(this,x,h,Fn(s),Fn(a)));continue}if("svgOrigin"===h){Rn(t,a,1,v,0,this);continue}if(h in Cn){Yn(this,g,h,u,d?gt(u,d+a):a);continue}if("smoothOrigin"===h){vn(this,g,"smooth",g.smooth,a);continue}if("force3D"===h){g[h]=a;continue}if("transform"===h){Un(this,a,t);continue}}else h in x||(h=hn(h)||h);if(_||(o||0===o)&&(u||0===u)&&!$r.test(a)&&h in x)o||(o=0),(f=(s+"").substr((u+"").length))!==(p=Zt(a)||(h in b.units?b.units[h]:f))&&(u=wn(t,h,s,p)),this._pt=new pr(this._pt,_?g:x,h,u,(d?gt(u,d+o):o)-u,_||"px"!==p&&"zIndex"!==h||!1===e.autoRound?Yr:Xr),this._pt.u=p||0,f!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=Ur);else if(h in x)xn.call(this,t,h,s,d?d+a:a);else if(h in t)this.add(t,h,s||t[h],d?d+a:a,n,i);else if("parseTransform"!==h){J(h,a);continue}_||(h in x?w.push(h,0,x[h]):"function"==typeof t[h]?w.push(h,2,t[h]()):w.push(h,1,s||t[h])),T.push(h)}y&&fr(this)},render:function(t,e){if(e.tween._time||!Rr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Tn,aliases:jr,getSetter:function(t,e,r){var n=jr[e];return n&&n.indexOf(",")<0&&(e=n),e in Fr&&e!==rn&&(t._gsap.x||Tn(t,"x"))?r&&Pr===r?"scale"===e?Qr:Kr:(Pr=r||{})&&("scale"===e?Zr:tn):t.style&&!R(t.style[e])?Hr:~e.indexOf("-")?Jr:ir(t,e)},core:{_removeProperty:gn,_getMatrix:Pn}};Or.utils.checkPrefix=hn,Or.core.getStyleSaver=on,Gn=dt((Xn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Vn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Fr[t]=1}),dt(Vn,function(t){b.units[t]="deg",Cn[t]=1}),jr[Gn[13]]=Xn+","+Vn,dt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");jr[e[1]]=Gn[e[0]]}),dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){b.units[t]="px"}),Or.registerPlugin(Hn);var Jn=Or.registerPlugin(Hn)||Or;let Kn;Jn.core.Tween;let Qn=t=>{let e=t;const r=new Set,n={get value(){return Kn&&Kn.deps.push(r.add(Kn)),e},set value(t){if(t!==e){e=t;for(const t of r)t()}},peek:()=>e,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},Zn=t=>{let e,r;const n=()=>{e&&e.call(),r=Kn,Kn=n;try{e=t()}finally{Kn=r}};return n.deps=[],n(),()=>{let t;for(e&&e.call();t=n.deps.pop();)t.delete(n)}},ti=t=>{const e=Qn();let r;const n={get value(){return r||(r=Zn(()=>{e.value=t()})),e.value},peek:e.peek,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},ei=t=>t(),ri=ei;const ni=Symbol("signals"),ii=Symbol("change"),si="__",ai=["push","pop","shift","unshift","splice"],oi=(t,e,r)=>{const n=t[e],i=n?.peek();"_"!==e[0]?n?r!==i&&(n._set?n._set(r):Array.isArray(r)&&Array.isArray(i)?i[ii]?ei(()=>{for(let t=0;t<r.length;t++)i[t]=r[t];i.length=r.length}):n.value=r:n.value=ui(r)):t[e]=r?.peek?r:Qn(ui(r)):t[e]=r},ui=(t,e)=>{if(!t)return t;if(t[ni]||t[Symbol.toStringTag])return t;if(t.constructor!==Object)return Array.isArray(t)?li(t):t;const r=Object.create(e?.[ni]||{}),n=Qn(Object.keys(t).length);let i;const s=new Proxy(r,{get:(t,e)=>e===ii?n:e===ni?r:e===si?i:e in r?r[e]?.valueOf():globalThis[e],set(t,e,s){if(e===si)return i=s,!0;const a=e in r;return oi(r,e,s),a||n.value++,!0},deleteProperty(t,e){const i=r[e];return i&&(i[Symbol.dispose]?.(),delete r[e],n.value--),!0},ownKeys:t=>(n.value,Reflect.ownKeys(r)),has:(t,e)=>!0}),a=Object.getOwnPropertyDescriptors(t);for(const e in t){const n=a[e];if(n?.get){const t=ti(n.get.bind(s));t._set=n.set?.bind(s),r[e]=t}else r[e]=null,oi(r,e,t[e])}return s},li=t=>{let e;const r=Qn(t.length),n=Array(t.length).fill(),i=new Proxy(n,{get:(i,s)=>"symbol"==typeof s?s===ii?r:s===ni?n:n[s]:"length"===s?ai.includes(e)?r.peek():r.value:(e=s,n[s]||(n[s]=Qn(ui(t[s]))),n[s].valueOf()),set(t,e,s){if("length"===e){for(let t=s;t<n.length;t++)delete i[t];return r.value=n.length=s,!0}return oi(n,e,s),e>=r.peek()&&(r.value=n.length=+e+1),!0},deleteProperty:(t,e)=>(n[e]?.[Symbol.dispose]?.(),delete n[e],!0)});return i},ci=t=>{const e=bi(`${t}=${si}`);return(t,r)=>{t[si]=r,e(t)}},hi=Symbol.dispose||=Symbol("dispose"),fi=Symbol("state"),pi=Symbol("on"),di=Symbol("off"),_i={},mi={};let gi,vi=":";const yi=(t,e,r=bi)=>{_i[t]=(t,n,i,s)=>{const a=e(t,i,n,s),o=r(n,":"+s);return()=>a(o(i))}},bi=(t,e)=>{const r=t.trim();if(mi[r])return mi[r];let n;try{n=gi(r)}catch(t){wi(t,e,r)}const i=t=>{try{return n(t)}catch(t){wi(t,e,r)}};return mi[r]=i,i},wi=(t,e="",r="")=>{const n=r?`="${r}"\n\n`:"",i=`◆ ${t.message}\n\n${e}${n}`;throw Object.assign(t,{message:i,expr:r})},Ti=(t,e=t.attributes,r,n,i)=>{if(!e)return;let s=0;for(;s<e.length;){const a=e[s],{name:o,value:u}=a;if(o.startsWith(vi)){t.removeAttribute(o);const e=o.slice(vi.length).split(":");for(const s of e){const e=(_i[s]||_i.default)(t,u,r,s);if(n.push(e),i.push(Zn(e)),null===t[fi])return}}else s++}for(const e of t.childNodes)1===e.nodeType&&Ti(e,e.attributes,r,n,i)},xi=(t=document.body,e)=>{if(t[fi])return Object.assign(t[fi],e);const r=ui(e||{}),n=[],i=[];return Ti(t,t.attributes,r,i,n),fi in t||(t[fi]=r,t[di]=()=>{n.forEach(t=>t()),n.length=0},t[pi]=()=>{n.length=0,n.push(...i.map(t=>Zn(t)))},t[hi]=()=>{t[di](),t[di]=null,t[pi]=null,t[hi]=null,t[fi]=null}),r};xi.use=t=>{var e;t.signal&&(Qn=(e=t).signal,Zn=e.effect,ti=e.computed,ei=e.batch||ei,ri=e.untracked||ri),t.compile&&(gi=t.compile),t.prefix&&(vi=t.prefix)};const ki=t=>{if(!t.nodeType)return t;const e=t.content.cloneNode(!0),r=[...t.attributes],n=document.createTextNode("");e.append(n);const i=[...e.childNodes];return{childNodes:i,content:e,remove(){e.append(...i)},replaceWith(t){t!==n&&(n.before(t),e.append(...i))},attributes:r,removeAttribute(t){const e=r.findIndex(e=>e.name===t);-1!==e&&r.splice(e,1)}}},Ai=Symbol("if");yi("if",(t,e)=>{const r=document.createTextNode("");let n,i,s,a=t.nextElementSibling;return t.replaceWith(r),i=t.content?ki(t):t,i[fi]=null,a?.hasAttribute(":else")?(a.removeAttribute(":else"),a.hasAttribute(":if")||(a.remove(),s=a.content?ki(a):a,s[fi]=null)):a=null,(o,u=(t[Ai]?null:o?i:s))=>{a&&(a[Ai]=t[Ai]||u==i),n!=u&&(n&&(n.remove(),n[di]?.()),(n=u)&&(r.before(n.content||n),null===n[fi]?(delete n[fi],xi(n,e)):n[pi]()))}}),yi("each",(t,e,r)=>{const[n,i="$"]=r.split(/\bin\b/)[0].trim().split(/\s*,\s*/),s=document.createTextNode("");let a,o,u,l=0;const c=()=>{const r=u,c=r.length;let h=0;if(a&&!a[ii]){for(const t of a[ni]||[])t[Symbol.dispose]();a=null,l=0}if(c<l)a.length=c;else{if(a)for(;h<l;)a[h]=r[h],h++;else a=r;for(;h<c;h++){a[h]=r[h];const u=h,l=ui({[n]:a[ni]?.[u]||a[u],[i]:o?o[u]:u},e),c=t.content?ki(t):t.cloneNode(!0);s.before(c.content||c),xi(c,l);const f=((a[ni]||=[])[h]||={})[Symbol.dispose];a[ni][h][Symbol.dispose]=()=>{f?.(),c[Symbol.dispose]?.(),c.remove()}}}l=c};return t.replaceWith(s),t[fi]=null,t=>{o=null,"number"==typeof t?u=Array.from({length:t},(t,e)=>e+1):t?.constructor===Object?(o=Object.keys(t),u=Object.values(t)):u=t||[];let e=0;return Zn(()=>{u[ii],e++||(c(),queueMicrotask(()=>{e>1&&c(),e=0}))})}},t=>bi(t.split(/\bin\b/)[1])),yi("ref",(t,e,r)=>"function"==typeof bi(r)(e)?e=>e?.call(null,t):(ci(r)(e,t),t=>t)),yi("with",(t,e)=>{let r;return n=>{r?xi(t,n):ri(()=>{r=ui(n,e),xi(t,r)})}}),yi("text",t=>{if(t.content){const e=ki(t).childNodes[0];t.replaceWith(e),t=e}return e=>{t.textContent=e??""}}),yi("class",t=>{let e=new Set;return r=>{const n=new Set;r&&("string"==typeof r?r.split(" ").forEach(t=>n.add(t)):Array.isArray(r)?r.forEach(t=>t&&n.add(t)):Object.entries(r).forEach(([t,e])=>e&&n.add(t)));for(const r of e)n.has(r)?n.delete(r):t.classList.remove(r);for(const e of n)t.classList.add(e);e=n}}),yi("style",t=>{const e=t.getAttribute("style")||"";return r=>{if("string"==typeof r){const n=e&&!e.trim().endsWith(";"),i=e+(e&&n?"; ":"")+r;return void t.setAttribute("style",i)}e&&t.setAttribute("style",e);for(const e in r){const n=r[e];e.startsWith("-")?t.style.setProperty(e,n):t.style[e]=n}}}),yi("default",(t,e,r,n)=>{if(!n.startsWith("on"))return n?e=>Ei(t,n,e):e=>{for(const r in e)Ei(t,Di(r),e[r])};const i=n.split("..").map(e=>function(t,e){const r={evt:"",target:e,test:()=>!0};return r.evt=(t.startsWith("on")?t.slice(2):t).replace(/\.(\w+)?-?([-\w]+)?/g,(t,e,n="")=>(r.test=Oi[e]?.(r,...n.split("-"))||r.test,"")),r}(e,t)),s=(t,r)=>{const{evt:n,target:i,test:s,defer:a,stop:o,prevent:u,immediate:l,...c}=r,h=r=>{try{if(!s(r))return;o&&(l?r.stopImmediatePropagation():r.stopPropagation()),u&&r.preventDefault(),t?.call(e,r)}catch(e){wi(e,`:on${n}`,t)}},f=a?a(h):h;return i.addEventListener(n,f,c),()=>i.removeEventListener(n,f,c)};if(1===i.length)return t=>s(t,i[0]);let a,o,u,l=0;const c=t=>{u=s(e=>{u(),o=t?.(e),l=(l+1)%i.length,l?c(o):a&&c(a)},i[l])};return t=>(a=t,u||c(a),()=>{a=null})});const Oi={prevent(t){t.prevent=!0},stop(t){t.stop=!0},immediate(t){t.immediate=!0},once(t){t.once=!0},passive(t){t.passive=!0},capture(t){t.capture=!0},window(t){t.target=window},document(t){t.target=document},parent(t){t.target=t.target.parentNode},throttle(t,e=108){t.defer=t=>Mi(t,e)},debounce(t,e=108){t.defer=t=>Ci(t,e)},outside:t=>e=>{const r=t.target;return!r.contains(e.target)&&(!1!==e.target.isConnected&&!(r.offsetWidth<1&&r.offsetHeight<1))},self:t=>e=>e.target===t.target,ctrl:(t,...e)=>t=>Si.ctrl(t)&&e.every(e=>Si[e]?Si[e](t):t.key===e),shift:(t,...e)=>t=>Si.shift(t)&&e.every(e=>Si[e]?Si[e](t):t.key===e),alt:(t,...e)=>t=>Si.alt(t)&&e.every(e=>Si[e]?Si[e](t):t.key===e),meta:(t,...e)=>t=>Si.meta(t)&&e.every(e=>Si[e]?Si[e](t):t.key===e),arrow:()=>Si.arrow,enter:()=>Si.enter,esc:()=>Si.esc,tab:()=>Si.tab,space:()=>Si.space,delete:()=>Si.delete,digit:()=>Si.digit,letter:()=>Si.letter,char:()=>Si.char},Si={ctrl:t=>t.ctrlKey||"Control"===t.key||"Ctrl"===t.key,shift:t=>t.shiftKey||"Shift"===t.key,alt:t=>t.altKey||"Alt"===t.key,meta:t=>t.metaKey||"Meta"===t.key||"Command"===t.key,arrow:t=>t.key.startsWith("Arrow"),enter:t=>"Enter"===t.key,esc:t=>t.key.startsWith("Esc"),tab:t=>"Tab"===t.key,space:t=>" "===t.key||"Space"===t.key||" "===t.key,delete:t=>"Delete"===t.key||"Backspace"===t.key,digit:t=>/^\d$/.test(t.key),letter:t=>/^\p{L}$/gu.test(t.key),char:t=>/^\S$/.test(t.key)},Mi=(t,e)=>{let r=!1,n=!1;const i=s=>{r=!0,setTimeout(()=>{r=!1,n&&(n=!1,i(s),t(s))},e)};return e=>{if(!r)return i(e),t(e);n=!0}},Ci=(t,e)=>{let r;return n=>{clearTimeout(r),r=setTimeout(()=>{r=null,t(n)},e)}},Ei=(t,e,r)=>{null==r||!1===r?t.removeAttribute(e):t.setAttribute(e,!0===r?"":"number"==typeof r||"string"==typeof r?r:"")},Di=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,e)=>(e?"-":"")+t.toLowerCase());yi("value",(t,e,r)=>{const n=t.type||"",i=t.tagName,s=e=>{const r=e??"";t.value=r,t.setAttribute("value",r)},a=t=>s(t),o=e=>{const r=t.selectionStart,n=t.selectionEnd;s(e),r&&t.setSelectionRange(r,n)},u=e=>{t.checked=e,Ei(t,"checked",e)},l=e=>{t.value===e&&(t.checked=e,Ei(t,"checked",e))},c=e=>{for(const r of t.options)r.value==e?r.setAttribute("selected",""):r.removeAttribute("selected");t.value=e},h=e=>{for(const e of t.options)e.removeAttribute("selected");for(const r of e)t.querySelector(`[value="${r}"]`)?.setAttribute("selected","")},f=e=>{t.value=e},p=(()=>{if("TEXTAREA"===i)return o;switch(n){case"text":case"":return a;case"checkbox":return u;case"radio":return l;case"select-one":return c;case"select-multiple":return h;default:return f}})();try{const i=ci(r),s="checkbox"===n?()=>i(e,t.checked):"select-multiple"===n?()=>i(e,[...t.selectedOptions].map(t=>t.value)):()=>i(e,t.selectedIndex<0?null:t.value);t.oninput=t.onchange=s,n?.startsWith("select")&&(new MutationObserver(s).observe(t,{childList:!0,subtree:!0,attributes:!0}),xi(t,e)),bi(r)(e)??s()}catch{}return p}),yi("fx",t=>t=>t),yi("aria",t=>e=>{for(const r in e){const n=e[r];Ei(t,`aria-${Di(r)}`,null==n?null:String(n))}}),yi("data",t=>e=>{for(const r in e)t.dataset[r]=e[r]}),xi.use({compile:t=>xi.constructor(`with (arguments[0]) { return ${t} };`)});const Pi=Symbol("persist"),Ri=t=>{try{return JSON.stringify(t,(t,e)=>{if("function"!=typeof e&&(!e||"object"!=typeof e||e.constructor===Object||Array.isArray(e)))return e})}catch{return"{}"}},zi=t=>{try{return JSON.parse(t)}catch{return{}}},Fi=(t,e,r={})=>{const n={key:e,storage:globalThis.localStorage,paths:null,debounce:0,serializer:Ri,deserializer:zi,...r};if(!(t=>{try{const e="__storage_test__";return t.setItem(e,"test"),t.removeItem(e),!0}catch{return!1}})(n.storage))return console.warn(`persistence: ${n.storage===globalThis.localStorage?"localStorage":"storage"} is not available`),()=>{};let i=!1;const s=((t,e)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>t(...n),e)}})(()=>{if(!i)try{const e=((t,e)=>{const r={};if(e)for(const n of e)n in t&&(r[n]=t[n]);else{const e=t[ni];for(const n in e){const i=e[n];i&&!i._set&&"_"!==n[0]&&(r[n]=t[n])}}return r})(t,n.paths),r=n.serializer(e);n.storage.setItem(n.key,r)}catch(t){console.warn("persistence: failed to save state",t)}},n.debounce),a=()=>{try{const e=n.storage.getItem(n.key);if(!e)return;const r=n.deserializer(e);if(!r||"object"!=typeof r)return;i=!0;for(const e in r)e in t[ni]&&!t[ni][e]?._set&&(t[e]=r[e]);i=!1}catch(t){console.warn("persistence: failed to restore state",t),i=!1}};a();const o=Zn(()=>{if(n.paths)for(const e of n.paths)t[e];else{const e=t[ni];for(const r in e){const n=e[r];n&&!n._set&&"_"!==r[0]&&t[r]}}s()});return t[Pi]={config:n,saveState:s,restoreState:a},o},Li=new Map,Ii={store:(t,e,r={})=>{if(void 0!==e){const n=ui(e);if(Li.set(t,n),!0===r||r.persist){const e=!0===r?{}:{...r};delete e.persist,((t,e,r={})=>{!0===r&&(r={}),Fi(t,e,r)})(n,t,e)}return n}const n=Li.get(t);return n||(console.warn(`store "${t}" not found`),{})}};async function Ni(t){const e=t.querySelector('script[type="r-mod"]'),r=t.querySelector("[r-scope]");if(!e)return;if(!r)return void console.warn("r-mod found but no r-scope element in container");t.querySelectorAll("[r-scope]").length>1&&console.warn("multiple r-scope elements found, using first one only");const n=e.textContent.trim();if(!n)return;const i=await async function(t){try{const e=`\nconst sprae = window._riftSprae;\nconst { signal, effect, computed } = window._riftSignal;\nconst store = window._riftStore;\nconst r = window.r;\n\n${t}\n`,r=`data:text/javascript;charset=utf-8,${encodeURIComponent(e)}#${Date.now()}`,n=await import(r),i={};for(const[t,e]of Object.entries(n))"default"!==t&&(i[t]=e);return i}catch(t){return console.error("module evaluation error:",t),{}}}(n),s=xi(r,i);return e.remove(),s}async function Bi(t){await Ni(t)}function qi(t){const e=[],r=t.replace(/:([^/]+)/g,(t,r)=>(e.push(r),"([^/]+)"));return{regex:new RegExp(`^${r}$`),keys:e}}function $i(t,e){for(const r of e){const{regex:e,keys:n}=qi(r.path),i=t.match(e);if(i){const t={};return n.forEach((e,r)=>t[e]=i[r+1]),{route:r,params:t}}}return null}function ji(t,e){const r=[],n=t.split("/").filter(Boolean);for(let t=1;t<n.length;t++){const i=`/${n.slice(0,t).join("/")}`;for(const t of e){const{regex:e,keys:n}=qi(t.path),s=i.match(e);if(s){const e={};n.forEach((t,r)=>e[t]=s[r+1]),r.push({route:t,params:e});break}}}return r}async function Yi(t,e,r,n,i=!1){let s="function"==typeof e?e({}):e;n&&(s={...s,dataset:n});const a=await fetch(`/templates/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(t=>t.text());r.innerHTML=a,await Bi(r);r.querySelectorAll("script").forEach(t=>{const e=document.createElement("script");t.src?e.src=t.src:e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}),await Hi(r,i),await Xi(r,i)}async function Wi(t,e){if(e)return new Promise(r=>{requestAnimationFrame(()=>{const n={...e,from:void 0};n.onComplete=r,e.from?Jn.fromTo(t,e.from,n):Jn.to(t,n)})})}function Ui(t){try{return JSON.parse(t)}catch(e){try{return Function(`"use strict"; return (${t})`)()}catch(t){throw new Error("invalid JSON syntax")}}}async function Xi(t,e=!1){if(e)return;const r=[];if(t.hasAttribute("r-transition-stagger-in"))try{const e=Ui(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Jn.set(n,e.from||{}),r.push(Wi(n,e)))}catch(t){console.warn("invalid transition data on container stagger element:",t)}const n=t.querySelectorAll("[r-transition-stagger-in]");for(const t of n)try{const e=Ui(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Jn.set(n,e.from||{}),r.push(Wi(n,e)))}catch(t){console.warn("invalid transition data on stagger element:",t)}if(t.hasAttribute("r-transition-in"))try{const e=Ui(t.getAttribute("r-transition-in"));Jn.set(t,e.from||{}),r.push(Wi(t,e))}catch(t){console.warn("invalid transition data on container element:",t)}const i=t.querySelectorAll("[r-transition-in]");for(const t of i){const e=t.closest("[r-transition-stagger-in]");if(!e||e===t)try{const e=Ui(t.getAttribute("r-transition-in"));Jn.set(t,e.from||{}),r.push(Wi(t,e))}catch(t){console.warn("invalid transition data on element:",t)}}Promise.all(r)}function Vi(t){const e=[];if(t.hasAttribute("r-transition-stagger-in")){const r=Ui(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(e.push({type:"stagger",elements:n,transition:r}),Jn.set(n,r.from||{})),t.removeAttribute("r-transition-stagger-in")}if(t.hasAttribute("r-transition-in")){const r=Ui(t.getAttribute("r-transition-in"));e.push({type:"individual",elements:t,transition:r}),Jn.set(t,r.from||{}),t.removeAttribute("r-transition-in")}return e}function Gi(t){for(const{elements:e,transition:r}of t)Wi(e,r)}async function Hi(t,e=!1){const r=t.querySelectorAll("[r-tpl]");for(const t of r){const r=t.getAttribute("r-tpl"),n=t.getAttribute("r-tpl-props"),i=t.getAttribute("r-dataset");let s=n?Ui(n):{};i&&(s={...s,dataset:i});const a=await fetch(`/templates/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(t=>t.text());t.innerHTML=a,await Bi(t),await Hi(t,e),await Xi(t,e)}}function Ji(t){const e={},r=new URLSearchParams(t);for(const[t,n]of r)e[t]=n;return e}function Ki(t){let e=null;async function r({path:r,initial:n=!1,linkProps:i=null,linkTarget:s=null,linkDataset:a=null}){const[o,u=""]=r.split("?"),l=$i(o,t);if(!l)return console.error("rift: route not found:",o);const{route:c,params:h}=l,f=Ji(u);let p;if(n&&document.body.classList.add("loading"),c.renders)p=c.renders;else{const n=ji(r,t);console.log("parentRoutes for",r,":",n);const i={template:c.template,props:c.props,target:c.target};p=[...n.filter(({route:t})=>!e||!e.startsWith(`${t.path}/`)&&e!==t.path).map(({route:t,params:e})=>({template:t.template,props:t.props,target:t.target,dataset:t.dataset,params:e,skipTransition:!1})),...n.filter(({route:t})=>e?.startsWith(`${t.path}/`)).map(({route:t,params:e})=>({template:t.template,props:t.props,target:t.target,dataset:t.dataset,params:e,skipTransition:!0})),{...i,skipTransition:!1}],console.log("renders:",p)}for(const t of p){const e=t.params||h;let r="function"==typeof t.props?t.props(e,f):t.props;i&&(r={...r,...i});const o=s&&document.querySelector(s)||t.target&&document.querySelector(t.target)||document.getElementById("main"),u=a||t.dataset||c.dataset;o.id,Jn.killTweensOf(o),Jn.set(o,{clearProps:"all"}),o.classList.add("loading"),await Yi(t.template,r,o,u,n||t.skipTransition),o.classList.remove("loading")}n&&document.body.classList.remove("loading"),e=r,n=!1,window.dispatchEvent(new CustomEvent("navigate"))}return{navigate:r,init:function(){document.addEventListener("click",t=>{const e=t.target.closest("[r-link]");if(!e)return;t.preventDefault();const n=e.getAttribute("href"),i=e.getAttribute("r-dataset"),s=e.getAttribute("r-dataset-props"),a=e.getAttribute("r-target");history.pushState({},"",n),window.dispatchEvent(new CustomEvent("navigate")),r({path:n,linkProps:s?Ui(s):null,linkDataset:i,linkTarget:a})}),window.addEventListener("popstate",()=>r({path:location.pathname+location.search}))},hydrateNestedTemplates:Hi,processElementTransitions:Xi,captureGlobalTransitions:Vi,runGlobalTransitions:Gi,refresh:async(e={})=>{const r=async()=>{const{path:r=location.pathname+location.search,parents:n=!1}=e,[i,s=""]=r.split("?"),a=$i(i,t);if(!a)return console.error("rift: route not found:",i);const{route:o,params:u}=a,l=Ji(s);if(n){const e=[...ji(r,t),{route:o,params:u}],n=new Set;for(let t=e.length-1;t>=0;t--){const r=e[t].route.target||"#main";if(!n.has(r)&&(n.add(r),t<e.length-1)){const{route:n,params:i}=e[t],s=document.querySelector(r)||document.getElementById("main"),a="function"==typeof n.props?n.props(i,l):n.props;await Yi(n.template,a,s,n.dataset,!0)}}}const c=document.querySelector(o.target)||document.getElementById("main"),h="function"==typeof o.props?o.props(u,l):o.props;await Yi(o.template,h,c,o.dataset,!0)};document.startViewTransition?document.startViewTransition(r):await r()},refreshTemplate:async(e,r={})=>{const n=[];document.querySelectorAll(`[r-tpl="${e}"]`).forEach(t=>{n.push(async()=>{const n=await fetch(`/templates/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)return console.error("failed to fetch template:",e);const i=await n.text();t.innerHTML=i,await Bi(t)})});if(t.filter(t=>t.template===e).forEach(t=>{const e=document.querySelector(t.target)||document.getElementById("main");e&&n.push(async()=>{const r=location.pathname+location.search,n=$i(r,[t]);if(n){const{params:i}=n,[,s=""]=r.split("?"),a=Ji(s),o="function"==typeof t.props?t.props(i,a):t.props;await Yi(t.template,o,e,t.dataset,!0)}})}),0===n.length)return console.error("no templates found with name:",e);const i=async()=>{await Promise.all(n.map(t=>t()))};document.startViewTransition?document.startViewTransition(i):await i()}}}function Qi(){document.addEventListener("mousedown",t=>{const e=t.target.closest(".ripple");if(!e)return;const r=document.createElement("span");r.classList.add("ripple-effect");const n=Math.max(e.clientWidth,e.clientHeight);r.style.width=r.style.height=`${n}px`;const i=e.getBoundingClientRect();r.style.left=t.clientX-i.left-n/2+"px",r.style.top=t.clientY-i.top-n/2+"px",e.appendChild(r),r.addEventListener("animationend",()=>r.remove())})}function Zi(t){window._riftRouter=t,document.addEventListener("DOMContentLoaded",async function(){const e=t.captureGlobalTransitions(document.body);await t.hydrateNestedTemplates(document.body,!0),await t.navigate({path:location.pathname+location.search,initial:!0}),document.body.classList.remove("loading"),e.length>0&&requestAnimationFrame(()=>{t.runGlobalTransitions(e)})}),t.init()}return window.signal=Qn,window.r=Ii,window._riftSprae=xi,window._riftSignal={signal:Qn,effect:Zn,computed:ti},window._riftStore=ui,t.createRouter=Ki,t.default=function(t){const e=Ki(t);Qi(),Zi(e)},t.initRipple=Qi,t.mount=Zi,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "riftt",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "src/index.js",
6
+ "scripts": {
7
+ "build": "rollup -c",
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "description": "",
14
+ "dependencies": {
15
+ "gsap": "^3.13.0"
16
+ },
17
+ "devDependencies": {
18
+ "@rollup/plugin-node-resolve": "^16.0.2",
19
+ "@rollup/plugin-terser": "^0.4.4",
20
+ "rollup": "^4.52.4"
21
+ }
22
+ }
@@ -0,0 +1,15 @@
1
+ import { nodeResolve } from '@rollup/plugin-node-resolve';
2
+ import terser from '@rollup/plugin-terser';
3
+
4
+ export default {
5
+ input: 'src/index.js',
6
+ output: {
7
+ file: 'dist/rift.min.js',
8
+ format: 'iife',
9
+ name: 'Rift'
10
+ },
11
+ plugins: [
12
+ nodeResolve(),
13
+ terser()
14
+ ]
15
+ };
package/src/index.js ADDED
@@ -0,0 +1,56 @@
1
+ import { createRouter } from "./router.js";
2
+ import sprae from "./sprae/sprae.js";
3
+ import { signal, effect, computed } from "./sprae/signal.js";
4
+ import store from "./sprae/store.js";
5
+
6
+ // Expose modules on window for runtime evaluation
7
+ window._riftSprae = sprae;
8
+ window._riftSignal = { signal, effect, computed };
9
+ window._riftStore = store;
10
+
11
+ function initRipple() {
12
+ document.addEventListener("mousedown", (e) => {
13
+ const el = e.target.closest(".ripple");
14
+ if (!el) return;
15
+
16
+ const circle = document.createElement("span");
17
+ circle.classList.add("ripple-effect");
18
+
19
+ const size = Math.max(el.clientWidth, el.clientHeight);
20
+ circle.style.width = circle.style.height = `${size}px`;
21
+
22
+ const rect = el.getBoundingClientRect();
23
+ circle.style.left = `${e.clientX - rect.left - size / 2}px`;
24
+ circle.style.top = `${e.clientY - rect.top - size / 2}px`;
25
+
26
+ el.appendChild(circle);
27
+ circle.addEventListener("animationend", () => circle.remove());
28
+ });
29
+ }
30
+
31
+ function mount(router) {
32
+ async function init() {
33
+ const globalTransitions = router.captureGlobalTransitions(document.body);
34
+ await router.hydrateNestedTemplates(document.body, true);
35
+ await router.navigate({ path: location.pathname + location.search, initial: true });
36
+
37
+ document.body.classList.remove("loading");
38
+ if (globalTransitions.length > 0) {
39
+ requestAnimationFrame(() => {
40
+ router.runGlobalTransitions(globalTransitions);
41
+ });
42
+ }
43
+ }
44
+
45
+ window._riftRouter = router;
46
+ document.addEventListener("DOMContentLoaded", init);
47
+ router.init();
48
+ }
49
+
50
+ export default function rift(routes) {
51
+ const router = createRouter(routes);
52
+ initRipple();
53
+ mount(router);
54
+ }
55
+
56
+ export { createRouter, initRipple, mount };
package/src/modules.js ADDED
@@ -0,0 +1,111 @@
1
+ import sprae from "./sprae/sprae.js";
2
+ import { signal } from "./sprae/signal.js";
3
+ import store from "./sprae/store.js";
4
+ import { persist } from "./sprae/persist.js";
5
+
6
+ const globalStores = new Map();
7
+
8
+ const r = {
9
+ /**
10
+ * creates or retrieves a global store with optional persistence
11
+ * @param {string} name - unique store name
12
+ * @param {Object} definition - store definition object
13
+ * @param {Object|boolean} [options] - persistence options or true for defaults
14
+ * @param {boolean} [options.persist] - enable persistence
15
+ * @param {string} [options.key] - custom localStorage key
16
+ * @param {Storage} [options.storage] - storage interface
17
+ * @param {string[]} [options.paths] - specific paths to persist
18
+ * @param {number} [options.debounce] - debounce delay in milliseconds
19
+ * @returns {Object} store instance
20
+ */
21
+ store: (name, definition, options = {}) => {
22
+ if (definition !== undefined) {
23
+ const storeInstance = store(definition);
24
+ globalStores.set(name, storeInstance);
25
+
26
+ // handle persistence options
27
+ if (options === true || options.persist) {
28
+ const persistOptions = options === true ? {} : { ...options };
29
+ delete persistOptions.persist;
30
+ persist(storeInstance, name, persistOptions);
31
+ }
32
+
33
+ return storeInstance;
34
+ }
35
+
36
+ const existingStore = globalStores.get(name);
37
+ if (!existingStore) {
38
+ console.warn(`store "${name}" not found`);
39
+ return {};
40
+ }
41
+ return existingStore;
42
+ },
43
+ };
44
+
45
+ async function evaluateModule(code) {
46
+ try {
47
+ const moduleCode = `
48
+ const sprae = window._riftSprae;
49
+ const { signal, effect, computed } = window._riftSignal;
50
+ const store = window._riftStore;
51
+ const r = window.r;
52
+
53
+ ${code}
54
+ `;
55
+
56
+ const dataUrl = `data:text/javascript;charset=utf-8,${encodeURIComponent(moduleCode)}#${Date.now()}`;
57
+ const module = await import(dataUrl);
58
+
59
+ // Extract all exports except default
60
+ const exports = {};
61
+ for (const [key, value] of Object.entries(module)) {
62
+ if (key !== "default") {
63
+ exports[key] = value;
64
+ }
65
+ }
66
+
67
+ return exports;
68
+ } catch (error) {
69
+ console.error("module evaluation error:", error);
70
+ return {};
71
+ }
72
+ }
73
+
74
+ async function processRMod(container) {
75
+ const rModScript = container.querySelector('script[type="r-mod"]');
76
+ const rScopeElement = container.querySelector("[r-scope]");
77
+
78
+ if (!rModScript) return;
79
+
80
+ if (!rScopeElement) {
81
+ console.warn("r-mod found but no r-scope element in container");
82
+ return;
83
+ }
84
+
85
+ const scopeElements = container.querySelectorAll("[r-scope]");
86
+ if (scopeElements.length > 1) {
87
+ console.warn("multiple r-scope elements found, using first one only");
88
+ }
89
+
90
+ const moduleCode = rModScript.textContent.trim();
91
+ if (!moduleCode) return;
92
+
93
+ const moduleExports = await evaluateModule(moduleCode);
94
+
95
+ const state = sprae(rScopeElement, moduleExports);
96
+
97
+ rModScript.remove();
98
+
99
+ return state;
100
+ }
101
+
102
+ async function processModules(container) {
103
+ await processRMod(container);
104
+ }
105
+
106
+ window.signal = signal;
107
+ window.r = r;
108
+
109
+ const storeFunction = r.store;
110
+
111
+ export { processModules, r, storeFunction as store };