riftt 1.0.16 → 1.0.17

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.
Files changed (2) hide show
  1. package/dist/rift.js +2 -2
  2. package/package.json +2 -2
package/dist/rift.js CHANGED
@@ -6,7 +6,7 @@ function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialis
6
6
  * @license Copyright 2008-2025, GreenSock. All rights reserved.
7
7
  * Subject to the terms at https://gsap.com/standard-license
8
8
  * @author: Jack Doyle, jack@greensock.com
9
- */var r,n,i,s,o,a,u,l,c,h,f,d,p,m,_,g,v,y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},w=1e8,T=1e-8,x=2*Math.PI,k=x/4,A=0,O=Math.sqrt,S=Math.cos,C=Math.sin,M=function(t){return"string"==typeof t},E=function(t){return"function"==typeof t},D=function(t){return"number"==typeof t},P=function(t){return void 0===t},N=function(t){return"object"==typeof t},R=function(t){return!1!==t},z=function(){return"undefined"!=typeof window},L=function(t){return E(t)||M(t)},F="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,I=/(?:-?\.?\d|\.)+/gi,q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Y=/[+-]=-?[.\d]+/,W=/[^,'"\[\]\s]+/gi,V=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,X={},U={},H=function(t){return(U=kt(t,X))&&Ar},G=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},K=function(t,e){return t&&(X[t]=e)&&U&&(U[t]=e)||X},Q=function(){return 0},Z={suppressEvents:!0,isStart:!0,kill:!1},tt={suppressEvents:!0,kill:!1},et={suppressEvents:!0},rt={},nt=[],it={},st={},ot={},at=30,ut=[],lt="",ct=function(t){var e,r,n=t[0];if(N(n)||E(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ut.length;r--&&!ut[r].targetTest(n););e=ut[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ie(t[r],e)))||t.splice(r,1);return t},ht=function(t){return t._gsap||ct(re(t))[0]._gsap},ft=function(t,e,r){return(r=t[e])&&E(r)?t[e]():P(r)&&t.getAttribute&&t.getAttribute(e)||r},dt=function(t,e){return(t=t.split(",")).forEach(e)||t},pt=function(t){return Math.round(1e5*t)/1e5||0},mt=function(t){return Math.round(1e7*t)/1e7||0},_t=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},gt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},vt=function(){var t,e,r=nt.length,n=nt.slice(0);for(it={},nt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},yt=function(t){return!!(t._initted||t._startAt||t.add)},bt=function(t,e,r,i){nt.length&&!n&&vt(),t.render(e,r,!!(n&&e<0&&yt(t))),nt.length&&!n&&vt()},wt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(W).length<2?e:M(t)?t.trim():t},Tt=function(t){return t},xt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},kt=function(t,e){for(var r in e)t[r]=e[r];return t},At=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=N(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ot=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},St=function(t){var e,r=t.parent||s,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])}):xt;if(R(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,o=t[n];if(i)for(s=e[i];o&&o[i]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Mt=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},Et=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Dt=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},Pt=function(t,e,r,i){return t._startAt&&(n?t._startAt.revert(tt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Nt=function t(e){return!e||e._ts&&t(e.parent)},Rt=function(t){return t._repeat?zt(t._tTime,t=t.duration()+t._rDelay)*t:0},zt=function(t,e){var r=Math.floor(t=mt(t/e));return t&&r===t?r-1:r},Lt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ft=function(t){return t._end=mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||T)||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)),Ft(t),r._dirty||Dt(r,t)),t},It=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Lt(t.rawTime(),e),(!e._dur||Kt(0,e.totalDuration(),r)-e._tTime>T)&&e.render(r,!0)),Dt(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}},qt=function(t,e,r,n){return e.parent&&Et(e),e._start=mt((D(r)?r:r||t!==s?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),Wt(e)||(t._recent=e),n||It(t,e),t._ts<0&&Bt(t,t._tTime),t},jt=function(t,e){return(X.ScrollTrigger||G("scrollTrigger",e))&&X.ScrollTrigger.create(e,t)},$t=function(t,e,r,i,s){return Ue(t,e,s),t._initted?!r&&t._pt&&!n&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==Oe.frame?(nt.push(t),t._lazy=[s,i],1):void 0:1},Yt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Wt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Vt=function(t,e,r,n){var i=t._repeat,s=mt(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:mt(s*(i+1)+t._rDelay*i):s,o>0&&!n&&Bt(t,t._tTime=t._tDur*o),t.parent&&Ft(t),r||Dt(t.parent,t),t},Xt=function(t){return t instanceof je?Dt(t):Vt(t,t._dur)},Ut={_start:0,endTime:Q,totalDuration:Q},Ht=function t(e,r,n){var i,s,o,a=e.labels,u=e._recent||Ut,l=e.duration()>=w?u.endTime(!1):e._dur;return M(r)&&(isNaN(r)||r in a)?(s=r.charAt(0),o="%"===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)*(o?(i<0?u:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=l),a[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&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},Gt=function(t,e,r){var n,i,s=D(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=R(i.vars.inherit)&&i.parent;a.immediateRender=R(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new Qe(e[0],a,e[o+1])},Jt=function(t,e){return t||0===t?e(t):e},Kt=function(t,e,r){return r<t?t:r>e?e:r},Qt=function(t,e){return M(t)&&(e=V.exec(t))?e[1]:""},Zt=[].slice,te=function(t,e){return t&&N(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&N(t[0]))&&!t.nodeType&&t!==o},ee=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return M(t)&&!e||te(t,1)?(n=r).push.apply(n,re(t)):r.push(t)})||r},re=function(t,e,r){return i&&!e&&i.selector?i.selector(t):!M(t)||r||!a&&Se()?B(t)?ee(t,r):te(t)?Zt.call(t,0):t?[t]:[]:Zt.call((e||u).querySelectorAll(t),0)},ne=function(t){return t=re(t)[0]||J("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return re(e,r.querySelectorAll?r:r===t?J("Invalid scope")||u.createElement("div"):t)}},ie=function(t){return t.sort(function(){return.5-Math.random()})},se=function(t){if(E(t))return t;var e=N(t)?t:{each:t},r=Re(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,u=e.axis,l=n,c=n;return M(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(l=n[0],c=n[1]),function(t,o,h){var f,d,p,m,_,g,v,y,b,T=(h||e).length,x=s[T];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,w])[1])){for(v=-1e8;v<(v=h[b++].getBoundingClientRect().left)&&b<T;);b<T&&b--}for(x=s[T]=[],f=a?Math.min(b,T)*l-.5:n%b,d=b===w?0:a?T*c/b-.5:n/b|0,v=0,y=w,g=0;g<T;g++)p=g%b-f,m=d-(g/b|0),x[g]=_=u?Math.abs("y"===u?m:p):O(p*p+m*m),_>v&&(v=_),_<y&&(y=_);"random"===n&&ie(x),x.max=v-y,x.min=y,x.v=T=(parseFloat(e.amount)||parseFloat(e.each)*(b>T?T-1:u?"y"===u?T/b:b:Math.max(b,T/b))||0)*("edges"===n?-1:1),x.b=T<0?i-T:i,x.u=Qt(e.amount||e.each)||0,r=r&&T<0?Pe(r):r}return T=(x[t]-x.min)/x.max||0,mt(x.b+(r?r(T):T)*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+(D(r)?0:Qt(r))}},ae=function(t,e){var r,n,i=B(t);return!i&&N(t)&&(r=i=t.radius||w,t.values?(t=re(t.values),(n=!D(t[0]))&&(r*=r)):t=oe(t.increment)),Jt(e,i?E(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),u=w,l=0,c=t.length;c--;)(i=n?(i=t[c].x-o)*i+(s=t[c].y-a)*s:Math.abs(t[c]-o))<u&&(u=i,l=c);return l=!r||u<=r?t[l]:e,n||l===e||D(e)?l:l+Qt(e)}:oe(t))},ue=function(t,e,r,n){return Jt(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})},le=function(t,e,r){return Jt(r,function(r){return t[~~e(r)]})},ce=function(t){for(var e,r,n,i,s=0,o="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?W:I),o+=t.substr(s,e-s)+ue(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return o+t.substr(s,t.length-s)},he=function(t,e,r,n,i){var s=e-t,o=n-r;return Jt(i,function(e){return r+((e-t)/s*o||0)})},fe=function(t,e,r){var n,i,s,o=t.labels,a=w;for(n in o)(i=o[n]-e)<0==!!r&&i&&a>(i=Math.abs(i))&&(s=n,a=i);return s},de=function(t,e,r){var n,s,o,a=t.vars,u=a[e],l=i,c=t._ctx;if(u)return n=a[e+"Params"],s=a.callbackScope||t,r&&nt.length&&vt(),c&&(i=c),o=n?u.apply(s,n):u.call(s),i=l,o},pe=function(t){return Et(t),t.scrollTrigger&&t.scrollTrigger.kill(!!n),t.progress()<1&&de(t,"onInterrupt"),t},me=[],_e=function(t){if(t)if(t=!t.name&&t.default||t,z()||t.headless){var e=t.name,r=E(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:Q,render:ar,add:Ve,kill:lr,modifier:ur,rawVars:0},s={targetTest:0,get:0,getSetter:nr,aliases:{},register:0};if(Se(),t!==n){if(st[e])return;xt(n,xt(Ot(t,i),s)),kt(n.prototype,kt(i,Ot(t,s))),st[n.prop=e]=n,t.targetTest&&(ut.push(n),rt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}K(e,n),t.register&&t.register(Ar,n,fr)}else me.push(t)},ge=255,ve={aqua:[0,ge,ge],lime:[0,ge,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ge],navy:[0,0,128],white:[ge,ge,ge],olive:[128,128,0],yellow:[ge,ge,0],orange:[ge,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ge,0,0],pink:[ge,192,203],cyan:[0,ge,ge],transparent:[ge,ge,ge,0]},ye=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)*ge+.5|0},be=function(t,e,r){var n,i,s,o,a,u,l,c,h,f,d=t?D(t)?[t>>16,t>>8&ge,t&ge]:0:ve.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ve[t])d=ve[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[(d=parseInt(t.substr(1,6),16))>>16,d>>8&ge,d&ge,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&ge,t&ge]}else if("hsl"===t.substr(0,3))if(d=f=t.match(I),e){if(~t.indexOf("="))return d=t.match(q),r&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,n=2*(u=+d[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),d.length>3&&(d[3]*=1),d[0]=ye(o+1/3,n,i),d[1]=ye(o,n,i),d[2]=ye(o-1/3,n,i);else d=t.match(I)||ve.transparent;d=d.map(Number)}return e&&!f&&(n=d[0]/ge,i=d[1]/ge,s=d[2]/ge,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?o=a=0:(h=l-c,a=u>.5?h/(2-l-c):h/(l+c),o=l===n?(i-s)/h+(i<s?6:0):l===i?(s-n)/h+2:(n-i)/h+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*a+.5),d[2]=~~(100*u+.5)),r&&d.length<4&&(d[3]=1),d},we=function(t){var e=[],r=[],n=-1;return t.split(xe).forEach(function(t){var i=t.match(j)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Te=function(t,e,r){var n,i,s,o,a="",u=(t+a).match(xe),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=be(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=we(t),(n=r.c).join(a)!==s.c.join(a)))for(o=(i=t.replace(xe,"1").split(j)).length-1;c<o;c++)a+=i[c]+(~n.indexOf(c)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(o=(i=t.split(xe)).length-1;c<o;c++)a+=i[c]+u[c];return a+i[o]},xe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ve)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),ke=/hsl[a]?\(/,Ae=function(t){var e,r=t.join(" ");if(xe.lastIndex=0,xe.test(r))return e=ke.test(r),t[1]=Te(t[1],e),t[0]=Te(t[0],e,we(t[1])),!0},Oe=function(){var t,e,r,n,i,s,c=Date.now,h=500,d=33,p=c(),m=p,_=1e3/240,g=_,v=[],y=function r(o){var a,u,l,f,y=c()-m,b=!0===o;if((y>h||y<0)&&(p+=y-d),((a=(l=(m+=y)-p)-g)>0||b)&&(f=++n.frame,i=l-1e3*n.time,n.time=l/=1e3,g+=a+(a>=_?4:_-a),u=1),b||(t=e(r)),u)for(s=0;s<v.length;s++)v[s](l,i,f,o)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){l&&(!a&&z()&&(o=a=window,u=o.document||{},X.gsap=Ar,(o.gsapVersions||(o.gsapVersions=[])).push(Ar.version),H(U||o.GreenSockGlobals||!o.gsap&&o||{}),me.forEach(_e)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,g-1e3*n.time+1|0)},f=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),f=0,e=Q},lagSmoothing:function(t,e){h=t||1/0,d=Math.min(e||33,h)},fps:function(t){_=1e3/(t||240),g=1e3*n.time+_},add:function(t,e,r){var i=e?function(e,r,s,o){t(e,r,s,o),n.remove(i)}:t;return n.remove(t),v[r?"unshift":"push"](i),Se(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),Se=function(){return!f&&Oe.wake()},Ce={},Me=/^[\d.\-M][\d.\-,\s]/,Ee=/["']/g,De=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,u=s.length;a<u;a++)r=s[a],e=a!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[o]=isNaN(n)?n.replace(Ee,"").trim():+n,o=r.substr(e+1).trim();return i},Pe=function(t){return function(e){return 1-t(1-e)}},Ne=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},Re=function(t,e){return t&&(E(t)?t:Ce[t]||function(t){var e,r,n,i,s=(t+"").split("("),o=Ce[s[0]];return o&&s.length>1&&o.config?o.config.apply(null,~t.indexOf("{")?[De(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(wt)):Ce._CE&&Me.test(t)?Ce._CE("",t):o}(t))||e},ze=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]=X[t]=s,Ce[i=t.toLowerCase()]=r,s)Ce[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ce[t+"."+e]=s[e]}),s},Le=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Fe=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),o=s/x*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*C((t-o)*s)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Le(a);return s=x/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)}:Le(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;ze(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,ze("Elastic",Fe("in"),Fe("out"),Fe()),d=7.5625,_=2*(m=1/(p=2.75)),g=2.5*m,ze("Bounce",function(t){return 1-v(1-t)},v=function(t){return t<m?d*t*t:t<_?d*Math.pow(t-1.5/p,2)+.75:t<g?d*(t-=2.25/p)*t+.9375:d*Math.pow(t-2.625/p,2)+.984375}),ze("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),ze("Circ",function(t){return-(O(1-t*t)-1)}),ze("Sine",function(t){return 1===t?1:1-S(t*k)}),ze("Back",Be("in"),Be("out"),Be()),Ce.SteppedEase=Ce.steps=X.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*Kt(0,.99999999,t)|0)+i)*r}}},b.ease=Ce["quad.out"],dt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return lt+=t+","+t+"Params,"});var Ie=function(t,e){this.id=A++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ft,this.set=e?e.getSetter:nr},qe=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,Vt(this,+t.duration,1,1),this.data=t.data,i&&(this._ctx=i,i.data.push(this)),f||Oe.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,Vt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Se(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Bt(this,t),!r._dp||r.parent||It(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)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===T||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Rt(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)+Rt(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?zt(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?Lt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Kt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Ft(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):(Se(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==T&&(this._tTime-=T)))),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)&&qt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(R(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?Lt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=et);var e=n;return n=t,yt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),n=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,Xt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Xt(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),R(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,R(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)-T))},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=E(t)?t:Tt,i=function(){var t=e.then;e.then=null,E(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(){pe(this)},t}();xt(qe.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(r){function i(e,n){var i;return void 0===e&&(e={}),(i=r.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=R(e.sortChildren),s&&qt(e.parent||s,t(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&jt(t(i),e.scrollTrigger),i}e(i,r);var o=i.prototype;return o.to=function(t,e,r){return Gt(0,arguments,this),this},o.from=function(t,e,r){return Gt(1,arguments,this),this},o.fromTo=function(t,e,r,n){return Gt(2,arguments,this),this},o.set=function(t,e,r){return e.duration=0,e.parent=this,St(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Qe(t,e,Ht(this,r),1),this},o.call=function(t,e,r){return qt(this,Qe.delayedCall(0,t,e),r)},o.staggerTo=function(t,e,r,n,i,s,o){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=o,r.parent=this,new Qe(t,r,Ht(this,i)),this},o.staggerFrom=function(t,e,r,n,i,s,o){return r.runBackwards=1,St(r).immediateRender=R(r.immediateRender),this.staggerTo(t,e,r,n,i,s,o)},o.staggerFromTo=function(t,e,r,n,i,s,o,a){return n.startAt=r,St(n).immediateRender=R(n.immediateRender),this.staggerTo(t,e,n,i,s,o,a)},o.render=function(t,e,r){var i,o,a,u,l,c,h,f,d,p,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!==s&&b>v&&t>=0&&(b=v),b!==this._tTime||r||w){if(g!==this._time&&y&&(b+=this._time-g,t+=this._time-g),i=b,d=this._start,c=!(f=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(m=this._yoyo,l=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(i=mt(b%l),b===v?(u=this._repeat,i=y):((u=~~(p=mt(b/l)))&&u===p&&(i=y,u--),i>y&&(i=y)),p=zt(this._tTime,l),!g&&this._tTime&&p!==u&&this._tTime-p*l-this._dur<=0&&(p=u),m&&1&u&&(i=y-i,_=1),u!==p&&!this._lock){var x=m&&1&p,k=x===(m&&1&u);if(u<p&&(x=!x),g=x?0:b%y?y:b,this._lock=1,this.render(g||(_?0:mt(u*l)),e,!y)._lock=0,this._tTime=b,!e&&this.parent&&de(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(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=x?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!c)return this;Ne(this,_)}}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(i)),h&&(b-=i-(i=h._start))),this._tTime=b,this._time=i,this._act=!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&b&&!e&&!p&&(de(this,"onStart"),this._tTime!==b))return this;if(i>=g&&t>=0)for(o=this._first;o;){if(a=o._next,(o._act||i>=o._start)&&o._ts&&h!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(i-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(i-o._start)*o._ts,e,r),i!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=-1e-8);break}}o=a}else{o=this._last;for(var A=t<0?t:i;o;){if(a=o._prev,(o._act||A<=o._end)&&o._ts&&h!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(A-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(A-o._start)*o._ts,e,r||n&&yt(o)),i!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=A?-1e-8:T);break}}o=a}}if(h&&!e&&(this.pause(),h.render(i>=g?0:-1e-8)._zTime=i>=g?1:-1,this._ts))return this._start=d,Ft(this),this.render(t,e,r);this._onUpdate&&!e&&de(this,"onUpdate",!0),(b===v&&this._tTime>=this.totalDuration()||!b&&g)&&(d!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(b===v&&this._ts>0||!b&&this._ts<0)&&Et(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},o.add=function(t,e){var r=this;if(D(e)||(e=Ht(this,e,t)),!(t instanceof qe)){if(B(t))return t.forEach(function(t){return r.add(t,e)}),this;if(M(t))return this.addLabel(t,e);if(!E(t))return this;t=Qe.delayedCall(0,t)}return this!==t?qt(this,t,e):this},o.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 Qe?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},o.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},o.remove=function(t){return M(t)?this.removeLabel(t):E(t)?this.killTweensOf(t):(t.parent===this&&Mt(this,t),t===this._recent&&(this._recent=this._last),Dt(this))},o.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=mt(Oe.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},o.addLabel=function(t,e){return this.labels[t]=Ht(this,e),this},o.removeLabel=function(t){return delete this.labels[t],this},o.addPause=function(t,e,r){var n=Qe.delayedCall(0,e||Q,r);return n.data="isPause",this._hasPause=1,qt(this,n,Ht(this,t))},o.removePause=function(t){var e=this._first;for(t=Ht(this,t);e;)e._start===t&&"isPause"===e.data&&Et(e),e=e._next},o.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)$e!==n[i]&&n[i].kill(t,e);return this},o.getTweensOf=function(t,e){for(var r,n=[],i=re(t),s=this._first,o=D(e);s;)s instanceof Qe?gt(s._targets,i)&&(o?(!$e||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},o.tweenTo=function(t,e){e=e||{};var r,n=this,i=Ht(n,t),s=e,o=s.startAt,a=s.onStart,u=s.onStartParams,l=s.immediateRender,c=Qe.to(n,xt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||T,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==t&&Vt(c,t,0,1).render(c._time,!0,!0),r=1}a&&a.apply(c,u||[])}},e));return l?c.render(0):c},o.tweenFromTo=function(t,e,r){return this.tweenTo(e,xt({startAt:{time:Ht(this,t)}},r))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),fe(this,Ht(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),fe(this,Ht(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+T)},o.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 Dt(this)},o.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return r.prototype.invalidate.call(this,t)},o.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={}),Dt(this)},o.totalDuration=function(t){var e,r,n,i=0,o=this,a=o._last,u=w;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(n=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>u&&o._sort&&a._ts&&!o._lock?(o._lock=1,qt(o,a,r-a._delay,1)._lock=0):u=r,r<0&&a._ts&&(i-=r,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=r/o._ts,o._time-=r,o._tTime-=r),o.shiftChildren(-r,!1,-1/0),u=0),a._end>i&&a._ts&&(i=a._end),a=e;Vt(o,o===s&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},i.updateRoot=function(t){if(s._ts&&(bt(s,Lt(t,s)),c=Oe.frame),Oe.frame>=at){at+=y.autoSleep||120;var e=s._first;if((!e||!e._ts)&&y.autoSleep&&Oe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Oe.sleep()}}},i}(qe);xt(je.prototype,{_lock:0,_hasPause:0,_forcing:0});var $e,Ye,We=function(t,e,r,n,i,s,o){var a,u,l,c,h,f,d,p,m=new fr(this._pt,t,e,0,1,or,null,i),_=0,g=0;for(m.b=r,m.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=ce(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),u=r.match($)||[];a=$.exec(n);)c=a[0],h=n.substring(_,a.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,m._pt={_next:m._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?_t(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},_=$.lastIndex);return m.c=_<n.length?n.substring(_,n.length):"",m.fp=o,(Y.test(n)||d)&&(m.e=0),this._pt=m,m},Ve=function(t,e,r,n,i,s,o,a,u,l){E(n)&&(n=n(i||0,t,s));var c,h=t[e],f="get"!==r?r:E(h)?u?t[e.indexOf("set")||!E(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=E(h)?u?er:tr:Ze;if(M(n)&&(~n.indexOf("random(")&&(n=ce(n)),"="===n.charAt(1)&&((c=_t(f,n)+(Qt(f)||0))||0===c)&&(n=c)),!l||f!==n||Ye)return isNaN(f*n)||""===n?(!h&&!(e in t)&&G(e,n),We.call(this,t,e,f,n,d,a||y.stringFilter,u)):(c=new fr(this._pt,t,e,+f||0,n-(f||0),"boolean"==typeof h?sr:ir,0,d),u&&(c.fp=u),o&&c.modifier(o,this,t),this._pt=c)},Xe=function(t,e,r,n,i,s){var o,a,u,l;if(st[t]&&!1!==(o=new st[t]).init(i,o.rawVars?e[t]:function(t,e,r,n,i){if(E(t)&&(t=Ge(t,i,e,r,n)),!N(t)||t.style&&t.nodeType||B(t)||F(t))return M(t)?Ge(t,i,e,r,n):t;var s,o={};for(s in t)o[s]=Ge(t[s],i,e,r,n);return o}(e[t],n,i,s,r),r,n,s)&&(r._pt=a=new fr(r._pt,i,t,0,1,o.render,o,0,o.priority),r!==h))for(u=r._ptLookup[r._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=a;return o},Ue=function t(e,i,o){var a,u,l,c,h,f,d,p,m,_,g,v,y,x=e.vars,k=x.ease,A=x.startAt,O=x.immediateRender,S=x.lazy,C=x.onUpdate,M=x.runBackwards,E=x.yoyoEase,D=x.keyframes,P=x.autoRevert,N=e._dur,z=e._startAt,L=e._targets,F=e.parent,B=F&&"nested"===F.data?F.vars.targets:L,I="auto"===e._overwrite&&!r,q=e.timeline;if(q&&(!D||!k)&&(k="none"),e._ease=Re(k,b.ease),e._yEase=E?Pe(Re(!0===E?k:E,b.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!q&&!!x.runBackwards,!q||D&&!x.stagger){if(v=(p=L[0]?ht(L[0]).harness:0)&&x[p.prop],a=Ot(x,rt),z&&(z._zTime<0&&z.progress(1),i<0&&M&&O&&!P?z.render(-1,!0):z.revert(M&&N?tt:Z),z._lazy=0),A){if(Et(e._startAt=Qe.set(L,xt({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:!z&&R(S),startAt:null,delay:0,onUpdate:C&&function(){return de(e,"onUpdate")},stagger:0},A))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n||!O&&!P)&&e._startAt.revert(tt),O&&N&&i<=0&&o<=0)return void(i&&(e._zTime=i))}else if(M&&N&&!z)if(i&&(O=!1),l=xt({overwrite:!1,data:"isFromStart",lazy:O&&!z&&R(S),immediateRender:O,stagger:0,parent:F},a),v&&(l[p.prop]=v),Et(e._startAt=Qe.set(L,l)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n?e._startAt.revert(tt):e._startAt.render(-1,!0)),e._zTime=i,O){if(!i)return}else t(e._startAt,T,T);for(e._pt=e._ptCache=0,S=N&&R(S)||S&&!N,u=0;u<L.length;u++){if(d=(h=L[u])._gsap||ct(L)[u]._gsap,e._ptLookup[u]=_={},it[d.id]&&nt.length&&vt(),g=B===L?u:B.indexOf(h),p&&!1!==(m=new p).init(h,v||a,e,g,B)&&(e._pt=c=new fr(e._pt,h,m.name,0,1,m.render,m,0,m.priority),m._props.forEach(function(t){_[t]=c}),m.priority&&(f=1)),!p||v)for(l in a)st[l]&&(m=Xe(l,a,e,g,h,B))?m.priority&&(f=1):_[l]=c=Ve.call(e,h,l,"get",a[l],g,B,0,x.stringFilter);e._op&&e._op[u]&&e.kill(h,e._op[u]),I&&e._pt&&($e=e,s.killTweensOf(h,_,e.globalTime(i)),y=!e.parent,$e=0),e._pt&&S&&(it[d.id]=1)}f&&hr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!y,D&&i<=0&&q.render(w,!0,!0)},He=function(t,e,r,n){var i,s,o=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:o})});else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:o})},Ge=function(t,e,r,n,i){return E(t)?t.call(e,r,n,i):M(t)&&~t.indexOf("random(")?ce(t):t},Je=lt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ke={};dt(Je+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Ke[t]=1});var Qe=function(i){function o(e,n,o,a){var u;"number"==typeof n&&(o.duration=n,n=o,o=null);var l,c,h,f,d,p,m,_,g=(u=i.call(this,a?n:St(n))||this).vars,v=g.duration,b=g.delay,w=g.immediateRender,T=g.stagger,x=g.overwrite,k=g.keyframes,A=g.defaults,O=g.scrollTrigger,S=g.yoyoEase,C=n.parent||s,M=(B(e)||F(e)?D(e[0]):"length"in n)?[e]:re(e);if(u._targets=M.length?ct(M):J("GSAP target "+e+" not found. https://gsap.com",!y.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=x,k||T||L(v)||L(b)){if(n=u.vars,(l=u.timeline=new je({data:"nested",defaults:A||{},targets:C&&"nested"===C.data?C.vars.targets:M})).kill(),l.parent=l._dp=t(u),l._start=0,T||L(v)||L(b)){if(f=M.length,m=T&&se(T),N(T))for(d in T)~Je.indexOf(d)&&(_||(_={}),_[d]=T[d]);for(c=0;c<f;c++)(h=Ot(n,Ke)).stagger=0,S&&(h.yoyoEase=S),_&&kt(h,_),p=M[c],h.duration=+Ge(v,t(u),c,p,M),h.delay=(+Ge(b,t(u),c,p,M)||0)-u._delay,!T&&1===f&&h.delay&&(u._delay=b=h.delay,u._start+=b,h.delay=0),l.to(p,h,m?m(c,p,M):0),l._ease=Ce.none;l.duration()?v=b=0:u.timeline=0}else if(k){St(xt(l.vars.defaults,{ease:"none"})),l._ease=Re(k.ease||n.ease||"none");var E,P,z,I=0;if(B(k))k.forEach(function(t){return l.to(M,t,">")}),l.duration();else{for(d in h={},k)"ease"===d||"easeEach"===d||He(d,k[d],h,k.easeEach);for(d in h)for(E=h[d].sort(function(t,e){return t.t-e.t}),I=0,c=0;c<E.length;c++)(z={ease:(P=E[c]).e,duration:(P.t-(c?E[c-1].t:0))/100*v})[d]=P.v,l.to(M,z,I),I+=z.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||u.duration(v=l.duration())}else u.timeline=0;return!0!==x||r||($e=t(u),s.killTweensOf(M),$e=0),qt(C,t(u),o),n.reversed&&u.reverse(),n.paused&&u.paused(!0),(w||!v&&!k&&u._start===mt(C._time)&&R(w)&&Nt(t(u))&&"nested"!==C.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-b)||0)),O&&jt(t(u),O),u}e(o,i);var a=o.prototype;return a.render=function(t,e,r){var i,s,o,a,u,l,c,h,f,d=this._time,p=this._tDur,m=this._dur,_=t<0,g=t>p-T&&!_?p:t<T?0:t;if(m){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==_||this._lazy){if(i=g,h=this.timeline,this._repeat){if(a=m+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*a+t,e,r);if(i=mt(g%a),g===p?(o=this._repeat,i=m):(o=~~(u=mt(g/a)))&&o===u?(i=m,o--):i>m&&(i=m),(l=this._yoyo&&1&o)&&(f=this._yEase,i=m-i),u=zt(this._tTime,a),i===d&&!r&&this._initted&&o===u)return this._tTime=g,this;o!==u&&(h&&this._yEase&&Ne(h,l),this.vars.repeatRefresh&&!l&&!this._lock&&i!==a&&this._initted&&(this._lock=r=1,this.render(mt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if($t(this,_?t:i,r,e,g))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&o!==u))return this;if(m!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(i/m),this._from&&(this.ratio=c=1-c),!d&&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(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Pt(this,t,0,r),de(this,"onUpdate")),this._repeat&&o!==u&&this.vars.onRepeat&&!e&&this.parent&&de(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(_&&!this._onUpdate&&Pt(this,t,0,!0),(t||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Et(this,1),e||_&&!d||!(g||d||l)||(de(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,i){var s,o,a,u=t.ratio,l=e<0||!e&&(!t._start&&Yt(t)&&(t._initted||!Wt(t))||(t._ts<0||t._dp._ts<0)&&!Wt(t))?0:1,c=t._rDelay,h=0;if(c&&t._repeat&&(h=Kt(0,t._tDur,e),o=zt(h,c),t._yoyo&&1&o&&(l=1-l),o!==zt(t._tTime,c)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||n||i||t._zTime===T||!e&&t._zTime){if(!t._initted&&$t(t,e,i,r,h))return;for(a=t._zTime,t._zTime=e||(r?T:0),r||(r=e&&!a),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&&Pt(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&&Et(t,1),r||n||(de(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},a.targets=function(){return this._targets},a.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),i.prototype.invalidate.call(this,t)},a.resetTo=function(t,e,r,n,i){f||Oe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ue(this,s),function(t,e,r,n,i,s,o,a){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 Ye=1,t.vars[e]="+=0",Ue(t,o),Ye=0,a?J(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=pt(r)+Qt(l.e)),l.b&&(l.b=u.s+Qt(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))},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?pe(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,$e&&!0!==$e.vars.overwrite)._first||pe(this),this.parent&&r!==this.timeline.totalDuration()&&Vt(this,this._dur*this.timeline._tDur/r,0,1),this}var i,s,o,a,u,l,c,h=this._targets,f=t?re(t):h,d=this._ptLookup,p=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),pe(this);for(i=this._op=this._op||[],"all"!==e&&(M(e)&&(u={},dt(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,n,i,s,o=t[0]?ht(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in r=kt({},e),a)if(n in r)for(i=(s=a[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=d[c],"all"===e?(i[c]=e,a=s,o={}):(o=i[c]=i[c]||{},a=e),a)(l=s&&s[u])&&("kill"in l.d&&!0!==l.d.kill(u)||Mt(this,l,"_pt"),delete s[u]),"all"!==o&&(o[u]=1);return this._initted&&!this._pt&&p&&pe(this),this},o.to=function(t,e){return new o(t,e,arguments[2])},o.from=function(t,e){return Gt(1,arguments)},o.delayedCall=function(t,e,r,n){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},o.fromTo=function(t,e,r){return Gt(2,arguments)},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},o}(qe);xt(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),dt("staggerTo,staggerFrom,staggerFromTo",function(t){Qe[t]=function(){var e=new je,r=Zt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var Ze=function(t,e,r){return t[e]=r},tr=function(t,e,r){return t[e](r)},er=function(t,e,r,n){return t[e](n.fp,r)},rr=function(t,e,r){return t.setAttribute(e,r)},nr=function(t,e){return E(t[e])?tr:P(t[e])&&t.setAttribute?rr:Ze},ir=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sr=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)},ar=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ur=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},lr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Mt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},cr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},hr=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},fr=function(){function t(t,e,r,n,i,s,o,a,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||ir,this.d=o||this,this.set=a||Ze,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=cr,this.m=t,this.mt=r,this.tween=e},t}();dt(lt+"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 rt[t]=1}),X.TweenMax=X.TweenLite=Qe,X.TimelineLite=X.TimelineMax=je,s=new je({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),y.stringFilter=Ae;var dr=[],pr={},mr=[],_r=0,gr=0,vr=function(t){return(pr[t]||mr).map(function(t){return t()})},yr=function(){var t=Date.now(),e=[];t-_r>2&&(vr("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))}),vr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),_r=t,vr("matchMedia"))},br=function(){function t(t,e){this.selector=e&&ne(e),this.data=[],this._r=[],this.isReverted=!1,this.id=gr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){E(t)&&(r=e,e=t,t=E);var n=this,s=function(){var t,s=i,o=n.selector;return s&&s!==n&&s.data.push(n),r&&(n.selector=ne(r)),i=n,t=e.apply(n,arguments),E(t)&&n._r.push(t),i=s,n.selector=o,n.isReverted=!1,t};return n.last=s,t===E?s(n,function(t){return n.add(null,t)}):t?n[t]=s:s},e.ignore=function(t){var e=i;i=null,t(this),i=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Qe&&!(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 Qe)&&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}(),wr=function(){function t(t){this.contexts=[],this.scope=t,i&&i.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){N(t)||(t={matches:t});var n,s,a,u=new br(0,r||this.scope),l=u.conditions={};for(s in i&&!u.selector&&(u.selector=i.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===s?a=1:(n=o.matchMedia(t[s]))&&(dr.indexOf(u)<0&&dr.push(u),(l[s]=n.matches)&&(a=1),n.addListener?n.addListener(yr):n.addEventListener("change",yr));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}(),Tr={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 _e(t)})},timeline:function(t){return new je(t)},getTweensOf:function(t,e){return s.getTweensOf(t,e)},getProperty:function(t,e,r,n){M(t)&&(t=re(t)[0]);var i=ht(t||{}).get,s=r?Tt:wt;return"native"===r&&(r=""),t?e?s((st[e]&&st[e].get||i)(t,e,r,n)):function(e,r,n){return s((st[e]&&st[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=re(t)).length>1){var n=t.map(function(t){return Ar.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=st[e],o=ht(t),a=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;h._pt=0,n.init(t,r?e+r:e,h,0,[t]),n.render(1,n),h._pt&&ar(1,h)}:o.set(t,a);return s?u:function(e){return u(t,a,r?e+r:e,o,1)}},quickTo:function(t,e,r){var n,i=Ar.to(t,xt(((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 s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Re(t.ease,b.ease)),At(b,t||{})},config:function(t){return At(y,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&&!st[t]&&!X[t]&&J(e+" effect requires "+t+" plugin.")}),ot[e]=function(t,e,n){return r(re(t),xt(e||{},i),n)},s&&(je.prototype[e]=function(t,r,n){return this.add(ot[e](t,N(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ce[t]=Re(e)},parseEase:function(t,e){return arguments.length?Re(t,e):Ce},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new je(t);for(i.smoothChildTiming=R(t.smoothChildTiming),s.remove(i),i._dp=0,i._time=i._tTime=s._time,r=s._first;r;)n=r._next,!e&&!r._dur&&r instanceof Qe&&r.vars.onComplete===r._targets[0]||qt(i,r,r._start-r._delay),r=n;return qt(s,i,0),i},context:function(t,e){return t?new br(t,e):i},matchMedia:function(t){return new wr(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()})||yr()},addEventListener:function(t,e){var r=pr[t]||(pr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=pr[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)?le(e,t(0,e.length),r):Jt(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)?le(e,t(0,e.length-1),r):Jt(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:se,random:ue,snap:ae,normalize:function(t,e,r){return he(t,e,0,1,r)},getUnit:Qt,clamp:function(t,e,r){return Jt(r,function(r){return Kt(t,e,r)})},splitColor:be,toArray:re,selector:ne,mapRange:he,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||Qt(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 o,a,u,l,c,h=M(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,a=1;a<l;a++)u.push(t(e[a-1],e[a]));l--,s=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},n=r}else i||(e=kt(B(e)?[]:{},e));if(!u){for(o in r)Ve.call(f,e,o,"get",r[o]);s=function(t){return ar(t,f)||(h?e.p:e)}}}return Jt(n,s)},shuffle:ie},install:H,effects:ot,ticker:Oe,updateRoot:je.updateRoot,plugins:st,globalTimeline:s,core:{PropTween:fr,globals:K,Tween:Qe,Timeline:je,Animation:qe,getCache:ht,_removeLinkedListItem:Mt,reverting:function(){return n},context:function(t){return t&&i&&(i.data.push(t),t._ctx=i),i},suppressOverwrites:function(t){return r=t}}};dt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Tr[t]=Qe[t]}),Oe.add(je.updateRoot),h=Tr.to({},{duration:0});var xr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},kr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(M(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=xr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Ar=Tr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,o,a;for(s in this.tween=r,e)a=t.getAttribute(s)||"",(o=this.add(t,"setAttribute",(a||0)+"",e[s],n,i,0,0,s)).op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)n?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)}},kr("roundProps",oe),kr("modifiers"),kr("snap",ae))||Tr;Qe.version=je.version=Ar.version="3.13.0",l=1,z()&&Se(),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;
9
+ */var r,n,i,s,a,o,u,l,c,h,f,p,d,m,_,g,v,y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},w=1e8,T=1e-8,x=2*Math.PI,A=x/4,k=0,O=Math.sqrt,S=Math.cos,C=Math.sin,E=function(t){return"string"==typeof t},M=function(t){return"function"==typeof t},D=function(t){return"number"==typeof t},P=function(t){return void 0===t},R=function(t){return"object"==typeof t},N=function(t){return!1!==t},z=function(){return"undefined"!=typeof window},L=function(t){return M(t)||E(t)},F="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},I=Array.isArray,B=/(?:-?\.?\d|\.)+/gi,q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,U=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,j=/[+-]=-?[.\d]+/,V=/[^,'"\[\]\s]+/gi,Y=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,X={},W={},H=function(t){return(W=At(t,X))&&kr},G=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},K=function(t,e){return t&&(X[t]=e)&&W&&(W[t]=e)||X},Q=function(){return 0},Z={suppressEvents:!0,isStart:!0,kill:!1},tt={suppressEvents:!0,kill:!1},et={suppressEvents:!0},rt={},nt=[],it={},st={},at={},ot=30,ut=[],lt="",ct=function(t){var e,r,n=t[0];if(R(n)||M(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ut.length;r--&&!ut[r].targetTest(n););e=ut[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Be(t[r],e)))||t.splice(r,1);return t},ht=function(t){return t._gsap||ct(re(t))[0]._gsap},ft=function(t,e,r){return(r=t[e])&&M(r)?t[e]():P(r)&&t.getAttribute&&t.getAttribute(e)||r},pt=function(t,e){return(t=t.split(",")).forEach(e)||t},dt=function(t){return Math.round(1e5*t)/1e5||0},mt=function(t){return Math.round(1e7*t)/1e7||0},_t=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},gt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},vt=function(){var t,e,r=nt.length,n=nt.slice(0);for(it={},nt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},yt=function(t){return!!(t._initted||t._startAt||t.add)},bt=function(t,e,r,i){nt.length&&!n&&vt(),t.render(e,r,!!(n&&e<0&&yt(t))),nt.length&&!n&&vt()},wt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(V).length<2?e:E(t)?t.trim():t},Tt=function(t){return t},xt=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},kt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=R(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ot=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},St=function(t){var e,r=t.parent||s,n=t.keyframes?(e=I(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):xt;if(N(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},Mt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Dt=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},Pt=function(t,e,r,i){return t._startAt&&(n?t._startAt.revert(tt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Rt=function t(e){return!e||e._ts&&t(e.parent)},Nt=function(t){return t._repeat?zt(t._tTime,t=t.duration()+t._rDelay)*t:0},zt=function(t,e){var r=Math.floor(t=mt(t/e));return t&&r===t?r-1:r},Lt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ft=function(t){return t._end=mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||T)||0))},It=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)),Ft(t),r._dirty||Dt(r,t)),t},Bt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Lt(t.rawTime(),e),(!e._dur||Kt(0,e.totalDuration(),r)-e._tTime>T)&&e.render(r,!0)),Dt(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}},qt=function(t,e,r,n){return e.parent&&Mt(e),e._start=mt((D(r)?r:r||t!==s?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),Vt(e)||(t._recent=e),n||Bt(t,e),t._ts<0&&It(t,t._tTime),t},Ut=function(t,e){return(X.ScrollTrigger||G("scrollTrigger",e))&&X.ScrollTrigger.create(e,t)},$t=function(t,e,r,i,s){return We(t,e,s),t._initted?!r&&t._pt&&!n&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==Oe.frame?(nt.push(t),t._lazy=[s,i],1):void 0:1},jt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Vt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Yt=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&&It(t,t._tTime=t._tDur*a),t.parent&&Ft(t),r||Dt(t.parent,t),t},Xt=function(t){return t instanceof Ue?Dt(t):Yt(t,t._dur)},Wt={_start:0,endTime:Q,totalDuration:Q},Ht=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||Wt,l=e.duration()>=w?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*(I(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},Gt=function(t,e,r){var n,i,s=D(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=N(i.vars.inherit)&&i.parent;o.immediateRender=N(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Qe(e[0],o,e[a+1])},Jt=function(t,e){return t||0===t?e(t):e},Kt=function(t,e,r){return r<t?t:r>e?e:r},Qt=function(t,e){return E(t)&&(e=Y.exec(t))?e[1]:""},Zt=[].slice,te=function(t,e){return t&&R(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&R(t[0]))&&!t.nodeType&&t!==a},ee=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return E(t)&&!e||te(t,1)?(n=r).push.apply(n,re(t)):r.push(t)})||r},re=function(t,e,r){return i&&!e&&i.selector?i.selector(t):!E(t)||r||!o&&Se()?I(t)?ee(t,r):te(t)?Zt.call(t,0):t?[t]:[]:Zt.call((e||u).querySelectorAll(t),0)},ne=function(t){return t=re(t)[0]||J("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return re(e,r.querySelectorAll?r:r===t?J("Invalid scope")||u.createElement("div"):t)}},ie=function(t){return t.sort(function(){return.5-Math.random()})},se=function(t){if(M(t))return t;var e=R(t)?t:{each:t},r=Ne(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,T=(h||e).length,x=s[T];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,w])[1])){for(v=-1e8;v<(v=h[b++].getBoundingClientRect().left)&&b<T;);b<T&&b--}for(x=s[T]=[],f=o?Math.min(b,T)*l-.5:n%b,p=b===w?0:o?T*c/b-.5:n/b|0,v=0,y=w,g=0;g<T;g++)d=g%b-f,m=p-(g/b|0),x[g]=_=u?Math.abs("y"===u?m:d):O(d*d+m*m),_>v&&(v=_),_<y&&(y=_);"random"===n&&ie(x),x.max=v-y,x.min=y,x.v=T=(parseFloat(e.amount)||parseFloat(e.each)*(b>T?T-1:u?"y"===u?T/b:b:Math.max(b,T/b))||0)*("edges"===n?-1:1),x.b=T<0?i-T:i,x.u=Qt(e.amount||e.each)||0,r=r&&T<0?Pe(r):r}return T=(x[t]-x.min)/x.max||0,mt(x.b+(r?r(T):T)*x.v)+x.u}},ae=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+(D(r)?0:Qt(r))}},oe=function(t,e){var r,n,i=I(t);return!i&&R(t)&&(r=i=t.radius||w,t.values?(t=re(t.values),(n=!D(t[0]))&&(r*=r)):t=ae(t.increment)),Jt(e,i?M(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=w,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||D(e)?l:l+Qt(e)}:ae(t))},ue=function(t,e,r,n){return Jt(I(t)?!e:!0===r?!!(r=0):!n,function(){return I(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})},le=function(t,e,r){return Jt(r,function(r){return t[~~e(r)]})},ce=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?V:B),a+=t.substr(s,e-s)+ue(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return a+t.substr(s,t.length-s)},he=function(t,e,r,n,i){var s=e-t,a=n-r;return Jt(i,function(e){return r+((e-t)/s*a||0)})},fe=function(t,e,r){var n,i,s,a=t.labels,o=w;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},pe=function(t,e,r){var n,s,a,o=t.vars,u=o[e],l=i,c=t._ctx;if(u)return n=o[e+"Params"],s=o.callbackScope||t,r&&nt.length&&vt(),c&&(i=c),a=n?u.apply(s,n):u.call(s),i=l,a},de=function(t){return Mt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!n),t.progress()<1&&pe(t,"onInterrupt"),t},me=[],_e=function(t){if(t)if(t=!t.name&&t.default||t,z()||t.headless){var e=t.name,r=M(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:Q,render:or,add:Ye,kill:lr,modifier:ur,rawVars:0},s={targetTest:0,get:0,getSetter:nr,aliases:{},register:0};if(Se(),t!==n){if(st[e])return;xt(n,xt(Ot(t,i),s)),At(n.prototype,At(i,Ot(t,s))),st[n.prop=e]=n,t.targetTest&&(ut.push(n),rt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}K(e,n),t.register&&t.register(kr,n,fr)}else me.push(t)},ge=255,ve={aqua:[0,ge,ge],lime:[0,ge,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ge],navy:[0,0,128],white:[ge,ge,ge],olive:[128,128,0],yellow:[ge,ge,0],orange:[ge,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ge,0,0],pink:[ge,192,203],cyan:[0,ge,ge],transparent:[ge,ge,ge,0]},ye=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)*ge+.5|0},be=function(t,e,r){var n,i,s,a,o,u,l,c,h,f,p=t?D(t)?[t>>16,t>>8&ge,t&ge]:0:ve.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ve[t])p=ve[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&ge,p&ge,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&ge,t&ge]}else if("hsl"===t.substr(0,3))if(p=f=t.match(B),e){if(~t.indexOf("="))return p=t.match(q),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]=ye(a+1/3,n,i),p[1]=ye(a,n,i),p[2]=ye(a-1/3,n,i);else p=t.match(B)||ve.transparent;p=p.map(Number)}return e&&!f&&(n=p[0]/ge,i=p[1]/ge,s=p[2]/ge,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},we=function(t){var e=[],r=[],n=-1;return t.split(xe).forEach(function(t){var i=t.match(U)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Te=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(xe),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=be(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=we(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(xe,"1").split(U)).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(xe)).length-1;c<a;c++)o+=i[c]+u[c];return o+i[a]},xe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ve)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ae=/hsl[a]?\(/,ke=function(t){var e,r=t.join(" ");if(xe.lastIndex=0,xe.test(r))return e=Ae.test(r),t[1]=Te(t[1],e),t[0]=Te(t[0],e,we(t[1])),!0},Oe=function(){var t,e,r,n,i,s,c=Date.now,h=500,p=33,d=c(),m=d,_=1e3/240,g=_,v=[],y=function r(a){var o,u,l,f,y=c()-m,b=!0===a;if((y>h||y<0)&&(d+=y-p),((o=(l=(m+=y)-d)-g)>0||b)&&(f=++n.frame,i=l-1e3*n.time,n.time=l/=1e3,g+=o+(o>=_?4:_-o),u=1),b||(t=e(r)),u)for(s=0;s<v.length;s++)v[s](l,i,f,a)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){l&&(!o&&z()&&(a=o=window,u=a.document||{},X.gsap=kr,(a.gsapVersions||(a.gsapVersions=[])).push(kr.version),H(W||a.GreenSockGlobals||!a.gsap&&a||{}),me.forEach(_e)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,g-1e3*n.time+1|0)},f=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),f=0,e=Q},lagSmoothing:function(t,e){h=t||1/0,p=Math.min(e||33,h)},fps:function(t){_=1e3/(t||240),g=1e3*n.time+_},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),Se(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),Se=function(){return!f&&Oe.wake()},Ce={},Ee=/^[\d.\-M][\d.\-,\s]/,Me=/["']/g,De=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(Me,"").trim():+n,a=r.substr(e+1).trim();return i},Pe=function(t){return function(e){return 1-t(1-e)}},Re=function t(e,r){for(var n,i=e._first;i;)i instanceof Ue?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},Ne=function(t,e){return t&&(M(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("{")?[De(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(wt)):Ce._CE&&Ee.test(t)?Ce._CE("",t):a}(t))||e},ze=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 pt(t,function(t){for(var e in Ce[t]=X[t]=s,Ce[i=t.toLowerCase()]=r,s)Ce[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ce[t+"."+e]=s[e]}),s},Le=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Fe=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/x*(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)}:Le(o);return s=x/s,u.config=function(r,n){return t(e,r,n)},u},Ie=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)}:Le(n);return i.config=function(r){return t(e,r)},i};pt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;ze(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,ze("Elastic",Fe("in"),Fe("out"),Fe()),p=7.5625,_=2*(m=1/(d=2.75)),g=2.5*m,ze("Bounce",function(t){return 1-v(1-t)},v=function(t){return t<m?p*t*t:t<_?p*Math.pow(t-1.5/d,2)+.75:t<g?p*(t-=2.25/d)*t+.9375:p*Math.pow(t-2.625/d,2)+.984375}),ze("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),ze("Circ",function(t){return-(O(1-t*t)-1)}),ze("Sine",function(t){return 1===t?1:1-S(t*A)}),ze("Back",Ie("in"),Ie("out"),Ie()),Ce.SteppedEase=Ce.steps=X.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*Kt(0,.99999999,t)|0)+i)*r}}},b.ease=Ce["quad.out"],pt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return lt+=t+","+t+"Params,"});var Be=function(t,e){this.id=k++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ft,this.set=e?e.getSetter:nr},qe=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,Yt(this,+t.duration,1,1),this.data=t.data,i&&(this._ctx=i,i.data.push(this)),f||Oe.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,Yt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Se(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(It(this,t),!r._dp||r.parent||Bt(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)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===T||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Nt(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)+Nt(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?zt(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?Lt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Kt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Ft(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):(Se(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==T&&(this._tTime-=T)))),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)&&qt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(N(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?Lt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=et);var e=n;return n=t,yt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),n=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,Xt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Xt(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),N(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,N(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)-T))},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=M(t)?t:Tt,i=function(){var t=e.then;e.then=null,M(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(){de(this)},t}();xt(qe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ue=function(r){function i(e,n){var i;return void 0===e&&(e={}),(i=r.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=N(e.sortChildren),s&&qt(e.parent||s,t(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Ut(t(i),e.scrollTrigger),i}e(i,r);var a=i.prototype;return a.to=function(t,e,r){return Gt(0,arguments,this),this},a.from=function(t,e,r){return Gt(1,arguments,this),this},a.fromTo=function(t,e,r,n){return Gt(2,arguments,this),this},a.set=function(t,e,r){return e.duration=0,e.parent=this,St(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Qe(t,e,Ht(this,r),1),this},a.call=function(t,e,r){return qt(this,Qe.delayedCall(0,t,e),r)},a.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 Qe(t,r,Ht(this,i)),this},a.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,St(r).immediateRender=N(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},a.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,St(n).immediateRender=N(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},a.render=function(t,e,r){var i,a,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!==s&&b>v&&t>=0&&(b=v),b!==this._tTime||r||w){if(g!==this._time&&y&&(b+=this._time-g,t+=this._time-g),i=b,p=this._start,c=!(f=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(m=this._yoyo,l=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(i=mt(b%l),b===v?(u=this._repeat,i=y):((u=~~(d=mt(b/l)))&&u===d&&(i=y,u--),i>y&&(i=y)),d=zt(this._tTime,l),!g&&this._tTime&&d!==u&&this._tTime-d*l-this._dur<=0&&(d=u),m&&1&u&&(i=y-i,_=1),u!==d&&!this._lock){var x=m&&1&d,A=x===(m&&1&u);if(u<d&&(x=!x),g=x?0:b%y?y:b,this._lock=1,this.render(g||(_?0:mt(u*l)),e,!y)._lock=0,this._tTime=b,!e&&this.parent&&pe(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(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,A&&(this._lock=2,g=x?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!c)return this;Re(this,_)}}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(i)),h&&(b-=i-(i=h._start))),this._tTime=b,this._time=i,this._act=!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&b&&!e&&!d&&(pe(this,"onStart"),this._tTime!==b))return this;if(i>=g&&t>=0)for(a=this._first;a;){if(o=a._next,(a._act||i>=a._start)&&a._ts&&h!==a){if(a.parent!==this)return this.render(t,e,r);if(a.render(a._ts>0?(i-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(i-a._start)*a._ts,e,r),i!==this._time||!this._ts&&!c){h=0,o&&(b+=this._zTime=-1e-8);break}}a=o}else{a=this._last;for(var k=t<0?t:i;a;){if(o=a._prev,(a._act||k<=a._end)&&a._ts&&h!==a){if(a.parent!==this)return this.render(t,e,r);if(a.render(a._ts>0?(k-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(k-a._start)*a._ts,e,r||n&&yt(a)),i!==this._time||!this._ts&&!c){h=0,o&&(b+=this._zTime=k?-1e-8:T);break}}a=o}}if(h&&!e&&(this.pause(),h.render(i>=g?0:-1e-8)._zTime=i>=g?1:-1,this._ts))return this._start=p,Ft(this),this.render(t,e,r);this._onUpdate&&!e&&pe(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)&&Mt(this,1),e||t<0&&!g||!b&&!g&&v||(pe(this,b===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<v&&this.timeScale()>0)&&this._prom())))}return this},a.add=function(t,e){var r=this;if(D(e)||(e=Ht(this,e,t)),!(t instanceof qe)){if(I(t))return t.forEach(function(t){return r.add(t,e)}),this;if(E(t))return this.addLabel(t,e);if(!M(t))return this;t=Qe.delayedCall(0,t)}return this!==t?qt(this,t,e):this},a.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 Qe?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},a.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},a.remove=function(t){return E(t)?this.removeLabel(t):M(t)?this.killTweensOf(t):(t.parent===this&&Et(this,t),t===this._recent&&(this._recent=this._last),Dt(this))},a.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=mt(Oe.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},a.addLabel=function(t,e){return this.labels[t]=Ht(this,e),this},a.removeLabel=function(t){return delete this.labels[t],this},a.addPause=function(t,e,r){var n=Qe.delayedCall(0,e||Q,r);return n.data="isPause",this._hasPause=1,qt(this,n,Ht(this,t))},a.removePause=function(t){var e=this._first;for(t=Ht(this,t);e;)e._start===t&&"isPause"===e.data&&Mt(e),e=e._next},a.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)$e!==n[i]&&n[i].kill(t,e);return this},a.getTweensOf=function(t,e){for(var r,n=[],i=re(t),s=this._first,a=D(e);s;)s instanceof Qe?gt(s._targets,i)&&(a?(!$e||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},a.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=Qe.to(n,xt({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())||T,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&&Yt(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},a.tweenFromTo=function(t,e,r){return this.tweenTo(e,xt({startAt:{time:Ht(this,t)}},r))},a.recent=function(){return this._recent},a.nextLabel=function(t){return void 0===t&&(t=this._time),fe(this,Ht(this,t))},a.previousLabel=function(t){return void 0===t&&(t=this._time),fe(this,Ht(this,t),1)},a.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+T)},a.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 Dt(this)},a.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return r.prototype.invalidate.call(this,t)},a.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={}),Dt(this)},a.totalDuration=function(t){var e,r,n,i=0,a=this,o=a._last,u=w;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(n=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>u&&a._sort&&o._ts&&!a._lock?(a._lock=1,qt(a,o,r-o._delay,1)._lock=0):u=r,r<0&&o._ts&&(i-=r,(!n&&!a._dp||n&&n.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-1/0),u=0),o._end>i&&o._ts&&(i=o._end),o=e;Yt(a,a===s&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},i.updateRoot=function(t){if(s._ts&&(bt(s,Lt(t,s)),c=Oe.frame),Oe.frame>=ot){ot+=y.autoSleep||120;var e=s._first;if((!e||!e._ts)&&y.autoSleep&&Oe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Oe.sleep()}}},i}(qe);xt(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var $e,je,Ve=function(t,e,r,n,i,s,a){var o,u,l,c,h,f,p,d,m=new fr(this._pt,t,e,0,1,ar,null,i),_=0,g=0;for(m.b=r,m.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=ce(n)),s&&(s(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match($)||[];o=$.exec(n);)c=o[0],h=n.substring(_,o.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,m._pt={_next:m._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?_t(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},_=$.lastIndex);return m.c=_<n.length?n.substring(_,n.length):"",m.fp=a,(j.test(n)||p)&&(m.e=0),this._pt=m,m},Ye=function(t,e,r,n,i,s,a,o,u,l){M(n)&&(n=n(i||0,t,s));var c,h=t[e],f="get"!==r?r:M(h)?u?t[e.indexOf("set")||!M(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,p=M(h)?u?er:tr:Ze;if(E(n)&&(~n.indexOf("random(")&&(n=ce(n)),"="===n.charAt(1)&&((c=_t(f,n)+(Qt(f)||0))||0===c)&&(n=c)),!l||f!==n||je)return isNaN(f*n)||""===n?(!h&&!(e in t)&&G(e,n),Ve.call(this,t,e,f,n,p,o||y.stringFilter,u)):(c=new fr(this._pt,t,e,+f||0,n-(f||0),"boolean"==typeof h?sr:ir,0,p),u&&(c.fp=u),a&&c.modifier(a,this,t),this._pt=c)},Xe=function(t,e,r,n,i,s){var a,o,u,l;if(st[t]&&!1!==(a=new st[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(M(t)&&(t=Ge(t,i,e,r,n)),!R(t)||t.style&&t.nodeType||I(t)||F(t))return E(t)?Ge(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=Ge(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new fr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==h))for(u=r._ptLookup[r._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=o;return a},We=function t(e,i,a){var o,u,l,c,h,f,p,d,m,_,g,v,y,x=e.vars,A=x.ease,k=x.startAt,O=x.immediateRender,S=x.lazy,C=x.onUpdate,E=x.runBackwards,M=x.yoyoEase,D=x.keyframes,P=x.autoRevert,R=e._dur,z=e._startAt,L=e._targets,F=e.parent,I=F&&"nested"===F.data?F.vars.targets:L,B="auto"===e._overwrite&&!r,q=e.timeline;if(q&&(!D||!A)&&(A="none"),e._ease=Ne(A,b.ease),e._yEase=M?Pe(Ne(!0===M?A:M,b.ease)):0,M&&e._yoyo&&!e._repeat&&(M=e._yEase,e._yEase=e._ease,e._ease=M),e._from=!q&&!!x.runBackwards,!q||D&&!x.stagger){if(v=(d=L[0]?ht(L[0]).harness:0)&&x[d.prop],o=Ot(x,rt),z&&(z._zTime<0&&z.progress(1),i<0&&E&&O&&!P?z.render(-1,!0):z.revert(E&&R?tt:Z),z._lazy=0),k){if(Mt(e._startAt=Qe.set(L,xt({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:!z&&N(S),startAt:null,delay:0,onUpdate:C&&function(){return pe(e,"onUpdate")},stagger:0},k))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n||!O&&!P)&&e._startAt.revert(tt),O&&R&&i<=0&&a<=0)return void(i&&(e._zTime=i))}else if(E&&R&&!z)if(i&&(O=!1),l=xt({overwrite:!1,data:"isFromStart",lazy:O&&!z&&N(S),immediateRender:O,stagger:0,parent:F},o),v&&(l[d.prop]=v),Mt(e._startAt=Qe.set(L,l)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n?e._startAt.revert(tt):e._startAt.render(-1,!0)),e._zTime=i,O){if(!i)return}else t(e._startAt,T,T);for(e._pt=e._ptCache=0,S=R&&N(S)||S&&!R,u=0;u<L.length;u++){if(p=(h=L[u])._gsap||ct(L)[u]._gsap,e._ptLookup[u]=_={},it[p.id]&&nt.length&&vt(),g=I===L?u:I.indexOf(h),d&&!1!==(m=new d).init(h,v||o,e,g,I)&&(e._pt=c=new fr(e._pt,h,m.name,0,1,m.render,m,0,m.priority),m._props.forEach(function(t){_[t]=c}),m.priority&&(f=1)),!d||v)for(l in o)st[l]&&(m=Xe(l,o,e,g,h,I))?m.priority&&(f=1):_[l]=c=Ye.call(e,h,l,"get",o[l],g,I,0,x.stringFilter);e._op&&e._op[u]&&e.kill(h,e._op[u]),B&&e._pt&&($e=e,s.killTweensOf(h,_,e.globalTime(i)),y=!e.parent,$e=0),e._pt&&S&&(it[p.id]=1)}f&&hr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!y,D&&i<=0&&q.render(w,!0,!0)},He=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(I(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})},Ge=function(t,e,r,n,i){return M(t)?t.call(e,r,n,i):E(t)&&~t.indexOf("random(")?ce(t):t},Je=lt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ke={};pt(Je+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Ke[t]=1});var Qe=function(i){function a(e,n,a,o){var u;"number"==typeof n&&(a.duration=n,n=a,a=null);var l,c,h,f,p,d,m,_,g=(u=i.call(this,o?n:St(n))||this).vars,v=g.duration,b=g.delay,w=g.immediateRender,T=g.stagger,x=g.overwrite,A=g.keyframes,k=g.defaults,O=g.scrollTrigger,S=g.yoyoEase,C=n.parent||s,E=(I(e)||F(e)?D(e[0]):"length"in n)?[e]:re(e);if(u._targets=E.length?ct(E):J("GSAP target "+e+" not found. https://gsap.com",!y.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=x,A||T||L(v)||L(b)){if(n=u.vars,(l=u.timeline=new Ue({data:"nested",defaults:k||{},targets:C&&"nested"===C.data?C.vars.targets:E})).kill(),l.parent=l._dp=t(u),l._start=0,T||L(v)||L(b)){if(f=E.length,m=T&&se(T),R(T))for(p in T)~Je.indexOf(p)&&(_||(_={}),_[p]=T[p]);for(c=0;c<f;c++)(h=Ot(n,Ke)).stagger=0,S&&(h.yoyoEase=S),_&&At(h,_),d=E[c],h.duration=+Ge(v,t(u),c,d,E),h.delay=(+Ge(b,t(u),c,d,E)||0)-u._delay,!T&&1===f&&h.delay&&(u._delay=b=h.delay,u._start+=b,h.delay=0),l.to(d,h,m?m(c,d,E):0),l._ease=Ce.none;l.duration()?v=b=0:u.timeline=0}else if(A){St(xt(l.vars.defaults,{ease:"none"})),l._ease=Ne(A.ease||n.ease||"none");var M,P,z,B=0;if(I(A))A.forEach(function(t){return l.to(E,t,">")}),l.duration();else{for(p in h={},A)"ease"===p||"easeEach"===p||He(p,A[p],h,A.easeEach);for(p in h)for(M=h[p].sort(function(t,e){return t.t-e.t}),B=0,c=0;c<M.length;c++)(z={ease:(P=M[c]).e,duration:(P.t-(c?M[c-1].t:0))/100*v})[p]=P.v,l.to(E,z,B),B+=z.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||u.duration(v=l.duration())}else u.timeline=0;return!0!==x||r||($e=t(u),s.killTweensOf(E),$e=0),qt(C,t(u),a),n.reversed&&u.reverse(),n.paused&&u.paused(!0),(w||!v&&!A&&u._start===mt(C._time)&&N(w)&&Rt(t(u))&&"nested"!==C.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-b)||0)),O&&Ut(t(u),O),u}e(a,i);var o=a.prototype;return o.render=function(t,e,r){var i,s,a,o,u,l,c,h,f,p=this._time,d=this._tDur,m=this._dur,_=t<0,g=t>d-T&&!_?d:t<T?0:t;if(m){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==_||this._lazy){if(i=g,h=this.timeline,this._repeat){if(o=m+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*o+t,e,r);if(i=mt(g%o),g===d?(a=this._repeat,i=m):(a=~~(u=mt(g/o)))&&a===u?(i=m,a--):i>m&&(i=m),(l=this._yoyo&&1&a)&&(f=this._yEase,i=m-i),u=zt(this._tTime,o),i===p&&!r&&this._initted&&a===u)return this._tTime=g,this;a!==u&&(h&&this._yEase&&Re(h,l),this.vars.repeatRefresh&&!l&&!this._lock&&i!==o&&this._initted&&(this._lock=r=1,this.render(mt(o*a),!0).invalidate()._lock=0))}if(!this._initted){if($t(this,_?t:i,r,e,g))return this._tTime=0,this;if(!(p===this._time||r&&this.vars.repeatRefresh&&a!==u))return this;if(m!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(i/m),this._from&&(this.ratio=c=1-c),!p&&g&&!e&&!u&&(pe(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(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Pt(this,t,0,r),pe(this,"onUpdate")),this._repeat&&a!==u&&this.vars.onRepeat&&!e&&this.parent&&pe(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(_&&!this._onUpdate&&Pt(this,t,0,!0),(t||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Mt(this,1),e||_&&!p||!(g||p||l)||(pe(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,i){var s,a,o,u=t.ratio,l=e<0||!e&&(!t._start&&jt(t)&&(t._initted||!Vt(t))||(t._ts<0||t._dp._ts<0)&&!Vt(t))?0:1,c=t._rDelay,h=0;if(c&&t._repeat&&(h=Kt(0,t._tDur,e),a=zt(h,c),t._yoyo&&1&a&&(l=1-l),a!==zt(t._tTime,c)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||n||i||t._zTime===T||!e&&t._zTime){if(!t._initted&&$t(t,e,i,r,h))return;for(o=t._zTime,t._zTime=e||(r?T: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&&Pt(t,e,0,!0),t._onUpdate&&!r&&pe(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&pe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Mt(t,1),r||n||(pe(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(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),i.prototype.invalidate.call(this,t)},o.resetTo=function(t,e,r,n,i){f||Oe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||We(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 je=1,t.vars[e]="+=0",We(t,a),je=0,o?J(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=dt(r)+Qt(l.e)),l.b&&(l.b=u.s+Qt(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(It(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?de(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,$e&&!0!==$e.vars.overwrite)._first||de(this),this.parent&&r!==this.timeline.totalDuration()&&Yt(this,this._dur*this.timeline._tDur/r,0,1),this}var i,s,a,o,u,l,c,h=this._targets,f=t?re(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),de(this);for(i=this._op=this._op||[],"all"!==e&&(E(e)&&(u={},pt(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,n,i,s,a=t[0]?ht(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?(i[c]=e,o=s,a={}):(a=i[c]=i[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&&de(this),this},a.to=function(t,e){return new a(t,e,arguments[2])},a.from=function(t,e){return Gt(1,arguments)},a.delayedCall=function(t,e,r,n){return new a(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},a.fromTo=function(t,e,r){return Gt(2,arguments)},a.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new a(t,e)},a.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},a}(qe);xt(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),pt("staggerTo,staggerFrom,staggerFromTo",function(t){Qe[t]=function(){var e=new Ue,r=Zt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var Ze=function(t,e,r){return t[e]=r},tr=function(t,e,r){return t[e](r)},er=function(t,e,r,n){return t[e](n.fp,r)},rr=function(t,e,r){return t.setAttribute(e,r)},nr=function(t,e){return M(t[e])?tr:P(t[e])&&t.setAttribute?rr:Ze},ir=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ar=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)},or=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ur=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},lr=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},cr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},hr=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},fr=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||ir,this.d=a||this,this.set=o||Ze,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=cr,this.m=t,this.mt=r,this.tween=e},t}();pt(lt+"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 rt[t]=1}),X.TweenMax=X.TweenLite=Qe,X.TimelineLite=X.TimelineMax=Ue,s=new Ue({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),y.stringFilter=ke;var pr=[],dr={},mr=[],_r=0,gr=0,vr=function(t){return(dr[t]||mr).map(function(t){return t()})},yr=function(){var t=Date.now(),e=[];t-_r>2&&(vr("matchMediaInit"),pr.forEach(function(t){var r,n,i,s,o=t.queries,u=t.conditions;for(n in o)(r=a.matchMedia(o[n]).matches)&&(i=1),r!==u[n]&&(u[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),vr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),_r=t,vr("matchMedia"))},br=function(){function t(t,e){this.selector=e&&ne(e),this.data=[],this._r=[],this.isReverted=!1,this.id=gr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){M(t)&&(r=e,e=t,t=M);var n=this,s=function(){var t,s=i,a=n.selector;return s&&s!==n&&s.data.push(n),r&&(n.selector=ne(r)),i=n,t=e.apply(n,arguments),M(t)&&n._r.push(t),i=s,n.selector=a,n.isReverted=!1,t};return n.last=s,t===M?s(n,function(t){return n.add(null,t)}):t?n[t]=s:s},e.ignore=function(t){var e=i;i=null,t(this),i=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Qe&&!(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 Ue?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Qe)&&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=pr.length;n--;)pr[n].id===this.id&&pr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),wr=function(){function t(t){this.contexts=[],this.scope=t,i&&i.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){R(t)||(t={matches:t});var n,s,o,u=new br(0,r||this.scope),l=u.conditions={};for(s in i&&!u.selector&&(u.selector=i.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===s?o=1:(n=a.matchMedia(t[s]))&&(pr.indexOf(u)<0&&pr.push(u),(l[s]=n.matches)&&(o=1),n.addListener?n.addListener(yr):n.addEventListener("change",yr));return o&&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}(),Tr={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 _e(t)})},timeline:function(t){return new Ue(t)},getTweensOf:function(t,e){return s.getTweensOf(t,e)},getProperty:function(t,e,r,n){E(t)&&(t=re(t)[0]);var i=ht(t||{}).get,s=r?Tt:wt;return"native"===r&&(r=""),t?e?s((st[e]&&st[e].get||i)(t,e,r,n)):function(e,r,n){return s((st[e]&&st[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=re(t)).length>1){var n=t.map(function(t){return kr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=st[e],a=ht(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;h._pt=0,n.init(t,r?e+r:e,h,0,[t]),n.render(1,n),h._pt&&or(1,h)}: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=kr.to(t,xt(((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 s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ne(t.ease,b.ease)),kt(b,t||{})},config:function(t){return kt(y,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&&!st[t]&&!X[t]&&J(e+" effect requires "+t+" plugin.")}),at[e]=function(t,e,n){return r(re(t),xt(e||{},i),n)},s&&(Ue.prototype[e]=function(t,r,n){return this.add(at[e](t,R(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ce[t]=Ne(e)},parseEase:function(t,e){return arguments.length?Ne(t,e):Ce},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Ue(t);for(i.smoothChildTiming=N(t.smoothChildTiming),s.remove(i),i._dp=0,i._time=i._tTime=s._time,r=s._first;r;)n=r._next,!e&&!r._dur&&r instanceof Qe&&r.vars.onComplete===r._targets[0]||qt(i,r,r._start-r._delay),r=n;return qt(s,i,0),i},context:function(t,e){return t?new br(t,e):i},matchMedia:function(t){return new wr(t)},matchMediaRefresh:function(){return pr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||yr()},addEventListener:function(t,e){var r=dr[t]||(dr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=dr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return I(e)?le(e,t(0,e.length),r):Jt(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return I(e)?le(e,t(0,e.length-1),r):Jt(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:se,random:ue,snap:oe,normalize:function(t,e,r){return he(t,e,0,1,r)},getUnit:Qt,clamp:function(t,e,r){return Jt(r,function(r){return Kt(t,e,r)})},splitColor:be,toArray:re,selector:ne,mapRange:he,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||Qt(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(I(e)&&!I(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(I(e)?[]:{},e));if(!u){for(a in r)Ye.call(f,e,a,"get",r[a]);s=function(t){return or(t,f)||(h?e.p:e)}}}return Jt(n,s)},shuffle:ie},install:H,effects:at,ticker:Oe,updateRoot:Ue.updateRoot,plugins:st,globalTimeline:s,core:{PropTween:fr,globals:K,Tween:Qe,Timeline:Ue,Animation:qe,getCache:ht,_removeLinkedListItem:Et,reverting:function(){return n},context:function(t){return t&&i&&(i.data.push(t),t._ctx=i),i},suppressOverwrites:function(t){return r=t}}};pt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Tr[t]=Qe[t]}),Oe.add(Ue.updateRoot),h=Tr.to({},{duration:0});var xr=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={},pt(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=xr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},kr=Tr.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;)n?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",ae),Ar("modifiers"),Ar("snap",oe))||Tr;Qe.version=Ue.version=kr.version="3.13.0",l=1,z()&&Se(),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
10
  /*!
11
11
  * CSSPlugin 3.13.0
12
12
  * https://gsap.com
@@ -15,4 +15,4 @@ function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialis
15
15
  * Subject to the terms at https://gsap.com/standard-license
16
16
  * @author: Jack Doyle, jack@greensock.com
17
17
  */
18
- var Or,Sr,Cr,Mr,Er,Dr,Pr,Nr,Rr={},zr=180/Math.PI,Lr=Math.PI/180,Fr=Math.atan2,Br=/([A-Z])/g,Ir=/(left|right|width|margin|padding|x)/i,qr=/[\s,\(]\S/,jr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$r=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Yr=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)},Wr=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)},Vr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Xr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Ur=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},Gr=function(t,e,r){return t.style.setProperty(e,r)},Jr=function(t,e,r){return t._gsap[e]=r},Kr=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Qr=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},Zr=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},tn="transform",en=tn+"Origin",rn=function t(e,r){var n=this,i=this.target,s=i.style,o=i._gsap;if(e in Rr&&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]=wn(i,t)}):this.tfm[e]=o.x?o[e]:wn(i,e),e===en&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(tn)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(en,r,"")),e=tn}(s||r)&&this.props.push(e,r,s[e])},nn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},sn=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=Pr())&&t.isStart||i[tn]||(nn(i),s.zOrigin&&i[en]&&(i[en]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},on=function(t,e){var r={target:t,props:[],revert:sn,save:rn};return t._gsap||Ar.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},an=function(t,e){var r=Sr.createElementNS?Sr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Sr.createElement(t);return r&&r.style?r:Sr.createElement(t)},un=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,cn(r)||r,1)||""},ln="O,Moz,ms,Ms,Webkit".split(","),cn=function(t,e,r){var n=(e||Er).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(ln[i]+t in n););return i<0?null:(3===i?"ms":i>=0?ln[i]:"")+t},hn=function(){"undefined"!=typeof window&&window.document&&(Or=window,Sr=Or.document,Cr=Sr.documentElement,Er=an("div")||{style:{}},an("div"),tn=cn(tn),en=tn+"Origin",Er.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Nr=!!cn("perspective"),Pr=Ar.core.reverting,Mr=1)},fn=function(t){var e,r=t.ownerSVGElement,n=an("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])},pn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=fn(t),r=1}return e&&(e.width||e.height)||r||(e=fn(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||!pn(t))},_n=function(t,e){if(e){var r,n=t.style;e in Rr&&e!==en&&(e=tn),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)}},gn=function(t,e,r,n,i,s){var o=new fr(t._pt,e,r,0,1,s?Ur:Xr);return t._pt=o,o.b=n,o.e=i,t._props.push(r),o},vn={deg:1,rad:1,turn:1},yn={grid:1,flex:1},bn=function t(e,r,n,i){var s,o,a,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",h=Er.style,f=Ir.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,_="px"===i,g="%"===i;if(i===c||!l||vn[i]||vn[c])return l;if("px"!==c&&!_&&(l=t(e,r,n,"px")),u=e.getCTM&&mn(e),(g||"%"===c)&&(Rr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[f?"width":"height"]:e[p],pt(g?l/s*m:l/100*s);if(h[f?"width":"height"]=m+(_?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Sr&&o.appendChild||(o=Sr.body),(a=o._gsap)&&g&&a.width&&f&&a.time===Oe.time&&!a.uncache)return pt(l/a.width*m);if(!g||"height"!==r&&"width"!==r)(g||"%"===c)&&!yn[un(o,"display")]&&(h.position=un(e,"position")),o===e&&(h.position="static"),o.appendChild(Er),s=Er[p],o.removeChild(Er),h.position="absolute";else{var v=e.style[r];e.style[r]=m+i,s=e[p],v?e.style[r]=v:_n(e,r)}return f&&g&&((a=ht(o)).time=Oe.time,a.width=o[p]),pt(_?s*l/m:s&&l?m/s*l:0)},wn=function(t,e,r,n){var i;return Mr||hn(),e in jr&&"transform"!==e&&~(e=jr[e]).indexOf(",")&&(e=e.split(",")[0]),Rr[e]&&"transform"!==e?(i=Nn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Rn(un(t,en))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=On[e]&&On[e](t,e,r)||un(t,e)||ft(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?bn(t,e,i,r)+r:i},Tn=function(t,e,r,n){if(!r||"none"===r){var i=cn(e,t,1),s=i&&un(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=un(t,"borderTopColor"))}var o,a,u,l,c,h,f,d,p,m,_,g=new fr(this._pt,t.style,e,0,1,or),v=0,b=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=un(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=un(t,e)||n,h?t.style[e]=h:_n(t,e)),Ae(o=[r,n]),n=o[1],u=(r=o[0]).match(j)||[],(n.match(j)||[]).length){for(;a=j.exec(n);)f=a[0],p=n.substring(v,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[b++]||"")&&(l=parseFloat(h)||0,_=h.substr((l+"").length),"="===f.charAt(1)&&(f=_t(l,f)+_),d=parseFloat(f),m=f.substr((d+"").length),v=j.lastIndex-m.length,m||(m=m||y.units[e]||_,v===n.length&&(n+=m,g.e+=m)),_!==m&&(l=bn(t,e,h,m)||0),g._pt={_next:g._pt,p:p||1===b?p:",",s:l,c:d-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?Ur:Xr;return Y.test(n)&&(g.e=0),this._pt=g,g},xn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},kn=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]=xn[r]||r,e[1]=xn[n]||n,e.join(" ")},An=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,o=s.style,a=e.u,u=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(i=(a=a.split(",")).length;--i>-1;)r=a[i],Rr[r]&&(n=1,r="transformOrigin"===r?en:tn),_n(s,r);n&&(_n(s,tn),u&&(u.svg&&s.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Nn(s,1),u.uncache=1,nn(o)))}},On={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new fr(t._pt,e,r,0,0,An);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Sn=[1,0,0,1,0,0],Cn={},Mn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},En=function(t){var e=un(t,tn);return Mn(e)?Sn:e.substr(7).match(q).map(pt)},Dn=function(t,e){var r,n,i,s,o=t._gsap||ht(t),a=t.style,u=En(t);return o.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(",")?Sn:u:(u!==Sn||t.offsetParent||t===Cr||o.svg||(i=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Cr.appendChild(t)),u=En(t),i?a.display=i:_n(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)},Pn=function(t,e,r,n,i,s){var o,a,u,l=t._gsap,c=i||Dn(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,m=c[0],_=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!==Sn&&(a=m*v-_*g)&&(u=T*(-_/a)+x*(m/a)-(m*b-_*y)/a,T=T*(v/a)+x*(-g/a)+(g*b-v*y)/a,x=u):(T=(o=pn(t)).x+(~w[0].indexOf("%")?T/100*o.width:T),x=o.y+(~(w[1]||w[0]).indexOf("%")?x/100*o.height:x)),n||!1!==n&&l.smooth?(y=T-h,b=x-f,l.xOffset=d+(y*m+b*g)-y,l.yOffset=p+(y*_+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[en]="0px 0px",s&&(gn(s,l,"xOrigin",h,T),gn(s,l,"yOrigin",f,x),gn(s,l,"xOffset",d,l.xOffset),gn(s,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",T+" "+x)},Nn=function(t,e){var r=t._gsap||new Ie(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,o,a,u,l,c,h,f,d,p,m,_,g,v,b,w,T,x,k,A,O,S,C,M,E,D,P,N,R,z,L=t.style,F=r.scaleX<0,B="px",I="deg",q=getComputedStyle(t),j=un(t,en)||"0";return n=i=s=u=l=c=h=f=d=0,o=a=1,r.svg=!(!t.getCTM||!mn(t)),q.translate&&("none"===q.translate&&"none"===q.scale&&"none"===q.rotate||(L[tn]=("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[tn]?q[tn]:"")),L.scale=L.rotate=L.translate="none"),_=Dn(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),j=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",S=""):S=!e&&t.getAttribute("data-svg-origin"),Pn(t,S||j,!!S||r.originIsAbsolute,!1!==r.smooth,_)),p=r.xOrigin||0,m=r.yOrigin||0,_!==Sn&&(w=_[0],T=_[1],x=_[2],k=_[3],n=A=_[4],i=O=_[5],6===_.length?(o=Math.sqrt(w*w+T*T),a=Math.sqrt(k*k+x*x),u=w||T?Fr(T,w)*zr:0,(h=x||k?Fr(x,k)*zr+u:0)&&(a*=Math.abs(Math.cos(h*Lr))),r.svg&&(n-=p-(p*w+m*x),i-=m-(p*T+m*k))):(z=_[6],N=_[7],E=_[8],D=_[9],P=_[10],R=_[11],n=_[12],i=_[13],s=_[14],l=(g=Fr(z,P))*zr,g&&(S=A*(v=Math.cos(-g))+E*(b=Math.sin(-g)),C=O*v+D*b,M=z*v+P*b,E=A*-b+E*v,D=O*-b+D*v,P=z*-b+P*v,R=N*-b+R*v,A=S,O=C,z=M),c=(g=Fr(-x,P))*zr,g&&(v=Math.cos(-g),R=k*(b=Math.sin(-g))+R*v,w=S=w*v-E*b,T=C=T*v-D*b,x=M=x*v-P*b),u=(g=Fr(T,w))*zr,g&&(S=w*(v=Math.cos(g))+T*(b=Math.sin(g)),C=A*v+O*b,T=T*v-w*b,O=O*v-A*b,w=S,A=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=pt(Math.sqrt(w*w+T*T+x*x)),a=pt(Math.sqrt(O*O+z*z)),g=Fr(A,O),h=Math.abs(g)>2e-4?g*zr:0,d=R?1/(R<0?-R:R):0),r.svg&&(S=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Mn(un(t,tn)),S&&t.setAttribute("transform",S))),Math.abs(h)>90&&Math.abs(h)<270&&(F?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-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)+B,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)+B,r.z=s+B,r.scaleX=pt(o),r.scaleY=pt(a),r.rotation=pt(u)+I,r.rotationX=pt(l)+I,r.rotationY=pt(c)+I,r.skewX=h+I,r.skewY=f+I,r.transformPerspective=d+B,(r.zOrigin=parseFloat(j.split(" ")[2])||!e&&r.zOrigin||0)&&(L[en]=Rn(j)),r.xOffset=r.yOffset=0,r.force3D=y.force3D,r.renderTransform=r.svg?jn:Nr?qn:Ln,r.uncache=0,r},Rn=function(t){return(t=t.split(" "))[0]+" "+t[1]},zn=function(t,e,r){var n=Qt(e);return pt(parseFloat(e)+parseFloat(bn(t,"x",r+"px",n)))+n},Ln=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,qn(t,e)},Fn="0deg",Bn="0px",In=") ",qn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,o=r.y,a=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,h=r.skewX,f=r.skewY,d=r.scaleX,p=r.scaleY,m=r.transformPerspective,_=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===_&&t&&1!==t||!0===_;if(v&&(c!==Fn||l!==Fn)){var w,T=parseFloat(l)*Lr,x=Math.sin(T),k=Math.cos(T);T=parseFloat(c)*Lr,w=Math.cos(T),s=zn(g,s,x*w*-v),o=zn(g,o,-Math.sin(T)*-v),a=zn(g,a,k*w*-v+v)}m!==Bn&&(y+="perspective("+m+In),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==Bn||o!==Bn||a!==Bn)&&(y+=a!==Bn||b?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+In),u!==Fn&&(y+="rotate("+u+In),l!==Fn&&(y+="rotateY("+l+In),c!==Fn&&(y+="rotateX("+c+In),h===Fn&&f===Fn||(y+="skew("+h+", "+f+In),1===d&&1===p||(y+="scale("+d+", "+p+In),g.style[tn]=y||"translate(0, 0)"},jn=function(t,e){var r,n,i,s,o,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,h=a.y,f=a.rotation,d=a.skewX,p=a.skewY,m=a.scaleX,_=a.scaleY,g=a.target,v=a.xOrigin,y=a.yOrigin,b=a.xOffset,w=a.yOffset,T=a.forceCSS,x=parseFloat(c),k=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Lr,d*=Lr,r=Math.cos(f)*m,n=Math.sin(f)*m,i=Math.sin(f-d)*-_,s=Math.cos(f-d)*_,d&&(p*=Lr,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),r*=o=Math.sqrt(1+o*o),n*=o)),r=pt(r),n=pt(n),i=pt(i),s=pt(s)):(r=m,s=_,n=i=0),(x&&!~(c+"").indexOf("px")||k&&!~(h+"").indexOf("px"))&&(x=bn(g,"x",c,"px"),k=bn(g,"y",h,"px")),(v||y||b||w)&&(x=pt(x+v-(v*r+y*i)+b),k=pt(k+y-(v*n+y*s)+w)),(u||l)&&(o=g.getBBox(),x=pt(x+u/100*o.width),k=pt(k+l/100*o.height)),o="matrix("+r+","+n+","+i+","+s+","+x+","+k+")",g.setAttribute("transform",o),T&&(g.style[tn]=o)},$n=function(t,e,r,n,i){var s,o,a=360,u=M(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?zr:1)-n,c=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=a)!==l%180&&(l+=l<0?a:-360),"cw"===s&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===s&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=o=new fr(t._pt,e,r,n,l,Yr),o.e=c,o.u="deg",t._props.push(r),o},Yn=function(t,e){for(var r in e)t[r]=e[r];return t},Wn=function(t,e,r){var n,i,s,o,a,u,l,c=Yn({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[tn]=e,n=Nn(r,1),_n(r,tn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[tn],h[tn]=e,n=Nn(r,1),h[tn]=s),Rr)(s=c[i])!==(o=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Qt(s)!==(l=Qt(o))?bn(r,i,s,l):parseFloat(s),u=parseFloat(o),t._pt=new fr(t._pt,n,i,a,u-a,$r),t._pt.u=l||0,t._props.push(i));Yn(n,c)};dt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",o=(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});On[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return s=o.map(function(e){return wn(t,e,r)}),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,a,i)}});var Vn,Xn,Un,Hn={name:"css",register:hn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,o,a,u,l,c,h,f,d,p,m,_,g,v,b,w,T=this._props,x=t.style,k=r.vars.startAt;for(h in Mr||hn(),this.styles=this.styles||on(t),w=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(o=e[h],!st[h]||!Xe(h,e,r,n,t,i)))if(l=typeof o,c=On[h],"function"===l&&(l=typeof(o=o.call(r,n,t,i))),"string"===l&&~o.indexOf("random(")&&(o=ce(o)),c)c(this,t,h,o,r)&&(b=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",xe.lastIndex=0,xe.test(s)||(f=Qt(s),d=Qt(o)),d?f!==d&&(s=bn(t,h,s,d)+d):f&&(o+=f),this.add(x,"setProperty",s,o,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],M(s)&&~s.indexOf("random(")&&(s=ce(s)),Qt(s+"")||"auto"===s||(s+=y.units[h]||Qt(wn(t,h))||""),"="===(s+"").charAt(1)&&(s=wn(t,h))):s=wn(t,h),u=parseFloat(s),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),h in jr&&("autoAlpha"===h&&(1===u&&"hidden"===wn(t,"visibility")&&a&&(u=0),w.push("visibility",0,x.visibility),gn(this,x,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=jr[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Rr)if(this.styles.save(h),"string"===l&&"var(--"===o.substring(0,6)&&(o=un(t,o.substring(4,o.indexOf(")"))),a=parseFloat(o)),_||((g=t._gsap).renderTransform&&!e.parseTransform||Nn(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(_=this._pt=new fr(this._pt,x,tn,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new fr(this._pt,g,"scaleY",g.scaleY,(p?_t(g.scaleY,p+a):a)-g.scaleY||0,$r),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(en,0,x[en]),o=kn(o),g.svg?Pn(t,o,0,v,0,this):((d=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&gn(this,g,"zOrigin",g.zOrigin,d),gn(this,x,h,Rn(s),Rn(o)));continue}if("svgOrigin"===h){Pn(t,o,1,v,0,this);continue}if(h in Cn){$n(this,g,h,u,p?_t(u,p+o):o);continue}if("smoothOrigin"===h){gn(this,g,"smooth",g.smooth,o);continue}if("force3D"===h){g[h]=o;continue}if("transform"===h){Wn(this,o,t);continue}}else h in x||(h=cn(h)||h);if(m||(a||0===a)&&(u||0===u)&&!qr.test(o)&&h in x)a||(a=0),(f=(s+"").substr((u+"").length))!==(d=Qt(o)||(h in y.units?y.units[h]:f))&&(u=bn(t,h,s,d)),this._pt=new fr(this._pt,m?g:x,h,u,(p?_t(u,p+a):a)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?$r:Vr),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Wr);else if(h in x)Tn.call(this,t,h,s,p?p+o:o);else if(h in t)this.add(t,h,s||t[h],p?p+o:o,n,i);else if("parseTransform"!==h){G(h,o);continue}m||(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)}b&&hr(this)},render:function(t,e){if(e.tween._time||!Pr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:wn,aliases:jr,getSetter:function(t,e,r){var n=jr[e];return n&&n.indexOf(",")<0&&(e=n),e in Rr&&e!==en&&(t._gsap.x||wn(t,"x"))?r&&Dr===r?"scale"===e?Kr:Jr:(Dr=r||{})&&("scale"===e?Qr:Zr):t.style&&!P(t.style[e])?Hr:~e.indexOf("-")?Gr:nr(t,e)},core:{_removeProperty:_n,_getMatrix:Dn}};Ar.utils.checkPrefix=cn,Ar.core.getStyleSaver=on,Un=dt((Vn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Xn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Rr[t]=1}),dt(Xn,function(t){y.units[t]="deg",Cn[t]=1}),jr[Un[13]]=Vn+","+Xn,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]]=Un[e[0]]}),dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){y.units[t]="px"}),Ar.registerPlugin(Hn);var Gn=Ar.registerPlugin(Hn)||Ar;function Jn(t){if(Kn(t)){for(;t&&Kn(t);){t=Qn(t).parent}return null!=t?t:null}return t.parentNode}function Kn(t){return 11===t.nodeType}function Qn(t,e){var r,n,i;const s=t;return null!==(r=s.parent)&&void 0!==r||(s.parent=null!=e?e:null),null!==(n=s.firstChildNode)&&void 0!==n||(s.firstChildNode=t.firstChild),null!==(i=s.lastChildNode)&&void 0!==i||(s.lastChildNode=t.lastChild),s}Gn.core.Tween;const Zn={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createDocumentFragment:function(){return Qn(document.createDocumentFragment())},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){if(Kn(t)){let e=t;for(;e&&Kn(e);){e=Qn(e).parent}t=null!=e?e:t}Kn(e)&&(e=Qn(e,t)),r&&Kn(r)&&(r=Qn(r).firstChildNode),t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){Kn(e)&&(e=Qn(e,t)),t.appendChild(e)},parentNode:Jn,nextSibling:function(t){var e;if(Kn(t)){const r=Qn(t),n=Jn(r);if(n&&r.lastChildNode){const t=Array.from(n.childNodes),i=t.indexOf(r.lastChildNode);return null!==(e=t[i+1])&&void 0!==e?e:null}return null}return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return 1===t.nodeType},isText:function(t){return 3===t.nodeType},isComment:function(t){return 8===t.nodeType},isDocumentFragment:Kn};function ti(t,e,r,n,i){return{sel:t,data:e,children:r,text:n,elm:i,key:void 0===e?void 0:e.key}}const ei=Array.isArray;function ri(t){return"string"==typeof t||"number"==typeof t||t instanceof String||t instanceof Number}const ni=ti("",{},[],void 0,void 0);function ii(t,e){var r,n;const i=t.key===e.key,s=(null===(r=t.data)||void 0===r?void 0:r.is)===(null===(n=e.data)||void 0===n?void 0:n.is),o=t.sel===e.sel,a=!(!t.sel&&t.sel===e.sel)||typeof t.text==typeof e.text;return o&&i&&s&&a}function si(t,e,r){var n;const i={};for(let s=e;s<=r;++s){const e=null===(n=t[s])||void 0===n?void 0:n.key;void 0!==e&&(i[e]=s)}return i}const oi=["create","update","remove","destroy","pre","post"];function ai(t,e,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==e)for(let t=0;t<e.length;++t){const r=e[t];if("string"==typeof r)continue;const n=r.data;void 0!==n&&ai(n,r.children,r.sel)}}function ui(t,e,r){let n,i,s,o={};if(void 0!==r?(null!==e&&(o=e),ei(r)?n=r:ri(r)?i=r.toString():r&&r.sel&&(n=[r])):null!=e&&(ei(e)?n=e:ri(e)?i=e.toString():e&&e.sel?n=[e]:o=e),void 0!==n)for(s=0;s<n.length;++s)ri(n[s])&&(n[s]=ti(void 0,void 0,void 0,n[s],void 0));return!t.startsWith("svg")||3!==t.length&&"."!==t[3]&&"#"!==t[3]||ai(o,n,t),ti(t,o,n,i,void 0)}function li(t,e){let r;const n=e.elm;let i=t.data.attrs,s=e.data.attrs;if((i||s)&&i!==s){for(r in i=i||{},s=s||{},s){const t=s[r];i[r]!==t&&(!0===t?n.setAttribute(r,""):!1===t?n.removeAttribute(r):120!==r.charCodeAt(0)?n.setAttribute(r,t):58===r.charCodeAt(3)?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,t):58===r.charCodeAt(5)?109===r.charCodeAt(1)?n.setAttributeNS("http://www.w3.org/2000/xmlns/",r,t):n.setAttributeNS("http://www.w3.org/1999/xlink",r,t):n.setAttribute(r,t))}for(r in i)r in s||n.removeAttribute(r)}}const ci={create:li,update:li};function hi(t,e){let r,n;const i=e.elm;let s=t.data.class,o=e.data.class;if((s||o)&&s!==o){for(n in s=s||{},o=o||{},s)s[n]&&!Object.prototype.hasOwnProperty.call(o,n)&&i.classList.remove(n);for(n in o)r=o[n],r!==s[n]&&i.classList[r?"add":"remove"](n)}}const fi={create:hi,update:hi};let di,pi=t=>{let e=t;const r=new Set,n={get value(){return di&&di.deps.push(r.add(di)),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},mi=t=>{let e,r;const n=()=>{e&&e.call(),r=di,di=n;try{e=t()}finally{di=r}};return n.deps=[],n(),()=>{let t;for(e&&e.call();t=n.deps.pop();)t.delete(n)}},_i=t=>{const e=pi();let r;const n={get value(){return r||(r=mi(()=>{e.value=t()})),e.value},peek:e.peek,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},gi=t=>t(),vi=gi;const yi=Symbol("signals"),bi=Symbol("change"),wi="__",Ti=["push","pop","shift","unshift","splice"],xi=(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[bi]?gi(()=>{for(let t=0;t<r.length;t++)i[t]=r[t];i.length=r.length}):n.value=r:n.value=ki(r)):t[e]=r?.peek?r:pi(ki(r)):t[e]=r},ki=(t,e)=>{if(!t)return t;if(t[yi]||t[Symbol.toStringTag])return t;if(t.constructor!==Object)return Array.isArray(t)?Ai(t):t;const r=Object.create(e?.[yi]||{}),n=pi(Object.keys(t).length);let i;const s=new Proxy(r,{get:(t,e)=>e===bi?n:e===yi?r:e===wi?i:e in r?r[e]?.valueOf():globalThis[e],set(t,e,s){if(e===wi)return i=s,!0;const o=e in r;return xi(r,e,s),o||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}),o=Object.getOwnPropertyDescriptors(t);for(const e in t){const n=o[e];if(n?.get){const t=_i(n.get.bind(s));t._set=n.set?.bind(s),r[e]=t}else r[e]=null,xi(r,e,t[e])}return s},Ai=t=>{let e;const r=pi(t.length),n=Array(t.length).fill(),i=new Proxy(n,{get:(i,s)=>"symbol"==typeof s?s===bi?r:s===yi?n:n[s]:"length"===s?Ti.includes(e)?r.peek():r.value:(e=s,n[s]||(n[s]=pi(ki(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 xi(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},Oi=t=>{const e=Li(`${t}=${wi}`);return(t,r)=>{t[wi]=r,e(t)}},Si=Symbol.dispose||=Symbol("dispose"),Ci=Symbol("state"),Mi=Symbol("on"),Ei=Symbol("off"),Di={},Pi={};let Ni,Ri=":";const zi=(t,e,r=Li)=>{Di[t]=(t,n,i,s)=>{const o=e(t,i,n,s),a=r(n,":"+s);return()=>o(a(i))}},Li=(t,e)=>{const r=t.trim();if(Pi[r])return Pi[r];let n;try{n=Ni(r)}catch(t){Fi(t,e,r)}const i=t=>{try{return n(t)}catch(t){Fi(t,e,r)}};return Pi[r]=i,i},Fi=(t,e="",r="")=>{const n=r?`="${r}"\n\n`:"",i=`◆ ${t.message}\n\n${e}${n}`;throw Object.assign(t,{message:i,expr:r})},Bi=(t,e=t.attributes,r,n,i)=>{if(!e)return;let s=0;for(;s<e.length;){const o=e[s],{name:a,value:u}=o;if(a.startsWith(Ri)){t.removeAttribute(a);const e=a.slice(Ri.length).split(":");for(const s of e){const e=(Di[s]||Di.default)(t,u,r,s);if(n.push(e),i.push(mi(e)),null===t[Ci])return}}else s++}for(const e of t.childNodes)1===e.nodeType&&Bi(e,e.attributes,r,n,i)},Ii=(t=document.body,e)=>{if(t[Ci])return Object.assign(t[Ci],e);const r=ki(e||{}),n=[],i=[];return Bi(t,t.attributes,r,i,n),Ci in t||(t[Ci]=r,t[Ei]=()=>{n.forEach(t=>t()),n.length=0},t[Mi]=()=>{n.length=0,n.push(...i.map(t=>mi(t)))},t[Si]=()=>{t[Ei](),t[Ei]=null,t[Mi]=null,t[Si]=null,t[Ci]=null}),r};Ii.use=t=>{var e;t.signal&&(pi=(e=t).signal,mi=e.effect,_i=e.computed,gi=e.batch||gi,vi=e.untracked||vi),t.compile&&(Ni=t.compile),t.prefix&&(Ri=t.prefix)};const qi=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)}}},ji=Symbol("if");zi("if",(t,e)=>{const r=document.createTextNode("");let n,i,s,o=t.nextElementSibling;return t.replaceWith(r),i=t.content?qi(t):t,i[Ci]=null,o?.hasAttribute(":else")?(o.removeAttribute(":else"),o.hasAttribute(":if")||(o.remove(),s=o.content?qi(o):o,s[Ci]=null)):o=null,(a,u=(t[ji]?null:a?i:s))=>{o&&(o[ji]=t[ji]||u==i),n!=u&&(n&&(n.remove(),n[Ei]?.()),(n=u)&&(r.before(n.content||n),null===n[Ci]?(delete n[Ci],Ii(n,e)):n[Mi]()))}}),zi("each",(t,e,r)=>{const[n,i="$"]=r.split(/\bin\b/)[0].trim().split(/\s*,\s*/),s=document.createTextNode("");let o,a,u,l=0;const c=()=>{const r=u,c=r.length;let h=0;if(o&&!o[bi]){for(const t of o[yi]||[])t[Symbol.dispose]();o=null,l=0}if(c<l)o.length=c;else{if(o)for(;h<l;)o[h]=r[h],h++;else o=r;for(;h<c;h++){o[h]=r[h];const u=h,l=ki({[n]:o[yi]?.[u]||o[u],[i]:a?a[u]:u},e),c=t.content?qi(t):t.cloneNode(!0);s.before(c.content||c),Ii(c,l);const f=((o[yi]||=[])[h]||={})[Symbol.dispose];o[yi][h][Symbol.dispose]=()=>{f?.(),c[Symbol.dispose]?.(),c.remove()}}}l=c};return t.replaceWith(s),t[Ci]=null,t=>{a=null,"number"==typeof t?u=Array.from({length:t},(t,e)=>e+1):t?.constructor===Object?(a=Object.keys(t),u=Object.values(t)):u=t||[];let e=0;return mi(()=>{u[bi],e++||(c(),queueMicrotask(()=>{e>1&&c(),e=0}))})}},t=>Li(t.split(/\bin\b/)[1])),zi("ref",(t,e,r)=>"function"==typeof Li(r)(e)?e=>e?.call(null,t):(Oi(r)(e,t),t=>t)),zi("with",(t,e)=>{let r;return n=>{r?Ii(t,n):vi(()=>{r=ki(n,e),Ii(t,r)})}}),zi("text",t=>{if(t.content){const e=qi(t).childNodes[0];t.replaceWith(e),t=e}return e=>{t.textContent=e??""}}),zi("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}}),zi("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}}}),zi("default",(t,e,r,n)=>{if(!n.startsWith("on"))return n?e=>Xi(t,n,e):e=>{for(const r in e)Xi(t,Ui(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=$i[e]?.(r,...n.split("-"))||r.test,"")),r}(e,t)),s=(t,r)=>{const{evt:n,target:i,test:s,defer:o,stop:a,prevent:u,immediate:l,...c}=r,h=r=>{try{if(!s(r))return;a&&(l?r.stopImmediatePropagation():r.stopPropagation()),u&&r.preventDefault(),t?.call(e,r)}catch(e){Fi(e,`:on${n}`,t)}},f=o?o(h):h;return i.addEventListener(n,f,c),()=>i.removeEventListener(n,f,c)};if(1===i.length)return t=>s(t,i[0]);let o,a,u,l=0;const c=t=>{u=s(e=>{u(),a=t?.(e),l=(l+1)%i.length,l?c(a):o&&c(o)},i[l])};return t=>(o=t,u||c(o),()=>{o=null})});const $i={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=>Wi(t,e)},debounce(t,e=108){t.defer=t=>Vi(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=>Yi.ctrl(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),shift:(t,...e)=>t=>Yi.shift(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),alt:(t,...e)=>t=>Yi.alt(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),meta:(t,...e)=>t=>Yi.meta(t)&&e.every(e=>Yi[e]?Yi[e](t):t.key===e),arrow:()=>Yi.arrow,enter:()=>Yi.enter,esc:()=>Yi.esc,tab:()=>Yi.tab,space:()=>Yi.space,delete:()=>Yi.delete,digit:()=>Yi.digit,letter:()=>Yi.letter,char:()=>Yi.char},Yi={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)},Wi=(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}},Vi=(t,e)=>{let r;return n=>{clearTimeout(r),r=setTimeout(()=>{r=null,t(n)},e)}},Xi=(t,e,r)=>{null==r||!1===r?t.removeAttribute(e):t.setAttribute(e,!0===r?"":"number"==typeof r||"string"==typeof r?r:"")},Ui=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,e)=>(e?"-":"")+t.toLowerCase());zi("value",(t,e,r)=>{const n=t.type||"",i=t.tagName,s=e=>{const r=e??"";t.value=r,t.setAttribute("value",r)},o=t=>s(t),a=e=>{const r=t.selectionStart,n=t.selectionEnd;s(e),r&&t.setSelectionRange(r,n)},u=e=>{t.checked=e,Xi(t,"checked",e)},l=e=>{t.value===e&&(t.checked=e,Xi(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},d=(()=>{if("TEXTAREA"===i)return a;switch(n){case"text":case"":return o;case"checkbox":return u;case"radio":return l;case"select-one":return c;case"select-multiple":return h;default:return f}})();try{const i=Oi(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}),Ii(t,e)),Li(r)(e)??s()}catch{}return d}),zi("fx",t=>t=>t),zi("aria",t=>e=>{for(const r in e){const n=e[r];Xi(t,`aria-${Ui(r)}`,null==n?null:String(n))}}),zi("data",t=>e=>{for(const r in e)t.dataset[r]=e[r]}),Ii.use({compile:t=>Ii.constructor(`with (arguments[0]) { return ${t} };`)});const Hi=Symbol("persist"),Gi=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"{}"}},Ji=t=>{try{return JSON.parse(t)}catch{return{}}},Ki=(t,e,r={})=>{const n={key:e,storage:globalThis.localStorage,paths:null,debounce:0,serializer:Gi,deserializer:Ji,...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[yi];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),o=()=>{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[yi]&&!t[yi][e]?._set&&(t[e]=r[e]);i=!1}catch(t){console.warn("persistence: failed to restore state",t),i=!1}};o();const a=mi(()=>{if(n.paths)for(const e of n.paths)t[e];else{const e=t[yi];for(const r in e){const n=e[r];n&&!n._set&&"_"!==r[0]&&t[r]}}s()});return t[Hi]={config:n,saveState:s,restoreState:o},a},Qi=new Map,Zi={store:(t,e,r={})=>{if(void 0!==e){const n=ki(e);if(Qi.set(t,n),!0===r||r.persist){const e=!0===r?{}:{...r};delete e.persist,((t,e,r={})=>{!0===r&&(r={}),Ki(t,e,r)})(n,t,e)}return n}const n=Qi.get(t);return n||(console.warn(`store "${t}" not found`),{})}};async function ts(t){const e=t.querySelector("script[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=Ii(r,i);return e.remove(),s}async function es(t){await ts(t)}window.signal=pi,window.r=Zi;const rs=function(t){const e={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Zn;for(const r of oi)for(const n of t){const t=n[r];void 0!==t&&e[r].push(t)}function n(t){const e=t.id?"#"+t.id:"",n=t.getAttribute("class"),i=n?"."+n.split(" ").join("."):"";return ti(r.tagName(t).toLowerCase()+e+i,{},[],void 0,t)}function i(t){return ti(void 0,{},[],void 0,t)}function s(t,e){return function(){if(0===--e){const e=r.parentNode(t);null!==e&&r.removeChild(e,t)}}}function o(t,n){var i,s,a;let u;const l=t.data,c=null==l?void 0:l.hook;null===(i=null==c?void 0:c.init)||void 0===i||i.call(c,t);const h=t.children,f=t.sel;if("!"===f)null!==(s=t.text)&&void 0!==s||(t.text=""),t.elm=r.createComment(t.text);else if(""===f)t.elm=r.createTextNode(t.text);else if(void 0!==f){const i=f.indexOf("#"),s=f.indexOf(".",i),d=i>0?i:f.length,p=s>0?s:f.length,m=-1!==i||-1!==s?f.slice(0,Math.min(d,p)):f,_=null==l?void 0:l.ns,g=void 0===_?r.createElement(m,l):r.createElementNS(_,m,l);for(t.elm=g,d<p&&g.setAttribute("id",f.slice(d+1,p)),s>0&&g.setAttribute("class",f.slice(p+1).replace(/\./g," ")),u=0;u<e.create.length;++u)e.create[u](ni,t);if(!ri(t.text)||ei(h)&&0!==h.length||r.appendChild(g,r.createTextNode(t.text)),ei(h))for(u=0;u<h.length;++u){const t=h[u];null!=t&&r.appendChild(g,o(t,n))}void 0!==c&&(null===(a=c.create)||void 0===a||a.call(c,ni,t),void 0!==c.insert&&n.push(t))}else t.elm=r.createTextNode(t.text);return t.elm}function a(t,e,n,i,s,a){for(;i<=s;++i){const s=n[i];null!=s&&r.insertBefore(t,o(s,a),e)}}function u(t){var r,n;const i=t.data;if(void 0!==i){null===(n=null===(r=null==i?void 0:i.hook)||void 0===r?void 0:r.destroy)||void 0===n||n.call(r,t);for(let r=0;r<e.destroy.length;++r)e.destroy[r](t);if(void 0!==t.children)for(let e=0;e<t.children.length;++e){const r=t.children[e];null!=r&&"string"!=typeof r&&u(r)}}}function l(t,n,i,o){for(var a,c;i<=o;++i){let o;const h=n[i];if(null!=h)if(void 0!==h.sel){u(h),o=e.remove.length+1;const t=s(h.elm,o);for(let r=0;r<e.remove.length;++r)e.remove[r](h,t);const r=null===(c=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.hook)||void 0===c?void 0:c.remove;void 0!==r?r(h,t):t()}else h.children?(u(h),l(t,h.children,0,h.children.length-1)):r.removeChild(t,h.elm)}}function c(t,n,i){var s,u,h,f,d,p,m,_;const g=null===(s=n.data)||void 0===s?void 0:s.hook;null===(u=null==g?void 0:g.prepatch)||void 0===u||u.call(g,t,n);const v=n.elm=t.elm;if(t===n)return;if(void 0!==n.data||void 0!==n.text&&n.text!==t.text){null!==(h=n.data)&&void 0!==h||(n.data={}),null!==(f=t.data)&&void 0!==f||(t.data={});for(let r=0;r<e.update.length;++r)e.update[r](t,n);null===(m=null===(p=null===(d=n.data)||void 0===d?void 0:d.hook)||void 0===p?void 0:p.update)||void 0===m||m.call(p,t,n)}const y=t.children,b=n.children;void 0===n.text?void 0!==y&&void 0!==b?y!==b&&function(t,e,n,i){let s,u,h,f,d=0,p=0,m=e.length-1,_=e[0],g=e[m],v=n.length-1,y=n[0],b=n[v];for(;d<=m&&p<=v;)null==_?_=e[++d]:null==g?g=e[--m]:null==y?y=n[++p]:null==b?b=n[--v]:ii(_,y)?(c(_,y,i),_=e[++d],y=n[++p]):ii(g,b)?(c(g,b,i),g=e[--m],b=n[--v]):ii(_,b)?(c(_,b,i),r.insertBefore(t,_.elm,r.nextSibling(g.elm)),_=e[++d],b=n[--v]):ii(g,y)?(c(g,y,i),r.insertBefore(t,g.elm,_.elm),g=e[--m],y=n[++p]):(void 0===s&&(s=si(e,d,m)),u=s[y.key],void 0===u?(r.insertBefore(t,o(y,i),_.elm),y=n[++p]):void 0===s[b.key]?(r.insertBefore(t,o(b,i),r.nextSibling(g.elm)),b=n[--v]):(h=e[u],h.sel!==y.sel?r.insertBefore(t,o(y,i),_.elm):(c(h,y,i),e[u]=void 0,r.insertBefore(t,h.elm,_.elm)),y=n[++p]));p<=v&&(f=null==n[v+1]?null:n[v+1].elm,a(t,f,n,p,v,i)),d<=m&&l(t,e,d,m)}(v,y,b,i):void 0!==b?(void 0!==t.text&&r.setTextContent(v,""),a(v,null,b,0,b.length-1,i)):void 0!==y?l(v,y,0,y.length-1):void 0!==t.text&&r.setTextContent(v,""):t.text!==n.text&&(void 0!==y&&l(v,y,0,y.length-1),r.setTextContent(v,n.text)),null===(_=null==g?void 0:g.postpatch)||void 0===_||_.call(g,t,n)}return function(t,s){let a,u,h;const f=[];for(a=0;a<e.pre.length;++a)e.pre[a]();for(!function(t,e){return t.isElement(e)}(r,t)?function(t,e){return t.isDocumentFragment(e)}(r,t)&&(t=i(t)):t=n(t),ii(t,s)?c(t,s,f):(u=t.elm,h=r.parentNode(u),o(s,f),null!==h&&(r.insertBefore(h,s.elm,r.nextSibling(u)),l(h,[t],0,0))),a=0;a<f.length;++a)f[a].data.hook.insert(f[a]);for(a=0;a<e.post.length;++a)e.post[a]();return s}}([fi,ci]);function ns(t){const e=[],r=t.replace(/:([^/]+)/g,(t,r)=>(e.push(r),"([^/]+)"));return{regex:new RegExp(`^${r}$`),keys:e}}function is(t,e){for(const r of e){const{regex:e,keys:n}=ns(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 ss(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}=ns(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}function os(t){if(3===t.nodeType)return t.textContent;if(1===t.nodeType){const e={};return t.attributes&&t.attributes.length>0&&(e.attrs={},Array.from(t.attributes).forEach(t=>{e.attrs[t.name]=t.value})),t.className&&(e.class=t.className.split(" ").reduce((t,e)=>(e&&(t[e]=!0),t),{})),ui(t.tagName.toLowerCase(),e,Array.from(t.childNodes).map(t=>os(t)))}return null}async function as(t,e,r,n,i=!1,s=!1){let o="function"==typeof e?e({}):e;n&&(o={...o,dataset:n});const a=await fetch(`/templates/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}).then(t=>t.text());if(s){const t=document.createElement("div");t.innerHTML=a;const e=Array.from(t.querySelectorAll("script")),n=e.map(t=>({element:t,src:t.src,content:t.textContent,attrs:Array.from(t.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{})}));e.forEach(t=>t.remove());const i=r.firstElementChild,s=t.firstElementChild;if(i)if(s)if(r.__snabbdomVNode){const t=os(s);r.__snabbdomVNode=rs(r.__snabbdomVNode,t)}else{os(i);const t=os(s);r.__snabbdomVNode=rs(i,t)}else r.innerHTML=a;else r.innerHTML=t.innerHTML;n.forEach(({src:t,content:e,attrs:n})=>{const i=document.createElement("script");e&&(e.includes("export ")||e.includes("import "))&&(i.type="module"),Object.entries(n).forEach(([t,e])=>{i.setAttribute(t,e)}),t?i.src=t:i.textContent=e,r.appendChild(i)})}else r.innerHTML=a,r.__snabbdomVNode&&delete r.__snabbdomVNode;await es(r),await ds(r,i),await cs(r,i)}async function us(t,e){if(e)return new Promise(r=>{requestAnimationFrame(()=>{const n={...e,from:void 0};n.onComplete=r,e.from?Gn.fromTo(t,e.from,n):Gn.to(t,n)})})}function ls(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 cs(t,e=!1){if(e)return;const r=[];if(t.hasAttribute("r-transition-stagger-in"))try{const e=ls(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Gn.set(n,e.from||{}),r.push(us(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=ls(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Gn.set(n,e.from||{}),r.push(us(n,e)))}catch(t){console.warn("invalid transition data on stagger element:",t)}if(t.hasAttribute("r-transition-in"))try{const e=ls(t.getAttribute("r-transition-in"));Gn.set(t,e.from||{}),r.push(us(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=ls(t.getAttribute("r-transition-in"));Gn.set(t,e.from||{}),r.push(us(t,e))}catch(t){console.warn("invalid transition data on element:",t)}}Promise.all(r)}function hs(t){const e=[];if(t.hasAttribute("r-transition-stagger-in")){const r=ls(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(e.push({type:"stagger",elements:n,transition:r}),Gn.set(n,r.from||{})),t.removeAttribute("r-transition-stagger-in")}if(t.hasAttribute("r-transition-in")){const r=ls(t.getAttribute("r-transition-in"));e.push({type:"individual",elements:t,transition:r}),Gn.set(t,r.from||{}),t.removeAttribute("r-transition-in")}return e}function fs(t){for(const{elements:e,transition:r}of t)us(e,r)}async function ds(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?ls(n):{};i&&(s={...s,dataset:i});const o=await fetch(`/templates/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(t=>t.text());t.innerHTML=o,await es(t),await ds(t,e),await cs(t,e)}}function ps(t){const e={},r=new URLSearchParams(t);for(const[t,n]of r)e[t]=n;return e}function ms(t){let e=null;async function r({path:r,initial:n=!1,linkProps:i=null,linkTarget:s=null,linkDataset:o=null}){const[a,u=""]=r.split("?"),l=is(a,t);if(!l)return console.error("rift: route not found:",a);const{route:c,params:h}=l,f=ps(u);let d;if(n&&document.body.classList.add("loading"),c.renders)d=c.renders;else{const n=ss(r,t),i={template:c.template,props:c.props,target:c.target};d=[...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}]}for(const t of d){const e=t.params||h;let r="function"==typeof t.props?t.props(e,f):t.props;i&&(r={...r,...i});const a=s&&document.querySelector(s)||t.target&&document.querySelector(t.target)||document.getElementById("main"),u=o||t.dataset||c.dataset;a.id,Gn.killTweensOf(a),Gn.set(a,{clearProps:"all"}),a.classList.add("loading"),await as(t.template,r,a,u,n||t.skipTransition,c.diff||!1),a.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"),o=e.getAttribute("r-target");history.pushState({},"",n),window.dispatchEvent(new CustomEvent("navigate")),r({path:n,linkProps:s?ls(s):null,linkDataset:i,linkTarget:o})}),window.addEventListener("popstate",()=>r({path:location.pathname+location.search}))},hydrateNestedTemplates:ds,processElementTransitions:cs,captureGlobalTransitions:hs,runGlobalTransitions:fs,refresh:async(e={})=>{const r=async()=>{const{path:r=location.pathname+location.search,parents:n=!1,diff:i=!1}=e,[s,o=""]=r.split("?"),a=is(s,t);if(!a)return console.error("rift: route not found:",s);const{route:u,params:l}=a,c=ps(o);if(n){const e=[...ss(r,t),{route:u,params:l}],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:s}=e[t],o=document.querySelector(r)||document.getElementById("main"),a="function"==typeof n.props?n.props(s,c):n.props;await as(n.template,a,o,n.dataset,!0,i||n.diff||!1)}}}const h=document.querySelector(u.target)||document.getElementById("main"),f="function"==typeof u.props?u.props(l,c):u.props;await as(u.template,f,h,u.dataset,!0,i||u.diff||!1)};document.startViewTransition?document.startViewTransition(r):await r()},refreshTemplate:async(e,r={},n={})=>{const{diff:i=!1}=n,s=[];document.querySelectorAll(`[r-tpl="${e}"]`).forEach(t=>{s.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 s=await n.text();i?await as(e,r,t,null,!0,!0):(t.innerHTML=s,await es(t))})});if(t.filter(t=>t.template===e).forEach(t=>{const e=document.querySelector(t.target)||document.getElementById("main");e&&s.push(async()=>{const r=location.pathname+location.search,n=is(r,[t]);if(n){const{params:s}=n,[,o=""]=r.split("?"),a=ps(o),u="function"==typeof t.props?t.props(s,a):t.props;await as(t.template,u,e,t.dataset,!0,i||t.diff||!1)}})}),0===s.length)return console.error("no templates found with name:",e);const o=async()=>{await Promise.all(s.map(t=>t()))};document.startViewTransition?document.startViewTransition(o):await o()}}}function _s(){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 gs(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()}function vs(t){const e=ms(t);_s(),gs(e)}window._riftSprae=Ii,window._riftSignal={signal:pi,effect:mi,computed:_i},window._riftStore=ki,window.r=Zi;export{ms as createRouter,vs as default,_s as initRipple,gs as mount,Zi as r,ki as store};
18
+ var Or,Sr,Cr,Er,Mr,Dr,Pr,Rr,Nr={},zr=180/Math.PI,Lr=Math.PI/180,Fr=Math.atan2,Ir=/([A-Z])/g,Br=/(left|right|width|margin|padding|x)/i,qr=/[\s,\(]\S/,Ur={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$r=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},jr=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)},Vr=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)},Yr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Xr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Wr=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},Gr=function(t,e,r){return t.style.setProperty(e,r)},Jr=function(t,e,r){return t._gsap[e]=r},Kr=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Qr=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},Zr=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},tn="transform",en=tn+"Origin",rn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Nr&&s){if(this.tfm=this.tfm||{},"transform"===e)return Ur.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=Ur[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=wn(i,t)}):this.tfm[e]=a.x?a[e]:wn(i,e),e===en&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(tn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(en,r,"")),e=tn}(s||r)&&this.props.push(e,r,s[e])},nn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},sn=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(Ir,"-$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=Pr())&&t.isStart||i[tn]||(nn(i),s.zOrigin&&i[en]&&(i[en]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},an=function(t,e){var r={target:t,props:[],revert:sn,save:rn};return t._gsap||kr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},on=function(t,e){var r=Sr.createElementNS?Sr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Sr.createElement(t);return r&&r.style?r:Sr.createElement(t)},un=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Ir,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,cn(r)||r,1)||""},ln="O,Moz,ms,Ms,Webkit".split(","),cn=function(t,e,r){var n=(e||Mr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(ln[i]+t in n););return i<0?null:(3===i?"ms":i>=0?ln[i]:"")+t},hn=function(){"undefined"!=typeof window&&window.document&&(Or=window,Sr=Or.document,Cr=Sr.documentElement,Mr=on("div")||{style:{}},on("div"),tn=cn(tn),en=tn+"Origin",Mr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rr=!!cn("perspective"),Pr=kr.core.reverting,Er=1)},fn=function(t){var e,r=t.ownerSVGElement,n=on("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},pn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},dn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=fn(t),r=1}return e&&(e.width||e.height)||r||(e=fn(t)),!e||e.width||e.x||e.y?e:{x:+pn(t,["x","cx","x1"])||0,y:+pn(t,["y","cy","y1"])||0,width:0,height:0}},mn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!dn(t))},_n=function(t,e){if(e){var r,n=t.style;e in Nr&&e!==en&&(e=tn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Ir,"-$1").toLowerCase())):n.removeAttribute(e)}},gn=function(t,e,r,n,i,s){var a=new fr(t._pt,e,r,0,1,s?Wr:Xr);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},vn={deg:1,rad:1,turn:1},yn={grid:1,flex:1},bn=function t(e,r,n,i){var s,a,o,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",h=Mr.style,f=Br.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(f?"Width":"Height"),m=100,_="px"===i,g="%"===i;if(i===c||!l||vn[i]||vn[c])return l;if("px"!==c&&!_&&(l=t(e,r,n,"px")),u=e.getCTM&&mn(e),(g||"%"===c)&&(Nr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[f?"width":"height"]:e[d],dt(g?l/s*m: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!==Sr&&a.appendChild||(a=Sr.body),(o=a._gsap)&&g&&o.width&&f&&o.time===Oe.time&&!o.uncache)return dt(l/o.width*m);if(!g||"height"!==r&&"width"!==r)(g||"%"===c)&&!yn[un(a,"display")]&&(h.position=un(e,"position")),a===e&&(h.position="static"),a.appendChild(Mr),s=Mr[d],a.removeChild(Mr),h.position="absolute";else{var v=e.style[r];e.style[r]=m+i,s=e[d],v?e.style[r]=v:_n(e,r)}return f&&g&&((o=ht(a)).time=Oe.time,o.width=a[d]),dt(_?s*l/m:s&&l?m/s*l:0)},wn=function(t,e,r,n){var i;return Er||hn(),e in Ur&&"transform"!==e&&~(e=Ur[e]).indexOf(",")&&(e=e.split(",")[0]),Nr[e]&&"transform"!==e?(i=Rn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Nn(un(t,en))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=On[e]&&On[e](t,e,r)||un(t,e)||ft(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?bn(t,e,i,r)+r:i},Tn=function(t,e,r,n){if(!r||"none"===r){var i=cn(e,t,1),s=i&&un(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=un(t,"borderTopColor"))}var a,o,u,l,c,h,f,p,d,m,_,g=new fr(this._pt,t.style,e,0,1,ar),v=0,b=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=un(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=un(t,e)||n,h?t.style[e]=h:_n(t,e)),ke(a=[r,n]),n=a[1],u=(r=a[0]).match(U)||[],(n.match(U)||[]).length){for(;o=U.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[b++]||"")&&(l=parseFloat(h)||0,_=h.substr((l+"").length),"="===f.charAt(1)&&(f=_t(l,f)+_),p=parseFloat(f),m=f.substr((p+"").length),v=U.lastIndex-m.length,m||(m=m||y.units[e]||_,v===n.length&&(n+=m,g.e+=m)),_!==m&&(l=bn(t,e,h,m)||0),g._pt={_next:g._pt,p:d||1===b?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?Wr:Xr;return j.test(n)&&(g.e=0),this._pt=g,g},xn={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]=xn[r]||r,e[1]=xn[n]||n,e.join(" ")},kn=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],Nr[r]&&(n=1,r="transformOrigin"===r?en:tn),_n(s,r);n&&(_n(s,tn),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Rn(s,1),u.uncache=1,nn(a)))}},On={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new fr(t._pt,e,r,0,0,kn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Sn=[1,0,0,1,0,0],Cn={},En=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Mn=function(t){var e=un(t,tn);return En(e)?Sn:e.substr(7).match(q).map(dt)},Dn=function(t,e){var r,n,i,s,a=t._gsap||ht(t),o=t.style,u=Mn(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(",")?Sn:u:(u!==Sn||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=Mn(t),i?o.display=i:_n(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)},Pn=function(t,e,r,n,i,s){var a,o,u,l=t._gsap,c=i||Dn(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,m=c[0],_=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!==Sn&&(o=m*v-_*g)&&(u=T*(-_/o)+x*(m/o)-(m*b-_*y)/o,T=T*(v/o)+x*(-g/o)+(g*b-v*y)/o,x=u):(T=(a=dn(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*m+b*g)-y,l.yOffset=d+(y*_+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[en]="0px 0px",s&&(gn(s,l,"xOrigin",h,T),gn(s,l,"yOrigin",f,x),gn(s,l,"xOffset",p,l.xOffset),gn(s,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",T+" "+x)},Rn=function(t,e){var r=t._gsap||new Be(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,b,w,T,x,A,k,O,S,C,E,M,D,P,R,N,z,L=t.style,F=r.scaleX<0,I="px",B="deg",q=getComputedStyle(t),U=un(t,en)||"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[tn]=("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[tn]?q[tn]:"")),L.scale=L.rotate=L.translate="none"),_=Dn(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),U=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",S=""):S=!e&&t.getAttribute("data-svg-origin"),Pn(t,S||U,!!S||r.originIsAbsolute,!1!==r.smooth,_)),d=r.xOrigin||0,m=r.yOrigin||0,_!==Sn&&(w=_[0],T=_[1],x=_[2],A=_[3],n=k=_[4],i=O=_[5],6===_.length?(a=Math.sqrt(w*w+T*T),o=Math.sqrt(A*A+x*x),u=w||T?Fr(T,w)*zr:0,(h=x||A?Fr(x,A)*zr+u:0)&&(o*=Math.abs(Math.cos(h*Lr))),r.svg&&(n-=d-(d*w+m*x),i-=m-(d*T+m*A))):(z=_[6],R=_[7],M=_[8],D=_[9],P=_[10],N=_[11],n=_[12],i=_[13],s=_[14],l=(g=Fr(z,P))*zr,g&&(S=k*(v=Math.cos(-g))+M*(b=Math.sin(-g)),C=O*v+D*b,E=z*v+P*b,M=k*-b+M*v,D=O*-b+D*v,P=z*-b+P*v,N=R*-b+N*v,k=S,O=C,z=E),c=(g=Fr(-x,P))*zr,g&&(v=Math.cos(-g),N=A*(b=Math.sin(-g))+N*v,w=S=w*v-M*b,T=C=T*v-D*b,x=E=x*v-P*b),u=(g=Fr(T,w))*zr,g&&(S=w*(v=Math.cos(g))+T*(b=Math.sin(g)),C=k*v+O*b,T=T*v-w*b,O=O*v-k*b,w=S,k=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=dt(Math.sqrt(w*w+T*T+x*x)),o=dt(Math.sqrt(O*O+z*z)),g=Fr(k,O),h=Math.abs(g)>2e-4?g*zr:0,p=N?1/(N<0?-N:N):0),r.svg&&(S=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!En(un(t,tn)),S&&t.setAttribute("transform",S))),Math.abs(h)>90&&Math.abs(h)<270&&(F?(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)+I,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)+I,r.z=s+I,r.scaleX=dt(a),r.scaleY=dt(o),r.rotation=dt(u)+B,r.rotationX=dt(l)+B,r.rotationY=dt(c)+B,r.skewX=h+B,r.skewY=f+B,r.transformPerspective=p+I,(r.zOrigin=parseFloat(U.split(" ")[2])||!e&&r.zOrigin||0)&&(L[en]=Nn(U)),r.xOffset=r.yOffset=0,r.force3D=y.force3D,r.renderTransform=r.svg?Un:Rr?qn:Ln,r.uncache=0,r},Nn=function(t){return(t=t.split(" "))[0]+" "+t[1]},zn=function(t,e,r){var n=Qt(e);return dt(parseFloat(e)+parseFloat(bn(t,"x",r+"px",n)))+n},Ln=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,qn(t,e)},Fn="0deg",In="0px",Bn=") ",qn=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,m=r.transformPerspective,_=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===_&&t&&1!==t||!0===_;if(v&&(c!==Fn||l!==Fn)){var w,T=parseFloat(l)*Lr,x=Math.sin(T),A=Math.cos(T);T=parseFloat(c)*Lr,w=Math.cos(T),s=zn(g,s,x*w*-v),a=zn(g,a,-Math.sin(T)*-v),o=zn(g,o,A*w*-v+v)}m!==In&&(y+="perspective("+m+Bn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==In||a!==In||o!==In)&&(y+=o!==In||b?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Bn),u!==Fn&&(y+="rotate("+u+Bn),l!==Fn&&(y+="rotateY("+l+Bn),c!==Fn&&(y+="rotateX("+c+Bn),h===Fn&&f===Fn||(y+="skew("+h+", "+f+Bn),1===p&&1===d||(y+="scale("+p+", "+d+Bn),g.style[tn]=y||"translate(0, 0)"},Un=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,m=o.scaleX,_=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,b=o.xOffset,w=o.yOffset,T=o.forceCSS,x=parseFloat(c),A=parseFloat(h);f=parseFloat(f),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),f+=d),f||p?(f*=Lr,p*=Lr,r=Math.cos(f)*m,n=Math.sin(f)*m,i=Math.sin(f-p)*-_,s=Math.cos(f-p)*_,p&&(d*=Lr,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=dt(r),n=dt(n),i=dt(i),s=dt(s)):(r=m,s=_,n=i=0),(x&&!~(c+"").indexOf("px")||A&&!~(h+"").indexOf("px"))&&(x=bn(g,"x",c,"px"),A=bn(g,"y",h,"px")),(v||y||b||w)&&(x=dt(x+v-(v*r+y*i)+b),A=dt(A+y-(v*n+y*s)+w)),(u||l)&&(a=g.getBBox(),x=dt(x+u/100*a.width),A=dt(A+l/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+x+","+A+")",g.setAttribute("transform",a),T&&(g.style[tn]=a)},$n=function(t,e,r,n,i){var s,a,o=360,u=E(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?zr: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 fr(t._pt,e,r,n,l,jr),a.e=c,a.u="deg",t._props.push(r),a},jn=function(t,e){for(var r in e)t[r]=e[r];return t},Vn=function(t,e,r){var n,i,s,a,o,u,l,c=jn({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[tn]=e,n=Rn(r,1),_n(r,tn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[tn],h[tn]=e,n=Rn(r,1),h[tn]=s),Nr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=Qt(s)!==(l=Qt(a))?bn(r,i,s,l):parseFloat(s),u=parseFloat(a),t._pt=new fr(t._pt,n,i,o,u-o,$r),t._pt.u=l||0,t._props.push(i));jn(n,c)};pt("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});On[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 wn(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 Yn,Xn,Wn,Hn={name:"css",register:hn,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,b,w,T=this._props,x=t.style,A=r.vars.startAt;for(h in Er||hn(),this.styles=this.styles||an(t),w=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(a=e[h],!st[h]||!Xe(h,e,r,n,t,i)))if(l=typeof a,c=On[h],"function"===l&&(l=typeof(a=a.call(r,n,t,i))),"string"===l&&~a.indexOf("random(")&&(a=ce(a)),c)c(this,t,h,a,r)&&(b=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",xe.lastIndex=0,xe.test(s)||(f=Qt(s),p=Qt(a)),p?f!==p&&(s=bn(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(A&&h in A?(s="function"==typeof A[h]?A[h].call(r,n,t,i):A[h],E(s)&&~s.indexOf("random(")&&(s=ce(s)),Qt(s+"")||"auto"===s||(s+=y.units[h]||Qt(wn(t,h))||""),"="===(s+"").charAt(1)&&(s=wn(t,h))):s=wn(t,h),u=parseFloat(s),(d="string"===l&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),h in Ur&&("autoAlpha"===h&&(1===u&&"hidden"===wn(t,"visibility")&&o&&(u=0),w.push("visibility",0,x.visibility),gn(this,x,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=Ur[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Nr)if(this.styles.save(h),"string"===l&&"var(--"===a.substring(0,6)&&(a=un(t,a.substring(4,a.indexOf(")"))),o=parseFloat(a)),_||((g=t._gsap).renderTransform&&!e.parseTransform||Rn(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(_=this._pt=new fr(this._pt,x,tn,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new fr(this._pt,g,"scaleY",g.scaleY,(d?_t(g.scaleY,d+o):o)-g.scaleY||0,$r),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(en,0,x[en]),a=An(a),g.svg?Pn(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&gn(this,g,"zOrigin",g.zOrigin,p),gn(this,x,h,Nn(s),Nn(a)));continue}if("svgOrigin"===h){Pn(t,a,1,v,0,this);continue}if(h in Cn){$n(this,g,h,u,d?_t(u,d+a):a);continue}if("smoothOrigin"===h){gn(this,g,"smooth",g.smooth,a);continue}if("force3D"===h){g[h]=a;continue}if("transform"===h){Vn(this,a,t);continue}}else h in x||(h=cn(h)||h);if(m||(o||0===o)&&(u||0===u)&&!qr.test(a)&&h in x)o||(o=0),(f=(s+"").substr((u+"").length))!==(p=Qt(a)||(h in y.units?y.units[h]:f))&&(u=bn(t,h,s,p)),this._pt=new fr(this._pt,m?g:x,h,u,(d?_t(u,d+o):o)-u,m||"px"!==p&&"zIndex"!==h||!1===e.autoRound?$r:Yr),this._pt.u=p||0,f!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=Vr);else if(h in x)Tn.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){G(h,a);continue}m||(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)}b&&hr(this)},render:function(t,e){if(e.tween._time||!Pr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:wn,aliases:Ur,getSetter:function(t,e,r){var n=Ur[e];return n&&n.indexOf(",")<0&&(e=n),e in Nr&&e!==en&&(t._gsap.x||wn(t,"x"))?r&&Dr===r?"scale"===e?Kr:Jr:(Dr=r||{})&&("scale"===e?Qr:Zr):t.style&&!P(t.style[e])?Hr:~e.indexOf("-")?Gr:nr(t,e)},core:{_removeProperty:_n,_getMatrix:Dn}};kr.utils.checkPrefix=cn,kr.core.getStyleSaver=an,Wn=pt((Yn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Xn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Nr[t]=1}),pt(Xn,function(t){y.units[t]="deg",Cn[t]=1}),Ur[Wn[13]]=Yn+","+Xn,pt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ur[e[1]]=Wn[e[0]]}),pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){y.units[t]="px"}),kr.registerPlugin(Hn);var Gn=kr.registerPlugin(Hn)||kr;Gn.core.Tween;var Jn;var Kn="undefined"==typeof document?void 0:document,Qn=!!Kn&&"content"in Kn.createElement("template"),Zn=!!Kn&&Kn.createRange&&"createContextualFragment"in Kn.createRange();function ti(t){return t=t.trim(),Qn?function(t){var e=Kn.createElement("template");return e.innerHTML=t,e.content.childNodes[0]}(t):Zn?function(t){return Jn||(Jn=Kn.createRange()).selectNode(Kn.body),Jn.createContextualFragment(t).childNodes[0]}(t):function(t){var e=Kn.createElement("body");return e.innerHTML=t,e.childNodes[0]}(t)}function ei(t,e){var r,n,i=t.nodeName,s=e.nodeName;return i===s||(r=i.charCodeAt(0),n=s.charCodeAt(0),r<=90&&n>=97?i===s.toUpperCase():n<=90&&r>=97&&s===i.toUpperCase())}function ri(t,e,r){t[r]!==e[r]&&(t[r]=e[r],t[r]?t.setAttribute(r,""):t.removeAttribute(r))}var ni={OPTION:function(t,e){var r=t.parentNode;if(r){var n=r.nodeName.toUpperCase();"OPTGROUP"===n&&(n=(r=r.parentNode)&&r.nodeName.toUpperCase()),"SELECT"!==n||r.hasAttribute("multiple")||(t.hasAttribute("selected")&&!e.selected&&(t.setAttribute("selected","selected"),t.removeAttribute("selected")),r.selectedIndex=-1)}ri(t,e,"selected")},INPUT:function(t,e){ri(t,e,"checked"),ri(t,e,"disabled"),t.value!==e.value&&(t.value=e.value),e.hasAttribute("value")||t.removeAttribute("value")},TEXTAREA:function(t,e){var r=e.value;t.value!==r&&(t.value=r);var n=t.firstChild;if(n){var i=n.nodeValue;if(i==r||!r&&i==t.placeholder)return;n.nodeValue=r}},SELECT:function(t,e){if(!e.hasAttribute("multiple")){for(var r,n,i=-1,s=0,a=t.firstChild;a;)if("OPTGROUP"===(n=a.nodeName&&a.nodeName.toUpperCase()))(a=(r=a).firstChild)||(a=r.nextSibling,r=null);else{if("OPTION"===n){if(a.hasAttribute("selected")){i=s;break}s++}!(a=a.nextSibling)&&r&&(a=r.nextSibling,r=null)}t.selectedIndex=i}}};function ii(){}function si(t){if(t)return t.getAttribute&&t.getAttribute("id")||t.id}var ai=function(t){return function(e,r,n){if(n||(n={}),"string"==typeof r)if("#document"===e.nodeName||"HTML"===e.nodeName||"BODY"===e.nodeName){var i=r;(r=Kn.createElement("html")).innerHTML=i}else r=ti(r);else 11===r.nodeType&&(r=r.firstElementChild);var s=n.getNodeKey||si,a=n.onBeforeNodeAdded||ii,o=n.onNodeAdded||ii,u=n.onBeforeElUpdated||ii,l=n.onElUpdated||ii,c=n.onBeforeNodeDiscarded||ii,h=n.onNodeDiscarded||ii,f=n.onBeforeElChildrenUpdated||ii,p=n.skipFromChildren||ii,d=n.addChild||function(t,e){return t.appendChild(e)},m=!0===n.childrenOnly,_=Object.create(null),g=[];function v(t){g.push(t)}function y(t,e){if(1===t.nodeType)for(var r=t.firstChild;r;){var n=void 0;e&&(n=s(r))?v(n):(h(r),r.firstChild&&y(r,e)),r=r.nextSibling}}function b(t,e,r){!1!==c(t)&&(e&&e.removeChild(t),h(t),y(t,r))}function w(t){if(1===t.nodeType||11===t.nodeType)for(var e=t.firstChild;e;){var r=s(e);r&&(_[r]=e),w(e),e=e.nextSibling}}function T(t){o(t);for(var e=t.firstChild;e;){var r=e.nextSibling,n=s(e);if(n){var i=_[n];i&&ei(e,i)?(e.parentNode.replaceChild(i,e),x(i,e)):T(e)}else T(e);e=r}}function x(e,r,n){var i=s(r);if(i&&delete _[i],!n){var o=u(e,r);if(!1===o)return;if(o instanceof HTMLElement&&w(e=o),t(e,r),l(e),!1===f(e,r))return}"TEXTAREA"!==e.nodeName?function(t,e){var r,n,i,o,u,l=p(t,e),c=e.firstChild,h=t.firstChild;t:for(;c;){for(o=c.nextSibling,r=s(c);!l&&h;){if(i=h.nextSibling,c.isSameNode&&c.isSameNode(h)){c=o,h=i;continue t}n=s(h);var f=h.nodeType,m=void 0;if(f===c.nodeType&&(1===f?(r?r!==n&&((u=_[r])?i===u?m=!1:(t.insertBefore(u,h),n?v(n):b(h,t,!0),n=s(h=u)):m=!1):n&&(m=!1),(m=!1!==m&&ei(h,c))&&x(h,c)):3!==f&&8!=f||(m=!0,h.nodeValue!==c.nodeValue&&(h.nodeValue=c.nodeValue))),m){c=o,h=i;continue t}n?v(n):b(h,t,!0),h=i}if(r&&(u=_[r])&&ei(u,c))l||d(t,u),x(u,c);else{var g=a(c);!1!==g&&(g&&(c=g),c.actualize&&(c=c.actualize(t.ownerDocument||Kn)),d(t,c),T(c))}c=o,h=i}!function(t,e,r){for(;e;){var n=e.nextSibling;(r=s(e))?v(r):b(e,t,!0),e=n}}(t,h,n);var y=ni[t.nodeName];y&&y(t,e)}(e,r):ni.TEXTAREA(e,r)}w(e);var A,k,O=e,S=O.nodeType,C=r.nodeType;if(!m)if(1===S)1===C?ei(e,r)||(h(e),O=function(t,e){for(var r=t.firstChild;r;){var n=r.nextSibling;e.appendChild(r),r=n}return e}(e,(A=r.nodeName,(k=r.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==k?Kn.createElementNS(k,A):Kn.createElement(A)))):O=r;else if(3===S||8===S){if(C===S)return O.nodeValue!==r.nodeValue&&(O.nodeValue=r.nodeValue),O;O=r}if(O===r)h(e);else{if(r.isSameNode&&r.isSameNode(O))return;if(x(O,r,m),g)for(var E=0,M=g.length;E<M;E++){var D=_[g[E]];D&&b(D,D.parentNode,!1)}}return!m&&O!==e&&e.parentNode&&(O.actualize&&(O=O.actualize(e.ownerDocument||Kn)),e.parentNode.replaceChild(O,e)),O}}(function(t,e){var r,n,i,s,a=e.attributes;if(11!==e.nodeType&&11!==t.nodeType){for(var o=a.length-1;o>=0;o--)n=(r=a[o]).name,i=r.namespaceURI,s=r.value,i?(n=r.localName||n,t.getAttributeNS(i,n)!==s&&("xmlns"===r.prefix&&(n=r.name),t.setAttributeNS(i,n,s))):t.getAttribute(n)!==s&&t.setAttribute(n,s);for(var u=t.attributes,l=u.length-1;l>=0;l--)n=(r=u[l]).name,(i=r.namespaceURI)?(n=r.localName||n,e.hasAttributeNS(i,n)||t.removeAttributeNS(i,n)):e.hasAttribute(n)||t.removeAttribute(n)}});let oi,ui=t=>{let e=t;const r=new Set,n={get value(){return oi&&oi.deps.push(r.add(oi)),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},li=t=>{let e,r;const n=()=>{e&&e.call(),r=oi,oi=n;try{e=t()}finally{oi=r}};return n.deps=[],n(),()=>{let t;for(e&&e.call();t=n.deps.pop();)t.delete(n)}},ci=t=>{const e=ui();let r;const n={get value(){return r||(r=li(()=>{e.value=t()})),e.value},peek:e.peek,toJSON:()=>n.value,then:()=>n.value,toString:()=>n.value,valueOf:()=>n.value};return n},hi=t=>t(),fi=hi;const pi=Symbol("signals"),di=Symbol("change"),mi="__",_i=["push","pop","shift","unshift","splice"],gi=(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[di]?hi(()=>{for(let t=0;t<r.length;t++)i[t]=r[t];i.length=r.length}):n.value=r:n.value=vi(r)):t[e]=r?.peek?r:ui(vi(r)):t[e]=r},vi=(t,e)=>{if(!t)return t;if(t[pi]||t[Symbol.toStringTag])return t;if(t.constructor!==Object)return Array.isArray(t)?yi(t):t;const r=Object.create(e?.[pi]||{}),n=ui(Object.keys(t).length);let i;const s=new Proxy(r,{get:(t,e)=>e===di?n:e===pi?r:e===mi?i:e in r?r[e]?.valueOf():globalThis[e],set(t,e,s){if(e===mi)return i=s,!0;const a=e in r;return gi(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=ci(n.get.bind(s));t._set=n.set?.bind(s),r[e]=t}else r[e]=null,gi(r,e,t[e])}return s},yi=t=>{let e;const r=ui(t.length),n=Array(t.length).fill(),i=new Proxy(n,{get:(i,s)=>"symbol"==typeof s?s===di?r:s===pi?n:n[s]:"length"===s?_i.includes(e)?r.peek():r.value:(e=s,n[s]||(n[s]=ui(vi(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 gi(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},bi=t=>{const e=Mi(`${t}=${mi}`);return(t,r)=>{t[mi]=r,e(t)}},wi=Symbol.dispose||=Symbol("dispose"),Ti=Symbol("state"),xi=Symbol("on"),Ai=Symbol("off"),ki={},Oi={};let Si,Ci=":";const Ei=(t,e,r=Mi)=>{ki[t]=(t,n,i,s)=>{const a=e(t,i,n,s),o=r(n,":"+s);return()=>a(o(i))}},Mi=(t,e)=>{const r=t.trim();if(Oi[r])return Oi[r];let n;try{n=Si(r)}catch(t){Di(t,e,r)}const i=t=>{try{return n(t)}catch(t){Di(t,e,r)}};return Oi[r]=i,i},Di=(t,e="",r="")=>{const n=r?`="${r}"\n\n`:"",i=`◆ ${t.message}\n\n${e}${n}`;throw Object.assign(t,{message:i,expr:r})},Pi=(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(Ci)){t.removeAttribute(o);const e=o.slice(Ci.length).split(":");for(const s of e){const e=(ki[s]||ki.default)(t,u,r,s);if(n.push(e),i.push(li(e)),null===t[Ti])return}}else s++}for(const e of t.childNodes)1===e.nodeType&&Pi(e,e.attributes,r,n,i)},Ri=(t=document.body,e)=>{if(t[Ti])return Object.assign(t[Ti],e);const r=vi(e||{}),n=[],i=[];return Pi(t,t.attributes,r,i,n),Ti in t||(t[Ti]=r,t[Ai]=()=>{n.forEach(t=>t()),n.length=0},t[xi]=()=>{n.length=0,n.push(...i.map(t=>li(t)))},t[wi]=()=>{t[Ai](),t[Ai]=null,t[xi]=null,t[wi]=null,t[Ti]=null}),r};Ri.use=t=>{var e;t.signal&&(ui=(e=t).signal,li=e.effect,ci=e.computed,hi=e.batch||hi,fi=e.untracked||fi),t.compile&&(Si=t.compile),t.prefix&&(Ci=t.prefix)};const Ni=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)}}},zi=Symbol("if");Ei("if",(t,e)=>{const r=document.createTextNode("");let n,i,s,a=t.nextElementSibling;return t.replaceWith(r),i=t.content?Ni(t):t,i[Ti]=null,a?.hasAttribute(":else")?(a.removeAttribute(":else"),a.hasAttribute(":if")||(a.remove(),s=a.content?Ni(a):a,s[Ti]=null)):a=null,(o,u=(t[zi]?null:o?i:s))=>{a&&(a[zi]=t[zi]||u==i),n!=u&&(n&&(n.remove(),n[Ai]?.()),(n=u)&&(r.before(n.content||n),null===n[Ti]?(delete n[Ti],Ri(n,e)):n[xi]()))}}),Ei("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[di]){for(const t of a[pi]||[])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=vi({[n]:a[pi]?.[u]||a[u],[i]:o?o[u]:u},e),c=t.content?Ni(t):t.cloneNode(!0);s.before(c.content||c),Ri(c,l);const f=((a[pi]||=[])[h]||={})[Symbol.dispose];a[pi][h][Symbol.dispose]=()=>{f?.(),c[Symbol.dispose]?.(),c.remove()}}}l=c};return t.replaceWith(s),t[Ti]=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 li(()=>{u[di],e++||(c(),queueMicrotask(()=>{e>1&&c(),e=0}))})}},t=>Mi(t.split(/\bin\b/)[1])),Ei("ref",(t,e,r)=>"function"==typeof Mi(r)(e)?e=>e?.call(null,t):(bi(r)(e,t),t=>t)),Ei("with",(t,e)=>{let r;return n=>{r?Ri(t,n):fi(()=>{r=vi(n,e),Ri(t,r)})}}),Ei("text",t=>{if(t.content){const e=Ni(t).childNodes[0];t.replaceWith(e),t=e}return e=>{t.textContent=e??""}}),Ei("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}}),Ei("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}}}),Ei("default",(t,e,r,n)=>{if(!n.startsWith("on"))return n?e=>qi(t,n,e):e=>{for(const r in e)qi(t,Ui(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=Li[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){Di(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 Li={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=>Ii(t,e)},debounce(t,e=108){t.defer=t=>Bi(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=>Fi.ctrl(t)&&e.every(e=>Fi[e]?Fi[e](t):t.key===e),shift:(t,...e)=>t=>Fi.shift(t)&&e.every(e=>Fi[e]?Fi[e](t):t.key===e),alt:(t,...e)=>t=>Fi.alt(t)&&e.every(e=>Fi[e]?Fi[e](t):t.key===e),meta:(t,...e)=>t=>Fi.meta(t)&&e.every(e=>Fi[e]?Fi[e](t):t.key===e),arrow:()=>Fi.arrow,enter:()=>Fi.enter,esc:()=>Fi.esc,tab:()=>Fi.tab,space:()=>Fi.space,delete:()=>Fi.delete,digit:()=>Fi.digit,letter:()=>Fi.letter,char:()=>Fi.char},Fi={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)},Ii=(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}},Bi=(t,e)=>{let r;return n=>{clearTimeout(r),r=setTimeout(()=>{r=null,t(n)},e)}},qi=(t,e,r)=>{null==r||!1===r?t.removeAttribute(e):t.setAttribute(e,!0===r?"":"number"==typeof r||"string"==typeof r?r:"")},Ui=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,e)=>(e?"-":"")+t.toLowerCase());Ei("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,qi(t,"checked",e)},l=e=>{t.value===e&&(t.checked=e,qi(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=bi(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}),Ri(t,e)),Mi(r)(e)??s()}catch{}return p}),Ei("fx",t=>t=>t),Ei("aria",t=>e=>{for(const r in e){const n=e[r];qi(t,`aria-${Ui(r)}`,null==n?null:String(n))}}),Ei("data",t=>e=>{for(const r in e)t.dataset[r]=e[r]}),Ri.use({compile:t=>Ri.constructor(`with (arguments[0]) { return ${t} };`)});const $i=Symbol("persist"),ji=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"{}"}},Vi=t=>{try{return JSON.parse(t)}catch{return{}}},Yi=(t,e,r={})=>{const n={key:e,storage:globalThis.localStorage,paths:null,debounce:0,serializer:ji,deserializer:Vi,...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[pi];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[pi]&&!t[pi][e]?._set&&(t[e]=r[e]);i=!1}catch(t){console.warn("persistence: failed to restore state",t),i=!1}};a();const o=li(()=>{if(n.paths)for(const e of n.paths)t[e];else{const e=t[pi];for(const r in e){const n=e[r];n&&!n._set&&"_"!==r[0]&&t[r]}}s()});return t[$i]={config:n,saveState:s,restoreState:a},o},Xi=new Map,Wi={store:(t,e,r={})=>{if(void 0!==e){const n=vi(e);if(Xi.set(t,n),!0===r||r.persist){const e=!0===r?{}:{...r};delete e.persist,((t,e,r={})=>{!0===r&&(r={}),Yi(t,e,r)})(n,t,e)}return n}const n=Xi.get(t);return n||(console.warn(`store "${t}" not found`),{})}};async function Hi(t){const e=t.querySelector("script[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=Ri(r,i);return e.remove(),s}async function Gi(t){await Hi(t)}function Ji(t){const e=[],r=t.replace(/:([^/]+)/g,(t,r)=>(e.push(r),"([^/]+)"));return{regex:new RegExp(`^${r}$`),keys:e}}function Ki(t,e){for(const r of e){const{regex:e,keys:n}=Ji(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 Qi(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}=Ji(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 Zi(t,e,r,n,i=!1,s=!1){let a="function"==typeof e?e({}):e;n&&(a={...a,dataset:n});const o=await fetch(`/templates/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(t=>t.text());if(s){const t=document.createElement("div");t.innerHTML=o;const e=Array.from(t.querySelectorAll("script")),n=e.map(t=>({src:t.src,content:t.textContent,attrs:Array.from(t.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{})}));e.forEach(t=>t.remove());const i=r.firstElementChild,s=t.firstElementChild;i&&s?ai(i,s,{onBeforeElUpdated:(t,e)=>!t.isEqualNode(e)}):r.innerHTML=t.innerHTML,n.forEach(({src:t,content:e,attrs:n})=>{const i=document.createElement("script");e&&(e.includes("export ")||e.includes("import "))&&(i.type="module"),Object.entries(n).forEach(([t,e])=>{i.setAttribute(t,e)}),t?i.src=t:i.textContent=e,r.appendChild(i)})}else r.innerHTML=o;await Gi(r),await ss(r,i),await rs(r,i)}async function ts(t,e){if(e)return new Promise(r=>{requestAnimationFrame(()=>{const n={...e,from:void 0};n.onComplete=r,e.from?Gn.fromTo(t,e.from,n):Gn.to(t,n)})})}function es(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 rs(t,e=!1){if(e)return;const r=[];if(t.hasAttribute("r-transition-stagger-in"))try{const e=es(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Gn.set(n,e.from||{}),r.push(ts(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=es(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(Gn.set(n,e.from||{}),r.push(ts(n,e)))}catch(t){console.warn("invalid transition data on stagger element:",t)}if(t.hasAttribute("r-transition-in"))try{const e=es(t.getAttribute("r-transition-in"));Gn.set(t,e.from||{}),r.push(ts(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=es(t.getAttribute("r-transition-in"));Gn.set(t,e.from||{}),r.push(ts(t,e))}catch(t){console.warn("invalid transition data on element:",t)}}Promise.all(r)}function ns(t){const e=[];if(t.hasAttribute("r-transition-stagger-in")){const r=es(t.getAttribute("r-transition-stagger-in")),n=Array.from(t.children);n.length>0&&(e.push({type:"stagger",elements:n,transition:r}),Gn.set(n,r.from||{})),t.removeAttribute("r-transition-stagger-in")}if(t.hasAttribute("r-transition-in")){const r=es(t.getAttribute("r-transition-in"));e.push({type:"individual",elements:t,transition:r}),Gn.set(t,r.from||{}),t.removeAttribute("r-transition-in")}return e}function is(t){for(const{elements:e,transition:r}of t)ts(e,r)}async function ss(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?es(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 Gi(t),await ss(t,e),await rs(t,e)}}function as(t){const e={},r=new URLSearchParams(t);for(const[t,n]of r)e[t]=n;return e}function os(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=Ki(o,t);if(!l)return console.error("rift: route not found:",o);const{route:c,params:h}=l,f=as(u);let p;if(n&&document.body.classList.add("loading"),c.renders)p=c.renders;else{const n=Qi(r,t),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}]}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,Gn.killTweensOf(o),Gn.set(o,{clearProps:"all"}),o.classList.add("loading"),await Zi(t.template,r,o,u,n||t.skipTransition,c.diff||!1),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?es(s):null,linkDataset:i,linkTarget:a})}),window.addEventListener("popstate",()=>r({path:location.pathname+location.search}))},hydrateNestedTemplates:ss,processElementTransitions:rs,captureGlobalTransitions:ns,runGlobalTransitions:is,refresh:async(e={})=>{const r=async()=>{const{path:r=location.pathname+location.search,parents:n=!1,diff:i=!1}=e,[s,a=""]=r.split("?"),o=Ki(s,t);if(!o)return console.error("rift: route not found:",s);const{route:u,params:l}=o,c=as(a);if(n){const e=[...Qi(r,t),{route:u,params:l}],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:s}=e[t],a=document.querySelector(r)||document.getElementById("main"),o="function"==typeof n.props?n.props(s,c):n.props;await Zi(n.template,o,a,n.dataset,!0,i||n.diff||!1)}}}const h=document.querySelector(u.target)||document.getElementById("main"),f="function"==typeof u.props?u.props(l,c):u.props;await Zi(u.template,f,h,u.dataset,!0,i||u.diff||!1)};document.startViewTransition?document.startViewTransition(r):await r()},refreshTemplate:async(e,r={},n={})=>{const{diff:i=!1}=n,s=[];document.querySelectorAll(`[r-tpl="${e}"]`).forEach(t=>{s.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 s=await n.text();i?await Zi(e,r,t,null,!0,!0):(t.innerHTML=s,await Gi(t))})});if(t.filter(t=>t.template===e).forEach(t=>{const e=document.querySelector(t.target)||document.getElementById("main");e&&s.push(async()=>{const r=location.pathname+location.search,n=Ki(r,[t]);if(n){const{params:s}=n,[,a=""]=r.split("?"),o=as(a),u="function"==typeof t.props?t.props(s,o):t.props;await Zi(t.template,u,e,t.dataset,!0,i||t.diff||!1)}})}),0===s.length)return console.error("no templates found with name:",e);const a=async()=>{await Promise.all(s.map(t=>t()))};document.startViewTransition?document.startViewTransition(a):await a()}}}function us(){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 ls(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()}function cs(t){const e=os(t);us(),ls(e)}window.signal=ui,window.r=Wi,window._riftSprae=Ri,window._riftSignal={signal:ui,effect:li,computed:ci},window._riftStore=vi,window.r=Wi;export{os as createRouter,cs as default,us as initRipple,ls as mount,Wi as r,vi as store};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "riftt",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "type": "module",
5
5
  "main": "dist/rift.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "description": "",
14
14
  "dependencies": {
15
15
  "gsap": "^3.13.0",
16
- "snabbdom": "^3.6.3"
16
+ "morphdom": "^2.7.4"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-node-resolve": "^16.0.2",