z-flux-react 1.0.0 → 1.0.2
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.
- package/dist/index.d.ts +33 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -5
- package/rollup.config.js +0 -50
- package/tsconfig.json +0 -58
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),r=require("z-flux-utils");function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
2
2
|
/*!
|
|
3
3
|
* GSAP 3.15.0
|
|
4
4
|
* https://gsap.com
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @license Copyright 2008-2026, 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
|
-
*/"function"==typeof SuppressedError&&SuppressedError;var o,u,l,c,f,h,p,d,g,_,m,v,y,x,b,w,T,k={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},C={duration:.5,overwrite:!1,delay:0},O=1e8,E=1e-8,S=2*Math.PI,M=S/4,A=0,P=Math.sqrt,R=Math.cos,D=Math.sin,z=function(t){return"string"==typeof t},F=function(t){return"function"==typeof t},I=function(t){return"number"==typeof t},N=function(t){return void 0===t},B=function(t){return"object"==typeof t},L=function(t){return!1!==t},Y=function(){return"undefined"!=typeof window},j=function(t){return F(t)||z(t)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},q=Array.isArray,W=/random\([^)]+\)/g,H=/,\s*/g,U=/(?:-?\.?\d|\.)+/gi,V=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,G=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Q=/[+-]=-?[.\d]+/,Z=/[^,'"\[\]\s]+/gi,K=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,J={},tt={},et=function(t){return(tt=Pt(t,J))&&Pr},rt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},nt=function(t,e){return!e&&console.warn(t)},it=function(t,e){return t&&(J[t]=e)&&tt&&(tt[t]=e)||J},st=function(){return 0},at={suppressEvents:!0,isStart:!0,kill:!1},ot={suppressEvents:!0,kill:!1},ut={suppressEvents:!0},lt={},ct=[],ft={},ht={},pt={},dt=30,gt=[],_t="",mt=function(t){var e,r,n=t[0];if(B(n)||F(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(n););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new He(t[r],e)))||t.splice(r,1);return t},vt=function(t){return t._gsap||mt(le(t))[0]._gsap},yt=function(t,e,r){return(r=t[e])&&F(r)?t[e]():N(r)&&t.getAttribute&&t.getAttribute(e)||r},xt=function(t,e){return(t=t.split(",")).forEach(e)||t},bt=function(t){return Math.round(1e5*t)/1e5||0},wt=function(t){return Math.round(1e7*t)/1e7||0},Tt=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},kt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Ct=function(){var t,e,r=ct.length,n=ct.slice(0);for(ft={},ct.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ot=function(t){return!!(t._initted||t._startAt||t.add)},Et=function(t,e,r,n){ct.length&&!u&&Ct(),t.render(e,r,n||!!(u&&e<0&&Ot(t))),ct.length&&!u&&Ct()},St=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Z).length<2?e:z(t)?t.trim():t},Mt=function(t){return t},At=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Pt=function(t,e){for(var r in e)t[r]=e[r];return t},Rt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=B(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Dt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},zt=function(t){var e,r=t.parent||c,n=t.keyframes?(e=q(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):At;if(L(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ft=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");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},It=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},Nt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Bt=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},Lt=function(t,e,r,n){return t._startAt&&(u?t._startAt.revert(ot):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Yt=function t(e){return!e||e._ts&&t(e.parent)},jt=function(t){return t._repeat?Xt(t._tTime,t=t.duration()+t._rDelay)*t:0},Xt=function(t,e){var r=Math.floor(t=wt(t/e));return t&&r===t?r-1:r},qt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Wt=function(t){return t._end=wt(t._start+(t._tDur/Math.abs(t._ts||t._rts||E)||0))},Ht=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=wt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Wt(t),r._dirty||Bt(r,t)),t},Ut=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=qt(t.rawTime(),e),(!e._dur||ie(0,e.totalDuration(),r)-e._tTime>E)&&e.render(r,!0)),Bt(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}},Vt=function(t,e,r,n){return e.parent&&Nt(e),e._start=wt((I(r)?r:r||t!==c?ee(t,r,e):t._time)+e._delay),e._end=wt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ft(t,e,"_first","_last",t._sort?"_start":0),Zt(e)||(t._recent=e),n||Ut(t,e),t._ts<0&&Ht(t,t._tTime),t},Gt=function(t,e){return(J.ScrollTrigger||rt("scrollTrigger",e))&&J.ScrollTrigger.create(e,t)},$t=function(t,e,r,n,i){return Je(t,e,i),t._initted?!r&&t._pt&&!u&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&g!==De.frame?(ct.push(t),t._lazy=[i,n],1):void 0:1},Qt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Zt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Kt=function(t,e,r,n){var i=t._repeat,s=wt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:wt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&Ht(t,t._tTime=t._tDur*a),t.parent&&Wt(t),r||Bt(t.parent,t),t},Jt=function(t){return t instanceof Ve?Bt(t):Kt(t,t._dur)},te={_start:0,endTime:st,totalDuration:st},ee=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||te,l=e.duration()>=O?u.endTime(!1):e._dur;return z(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*(q(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},re=function(t,e,r){var n,i,s=I(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=L(i.vars.inherit)&&i.parent;o.immediateRender=L(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new ir(e[0],o,e[a+1])},ne=function(t,e){return t||0===t?e(t):e},ie=function(t,e,r){return r<t?t:r>e?e:r},se=function(t,e){return z(t)&&(e=K.exec(t))?e[1]:""},ae=[].slice,oe=function(t,e){return t&&B(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&B(t[0]))&&!t.nodeType&&t!==f},ue=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return z(t)&&!e||oe(t,1)?(n=r).push.apply(n,le(t)):r.push(t)})||r},le=function(t,e,r){return l&&!e&&l.selector?l.selector(t):!z(t)||r||!h&&ze()?q(t)?ue(t,r):oe(t)?ae.call(t,0):t?[t]:[]:ae.call((e||p).querySelectorAll(t),0)},ce=function(t){return t=le(t)[0]||nt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return le(e,r.querySelectorAll?r:r===t?nt("Invalid scope")||p.createElement("div"):t)}},fe=function(t){return t.sort(function(){return.5-Math.random()})},he=function(t){if(F(t))return t;var e=B(t)?t:{each:t},r=Ye(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 z(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(l=n[0],c=n[1]),function(t,a,f){var h,p,d,g,_,m,v,y,x,b=(f||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,O])[1])){for(v=-1e8;v<(v=f[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],h=o?Math.min(x,b)*l-.5:n%x,p=x===O?0:o?b*c/x-.5:n/x|0,v=0,y=O,m=0;m<b;m++)d=m%x-h,g=p-(m/x|0),w[m]=_=u?Math.abs("y"===u?g:d):P(d*d+g*g),_>v&&(v=_),_<y&&(y=_);"random"===n&&fe(w),w.max=v-y,w.min=y,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:u?"y"===u?b/x:x:Math.max(x,b/x))||0)*("edges"===n?-1:1),w.b=b<0?i-b:i,w.u=se(e.amount||e.each)||0,r=r&&b<0?Le(r):r}return b=(w[t]-w.min)/w.max||0,wt(w.b+(r?r(b):b)*w.v)+w.u}},pe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=wt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(I(r)?0:se(r))}},de=function(t,e){var r,n,i=q(t);return!i&&B(t)&&(r=i=t.radius||O,t.values?(t=le(t.values),(n=!I(t[0]))&&(r*=r)):t=pe(t.increment)),ne(e,i?F(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=O,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||I(e)?l:l+se(e)}:pe(t))},ge=function(t,e,r,n){return ne(q(t)?!e:!0===r?!!(r=0):!n,function(){return q(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})},_e=function(t,e,r){return ne(r,function(r){return t[~~e(r)]})},me=function(t){return t.replace(W,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(H);return ge(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},ve=function(t,e,r,n,i){var s=e-t,a=n-r;return ne(i,function(e){return r+((e-t)/s*a||0)})},ye=function(t,e,r){var n,i,s,a=t.labels,o=O;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},xe=function(t,e,r){var n,i,s,a=t.vars,o=a[e],u=l,c=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&ct.length&&Ct(),c&&(l=c),s=n?o.apply(i,n):o.call(i),l=u,s},be=function(t){return Nt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!u),t.progress()<1&&xe(t,"onInterrupt"),t},we=[],Te=function(t){if(t)if(t=!t.name&&t.default||t,Y()||t.headless){var e=t.name,r=F(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:st,render:pr,add:Ze,kill:gr,modifier:dr,rawVars:0},s={targetTest:0,get:0,getSetter:lr,aliases:{},register:0};if(ze(),t!==n){if(ht[e])return;At(n,At(Dt(t,i),s)),Pt(n.prototype,Pt(i,Dt(t,s))),ht[n.prop=e]=n,t.targetTest&&(gt.push(n),lt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}it(e,n),t.register&&t.register(Pr,n,vr)}else we.push(t)},ke=255,Ce={aqua:[0,ke,ke],lime:[0,ke,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ke],navy:[0,0,128],white:[ke,ke,ke],olive:[128,128,0],yellow:[ke,ke,0],orange:[ke,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ke,0,0],pink:[ke,192,203],cyan:[0,ke,ke],transparent:[ke,ke,ke,0]},Oe=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)*ke+.5|0},Ee=function(t,e,r){var n,i,s,a,o,u,l,c,f,h,p=t?I(t)?[t>>16,t>>8&ke,t&ke]:0:Ce.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ce[t])p=Ce[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&ke,p&ke,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&ke,t&ke]}else if("hsl"===t.substr(0,3))if(p=h=t.match(U),e){if(~t.indexOf("="))return p=t.match(V),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]=Oe(a+1/3,n,i),p[1]=Oe(a,n,i),p[2]=Oe(a-1/3,n,i);else p=t.match(U)||Ce.transparent;p=p.map(Number)}return e&&!h&&(n=p[0]/ke,i=p[1]/ke,s=p[2]/ke,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?a=o=0:(f=l-c,o=u>.5?f/(2-l-c):f/(l+c),a=l===n?(i-s)/f+(i<s?6:0):l===i?(s-n)/f+2:(n-i)/f+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},Se=function(t){var e=[],r=[],n=-1;return t.split(Ae).forEach(function(t){var i=t.match(G)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Me=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(Ae),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=Ee(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Se(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ae,"1").split(G)).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(Ae)).length-1;c<a;c++)o+=i[c]+u[c];return o+i[a]},Ae=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ce)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Pe=/hsl[a]?\(/,Re=function(t){var e,r=t.join(" ");if(Ae.lastIndex=0,Ae.test(r))return e=Pe.test(r),t[1]=Me(t[1],e),t[0]=Me(t[0],e,Se(t[1])),!0},De=function(){var t,e,r,n,i,s,a=Date.now,o=500,u=33,l=a(),c=l,g=1e3/240,_=g,v=[],y=function r(f){var h,p,d,m,y=a()-c,x=!0===f;if((y>o||y<0)&&(l+=y-u),((h=(d=(c+=y)-l)-_)>0||x)&&(m=++n.frame,i=d-1e3*n.time,n.time=d/=1e3,_+=h+(h>=g?4:g-h),p=1),x||(t=e(r)),p)for(s=0;s<v.length;s++)v[s](d,i,m,f)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){d&&(!h&&Y()&&(f=h=window,p=f.document||{},J.gsap=Pr,(f.gsapVersions||(f.gsapVersions=[])).push(Pr.version),et(tt||f.GreenSockGlobals||!f.gsap&&f||{}),we.forEach(Te)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,_-1e3*n.time+1|0)},m=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),m=0,e=st},lagSmoothing:function(t,e){o=t||1/0,u=Math.min(e||33,o)},fps:function(t){g=1e3/(t||240),_=1e3*n.time+g},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),ze(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),ze=function(){return!m&&De.wake()},Fe={},Ie=/^[\d.\-M][\d.\-,\s]/,Ne=/["']/g,Be=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(Ne,"").trim():+n,a=r.substr(e+1).trim();return i},Le=function(t){return function(e){return 1-t(1-e)}},Ye=function(t,e){return t&&(F(t)?t:Fe[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Fe[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Be(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(St)):Fe._CE&&Ie.test(t)?Fe._CE("",t):a}(t))||e},je=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 xt(t,function(t){for(var e in Fe[t]=J[t]=s,Fe[i=t.toLowerCase()]=r,s)Fe[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Fe[t+"."+e]=s[e]}),s},Xe=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},qe=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/S*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*D((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Xe(o);return s=S/s,u.config=function(r,n){return t(e,r,n)},u},We=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)}:Xe(n);return i.config=function(r){return t(e,r)},i};xt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;je(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})}),Fe.Linear.easeNone=Fe.none=Fe.Linear.easeIn,je("Elastic",qe("in"),qe("out"),qe()),v=7.5625,b=2*(x=1/(y=2.75)),w=2.5*x,je("Bounce",function(t){return 1-T(1-t)},T=function(t){return t<x?v*t*t:t<b?v*Math.pow(t-1.5/y,2)+.75:t<w?v*(t-=2.25/y)*t+.9375:v*Math.pow(t-2.625/y,2)+.984375}),je("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),je("Circ",function(t){return-(P(1-t*t)-1)}),je("Sine",function(t){return 1===t?1:1-R(t*M)}),je("Back",We("in"),We("out"),We()),Fe.SteppedEase=Fe.steps=J.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*ie(0,.99999999,t)|0)+i)*r}}},C.ease=Fe["quad.out"],xt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return _t+=t+","+t+"Params,"});var He=function(t,e){this.id=A++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:yt,this.set=e?e.getSetter:lr},Ue=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,Kt(this,+t.duration,1,1),this.data=t.data,l&&(this._ctx=l,l.data.push(this)),m||De.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,Kt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ze(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ht(this,t),!r._dp||r.parent||Ut(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)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===E||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Et(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+jt(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)+jt(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?Xt(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?qt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ie(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Wt(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):(ze(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==E&&(this._tTime-=E)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=wt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Vt(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(L(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?qt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=ut);var e=u;return u=t,Ot(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),u=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,Jt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Jt(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(ee(this,t),L(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,L(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)-E))},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,r=e._prom;return new Promise(function(n){var i=F(t)?t:Mt,s=function(){var t=e.then;e.then=null,r&&r(),F(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),n(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?s():e._prom=s})},e.kill=function(){be(this)},t}();At(Ue.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 Ve=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=L(e.sortChildren),c&&Vt(e.parent||c,s(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Gt(s(n),e.scrollTrigger),n}a(e,t);var r=e.prototype;return r.to=function(t,e,r){return re(0,arguments,this),this},r.from=function(t,e,r){return re(1,arguments,this),this},r.fromTo=function(t,e,r,n){return re(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,zt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ir(t,e,ee(this,r),1),this},r.call=function(t,e,r){return Vt(this,ir.delayedCall(0,t,e),r)},r.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 ir(t,r,ee(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,zt(r).immediateRender=L(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},r.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,zt(n).immediateRender=L(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,a,o,l,f,h,p,d,g,_,m=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,x=t<=0?0:wt(t),b=this._zTime<0!=t<0&&(this._initted||!y);if(this!==c&&x>v&&t>=0&&(x=v),x!==this._tTime||r||b){if(m!==this._time&&y&&(x+=this._time-m,t+=this._time-m),n=x,p=this._start,l=!(h=this._ts),b&&(y||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(g=this._yoyo,o=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=wt(x%o),x===v?(a=this._repeat,n=y):((a=~~(d=wt(x/o)))&&a===d&&(n=y,a--),n>y&&(n=y)),d=Xt(this._tTime,o),!m&&this._tTime&&d!==a&&this._tTime-d*o-this._dur<=0&&(d=a),g&&1&a&&(n=y-n,_=1),a!==d&&!this._lock){var w=g&&1&d,T=w===(g&&1&a);if(a<d&&(w=!w),m=w?0:x%y?y:x,this._lock=1,this.render(m||(_?0:wt(a*o)),e,!y)._lock=0,this._tTime=x,!e&&this.parent&&xe(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(this.invalidate()._lock=1,d=a),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,T&&(this._lock=2,m=w?y:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!l)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(f=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,wt(m),wt(n)),f&&(x-=n-(n=f._start))),this._tTime=x,this._time=n,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&x&&y&&!e&&!d&&(xe(this,"onStart"),this._tTime!==x))return this;if(n>=m&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!l){f=0,s&&(x+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var k=t<0?t:n;i;){if(s=i._prev,(i._act||k<=i._end)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(k-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(k-i._start)*i._ts,e,r||u&&Ot(i)),n!==this._time||!this._ts&&!l){f=0,s&&(x+=this._zTime=k?-1e-8:E);break}}i=s}}if(f&&!e&&(this.pause(),f.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=p,Wt(this),this.render(t,e,r);this._onUpdate&&!e&&xe(this,"onUpdate",!0),(x===v&&this._tTime>=this.totalDuration()||!x&&m)&&(p!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!y)&&(x===v&&this._ts>0||!x&&this._ts<0)&&Nt(this,1),e||t<0&&!m||!x&&!m&&v||(xe(this,x===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<v&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(I(e)||(e=ee(this,e,t)),!(t instanceof Ue)){if(q(t))return t.forEach(function(t){return r.add(t,e)}),this;if(z(t))return this.addLabel(t,e);if(!F(t))return this;t=ir.delayedCall(0,t)}return this!==t?Vt(this,t,e):this},r.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 ir?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return z(t)?this.removeLabel(t):F(t)?this.killTweensOf(t):(t.parent===this&&It(this,t),t===this._recent&&(this._recent=this._last),Bt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wt(De.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=ee(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=ir.delayedCall(0,e||st,r);return n.data="isPause",this._hasPause=1,Vt(this,n,ee(this,t))},r.removePause=function(t){var e=this._first;for(t=ee(this,t);e;)e._start===t&&"isPause"===e.data&&Nt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Ge!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=le(t),s=this._first,a=I(e);s;)s instanceof ir?kt(s._targets,i)&&(a?(!Ge||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},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=ee(n,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,l=s.immediateRender,c=ir.to(n,At({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())||E,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&&Kt(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,At({startAt:{time:ee(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),ye(this,ee(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),ye(this,ee(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+E)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=wt(t);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 Bt(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.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={}),Bt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=O;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Vt(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=wt(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>i&&a._ts&&(i=a._end),a=e;Kt(s,s===c&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(c._ts&&(Et(c,qt(t,c)),g=De.frame),De.frame>=dt){dt+=k.autoSleep||120;var e=c._first;if((!e||!e._ts)&&k.autoSleep&&De._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||De.sleep()}}},e}(Ue);At(Ve.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ge,$e,Qe=function(t,e,r,n,i,s,a){var o,u,l,c,f,h,p,d,g=new vr(this._pt,t,e,0,1,hr,null,i),_=0,m=0;for(g.b=r,g.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=me(n)),s&&(s(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match($)||[];o=$.exec(n);)c=o[0],f=n.substring(_,o.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[m++]&&(h=parseFloat(u[m-1])||0,g._pt={_next:g._pt,p:f||1===m?f:",",s:h,c:"="===c.charAt(1)?Tt(h,c)-h:parseFloat(c)-h,m:l&&l<4?Math.round:0},_=$.lastIndex);return g.c=_<n.length?n.substring(_,n.length):"",g.fp=a,(Q.test(n)||p)&&(g.e=0),this._pt=g,g},Ze=function(t,e,r,n,i,s,a,o,u,l){F(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:F(f)?u?t[e.indexOf("set")||!F(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,p=F(f)?u?or:ar:sr;if(z(n)&&(~n.indexOf("random(")&&(n=me(n)),"="===n.charAt(1)&&((c=Tt(h,n)+(se(h)||0))||0===c)&&(n=c)),!l||h!==n||$e)return isNaN(h*n)||""===n?(!f&&!(e in t)&&rt(e,n),Qe.call(this,t,e,h,n,p,o||k.stringFilter,u)):(c=new vr(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?fr:cr,0,p),u&&(c.fp=u),a&&c.modifier(a,this,t),this._pt=c)},Ke=function(t,e,r,n,i,s){var a,o,u,l;if(ht[t]&&!1!==(a=new ht[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(F(t)&&(t=er(t,i,e,r,n)),!B(t)||t.style&&t.nodeType||q(t)||X(t))return z(t)?er(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=er(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new vr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==_))for(u=r._ptLookup[r._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=o;return a},Je=function t(e,r,n){var i,s,a,l,f,h,p,d,g,_,m,v,y,x=e.vars,b=x.ease,w=x.startAt,T=x.immediateRender,k=x.lazy,S=x.onUpdate,M=x.runBackwards,A=x.yoyoEase,P=x.keyframes,R=x.autoRevert,D=e._dur,z=e._startAt,F=e._targets,I=e.parent,N=I&&"nested"===I.data?I.vars.targets:F,B="auto"===e._overwrite&&!o,Y=e.timeline,j=x.easeReverse||A;if(Y&&(!P||!b)&&(b="none"),e._ease=Ye(b,C.ease),e._rEase=j&&(Ye(j)||e._ease),e._from=!Y&&!!x.runBackwards,e._from&&(e.ratio=1),!Y||P&&!x.stagger){if(v=(d=F[0]?vt(F[0]).harness:0)&&x[d.prop],i=Dt(x,lt),z&&(z._zTime<0&&z.progress(1),r<0&&M&&T&&!R?z.render(-1,!0):z.revert(M&&D?ot:at),z._lazy=0),w){if(Nt(e._startAt=ir.set(F,At({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!z&&L(k),startAt:null,delay:0,onUpdate:S&&function(){return xe(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(u||!T&&!R)&&e._startAt.revert(ot),T&&D&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(M&&D&&!z)if(r&&(T=!1),a=At({overwrite:!1,data:"isFromStart",lazy:T&&!z&&L(k),immediateRender:T,stagger:0,parent:I},i),v&&(a[d.prop]=v),Nt(e._startAt=ir.set(F,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(u?e._startAt.revert(ot):e._startAt.render(-1,!0)),e._zTime=r,T){if(!r)return}else t(e._startAt,E,E);for(e._pt=e._ptCache=0,k=D&&L(k)||k&&!D,s=0;s<F.length;s++){if(p=(f=F[s])._gsap||mt(F)[s]._gsap,e._ptLookup[s]=_={},ft[p.id]&&ct.length&&Ct(),m=N===F?s:N.indexOf(f),d&&!1!==(g=new d).init(f,v||i,e,m,N)&&(e._pt=l=new vr(e._pt,f,g.name,0,1,g.render,g,0,g.priority),g._props.forEach(function(t){_[t]=l}),g.priority&&(h=1)),!d||v)for(a in i)ht[a]&&(g=Ke(a,i,e,m,f,N))?g.priority&&(h=1):_[a]=l=Ze.call(e,f,a,"get",i[a],m,N,0,x.stringFilter);e._op&&e._op[s]&&e.kill(f,e._op[s]),B&&e._pt&&(Ge=e,c.killTweensOf(f,_,e.globalTime(r)),y=!e.parent,Ge=0),e._pt&&k&&(ft[p.id]=1)}h&&mr(e),e._onInit&&e._onInit(e)}e._onUpdate=S,e._initted=(!e._op||e._pt)&&!y,P&&r<=0&&Y.render(O,!0,!0)},tr=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(q(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})},er=function(t,e,r,n,i){return F(t)?t.call(e,r,n,i):z(t)&&~t.indexOf("random(")?me(t):t},rr=_t+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",nr={};xt(rr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return nr[t]=1});var ir=function(t){function e(e,r,n,i){var a;"number"==typeof r&&(n.duration=r,r=n,n=null);var u,l,f,h,p,d,g,_,m=(a=t.call(this,i?r:zt(r))||this).vars,v=m.duration,y=m.delay,x=m.immediateRender,b=m.stagger,w=m.overwrite,T=m.keyframes,C=m.defaults,O=m.scrollTrigger,E=r.parent||c,S=(q(e)||X(e)?I(e[0]):"length"in r)?[e]:le(e);if(a._targets=S.length?mt(S):nt("GSAP target "+e+" not found. https://gsap.com",!k.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=w,T||b||j(v)||j(y)){var M=(r=a.vars).easeReverse||r.yoyoEase;if((u=a.timeline=new Ve({data:"nested",defaults:C||{},targets:E&&"nested"===E.data?E.vars.targets:S})).kill(),u.parent=u._dp=s(a),u._start=0,b||j(v)||j(y)){if(h=S.length,g=b&&he(b),B(b))for(p in b)~rr.indexOf(p)&&(_||(_={}),_[p]=b[p]);for(l=0;l<h;l++)(f=Dt(r,nr)).stagger=0,M&&(f.easeReverse=M),_&&Pt(f,_),d=S[l],f.duration=+er(v,s(a),l,d,S),f.delay=(+er(y,s(a),l,d,S)||0)-a._delay,!b&&1===h&&f.delay&&(a._delay=y=f.delay,a._start+=y,f.delay=0),u.to(d,f,g?g(l,d,S):0),u._ease=Fe.none;u.duration()?v=y=0:a.timeline=0}else if(T){zt(At(u.vars.defaults,{ease:"none"})),u._ease=Ye(T.ease||r.ease||"none");var A,P,R,D=0;if(q(T))T.forEach(function(t){return u.to(S,t,">")}),u.duration();else{for(p in f={},T)"ease"===p||"easeEach"===p||tr(p,T[p],f,T.easeEach);for(p in f)for(A=f[p].sort(function(t,e){return t.t-e.t}),D=0,l=0;l<A.length;l++)(R={ease:(P=A[l]).e,duration:(P.t-(l?A[l-1].t:0))/100*v})[p]=P.v,u.to(S,R,D),D+=R.duration;u.duration()<v&&u.to({},{duration:v-u.duration()})}}v||a.duration(v=u.duration())}else a.timeline=0;return!0!==w||o||(Ge=s(a),c.killTweensOf(S),Ge=0),Vt(E,s(a),n),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(x||!v&&!T&&a._start===wt(E._time)&&L(x)&&Yt(s(a))&&"nested"!==E.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-y)||0)),O&&Gt(s(a),O),a}a(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,l,c,f,h=this._time,p=this._tDur,d=this._dur,g=t<0,_=t>p-E&&!g?p:t<E?0:t;if(d){if(_!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(n=_,f=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*a+t,e,r);if(n=wt(_%a),_===p?(s=this._repeat,n=d):(s=~~(o=wt(_/a)))&&s===o?(n=d,s--):n>d&&(n=d),(l=this._yoyo&&1&s)&&(n=d-n),o=Xt(this._tTime,a),n===h&&!r&&this._initted&&s===o)return this._tTime=_,this;s!==o&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(wt(a*s),!0).invalidate()._lock=0)}if(!this._initted){if($t(this,g?t:n,r,e,_))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==o))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._rEase){var m=n<h;if(m!==this._inv){var v=m?h:d-h;this._inv=m,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=v?(m?-1:1)/v:0,this._invScale=m?-this.ratio:1-this.ratio,this._invEase=m?this._rEase:this._ease}this.ratio=c=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=c=this._ease(n/d);if(this._from&&(this.ratio=c=1-c),this._tTime=_,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&_&&!e&&!o&&(xe(this,"onStart"),this._tTime!==_))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;f&&f.render(t<0?t:f._dur*f._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Lt(this,t,0,r),xe(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&xe(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(g&&!this._onUpdate&&Lt(this,t,0,!0),(t||!d)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Nt(this,1),e||g&&!h||!(_||h||l)||(xe(this,_===p?"onComplete":"onReverseComplete",!0),this._prom&&!(_<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&Qt(t)&&(t._initted||!Zt(t))||(t._ts<0||t._dp._ts<0)&&!Zt(t))?0:1,c=t._rDelay,f=0;if(c&&t._repeat&&(f=ie(0,t._tDur,e),s=Xt(f,c),t._yoyo&&1&s&&(l=1-l),s!==Xt(t._tTime,c)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||u||n||t._zTime===E||!e&&t._zTime){if(!t._initted&&$t(t,e,n,r,f))return;for(a=t._zTime,t._zTime=e||(r?E:0),r||(r=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=f,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Lt(t,e,0,!0),t._onUpdate&&!r&&xe(t,"onUpdate"),f&&t._repeat&&!r&&t.parent&&xe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Nt(t,1),r||u||(xe(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){m||De.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Je(this,s),function(t,e,r,n,i,s,a,o){var u,l,c,f,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,f=t._targets.length;f--;){if((u=c[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return $e=1,t.vars[e]="+=0",Je(t,a),$e=0,o?nt(e+" not eligible for reset. Try splitting into individual properties"):1;h.push(u)}for(f=h.length;f--;)(u=(l=h[f])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=bt(r)+se(l.e)),l.b&&(l.b=u.s+se(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Ht(this,0),this.parent||Ft(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?be(this):this.scrollTrigger&&this.scrollTrigger.kill(!!u),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ge&&!0!==Ge.vars.overwrite)._first||be(this),this.parent&&r!==this.timeline.totalDuration()&&Kt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,l,c,f=this._targets,h=t?le(t):f,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}(f,h))return"all"===e&&(this._pt=0),be(this);for(n=this._op=this._op||[],"all"!==e&&(z(e)&&(o={},xt(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,n,i,s,a=t[0]?vt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Pt({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(f,e)),c=f.length;c--;)if(~h.indexOf(f[c]))for(o in i=p[c],"all"===e?(n[c]=e,a=i,s={}):(s=n[c]=n[c]||{},a=e),a)(l=i&&i[o])&&("kill"in l.d&&!0!==l.d.kill(o)||It(this,l,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&d&&be(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return re(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return re(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return c.killTweensOf(t,e,r)},e}(Ue);At(ir.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),xt("staggerTo,staggerFrom,staggerFromTo",function(t){ir[t]=function(){var e=new Ve,r=ae.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var sr=function(t,e,r){return t[e]=r},ar=function(t,e,r){return t[e](r)},or=function(t,e,r,n){return t[e](n.fp,r)},ur=function(t,e,r){return t.setAttribute(e,r)},lr=function(t,e){return F(t[e])?ar:N(t[e])&&t.setAttribute?ur:sr},cr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},fr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},hr=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)},pr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},dr=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},gr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?It(this,n,"_pt"):n.dep||(e=1),n=r;return!e},_r=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},mr=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},vr=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||cr,this.d=a||this,this.set=o||sr,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=_r,this.m=t,this.mt=r,this.tween=e},t}();xt(_t+"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,easeReverse",function(t){return lt[t]=1}),J.TweenMax=J.TweenLite=ir,J.TimelineLite=J.TimelineMax=Ve,c=new Ve({sortChildren:!1,defaults:C,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),k.stringFilter=Re;var yr=[],xr={},br=[],wr=0,Tr=0,kr=function(t){return(xr[t]||br).map(function(t){return t()})},Cr=function(){var t=Date.now(),e=[];t-wr>2&&(kr("matchMediaInit"),yr.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=f.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),kr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),wr=t,kr("matchMedia"))},Or=function(){function t(t,e){this.selector=e&&ce(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Tr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){F(t)&&(r=e,e=t,t=F);var n=this,i=function(){var t,i=l,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=ce(r)),l=n,t=e.apply(n,arguments),F(t)&&n._r.push(t),l=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===F?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=l;l=null,t(this),l=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof ir&&!(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 Ve?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof ir)&&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=yr.length;n--;)yr[n].id===this.id&&yr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Er=function(){function t(t){this.contexts=[],this.scope=t,l&&l.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){B(t)||(t={matches:t});var n,i,s,a=new Or(0,r||this.scope),o=a.conditions={};for(i in l&&!a.selector&&(a.selector=l.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=f.matchMedia(t[i]))&&(yr.indexOf(a)<0&&yr.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(Cr):n.addEventListener("change",Cr));return s&&e(a,function(t){return a.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}(),Sr={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 Te(t)})},timeline:function(t){return new Ve(t)},getTweensOf:function(t,e){return c.getTweensOf(t,e)},getProperty:function(t,e,r,n){z(t)&&(t=le(t)[0]);var i=vt(t||{}).get,s=r?Mt:St;return"native"===r&&(r=""),t?e?s((ht[e]&&ht[e].get||i)(t,e,r,n)):function(e,r,n){return s((ht[e]&&ht[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=le(t)).length>1){var n=t.map(function(t){return Pr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=ht[e],a=vt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;_._pt=0,n.init(t,r?e+r:e,_,0,[t]),n.render(1,n),_._pt&&pr(1,_)}: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=Pr.to(t,At(((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 c.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ye(t.ease,C.ease)),Rt(C,t||{})},config:function(t){return Rt(k,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&&!ht[t]&&!J[t]&&nt(e+" effect requires "+t+" plugin.")}),pt[e]=function(t,e,n){return r(le(t),At(e||{},i),n)},s&&(Ve.prototype[e]=function(t,r,n){return this.add(pt[e](t,B(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Fe[t]=Ye(e)},parseEase:function(t,e){return arguments.length?Ye(t,e):Fe},getById:function(t){return c.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Ve(t);for(i.smoothChildTiming=L(t.smoothChildTiming),c.remove(i),i._dp=0,i._time=i._tTime=c._time,r=c._first;r;)n=r._next,!e&&!r._dur&&r instanceof ir&&r.vars.onComplete===r._targets[0]||Vt(i,r,r._start-r._delay),r=n;return Vt(c,i,0),i},context:function(t,e){return t?new Or(t,e):l},matchMedia:function(t){return new Er(t)},matchMediaRefresh:function(){return yr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||Cr()},addEventListener:function(t,e){var r=xr[t]||(xr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=xr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return q(e)?_e(e,t(0,e.length),r):ne(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return q(e)?_e(e,t(0,e.length-1),r):ne(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:he,random:ge,snap:de,normalize:function(t,e,r){return ve(t,e,0,1,r)},getUnit:se,clamp:function(t,e,r){return ne(r,function(r){return ie(t,e,r)})},splitColor:Ee,toArray:le,selector:ce,mapRange:ve,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||se(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,f=z(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(q(e)&&!q(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=Pt(q(e)?[]:{},e));if(!u){for(a in r)Ze.call(h,e,a,"get",r[a]);s=function(t){return pr(t,h)||(f?e.p:e)}}}return ne(n,s)},shuffle:fe},install:et,effects:pt,ticker:De,updateRoot:Ve.updateRoot,plugins:ht,globalTimeline:c,core:{PropTween:vr,globals:it,Tween:ir,Timeline:Ve,Animation:Ue,getCache:vt,_removeLinkedListItem:It,reverting:function(){return u},context:function(t){return t&&l&&(l.data.push(t),t._ctx=l),l},suppressOverwrites:function(t){return o=t}}};xt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Sr[t]=ir[t]}),De.add(Ve.updateRoot),_=Sr.to({},{duration:0});var Mr=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(z(r)&&(n={},xt(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=Mr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Pr=Sr.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;)u?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",pe),Ar("modifiers"),Ar("snap",de))||Sr;ir.version=Ve.version=Pr.version="3.15.0",d=1,Y()&&ze(),Fe.Power0,Fe.Power1,Fe.Power2,Fe.Power3,Fe.Power4,Fe.Linear,Fe.Quad,Fe.Cubic,Fe.Quart,Fe.Quint,Fe.Strong,Fe.Elastic,Fe.Back,Fe.SteppedEase,Fe.Bounce,Fe.Sine,Fe.Expo,Fe.Circ;
|
|
9
|
+
*/var o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w,T,O={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},k={duration:.5,overwrite:!1,delay:0},C=1e8,E=1e-8,S=2*Math.PI,M=S/4,A=0,P=Math.sqrt,R=Math.cos,D=Math.sin,z=function(t){return"string"==typeof t},F=function(t){return"function"==typeof t},I=function(t){return"number"==typeof t},N=function(t){return void 0===t},B=function(t){return"object"==typeof t},L=function(t){return!1!==t},j=function(){return"undefined"!=typeof window},Y=function(t){return F(t)||z(t)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},q=Array.isArray,W=/random\([^)]+\)/g,H=/,\s*/g,U=/(?:-?\.?\d|\.)+/gi,V=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,G=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Z=/[+-]=-?[.\d]+/,Q=/[^,'"\[\]\s]+/gi,K=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,J={},tt={},et=function(t){return(tt=Pt(t,J))&&Pr},rt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},nt=function(t,e){return!e&&console.warn(t)},it=function(t,e){return t&&(J[t]=e)&&tt&&(tt[t]=e)||J},st=function(){return 0},at={suppressEvents:!0,isStart:!0,kill:!1},ot={suppressEvents:!0,kill:!1},lt={suppressEvents:!0},ut={},ct=[],ft={},ht={},dt={},pt=30,gt=[],mt="",_t=function(t){var e,r,n=t[0];if(B(n)||F(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(n););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new He(t[r],e)))||t.splice(r,1);return t},vt=function(t){return t._gsap||_t(ue(t))[0]._gsap},yt=function(t,e,r){return(r=t[e])&&F(r)?t[e]():N(r)&&t.getAttribute&&t.getAttribute(e)||r},xt=function(t,e){return(t=t.split(",")).forEach(e)||t},bt=function(t){return Math.round(1e5*t)/1e5||0},wt=function(t){return Math.round(1e7*t)/1e7||0},Tt=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},Ot=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},kt=function(){var t,e,r=ct.length,n=ct.slice(0);for(ft={},ct.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ct=function(t){return!!(t._initted||t._startAt||t.add)},Et=function(t,e,r,n){ct.length&&!l&&kt(),t.render(e,r,n||!!(l&&e<0&&Ct(t))),ct.length&&!l&&kt()},St=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Q).length<2?e:z(t)?t.trim():t},Mt=function(t){return t},At=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Pt=function(t,e){for(var r in e)t[r]=e[r];return t},Rt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=B(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Dt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},zt=function(t){var e,r=t.parent||c,n=t.keyframes?(e=q(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):At;if(L(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ft=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");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},It=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},Nt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Bt=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},Lt=function(t,e,r,n){return t._startAt&&(l?t._startAt.revert(ot):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},jt=function t(e){return!e||e._ts&&t(e.parent)},Yt=function(t){return t._repeat?Xt(t._tTime,t=t.duration()+t._rDelay)*t:0},Xt=function(t,e){var r=Math.floor(t=wt(t/e));return t&&r===t?r-1:r},qt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Wt=function(t){return t._end=wt(t._start+(t._tDur/Math.abs(t._ts||t._rts||E)||0))},Ht=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=wt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Wt(t),r._dirty||Bt(r,t)),t},Ut=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=qt(t.rawTime(),e),(!e._dur||ie(0,e.totalDuration(),r)-e._tTime>E)&&e.render(r,!0)),Bt(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}},Vt=function(t,e,r,n){return e.parent&&Nt(e),e._start=wt((I(r)?r:r||t!==c?ee(t,r,e):t._time)+e._delay),e._end=wt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ft(t,e,"_first","_last",t._sort?"_start":0),Qt(e)||(t._recent=e),n||Ut(t,e),t._ts<0&&Ht(t,t._tTime),t},Gt=function(t,e){return(J.ScrollTrigger||rt("scrollTrigger",e))&&J.ScrollTrigger.create(e,t)},$t=function(t,e,r,n,i){return Je(t,e,i),t._initted?!r&&t._pt&&!l&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&g!==De.frame?(ct.push(t),t._lazy=[i,n],1):void 0:1},Zt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Qt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Kt=function(t,e,r,n){var i=t._repeat,s=wt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:wt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&Ht(t,t._tTime=t._tDur*a),t.parent&&Wt(t),r||Bt(t.parent,t),t},Jt=function(t){return t instanceof Ve?Bt(t):Kt(t,t._dur)},te={_start:0,endTime:st,totalDuration:st},ee=function t(e,r,n){var i,s,a,o=e.labels,l=e._recent||te,u=e.duration()>=C?l.endTime(!1):e._dur;return z(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?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?l:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=u),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*(q(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},re=function(t,e,r){var n,i,s=I(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=L(i.vars.inherit)&&i.parent;o.immediateRender=L(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new ir(e[0],o,e[a+1])},ne=function(t,e){return t||0===t?e(t):e},ie=function(t,e,r){return r<t?t:r>e?e:r},se=function(t,e){return z(t)&&(e=K.exec(t))?e[1]:""},ae=[].slice,oe=function(t,e){return t&&B(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&B(t[0]))&&!t.nodeType&&t!==f},le=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return z(t)&&!e||oe(t,1)?(n=r).push.apply(n,ue(t)):r.push(t)})||r},ue=function(t,e,r){return u&&!e&&u.selector?u.selector(t):!z(t)||r||!h&&ze()?q(t)?le(t,r):oe(t)?ae.call(t,0):t?[t]:[]:ae.call((e||d).querySelectorAll(t),0)},ce=function(t){return t=ue(t)[0]||nt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return ue(e,r.querySelectorAll?r:r===t?nt("Invalid scope")||d.createElement("div"):t)}},fe=function(t){return t.sort(function(){return.5-Math.random()})},he=function(t){if(F(t))return t;var e=B(t)?t:{each:t},r=je(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,l=e.axis,u=n,c=n;return z(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(u=n[0],c=n[1]),function(t,a,f){var h,d,p,g,m,_,v,y,x,b=(f||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,C])[1])){for(v=-1e8;v<(v=f[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],h=o?Math.min(x,b)*u-.5:n%x,d=x===C?0:o?b*c/x-.5:n/x|0,v=0,y=C,_=0;_<b;_++)p=_%x-h,g=d-(_/x|0),w[_]=m=l?Math.abs("y"===l?g:p):P(p*p+g*g),m>v&&(v=m),m<y&&(y=m);"random"===n&&fe(w),w.max=v-y,w.min=y,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:l?"y"===l?b/x:x:Math.max(x,b/x))||0)*("edges"===n?-1:1),w.b=b<0?i-b:i,w.u=se(e.amount||e.each)||0,r=r&&b<0?Le(r):r}return b=(w[t]-w.min)/w.max||0,wt(w.b+(r?r(b):b)*w.v)+w.u}},de=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=wt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(I(r)?0:se(r))}},pe=function(t,e){var r,n,i=q(t);return!i&&B(t)&&(r=i=t.radius||C,t.values?(t=ue(t.values),(n=!I(t[0]))&&(r*=r)):t=de(t.increment)),ne(e,i?F(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),l=C,u=0,c=t.length;c--;)(i=n?(i=t[c].x-a)*i+(s=t[c].y-o)*s:Math.abs(t[c]-a))<l&&(l=i,u=c);return u=!r||l<=r?t[u]:e,n||u===e||I(e)?u:u+se(e)}:de(t))},ge=function(t,e,r,n){return ne(q(t)?!e:!0===r?!!(r=0):!n,function(){return q(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})},me=function(t,e,r){return ne(r,function(r){return t[~~e(r)]})},_e=function(t){return t.replace(W,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(H);return ge(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},ve=function(t,e,r,n,i){var s=e-t,a=n-r;return ne(i,function(e){return r+((e-t)/s*a||0)})},ye=function(t,e,r){var n,i,s,a=t.labels,o=C;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},xe=function(t,e,r){var n,i,s,a=t.vars,o=a[e],l=u,c=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&ct.length&&kt(),c&&(u=c),s=n?o.apply(i,n):o.call(i),u=l,s},be=function(t){return Nt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!l),t.progress()<1&&xe(t,"onInterrupt"),t},we=[],Te=function(t){if(t)if(t=!t.name&&t.default||t,j()||t.headless){var e=t.name,r=F(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:st,render:dr,add:Qe,kill:gr,modifier:pr,rawVars:0},s={targetTest:0,get:0,getSetter:ur,aliases:{},register:0};if(ze(),t!==n){if(ht[e])return;At(n,At(Dt(t,i),s)),Pt(n.prototype,Pt(i,Dt(t,s))),ht[n.prop=e]=n,t.targetTest&&(gt.push(n),ut[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}it(e,n),t.register&&t.register(Pr,n,vr)}else we.push(t)},Oe=255,ke={aqua:[0,Oe,Oe],lime:[0,Oe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Oe],navy:[0,0,128],white:[Oe,Oe,Oe],olive:[128,128,0],yellow:[Oe,Oe,0],orange:[Oe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Oe,0,0],pink:[Oe,192,203],cyan:[0,Oe,Oe],transparent:[Oe,Oe,Oe,0]},Ce=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)*Oe+.5|0},Ee=function(t,e,r){var n,i,s,a,o,l,u,c,f,h,d=t?I(t)?[t>>16,t>>8&Oe,t&Oe]:0:ke.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ke[t])d=ke[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&Oe,d&Oe,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Oe,t&Oe]}else if("hsl"===t.substr(0,3))if(d=h=t.match(U),e){if(~t.indexOf("="))return d=t.match(V),r&&d.length<4&&(d[3]=1),d}else a=+d[0]%360/360,o=+d[1]/100,n=2*(l=+d[2]/100)-(i=l<=.5?l*(o+1):l+o-l*o),d.length>3&&(d[3]*=1),d[0]=Ce(a+1/3,n,i),d[1]=Ce(a,n,i),d[2]=Ce(a-1/3,n,i);else d=t.match(U)||ke.transparent;d=d.map(Number)}return e&&!h&&(n=d[0]/Oe,i=d[1]/Oe,s=d[2]/Oe,l=((u=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,u===c?a=o=0:(f=u-c,o=l>.5?f/(2-u-c):f/(u+c),a=u===n?(i-s)/f+(i<s?6:0):u===i?(s-n)/f+2:(n-i)/f+4,a*=60),d[0]=~~(a+.5),d[1]=~~(100*o+.5),d[2]=~~(100*l+.5)),r&&d.length<4&&(d[3]=1),d},Se=function(t){var e=[],r=[],n=-1;return t.split(Ae).forEach(function(t){var i=t.match(G)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Me=function(t,e,r){var n,i,s,a,o="",l=(t+o).match(Ae),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=Ee(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Se(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ae,"1").split(G)).length-1;c<a;c++)o+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(s.length?s:l.length?l:r).shift());if(!i)for(a=(i=t.split(Ae)).length-1;c<a;c++)o+=i[c]+l[c];return o+i[a]},Ae=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ke)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Pe=/hsl[a]?\(/,Re=function(t){var e,r=t.join(" ");if(Ae.lastIndex=0,Ae.test(r))return e=Pe.test(r),t[1]=Me(t[1],e),t[0]=Me(t[0],e,Se(t[1])),!0},De=function(){var t,e,r,n,i,s,a=Date.now,o=500,l=33,u=a(),c=u,g=1e3/240,m=g,v=[],y=function r(f){var h,d,p,_,y=a()-c,x=!0===f;if((y>o||y<0)&&(u+=y-l),((h=(p=(c+=y)-u)-m)>0||x)&&(_=++n.frame,i=p-1e3*n.time,n.time=p/=1e3,m+=h+(h>=g?4:g-h),d=1),x||(t=e(r)),d)for(s=0;s<v.length;s++)v[s](p,i,_,f)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){p&&(!h&&j()&&(f=h=window,d=f.document||{},J.gsap=Pr,(f.gsapVersions||(f.gsapVersions=[])).push(Pr.version),et(tt||f.GreenSockGlobals||!f.gsap&&f||{}),we.forEach(Te)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,m-1e3*n.time+1|0)},_=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),_=0,e=st},lagSmoothing:function(t,e){o=t||1/0,l=Math.min(e||33,o)},fps:function(t){g=1e3/(t||240),m=1e3*n.time+g},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),ze(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),ze=function(){return!_&&De.wake()},Fe={},Ie=/^[\d.\-M][\d.\-,\s]/,Ne=/["']/g,Be=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,l=s.length;o<l;o++)r=s[o],e=o!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(Ne,"").trim():+n,a=r.substr(e+1).trim();return i},Le=function(t){return function(e){return 1-t(1-e)}},je=function(t,e){return t&&(F(t)?t:Fe[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Fe[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Be(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(St)):Fe._CE&&Ie.test(t)?Fe._CE("",t):a}(t))||e},Ye=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 xt(t,function(t){for(var e in Fe[t]=J[t]=s,Fe[i=t.toLowerCase()]=r,s)Fe[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Fe[t+"."+e]=s[e]}),s},Xe=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},qe=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/S*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*D((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Xe(o);return s=S/s,l.config=function(r,n){return t(e,r,n)},l},We=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)}:Xe(n);return i.config=function(r){return t(e,r)},i};xt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Ye(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})}),Fe.Linear.easeNone=Fe.none=Fe.Linear.easeIn,Ye("Elastic",qe("in"),qe("out"),qe()),v=7.5625,b=2*(x=1/(y=2.75)),w=2.5*x,Ye("Bounce",function(t){return 1-T(1-t)},T=function(t){return t<x?v*t*t:t<b?v*Math.pow(t-1.5/y,2)+.75:t<w?v*(t-=2.25/y)*t+.9375:v*Math.pow(t-2.625/y,2)+.984375}),Ye("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Ye("Circ",function(t){return-(P(1-t*t)-1)}),Ye("Sine",function(t){return 1===t?1:1-R(t*M)}),Ye("Back",We("in"),We("out"),We()),Fe.SteppedEase=Fe.steps=J.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*ie(0,.99999999,t)|0)+i)*r}}},k.ease=Fe["quad.out"],xt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return mt+=t+","+t+"Params,"});var He=function(t,e){this.id=A++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:yt,this.set=e?e.getSetter:ur},Ue=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,Kt(this,+t.duration,1,1),this.data=t.data,u&&(this._ctx=u,u.data.push(this)),_||De.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,Kt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ze(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ht(this,t),!r._dp||r.parent||Ut(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)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===E||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Et(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Yt(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)+Yt(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?Xt(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?qt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ie(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Wt(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):(ze(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==E&&(this._tTime-=E)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=wt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Vt(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(L(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?qt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=lt);var e=l;return l=t,Ct(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),l=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,Jt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Jt(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(ee(this,t),L(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,L(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)-E))},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,r=e._prom;return new Promise(function(n){var i=F(t)?t:Mt,s=function(){var t=e.then;e.then=null,r&&r(),F(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),n(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?s():e._prom=s})},e.kill=function(){be(this)},t}();At(Ue.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 Ve=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=L(e.sortChildren),c&&Vt(e.parent||c,s(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Gt(s(n),e.scrollTrigger),n}a(e,t);var r=e.prototype;return r.to=function(t,e,r){return re(0,arguments,this),this},r.from=function(t,e,r){return re(1,arguments,this),this},r.fromTo=function(t,e,r,n){return re(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,zt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ir(t,e,ee(this,r),1),this},r.call=function(t,e,r){return Vt(this,ir.delayedCall(0,t,e),r)},r.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 ir(t,r,ee(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,zt(r).immediateRender=L(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},r.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,zt(n).immediateRender=L(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,a,o,u,f,h,d,p,g,m,_=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,x=t<=0?0:wt(t),b=this._zTime<0!=t<0&&(this._initted||!y);if(this!==c&&x>v&&t>=0&&(x=v),x!==this._tTime||r||b){if(_!==this._time&&y&&(x+=this._time-_,t+=this._time-_),n=x,d=this._start,u=!(h=this._ts),b&&(y||(_=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(g=this._yoyo,o=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=wt(x%o),x===v?(a=this._repeat,n=y):((a=~~(p=wt(x/o)))&&a===p&&(n=y,a--),n>y&&(n=y)),p=Xt(this._tTime,o),!_&&this._tTime&&p!==a&&this._tTime-p*o-this._dur<=0&&(p=a),g&&1&a&&(n=y-n,m=1),a!==p&&!this._lock){var w=g&&1&p,T=w===(g&&1&a);if(a<p&&(w=!w),_=w?0:x%y?y:x,this._lock=1,this.render(_||(m?0:wt(a*o)),e,!y)._lock=0,this._tTime=x,!e&&this.parent&&xe(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1,p=a),_&&_!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,T&&(this._lock=2,_=w?y:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!u)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(f=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,wt(_),wt(n)),f&&(x-=n-(n=f._start))),this._tTime=x,this._time=n,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&x&&y&&!e&&!p&&(xe(this,"onStart"),this._tTime!==x))return this;if(n>=_&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!u){f=0,s&&(x+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var O=t<0?t:n;i;){if(s=i._prev,(i._act||O<=i._end)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(O-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(O-i._start)*i._ts,e,r||l&&Ct(i)),n!==this._time||!this._ts&&!u){f=0,s&&(x+=this._zTime=O?-1e-8:E);break}}i=s}}if(f&&!e&&(this.pause(),f.render(n>=_?0:-1e-8)._zTime=n>=_?1:-1,this._ts))return this._start=d,Wt(this),this.render(t,e,r);this._onUpdate&&!e&&xe(this,"onUpdate",!0),(x===v&&this._tTime>=this.totalDuration()||!x&&_)&&(d!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!y)&&(x===v&&this._ts>0||!x&&this._ts<0)&&Nt(this,1),e||t<0&&!_||!x&&!_&&v||(xe(this,x===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<v&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(I(e)||(e=ee(this,e,t)),!(t instanceof Ue)){if(q(t))return t.forEach(function(t){return r.add(t,e)}),this;if(z(t))return this.addLabel(t,e);if(!F(t))return this;t=ir.delayedCall(0,t)}return this!==t?Vt(this,t,e):this},r.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 ir?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return z(t)?this.removeLabel(t):F(t)?this.killTweensOf(t):(t.parent===this&&It(this,t),t===this._recent&&(this._recent=this._last),Bt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wt(De.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=ee(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=ir.delayedCall(0,e||st,r);return n.data="isPause",this._hasPause=1,Vt(this,n,ee(this,t))},r.removePause=function(t){var e=this._first;for(t=ee(this,t);e;)e._start===t&&"isPause"===e.data&&Nt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Ge!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=ue(t),s=this._first,a=I(e);s;)s instanceof ir?Ot(s._targets,i)&&(a?(!Ge||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},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=ee(n,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,u=s.immediateRender,c=ir.to(n,At({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())||E,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&&Kt(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,l||[])}},e));return u?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,At({startAt:{time:ee(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),ye(this,ee(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),ye(this,ee(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+E)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=wt(t);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 Bt(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.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={}),Bt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=C;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Vt(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=wt(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>i&&a._ts&&(i=a._end),a=e;Kt(s,s===c&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(c._ts&&(Et(c,qt(t,c)),g=De.frame),De.frame>=pt){pt+=O.autoSleep||120;var e=c._first;if((!e||!e._ts)&&O.autoSleep&&De._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||De.sleep()}}},e}(Ue);At(Ve.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ge,$e,Ze=function(t,e,r,n,i,s,a){var o,l,u,c,f,h,d,p,g=new vr(this._pt,t,e,0,1,hr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=_e(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match($)||[];o=$.exec(n);)c=o[0],f=n.substring(m,o.index),u?u=(u+1)%5:"rgba("===f.substr(-5)&&(u=1),c!==l[_++]&&(h=parseFloat(l[_-1])||0,g._pt={_next:g._pt,p:f||1===_?f:",",s:h,c:"="===c.charAt(1)?Tt(h,c)-h:parseFloat(c)-h,m:u&&u<4?Math.round:0},m=$.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=a,(Z.test(n)||d)&&(g.e=0),this._pt=g,g},Qe=function(t,e,r,n,i,s,a,o,l,u){F(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:F(f)?l?t[e.indexOf("set")||!F(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():f,d=F(f)?l?or:ar:sr;if(z(n)&&(~n.indexOf("random(")&&(n=_e(n)),"="===n.charAt(1)&&((c=Tt(h,n)+(se(h)||0))||0===c)&&(n=c)),!u||h!==n||$e)return isNaN(h*n)||""===n?(!f&&!(e in t)&&rt(e,n),Ze.call(this,t,e,h,n,d,o||O.stringFilter,l)):(c=new vr(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?fr:cr,0,d),l&&(c.fp=l),a&&c.modifier(a,this,t),this._pt=c)},Ke=function(t,e,r,n,i,s){var a,o,l,u;if(ht[t]&&!1!==(a=new ht[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(F(t)&&(t=er(t,i,e,r,n)),!B(t)||t.style&&t.nodeType||q(t)||X(t))return z(t)?er(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=er(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new vr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==m))for(l=r._ptLookup[r._targets.indexOf(i)],u=a._props.length;u--;)l[a._props[u]]=o;return a},Je=function t(e,r,n){var i,s,a,u,f,h,d,p,g,m,_,v,y,x=e.vars,b=x.ease,w=x.startAt,T=x.immediateRender,O=x.lazy,S=x.onUpdate,M=x.runBackwards,A=x.yoyoEase,P=x.keyframes,R=x.autoRevert,D=e._dur,z=e._startAt,F=e._targets,I=e.parent,N=I&&"nested"===I.data?I.vars.targets:F,B="auto"===e._overwrite&&!o,j=e.timeline,Y=x.easeReverse||A;if(j&&(!P||!b)&&(b="none"),e._ease=je(b,k.ease),e._rEase=Y&&(je(Y)||e._ease),e._from=!j&&!!x.runBackwards,e._from&&(e.ratio=1),!j||P&&!x.stagger){if(v=(p=F[0]?vt(F[0]).harness:0)&&x[p.prop],i=Dt(x,ut),z&&(z._zTime<0&&z.progress(1),r<0&&M&&T&&!R?z.render(-1,!0):z.revert(M&&D?ot:at),z._lazy=0),w){if(Nt(e._startAt=ir.set(F,At({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!z&&L(O),startAt:null,delay:0,onUpdate:S&&function(){return xe(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(l||!T&&!R)&&e._startAt.revert(ot),T&&D&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(M&&D&&!z)if(r&&(T=!1),a=At({overwrite:!1,data:"isFromStart",lazy:T&&!z&&L(O),immediateRender:T,stagger:0,parent:I},i),v&&(a[p.prop]=v),Nt(e._startAt=ir.set(F,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(l?e._startAt.revert(ot):e._startAt.render(-1,!0)),e._zTime=r,T){if(!r)return}else t(e._startAt,E,E);for(e._pt=e._ptCache=0,O=D&&L(O)||O&&!D,s=0;s<F.length;s++){if(d=(f=F[s])._gsap||_t(F)[s]._gsap,e._ptLookup[s]=m={},ft[d.id]&&ct.length&&kt(),_=N===F?s:N.indexOf(f),p&&!1!==(g=new p).init(f,v||i,e,_,N)&&(e._pt=u=new vr(e._pt,f,g.name,0,1,g.render,g,0,g.priority),g._props.forEach(function(t){m[t]=u}),g.priority&&(h=1)),!p||v)for(a in i)ht[a]&&(g=Ke(a,i,e,_,f,N))?g.priority&&(h=1):m[a]=u=Qe.call(e,f,a,"get",i[a],_,N,0,x.stringFilter);e._op&&e._op[s]&&e.kill(f,e._op[s]),B&&e._pt&&(Ge=e,c.killTweensOf(f,m,e.globalTime(r)),y=!e.parent,Ge=0),e._pt&&O&&(ft[d.id]=1)}h&&_r(e),e._onInit&&e._onInit(e)}e._onUpdate=S,e._initted=(!e._op||e._pt)&&!y,P&&r<=0&&j.render(C,!0,!0)},tr=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(q(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})},er=function(t,e,r,n,i){return F(t)?t.call(e,r,n,i):z(t)&&~t.indexOf("random(")?_e(t):t},rr=mt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",nr={};xt(rr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return nr[t]=1});var ir=function(t){function e(e,r,n,i){var a;"number"==typeof r&&(n.duration=r,r=n,n=null);var l,u,f,h,d,p,g,m,_=(a=t.call(this,i?r:zt(r))||this).vars,v=_.duration,y=_.delay,x=_.immediateRender,b=_.stagger,w=_.overwrite,T=_.keyframes,k=_.defaults,C=_.scrollTrigger,E=r.parent||c,S=(q(e)||X(e)?I(e[0]):"length"in r)?[e]:ue(e);if(a._targets=S.length?_t(S):nt("GSAP target "+e+" not found. https://gsap.com",!O.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=w,T||b||Y(v)||Y(y)){var M=(r=a.vars).easeReverse||r.yoyoEase;if((l=a.timeline=new Ve({data:"nested",defaults:k||{},targets:E&&"nested"===E.data?E.vars.targets:S})).kill(),l.parent=l._dp=s(a),l._start=0,b||Y(v)||Y(y)){if(h=S.length,g=b&&he(b),B(b))for(d in b)~rr.indexOf(d)&&(m||(m={}),m[d]=b[d]);for(u=0;u<h;u++)(f=Dt(r,nr)).stagger=0,M&&(f.easeReverse=M),m&&Pt(f,m),p=S[u],f.duration=+er(v,s(a),u,p,S),f.delay=(+er(y,s(a),u,p,S)||0)-a._delay,!b&&1===h&&f.delay&&(a._delay=y=f.delay,a._start+=y,f.delay=0),l.to(p,f,g?g(u,p,S):0),l._ease=Fe.none;l.duration()?v=y=0:a.timeline=0}else if(T){zt(At(l.vars.defaults,{ease:"none"})),l._ease=je(T.ease||r.ease||"none");var A,P,R,D=0;if(q(T))T.forEach(function(t){return l.to(S,t,">")}),l.duration();else{for(d in f={},T)"ease"===d||"easeEach"===d||tr(d,T[d],f,T.easeEach);for(d in f)for(A=f[d].sort(function(t,e){return t.t-e.t}),D=0,u=0;u<A.length;u++)(R={ease:(P=A[u]).e,duration:(P.t-(u?A[u-1].t:0))/100*v})[d]=P.v,l.to(S,R,D),D+=R.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||a.duration(v=l.duration())}else a.timeline=0;return!0!==w||o||(Ge=s(a),c.killTweensOf(S),Ge=0),Vt(E,s(a),n),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(x||!v&&!T&&a._start===wt(E._time)&&L(x)&&jt(s(a))&&"nested"!==E.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-y)||0)),C&&Gt(s(a),C),a}a(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,u,c,f,h=this._time,d=this._tDur,p=this._dur,g=t<0,m=t>d-E&&!g?d:t<E?0:t;if(p){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(n=m,f=this.timeline,this._repeat){if(a=p+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*a+t,e,r);if(n=wt(m%a),m===d?(s=this._repeat,n=p):(s=~~(o=wt(m/a)))&&s===o?(n=p,s--):n>p&&(n=p),(u=this._yoyo&&1&s)&&(n=p-n),o=Xt(this._tTime,a),n===h&&!r&&this._initted&&s===o)return this._tTime=m,this;s!==o&&this.vars.repeatRefresh&&!u&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(wt(a*s),!0).invalidate()._lock=0)}if(!this._initted){if($t(this,g?t:n,r,e,m))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==o))return this;if(p!==this._dur)return this.render(t,e,r)}if(this._rEase){var _=n<h;if(_!==this._inv){var v=_?h:p-h;this._inv=_,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=v?(_?-1:1)/v:0,this._invScale=_?-this.ratio:1-this.ratio,this._invEase=_?this._rEase:this._ease}this.ratio=c=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=c=this._ease(n/p);if(this._from&&(this.ratio=c=1-c),this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&m&&!e&&!o&&(xe(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;f&&f.render(t<0?t:f._dur*f._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Lt(this,t,0,r),xe(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&xe(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&Lt(this,t,0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Nt(this,1),e||g&&!h||!(m||h||u)||(xe(this,m===d?"onComplete":"onReverseComplete",!0),this._prom&&!(m<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,u=e<0||!e&&(!t._start&&Zt(t)&&(t._initted||!Qt(t))||(t._ts<0||t._dp._ts<0)&&!Qt(t))?0:1,c=t._rDelay,f=0;if(c&&t._repeat&&(f=ie(0,t._tDur,e),s=Xt(f,c),t._yoyo&&1&s&&(u=1-u),s!==Xt(t._tTime,c)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||l||n||t._zTime===E||!e&&t._zTime){if(!t._initted&&$t(t,e,n,r,f))return;for(a=t._zTime,t._zTime=e||(r?E:0),r||(r=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=f,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Lt(t,e,0,!0),t._onUpdate&&!r&&xe(t,"onUpdate"),f&&t._repeat&&!r&&t.parent&&xe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Nt(t,1),r||l||(xe(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){_||De.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Je(this,s),function(t,e,r,n,i,s,a,o){var l,u,c,f,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,f=t._targets.length;f--;){if((l=c[f][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return $e=1,t.vars[e]="+=0",Je(t,a),$e=0,o?nt(e+" not eligible for reset. Try splitting into individual properties"):1;h.push(l)}for(f=h.length;f--;)(l=(u=h[f])._pt||u).s=!n&&0!==n||i?l.s+(n||0)+s*l.c:n,l.c=r-l.s,u.e&&(u.e=bt(r)+se(u.e)),u.b&&(u.b=l.s+se(u.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Ht(this,0),this.parent||Ft(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?be(this):this.scrollTrigger&&this.scrollTrigger.kill(!!l),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ge&&!0!==Ge.vars.overwrite)._first||be(this),this.parent&&r!==this.timeline.totalDuration()&&Kt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,u,c,f=this._targets,h=t?ue(t):f,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}(f,h))return"all"===e&&(this._pt=0),be(this);for(n=this._op=this._op||[],"all"!==e&&(z(e)&&(o={},xt(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,n,i,s,a=t[0]?vt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Pt({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(f,e)),c=f.length;c--;)if(~h.indexOf(f[c]))for(o in i=d[c],"all"===e?(n[c]=e,a=i,s={}):(s=n[c]=n[c]||{},a=e),a)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||It(this,u,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&p&&be(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return re(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return re(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return c.killTweensOf(t,e,r)},e}(Ue);At(ir.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),xt("staggerTo,staggerFrom,staggerFromTo",function(t){ir[t]=function(){var e=new Ve,r=ae.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var sr=function(t,e,r){return t[e]=r},ar=function(t,e,r){return t[e](r)},or=function(t,e,r,n){return t[e](n.fp,r)},lr=function(t,e,r){return t.setAttribute(e,r)},ur=function(t,e){return F(t[e])?ar:N(t[e])&&t.setAttribute?lr:sr},cr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},fr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},hr=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)},dr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},pr=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},gr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?It(this,n,"_pt"):n.dep||(e=1),n=r;return!e},mr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},_r=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},vr=function(){function t(t,e,r,n,i,s,a,o,l){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||cr,this.d=a||this,this.set=o||sr,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=mr,this.m=t,this.mt=r,this.tween=e},t}();xt(mt+"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,easeReverse",function(t){return ut[t]=1}),J.TweenMax=J.TweenLite=ir,J.TimelineLite=J.TimelineMax=Ve,c=new Ve({sortChildren:!1,defaults:k,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),O.stringFilter=Re;var yr=[],xr={},br=[],wr=0,Tr=0,Or=function(t){return(xr[t]||br).map(function(t){return t()})},kr=function(){var t=Date.now(),e=[];t-wr>2&&(Or("matchMediaInit"),yr.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=f.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),Or("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),wr=t,Or("matchMedia"))},Cr=function(){function t(t,e){this.selector=e&&ce(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Tr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){F(t)&&(r=e,e=t,t=F);var n=this,i=function(){var t,i=u,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=ce(r)),u=n,t=e.apply(n,arguments),F(t)&&n._r.push(t),u=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===F?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=u;u=null,t(this),u=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof ir&&!(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 Ve?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof ir)&&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=yr.length;n--;)yr[n].id===this.id&&yr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Er=function(){function t(t){this.contexts=[],this.scope=t,u&&u.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){B(t)||(t={matches:t});var n,i,s,a=new Cr(0,r||this.scope),o=a.conditions={};for(i in u&&!a.selector&&(a.selector=u.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=f.matchMedia(t[i]))&&(yr.indexOf(a)<0&&yr.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(kr):n.addEventListener("change",kr));return s&&e(a,function(t){return a.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}(),Sr={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 Te(t)})},timeline:function(t){return new Ve(t)},getTweensOf:function(t,e){return c.getTweensOf(t,e)},getProperty:function(t,e,r,n){z(t)&&(t=ue(t)[0]);var i=vt(t||{}).get,s=r?Mt:St;return"native"===r&&(r=""),t?e?s((ht[e]&&ht[e].get||i)(t,e,r,n)):function(e,r,n){return s((ht[e]&&ht[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=ue(t)).length>1){var n=t.map(function(t){return Pr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=ht[e],a=vt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;m._pt=0,n.init(t,r?e+r:e,m,0,[t]),n.render(1,n),m._pt&&dr(1,m)}:a.set(t,o);return s?l:function(e){return l(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var n,i=Pr.to(t,At(((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 c.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=je(t.ease,k.ease)),Rt(k,t||{})},config:function(t){return Rt(O,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&&!ht[t]&&!J[t]&&nt(e+" effect requires "+t+" plugin.")}),dt[e]=function(t,e,n){return r(ue(t),At(e||{},i),n)},s&&(Ve.prototype[e]=function(t,r,n){return this.add(dt[e](t,B(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Fe[t]=je(e)},parseEase:function(t,e){return arguments.length?je(t,e):Fe},getById:function(t){return c.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Ve(t);for(i.smoothChildTiming=L(t.smoothChildTiming),c.remove(i),i._dp=0,i._time=i._tTime=c._time,r=c._first;r;)n=r._next,!e&&!r._dur&&r instanceof ir&&r.vars.onComplete===r._targets[0]||Vt(i,r,r._start-r._delay),r=n;return Vt(c,i,0),i},context:function(t,e){return t?new Cr(t,e):u},matchMedia:function(t){return new Er(t)},matchMediaRefresh:function(){return yr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||kr()},addEventListener:function(t,e){var r=xr[t]||(xr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=xr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return q(e)?me(e,t(0,e.length),r):ne(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return q(e)?me(e,t(0,e.length-1),r):ne(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:he,random:ge,snap:pe,normalize:function(t,e,r){return ve(t,e,0,1,r)},getUnit:se,clamp:function(t,e,r){return ne(r,function(r){return ie(t,e,r)})},splitColor:Ee,toArray:ue,selector:ce,mapRange:ve,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||se(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,l,u,c,f=z(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(q(e)&&!q(r)){for(l=[],u=e.length,c=u-2,o=1;o<u;o++)l.push(t(e[o-1],e[o]));u--,s=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},n=r}else i||(e=Pt(q(e)?[]:{},e));if(!l){for(a in r)Qe.call(h,e,a,"get",r[a]);s=function(t){return dr(t,h)||(f?e.p:e)}}}return ne(n,s)},shuffle:fe},install:et,effects:dt,ticker:De,updateRoot:Ve.updateRoot,plugins:ht,globalTimeline:c,core:{PropTween:vr,globals:it,Tween:ir,Timeline:Ve,Animation:Ue,getCache:vt,_removeLinkedListItem:It,reverting:function(){return l},context:function(t){return t&&u&&(u.data.push(t),t._ctx=u),u},suppressOverwrites:function(t){return o=t}}};xt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Sr[t]=ir[t]}),De.add(Ve.updateRoot),m=Sr.to({},{duration:0});var Mr=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(z(r)&&(n={},xt(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=Mr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Pr=Sr.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;)l?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",de),Ar("modifiers"),Ar("snap",pe))||Sr;ir.version=Ve.version=Pr.version="3.15.0",p=1,j()&&ze(),Fe.Power0,Fe.Power1,Fe.Power2,Fe.Power3,Fe.Power4,Fe.Linear,Fe.Quad,Fe.Cubic,Fe.Quart,Fe.Quint,Fe.Strong,Fe.Elastic,Fe.Back,Fe.SteppedEase,Fe.Bounce,Fe.Sine,Fe.Expo,Fe.Circ;
|
|
10
10
|
/*!
|
|
11
11
|
* CSSPlugin 3.15.0
|
|
12
12
|
* https://gsap.com
|
|
@@ -15,35 +15,35 @@
|
|
|
15
15
|
* Subject to the terms at https://gsap.com/standard-license
|
|
16
16
|
* @author: Jack Doyle, jack@greensock.com
|
|
17
17
|
*/
|
|
18
|
-
var Rr,Dr,zr,Fr,Ir,Nr,Br,Lr,Yr={},jr=180/Math.PI,Xr=Math.PI/180,qr=Math.atan2,Wr=/([A-Z])/g,Hr=/(left|right|width|margin|padding|x)/i,Ur=/[\s,\(]\S/,Vr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Gr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},$r=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)},Qr=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)},Zr=function(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Kr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Jr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},tn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},en=function(t,e,r){return t.style[e]=r},rn=function(t,e,r){return t.style.setProperty(e,r)},nn=function(t,e,r){return t._gsap[e]=r},sn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},an=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},on=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},un="transform",ln=un+"Origin",cn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Yr&&s){if(this.tfm=this.tfm||{},"transform"===e)return Vr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=Vr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Sn(i,t)}):this.tfm[e]=a.x?a[e]:Sn(i,e),e===ln&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(un)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ln,r,"")),e=un}(s||r)&&this.props.push(e,r,s[e])},fn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},hn=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(Wr,"-$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=Br())&&t.isStart||i[un]||(fn(i),s.zOrigin&&i[ln]&&(i[ln]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},pn=function(t,e){var r={target:t,props:[],revert:hn,save:cn};return t._gsap||Pr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},dn=function(t,e){var r=Dr.createElementNS?Dr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Dr.createElement(t);return r&&r.style?r:Dr.createElement(t)},gn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Wr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,mn(r)||r,1)||""},_n="O,Moz,ms,Ms,Webkit".split(","),mn=function(t,e,r){var n=(e||Ir).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(_n[i]+t in n););return i<0?null:(3===i?"ms":i>=0?_n[i]:"")+t},vn=function(){"undefined"!=typeof window&&window.document&&(Rr=window,Dr=Rr.document,zr=Dr.documentElement,Ir=dn("div")||{style:{}},dn("div"),un=mn(un),ln=un+"Origin",Ir.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Lr=!!mn("perspective"),Br=Pr.core.reverting,Fr=1)},yn=function(t){var e,r=t.ownerSVGElement,n=dn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),zr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),zr.removeChild(n),e},xn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},bn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=yn(t),r=1}return e&&(e.width||e.height)||r||(e=yn(t)),!e||e.width||e.x||e.y?e:{x:+xn(t,["x","cx","x1"])||0,y:+xn(t,["y","cy","y1"])||0,width:0,height:0}},wn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!bn(t))},Tn=function(t,e){if(e){var r,n=t.style;e in Yr&&e!==ln&&(e=un),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Wr,"-$1").toLowerCase())):n.removeAttribute(e)}},kn=function(t,e,r,n,i,s){var a=new vr(t._pt,e,r,0,1,s?tn:Jr);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},Cn={deg:1,rad:1,turn:1},On={grid:1,flex:1},En=function t(e,r,n,i){var s,a,o,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",f=Ir.style,h=Hr.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(h?"Width":"Height"),g=100,_="px"===i,m="%"===i;if(i===c||!l||Cn[i]||Cn[c])return l;if("px"!==c&&!_&&(l=t(e,r,n,"px")),u=e.getCTM&&wn(e),(m||"%"===c)&&(Yr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[h?"width":"height"]:e[d],bt(m?l/s*g:l/100*s);if(f[h?"width":"height"]=g+(_?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Dr&&a.appendChild||(a=Dr.body),(o=a._gsap)&&m&&o.width&&h&&o.time===De.time&&!o.uncache)return bt(l/o.width*g);if(!m||"height"!==r&&"width"!==r)(m||"%"===c)&&!On[gn(a,"display")]&&(f.position=gn(e,"position")),a===e&&(f.position="static"),a.appendChild(Ir),s=Ir[d],a.removeChild(Ir),f.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[d],v?e.style[r]=v:Tn(e,r)}return h&&m&&((o=vt(a)).time=De.time,o.width=a[d]),bt(_?s*l/g:s&&l?g/s*l:0)},Sn=function(t,e,r,n){var i;return Fr||vn(),e in Vr&&"transform"!==e&&~(e=Vr[e]).indexOf(",")&&(e=e.split(",")[0]),Yr[e]&&"transform"!==e?(i=Yn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:jn(gn(t,ln))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Dn[e]&&Dn[e](t,e,r)||gn(t,e)||yt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?En(t,e,i,r)+r:i},Mn=function(t,e,r,n){if(!r||"none"===r){var i=mn(e,t,1),s=i&&gn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=gn(t,"borderTopColor"))}var a,o,u,l,c,f,h,p,d,g,_,m=new vr(this._pt,t.style,e,0,1,hr),v=0,y=0;if(m.b=r,m.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=gn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=gn(t,e)||n,f?t.style[e]=f:Tn(t,e)),Re(a=[r,n]),n=a[1],u=(r=a[0]).match(G)||[],(n.match(G)||[]).length){for(;o=G.exec(n);)h=o[0],d=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),h!==(f=u[y++]||"")&&(l=parseFloat(f)||0,_=f.substr((l+"").length),"="===h.charAt(1)&&(h=Tt(l,h)+_),p=parseFloat(h),g=h.substr((p+"").length),v=G.lastIndex-g.length,g||(g=g||k.units[e]||_,v===n.length&&(n+=g,m.e+=g)),_!==g&&(l=En(t,e,f,g)||0),m._pt={_next:m._pt,p:d||1===y?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});m.c=v<n.length?n.substring(v,n.length):""}else m.r="display"===e&&"none"===n?tn:Jr;return Q.test(n)&&(m.e=0),this._pt=m,m},An={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Pn=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]=An[r]||r,e[1]=An[n]||n,e.join(" ")},Rn=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],Yr[r]&&(n=1,r="transformOrigin"===r?ln:un),Tn(s,r);n&&(Tn(s,un),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Yn(s,1),u.uncache=1,fn(a)))}},Dn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new vr(t._pt,e,r,0,0,Rn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},zn=[1,0,0,1,0,0],Fn={},In=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Nn=function(t){var e=gn(t,un);return In(e)?zn:e.substr(7).match(V).map(bt)},Bn=function(t,e){var r,n,i,s,a=t._gsap||vt(t),o=t.style,u=Nn(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(",")?zn:u:(u!==zn||t.offsetParent||t===zr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,zr.appendChild(t)),u=Nn(t),i?o.display=i:Tn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):zr.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Ln=function(t,e,r,n,i,s){var a,o,u,l=t._gsap,c=i||Bn(t,!0),f=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,g=c[0],_=c[1],m=c[2],v=c[3],y=c[4],x=c[5],b=e.split(" "),w=parseFloat(b[0])||0,T=parseFloat(b[1])||0;r?c!==zn&&(o=g*v-_*m)&&(u=w*(-_/o)+T*(g/o)-(g*x-_*y)/o,w=w*(v/o)+T*(-m/o)+(m*x-v*y)/o,T=u):(w=(a=bn(t)).x+(~b[0].indexOf("%")?w/100*a.width:w),T=a.y+(~(b[1]||b[0]).indexOf("%")?T/100*a.height:T)),n||!1!==n&&l.smooth?(y=w-f,x=T-h,l.xOffset=p+(y*g+x*m)-y,l.yOffset=d+(y*_+x*v)-x):l.xOffset=l.yOffset=0,l.xOrigin=w,l.yOrigin=T,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[ln]="0px 0px",s&&(kn(s,l,"xOrigin",f,w),kn(s,l,"yOrigin",h,T),kn(s,l,"xOffset",p,l.xOffset),kn(s,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Yn=function(t,e){var r=t._gsap||new He(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,u,l,c,f,h,p,d,g,_,m,v,y,x,b,w,T,C,O,E,S,M,A,P,R,D,z,F,I=t.style,N=r.scaleX<0,B="px",L="deg",Y=getComputedStyle(t),j=gn(t,ln)||"0";return n=i=s=u=l=c=f=h=p=0,a=o=1,r.svg=!(!t.getCTM||!wn(t)),Y.translate&&("none"===Y.translate&&"none"===Y.scale&&"none"===Y.rotate||(I[un]=("none"!==Y.translate?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==Y.rotate?"rotate("+Y.rotate+") ":"")+("none"!==Y.scale?"scale("+Y.scale.split(" ").join(",")+") ":"")+("none"!==Y[un]?Y[un]:"")),I.scale=I.rotate=I.translate="none"),_=Bn(t,r.svg),r.svg&&(r.uncache?(S=t.getBBox(),j=r.xOrigin-S.x+"px "+(r.yOrigin-S.y)+"px",E=""):E=!e&&t.getAttribute("data-svg-origin"),Ln(t,E||j,!!E||r.originIsAbsolute,!1!==r.smooth,_)),d=r.xOrigin||0,g=r.yOrigin||0,_!==zn&&(x=_[0],b=_[1],w=_[2],T=_[3],n=C=_[4],i=O=_[5],6===_.length?(a=Math.sqrt(x*x+b*b),o=Math.sqrt(T*T+w*w),u=x||b?qr(b,x)*jr:0,(f=w||T?qr(w,T)*jr+u:0)&&(o*=Math.abs(Math.cos(f*Xr))),r.svg&&(n-=d-(d*x+g*w),i-=g-(d*b+g*T))):(F=_[6],D=_[7],A=_[8],P=_[9],R=_[10],z=_[11],n=_[12],i=_[13],s=_[14],l=(m=qr(F,R))*jr,m&&(E=C*(v=Math.cos(-m))+A*(y=Math.sin(-m)),S=O*v+P*y,M=F*v+R*y,A=C*-y+A*v,P=O*-y+P*v,R=F*-y+R*v,z=D*-y+z*v,C=E,O=S,F=M),c=(m=qr(-w,R))*jr,m&&(v=Math.cos(-m),z=T*(y=Math.sin(-m))+z*v,x=E=x*v-A*y,b=S=b*v-P*y,w=M=w*v-R*y),u=(m=qr(b,x))*jr,m&&(E=x*(v=Math.cos(m))+b*(y=Math.sin(m)),S=C*v+O*y,b=b*v-x*y,O=O*v-C*y,x=E,C=S),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=bt(Math.sqrt(x*x+b*b+w*w)),o=bt(Math.sqrt(O*O+F*F)),m=qr(C,O),f=Math.abs(m)>2e-4?m*jr:0,p=z?1/(z<0?-z:z):0),r.svg&&(E=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!In(gn(t,un)),E&&t.setAttribute("transform",E))),Math.abs(f)>90&&Math.abs(f)<270&&(N?(a*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=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=bt(a),r.scaleY=bt(o),r.rotation=bt(u)+L,r.rotationX=bt(l)+L,r.rotationY=bt(c)+L,r.skewX=f+L,r.skewY=h+L,r.transformPerspective=p+B,(r.zOrigin=parseFloat(j.split(" ")[2])||!e&&r.zOrigin||0)&&(I[ln]=jn(j)),r.xOffset=r.yOffset=0,r.force3D=k.force3D,r.renderTransform=r.svg?Gn:Lr?Vn:qn,r.uncache=0,r},jn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Xn=function(t,e,r){var n=se(e);return bt(parseFloat(e)+parseFloat(En(t,"x",r+"px",n)))+n},qn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Vn(t,e)},Wn="0deg",Hn="0px",Un=") ",Vn=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,f=r.skewX,h=r.skewY,p=r.scaleX,d=r.scaleY,g=r.transformPerspective,_=r.force3D,m=r.target,v=r.zOrigin,y="",x="auto"===_&&t&&1!==t||!0===_;if(v&&(c!==Wn||l!==Wn)){var b,w=parseFloat(l)*Xr,T=Math.sin(w),k=Math.cos(w);w=parseFloat(c)*Xr,b=Math.cos(w),s=Xn(m,s,T*b*-v),a=Xn(m,a,-Math.sin(w)*-v),o=Xn(m,o,k*b*-v+v)}g!==Hn&&(y+="perspective("+g+Un),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==Hn||a!==Hn||o!==Hn)&&(y+=o!==Hn||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Un),u!==Wn&&(y+="rotate("+u+Un),l!==Wn&&(y+="rotateY("+l+Un),c!==Wn&&(y+="rotateX("+c+Un),f===Wn&&h===Wn||(y+="skew("+f+", "+h+Un),1===p&&1===d||(y+="scale("+p+", "+d+Un),m.style[un]=y||"translate(0, 0)"},Gn=function(t,e){var r,n,i,s,a,o=e||this,u=o.xPercent,l=o.yPercent,c=o.x,f=o.y,h=o.rotation,p=o.skewX,d=o.skewY,g=o.scaleX,_=o.scaleY,m=o.target,v=o.xOrigin,y=o.yOrigin,x=o.xOffset,b=o.yOffset,w=o.forceCSS,T=parseFloat(c),k=parseFloat(f);h=parseFloat(h),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),h+=d),h||p?(h*=Xr,p*=Xr,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-p)*-_,s=Math.cos(h-p)*_,p&&(d*=Xr,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=bt(r),n=bt(n),i=bt(i),s=bt(s)):(r=g,s=_,n=i=0),(T&&!~(c+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(T=En(m,"x",c,"px"),k=En(m,"y",f,"px")),(v||y||x||b)&&(T=bt(T+v-(v*r+y*i)+x),k=bt(k+y-(v*n+y*s)+b)),(u||l)&&(a=m.getBBox(),T=bt(T+u/100*a.width),k=bt(k+l/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+k+")",m.setAttribute("transform",a),w&&(m.style[un]=a)},$n=function(t,e,r,n,i){var s,a,o=360,u=z(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?jr: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 vr(t._pt,e,r,n,l,$r),a.e=c,a.u="deg",t._props.push(r),a},Qn=function(t,e){for(var r in e)t[r]=e[r];return t},Zn=function(t,e,r){var n,i,s,a,o,u,l,c=Qn({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[un]=e,n=Yn(r,1),Tn(r,un),r.setAttribute("transform",s)):(s=getComputedStyle(r)[un],f[un]=e,n=Yn(r,1),f[un]=s),Yr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=se(s)!==(l=se(a))?En(r,i,s,l):parseFloat(s),u=parseFloat(a),t._pt=new vr(t._pt,n,i,o,u-o,Gr),t._pt.u=l||0,t._props.push(i));Qn(n,c)};xt("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});Dn[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 Sn(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 Kn,Jn,ti,ei={name:"css",register:vn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,u,l,c,f,h,p,d,g,_,m,v,y,x,b,w=this._props,T=t.style,C=r.vars.startAt;for(f in Fr||vn(),this.styles=this.styles||pn(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!ht[f]||!Ke(f,e,r,n,t,i)))if(l=typeof a,c=Dn[f],"function"===l&&(l=typeof(a=a.call(r,n,t,i))),"string"===l&&~a.indexOf("random(")&&(a=me(a)),c)c(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Ae.lastIndex=0,Ae.test(s)||(h=se(s),(p=se(a))?h!==p&&(s=En(t,f,s,p)+p):h&&(a+=h)),this.add(T,"setProperty",s,a,n,i,0,0,f),w.push(f),x.push(f,0,T[f]);else if("undefined"!==l){if(C&&f in C?(s="function"==typeof C[f]?C[f].call(r,n,t,i):C[f],z(s)&&~s.indexOf("random(")&&(s=me(s)),se(s+"")||"auto"===s||(s+=k.units[f]||se(Sn(t,f))||""),"="===(s+"").charAt(1)&&(s=Sn(t,f))):s=Sn(t,f),u=parseFloat(s),(d="string"===l&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in Vr&&("autoAlpha"===f&&(1===u&&"hidden"===Sn(t,"visibility")&&o&&(u=0),x.push("visibility",0,T.visibility),kn(this,T,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Vr[f]).indexOf(",")&&(f=f.split(",")[0])),g=f in Yr){if(this.styles.save(f),b=a,"string"===l&&"var(--"===a.substring(0,6)){if("calc("===(a=gn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var O=t.style.perspective;t.style.perspective=a,a=gn(t,"perspective"),O?t.style.perspective=O:Tn(t,"perspective")}o=parseFloat(a)}if(_||((m=t._gsap).renderTransform&&!e.parseTransform||Yn(t,e.parseTransform),v=!1!==e.smoothOrigin&&m.smooth,(_=this._pt=new vr(this._pt,T,un,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===f)this._pt=new vr(this._pt,m,"scaleY",m.scaleY,(d?Tt(m.scaleY,d+o):o)-m.scaleY||0,Gr),this._pt.u=0,w.push("scaleY",f),f+="X";else{if("transformOrigin"===f){x.push(ln,0,T[ln]),a=Pn(a),m.svg?Ln(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==m.zOrigin&&kn(this,m,"zOrigin",m.zOrigin,p),kn(this,T,f,jn(s),jn(a)));continue}if("svgOrigin"===f){Ln(t,a,1,v,0,this);continue}if(f in Fn){$n(this,m,f,u,d?Tt(u,d+a):a);continue}if("smoothOrigin"===f){kn(this,m,"smooth",m.smooth,a);continue}if("force3D"===f){m[f]=a;continue}if("transform"===f){Zn(this,a,t);continue}}}else f in T||(f=mn(f)||f);if(g||(o||0===o)&&(u||0===u)&&!Ur.test(a)&&f in T)o||(o=0),(h=(s+"").substr((u+"").length))!==(p=se(a)||(f in k.units?k.units[f]:h))&&(u=En(t,f,s,p)),this._pt=new vr(this._pt,g?m:T,f,u,(d?Tt(u,d+o):o)-u,g||"px"!==p&&"zIndex"!==f||!1===e.autoRound?Gr:Kr),this._pt.u=p||0,g&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=Zr):h!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=Qr);else if(f in T)Mn.call(this,t,f,s,d?d+a:a);else if(f in t)this.add(t,f,s||t[f],d?d+a:a,n,i);else if("parseTransform"!==f){rt(f,a);continue}g||(f in T?x.push(f,0,T[f]):"function"==typeof t[f]?x.push(f,2,t[f]()):x.push(f,1,s||t[f])),w.push(f)}y&&mr(this)},render:function(t,e){if(e.tween._time||!Br())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Sn,aliases:Vr,getSetter:function(t,e,r){var n=Vr[e];return n&&n.indexOf(",")<0&&(e=n),e in Yr&&e!==ln&&(t._gsap.x||Sn(t,"x"))?r&&Nr===r?"scale"===e?sn:nn:(Nr=r||{})&&("scale"===e?an:on):t.style&&!N(t.style[e])?en:~e.indexOf("-")?rn:lr(t,e)},core:{_removeProperty:Tn,_getMatrix:Bn}};Pr.utils.checkPrefix=mn,Pr.core.getStyleSaver=pn,ti=xt((Kn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Jn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Yr[t]=1}),xt(Jn,function(t){k.units[t]="deg",Fn[t]=1}),Vr[ti[13]]=Kn+","+Jn,xt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Vr[e[1]]=ti[e[0]]}),xt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){k.units[t]="px"}),Pr.registerPlugin(ei);var ri=Pr.registerPlugin(ei)||Pr;ri.core.Tween;
|
|
18
|
+
var Rr,Dr,zr,Fr,Ir,Nr,Br,Lr,jr={},Yr=180/Math.PI,Xr=Math.PI/180,qr=Math.atan2,Wr=/([A-Z])/g,Hr=/(left|right|width|margin|padding|x)/i,Ur=/[\s,\(]\S/,Vr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Gr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},$r=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)},Zr=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)},Qr=function(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Kr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Jr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},tn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},en=function(t,e,r){return t.style[e]=r},rn=function(t,e,r){return t.style.setProperty(e,r)},nn=function(t,e,r){return t._gsap[e]=r},sn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},an=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},on=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},ln="transform",un=ln+"Origin",cn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in jr&&s){if(this.tfm=this.tfm||{},"transform"===e)return Vr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=Vr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Sn(i,t)}):this.tfm[e]=a.x?a[e]:Sn(i,e),e===un&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(ln)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(un,r,"")),e=ln}(s||r)&&this.props.push(e,r,s[e])},fn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},hn=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(Wr,"-$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=Br())&&t.isStart||i[ln]||(fn(i),s.zOrigin&&i[un]&&(i[un]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},dn=function(t,e){var r={target:t,props:[],revert:hn,save:cn};return t._gsap||Pr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},pn=function(t,e){var r=Dr.createElementNS?Dr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Dr.createElement(t);return r&&r.style?r:Dr.createElement(t)},gn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Wr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,_n(r)||r,1)||""},mn="O,Moz,ms,Ms,Webkit".split(","),_n=function(t,e,r){var n=(e||Ir).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(mn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?mn[i]:"")+t},vn=function(){"undefined"!=typeof window&&window.document&&(Rr=window,Dr=Rr.document,zr=Dr.documentElement,Ir=pn("div")||{style:{}},pn("div"),ln=_n(ln),un=ln+"Origin",Ir.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Lr=!!_n("perspective"),Br=Pr.core.reverting,Fr=1)},yn=function(t){var e,r=t.ownerSVGElement,n=pn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),zr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),zr.removeChild(n),e},xn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},bn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=yn(t),r=1}return e&&(e.width||e.height)||r||(e=yn(t)),!e||e.width||e.x||e.y?e:{x:+xn(t,["x","cx","x1"])||0,y:+xn(t,["y","cy","y1"])||0,width:0,height:0}},wn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!bn(t))},Tn=function(t,e){if(e){var r,n=t.style;e in jr&&e!==un&&(e=ln),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Wr,"-$1").toLowerCase())):n.removeAttribute(e)}},On=function(t,e,r,n,i,s){var a=new vr(t._pt,e,r,0,1,s?tn:Jr);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},kn={deg:1,rad:1,turn:1},Cn={grid:1,flex:1},En=function t(e,r,n,i){var s,a,o,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",f=Ir.style,h=Hr.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(h?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!u||kn[i]||kn[c])return u;if("px"!==c&&!m&&(u=t(e,r,n,"px")),l=e.getCTM&&wn(e),(_||"%"===c)&&(jr[r]||~r.indexOf("adius")))return s=l?e.getBBox()[h?"width":"height"]:e[p],bt(_?u/s*g:u/100*s);if(f[h?"width":"height"]=g+(m?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Dr&&a.appendChild||(a=Dr.body),(o=a._gsap)&&_&&o.width&&h&&o.time===De.time&&!o.uncache)return bt(u/o.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!Cn[gn(a,"display")]&&(f.position=gn(e,"position")),a===e&&(f.position="static"),a.appendChild(Ir),s=Ir[p],a.removeChild(Ir),f.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[p],v?e.style[r]=v:Tn(e,r)}return h&&_&&((o=vt(a)).time=De.time,o.width=a[p]),bt(m?s*u/g:s&&u?g/s*u:0)},Sn=function(t,e,r,n){var i;return Fr||vn(),e in Vr&&"transform"!==e&&~(e=Vr[e]).indexOf(",")&&(e=e.split(",")[0]),jr[e]&&"transform"!==e?(i=jn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Yn(gn(t,un))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Dn[e]&&Dn[e](t,e,r)||gn(t,e)||yt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?En(t,e,i,r)+r:i},Mn=function(t,e,r,n){if(!r||"none"===r){var i=_n(e,t,1),s=i&&gn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=gn(t,"borderTopColor"))}var a,o,l,u,c,f,h,d,p,g,m,_=new vr(this._pt,t.style,e,0,1,hr),v=0,y=0;if(_.b=r,_.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=gn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=gn(t,e)||n,f?t.style[e]=f:Tn(t,e)),Re(a=[r,n]),n=a[1],l=(r=a[0]).match(G)||[],(n.match(G)||[]).length){for(;o=G.exec(n);)h=o[0],p=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),h!==(f=l[y++]||"")&&(u=parseFloat(f)||0,m=f.substr((u+"").length),"="===h.charAt(1)&&(h=Tt(u,h)+m),d=parseFloat(h),g=h.substr((d+"").length),v=G.lastIndex-g.length,g||(g=g||O.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(u=En(t,e,f,g)||0),_._pt={_next:_._pt,p:p||1===y?p:",",s:u,c:d-u,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=v<n.length?n.substring(v,n.length):""}else _.r="display"===e&&"none"===n?tn:Jr;return Z.test(n)&&(_.e=0),this._pt=_,_},An={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Pn=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]=An[r]||r,e[1]=An[n]||n,e.join(" ")},Rn=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,l=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)r=o[i],jr[r]&&(n=1,r="transformOrigin"===r?un:ln),Tn(s,r);n&&(Tn(s,ln),l&&(l.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",jn(s,1),l.uncache=1,fn(a)))}},Dn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new vr(t._pt,e,r,0,0,Rn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},zn=[1,0,0,1,0,0],Fn={},In=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Nn=function(t){var e=gn(t,ln);return In(e)?zn:e.substr(7).match(V).map(bt)},Bn=function(t,e){var r,n,i,s,a=t._gsap||vt(t),o=t.style,l=Nn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?zn:l:(l!==zn||t.offsetParent||t===zr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,zr.appendChild(t)),l=Nn(t),i?o.display=i:Tn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):zr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Ln=function(t,e,r,n,i,s){var a,o,l,u=t._gsap,c=i||Bn(t,!0),f=u.xOrigin||0,h=u.yOrigin||0,d=u.xOffset||0,p=u.yOffset||0,g=c[0],m=c[1],_=c[2],v=c[3],y=c[4],x=c[5],b=e.split(" "),w=parseFloat(b[0])||0,T=parseFloat(b[1])||0;r?c!==zn&&(o=g*v-m*_)&&(l=w*(-m/o)+T*(g/o)-(g*x-m*y)/o,w=w*(v/o)+T*(-_/o)+(_*x-v*y)/o,T=l):(w=(a=bn(t)).x+(~b[0].indexOf("%")?w/100*a.width:w),T=a.y+(~(b[1]||b[0]).indexOf("%")?T/100*a.height:T)),n||!1!==n&&u.smooth?(y=w-f,x=T-h,u.xOffset=d+(y*g+x*_)-y,u.yOffset=p+(y*m+x*v)-x):u.xOffset=u.yOffset=0,u.xOrigin=w,u.yOrigin=T,u.smooth=!!n,u.origin=e,u.originIsAbsolute=!!r,t.style[un]="0px 0px",s&&(On(s,u,"xOrigin",f,w),On(s,u,"yOrigin",h,T),On(s,u,"xOffset",d,u.xOffset),On(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},jn=function(t,e){var r=t._gsap||new He(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w,T,k,C,E,S,M,A,P,R,D,z,F,I=t.style,N=r.scaleX<0,B="px",L="deg",j=getComputedStyle(t),Y=gn(t,un)||"0";return n=i=s=l=u=c=f=h=d=0,a=o=1,r.svg=!(!t.getCTM||!wn(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(I[ln]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[ln]?j[ln]:"")),I.scale=I.rotate=I.translate="none"),m=Bn(t,r.svg),r.svg&&(r.uncache?(S=t.getBBox(),Y=r.xOrigin-S.x+"px "+(r.yOrigin-S.y)+"px",E=""):E=!e&&t.getAttribute("data-svg-origin"),Ln(t,E||Y,!!E||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,g=r.yOrigin||0,m!==zn&&(x=m[0],b=m[1],w=m[2],T=m[3],n=k=m[4],i=C=m[5],6===m.length?(a=Math.sqrt(x*x+b*b),o=Math.sqrt(T*T+w*w),l=x||b?qr(b,x)*Yr:0,(f=w||T?qr(w,T)*Yr+l:0)&&(o*=Math.abs(Math.cos(f*Xr))),r.svg&&(n-=p-(p*x+g*w),i-=g-(p*b+g*T))):(F=m[6],D=m[7],A=m[8],P=m[9],R=m[10],z=m[11],n=m[12],i=m[13],s=m[14],u=(_=qr(F,R))*Yr,_&&(E=k*(v=Math.cos(-_))+A*(y=Math.sin(-_)),S=C*v+P*y,M=F*v+R*y,A=k*-y+A*v,P=C*-y+P*v,R=F*-y+R*v,z=D*-y+z*v,k=E,C=S,F=M),c=(_=qr(-w,R))*Yr,_&&(v=Math.cos(-_),z=T*(y=Math.sin(-_))+z*v,x=E=x*v-A*y,b=S=b*v-P*y,w=M=w*v-R*y),l=(_=qr(b,x))*Yr,_&&(E=x*(v=Math.cos(_))+b*(y=Math.sin(_)),S=k*v+C*y,b=b*v-x*y,C=C*v-k*y,x=E,k=S),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),a=bt(Math.sqrt(x*x+b*b+w*w)),o=bt(Math.sqrt(C*C+F*F)),_=qr(k,C),f=Math.abs(_)>2e-4?_*Yr:0,d=z?1/(z<0?-z:z):0),r.svg&&(E=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!In(gn(t,ln)),E&&t.setAttribute("transform",E))),Math.abs(f)>90&&Math.abs(f)<270&&(N?(a*=-1,f+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,f+=f<=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=bt(a),r.scaleY=bt(o),r.rotation=bt(l)+L,r.rotationX=bt(u)+L,r.rotationY=bt(c)+L,r.skewX=f+L,r.skewY=h+L,r.transformPerspective=d+B,(r.zOrigin=parseFloat(Y.split(" ")[2])||!e&&r.zOrigin||0)&&(I[un]=Yn(Y)),r.xOffset=r.yOffset=0,r.force3D=O.force3D,r.renderTransform=r.svg?Gn:Lr?Vn:qn,r.uncache=0,r},Yn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Xn=function(t,e,r){var n=se(e);return bt(parseFloat(e)+parseFloat(En(t,"x",r+"px",n)))+n},qn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Vn(t,e)},Wn="0deg",Hn="0px",Un=") ",Vn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,a=r.y,o=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,d=r.scaleX,p=r.scaleY,g=r.transformPerspective,m=r.force3D,_=r.target,v=r.zOrigin,y="",x="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==Wn||u!==Wn)){var b,w=parseFloat(u)*Xr,T=Math.sin(w),O=Math.cos(w);w=parseFloat(c)*Xr,b=Math.cos(w),s=Xn(_,s,T*b*-v),a=Xn(_,a,-Math.sin(w)*-v),o=Xn(_,o,O*b*-v+v)}g!==Hn&&(y+="perspective("+g+Un),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==Hn||a!==Hn||o!==Hn)&&(y+=o!==Hn||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Un),l!==Wn&&(y+="rotate("+l+Un),u!==Wn&&(y+="rotateY("+u+Un),c!==Wn&&(y+="rotateX("+c+Un),f===Wn&&h===Wn||(y+="skew("+f+", "+h+Un),1===d&&1===p||(y+="scale("+d+", "+p+Un),_.style[ln]=y||"translate(0, 0)"},Gn=function(t,e){var r,n,i,s,a,o=e||this,l=o.xPercent,u=o.yPercent,c=o.x,f=o.y,h=o.rotation,d=o.skewX,p=o.skewY,g=o.scaleX,m=o.scaleY,_=o.target,v=o.xOrigin,y=o.yOrigin,x=o.xOffset,b=o.yOffset,w=o.forceCSS,T=parseFloat(c),O=parseFloat(f);h=parseFloat(h),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),h+=p),h||d?(h*=Xr,d*=Xr,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-d)*-m,s=Math.cos(h-d)*m,d&&(p*=Xr,a=Math.tan(d-p),i*=a=Math.sqrt(1+a*a),s*=a,p&&(a=Math.tan(p),r*=a=Math.sqrt(1+a*a),n*=a)),r=bt(r),n=bt(n),i=bt(i),s=bt(s)):(r=g,s=m,n=i=0),(T&&!~(c+"").indexOf("px")||O&&!~(f+"").indexOf("px"))&&(T=En(_,"x",c,"px"),O=En(_,"y",f,"px")),(v||y||x||b)&&(T=bt(T+v-(v*r+y*i)+x),O=bt(O+y-(v*n+y*s)+b)),(l||u)&&(a=_.getBBox(),T=bt(T+l/100*a.width),O=bt(O+u/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+O+")",_.setAttribute("transform",a),w&&(_.style[ln]=a)},$n=function(t,e,r,n,i){var s,a,o=360,l=z(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?Yr:1)-n,c=n+u+"deg";return l&&("short"===(s=i.split("_")[1])&&(u%=o)!==u%180&&(u+=u<0?o:-360),"cw"===s&&u<0?u=(u+36e9)%o-~~(u/o)*o:"ccw"===s&&u>0&&(u=(u-36e9)%o-~~(u/o)*o)),t._pt=a=new vr(t._pt,e,r,n,u,$r),a.e=c,a.u="deg",t._props.push(r),a},Zn=function(t,e){for(var r in e)t[r]=e[r];return t},Qn=function(t,e,r){var n,i,s,a,o,l,u,c=Zn({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[ln]=e,n=jn(r,1),Tn(r,ln),r.setAttribute("transform",s)):(s=getComputedStyle(r)[ln],f[ln]=e,n=jn(r,1),f[ln]=s),jr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=se(s)!==(u=se(a))?En(r,i,s,u):parseFloat(s),l=parseFloat(a),t._pt=new vr(t._pt,n,i,o,l-o,Gr),t._pt.u=u||0,t._props.push(i));Zn(n,c)};xt("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});Dn[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 Sn(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 Kn,Jn,ti,ei={name:"css",register:vn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w=this._props,T=t.style,k=r.vars.startAt;for(f in Fr||vn(),this.styles=this.styles||dn(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!ht[f]||!Ke(f,e,r,n,t,i)))if(u=typeof a,c=Dn[f],"function"===u&&(u=typeof(a=a.call(r,n,t,i))),"string"===u&&~a.indexOf("random(")&&(a=_e(a)),c)c(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Ae.lastIndex=0,Ae.test(s)||(h=se(s),(d=se(a))?h!==d&&(s=En(t,f,s,d)+d):h&&(a+=h)),this.add(T,"setProperty",s,a,n,i,0,0,f),w.push(f),x.push(f,0,T[f]);else if("undefined"!==u){if(k&&f in k?(s="function"==typeof k[f]?k[f].call(r,n,t,i):k[f],z(s)&&~s.indexOf("random(")&&(s=_e(s)),se(s+"")||"auto"===s||(s+=O.units[f]||se(Sn(t,f))||""),"="===(s+"").charAt(1)&&(s=Sn(t,f))):s=Sn(t,f),l=parseFloat(s),(p="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in Vr&&("autoAlpha"===f&&(1===l&&"hidden"===Sn(t,"visibility")&&o&&(l=0),x.push("visibility",0,T.visibility),On(this,T,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Vr[f]).indexOf(",")&&(f=f.split(",")[0])),g=f in jr){if(this.styles.save(f),b=a,"string"===u&&"var(--"===a.substring(0,6)){if("calc("===(a=gn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var C=t.style.perspective;t.style.perspective=a,a=gn(t,"perspective"),C?t.style.perspective=C:Tn(t,"perspective")}o=parseFloat(a)}if(m||((_=t._gsap).renderTransform&&!e.parseTransform||jn(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new vr(this._pt,T,ln,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new vr(this._pt,_,"scaleY",_.scaleY,(p?Tt(_.scaleY,p+o):o)-_.scaleY||0,Gr),this._pt.u=0,w.push("scaleY",f),f+="X";else{if("transformOrigin"===f){x.push(un,0,T[un]),a=Pn(a),_.svg?Ln(t,a,0,v,0,this):((d=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&On(this,_,"zOrigin",_.zOrigin,d),On(this,T,f,Yn(s),Yn(a)));continue}if("svgOrigin"===f){Ln(t,a,1,v,0,this);continue}if(f in Fn){$n(this,_,f,l,p?Tt(l,p+a):a);continue}if("smoothOrigin"===f){On(this,_,"smooth",_.smooth,a);continue}if("force3D"===f){_[f]=a;continue}if("transform"===f){Qn(this,a,t);continue}}}else f in T||(f=_n(f)||f);if(g||(o||0===o)&&(l||0===l)&&!Ur.test(a)&&f in T)o||(o=0),(h=(s+"").substr((l+"").length))!==(d=se(a)||(f in O.units?O.units[f]:h))&&(l=En(t,f,s,d)),this._pt=new vr(this._pt,g?_:T,f,l,(p?Tt(l,p+o):o)-l,g||"px"!==d&&"zIndex"!==f||!1===e.autoRound?Gr:Kr),this._pt.u=d||0,g&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=Qr):h!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Zr);else if(f in T)Mn.call(this,t,f,s,p?p+a:a);else if(f in t)this.add(t,f,s||t[f],p?p+a:a,n,i);else if("parseTransform"!==f){rt(f,a);continue}g||(f in T?x.push(f,0,T[f]):"function"==typeof t[f]?x.push(f,2,t[f]()):x.push(f,1,s||t[f])),w.push(f)}y&&_r(this)},render:function(t,e){if(e.tween._time||!Br())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Sn,aliases:Vr,getSetter:function(t,e,r){var n=Vr[e];return n&&n.indexOf(",")<0&&(e=n),e in jr&&e!==un&&(t._gsap.x||Sn(t,"x"))?r&&Nr===r?"scale"===e?sn:nn:(Nr=r||{})&&("scale"===e?an:on):t.style&&!N(t.style[e])?en:~e.indexOf("-")?rn:ur(t,e)},core:{_removeProperty:Tn,_getMatrix:Bn}};Pr.utils.checkPrefix=_n,Pr.core.getStyleSaver=dn,ti=xt((Kn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Jn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){jr[t]=1}),xt(Jn,function(t){O.units[t]="deg",Fn[t]=1}),Vr[ti[13]]=Kn+","+Jn,xt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Vr[e[1]]=ti[e[0]]}),xt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){O.units[t]="px"}),Pr.registerPlugin(ei);var ri=Pr.registerPlugin(ei)||Pr;function ni(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ri.core.Tween;
|
|
19
19
|
/*!
|
|
20
|
-
*
|
|
20
|
+
* Observer 3.15.0
|
|
21
21
|
* https://gsap.com
|
|
22
22
|
*
|
|
23
|
-
* Copyright 2008-
|
|
24
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
25
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
23
|
+
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
24
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
26
25
|
* @author: Jack Doyle, jack@greensock.com
|
|
27
26
|
*/
|
|
28
|
-
|
|
27
|
+
var ii,si,ai,oi,li,ui,ci,fi,hi,di,pi,gi,mi,_i=function(){return ii||"undefined"!=typeof window&&(ii=window.gsap)&&ii.registerPlugin&&ii},vi=1,yi=[],xi=[],bi=[],wi=Date.now,Ti=function(t,e){return e},Oi=function(t,e){return~bi.indexOf(t)&&bi[bi.indexOf(t)+1][e]},ki=function(t){return!!~di.indexOf(t)},Ci=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Ei=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Si="scrollLeft",Mi="scrollTop",Ai=function(){return pi&&pi.isPressed||xi.cache++},Pi=function(t,e){var r=function r(n){if(n||0===n){vi&&(ai.history.scrollRestoration="manual");var i=pi&&pi.isPressed;n=r.v=Math.round(n)||(pi&&pi.iOS?1:0),t(n),r.cacheID=xi.cache,i&&Ti("ss",n)}else(e||xi.cache!==r.cacheID||Ti("ref"))&&(r.cacheID=xi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Ri={s:Si,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Pi(function(t){return arguments.length?ai.scrollTo(t,Di.sc()):ai.pageXOffset||oi[Si]||li[Si]||ui[Si]||0})},Di={s:Mi,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ri,sc:Pi(function(t){return arguments.length?ai.scrollTo(Ri.sc(),t):ai.pageYOffset||oi[Mi]||li[Mi]||ui[Mi]||0})},zi=function(t,e){return(e&&e._ctx&&e._ctx.selector||ii.utils.toArray)(t)[0]||("string"==typeof t&&!1!==ii.config().nullTargetWarn?console.warn("Element not found:",t):null)},Fi=function(t,e){var r=e.s,n=e.sc;ki(t)&&(t=oi.scrollingElement||li);var i=xi.indexOf(t),s=n===Di.sc?1:2;!~i&&(i=xi.push(t)-1),xi[i+s]||Ci(t,"scroll",Ai);var a=xi[i+s],o=a||(xi[i+s]=Pi(Oi(t,r),!0)||(ki(t)?n:Pi(function(e){return arguments.length?t[r]=e:t[r]})));return o.target=t,a||(o.smooth="smooth"===ii.getProperty(t,"scrollBehavior")),o},Ii=function(t,e,r){var n=t,i=t,s=wi(),a=s,o=e||50,l=Math.max(500,3*o),u=function(t,e){var l=wi();e||l-s>o?(i=n,n=t,a=s,s=l):r?n+=t:n=i+(t-i)/(l-a)*(s-a)};return{update:u,reset:function(){i=n=r?0:n,a=s=0},getVelocity:function(t){var e=a,o=i,c=wi();return(t||0===t)&&t!==n&&u(t),s===a||c-a>l?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},Ni=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Bi=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Li=function(){var t,e,r,n;(hi=ii.core.globals().ScrollTrigger)&&hi.core&&(t=hi.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,xi),n.push.apply(n,bi),xi=r,bi=n,Ti=function(t,r){return e[t](r)})},ji=function(t){return ii=t||_i(),!si&&ii&&"undefined"!=typeof document&&document.body&&(ai=window,oi=document,li=oi.documentElement,ui=oi.body,di=[ai,oi,li,ui],ii.utils.clamp,mi=ii.core.context||function(){},fi="onpointerenter"in ui?"pointer":"mouse",ci=Yi.isTouch=ai.matchMedia&&ai.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ai||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,gi=Yi.eventTypes=("ontouchstart"in li?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in li?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return vi=0},500),si=1),hi||Li(),si};Ri.op=Di,xi.cache=0;var Yi=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){si||ji(ii)||console.warn("Please gsap.registerPlugin(Observer)"),hi||Li();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,a=t.debounce,o=t.preventDefault,l=t.onStop,u=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,d=t.onDragStart,p=t.onDragEnd,g=t.onDrag,m=t.onPress,_=t.onRelease,v=t.onRight,y=t.onLeft,x=t.onUp,b=t.onDown,w=t.onChangeX,T=t.onChangeY,O=t.onChange,k=t.onToggleX,C=t.onToggleY,E=t.onHover,S=t.onHoverEnd,M=t.onMove,A=t.ignoreCheck,P=t.isNormalizer,R=t.onGestureStart,D=t.onGestureEnd,z=t.onWheel,F=t.onEnable,I=t.onDisable,N=t.onClick,B=t.scrollSpeed,L=t.capture,j=t.allowClicks,Y=t.lockAxis,X=t.onLockAxis;this.target=i=zi(i)||li,this.vars=t,c&&(c=ii.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,B=B||1,n=n||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(ai.getComputedStyle(ui).lineHeight)||22);var q,W,H,U,V,G,$,Z=this,Q=0,K=0,J=t.passive||!o&&!1!==t.passive,tt=Fi(i,Ri),et=Fi(i,Di),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===gi[0],st=ki(i),at=i.ownerDocument||oi,ot=[0,0,0],lt=[0,0,0],ut=0,ct=function(){return ut=wi()},ft=function(t,e){return(Z.event=t)&&c&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,c)||e&&it&&"touch"!==t.pointerType||A&&A(t,e)},ht=function(){var t=Z.deltaX=Bi(ot),r=Z.deltaY=Bi(lt),n=Math.abs(t)>=e,i=Math.abs(r)>=e;O&&(n||i)&&O(Z,t,r,ot,lt),n&&(v&&Z.deltaX>0&&v(Z),y&&Z.deltaX<0&&y(Z),w&&w(Z),k&&Z.deltaX<0!=Q<0&&k(Z),Q=Z.deltaX,ot[0]=ot[1]=ot[2]=0),i&&(b&&Z.deltaY>0&&b(Z),x&&Z.deltaY<0&&x(Z),T&&T(Z),C&&Z.deltaY<0!=K<0&&C(Z),K=Z.deltaY,lt[0]=lt[1]=lt[2]=0),(U||H)&&(M&&M(Z),H&&(d&&1===H&&d(Z),g&&g(Z),H=0),U=!1),G&&!(G=!1)&&X&&X(Z),V&&(z(Z),V=!1),q=0},dt=function(t,e,r){ot[r]+=t,lt[r]+=e,Z._vx.update(t),Z._vy.update(e),a?q||(q=requestAnimationFrame(ht)):ht()},pt=function(t,e){Y&&!$&&(Z.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(ot[2]+=t,Z._vx.update(t,!0)),"x"!==$&&(lt[2]+=e,Z._vy.update(e,!0)),a?q||(q=requestAnimationFrame(ht)):ht()},gt=function(t){if(!ft(t,1)){var e=(t=Ni(t,o)).clientX,n=t.clientY,i=e-Z.x,s=n-Z.y,a=Z.isDragging;Z.x=e,Z.y=n,(a||(i||s)&&(Math.abs(Z.startX-e)>=r||Math.abs(Z.startY-n)>=r))&&(H||(H=a?2:1),a||(Z.isDragging=!0),pt(i,s))}},mt=Z.onPress=function(t){ft(t,1)||t&&t.button||(Z.axis=$=null,W.pause(),Z.isPressed=!0,t=Ni(t),Q=K=0,Z.startX=Z.x=t.clientX,Z.startY=Z.y=t.clientY,Z._vx.reset(),Z._vy.reset(),Ci(P?i:at,gi[1],gt,J,!0),Z.deltaX=Z.deltaY=0,m&&m(Z))},_t=Z.onRelease=function(t){if(!ft(t,1)){Ei(P?i:at,gi[1],gt,!0);var e=!isNaN(Z.y-Z.startY),r=Z.isDragging,n=r&&(Math.abs(Z.x-Z.startX)>3||Math.abs(Z.y-Z.startY)>3),s=Ni(t);!n&&e&&(Z._vx.reset(),Z._vy.reset(),o&&j&&ii.delayedCall(.08,function(){if(wi()-ut>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(at.createEvent){var e=at.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,ai,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Z.isDragging=Z.isGesturing=Z.isPressed=!1,l&&r&&!P&&W.restart(!0),H&&ht(),p&&r&&p(Z),_&&_(Z,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(Z.isGesturing=!0)&&R(t,Z.isDragging)},yt=function(){return(Z.isGesturing=!1)||D(Z)},xt=function(t){if(!ft(t)){var e=tt(),r=et();dt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,l&&W.restart(!0)}},bt=function(t){if(!ft(t)){t=Ni(t,o),z&&(V=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?ai.innerHeight:1)*f;dt(t.deltaX*e,t.deltaY*e,0),l&&!P&&W.restart(!0)}},wt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-Z.x,i=r-Z.y;Z.x=e,Z.y=r,U=!0,l&&W.restart(!0),(n||i)&&pt(n,i)}},Tt=function(t){Z.event=t,E(Z)},Ot=function(t){Z.event=t,S(Z)},kt=function(t){return ft(t)||Ni(t,o)&&N(Z)};W=Z._dc=ii.delayedCall(u||.25,function(){Z._vx.reset(),Z._vy.reset(),W.pause(),l&&l(Z)}).pause(),Z.deltaX=Z.deltaY=0,Z._vx=Ii(0,50,!0),Z._vy=Ii(0,50,!0),Z.scrollX=tt,Z.scrollY=et,Z.isDragging=Z.isGesturing=Z.isPressed=!1,mi(this),Z.enable=function(t){return Z.isEnabled||(Ci(st?at:i,"scroll",Ai),n.indexOf("scroll")>=0&&Ci(st?at:i,"scroll",xt,J,L),n.indexOf("wheel")>=0&&Ci(i,"wheel",bt,J,L),(n.indexOf("touch")>=0&&ci||n.indexOf("pointer")>=0)&&(Ci(i,gi[0],mt,J,L),Ci(at,gi[2],_t),Ci(at,gi[3],_t),j&&Ci(i,"click",ct,!0,!0),N&&Ci(i,"click",kt),R&&Ci(at,"gesturestart",vt),D&&Ci(at,"gestureend",yt),E&&Ci(i,fi+"enter",Tt),S&&Ci(i,fi+"leave",Ot),M&&Ci(i,fi+"move",wt)),Z.isEnabled=!0,Z.isDragging=Z.isGesturing=Z.isPressed=U=H=!1,Z._vx.reset(),Z._vy.reset(),rt=tt(),nt=et(),t&&t.type&&mt(t),F&&F(Z)),Z},Z.disable=function(){Z.isEnabled&&(yi.filter(function(t){return t!==Z&&ki(t.target)}).length||Ei(st?at:i,"scroll",Ai),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),Ei(P?i:at,gi[1],gt,!0)),Ei(st?at:i,"scroll",xt,L),Ei(i,"wheel",bt,L),Ei(i,gi[0],mt,L),Ei(at,gi[2],_t),Ei(at,gi[3],_t),Ei(i,"click",ct,!0),Ei(i,"click",kt),Ei(at,"gesturestart",vt),Ei(at,"gestureend",yt),Ei(i,fi+"enter",Tt),Ei(i,fi+"leave",Ot),Ei(i,fi+"move",wt),Z.isEnabled=Z.isPressed=Z.isDragging=!1,I&&I(Z))},Z.kill=Z.revert=function(){Z.disable();var t=yi.indexOf(Z);t>=0&&yi.splice(t,1),pi===Z&&(pi=0)},yi.push(Z),P&&ki(i)&&(pi=Z),Z.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&ni(e.prototype,r),n&&ni(e,n),t}();Yi.version="3.15.0",Yi.create=function(t){return new Yi(t)},Yi.register=ji,Yi.getAll=function(){return yi.slice()},Yi.getById=function(t){return yi.filter(function(e){return e.vars.id===t})[0]},_i()&&ii.registerPlugin(Yi);
|
|
29
28
|
/*!
|
|
30
|
-
*
|
|
29
|
+
* ScrollTrigger 3.15.0
|
|
31
30
|
* https://gsap.com
|
|
32
31
|
*
|
|
33
32
|
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
34
33
|
* Subject to the terms at https://gsap.com/standard-license
|
|
35
34
|
* @author: Jack Doyle, jack@greensock.com
|
|
36
35
|
*/
|
|
37
|
-
var ci,fi,hi,pi,di,gi,_i,mi,vi,yi,xi,bi,wi,Ti=function(){return ci||"undefined"!=typeof window&&(ci=window.gsap)&&ci.registerPlugin&&ci},ki=1,Ci=[],Oi=[],Ei=[],Si=Date.now,Mi=function(t,e){return e},Ai=function(t,e){return~Ei.indexOf(t)&&Ei[Ei.indexOf(t)+1][e]},Pi=function(t){return!!~yi.indexOf(t)},Ri=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Di=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},zi="scrollLeft",Fi="scrollTop",Ii=function(){return xi&&xi.isPressed||Oi.cache++},Ni=function(t,e){var r=function r(n){if(n||0===n){ki&&(hi.history.scrollRestoration="manual");var i=xi&&xi.isPressed;n=r.v=Math.round(n)||(xi&&xi.iOS?1:0),t(n),r.cacheID=Oi.cache,i&&Mi("ss",n)}else(e||Oi.cache!==r.cacheID||Mi("ref"))&&(r.cacheID=Oi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Bi={s:zi,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ni(function(t){return arguments.length?hi.scrollTo(t,Li.sc()):hi.pageXOffset||pi[zi]||di[zi]||gi[zi]||0})},Li={s:Fi,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Bi,sc:Ni(function(t){return arguments.length?hi.scrollTo(Bi.sc(),t):hi.pageYOffset||pi[Fi]||di[Fi]||gi[Fi]||0})},Yi=function(t,e){return(e&&e._ctx&&e._ctx.selector||ci.utils.toArray)(t)[0]||("string"==typeof t&&!1!==ci.config().nullTargetWarn?console.warn("Element not found:",t):null)},ji=function(t,e){var r=e.s,n=e.sc;Pi(t)&&(t=pi.scrollingElement||di);var i=Oi.indexOf(t),s=n===Li.sc?1:2;!~i&&(i=Oi.push(t)-1),Oi[i+s]||Ri(t,"scroll",Ii);var a=Oi[i+s],o=a||(Oi[i+s]=Ni(Ai(t,r),!0)||(Pi(t)?n:Ni(function(e){return arguments.length?t[r]=e:t[r]})));return o.target=t,a||(o.smooth="smooth"===ci.getProperty(t,"scrollBehavior")),o},Xi=function(t,e,r){var n=t,i=t,s=Si(),a=s,o=e||50,u=Math.max(500,3*o),l=function(t,e){var u=Si();e||u-s>o?(i=n,n=t,a=s,s=u):r?n+=t:n=i+(t-i)/(u-a)*(s-a)};return{update:l,reset:function(){i=n=r?0:n,a=s=0},getVelocity:function(t){var e=a,o=i,c=Si();return(t||0===t)&&t!==n&&l(t),s===a||c-a>u?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},qi=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Wi=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Hi=function(){var t,e,r,n;(vi=ci.core.globals().ScrollTrigger)&&vi.core&&(t=vi.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Oi),n.push.apply(n,Ei),Oi=r,Ei=n,Mi=function(t,r){return e[t](r)})},Ui=function(t){return ci=t||Ti(),!fi&&ci&&"undefined"!=typeof document&&document.body&&(hi=window,pi=document,di=pi.documentElement,gi=pi.body,yi=[hi,pi,di,gi],ci.utils.clamp,wi=ci.core.context||function(){},mi="onpointerenter"in gi?"pointer":"mouse",_i=Vi.isTouch=hi.matchMedia&&hi.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in hi||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,bi=Vi.eventTypes=("ontouchstart"in di?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in di?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return ki=0},500),fi=1),vi||Hi(),fi};Bi.op=Li,Oi.cache=0;var Vi=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){fi||Ui(ci)||console.warn("Please gsap.registerPlugin(Observer)"),vi||Hi();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,a=t.debounce,o=t.preventDefault,u=t.onStop,l=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,p=t.onDragStart,d=t.onDragEnd,g=t.onDrag,_=t.onPress,m=t.onRelease,v=t.onRight,y=t.onLeft,x=t.onUp,b=t.onDown,w=t.onChangeX,T=t.onChangeY,k=t.onChange,C=t.onToggleX,O=t.onToggleY,E=t.onHover,S=t.onHoverEnd,M=t.onMove,A=t.ignoreCheck,P=t.isNormalizer,R=t.onGestureStart,D=t.onGestureEnd,z=t.onWheel,F=t.onEnable,I=t.onDisable,N=t.onClick,B=t.scrollSpeed,L=t.capture,Y=t.allowClicks,j=t.lockAxis,X=t.onLockAxis;this.target=i=Yi(i)||di,this.vars=t,c&&(c=ci.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,B=B||1,n=n||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(hi.getComputedStyle(gi).lineHeight)||22);var q,W,H,U,V,G,$,Q=this,Z=0,K=0,J=t.passive||!o&&!1!==t.passive,tt=ji(i,Bi),et=ji(i,Li),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===bi[0],st=Pi(i),at=i.ownerDocument||pi,ot=[0,0,0],ut=[0,0,0],lt=0,ct=function(){return lt=Si()},ft=function(t,e){return(Q.event=t)&&c&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,c)||e&&it&&"touch"!==t.pointerType||A&&A(t,e)},ht=function(){var t=Q.deltaX=Wi(ot),r=Q.deltaY=Wi(ut),n=Math.abs(t)>=e,i=Math.abs(r)>=e;k&&(n||i)&&k(Q,t,r,ot,ut),n&&(v&&Q.deltaX>0&&v(Q),y&&Q.deltaX<0&&y(Q),w&&w(Q),C&&Q.deltaX<0!=Z<0&&C(Q),Z=Q.deltaX,ot[0]=ot[1]=ot[2]=0),i&&(b&&Q.deltaY>0&&b(Q),x&&Q.deltaY<0&&x(Q),T&&T(Q),O&&Q.deltaY<0!=K<0&&O(Q),K=Q.deltaY,ut[0]=ut[1]=ut[2]=0),(U||H)&&(M&&M(Q),H&&(p&&1===H&&p(Q),g&&g(Q),H=0),U=!1),G&&!(G=!1)&&X&&X(Q),V&&(z(Q),V=!1),q=0},pt=function(t,e,r){ot[r]+=t,ut[r]+=e,Q._vx.update(t),Q._vy.update(e),a?q||(q=requestAnimationFrame(ht)):ht()},dt=function(t,e){j&&!$&&(Q.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(ot[2]+=t,Q._vx.update(t,!0)),"x"!==$&&(ut[2]+=e,Q._vy.update(e,!0)),a?q||(q=requestAnimationFrame(ht)):ht()},gt=function(t){if(!ft(t,1)){var e=(t=qi(t,o)).clientX,n=t.clientY,i=e-Q.x,s=n-Q.y,a=Q.isDragging;Q.x=e,Q.y=n,(a||(i||s)&&(Math.abs(Q.startX-e)>=r||Math.abs(Q.startY-n)>=r))&&(H||(H=a?2:1),a||(Q.isDragging=!0),dt(i,s))}},_t=Q.onPress=function(t){ft(t,1)||t&&t.button||(Q.axis=$=null,W.pause(),Q.isPressed=!0,t=qi(t),Z=K=0,Q.startX=Q.x=t.clientX,Q.startY=Q.y=t.clientY,Q._vx.reset(),Q._vy.reset(),Ri(P?i:at,bi[1],gt,J,!0),Q.deltaX=Q.deltaY=0,_&&_(Q))},mt=Q.onRelease=function(t){if(!ft(t,1)){Di(P?i:at,bi[1],gt,!0);var e=!isNaN(Q.y-Q.startY),r=Q.isDragging,n=r&&(Math.abs(Q.x-Q.startX)>3||Math.abs(Q.y-Q.startY)>3),s=qi(t);!n&&e&&(Q._vx.reset(),Q._vy.reset(),o&&Y&&ci.delayedCall(.08,function(){if(Si()-lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(at.createEvent){var e=at.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,hi,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Q.isDragging=Q.isGesturing=Q.isPressed=!1,u&&r&&!P&&W.restart(!0),H&&ht(),d&&r&&d(Q),m&&m(Q,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(Q.isGesturing=!0)&&R(t,Q.isDragging)},yt=function(){return(Q.isGesturing=!1)||D(Q)},xt=function(t){if(!ft(t)){var e=tt(),r=et();pt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,u&&W.restart(!0)}},bt=function(t){if(!ft(t)){t=qi(t,o),z&&(V=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?hi.innerHeight:1)*f;pt(t.deltaX*e,t.deltaY*e,0),u&&!P&&W.restart(!0)}},wt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-Q.x,i=r-Q.y;Q.x=e,Q.y=r,U=!0,u&&W.restart(!0),(n||i)&&dt(n,i)}},Tt=function(t){Q.event=t,E(Q)},kt=function(t){Q.event=t,S(Q)},Ct=function(t){return ft(t)||qi(t,o)&&N(Q)};W=Q._dc=ci.delayedCall(l||.25,function(){Q._vx.reset(),Q._vy.reset(),W.pause(),u&&u(Q)}).pause(),Q.deltaX=Q.deltaY=0,Q._vx=Xi(0,50,!0),Q._vy=Xi(0,50,!0),Q.scrollX=tt,Q.scrollY=et,Q.isDragging=Q.isGesturing=Q.isPressed=!1,wi(this),Q.enable=function(t){return Q.isEnabled||(Ri(st?at:i,"scroll",Ii),n.indexOf("scroll")>=0&&Ri(st?at:i,"scroll",xt,J,L),n.indexOf("wheel")>=0&&Ri(i,"wheel",bt,J,L),(n.indexOf("touch")>=0&&_i||n.indexOf("pointer")>=0)&&(Ri(i,bi[0],_t,J,L),Ri(at,bi[2],mt),Ri(at,bi[3],mt),Y&&Ri(i,"click",ct,!0,!0),N&&Ri(i,"click",Ct),R&&Ri(at,"gesturestart",vt),D&&Ri(at,"gestureend",yt),E&&Ri(i,mi+"enter",Tt),S&&Ri(i,mi+"leave",kt),M&&Ri(i,mi+"move",wt)),Q.isEnabled=!0,Q.isDragging=Q.isGesturing=Q.isPressed=U=H=!1,Q._vx.reset(),Q._vy.reset(),rt=tt(),nt=et(),t&&t.type&&_t(t),F&&F(Q)),Q},Q.disable=function(){Q.isEnabled&&(Ci.filter(function(t){return t!==Q&&Pi(t.target)}).length||Di(st?at:i,"scroll",Ii),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),Di(P?i:at,bi[1],gt,!0)),Di(st?at:i,"scroll",xt,L),Di(i,"wheel",bt,L),Di(i,bi[0],_t,L),Di(at,bi[2],mt),Di(at,bi[3],mt),Di(i,"click",ct,!0),Di(i,"click",Ct),Di(at,"gesturestart",vt),Di(at,"gestureend",yt),Di(i,mi+"enter",Tt),Di(i,mi+"leave",kt),Di(i,mi+"move",wt),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var t=Ci.indexOf(Q);t>=0&&Ci.splice(t,1),xi===Q&&(xi=0)},Ci.push(Q),P&&Pi(i)&&(xi=Q),Q.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&li(e.prototype,r),n&&li(e,n),t}();Vi.version="3.15.0",Vi.create=function(t){return new Vi(t)},Vi.register=Ui,Vi.getAll=function(){return Ci.slice()},Vi.getById=function(t){return Ci.filter(function(e){return e.vars.id===t})[0]},Ti()&&ci.registerPlugin(Vi);
|
|
36
|
+
var Xi,qi,Wi,Hi,Ui,Vi,Gi,$i,Zi,Qi,Ki,Ji,ts,es,rs,ns,is,ss,as,os,ls,us,cs,fs,hs,ds,ps,gs,ms,_s,vs,ys,xs,bs,ws,Ts,Os,ks,Cs=1,Es=Date.now,Ss=Es(),Ms=0,As=0,Ps=function(t,e,r){var n=Hs(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Rs=function(t,e){return!e||Hs(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ds=function t(){return As&&requestAnimationFrame(t)},zs=function(){return es=1},Fs=function(){return es=0},Is=function(t){return t},Ns=function(t){return Math.round(1e5*t)/1e5||0},Bs=function(){return"undefined"!=typeof window},Ls=function(){return Xi||Bs()&&(Xi=window.gsap)&&Xi.registerPlugin&&Xi},js=function(t){return!!~Gi.indexOf(t)},Ys=function(t){return("Height"===t?vs:Wi["inner"+t])||Ui["client"+t]||Vi["client"+t]},Xs=function(t){return Oi(t,"getBoundingClientRect")||(js(t)?function(){return ro.width=Wi.innerWidth,ro.height=vs,ro}:function(){return pa(t)})},qs=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Oi(t,r))?s()-Xs(t)()[i]:js(t)?(Ui[r]||Vi[r])-Ys(n):t[r]-t["offset"+n])},Ws=function(t,e){for(var r=0;r<as.length;r+=3)(!e||~e.indexOf(as[r+1]))&&t(as[r],as[r+1],as[r+2])},Hs=function(t){return"string"==typeof t},Us=function(t){return"function"==typeof t},Vs=function(t){return"number"==typeof t},Gs=function(t){return"object"==typeof t},$s=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},Zs=function(t,e,r){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return e(t,r)}):e(t,r);n&&n.totalTime&&(t.callbackAnimation=n)}},Qs=Math.abs,Ks="left",Js="right",ta="bottom",ea="width",ra="height",na="Right",ia="Left",sa="Top",aa="Bottom",oa="padding",la="margin",ua="Width",ca="Height",fa="px",ha=function(t){return Wi.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},da=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},pa=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==ha(t)[rs]&&Xi.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect?t.getBoundingClientRect():t.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),n},ga=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},ma=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},_a=function(t){var e=Xi.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort(function(t,e){return t-e});return r?function(t,n,i){var s;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,s=0;s<r.length;s++)if(r[s]>=t)return r[s];return r[s-1]}for(s=r.length,t+=i;s--;)if(r[s]<=t)return r[s];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var s=e(r);return!n||Math.abs(s-r)<i||s-r<0==n<0?s:e(n<0?r-t:r+t)}},va=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},ya=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},xa=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},ba=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},wa={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ta={toggleActions:"play",anticipatePin:0},Oa={top:0,left:0,center:.5,bottom:1,right:1},ka=function(t,e){if(Hs(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in Oa?Oa[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ca=function(t,e,r,n,i,s,a,o){var l=i.startColor,u=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,d=Hi.createElement("div"),p=js(r)||"fixed"===Oi(r,"pinType"),g=-1!==t.indexOf("scroller"),m=p?Vi:"IFRAME"===r.tagName?r.contentDocument.body:r,_=-1!==t.indexOf("start"),v=_?l:u,y="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||o)&&p?"fixed;":"absolute;"),(g||o||!p)&&(y+=(n===Di?Js:ta)+":"+(s+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=_,d.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),d.style.cssText=y,d.innerText=e||0===e?t+"-"+e:t,m.children[0]?m.insertBefore(d,m.children[0]):m.appendChild(d),d._offset=d["offset"+n.op.d2],Ea(d,0,n,_),d},Ea=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],a=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+ua]=1,i["border"+a+ua]=0,i[r.p]=e+"px",Xi.set(t,i)},Sa=[],Ma={},Aa=function(){return Es()-Ms>34&&(ws||(ws=requestAnimationFrame($a)))},Pa=function(){(!cs||!cs.isPressed||cs.startX>Vi.clientWidth)&&(xi.cache++,cs?ws||(ws=requestAnimationFrame($a)):$a(),Ms||Na("scrollStart"),Ms=Es())},Ra=function(){ds=Wi.innerWidth,hs=Wi.innerHeight},Da=function(t){xi.cache++,(!0===t||!ts&&!us&&!Hi.fullscreenElement&&!Hi.webkitFullscreenElement&&(!fs||ds!==Wi.innerWidth||Math.abs(Wi.innerHeight-hs)>.25*Wi.innerHeight))&&$i.restart(!0)},za={},Fa=[],Ia=function t(){return xa(uo,"scrollEnd",t)||Ua(!0)},Na=function(t){return za[t]&&za[t].map(function(t){return t()})||Fa},Ba=[],La=function(t){for(var e=0;e<Ba.length;e+=5)(!t||Ba[e+4]&&Ba[e+4].query===t)&&(Ba[e].style.cssText=Ba[e+1],Ba[e].getBBox&&Ba[e].setAttribute("transform",Ba[e+2]||""),Ba[e+3].uncache=1)},ja=function(){return xi.forEach(function(t){return Us(t)&&++t.cacheID&&(t.rec=t())})},Ya=function(t,e){var r;for(ns=0;ns<Sa.length;ns++)!(r=Sa[ns])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));ys=!0,e&&La(e),e||Na("revert")},Xa=function(t,e){xi.cache++,(e||!Ts)&&xi.forEach(function(t){return Us(t)&&t.cacheID++&&(t.rec=0)}),Hs(t)&&(Wi.history.scrollRestoration=ms=t)},qa=0,Wa=function(){Vi.appendChild(_s),vs=!cs&&_s.offsetHeight||Wi.innerHeight,Vi.removeChild(_s)},Ha=function(t){return Zi(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},Ua=function(t,e){if(Ui=Hi.documentElement,Vi=Hi.body,Gi=[Wi,Hi,Ui,Vi],!Ms||t||ys){Wa(),Ts=uo.isRefreshing=!0,ys||ja();var r=Na("refreshInit");os&&uo.sort(),e||Ya(),xi.forEach(function(t){Us(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),Sa.slice(0).forEach(function(t){return t.refresh()}),ys=!1,Sa.forEach(function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}}),xs=1,Ha(!0),Sa.forEach(function(t){var e=qs(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,n=t._startClamp&&t.start>=e;(r||n)&&t.setPositions(n?e-1:t.start,r?Math.max(n?e:t.start+1,e):t.end,!0)}),Ha(!1),xs=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),xi.forEach(function(t){Us(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Xa(ms,1),$i.pause(),qa++,Ts=2,$a(2),Sa.forEach(function(t){return Us(t.vars.onRefresh)&&t.vars.onRefresh(t)}),Ts=uo.isRefreshing=!1,Na("refresh")}else ya(uo,"scrollEnd",Ia)},Va=0,Ga=1,$a=function(t){if(2===t||!Ts&&!ys){uo.isUpdating=!0,ks&&ks.update(0);var e=Sa.length,r=Es(),n=r-Ss>=50,i=e&&Sa[0].scroll();if(Ga=Va>i?-1:1,Ts||(Va=i),n&&(Ms&&!es&&r-Ms>200&&(Ms=0,Na("scrollEnd")),Ki=Ss,Ss=r),Ga<0){for(ns=e;ns-- >0;)Sa[ns]&&Sa[ns].update(0,n);Ga=1}else for(ns=0;ns<e;ns++)Sa[ns]&&Sa[ns].update(0,n);uo.isUpdating=!1}ws=0},Za=[Ks,"top",ta,Js,la+aa,la+na,la+sa,la+ia,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Qa=Za.concat([ea,ra,"boxSizing","max"+ua,"max"+ca,"position",la,oa,oa+sa,oa+na,oa+aa,oa+ia]),Ka=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=Za.length,a=e.style,o=t.style;s--;)a[i=Za[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[ta]=o[Js]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[ea]=ga(t,Ri)+fa,a[ra]=ga(t,Di)+fa,a[oa]=o[la]=o.top=o[Ks]="0",to(n),o[ea]=o["max"+ua]=r[ea],o[ra]=o["max"+ca]=r[ra],o[oa]=r[oa],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},Ja=/([A-Z])/g,to=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Xi.core.getCache(t.t)).uncache=1;s<i;s+=2)r=t[s+1],e=t[s],r?n[e]=r:n[e]&&n.removeProperty(e.replace(Ja,"-$1").toLowerCase())}},eo=function(t){for(var e=Qa.length,r=t.style,n=[],i=0;i<e;i++)n.push(Qa[i],r[Qa[i]]);return n.t=t,n},ro={left:0,top:0},no=function(t,e,r,n,i,s,a,o,l,u,c,f,h,d){Us(t)&&(t=t(o)),Hs(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?ka("0"+t.substr(3),r):0));var p,g,m,_=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),Vs(t))h&&(t=Xi.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&Ea(a,r,n,!0);else{Us(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");m=zi(e,o)||Vi,(v=pa(m)||{})&&(v.left||v.top)||"none"!==ha(m).display||(b=m.style.display,m.style.display="block",v=pa(m),b?m.style.display=b:m.style.removeProperty("display")),y=ka(w[0],v[n.d]),x=ka(w[1]||"0",r),t=v[n.p]-l[n.p]-u+y+i-x,a&&Ea(a,x,n,r-x<20||a._isStart&&x>20),r-=r-x}if(d&&(o[d]=t||-.001,t<0&&(t=0)),s){var T=t+r,O=s._isStart;p="scroll"+n.d2,Ea(s,T,n,O&&T>20||!O&&(c?Math.max(Vi[p],Ui[p]):s.parentNode[p])<=T+1),c&&(l=pa(a),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+fa))}return h&&m&&(p=pa(m),h.seek(f),g=pa(m),h._caScrollDist=p[n.p]-g[n.p],t=t/h._caScrollDist*f),h&&h.seek(_),h?t:Math.round(t)},io=/(webkit|moz|length|cssText|inset)/i,so=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===Vi){for(i in t._stOrig=a.cssText,s=ha(t))+i||io.test(i)||!s[i]||"string"!=typeof a[i]||"0"===i||(a[i]=s[i]);a.top=r,a.left=n}else a.cssText=t._stOrig;Xi.core.getCache(t).uncache=1,e.appendChild(t)}},ao=function(t,e,r){var n=e,i=n;return function(e){var s=Math.round(t());return s!==n&&s!==i&&Math.abs(s-n)>3&&Math.abs(s-i)>3&&(e=s,r&&r()),i=n,n=Math.round(e)}},oo=function(t,e,r){var n={};n[e.p]="+="+r,Xi.set(t,n)},lo=function(t,e){var r=Fi(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,l){var u=e.tween,c=s.onComplete,f={};a=a||r();var h=ao(r,a,function(){u.kill(),e.tween=0});return l=o&&l||0,o=o||i-a,u&&u.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return h(a+o*u.ratio+l*u.ratio*u.ratio)},s.onUpdate=function(){xi.cache++,e.tween&&$a()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=Xi.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ya(t,"wheel",r.wheelHandler),uo.isTouch&&ya(t,"touchmove",r.wheelHandler),i},uo=function(){function t(e,r){qi||t.register(Xi)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),gs(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),As){var n,i,s,a,o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w,T,O,k,C,E,S,M,A,P,R,D,z,F,I,N,B,L,j,Y,X,q,W,H=e=da(Hs(e)||Vs(e)||e.nodeType?{trigger:e}:e,Ta),U=H.onUpdate,V=H.toggleClass,G=H.id,$=H.onToggle,Z=H.onRefresh,Q=H.scrub,K=H.trigger,J=H.pin,tt=H.pinSpacing,et=H.invalidateOnRefresh,rt=H.anticipatePin,nt=H.onScrubComplete,it=H.onSnapComplete,st=H.once,at=H.snap,ot=H.pinReparent,lt=H.pinSpacer,ut=H.containerAnimation,ct=H.fastScrollEnd,ft=H.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Ri:Di,dt=!Q&&0!==Q,pt=zi(e.scroller||Wi),gt=Xi.core.getCache(pt),mt=js(pt),_t="fixed"===("pinType"in e?e.pinType:Oi(pt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:Ta.markers,bt=mt?0:parseFloat(ha(pt)["border"+ht.p2+ua])||0,wt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},Ot=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=Oi(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Ys(i):t["client"+i])||0}}(pt,mt,ht),kt=function(t,e){return!e||~bi.indexOf(t)?Xs(t):function(){return ro}}(pt,mt),Ct=0,Et=0,St=0,Mt=Fi(pt,ht);if(wt._startClamp=wt._endClamp=!1,wt._dir=ht,rt*=45,wt.scroller=pt,wt.scroll=ut?ut.time.bind(ut):Mt,a=Mt(),wt.vars=e,r=r||e.animation,"refreshPriority"in e&&(os=1,-9999===e.refreshPriority&&(ks=wt)),gt.tweenScroll=gt.tweenScroll||{top:lo(pt,Di),left:lo(pt,Ri)},wt.tweenTo=n=gt.tweenScroll[ht.p],wt.scrubDuration=function(t){(F=Vs(t)&&t)?z?z.duration(t):z=Xi.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:F,paused:!0,onComplete:function(){return nt&&nt(wt)}}):(z&&z.progress(1).kill(),z=0)},r&&(r.vars.lazy=!1,r._initted&&!wt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),wt.animation=r.pause(),r.scrollTrigger=wt,wt.scrubDuration(Q),R=0,G||(G=r.vars.id)),at&&(Gs(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in Vi.style&&Xi.set(mt?[Vi,Ui]:pt,{scrollBehavior:"auto"}),xi.forEach(function(t){return Us(t)&&t.target===(mt?Hi.scrollingElement||Ui:pt)&&(t.smooth=!1)}),s=Us(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Xi.utils.snap(ma(t),e)}}(r):"labelsDirectional"===at.snapTo?(X=r,function(t,e){return _a(ma(X))(t,e.direction)}):!1!==at.directional?function(t,e){return _a(at.snapTo)(t,Es()-Et<500?0:e.direction)}:Xi.utils.snap(at.snapTo),I=at.duration||{min:.1,max:2},I=Gs(I)?Qi(I.min,I.max):Qi(I,I),N=Xi.delayedCall(at.delay||F/2||.1,function(){var t=Mt(),e=Es()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||es||Ct===t)wt.isActive&&Ct!==t&&N.restart(!0);else{var a,o,c=(t-l)/m,f=r&&!dt?r.totalProgress():c,h=e?0:(f-D)/(Es()-Ki)*1e3||0,d=Xi.utils.clamp(-c,1-c,Qs(h/2)*h/.185),p=c+(!1===at.inertia?0:d),g=at,_=g.onStart,v=g.onInterrupt,y=g.onComplete;if(a=s(p,wt),Vs(a)||(a=p),o=Math.max(0,Math.round(l+a*m)),t<=u&&t>=l&&o!==t){if(i&&!i._initted&&i.data<=Qs(o-t))return;!1===at.inertia&&(d=a-c),n(o,{duration:I(Qs(.185*Math.max(Qs(p-f),Qs(a-f))/h/.05||0)),ease:at.ease||"power3",data:Qs(o-t),onInterrupt:function(){return N.restart(!0)&&v&&Zs(wt,v)},onComplete:function(){wt.update(),Ct=Mt(),r&&!dt&&(z?z.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),R=D=r&&!dt?r.totalProgress():wt.progress,it&&it(wt),y&&Zs(wt,y)}},t,d*m,o-t-d*m),_&&Zs(wt,_,n.tween)}}}).pause()),G&&(Ma[G]=wt),(Y=(K=wt.trigger=zi(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(Y=Y(wt)),J=!0===J?K:zi(J),Hs(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===la||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===ha(J.parentNode).display)&&oa),wt.pin=J,(i=Xi.core.getCache(J)).spacer?_=i.pinState:(lt&&((lt=zi(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=eo(lt))),i.spacer=x=lt||Hi.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=_=eo(J)),!1!==e.force3D&&Xi.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=ha(J),C=P[tt+ht.os2],w=Xi.getProperty(J),T=Xi.quickSetter(J,ht.a,fa),Ka(J,x,P),y=eo(J)),xt){p=Gs(xt)?da(xt,wa):wa,h=Ca("scroller-start",G,pt,ht,p,0),d=Ca("scroller-end",G,pt,ht,p,0,h),b=h["offset"+ht.op.d2];var At=zi(Oi(pt,"content")||pt);c=this.markerStart=Ca("start",G,At,ht,p,b,0,ut),f=this.markerEnd=Ca("end",G,At,ht,p,b,0,ut),ut&&(j=Xi.quickSetter([c,f],ht.a,fa)),_t||bi.length&&!0===Oi(pt,"fixedMarkers")||(W=ha(q=mt?Vi:pt).position,q.style.position="absolute"===W||"fixed"===W?W:"relative",Xi.set([h,d],{force3D:!0}),S=Xi.quickSetter(h,ht.a,fa),A=Xi.quickSetter(d,ht.a,fa))}if(ut){var Pt=ut.vars.onUpdate,Rt=ut.vars.onUpdateParams;ut.eventCallback("onUpdate",function(){wt.update(0,0,1),Pt&&Pt.apply(ut,Rt||[])})}if(wt.previous=function(){return Sa[Sa.indexOf(wt)-1]},wt.next=function(){return Sa[Sa.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=ts;n!==wt.isReverted&&(n&&(B=Math.max(Mt(),wt.scroll.rec||0),St=wt.progress,L=r&&r.progress()),c&&[c,f,h,d].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(ts=wt,wt.update(n)),!J||ot&&wt.isActive||(n?function(t,e,r){to(r);var n=t._gsap;if(n.spacerIsNative)to(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(J,x,_):Ka(J,x,ha(J),E)),n||wt.update(n),ts=i,wt.isReverted=n)},wt.refresh=function(i,s,p,b){if(!ts&&wt.enabled||s)if(J&&i&&Ms)ya(t,"scrollEnd",Ia);else{!Ts&&Tt&&Tt(wt),ts=wt,n.tween&&!p&&(n.tween.kill(),n.tween=0),z&&z.pause(),et&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(t){return t.vars.immediateRender&&t.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var T,C,S,A,P,R,D,F,I,j,Y,X,q,W=Ot(),H=kt(),U=ut?ut.duration():qs(pt,ht),V=m<=.01||!m,G=0,$=b||0,Q=Gs(p)?p.end:e.end,rt=e.endTrigger||K,nt=Gs(p)?p.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&zi(e.pinnedContainer,wt),st=K&&Math.max(0,Sa.indexOf(wt))||0,at=st;for(xt&&Gs(p)&&(X=Xi.getProperty(h,ht.p),q=Xi.getProperty(d,ht.p));at-- >0;)(R=Sa[at]).end||R.refresh(0,1)||(ts=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(j||(j=[]),j.unshift(R),R.revert(!0,!0)),R!==Sa[at]&&(st--,at--);for(Us(nt)&&(nt=nt(wt)),nt=Ps(nt,"start",wt),l=no(nt,K,W,ht,Mt(),c,h,wt,H,bt,_t,U,ut,wt._startClamp&&"_startClamp")||(J?-.001:0),Us(Q)&&(Q=Q(wt)),Hs(Q)&&!Q.indexOf("+=")&&(~Q.indexOf(" ")?Q=(Hs(nt)?nt.split(" ")[0]:"")+Q:(G=ka(Q.substr(2),W),Q=Hs(nt)?nt:(ut?Xi.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+G,rt=K)),Q=Ps(Q,"end",wt),u=Math.max(l,no(Q||(rt?"100% 0":U),rt,W,ht,Mt()+G,f,d,wt,H,bt,_t,U,ut,wt._endClamp&&"_endClamp"))||-.001,G=0,at=st;at--;)(D=(R=Sa[at]||{}).pin)&&R.start-R._pinPush<=l&&!ut&&R.end>0&&(T=R.end-(wt._startClamp?Math.max(0,R.start):R.start),(D===K&&R.start-R._pinPush<l||D===it)&&isNaN(nt)&&(G+=T*(1-R.progress)),D===J&&($+=T));if(l+=G,u+=G,wt._startClamp&&(wt._startClamp+=G),wt._endClamp&&!Ts&&(wt._endClamp=u||-.001,u=Math.min(u,qs(pt,ht))),m=u-l||(l-=.01)&&.001,V&&(St=Xi.utils.clamp(0,1,Xi.utils.normalize(l,u,B))),wt._pinPush=$,c&&G&&((T={})[ht.a]="+="+G,it&&(T[ht.p]="-="+Mt()),Xi.set([c,f],T)),!J||xs&&wt.end>=qs(pt,ht)){if(K&&Mt()&&!ut)for(C=K.parentNode;C&&C!==Vi;)C._pinOffset&&(l-=C._pinOffset,u-=C._pinOffset),C=C.parentNode}else T=ha(J),A=ht===Di,S=Mt(),O=parseFloat(w(ht.a))+$,!U&&u>1&&(Y={style:Y=(mt?Hi.scrollingElement||Ui:pt).style,value:Y["overflow"+ht.a.toUpperCase()]},mt&&"scroll"!==ha(Vi)["overflow"+ht.a.toUpperCase()]&&(Y.style["overflow"+ht.a.toUpperCase()]="scroll")),Ka(J,x,T),y=eo(J),C=pa(J,!0),F=_t&&Fi(pt,A?Ri:Di)(),tt?((E=[tt+ht.os2,m+$+fa]).t=x,(at=tt===oa?ga(J,ht)+m+$:0)&&(E.push(ht.d,at+fa),"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+fa)),to(E),it&&Sa.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),_t&&Mt(B)):(at=ga(J,ht))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+fa),_t&&((P={top:C.top+(A?S-l:F)+fa,left:C.left+(A?F:S-l)+fa,boxSizing:"border-box",position:"fixed"})[ea]=P["max"+ua]=Math.ceil(C.width)+fa,P[ra]=P["max"+ca]=Math.ceil(C.height)+fa,P[la]=P[la+sa]=P[la+na]=P[la+aa]=P[la+ia]="0",P[oa]=T[oa],P[oa+sa]=T[oa+sa],P[oa+na]=T[oa+na],P[oa+aa]=T[oa+aa],P[oa+ia]=T[oa+ia],v=function(t,e,r){for(var n,i=[],s=t.length,a=r?8:0;a<s;a+=2)n=t[a],i.push(n,n in e?e[n]:t[a+1]);return i.t=t.t,i}(_,P,ot),Ts&&Mt(0)),r?(I=r._initted,ls(1),r.render(r.duration(),!0,!0),k=w(ht.a)-O+m+$,M=Math.abs(m-k)>1,_t&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),I||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ls(0)):k=m,Y&&(Y.value?Y.style["overflow"+ht.a.toUpperCase()]=Y.value:Y.style.removeProperty("overflow-"+ht.a));j&&j.forEach(function(t){return t.revert(!1,!0)}),wt.start=l,wt.end=u,a=o=Ts?B:Mt(),ut||Ts||(a<B&&Mt(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Es(),N&&(Ct=-1,N.restart(!0)),ts=0,r&&dt&&(r._initted||L)&&r.progress()!==L&&r.progress(L||0,!0).render(r.time(),!0,!0),(V||St!==wt.progress||ut||et||r&&!r._initted)&&(r&&!dt&&(r._initted||St||!1!==r.vars.immediateRender)&&r.totalProgress(ut&&l<-.001&&!St?Xi.utils.normalize(l,u,0):St,!0),wt.progress=V||(a-l)/m===St?0:St),J&&tt&&(x._pinOffset=Math.round(wt.progress*k)),z&&z.invalidate(),isNaN(X)||(X-=Xi.getProperty(h,ht.p),q-=Xi.getProperty(d,ht.p),oo(h,ht,X),oo(c,ht,X-(b||0)),oo(d,ht,q),oo(f,ht,q-(b||0))),V&&!Ts&&wt.update(),!Z||Ts||g||(g=!0,Z(wt),g=!1)}},wt.getVelocity=function(){return(Mt()-o)/(Es()-Ki)*1e3||0},wt.endAnimation=function(){$s(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?dt||$s(r,wt.direction<0,1):$s(r,r.reversed()))},wt.labelToScroll=function(t){return r&&r.labels&&(l||wt.refresh()||l)+r.labels[t]/r.duration()*m||0},wt.getTrailing=function(t){var e=Sa.indexOf(wt),r=wt.direction>0?Sa.slice(0,e).reverse():Sa.slice(e+1);return(Hs(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return wt.direction>0?t.end<=l:t.start>=u})},wt.update=function(t,e,i){if(!ut||i||t){var s,c,f,d,p,g,_,b=!0===Ts?B:wt.scroll(),w=t?0:(b-l)/m,E=w<0?0:w>1?1:w||0,P=wt.progress;if(e&&(o=a,a=ut?Mt():b,at&&(D=R,R=r&&!dt?r.totalProgress():E)),rt&&J&&!ts&&!Cs&&Ms&&(!E&&l<b+(b-o)/(Es()-Ki)*rt?E=1e-4:1===E&&u>b+(b-o)/(Es()-Ki)*rt&&(E=.9999)),E!==P&&wt.enabled){if(d=(p=(s=wt.isActive=!!E&&E<1)!==(!!P&&P<1))||!!E!=!!P,wt.direction=E>P?1:-1,wt.progress=E,d&&!ts&&(c=E&&!P?0:1===E?1:1===P?2:3,dt&&(f=!p&&"none"!==yt[c+1]&&yt[c+1]||yt[c],_=r&&("complete"===f||"reset"===f||f in r))),ft&&(p||_)&&(_||Q||!r)&&(Us(ft)?ft(wt):wt.getTrailing(ft).forEach(function(t){return t.endAnimation()})),dt||(!z||ts||Cs?r&&r.totalProgress(E,!(!ts||!Et&&!t)):(z._dp._time-z._start!==z._time&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",E,r._tTime/r._tDur):(z.vars.totalProgress=E,z.invalidate().restart()))),J)if(t&&tt&&(x.style[tt+ht.os2]=C),_t){if(d){if(g=!t&&E>P&&u+1>b&&b+1>=qs(pt,ht),ot)if(t||!s&&!g)so(J,x);else{var F=pa(J,!0),I=b-l;so(J,Vi,F.top+(ht===Di?I:0)+fa,F.left+(ht===Di?0:I)+fa)}to(s||g?v:y),M&&E<1&&s||T(O+(1!==E||g?0:k))}}else T(Ns(O+k*E));at&&!n.tween&&!ts&&!Cs&&N.restart(!0),V&&(p||st&&E&&(E<1||!bs))&&Zi(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!dt&&!t&&U(wt),d&&!ts?(dt&&(_&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),U&&U(wt)),!p&&bs||($&&p&&Zs(wt,$),vt[c]&&Zs(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),p||vt[c=1===E?1:3]&&Zs(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(Vs(ct)?ct:2500)&&($s(wt.callbackAnimation),z?z.progress(1):$s(r,"reverse"===f?1:!E,1))):dt&&U&&!ts&&U(wt)}if(A){var L=ut?b/ut.duration()*(ut._caScrollDist||0):b;S(L+(h._isFlipped?1:0)),A(L)}j&&j(-b/ut.duration()*(ut._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,ya(pt,"resize",Da),mt||ya(pt,"scroll",Pa),Tt&&ya(t,"refreshInit",Tt),!1!==e&&(wt.progress=St=0,a=o=Ct=Mt()),!1!==r&&wt.refresh())},wt.getTween=function(t){return t&&n?n.tween:z},wt.setPositions=function(t,e,r,n){if(ut){var i=ut.scrollTrigger,s=ut.duration(),a=i.end-i.start;t=i.start+a*t/s,e=i.start+a*e/s}wt.refresh(!1,!1,{start:Rs(t,r&&!!wt._startClamp),end:Rs(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(E&&t){var e=E.indexOf(ht.d)+1;E[e]=parseFloat(E[e])+t+fa,E[1]=parseFloat(E[1])+t+fa,to(E)}},wt.disable=function(e,r){if(!1!==e&&wt.revert(!0,!0),wt.enabled&&(wt.enabled=wt.isActive=!1,r||z&&z.pause(),B=0,i&&(i.uncache=1),Tt&&xa(t,"refreshInit",Tt),N&&(N.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=Sa.length;s--;)if(Sa[s].scroller===pt&&Sa[s]!==wt)return;xa(pt,"resize",Da),mt||xa(pt,"scroll",Pa)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete Ma[G];var s=Sa.indexOf(wt);s>=0&&Sa.splice(s,1),s===ns&&Ga>0&&ns--,s=0,Sa.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||Ts||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,d].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),ks===wt&&(ks=0),J&&(i&&(i.uncache=1),s=0,Sa.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},Sa.push(wt),wt.enable(!1,!1),Y&&Y(wt),r&&r.add&&!m){var Dt=wt.update;wt.update=function(){wt.update=Dt,xi.cache++,l||u||wt.refresh()},Xi.delayedCall(.01,wt.update),m=.01,l=u=0}else wt.refresh();J&&function(){if(Os!==qa){var t=Os=qa;requestAnimationFrame(function(){return t===qa&&Ua(!0)})}}()}else this.update=this.refresh=this.kill=Is},t.register=function(e){return qi||(Xi=e||Ls(),Bs()&&window.document&&t.enable(),qi=As),qi},t.defaults=function(t){if(t)for(var e in t)Ta[e]=t[e];return Ta},t.disable=function(t,e){As=0,Sa.forEach(function(r){return r[e?"kill":"disable"](t)}),xa(Wi,"wheel",Pa),xa(Hi,"scroll",Pa),clearInterval(Ji),xa(Hi,"touchcancel",Is),xa(Vi,"touchstart",Is),va(xa,Hi,"pointerdown,touchstart,mousedown",zs),va(xa,Hi,"pointerup,touchend,mouseup",Fs),$i.kill(),Ws(xa);for(var r=0;r<xi.length;r+=3)ba(xa,xi[r],xi[r+1]),ba(xa,xi[r],xi[r+2])},t.enable=function(){if(Wi=window,Hi=document,Ui=Hi.documentElement,Vi=Hi.body,Xi)if(Zi=Xi.utils.toArray,Qi=Xi.utils.clamp,gs=Xi.core.context||Is,ls=Xi.core.suppressOverwrites||Is,ms=Wi.history.scrollRestoration||"auto",Va=Wi.pageYOffset||0,Xi.core.globals("ScrollTrigger",t),Vi){As=1,(_s=document.createElement("div")).style.height="100vh",_s.style.position="absolute",Wa(),Ds(),Yi.register(Xi),t.isTouch=Yi.isTouch,ps=Yi.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),fs=1===Yi.isTouch,ya(Wi,"wheel",Pa),Gi=[Wi,Hi,Ui,Vi],Xi.matchMedia?(t.matchMedia=function(t){var e,r=Xi.matchMedia();for(e in t)r.add(e,t[e]);return r},Xi.addEventListener("matchMediaInit",function(){ja(),Ya()}),Xi.addEventListener("matchMediaRevert",function(){return La()}),Xi.addEventListener("matchMedia",function(){Ua(0,1),Na("matchMedia")}),Xi.matchMedia().add("(orientation: portrait)",function(){return Ra(),Ra})):console.warn("Requires GSAP 3.11.0 or later"),Ra(),ya(Hi,"scroll",Pa);var e,r,n=Vi.hasAttribute("style"),i=Vi.style,s=i.borderTopStyle,a=Xi.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=pa(Vi),Di.m=Math.round(e.top+Di.sc())||0,Ri.m=Math.round(e.left+Ri.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(Vi.setAttribute("style",""),Vi.removeAttribute("style")),Ji=setInterval(Aa,250),Xi.delayedCall(.5,function(){return Cs=0}),ya(Hi,"touchcancel",Is),ya(Vi,"touchstart",Is),va(ya,Hi,"pointerdown,touchstart,mousedown",zs),va(ya,Hi,"pointerup,touchend,mouseup",Fs),rs=Xi.utils.checkPrefix("transform"),Qa.push(rs),qi=Es(),$i=Xi.delayedCall(.2,Ua).pause(),as=[Hi,"visibilitychange",function(){var t=Wi.innerWidth,e=Wi.innerHeight;Hi.hidden?(is=t,ss=e):is===t&&ss===e||Da()},Hi,"DOMContentLoaded",Ua,Wi,"load",Ua,Wi,"resize",Da],Ws(ya),Sa.forEach(function(t){return t.enable(0,1)}),r=0;r<xi.length;r+=3)ba(xa,xi[r],xi[r+1]),ba(xa,xi[r],xi[r+2])}else if(Hi){Hi.addEventListener("DOMContentLoaded",function e(){t.enable(),Hi.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(bs=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(Ji)||(Ji=r)&&setInterval(Aa,r),"ignoreMobileResize"in e&&(fs=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ws(xa)||Ws(ya,e.autoRefreshEvents||"none"),us=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=zi(t),n=xi.indexOf(r),i=js(r);~n&&xi.splice(n,i?6:2),e&&(i?bi.unshift(Wi,e,Vi,e,Ui,e):bi.unshift(r,e))},t.clearMatchMedia=function(t){Sa.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(Hs(t)?zi(t):t).getBoundingClientRect(),i=n[r?ea:ra]*e||0;return r?n.right-i>0&&n.left+i<Wi.innerWidth:n.bottom-i>0&&n.top+i<Wi.innerHeight},t.positionInViewport=function(t,e,r){Hs(t)&&(t=zi(t));var n=t.getBoundingClientRect(),i=n[r?ea:ra],s=null==e?i/2:e in Oa?Oa[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/Wi.innerWidth:(n.top+s)/Wi.innerHeight},t.killAll=function(t){if(Sa.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=za.killAll||[];za={},e.forEach(function(t){return t()})}},t}();uo.version="3.15.0",uo.saveStyles=function(t){return t?Zi(t).forEach(function(t){if(t&&t.style){var e=Ba.indexOf(t);e>=0&&Ba.splice(e,5),Ba.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Xi.core.getCache(t),gs())}}):Ba},uo.revert=function(t,e){return Ya(!t,e)},uo.create=function(t,e){return new uo(t,e)},uo.refresh=function(t){return t?Da(!0):(qi||uo.register())&&Ua(!0)},uo.update=function(t){return++xi.cache&&$a(!0===t?2:0)},uo.clearScrollMemory=Xa,uo.maxScroll=function(t,e){return qs(t,e?Ri:Di)},uo.getScrollFunc=function(t,e){return Fi(zi(t),e?Ri:Di)},uo.getById=function(t){return Ma[t]},uo.getAll=function(){return Sa.filter(function(t){return"ScrollSmoother"!==t.vars.id})},uo.isScrolling=function(){return!!Ms},uo.snapDirectional=_a,uo.addEventListener=function(t,e){var r=za[t]||(za[t]=[]);~r.indexOf(e)||r.push(e)},uo.removeEventListener=function(t,e){var r=za[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},uo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Xi.delayedCall(s,function(){e(r,n),r=[],n=[]}).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),a<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&Us(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return Us(a)&&(a=a(),ya(uo,"refresh",function(){return a=e.batchMax()})),Zi(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(uo.create(e))}),n};var co,fo=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},ho=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Yi.isTouch?" pinch-zoom":""):"none",e===Ui&&t(Vi,r)},po={auto:1,scroll:1},go=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Xi.core.getCache(s),o=Es();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==Vi&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!po[(e=ha(s)).overflowY]&&!po[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!js(s)&&(po[(e=ha(s)).overflowY]||po[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},mo=function(t,e,r,n){return Yi.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&go,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&ya(Hi,Yi.eventTypes[0],vo,!1,!0)},onDisable:function(){return xa(Hi,Yi.eventTypes[0],vo,!0)}})},_o=/(input|label|select|textarea)/i,vo=function(t){var e=_o.test(t.target.tagName);(e||co)&&(t._gsapAllow=!0,co=e)},yo=function(t){Gs(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,s,a,o,l,u=t,c=u.normalizeScrollX,f=u.momentum,h=u.allowNestedScroll,d=u.onRelease,p=zi(t.target)||Ui,g=Xi.core.globals().ScrollSmoother,m=g&&g.get(),_=ps&&(t.content&&zi(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=Fi(p,Di),y=Fi(p,Ri),x=1,b=(Yi.isTouch&&Wi.visualViewport?Wi.visualViewport.scale*Wi.visualViewport.width:Wi.outerWidth)/Wi.innerWidth,w=0,T=Us(f)?function(){return f(e)}:function(){return f||2.8},O=mo(p,t.type,!0,h),k=function(){return i=!1},C=Is,E=Is,S=function(){r=qs(p,Di),E=Qi(ps?1:0,r),c&&(C=Qi(0,qs(p,Ri))),n=qa},M=function(){_._gsap.y=Ns(parseFloat(_._gsap.y)+v.offset)+"px",_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(_._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},A=function(){S(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return _&&Xi.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return ps&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(k);var t=Ns(e.deltaY/2),r=E(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=Ns((parseFloat(_&&_._gsap.y)||0)-v.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",_._gsap.y=n+"px",v.cacheID=xi.cache,$a()}return!0}v.offset&&M(),i=!0}()||x>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=x;x=Ns((Wi.visualViewport&&Wi.visualViewport.scale||1)/b),s.pause(),t!==x&&ho(p,x>1.01||!c&&"x"),a=y(),o=v(),S(),n=qa},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){xi.cache++;var n,i,a=T();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=fo(y,n,i,qs(p,Ri)),s.vars.scrollX=C(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=fo(v,n,i,qs(p,Di)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(ps&&s.vars.scrollY>=r||n>=r-1)&&Xi.to({},{onUpdate:A,duration:a})}else l.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),Es()-w>1e3&&(n=0,w=Es())},t.onChange=function(t,e,r,i,s){if(qa!==n&&S(),e&&c&&y(C(i[2]===e?a+(t.startX-t.x):y()+e-i[1])),r){v.offset&&M();var l=s[2]===r,u=l?o+t.startY-t.y:v()+r-s[1],f=E(u);l&&u!==f&&(o+=f-u),v(f)}(r||e)&&$a()},t.onEnable=function(){ho(p,!c&&"x"),uo.addEventListener("refresh",A),ya(Wi,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),O.enable()},t.onDisable=function(){ho(p,!0),xa(Wi,"resize",A),uo.removeEventListener("refresh",A),O.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Yi(t)).iOS=ps,ps&&!v()&&v(1),ps&&Xi.ticker.add(Is),l=e._dc,s=Xi.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ao(v,v(),function(){return s.pause()})},onUpdate:$a,onComplete:l.vars.onComplete}),e};function xo({scrollingElement:n,direction:s="normal",children:a=t.jsx("div",{children:"Nothing to Display, Please add some properly styled content"}),style:o,className:l,startAnimation:u="bottom",gsapScrollTrigger:c,scrollSpeed:f=1}){const h=e.useRef(),[d,p]=e.useState(!1),[g,m]=e.useState(0);return e.useEffect(()=>{!function(){if(d)return;const t=function(){const t=h.current;if(!t)return;const e=t.children,r=e[0].getBoundingClientRect().width;let n=0;for(let t=0;t<e.length;t++)n+=e[t].getBoundingClientRect().width;return n-r}();t&&m(t),p(!0)}()},[]),e.useLayoutEffect(()=>{const t=h.current;if(!t||!g)return;let e=ri.context(()=>{var e,i;const a=n?document.querySelector(`${n}`):r.findScrollingElement(t,!0),o=null!==(e={normal:-g,reverse:g,backward:g}[s])&&void 0!==e?e:-g,l=null!==(i={top:"top top",within:`top ${(window.innerHeight-t.getBoundingClientRect().height)/2}px`,bottom:"bottom bottom"}[u])&&void 0!==i?i:u,h=ri.quickTo(t,"x",{ease:"power3.out",duration:.2});uo.create(Object.assign({trigger:t,scroller:a,start:l,end:`+=${g/f}px`,pin:!0,scrub:!0,invalidateOnRefresh:!0,onUpdate:t=>{h(o*t.progress)}},c))},h);return()=>e.revert()},[g,s,u,f,n,c]),t.jsx("div",{ref:h,style:Object.assign({width:"100%",height:"auto",position:"relative",display:"flex",alignItems:"flex-start",justifyContent:""+("backward"==s?"flex-end":"flex-start"),flexDirection:""+("reverse"==s?"row-reverse":"row")},o),className:`${l} scroll_container`,children:i.default.Children.map(a,(r,n)=>t.jsx(e.Fragment,{children:r},n))})}function bo(t,e,r,n){return new(r||(r=Promise))(function(i,s){function a(t){try{l(n.next(t))}catch(t){s(t)}}function o(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,o)}l((n=n.apply(t,e||[])).next())})}uo.sort=function(t){if(Us(t))return Sa.sort(t);var e=Wi.pageYOffset||0;return uo.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Wi.innerHeight}),Sa.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},uo.observe=function(t){return new Yi(t)},uo.normalizeScroll=function(t){if(void 0===t)return cs;if(!0===t&&cs)return cs.enable();if(!1===t)return cs&&cs.kill(),void(cs=t);var e=t instanceof Yi?t:yo(t);return cs&&cs.target===e.target&&cs.kill(),js(e.target)&&(cs=e),e},uo.core={_getVelocityProp:Ii,_inputObserver:mo,_scrollers:xi,_proxies:bi,bridge:{ss:function(){Ms||Na("scrollStart"),Ms=Es()},ref:function(){return ts}}},Ls()&&Xi.registerPlugin(uo),ri.registerPlugin(uo),"function"==typeof SuppressedError&&SuppressedError;
|
|
38
37
|
/*!
|
|
39
|
-
*
|
|
38
|
+
* @gsap/react 2.1.2
|
|
40
39
|
* https://gsap.com
|
|
41
40
|
*
|
|
42
|
-
*
|
|
43
|
-
* Subject to the terms at https://gsap.com/standard-license
|
|
41
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
42
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
43
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
44
44
|
* @author: Jack Doyle, jack@greensock.com
|
|
45
45
|
*/
|
|
46
|
-
var Gi,$i,Qi,Zi,Ki,Ji,ts,es,rs,ns,is,ss,as,os,us,ls,cs,fs,hs,ps,ds,gs,_s,ms,vs,ys,xs,bs,ws,Ts,ks,Cs,Os,Es,Ss,Ms,As,Ps,Rs=1,Ds=Date.now,zs=Ds(),Fs=0,Is=0,Ns=function(t,e,r){var n=Zs(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Bs=function(t,e){return!e||Zs(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ls=function t(){return Is&&requestAnimationFrame(t)},Ys=function(){return os=1},js=function(){return os=0},Xs=function(t){return t},qs=function(t){return Math.round(1e5*t)/1e5||0},Ws=function(){return"undefined"!=typeof window},Hs=function(){return Gi||Ws()&&(Gi=window.gsap)&&Gi.registerPlugin&&Gi},Us=function(t){return!!~ts.indexOf(t)},Vs=function(t){return("Height"===t?ks:Qi["inner"+t])||Ki["client"+t]||Ji["client"+t]},Gs=function(t){return Ai(t,"getBoundingClientRect")||(Us(t)?function(){return uo.width=Qi.innerWidth,uo.height=ks,uo}:function(){return xa(t)})},$s=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Ai(t,r))?s()-Gs(t)()[i]:Us(t)?(Ki[r]||Ji[r])-Vs(n):t[r]-t["offset"+n])},Qs=function(t,e){for(var r=0;r<hs.length;r+=3)(!e||~e.indexOf(hs[r+1]))&&t(hs[r],hs[r+1],hs[r+2])},Zs=function(t){return"string"==typeof t},Ks=function(t){return"function"==typeof t},Js=function(t){return"number"==typeof t},ta=function(t){return"object"==typeof t},ea=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},ra=function(t,e,r){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return e(t,r)}):e(t,r);n&&n.totalTime&&(t.callbackAnimation=n)}},na=Math.abs,ia="left",sa="right",aa="bottom",oa="width",ua="height",la="Right",ca="Left",fa="Top",ha="Bottom",pa="padding",da="margin",ga="Width",_a="Height",ma="px",va=function(t){return Qi.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},ya=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},xa=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==va(t)[us]&&Gi.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect?t.getBoundingClientRect():t.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),n},ba=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},wa=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Ta=function(t){var e=Gi.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort(function(t,e){return t-e});return r?function(t,n,i){var s;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,s=0;s<r.length;s++)if(r[s]>=t)return r[s];return r[s-1]}for(s=r.length,t+=i;s--;)if(r[s]<=t)return r[s];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var s=e(r);return!n||Math.abs(s-r)<i||s-r<0==n<0?s:e(n<0?r-t:r+t)}},ka=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},Ca=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Oa=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Ea=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Sa={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ma={toggleActions:"play",anticipatePin:0},Aa={top:0,left:0,center:.5,bottom:1,right:1},Pa=function(t,e){if(Zs(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in Aa?Aa[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ra=function(t,e,r,n,i,s,a,o){var u=i.startColor,l=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,p=Zi.createElement("div"),d=Us(r)||"fixed"===Ai(r,"pinType"),g=-1!==t.indexOf("scroller"),_=d?Ji:"IFRAME"===r.tagName?r.contentDocument.body:r,m=-1!==t.indexOf("start"),v=m?u:l,y="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||o)&&d?"fixed;":"absolute;"),(g||o||!d)&&(y+=(n===Li?sa:aa)+":"+(s+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=m,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=y,p.innerText=e||0===e?t+"-"+e:t,_.children[0]?_.insertBefore(p,_.children[0]):_.appendChild(p),p._offset=p["offset"+n.op.d2],Da(p,0,n,m),p},Da=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],a=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+ga]=1,i["border"+a+ga]=0,i[r.p]=e+"px",Gi.set(t,i)},za=[],Fa={},Ia=function(){return Ds()-Fs>34&&(Ss||(Ss=requestAnimationFrame(eo)))},Na=function(){(!_s||!_s.isPressed||_s.startX>Ji.clientWidth)&&(Oi.cache++,_s?Ss||(Ss=requestAnimationFrame(eo)):eo(),Fs||qa("scrollStart"),Fs=Ds())},Ba=function(){ys=Qi.innerWidth,vs=Qi.innerHeight},La=function(t){Oi.cache++,(!0===t||!as&&!gs&&!Zi.fullscreenElement&&!Zi.webkitFullscreenElement&&(!ms||ys!==Qi.innerWidth||Math.abs(Qi.innerHeight-vs)>.25*Qi.innerHeight))&&es.restart(!0)},Ya={},ja=[],Xa=function t(){return Oa(_o,"scrollEnd",t)||Ka(!0)},qa=function(t){return Ya[t]&&Ya[t].map(function(t){return t()})||ja},Wa=[],Ha=function(t){for(var e=0;e<Wa.length;e+=5)(!t||Wa[e+4]&&Wa[e+4].query===t)&&(Wa[e].style.cssText=Wa[e+1],Wa[e].getBBox&&Wa[e].setAttribute("transform",Wa[e+2]||""),Wa[e+3].uncache=1)},Ua=function(){return Oi.forEach(function(t){return Ks(t)&&++t.cacheID&&(t.rec=t())})},Va=function(t,e){var r;for(ls=0;ls<za.length;ls++)!(r=za[ls])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));Cs=!0,e&&Ha(e),e||qa("revert")},Ga=function(t,e){Oi.cache++,(e||!Ms)&&Oi.forEach(function(t){return Ks(t)&&t.cacheID++&&(t.rec=0)}),Zs(t)&&(Qi.history.scrollRestoration=ws=t)},$a=0,Qa=function(){Ji.appendChild(Ts),ks=!_s&&Ts.offsetHeight||Qi.innerHeight,Ji.removeChild(Ts)},Za=function(t){return rs(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},Ka=function(t,e){if(Ki=Zi.documentElement,Ji=Zi.body,ts=[Qi,Zi,Ki,Ji],!Fs||t||Cs){Qa(),Ms=_o.isRefreshing=!0,Cs||Ua();var r=qa("refreshInit");ps&&_o.sort(),e||Va(),Oi.forEach(function(t){Ks(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),za.slice(0).forEach(function(t){return t.refresh()}),Cs=!1,za.forEach(function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}}),Os=1,Za(!0),za.forEach(function(t){var e=$s(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,n=t._startClamp&&t.start>=e;(r||n)&&t.setPositions(n?e-1:t.start,r?Math.max(n?e:t.start+1,e):t.end,!0)}),Za(!1),Os=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),Oi.forEach(function(t){Ks(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Ga(ws,1),es.pause(),$a++,Ms=2,eo(2),za.forEach(function(t){return Ks(t.vars.onRefresh)&&t.vars.onRefresh(t)}),Ms=_o.isRefreshing=!1,qa("refresh")}else Ca(_o,"scrollEnd",Xa)},Ja=0,to=1,eo=function(t){if(2===t||!Ms&&!Cs){_o.isUpdating=!0,Ps&&Ps.update(0);var e=za.length,r=Ds(),n=r-zs>=50,i=e&&za[0].scroll();if(to=Ja>i?-1:1,Ms||(Ja=i),n&&(Fs&&!os&&r-Fs>200&&(Fs=0,qa("scrollEnd")),is=zs,zs=r),to<0){for(ls=e;ls-- >0;)za[ls]&&za[ls].update(0,n);to=1}else for(ls=0;ls<e;ls++)za[ls]&&za[ls].update(0,n);_o.isUpdating=!1}Ss=0},ro=[ia,"top",aa,sa,da+ha,da+la,da+fa,da+ca,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],no=ro.concat([oa,ua,"boxSizing","max"+ga,"max"+_a,"position",da,pa,pa+fa,pa+la,pa+ha,pa+ca]),io=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=ro.length,a=e.style,o=t.style;s--;)a[i=ro[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[aa]=o[sa]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[oa]=ba(t,Bi)+ma,a[ua]=ba(t,Li)+ma,a[pa]=o[da]=o.top=o[ia]="0",ao(n),o[oa]=o["max"+ga]=r[oa],o[ua]=o["max"+_a]=r[ua],o[pa]=r[pa],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},so=/([A-Z])/g,ao=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Gi.core.getCache(t.t)).uncache=1;s<i;s+=2)r=t[s+1],e=t[s],r?n[e]=r:n[e]&&n.removeProperty(e.replace(so,"-$1").toLowerCase())}},oo=function(t){for(var e=no.length,r=t.style,n=[],i=0;i<e;i++)n.push(no[i],r[no[i]]);return n.t=t,n},uo={left:0,top:0},lo=function(t,e,r,n,i,s,a,o,u,l,c,f,h,p){Ks(t)&&(t=t(o)),Zs(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Pa("0"+t.substr(3),r):0));var d,g,_,m=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),Js(t))h&&(t=Gi.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&Da(a,r,n,!0);else{Ks(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");_=Yi(e,o)||Ji,(v=xa(_)||{})&&(v.left||v.top)||"none"!==va(_).display||(b=_.style.display,_.style.display="block",v=xa(_),b?_.style.display=b:_.style.removeProperty("display")),y=Pa(w[0],v[n.d]),x=Pa(w[1]||"0",r),t=v[n.p]-u[n.p]-l+y+i-x,a&&Da(a,x,n,r-x<20||a._isStart&&x>20),r-=r-x}if(p&&(o[p]=t||-.001,t<0&&(t=0)),s){var T=t+r,k=s._isStart;d="scroll"+n.d2,Da(s,T,n,k&&T>20||!k&&(c?Math.max(Ji[d],Ki[d]):s.parentNode[d])<=T+1),c&&(u=xa(a),c&&(s.style[n.op.p]=u[n.op.p]-n.op.m-s._offset+ma))}return h&&_&&(d=xa(_),h.seek(f),g=xa(_),h._caScrollDist=d[n.p]-g[n.p],t=t/h._caScrollDist*f),h&&h.seek(m),h?t:Math.round(t)},co=/(webkit|moz|length|cssText|inset)/i,fo=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===Ji){for(i in t._stOrig=a.cssText,s=va(t))+i||co.test(i)||!s[i]||"string"!=typeof a[i]||"0"===i||(a[i]=s[i]);a.top=r,a.left=n}else a.cssText=t._stOrig;Gi.core.getCache(t).uncache=1,e.appendChild(t)}},ho=function(t,e,r){var n=e,i=n;return function(e){var s=Math.round(t());return s!==n&&s!==i&&Math.abs(s-n)>3&&Math.abs(s-i)>3&&(e=s,r&&r()),i=n,n=Math.round(e)}},po=function(t,e,r){var n={};n[e.p]="+="+r,Gi.set(t,n)},go=function(t,e){var r=ji(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,u){var l=e.tween,c=s.onComplete,f={};a=a||r();var h=ho(r,a,function(){l.kill(),e.tween=0});return u=o&&u||0,o=o||i-a,l&&l.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return h(a+o*l.ratio+u*l.ratio*l.ratio)},s.onUpdate=function(){Oi.cache++,e.tween&&eo()},s.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=Gi.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Ca(t,"wheel",r.wheelHandler),_o.isTouch&&Ca(t,"touchmove",r.wheelHandler),i},_o=function(){function t(e,r){$i||t.register(Gi)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),bs(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Is){var n,i,s,a,o,u,l,c,f,h,p,d,g,_,m,v,y,x,b,w,T,k,C,O,E,S,M,A,P,R,D,z,F,I,N,B,L,Y,j,X,q,W,H=e=ya(Zs(e)||Js(e)||e.nodeType?{trigger:e}:e,Ma),U=H.onUpdate,V=H.toggleClass,G=H.id,$=H.onToggle,Q=H.onRefresh,Z=H.scrub,K=H.trigger,J=H.pin,tt=H.pinSpacing,et=H.invalidateOnRefresh,rt=H.anticipatePin,nt=H.onScrubComplete,it=H.onSnapComplete,st=H.once,at=H.snap,ot=H.pinReparent,ut=H.pinSpacer,lt=H.containerAnimation,ct=H.fastScrollEnd,ft=H.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Bi:Li,pt=!Z&&0!==Z,dt=Yi(e.scroller||Qi),gt=Gi.core.getCache(dt),_t=Us(dt),mt="fixed"===("pinType"in e?e.pinType:Ai(dt,"pinType")||_t&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=pt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:Ma.markers,bt=_t?0:parseFloat(va(dt)["border"+ht.p2+ga])||0,wt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},kt=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=Ai(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Vs(i):t["client"+i])||0}}(dt,_t,ht),Ct=function(t,e){return!e||~Ei.indexOf(t)?Gs(t):function(){return uo}}(dt,_t),Ot=0,Et=0,St=0,Mt=ji(dt,ht);if(wt._startClamp=wt._endClamp=!1,wt._dir=ht,rt*=45,wt.scroller=dt,wt.scroll=lt?lt.time.bind(lt):Mt,a=Mt(),wt.vars=e,r=r||e.animation,"refreshPriority"in e&&(ps=1,-9999===e.refreshPriority&&(Ps=wt)),gt.tweenScroll=gt.tweenScroll||{top:go(dt,Li),left:go(dt,Bi)},wt.tweenTo=n=gt.tweenScroll[ht.p],wt.scrubDuration=function(t){(F=Js(t)&&t)?z?z.duration(t):z=Gi.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:F,paused:!0,onComplete:function(){return nt&&nt(wt)}}):(z&&z.progress(1).kill(),z=0)},r&&(r.vars.lazy=!1,r._initted&&!wt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),wt.animation=r.pause(),r.scrollTrigger=wt,wt.scrubDuration(Z),R=0,G||(G=r.vars.id)),at&&(ta(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in Ji.style&&Gi.set(_t?[Ji,Ki]:dt,{scrollBehavior:"auto"}),Oi.forEach(function(t){return Ks(t)&&t.target===(_t?Zi.scrollingElement||Ki:dt)&&(t.smooth=!1)}),s=Ks(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Gi.utils.snap(wa(t),e)}}(r):"labelsDirectional"===at.snapTo?(X=r,function(t,e){return Ta(wa(X))(t,e.direction)}):!1!==at.directional?function(t,e){return Ta(at.snapTo)(t,Ds()-Et<500?0:e.direction)}:Gi.utils.snap(at.snapTo),I=at.duration||{min:.1,max:2},I=ta(I)?ns(I.min,I.max):ns(I,I),N=Gi.delayedCall(at.delay||F/2||.1,function(){var t=Mt(),e=Ds()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||os||Ot===t)wt.isActive&&Ot!==t&&N.restart(!0);else{var a,o,c=(t-u)/_,f=r&&!pt?r.totalProgress():c,h=e?0:(f-D)/(Ds()-is)*1e3||0,p=Gi.utils.clamp(-c,1-c,na(h/2)*h/.185),d=c+(!1===at.inertia?0:p),g=at,m=g.onStart,v=g.onInterrupt,y=g.onComplete;if(a=s(d,wt),Js(a)||(a=d),o=Math.max(0,Math.round(u+a*_)),t<=l&&t>=u&&o!==t){if(i&&!i._initted&&i.data<=na(o-t))return;!1===at.inertia&&(p=a-c),n(o,{duration:I(na(.185*Math.max(na(d-f),na(a-f))/h/.05||0)),ease:at.ease||"power3",data:na(o-t),onInterrupt:function(){return N.restart(!0)&&v&&ra(wt,v)},onComplete:function(){wt.update(),Ot=Mt(),r&&!pt&&(z?z.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),R=D=r&&!pt?r.totalProgress():wt.progress,it&&it(wt),y&&ra(wt,y)}},t,p*_,o-t-p*_),m&&ra(wt,m,n.tween)}}}).pause()),G&&(Fa[G]=wt),(j=(K=wt.trigger=Yi(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(j=j(wt)),J=!0===J?K:Yi(J),Zs(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===da||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===va(J.parentNode).display)&&pa),wt.pin=J,(i=Gi.core.getCache(J)).spacer?m=i.pinState:(ut&&((ut=Yi(ut))&&!ut.nodeType&&(ut=ut.current||ut.nativeElement),i.spacerIsNative=!!ut,ut&&(i.spacerState=oo(ut))),i.spacer=x=ut||Zi.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=m=oo(J)),!1!==e.force3D&&Gi.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=va(J),O=P[tt+ht.os2],w=Gi.getProperty(J),T=Gi.quickSetter(J,ht.a,ma),io(J,x,P),y=oo(J)),xt){d=ta(xt)?ya(xt,Sa):Sa,h=Ra("scroller-start",G,dt,ht,d,0),p=Ra("scroller-end",G,dt,ht,d,0,h),b=h["offset"+ht.op.d2];var At=Yi(Ai(dt,"content")||dt);c=this.markerStart=Ra("start",G,At,ht,d,b,0,lt),f=this.markerEnd=Ra("end",G,At,ht,d,b,0,lt),lt&&(Y=Gi.quickSetter([c,f],ht.a,ma)),mt||Ei.length&&!0===Ai(dt,"fixedMarkers")||(W=va(q=_t?Ji:dt).position,q.style.position="absolute"===W||"fixed"===W?W:"relative",Gi.set([h,p],{force3D:!0}),S=Gi.quickSetter(h,ht.a,ma),A=Gi.quickSetter(p,ht.a,ma))}if(lt){var Pt=lt.vars.onUpdate,Rt=lt.vars.onUpdateParams;lt.eventCallback("onUpdate",function(){wt.update(0,0,1),Pt&&Pt.apply(lt,Rt||[])})}if(wt.previous=function(){return za[za.indexOf(wt)-1]},wt.next=function(){return za[za.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=as;n!==wt.isReverted&&(n&&(B=Math.max(Mt(),wt.scroll.rec||0),St=wt.progress,L=r&&r.progress()),c&&[c,f,h,p].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(as=wt,wt.update(n)),!J||ot&&wt.isActive||(n?function(t,e,r){ao(r);var n=t._gsap;if(n.spacerIsNative)ao(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(J,x,m):io(J,x,va(J),E)),n||wt.update(n),as=i,wt.isReverted=n)},wt.refresh=function(i,s,d,b){if(!as&&wt.enabled||s)if(J&&i&&Fs)Ca(t,"scrollEnd",Xa);else{!Ms&&Tt&&Tt(wt),as=wt,n.tween&&!d&&(n.tween.kill(),n.tween=0),z&&z.pause(),et&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(t){return t.vars.immediateRender&&t.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var T,O,S,A,P,R,D,F,I,Y,j,X,q,W=kt(),H=Ct(),U=lt?lt.duration():$s(dt,ht),V=_<=.01||!_,G=0,$=b||0,Z=ta(d)?d.end:e.end,rt=e.endTrigger||K,nt=ta(d)?d.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Yi(e.pinnedContainer,wt),st=K&&Math.max(0,za.indexOf(wt))||0,at=st;for(xt&&ta(d)&&(X=Gi.getProperty(h,ht.p),q=Gi.getProperty(p,ht.p));at-- >0;)(R=za[at]).end||R.refresh(0,1)||(as=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(Y||(Y=[]),Y.unshift(R),R.revert(!0,!0)),R!==za[at]&&(st--,at--);for(Ks(nt)&&(nt=nt(wt)),nt=Ns(nt,"start",wt),u=lo(nt,K,W,ht,Mt(),c,h,wt,H,bt,mt,U,lt,wt._startClamp&&"_startClamp")||(J?-.001:0),Ks(Z)&&(Z=Z(wt)),Zs(Z)&&!Z.indexOf("+=")&&(~Z.indexOf(" ")?Z=(Zs(nt)?nt.split(" ")[0]:"")+Z:(G=Pa(Z.substr(2),W),Z=Zs(nt)?nt:(lt?Gi.utils.mapRange(0,lt.duration(),lt.scrollTrigger.start,lt.scrollTrigger.end,u):u)+G,rt=K)),Z=Ns(Z,"end",wt),l=Math.max(u,lo(Z||(rt?"100% 0":U),rt,W,ht,Mt()+G,f,p,wt,H,bt,mt,U,lt,wt._endClamp&&"_endClamp"))||-.001,G=0,at=st;at--;)(D=(R=za[at]||{}).pin)&&R.start-R._pinPush<=u&&!lt&&R.end>0&&(T=R.end-(wt._startClamp?Math.max(0,R.start):R.start),(D===K&&R.start-R._pinPush<u||D===it)&&isNaN(nt)&&(G+=T*(1-R.progress)),D===J&&($+=T));if(u+=G,l+=G,wt._startClamp&&(wt._startClamp+=G),wt._endClamp&&!Ms&&(wt._endClamp=l||-.001,l=Math.min(l,$s(dt,ht))),_=l-u||(u-=.01)&&.001,V&&(St=Gi.utils.clamp(0,1,Gi.utils.normalize(u,l,B))),wt._pinPush=$,c&&G&&((T={})[ht.a]="+="+G,it&&(T[ht.p]="-="+Mt()),Gi.set([c,f],T)),!J||Os&&wt.end>=$s(dt,ht)){if(K&&Mt()&&!lt)for(O=K.parentNode;O&&O!==Ji;)O._pinOffset&&(u-=O._pinOffset,l-=O._pinOffset),O=O.parentNode}else T=va(J),A=ht===Li,S=Mt(),k=parseFloat(w(ht.a))+$,!U&&l>1&&(j={style:j=(_t?Zi.scrollingElement||Ki:dt).style,value:j["overflow"+ht.a.toUpperCase()]},_t&&"scroll"!==va(Ji)["overflow"+ht.a.toUpperCase()]&&(j.style["overflow"+ht.a.toUpperCase()]="scroll")),io(J,x,T),y=oo(J),O=xa(J,!0),F=mt&&ji(dt,A?Bi:Li)(),tt?((E=[tt+ht.os2,_+$+ma]).t=x,(at=tt===pa?ba(J,ht)+_+$:0)&&(E.push(ht.d,at+ma),"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+ma)),ao(E),it&&za.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),mt&&Mt(B)):(at=ba(J,ht))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+ma),mt&&((P={top:O.top+(A?S-u:F)+ma,left:O.left+(A?F:S-u)+ma,boxSizing:"border-box",position:"fixed"})[oa]=P["max"+ga]=Math.ceil(O.width)+ma,P[ua]=P["max"+_a]=Math.ceil(O.height)+ma,P[da]=P[da+fa]=P[da+la]=P[da+ha]=P[da+ca]="0",P[pa]=T[pa],P[pa+fa]=T[pa+fa],P[pa+la]=T[pa+la],P[pa+ha]=T[pa+ha],P[pa+ca]=T[pa+ca],v=function(t,e,r){for(var n,i=[],s=t.length,a=r?8:0;a<s;a+=2)n=t[a],i.push(n,n in e?e[n]:t[a+1]);return i.t=t.t,i}(m,P,ot),Ms&&Mt(0)),r?(I=r._initted,ds(1),r.render(r.duration(),!0,!0),C=w(ht.a)-k+_+$,M=Math.abs(_-C)>1,mt&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),I||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ds(0)):C=_,j&&(j.value?j.style["overflow"+ht.a.toUpperCase()]=j.value:j.style.removeProperty("overflow-"+ht.a));Y&&Y.forEach(function(t){return t.revert(!1,!0)}),wt.start=u,wt.end=l,a=o=Ms?B:Mt(),lt||Ms||(a<B&&Mt(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Ds(),N&&(Ot=-1,N.restart(!0)),as=0,r&&pt&&(r._initted||L)&&r.progress()!==L&&r.progress(L||0,!0).render(r.time(),!0,!0),(V||St!==wt.progress||lt||et||r&&!r._initted)&&(r&&!pt&&(r._initted||St||!1!==r.vars.immediateRender)&&r.totalProgress(lt&&u<-.001&&!St?Gi.utils.normalize(u,l,0):St,!0),wt.progress=V||(a-u)/_===St?0:St),J&&tt&&(x._pinOffset=Math.round(wt.progress*C)),z&&z.invalidate(),isNaN(X)||(X-=Gi.getProperty(h,ht.p),q-=Gi.getProperty(p,ht.p),po(h,ht,X),po(c,ht,X-(b||0)),po(p,ht,q),po(f,ht,q-(b||0))),V&&!Ms&&wt.update(),!Q||Ms||g||(g=!0,Q(wt),g=!1)}},wt.getVelocity=function(){return(Mt()-o)/(Ds()-is)*1e3||0},wt.endAnimation=function(){ea(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?pt||ea(r,wt.direction<0,1):ea(r,r.reversed()))},wt.labelToScroll=function(t){return r&&r.labels&&(u||wt.refresh()||u)+r.labels[t]/r.duration()*_||0},wt.getTrailing=function(t){var e=za.indexOf(wt),r=wt.direction>0?za.slice(0,e).reverse():za.slice(e+1);return(Zs(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return wt.direction>0?t.end<=u:t.start>=l})},wt.update=function(t,e,i){if(!lt||i||t){var s,c,f,p,d,g,m,b=!0===Ms?B:wt.scroll(),w=t?0:(b-u)/_,E=w<0?0:w>1?1:w||0,P=wt.progress;if(e&&(o=a,a=lt?Mt():b,at&&(D=R,R=r&&!pt?r.totalProgress():E)),rt&&J&&!as&&!Rs&&Fs&&(!E&&u<b+(b-o)/(Ds()-is)*rt?E=1e-4:1===E&&l>b+(b-o)/(Ds()-is)*rt&&(E=.9999)),E!==P&&wt.enabled){if(p=(d=(s=wt.isActive=!!E&&E<1)!==(!!P&&P<1))||!!E!=!!P,wt.direction=E>P?1:-1,wt.progress=E,p&&!as&&(c=E&&!P?0:1===E?1:1===P?2:3,pt&&(f=!d&&"none"!==yt[c+1]&&yt[c+1]||yt[c],m=r&&("complete"===f||"reset"===f||f in r))),ft&&(d||m)&&(m||Z||!r)&&(Ks(ft)?ft(wt):wt.getTrailing(ft).forEach(function(t){return t.endAnimation()})),pt||(!z||as||Rs?r&&r.totalProgress(E,!(!as||!Et&&!t)):(z._dp._time-z._start!==z._time&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",E,r._tTime/r._tDur):(z.vars.totalProgress=E,z.invalidate().restart()))),J)if(t&&tt&&(x.style[tt+ht.os2]=O),mt){if(p){if(g=!t&&E>P&&l+1>b&&b+1>=$s(dt,ht),ot)if(t||!s&&!g)fo(J,x);else{var F=xa(J,!0),I=b-u;fo(J,Ji,F.top+(ht===Li?I:0)+ma,F.left+(ht===Li?0:I)+ma)}ao(s||g?v:y),M&&E<1&&s||T(k+(1!==E||g?0:C))}}else T(qs(k+C*E));at&&!n.tween&&!as&&!Rs&&N.restart(!0),V&&(d||st&&E&&(E<1||!Es))&&rs(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!pt&&!t&&U(wt),p&&!as?(pt&&(m&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),U&&U(wt)),!d&&Es||($&&d&&ra(wt,$),vt[c]&&ra(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),d||vt[c=1===E?1:3]&&ra(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(Js(ct)?ct:2500)&&(ea(wt.callbackAnimation),z?z.progress(1):ea(r,"reverse"===f?1:!E,1))):pt&&U&&!as&&U(wt)}if(A){var L=lt?b/lt.duration()*(lt._caScrollDist||0):b;S(L+(h._isFlipped?1:0)),A(L)}Y&&Y(-b/lt.duration()*(lt._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,Ca(dt,"resize",La),_t||Ca(dt,"scroll",Na),Tt&&Ca(t,"refreshInit",Tt),!1!==e&&(wt.progress=St=0,a=o=Ot=Mt()),!1!==r&&wt.refresh())},wt.getTween=function(t){return t&&n?n.tween:z},wt.setPositions=function(t,e,r,n){if(lt){var i=lt.scrollTrigger,s=lt.duration(),a=i.end-i.start;t=i.start+a*t/s,e=i.start+a*e/s}wt.refresh(!1,!1,{start:Bs(t,r&&!!wt._startClamp),end:Bs(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(E&&t){var e=E.indexOf(ht.d)+1;E[e]=parseFloat(E[e])+t+ma,E[1]=parseFloat(E[1])+t+ma,ao(E)}},wt.disable=function(e,r){if(!1!==e&&wt.revert(!0,!0),wt.enabled&&(wt.enabled=wt.isActive=!1,r||z&&z.pause(),B=0,i&&(i.uncache=1),Tt&&Oa(t,"refreshInit",Tt),N&&(N.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!_t)){for(var s=za.length;s--;)if(za[s].scroller===dt&&za[s]!==wt)return;Oa(dt,"resize",La),_t||Oa(dt,"scroll",Na)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete Fa[G];var s=za.indexOf(wt);s>=0&&za.splice(s,1),s===ls&&to>0&&ls--,s=0,za.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||Ms||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,p].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),Ps===wt&&(Ps=0),J&&(i&&(i.uncache=1),s=0,za.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},za.push(wt),wt.enable(!1,!1),j&&j(wt),r&&r.add&&!_){var Dt=wt.update;wt.update=function(){wt.update=Dt,Oi.cache++,u||l||wt.refresh()},Gi.delayedCall(.01,wt.update),_=.01,u=l=0}else wt.refresh();J&&function(){if(As!==$a){var t=As=$a;requestAnimationFrame(function(){return t===$a&&Ka(!0)})}}()}else this.update=this.refresh=this.kill=Xs},t.register=function(e){return $i||(Gi=e||Hs(),Ws()&&window.document&&t.enable(),$i=Is),$i},t.defaults=function(t){if(t)for(var e in t)Ma[e]=t[e];return Ma},t.disable=function(t,e){Is=0,za.forEach(function(r){return r[e?"kill":"disable"](t)}),Oa(Qi,"wheel",Na),Oa(Zi,"scroll",Na),clearInterval(ss),Oa(Zi,"touchcancel",Xs),Oa(Ji,"touchstart",Xs),ka(Oa,Zi,"pointerdown,touchstart,mousedown",Ys),ka(Oa,Zi,"pointerup,touchend,mouseup",js),es.kill(),Qs(Oa);for(var r=0;r<Oi.length;r+=3)Ea(Oa,Oi[r],Oi[r+1]),Ea(Oa,Oi[r],Oi[r+2])},t.enable=function(){if(Qi=window,Zi=document,Ki=Zi.documentElement,Ji=Zi.body,Gi)if(rs=Gi.utils.toArray,ns=Gi.utils.clamp,bs=Gi.core.context||Xs,ds=Gi.core.suppressOverwrites||Xs,ws=Qi.history.scrollRestoration||"auto",Ja=Qi.pageYOffset||0,Gi.core.globals("ScrollTrigger",t),Ji){Is=1,(Ts=document.createElement("div")).style.height="100vh",Ts.style.position="absolute",Qa(),Ls(),Vi.register(Gi),t.isTouch=Vi.isTouch,xs=Vi.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ms=1===Vi.isTouch,Ca(Qi,"wheel",Na),ts=[Qi,Zi,Ki,Ji],Gi.matchMedia?(t.matchMedia=function(t){var e,r=Gi.matchMedia();for(e in t)r.add(e,t[e]);return r},Gi.addEventListener("matchMediaInit",function(){Ua(),Va()}),Gi.addEventListener("matchMediaRevert",function(){return Ha()}),Gi.addEventListener("matchMedia",function(){Ka(0,1),qa("matchMedia")}),Gi.matchMedia().add("(orientation: portrait)",function(){return Ba(),Ba})):console.warn("Requires GSAP 3.11.0 or later"),Ba(),Ca(Zi,"scroll",Na);var e,r,n=Ji.hasAttribute("style"),i=Ji.style,s=i.borderTopStyle,a=Gi.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=xa(Ji),Li.m=Math.round(e.top+Li.sc())||0,Bi.m=Math.round(e.left+Bi.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(Ji.setAttribute("style",""),Ji.removeAttribute("style")),ss=setInterval(Ia,250),Gi.delayedCall(.5,function(){return Rs=0}),Ca(Zi,"touchcancel",Xs),Ca(Ji,"touchstart",Xs),ka(Ca,Zi,"pointerdown,touchstart,mousedown",Ys),ka(Ca,Zi,"pointerup,touchend,mouseup",js),us=Gi.utils.checkPrefix("transform"),no.push(us),$i=Ds(),es=Gi.delayedCall(.2,Ka).pause(),hs=[Zi,"visibilitychange",function(){var t=Qi.innerWidth,e=Qi.innerHeight;Zi.hidden?(cs=t,fs=e):cs===t&&fs===e||La()},Zi,"DOMContentLoaded",Ka,Qi,"load",Ka,Qi,"resize",La],Qs(Ca),za.forEach(function(t){return t.enable(0,1)}),r=0;r<Oi.length;r+=3)Ea(Oa,Oi[r],Oi[r+1]),Ea(Oa,Oi[r],Oi[r+2])}else if(Zi){Zi.addEventListener("DOMContentLoaded",function e(){t.enable(),Zi.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(Es=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(ss)||(ss=r)&&setInterval(Ia,r),"ignoreMobileResize"in e&&(ms=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Qs(Oa)||Qs(Ca,e.autoRefreshEvents||"none"),gs=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Yi(t),n=Oi.indexOf(r),i=Us(r);~n&&Oi.splice(n,i?6:2),e&&(i?Ei.unshift(Qi,e,Ji,e,Ki,e):Ei.unshift(r,e))},t.clearMatchMedia=function(t){za.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(Zs(t)?Yi(t):t).getBoundingClientRect(),i=n[r?oa:ua]*e||0;return r?n.right-i>0&&n.left+i<Qi.innerWidth:n.bottom-i>0&&n.top+i<Qi.innerHeight},t.positionInViewport=function(t,e,r){Zs(t)&&(t=Yi(t));var n=t.getBoundingClientRect(),i=n[r?oa:ua],s=null==e?i/2:e in Aa?Aa[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/Qi.innerWidth:(n.top+s)/Qi.innerHeight},t.killAll=function(t){if(za.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=Ya.killAll||[];Ya={},e.forEach(function(t){return t()})}},t}();_o.version="3.15.0",_o.saveStyles=function(t){return t?rs(t).forEach(function(t){if(t&&t.style){var e=Wa.indexOf(t);e>=0&&Wa.splice(e,5),Wa.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Gi.core.getCache(t),bs())}}):Wa},_o.revert=function(t,e){return Va(!t,e)},_o.create=function(t,e){return new _o(t,e)},_o.refresh=function(t){return t?La(!0):($i||_o.register())&&Ka(!0)},_o.update=function(t){return++Oi.cache&&eo(!0===t?2:0)},_o.clearScrollMemory=Ga,_o.maxScroll=function(t,e){return $s(t,e?Bi:Li)},_o.getScrollFunc=function(t,e){return ji(Yi(t),e?Bi:Li)},_o.getById=function(t){return Fa[t]},_o.getAll=function(){return za.filter(function(t){return"ScrollSmoother"!==t.vars.id})},_o.isScrolling=function(){return!!Fs},_o.snapDirectional=Ta,_o.addEventListener=function(t,e){var r=Ya[t]||(Ya[t]=[]);~r.indexOf(e)||r.push(e)},_o.removeEventListener=function(t,e){var r=Ya[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},_o.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Gi.delayedCall(s,function(){e(r,n),r=[],n=[]}).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),a<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&Ks(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return Ks(a)&&(a=a(),Ca(_o,"refresh",function(){return a=e.batchMax()})),rs(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(_o.create(e))}),n};var mo,vo=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},yo=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Vi.isTouch?" pinch-zoom":""):"none",e===Ki&&t(Ji,r)},xo={auto:1,scroll:1},bo=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Gi.core.getCache(s),o=Ds();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==Ji&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!xo[(e=va(s)).overflowY]&&!xo[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Us(s)&&(xo[(e=va(s)).overflowY]||xo[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},wo=function(t,e,r,n){return Vi.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&bo,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Ca(Zi,Vi.eventTypes[0],ko,!1,!0)},onDisable:function(){return Oa(Zi,Vi.eventTypes[0],ko,!0)}})},To=/(input|label|select|textarea)/i,ko=function(t){var e=To.test(t.target.tagName);(e||mo)&&(t._gsapAllow=!0,mo=e)},Co=function(t){ta(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,s,a,o,u,l=t,c=l.normalizeScrollX,f=l.momentum,h=l.allowNestedScroll,p=l.onRelease,d=Yi(t.target)||Ki,g=Gi.core.globals().ScrollSmoother,_=g&&g.get(),m=xs&&(t.content&&Yi(t.content)||_&&!1!==t.content&&!_.smooth()&&_.content()),v=ji(d,Li),y=ji(d,Bi),x=1,b=(Vi.isTouch&&Qi.visualViewport?Qi.visualViewport.scale*Qi.visualViewport.width:Qi.outerWidth)/Qi.innerWidth,w=0,T=Ks(f)?function(){return f(e)}:function(){return f||2.8},k=wo(d,t.type,!0,h),C=function(){return i=!1},O=Xs,E=Xs,S=function(){r=$s(d,Li),E=ns(xs?1:0,r),c&&(O=ns(0,$s(d,Bi))),n=$a},M=function(){m._gsap.y=qs(parseFloat(m._gsap.y)+v.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},A=function(){S(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return m&&Gi.set(m,{y:"+=0"}),t.ignoreCheck=function(t){return xs&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(C);var t=qs(e.deltaY/2),r=E(v.v-t);if(m&&r!==v.v+v.offset){v.offset=r-v.v;var n=qs((parseFloat(m&&m._gsap.y)||0)-v.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",m._gsap.y=n+"px",v.cacheID=Oi.cache,eo()}return!0}v.offset&&M(),i=!0}()||x>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=x;x=qs((Qi.visualViewport&&Qi.visualViewport.scale||1)/b),s.pause(),t!==x&&yo(d,x>1.01||!c&&"x"),a=y(),o=v(),S(),n=$a},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){Oi.cache++;var n,i,a=T();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=vo(y,n,i,$s(d,Bi)),s.vars.scrollX=O(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=vo(v,n,i,$s(d,Li)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(xs&&s.vars.scrollY>=r||n>=r-1)&&Gi.to({},{onUpdate:A,duration:a})}else u.restart(!0);p&&p(t)},t.onWheel=function(){s._ts&&s.pause(),Ds()-w>1e3&&(n=0,w=Ds())},t.onChange=function(t,e,r,i,s){if($a!==n&&S(),e&&c&&y(O(i[2]===e?a+(t.startX-t.x):y()+e-i[1])),r){v.offset&&M();var u=s[2]===r,l=u?o+t.startY-t.y:v()+r-s[1],f=E(l);u&&l!==f&&(o+=f-l),v(f)}(r||e)&&eo()},t.onEnable=function(){yo(d,!c&&"x"),_o.addEventListener("refresh",A),Ca(Qi,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),k.enable()},t.onDisable=function(){yo(d,!0),Oa(Qi,"resize",A),_o.removeEventListener("refresh",A),k.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Vi(t)).iOS=xs,xs&&!v()&&v(1),xs&&Gi.ticker.add(Xs),u=e._dc,s=Gi.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ho(v,v(),function(){return s.pause()})},onUpdate:eo,onComplete:u.vars.onComplete}),e};_o.sort=function(t){if(Ks(t))return za.sort(t);var e=Qi.pageYOffset||0;return _o.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Qi.innerHeight}),za.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},_o.observe=function(t){return new Vi(t)},_o.normalizeScroll=function(t){if(void 0===t)return _s;if(!0===t&&_s)return _s.enable();if(!1===t)return _s&&_s.kill(),void(_s=t);var e=t instanceof Vi?t:Co(t);return _s&&_s.target===e.target&&_s.kill(),Us(e.target)&&(_s=e),e},_o.core={_getVelocityProp:Xi,_inputObserver:wo,_scrollers:Oi,_proxies:Ei,bridge:{ss:function(){Fs||qa("scrollStart"),Fs=Ds()},ref:function(){return as}}},Hs()&&Gi.registerPlugin(_o);
|
|
46
|
+
let wo="undefined"!=typeof document?e.useLayoutEffect:e.useEffect,To=t=>t&&!Array.isArray(t)&&"object"==typeof t,Oo=[],ko={},Co=ri;const Eo=(t,r=Oo)=>{let n=ko;To(t)?(n=t,t=null,r="dependencies"in n?n.dependencies:Oo):To(r)&&(n=r,r="dependencies"in n?n.dependencies:Oo),t&&"function"!=typeof t&&console.warn("First parameter must be a function or config object");const{scope:i,revertOnUpdate:s}=n,a=e.useRef(!1),o=e.useRef(Co.context(()=>{},i)),l=e.useRef(t=>o.current.add(null,t)),u=r&&r.length&&!s;return u&&wo(()=>(a.current=!0,()=>o.current.revert()),Oo),wo(()=>{if(t&&o.current.add(t,i),!u||!a.current)return()=>o.current.revert()},r),{context:o.current,contextSafe:l.current}};Eo.register=t=>{Co=t},Eo.headless=!0;
|
|
47
47
|
/*!
|
|
48
48
|
* SplitText 3.15.0
|
|
49
49
|
* https://gsap.com
|
|
@@ -51,5 +51,5 @@ var Gi,$i,Qi,Zi,Ki,Ji,ts,es,rs,ns,is,ss,as,os,us,ls,cs,fs,hs,ps,ds,gs,_s,ms,vs,y
|
|
|
51
51
|
* @license Copyright 2026, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
|
|
52
52
|
* @author: Jack Doyle
|
|
53
53
|
*/
|
|
54
|
-
let Oo,Eo,So,Mo="function"==typeof Symbol?Symbol():"_split",Ao="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Po=t=>t?"string"==typeof t?Po(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Po(e)):t.push(e),t),[]):[t]:[],Ro=t=>Po(t).filter(t=>t&&1===t.nodeType),Do=[],zo=function(){},Fo={add:t=>t()},Io=/\s+/g,No=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),Bo={left:0,top:0,width:0,height:0},Lo=(t,e)=>{for(;++e<t.length&&t[e]===Bo;);return t[e]||Bo},Yo=({element:t,html:e,ariaL:r,ariaH:n})=>{t.innerHTML=e,r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label"),n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")},jo=(t,e)=>{if(e){let r,n,i,s,a=new Set(t.join("").match(e)||Do),o=t.length;if(a.size)for(;--o>-1;)for(i of(n=t[o],a))if(i.startsWith(n)&&i.length>n.length){for(r=0,s=n;i.startsWith(s+=t[o+ ++r])&&s.length<i.length;);if(r&&s.length===i.length){t[o]=i,t.splice(o+1,r);break}}}return t},Xo=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),qo=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),Wo=(t,e,r)=>{let n=e[t+"sClass"]||"",{tag:i="div",aria:s="auto",propIndex:a=!1}=e,o="line"===t?"block":"inline-block",u=n.indexOf("++")>-1,l=e=>{let l=document.createElement(i),c=r.length+1;return n&&(l.className=n+(u?" "+n+c:"")),a&&l.style.setProperty("--"+t,c+""),"none"!==s&&l.setAttribute("aria-hidden","true"),"span"!==i&&(l.style.position="relative",l.style.display=o),l.textContent=e,r.push(l),l};return u&&(n=n.replace("++","")),l.collection=r,l},Ho=(t,e,r,n,i,s,a,o,u,l)=>{var c;let f,h,p,d,g,_,m,v,y,x,b,w,T,k,C,O,E,S,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,I=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),N=0,B=r.collection;for("object"==typeof P?(p=P.delimiter||P,h=P.replaceWith||""):h=""===P?"":P||" ",f=" "!==h;A<M.length;A++)if(d=M[A],3===d.nodeType){for(C=d.textContent||"",R?C=C.replace(Io," "):I&&(C=C.replace(/\n/g,h+"\n")),D&&(C=D(C,t)),d.textContent=C,g=h||p?C.split(p||h):C.match(o)||Do,E=g[g.length-1],v=f?" "===E.slice(-1):!E,E||g.pop(),F=z,m=f?" "===g[0].charAt(0):!g[0],m&&qo(" ",t,d),g[0]||g.shift(),jo(g,u),s&&l||(d.textContent=""),y=1;y<=g.length;y++)if(O=g[y-1],!R&&I&&"\n"===O.charAt(0)&&(null==(c=d.previousSibling)||c.remove(),qo(document.createElement("br"),t,d),O=O.slice(1)),R||""!==O)if(" "===O)t.insertBefore(document.createTextNode(" "),d);else{if(f&&" "===O.charAt(0)&&qo(" ",t,d),N&&1===y&&!m&&B.indexOf(N.parentNode)>-1?(_=B[B.length-1],_.appendChild(document.createTextNode(n?"":O))):(_=r(n?"":O),qo(_,t,d),N&&1===y&&!m&&_.insertBefore(N,_.firstChild)),n)for(b=Ao?jo([...Ao.segment(O)].map(t=>t.segment),u):O.match(o)||Do,S=0;S<b.length;S++)_.appendChild(" "===b[S]?document.createTextNode(" "):n(b[S]));if(s&&l){if(C=d.textContent=C.substring(O.length+1,C.length),x=_.getBoundingClientRect(),x.top>F.top&&x.left<=F.left){for(w=t.cloneNode(),T=t.childNodes[0];T&&T!==_;)k=T,T=T.nextSibling,w.appendChild(k);t.parentNode.insertBefore(w,t),i&&Xo(w)}F=x}(y<g.length||v)&&qo(y>=g.length?" ":f&&" "===O.slice(-1)?" "+h:h,t,d)}else qo(h,t,d);t.removeChild(d),N=0}else 1===d.nodeType&&(a&&a.indexOf(d)>-1?(B.indexOf(d.previousSibling)>-1&&B[B.length-1].appendChild(d),N=d):(Ho(d,e,r,n,i,s,a,o,u,!0),N=0),i&&Xo(d))};const Uo=class t{constructor(t,e){this.isSplit=!1,So||Vo.register(window.gsap),this.elements=Ro(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[Mo])||r._data.orig.filter(({element:e})=>e===t).forEach(Yo)),t[Mo]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let r,n=[],i=()=>{let t,e=n.length;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width)return t.width=r,void this._split()}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},zo(this),this.split(e)}split(t){return(this._ctx||Fo).add(()=>{this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let e,{type:r="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:s,onSplit:a,autoSplit:o=!1,specialChars:u,mask:l}=this.vars,c=r.indexOf("lines")>-1,f=r.indexOf("chars")>-1,h=r.indexOf("words")>-1,p=f&&!h&&!c,d=u&&("push"in u?new RegExp("(?:"+u.join("|")+")","gu"):u),g=d?new RegExp(d.source+"|"+No.source,"gu"):No,_=!!t.ignore&&Ro(t.ignore),{orig:m,animTime:v,obs:y}=this._data;(f||h||c)&&(this.elements.forEach((e,r)=>{m[r]={element:e,html:e.innerHTML,ariaL:e.getAttribute("aria-label"),ariaH:e.getAttribute("aria-hidden")},"auto"===n?e.setAttribute("aria-label",(e.textContent||"").trim()):"hidden"===n&&e.setAttribute("aria-hidden","true");let a,o,u,l,v=[],y=[],x=[],b=f?Wo("char",t,v):null,w=Wo("word",t,y);if(Ho(e,t,w,b,p,i&&(c||p),_,g,d,!1),c){let r,n,i=Po(e.childNodes),s=((t,e,r,n)=>{let i=Wo("line",r,n),s=window.getComputedStyle(t).textAlign||"left";return(r,n)=>{let a=i("");for(a.style.textAlign=s,t.insertBefore(a,e[r]);r<n;r++)a.appendChild(e[r]);a.normalize()}})(e,i,t,x),o=[],u=0,l=i.map(t=>1===t.nodeType?t.getBoundingClientRect():Bo),c=Bo;for(a=0;a<i.length;a++)r=i[a],1===r.nodeType&&("BR"===r.nodeName?(a&&"BR"===i[a-1].nodeName||(o.push(r),s(u,a+1)),u=a+1,c=Lo(l,a)):(n=l[a],a&&n.top>c.top&&n.left<c.left+c.width-1&&(s(u,a),u=a),c=n));u<a&&s(u,a),o.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})}if(!h){for(a=0;a<y.length;a++)if(o=y[a],f||!o.nextSibling||3!==o.nextSibling.nodeType)if(s&&!c){for(u=document.createElement("span"),u.style.whiteSpace="nowrap";o.firstChild;)u.appendChild(o.firstChild);o.replaceWith(u)}else o.replaceWith(...o.childNodes);else l=o.nextSibling,l&&3===l.nodeType&&(l.textContent=(o.textContent||"")+(l.textContent||""),o.remove());y.length=0,e.normalize()}this.lines.push(...x),this.words.push(...y),this.chars.push(...v)}),l&&this[l]&&this.masks.push(...this[l].map(t=>{let e=t.cloneNode();return t.replaceWith(e),e.appendChild(t),t.className&&(e.className=t.className.trim().split(" ").map(t=>t+"-mask").join(" ")),e.style.overflow="clip",e}))),this.isSplit=!0,Eo&&c&&o&&Eo.addEventListener("loadingdone",this._split),(e=a&&a(this))&&e.totalTime&&(this._data.anim=v?e.totalTime(v):e),c&&o&&this.elements.forEach((t,e)=>{m[e].width=t.offsetWidth,y&&y.observe(t)})}),this}kill(){let{obs:t}=this._data;t&&t.disconnect(),null==Eo||Eo.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(Yo),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,n&&(this._data.animTime=n.totalTime(),n.revert()),null==(e=(t=this.vars).onRevert)||e.call(t,this)}return this}static create(e,r){return new t(e,r)}static register(t){Oo=Oo||t||window.gsap,Oo&&(Po=Oo.utils.toArray,zo=Oo.core.context||zo),!So&&window.innerWidth>0&&(Eo=document.fonts,So=!0)}};Uo.version="3.15.0";let Vo=Uo;function Go(r){const{text:s,scrollingElement:a,progression:o="char",style:u,className:l,children:c,playOnScroll:f=!1,playInView:h=!1,delay:p=0,timeline:d,speed:g,gsapScrollTrigger:_,defaultAnimation:m,extendAnimation:v,watch:y=!1}=r,x=e.useRef(null),[b,w]=e.useState(0),[T,k]=e.useState(!1);return e.useEffect(()=>{!function(){if(!y)return;("string"==typeof y?document.querySelector(y):window).addEventListener("resize",()=>{w(t=>t+1)})}()},[]),e.useEffect(()=>{if("loaded"===document.fonts.status)k(!0);else{function t(){return i(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{k(!0)}).catch(()=>{k(!0)})})}t()}},[]),ui(function(){const t=x.current;if(!t||!T)return;const e=a?document.querySelector(`${a}`):function(t){let e=document.querySelector(t);for(;e;){const{overflowY:t}=getComputedStyle(e);if(("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.scrollingElement}(".fade_textation_x"),r=Vo.create(t,{type:"lines,words,chars",linesClass:"line",wordsClass:"word",charsClass:"char",autoSplit:!0}),{chars:n,lines:i,words:s}=r,u=function(){let t=n;if("char_line"===o){const e=i.flatMap(t=>{const e=n.filter(e=>t.contains(e));return e.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else if("word_line"===o){const e=i.flatMap((t,e)=>{const r=s.filter(e=>t.contains(e));return r.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else t="char"==o?n:"word"==o?s:"line"==o?i:n;return{set:"char"==o?n:"word"==o?s:"line"==o?i:"char_line"==o?n:"word_line"==o?s:n,animate:t,speed_0:g||("char"==o?f?.005:.1:"word"==o?.35:"line"==o?.9:"char_line"==o?.08:"word_line"==o?.5:.08)}}();function l(t,e){const r="object"==typeof t?t:{},n=Object.entries(r).map(t=>{const[e,r]=t;return{key:e,val:r}}),i={};for(let t=0;t<n.length;t++){const r=n[t].key,s=n[t].val,a="from"==e?s[0]:"to"==e?s[1]:"";null!==a&&(i[r]=a)}return i}const c=!(!f&&!h),y=d||ri.timeline({paused:c,delay:p});y.set(u.set,Object.assign(Object.assign({opacity:0},l(m,"from")),l(v,"from")));const b=function(){if("object"==typeof _)return _;if("function"==typeof _)return _(y)||{};return{}}();return(t=>{t&&u.animate.forEach((e,r)=>{let n="char_line"===o||"word_line"===o,i=n?e.char:e;const s=n?e.charIndexInLine:r;t.to(i,Object.assign(Object.assign({opacity:1,ease:"power3.out"},l(m,"to")),l(v,"to")),s*u.speed_0)})})(y),f?_o.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:f,animation:y},b)):h&&_o.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>y.restart(),onLeaveBack:()=>y.pause()},b)),()=>{r.revert(),y.kill(),_o.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[T,b],scope:x}),n.default.isValidElement(c)?n.default.cloneElement(c,{ref:x,style:Object.assign(Object.assign({visibility:T?"visible":"hidden"},u),c.props.style),className:["fade_textation_x",c.props.className,l].filter(Boolean).join(" ")}):t.jsx("p",{className:`fade_textation_x ${l}`,style:Object.assign({visibility:T?"visible":"hidden"},u),ref:x,children:s})}ri.registerPlugin(Vo,_o);const $o={TextEngine:Go,TextFade:function(e){return t.jsx(Go,Object.assign({defaultAnimation:{opacity:[0,1]}},e))},TextFadeSkew:function(e){return t.jsx(Go,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},e))},TextFadeSkew_2:function(e){return t.jsx(Go,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},e))},TextFadeDown:function(e){return t.jsx(Go,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},e))},TextFadeOverlay:function(e){return t.jsx(Go,Object.assign({defaultAnimation:{opacity:[.2,1]}},e))}};const{TextEngine:Qo,TextFade:Zo,TextFadeDown:Ko,TextFadeSkew:Jo,TextFadeSkew_2:tu,TextFadeOverlay:eu}=$o;exports.TextEngine=Qo,exports.TextFade=Zo,exports.TextFadeDown=Ko,exports.TextFadeOverlay=eu,exports.TextFadeSkew=Jo,exports.TextFadeSkew_2=tu,exports.justSayHello=function({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")};
|
|
54
|
+
let So,Mo,Ao,Po="function"==typeof Symbol?Symbol():"_split",Ro="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Do=t=>t?"string"==typeof t?Do(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Do(e)):t.push(e),t),[]):[t]:[],zo=t=>Do(t).filter(t=>t&&1===t.nodeType),Fo=[],Io=function(){},No={add:t=>t()},Bo=/\s+/g,Lo=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),jo={left:0,top:0,width:0,height:0},Yo=(t,e)=>{for(;++e<t.length&&t[e]===jo;);return t[e]||jo},Xo=({element:t,html:e,ariaL:r,ariaH:n})=>{t.innerHTML=e,r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label"),n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")},qo=(t,e)=>{if(e){let r,n,i,s,a=new Set(t.join("").match(e)||Fo),o=t.length;if(a.size)for(;--o>-1;)for(i of(n=t[o],a))if(i.startsWith(n)&&i.length>n.length){for(r=0,s=n;i.startsWith(s+=t[o+ ++r])&&s.length<i.length;);if(r&&s.length===i.length){t[o]=i,t.splice(o+1,r);break}}}return t},Wo=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),Ho=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),Uo=(t,e,r)=>{let n=e[t+"sClass"]||"",{tag:i="div",aria:s="auto",propIndex:a=!1}=e,o="line"===t?"block":"inline-block",l=n.indexOf("++")>-1,u=e=>{let u=document.createElement(i),c=r.length+1;return n&&(u.className=n+(l?" "+n+c:"")),a&&u.style.setProperty("--"+t,c+""),"none"!==s&&u.setAttribute("aria-hidden","true"),"span"!==i&&(u.style.position="relative",u.style.display=o),u.textContent=e,r.push(u),u};return l&&(n=n.replace("++","")),u.collection=r,u},Vo=(t,e,r,n,i,s,a,o,l,u)=>{var c;let f,h,d,p,g,m,_,v,y,x,b,w,T,O,k,C,E,S,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,I=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),N=0,B=r.collection;for("object"==typeof P?(d=P.delimiter||P,h=P.replaceWith||""):h=""===P?"":P||" ",f=" "!==h;A<M.length;A++)if(p=M[A],3===p.nodeType){for(k=p.textContent||"",R?k=k.replace(Bo," "):I&&(k=k.replace(/\n/g,h+"\n")),D&&(k=D(k,t)),p.textContent=k,g=h||d?k.split(d||h):k.match(o)||Fo,E=g[g.length-1],v=f?" "===E.slice(-1):!E,E||g.pop(),F=z,_=f?" "===g[0].charAt(0):!g[0],_&&Ho(" ",t,p),g[0]||g.shift(),qo(g,l),s&&u||(p.textContent=""),y=1;y<=g.length;y++)if(C=g[y-1],!R&&I&&"\n"===C.charAt(0)&&(null==(c=p.previousSibling)||c.remove(),Ho(document.createElement("br"),t,p),C=C.slice(1)),R||""!==C)if(" "===C)t.insertBefore(document.createTextNode(" "),p);else{if(f&&" "===C.charAt(0)&&Ho(" ",t,p),N&&1===y&&!_&&B.indexOf(N.parentNode)>-1?(m=B[B.length-1],m.appendChild(document.createTextNode(n?"":C))):(m=r(n?"":C),Ho(m,t,p),N&&1===y&&!_&&m.insertBefore(N,m.firstChild)),n)for(b=Ro?qo([...Ro.segment(C)].map(t=>t.segment),l):C.match(o)||Fo,S=0;S<b.length;S++)m.appendChild(" "===b[S]?document.createTextNode(" "):n(b[S]));if(s&&u){if(k=p.textContent=k.substring(C.length+1,k.length),x=m.getBoundingClientRect(),x.top>F.top&&x.left<=F.left){for(w=t.cloneNode(),T=t.childNodes[0];T&&T!==m;)O=T,T=T.nextSibling,w.appendChild(O);t.parentNode.insertBefore(w,t),i&&Wo(w)}F=x}(y<g.length||v)&&Ho(y>=g.length?" ":f&&" "===C.slice(-1)?" "+h:h,t,p)}else Ho(h,t,p);t.removeChild(p),N=0}else 1===p.nodeType&&(a&&a.indexOf(p)>-1?(B.indexOf(p.previousSibling)>-1&&B[B.length-1].appendChild(p),N=p):(Vo(p,e,r,n,i,s,a,o,l,!0),N=0),i&&Wo(p))};const Go=class t{constructor(t,e){this.isSplit=!1,Ao||$o.register(window.gsap),this.elements=zo(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[Po])||r._data.orig.filter(({element:e})=>e===t).forEach(Xo)),t[Po]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let r,n=[],i=()=>{let t,e=n.length;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width)return t.width=r,void this._split()}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},Io(this),this.split(e)}split(t){return(this._ctx||No).add(()=>{this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let e,{type:r="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:s,onSplit:a,autoSplit:o=!1,specialChars:l,mask:u}=this.vars,c=r.indexOf("lines")>-1,f=r.indexOf("chars")>-1,h=r.indexOf("words")>-1,d=f&&!h&&!c,p=l&&("push"in l?new RegExp("(?:"+l.join("|")+")","gu"):l),g=p?new RegExp(p.source+"|"+Lo.source,"gu"):Lo,m=!!t.ignore&&zo(t.ignore),{orig:_,animTime:v,obs:y}=this._data;(f||h||c)&&(this.elements.forEach((e,r)=>{_[r]={element:e,html:e.innerHTML,ariaL:e.getAttribute("aria-label"),ariaH:e.getAttribute("aria-hidden")},"auto"===n?e.setAttribute("aria-label",(e.textContent||"").trim()):"hidden"===n&&e.setAttribute("aria-hidden","true");let a,o,l,u,v=[],y=[],x=[],b=f?Uo("char",t,v):null,w=Uo("word",t,y);if(Vo(e,t,w,b,d,i&&(c||d),m,g,p,!1),c){let r,n,i=Do(e.childNodes),s=((t,e,r,n)=>{let i=Uo("line",r,n),s=window.getComputedStyle(t).textAlign||"left";return(r,n)=>{let a=i("");for(a.style.textAlign=s,t.insertBefore(a,e[r]);r<n;r++)a.appendChild(e[r]);a.normalize()}})(e,i,t,x),o=[],l=0,u=i.map(t=>1===t.nodeType?t.getBoundingClientRect():jo),c=jo;for(a=0;a<i.length;a++)r=i[a],1===r.nodeType&&("BR"===r.nodeName?(a&&"BR"===i[a-1].nodeName||(o.push(r),s(l,a+1)),l=a+1,c=Yo(u,a)):(n=u[a],a&&n.top>c.top&&n.left<c.left+c.width-1&&(s(l,a),l=a),c=n));l<a&&s(l,a),o.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})}if(!h){for(a=0;a<y.length;a++)if(o=y[a],f||!o.nextSibling||3!==o.nextSibling.nodeType)if(s&&!c){for(l=document.createElement("span"),l.style.whiteSpace="nowrap";o.firstChild;)l.appendChild(o.firstChild);o.replaceWith(l)}else o.replaceWith(...o.childNodes);else u=o.nextSibling,u&&3===u.nodeType&&(u.textContent=(o.textContent||"")+(u.textContent||""),o.remove());y.length=0,e.normalize()}this.lines.push(...x),this.words.push(...y),this.chars.push(...v)}),u&&this[u]&&this.masks.push(...this[u].map(t=>{let e=t.cloneNode();return t.replaceWith(e),e.appendChild(t),t.className&&(e.className=t.className.trim().split(" ").map(t=>t+"-mask").join(" ")),e.style.overflow="clip",e}))),this.isSplit=!0,Mo&&c&&o&&Mo.addEventListener("loadingdone",this._split),(e=a&&a(this))&&e.totalTime&&(this._data.anim=v?e.totalTime(v):e),c&&o&&this.elements.forEach((t,e)=>{_[e].width=t.offsetWidth,y&&y.observe(t)})}),this}kill(){let{obs:t}=this._data;t&&t.disconnect(),null==Mo||Mo.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(Xo),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,n&&(this._data.animTime=n.totalTime(),n.revert()),null==(e=(t=this.vars).onRevert)||e.call(t,this)}return this}static create(e,r){return new t(e,r)}static register(t){So=So||t||window.gsap,So&&(Do=So.utils.toArray,Io=So.core.context||Io),!Ao&&window.innerWidth>0&&(Mo=document.fonts,Ao=!0)}};Go.version="3.15.0";let $o=Go;ri.registerPlugin($o,uo);const Zo={Z_Text:function({text:n,scrollingElement:s,progression:a="char",animation:o="Fade",playOnScroll:l=!1,playInView:u=!1,controllerRef:c=null,style:f,className:h,children:d,delay:p=0,timeline:g,speed:m,gsapScrollTrigger:_,extendAnimation:v,watch:y=!1}){const x=e.useRef(null),[b,w]=e.useState(!1),[T,O]=e.useState(0),k=l||u,C=null!=g?g:ri.timeline({paused:k,delay:p});return c&&(c.current=C),e.useEffect(()=>function(){if(!y)return;const t="string"==typeof y?document.querySelector(y):window;if(!t)return;const e=()=>O(t=>t+1);return t.addEventListener("resize",e),()=>{t.removeEventListener("resize",e)}}(),[y]),e.useEffect(()=>{let t=!0;return function(){bo(this,void 0,void 0,function*(){yield document.fonts.ready,t&&w(!0)})}(),()=>t=!1},[]),Eo(function(){const t=x.current;if(!t||!b)return;const e=ri.context(()=>{var e;const n=s?document.querySelector(`${s}`):r.findScrollingElement(".fade_textation_x"),i=$o.create(t,{type:"lines,words,chars",autoSplit:!0,linesClass:"line",wordsClass:"word",charsClass:"char"}),{chars:c,words:f,lines:h}=i,d=r.getProgressionData(a,c,f,h,m,l),p=null!==(e=r.animation_list[o])&&void 0!==e?e:r.animation_list.Fade,g=Object.assign(Object.assign({},r.build_extend_animation(p,"from")),r.build_extend_animation(v,"from")),y=Object.assign(Object.assign({},r.build_extend_animation(p,"to")),r.build_extend_animation(v,"to"));C.set(d.set,g);"char_line"===a||"word_line"===a?d.animate.forEach(t=>{C.to(t.char,y,t.charIndexInLine*d.speed)}):C.to(d.animate,Object.assign(Object.assign({},y),{stagger:d.speed}),0);const x="function"==typeof _?_(C)||{}:_||{};l?uo.create(Object.assign({trigger:t,scroller:n,start:"top 85%",end:"top 35%",scrub:!0,animation:C},x)):u&&uo.create(Object.assign({trigger:t,scroller:n,start:"top bottom",onEnter:()=>C.restart(),onLeaveBack:()=>C.pause()},x))},x);return()=>e.revert()},{scope:x,dependencies:[b,T]}),i.default.isValidElement(d)?i.default.cloneElement(d,{ref:x,style:Object.assign(Object.assign({visibility:b?"visible":"hidden"},f),d.props.style),className:["fade_textation_x",d.props.className,h].filter(Boolean).join(" ")}):t.jsx("p",{className:`fade_textation_x ${h}`,style:Object.assign({visibility:b?"visible":"hidden"},f),ref:x,children:n})},VerticalScroll:xo};function Qo(r){const{text:n,scrollingElement:s,progression:a="char",style:o,className:l,children:u,playOnScroll:c=!1,playInView:f=!1,delay:h=0,timeline:d,speed:p,gsapScrollTrigger:g,defaultAnimation:m,extendAnimation:_,watch:v=!1}=r,y=e.useRef(null),[x,b]=e.useState(0),[w,T]=e.useState(!1);return e.useEffect(()=>{!function(){if(!v)return;("string"==typeof v?document.querySelector(v):window).addEventListener("resize",()=>{b(t=>t+1)})}()},[]),e.useEffect(()=>{if("loaded"===document.fonts.status)T(!0);else{function t(){return bo(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{T(!0)}).catch(()=>{T(!0)})})}t()}},[]),Eo(function(){const t=y.current;if(!t||!w)return;const e=s?document.querySelector(`${s}`):function(t){let e=document.querySelector(t);for(;e;){const{overflowY:t}=getComputedStyle(e);if(("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.scrollingElement}(".fade_textation_x"),r=$o.create(t,{type:"lines,words,chars",linesClass:"line",wordsClass:"word",charsClass:"char",autoSplit:!0}),{chars:n,lines:i,words:o}=r,l=function(){let t=n;if("char_line"===a){const e=i.flatMap(t=>{const e=n.filter(e=>t.contains(e));return e.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else if("word_line"===a){const e=i.flatMap((t,e)=>{const r=o.filter(e=>t.contains(e));return r.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else t="char"==a?n:"word"==a?o:"line"==a?i:n;return{set:"char"==a?n:"word"==a?o:"line"==a?i:"char_line"==a?n:"word_line"==a?o:n,animate:t,speed_0:p||("char"==a?c?.005:.1:"word"==a?.35:"line"==a?.9:"char_line"==a?.08:"word_line"==a?.5:.08)}}();function u(t,e){const r="object"==typeof t?t:{},n=Object.entries(r).map(t=>{const[e,r]=t;return{key:e,val:r}}),i={};for(let t=0;t<n.length;t++){const r=n[t].key,s=n[t].val,a="from"==e?s[0]:"to"==e?s[1]:"";null!==a&&(i[r]=a)}return i}const v=!(!c&&!f),x=d||ri.timeline({paused:v,delay:h});x.set(l.set,Object.assign(Object.assign({opacity:0},u(m,"from")),u(_,"from")));const b=function(){if("object"==typeof g)return g;if("function"==typeof g)return g(x)||{};return{}}();return(t=>{t&&l.animate.forEach((e,r)=>{let n="char_line"===a||"word_line"===a,i=n?e.char:e;const s=n?e.charIndexInLine:r;t.to(i,Object.assign(Object.assign({opacity:1,ease:"power3.out"},u(m,"to")),u(_,"to")),s*l.speed_0)})})(x),c?uo.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:c,animation:x},b)):f&&uo.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>x.restart(),onLeaveBack:()=>x.pause()},b)),()=>{r.revert(),x.kill(),uo.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[w,x],scope:y}),i.default.isValidElement(u)?i.default.cloneElement(u,{ref:y,style:Object.assign(Object.assign({visibility:w?"visible":"hidden"},o),u.props.style),className:["fade_textation_x",u.props.className,l].filter(Boolean).join(" ")}):t.jsx("p",{className:`fade_textation_x ${l}`,style:Object.assign({visibility:w?"visible":"hidden"},o),ref:y,children:n})}ri.registerPlugin($o,uo);const Ko={TextEngine:Qo,TextFade:function(e){return t.jsx(Qo,Object.assign({defaultAnimation:{opacity:[0,1]}},e))},TextFadeSkew:function(e){return t.jsx(Qo,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},e))},TextFadeSkew_2:function(e){return t.jsx(Qo,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},e))},TextFadeDown:function(e){return t.jsx(Qo,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},e))},TextFadeOverlay:function(e){return t.jsx(Qo,Object.assign({defaultAnimation:{opacity:[.2,1]}},e))},VerticalScroll:xo};const{TextEngine:Jo,TextFade:tl,TextFadeDown:el,TextFadeSkew:rl,TextFadeSkew_2:nl,TextFadeOverlay:il}=Ko,{Z_Text:sl,VerticalScroll:al}=Zo;exports.TextEngine=Jo,exports.TextFade=tl,exports.TextFadeDown=el,exports.TextFadeOverlay=il,exports.TextFadeSkew=rl,exports.TextFadeSkew_2=nl,exports.VerticalScroll=al,exports.Z_Text=sl,exports.justSayHello=function({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")};
|
|
55
55
|
//# sourceMappingURL=index.js.map
|