z-flux-react 1.0.3 → 1.0.4
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.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import r,{useRef as n,useState as i,useEffect as s,useLayoutEffect as a,Fragment as o}from"react";import{countNumbers as l,overlay_text_animations as u,getLayerWidth as c,randomizeArray as
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import r,{useRef as n,useState as i,useEffect as s,useLayoutEffect as a,Fragment as o}from"react";import{countNumbers as l,overlay_text_animations as u,getLayerWidth as c,randomizeArray as h,findScrollingElement as f,build_extend_animation as d,getProgressionData as p,animation_list as g}from"z-flux-utils";function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(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 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r,{useRef as n,useState
|
|
|
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
|
-
*/var v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,F={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},N={duration:.5,overwrite:!1,delay:0},I=1e8,B=1e-8,L=2*Math.PI,j=L/4,Y=0,X=Math.sqrt,W=Math.cos,q=Math.sin,H=function(t){return"string"==typeof t},U=function(t){return"function"==typeof t},V=function(t){return"number"==typeof t},G=function(t){return void 0===t},$=function(t){return"object"==typeof t},Z=function(t){return!1!==t},Q=function(){return"undefined"!=typeof window},K=function(t){return U(t)||H(t)},J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},tt=Array.isArray,et=/random\([^)]+\)/g,rt=/,\s*/g,nt=/(?:-?\.?\d|\.)+/gi,it=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,st=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,at=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ot=/[+-]=-?[.\d]+/,lt=/[^,'"\[\]\s]+/gi,ut=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ct={},ft={},ht=function(t){return(ft=Xt(t,ct))&&Xr},dt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},pt=function(t,e){return!e&&console.warn(t)},gt=function(t,e){return t&&(ct[t]=e)&&ft&&(ft[t]=e)||ct},mt=function(){return 0},_t={suppressEvents:!0,isStart:!0,kill:!1},vt={suppressEvents:!0,kill:!1},yt={suppressEvents:!0},xt={},bt=[],wt={},Tt={},Ot={},Ct=30,kt=[],Et="",St=function(t){var e,r,n=t[0];if($(n)||U(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=kt.length;r--&&!kt[r].targetTest(n););e=kt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new rr(t[r],e)))||t.splice(r,1);return t},Mt=function(t){return t._gsap||St(xe(t))[0]._gsap},At=function(t,e,r){return(r=t[e])&&U(r)?t[e]():G(r)&&t.getAttribute&&t.getAttribute(e)||r},Pt=function(t,e){return(t=t.split(",")).forEach(e)||t},Rt=function(t){return Math.round(1e5*t)/1e5||0},Dt=function(t){return Math.round(1e7*t)/1e7||0},zt=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},Ft=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Nt=function(){var t,e,r=bt.length,n=bt.slice(0);for(wt={},bt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},It=function(t){return!!(t._initted||t._startAt||t.add)},Bt=function(t,e,r,n){bt.length&&!y&&Nt(),t.render(e,r,n||!!(y&&e<0&&It(t))),bt.length&&!y&&Nt()},Lt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(lt).length<2?e:H(t)?t.trim():t},jt=function(t){return t},Yt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Xt=function(t,e){for(var r in e)t[r]=e[r];return t},Wt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=$(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},qt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Ht=function(t){var e,r=t.parent||b,n=t.keyframes?(e=tt(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Yt;if(Z(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ut=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},Vt=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},Gt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},$t=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},Zt=function(t,e,r,n){return t._startAt&&(y?t._startAt.revert(vt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Qt=function t(e){return!e||e._ts&&t(e.parent)},Kt=function(t){return t._repeat?Jt(t._tTime,t=t.duration()+t._rDelay)*t:0},Jt=function(t,e){var r=Math.floor(t=Dt(t/e));return t&&r===t?r-1:r},te=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ee=function(t){return t._end=Dt(t._start+(t._tDur/Math.abs(t._ts||t._rts||B)||0))},re=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Dt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ee(t),r._dirty||$t(r,t)),t},ne=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=te(t.rawTime(),e),(!e._dur||ge(0,e.totalDuration(),r)-e._tTime>B)&&e.render(r,!0)),$t(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}},ie=function(t,e,r,n){return e.parent&&Gt(e),e._start=Dt((V(r)?r:r||t!==b?he(t,r,e):t._time)+e._delay),e._end=Dt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ut(t,e,"_first","_last",t._sort?"_start":0),le(e)||(t._recent=e),n||ne(t,e),t._ts<0&&re(t,t._tTime),t},se=function(t,e){return(ct.ScrollTrigger||dt("scrollTrigger",e))&&ct.ScrollTrigger.create(e,t)},ae=function(t,e,r,n,i){return cr(t,e,i),t._initted?!r&&t._pt&&!y&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&k!==qe.frame?(bt.push(t),t._lazy=[i,n],1):void 0:1},oe=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},le=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ue=function(t,e,r,n){var i=t._repeat,s=Dt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:Dt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&re(t,t._tTime=t._tDur*a),t.parent&&ee(t),r||$t(t.parent,t),t},ce=function(t){return t instanceof ir?$t(t):ue(t,t._dur)},fe={_start:0,endTime:mt,totalDuration:mt},he=function t(e,r,n){var i,s,a,o=e.labels,l=e._recent||fe,u=e.duration()>=I?l.endTime(!1):e._dur;return H(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*(tt(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},de=function(t,e,r){var n,i,s=V(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=Z(i.vars.inherit)&&i.parent;o.immediateRender=Z(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new gr(e[0],o,e[a+1])},pe=function(t,e){return t||0===t?e(t):e},ge=function(t,e,r){return r<t?t:r>e?e:r},me=function(t,e){return H(t)&&(e=ut.exec(t))?e[1]:""},_e=[].slice,ve=function(t,e){return t&&$(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&$(t[0]))&&!t.nodeType&&t!==w},ye=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return H(t)&&!e||ve(t,1)?(n=r).push.apply(n,xe(t)):r.push(t)})||r},xe=function(t,e,r){return x&&!e&&x.selector?x.selector(t):!H(t)||r||!T&&He()?tt(t)?ye(t,r):ve(t)?_e.call(t,0):t?[t]:[]:_e.call((e||O).querySelectorAll(t),0)},be=function(t){return t=xe(t)[0]||pt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return xe(e,r.querySelectorAll?r:r===t?pt("Invalid scope")||O.createElement("div"):t)}},we=function(t){return t.sort(function(){return.5-Math.random()})},Te=function(t){if(U(t))return t;var e=$(t)?t:{each:t},r=Qe(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 H(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,I])[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===I?0:o?b*c/x-.5:n/x|0,v=0,y=I,_=0;_<b;_++)p=_%x-h,g=d-(_/x|0),w[_]=m=l?Math.abs("y"===l?g:p):X(p*p+g*g),m>v&&(v=m),m<y&&(y=m);"random"===n&&we(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=me(e.amount||e.each)||0,r=r&&b<0?Ze(r):r}return b=(w[t]-w.min)/w.max||0,Dt(w.b+(r?r(b):b)*w.v)+w.u}},Oe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=Dt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(V(r)?0:me(r))}},Ce=function(t,e){var r,n,i=tt(t);return!i&&$(t)&&(r=i=t.radius||I,t.values?(t=xe(t.values),(n=!V(t[0]))&&(r*=r)):t=Oe(t.increment)),pe(e,i?U(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=I,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||V(e)?u:u+me(e)}:Oe(t))},ke=function(t,e,r,n){return pe(tt(t)?!e:!0===r?!!(r=0):!n,function(){return tt(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})},Ee=function(t,e,r){return pe(r,function(r){return t[~~e(r)]})},Se=function(t){return t.replace(et,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(rt);return ke(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},Me=function(t,e,r,n,i){var s=e-t,a=n-r;return pe(i,function(e){return r+((e-t)/s*a||0)})},Ae=function(t,e,r){var n,i,s,a=t.labels,o=I;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},Pe=function(t,e,r){var n,i,s,a=t.vars,o=a[e],l=x,u=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&bt.length&&Nt(),u&&(x=u),s=n?o.apply(i,n):o.call(i),x=l,s},Re=function(t){return Gt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!y),t.progress()<1&&Pe(t,"onInterrupt"),t},De=[],ze=function(t){if(t)if(t=!t.name&&t.default||t,Q()||t.headless){var e=t.name,r=U(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:mt,render:Or,add:lr,kill:kr,modifier:Cr,rawVars:0},s={targetTest:0,get:0,getSetter:xr,aliases:{},register:0};if(He(),t!==n){if(Tt[e])return;Yt(n,Yt(qt(t,i),s)),Xt(n.prototype,Xt(i,qt(t,s))),Tt[n.prop=e]=n,t.targetTest&&(kt.push(n),xt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}gt(e,n),t.register&&t.register(Xr,n,Mr)}else De.push(t)},Fe=255,Ne={aqua:[0,Fe,Fe],lime:[0,Fe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Fe],navy:[0,0,128],white:[Fe,Fe,Fe],olive:[128,128,0],yellow:[Fe,Fe,0],orange:[Fe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Fe,0,0],pink:[Fe,192,203],cyan:[0,Fe,Fe],transparent:[Fe,Fe,Fe,0]},Ie=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)*Fe+.5|0},Be=function(t,e,r){var n,i,s,a,o,l,u,c,f,h,d=t?V(t)?[t>>16,t>>8&Fe,t&Fe]:0:Ne.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ne[t])d=Ne[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&Fe,d&Fe,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Fe,t&Fe]}else if("hsl"===t.substr(0,3))if(d=h=t.match(nt),e){if(~t.indexOf("="))return d=t.match(it),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]=Ie(a+1/3,n,i),d[1]=Ie(a,n,i),d[2]=Ie(a-1/3,n,i);else d=t.match(nt)||Ne.transparent;d=d.map(Number)}return e&&!h&&(n=d[0]/Fe,i=d[1]/Fe,s=d[2]/Fe,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},Le=function(t){var e=[],r=[],n=-1;return t.split(Ye).forEach(function(t){var i=t.match(st)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},je=function(t,e,r){var n,i,s,a,o="",l=(t+o).match(Ye),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=Be(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Le(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ye,"1").split(st)).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(Ye)).length-1;c<a;c++)o+=i[c]+l[c];return o+i[a]},Ye=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ne)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Xe=/hsl[a]?\(/,We=function(t){var e,r=t.join(" ");if(Ye.lastIndex=0,Ye.test(r))return e=Xe.test(r),t[1]=je(t[1],e),t[0]=je(t[0],e,Le(t[1])),!0},qe=function(){var t,e,r,n,i,s,a=Date.now,o=500,l=33,u=a(),c=u,f=1e3/240,h=f,d=[],p=function r(p){var g,m,_,v,y=a()-c,x=!0===p;if((y>o||y<0)&&(u+=y-l),((g=(_=(c+=y)-u)-h)>0||x)&&(v=++n.frame,i=_-1e3*n.time,n.time=_/=1e3,h+=g+(g>=f?4:f-g),m=1),x||(t=e(r)),m)for(s=0;s<d.length;s++)d[s](_,i,v,p)};return n={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){C&&(!T&&Q()&&(w=T=window,O=w.document||{},ct.gsap=Xr,(w.gsapVersions||(w.gsapVersions=[])).push(Xr.version),ht(ft||w.GreenSockGlobals||!w.gsap&&w||{}),De.forEach(ze)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,h-1e3*n.time+1|0)},S=1,p(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),S=0,e=mt},lagSmoothing:function(t,e){o=t||1/0,l=Math.min(e||33,o)},fps:function(t){f=1e3/(t||240),h=1e3*n.time+f},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),d[r?"unshift":"push"](i),He(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&s>=e&&s--},_listeners:d}}(),He=function(){return!S&&qe.wake()},Ue={},Ve=/^[\d.\-M][\d.\-,\s]/,Ge=/["']/g,$e=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(Ge,"").trim():+n,a=r.substr(e+1).trim();return i},Ze=function(t){return function(e){return 1-t(1-e)}},Qe=function(t,e){return t&&(U(t)?t:Ue[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Ue[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[$e(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(Lt)):Ue._CE&&Ve.test(t)?Ue._CE("",t):a}(t))||e},Ke=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return Pt(t,function(t){for(var e in Ue[t]=ct[t]=s,Ue[i=t.toLowerCase()]=r,s)Ue[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ue[t+"."+e]=s[e]}),s},Je=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},tr=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/L*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*q((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Je(o);return s=L/s,l.config=function(r,n){return t(e,r,n)},l},er=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)}:Je(n);return i.config=function(r){return t(e,r)},i};Pt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Ke(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})}),Ue.Linear.easeNone=Ue.none=Ue.Linear.easeIn,Ke("Elastic",tr("in"),tr("out"),tr()),M=7.5625,R=2*(P=1/(A=2.75)),D=2.5*P,Ke("Bounce",function(t){return 1-z(1-t)},z=function(t){return t<P?M*t*t:t<R?M*Math.pow(t-1.5/A,2)+.75:t<D?M*(t-=2.25/A)*t+.9375:M*Math.pow(t-2.625/A,2)+.984375}),Ke("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Ke("Circ",function(t){return-(X(1-t*t)-1)}),Ke("Sine",function(t){return 1===t?1:1-W(t*j)}),Ke("Back",er("in"),er("out"),er()),Ue.SteppedEase=Ue.steps=ct.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*ge(0,.99999999,t)|0)+i)*r}}},N.ease=Ue["quad.out"],Pt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Et+=t+","+t+"Params,"});var rr=function(t,e){this.id=Y++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:At,this.set=e?e.getSetter:xr},nr=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,ue(this,+t.duration,1,1),this.data=t.data,x&&(this._ctx=x,x.data.push(this)),S||qe.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,ue(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(He(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(re(this,t),!r._dp||r.parent||ne(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)&&ie(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===B||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Kt(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)+Kt(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?Jt(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?te(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ge(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),ee(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):(He(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==B&&(this._tTime-=B)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Dt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ie(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Z(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?te(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=yt);var e=y;return y=t,It(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),y=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,ce(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,ce(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(he(this,t),Z(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Z(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)-B))},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=U(t)?t:jt,s=function(){var t=e.then;e.then=null,r&&r(),U(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(){Re(this)},t}();Yt(nr.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 ir=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=Z(e.sortChildren),b&&ie(e.parent||b,m(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&se(m(n),e.scrollTrigger),n}_(e,t);var r=e.prototype;return r.to=function(t,e,r){return de(0,arguments,this),this},r.from=function(t,e,r){return de(1,arguments,this),this},r.fromTo=function(t,e,r,n){return de(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Ht(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new gr(t,e,he(this,r),1),this},r.call=function(t,e,r){return ie(this,gr.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 gr(t,r,he(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,Ht(r).immediateRender=Z(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,Ht(n).immediateRender=Z(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,a,o,l,u,c,f,h,d,p,g=this._time,m=this._dirty?this.totalDuration():this._tDur,_=this._dur,v=t<=0?0:Dt(t),x=this._zTime<0!=t<0&&(this._initted||!_);if(this!==b&&v>m&&t>=0&&(v=m),v!==this._tTime||r||x){if(g!==this._time&&_&&(v+=this._time-g,t+=this._time-g),n=v,f=this._start,l=!(c=this._ts),x&&(_||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=Dt(v%o),v===m?(a=this._repeat,n=_):((a=~~(h=Dt(v/o)))&&a===h&&(n=_,a--),n>_&&(n=_)),h=Jt(this._tTime,o),!g&&this._tTime&&h!==a&&this._tTime-h*o-this._dur<=0&&(h=a),d&&1&a&&(n=_-n,p=1),a!==h&&!this._lock){var w=d&&1&h,T=w===(d&&1&a);if(a<h&&(w=!w),g=w?0:v%_?_:v,this._lock=1,this.render(g||(p?0:Dt(a*o)),e,!_)._lock=0,this._tTime=v,!e&&this.parent&&Pe(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1,h=a),g&&g!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,m=this._tDur,T&&(this._lock=2,g=w?_:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=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,Dt(g),Dt(n)),u&&(v-=n-(n=u._start))),this._tTime=v,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&v&&_&&!e&&!h&&(Pe(this,"onStart"),this._tTime!==v))return this;if(n>=g&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&u!==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){u=0,s&&(v+=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&&u!==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||y&&It(i)),n!==this._time||!this._ts&&!l){u=0,s&&(v+=this._zTime=O?-1e-8:B);break}}i=s}}if(u&&!e&&(this.pause(),u.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=f,ee(this),this.render(t,e,r);this._onUpdate&&!e&&Pe(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&g)&&(f!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!_)&&(v===m&&this._ts>0||!v&&this._ts<0)&&Gt(this,1),e||t<0&&!g||!v&&!g&&m||(Pe(this,v===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<m&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(V(e)||(e=he(this,e,t)),!(t instanceof nr)){if(tt(t))return t.forEach(function(t){return r.add(t,e)}),this;if(H(t))return this.addLabel(t,e);if(!U(t))return this;t=gr.delayedCall(0,t)}return this!==t?ie(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 gr?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 H(t)?this.removeLabel(t):U(t)?this.killTweensOf(t):(t.parent===this&&Vt(this,t),t===this._recent&&(this._recent=this._last),$t(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Dt(qe.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]=he(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=gr.delayedCall(0,e||mt,r);return n.data="isPause",this._hasPause=1,ie(this,n,he(this,t))},r.removePause=function(t){var e=this._first;for(t=he(this,t);e;)e._start===t&&"isPause"===e.data&&Gt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)sr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=xe(t),s=this._first,a=V(e);s;)s instanceof gr?Ft(s._targets,i)&&(a?(!sr||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=he(n,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,u=s.immediateRender,c=gr.to(n,Yt({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())||B,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&&ue(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,Yt({startAt:{time:he(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),Ae(this,he(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),Ae(this,he(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=Dt(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 $t(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={}),$t(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=I;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,ie(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=Dt(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;ue(s,s===b&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(b._ts&&(Bt(b,te(t,b)),k=qe.frame),qe.frame>=Ct){Ct+=F.autoSleep||120;var e=b._first;if((!e||!e._ts)&&F.autoSleep&&qe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||qe.sleep()}}},e}(nr);Yt(ir.prototype,{_lock:0,_hasPause:0,_forcing:0});var sr,ar,or=function(t,e,r,n,i,s,a){var o,l,u,c,f,h,d,p,g=new Mr(this._pt,t,e,0,1,Tr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=Se(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match(at)||[];o=at.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)?zt(h,c)-h:parseFloat(c)-h,m:u&&u<4?Math.round:0},m=at.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=a,(ot.test(n)||d)&&(g.e=0),this._pt=g,g},lr=function(t,e,r,n,i,s,a,o,l,u){U(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:U(f)?l?t[e.indexOf("set")||!U(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():f,d=U(f)?l?vr:_r:mr;if(H(n)&&(~n.indexOf("random(")&&(n=Se(n)),"="===n.charAt(1)&&((c=zt(h,n)+(me(h)||0))||0===c)&&(n=c)),!u||h!==n||ar)return isNaN(h*n)||""===n?(!f&&!(e in t)&&dt(e,n),or.call(this,t,e,h,n,d,o||F.stringFilter,l)):(c=new Mr(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?wr:br,0,d),l&&(c.fp=l),a&&c.modifier(a,this,t),this._pt=c)},ur=function(t,e,r,n,i,s){var a,o,l,u;if(Tt[t]&&!1!==(a=new Tt[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(U(t)&&(t=hr(t,i,e,r,n)),!$(t)||t.style&&t.nodeType||tt(t)||J(t))return H(t)?hr(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=hr(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new Mr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==E))for(l=r._ptLookup[r._targets.indexOf(i)],u=a._props.length;u--;)l[a._props[u]]=o;return a},cr=function t(e,r,n){var i,s,a,o,l,u,c,f,h,d,p,g,m,_=e.vars,x=_.ease,w=_.startAt,T=_.immediateRender,O=_.lazy,C=_.onUpdate,k=_.runBackwards,E=_.yoyoEase,S=_.keyframes,M=_.autoRevert,A=e._dur,P=e._startAt,R=e._targets,D=e.parent,z=D&&"nested"===D.data?D.vars.targets:R,F="auto"===e._overwrite&&!v,L=e.timeline,j=_.easeReverse||E;if(L&&(!S||!x)&&(x="none"),e._ease=Qe(x,N.ease),e._rEase=j&&(Qe(j)||e._ease),e._from=!L&&!!_.runBackwards,e._from&&(e.ratio=1),!L||S&&!_.stagger){if(g=(f=R[0]?Mt(R[0]).harness:0)&&_[f.prop],i=qt(_,xt),P&&(P._zTime<0&&P.progress(1),r<0&&k&&T&&!M?P.render(-1,!0):P.revert(k&&A?vt:_t),P._lazy=0),w){if(Gt(e._startAt=gr.set(R,Yt({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:!P&&Z(O),startAt:null,delay:0,onUpdate:C&&function(){return Pe(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(y||!T&&!M)&&e._startAt.revert(vt),T&&A&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(k&&A&&!P)if(r&&(T=!1),a=Yt({overwrite:!1,data:"isFromStart",lazy:T&&!P&&Z(O),immediateRender:T,stagger:0,parent:D},i),g&&(a[f.prop]=g),Gt(e._startAt=gr.set(R,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(y?e._startAt.revert(vt):e._startAt.render(-1,!0)),e._zTime=r,T){if(!r)return}else t(e._startAt,B,B);for(e._pt=e._ptCache=0,O=A&&Z(O)||O&&!A,s=0;s<R.length;s++){if(c=(l=R[s])._gsap||St(R)[s]._gsap,e._ptLookup[s]=d={},wt[c.id]&&bt.length&&Nt(),p=z===R?s:z.indexOf(l),f&&!1!==(h=new f).init(l,g||i,e,p,z)&&(e._pt=o=new Mr(e._pt,l,h.name,0,1,h.render,h,0,h.priority),h._props.forEach(function(t){d[t]=o}),h.priority&&(u=1)),!f||g)for(a in i)Tt[a]&&(h=ur(a,i,e,p,l,z))?h.priority&&(u=1):d[a]=o=lr.call(e,l,a,"get",i[a],p,z,0,_.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),F&&e._pt&&(sr=e,b.killTweensOf(l,d,e.globalTime(r)),m=!e.parent,sr=0),e._pt&&O&&(wt[c.id]=1)}u&&Sr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!m,S&&r<=0&&L.render(I,!0,!0)},fr=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(tt(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})},hr=function(t,e,r,n,i){return U(t)?t.call(e,r,n,i):H(t)&&~t.indexOf("random(")?Se(t):t},dr=Et+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",pr={};Pt(dr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return pr[t]=1});var gr=function(t){function e(e,r,n,i){var s;"number"==typeof r&&(n.duration=r,r=n,n=null);var a,o,l,u,c,f,h,d,p=(s=t.call(this,i?r:Ht(r))||this).vars,g=p.duration,_=p.delay,y=p.immediateRender,x=p.stagger,w=p.overwrite,T=p.keyframes,O=p.defaults,C=p.scrollTrigger,k=r.parent||b,E=(tt(e)||J(e)?V(e[0]):"length"in r)?[e]:xe(e);if(s._targets=E.length?St(E):pt("GSAP target "+e+" not found. https://gsap.com",!F.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=w,T||x||K(g)||K(_)){var S=(r=s.vars).easeReverse||r.yoyoEase;if((a=s.timeline=new ir({data:"nested",defaults:O||{},targets:k&&"nested"===k.data?k.vars.targets:E})).kill(),a.parent=a._dp=m(s),a._start=0,x||K(g)||K(_)){if(u=E.length,h=x&&Te(x),$(x))for(c in x)~dr.indexOf(c)&&(d||(d={}),d[c]=x[c]);for(o=0;o<u;o++)(l=qt(r,pr)).stagger=0,S&&(l.easeReverse=S),d&&Xt(l,d),f=E[o],l.duration=+hr(g,m(s),o,f,E),l.delay=(+hr(_,m(s),o,f,E)||0)-s._delay,!x&&1===u&&l.delay&&(s._delay=_=l.delay,s._start+=_,l.delay=0),a.to(f,l,h?h(o,f,E):0),a._ease=Ue.none;a.duration()?g=_=0:s.timeline=0}else if(T){Ht(Yt(a.vars.defaults,{ease:"none"})),a._ease=Qe(T.ease||r.ease||"none");var M,A,P,R=0;if(tt(T))T.forEach(function(t){return a.to(E,t,">")}),a.duration();else{for(c in l={},T)"ease"===c||"easeEach"===c||fr(c,T[c],l,T.easeEach);for(c in l)for(M=l[c].sort(function(t,e){return t.t-e.t}),R=0,o=0;o<M.length;o++)(P={ease:(A=M[o]).e,duration:(A.t-(o?M[o-1].t:0))/100*g})[c]=A.v,a.to(E,P,R),R+=P.duration;a.duration()<g&&a.to({},{duration:g-a.duration()})}}g||s.duration(g=a.duration())}else s.timeline=0;return!0!==w||v||(sr=m(s),b.killTweensOf(E),sr=0),ie(k,m(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(y||!g&&!T&&s._start===Dt(k._time)&&Z(y)&&Qt(m(s))&&"nested"!==k.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-_)||0)),C&&se(m(s),C),s}_(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,l,u,c,f=this._time,h=this._tDur,d=this._dur,p=t<0,g=t>h-B&&!p?h:t<B?0:t;if(d){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p||this._lazy){if(n=g,c=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&p)return this.totalTime(100*a+t,e,r);if(n=Dt(g%a),g===h?(s=this._repeat,n=d):(s=~~(o=Dt(g/a)))&&s===o?(n=d,s--):n>d&&(n=d),(l=this._yoyo&&1&s)&&(n=d-n),o=Jt(this._tTime,a),n===f&&!r&&this._initted&&s===o)return this._tTime=g,this;s!==o&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(Dt(a*s),!0).invalidate()._lock=0)}if(!this._initted){if(ae(this,p?t:n,r,e,g))return this._tTime=0,this;if(!(f===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<f;if(m!==this._inv){var _=m?f:d-f;this._inv=m,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=f,this._invRecip=_?(m?-1:1)/_:0,this._invScale=m?-this.ratio:1-this.ratio,this._invEase=m?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/d);if(this._from&&(this.ratio=u=1-u),this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!f&&g&&!e&&!o&&(Pe(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(t<0?t:c._dur*c._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(p&&Zt(this,t,0,r),Pe(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&Pe(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(p&&!this._onUpdate&&Zt(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Gt(this,1),e||p&&!f||!(g||f||l)||(Pe(this,g===h?"onComplete":"onReverseComplete",!0),this._prom&&!(g<h&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&oe(t)&&(t._initted||!le(t))||(t._ts<0||t._dp._ts<0)&&!le(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=ge(0,t._tDur,e),s=Jt(c,u),t._yoyo&&1&s&&(l=1-l),s!==Jt(t._tTime,u)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||y||n||t._zTime===B||!e&&t._zTime){if(!t._initted&&ae(t,e,n,r,c))return;for(a=t._zTime,t._zTime=e||(r?B:0),r||(r=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Zt(t,e,0,!0),t._onUpdate&&!r&&Pe(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&Pe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Gt(t,1),r||y||(Pe(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){S||qe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||cr(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 ar=1,t.vars[e]="+=0",cr(t,a),ar=0,o?pt(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=Rt(r)+me(u.e)),u.b&&(u.b=l.s+me(u.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(re(this,0),this.parent||Ut(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?Re(this):this.scrollTrigger&&this.scrollTrigger.kill(!!y),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,sr&&!0!==sr.vars.overwrite)._first||Re(this),this.parent&&r!==this.timeline.totalDuration()&&ue(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,l,u,c=this._targets,f=t?xe(t):c,h=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}(c,f))return"all"===e&&(this._pt=0),Re(this);for(n=this._op=this._op||[],"all"!==e&&(H(e)&&(o={},Pt(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,n,i,s,a=t[0]?Mt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Xt({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(c,e)),u=c.length;u--;)if(~f.indexOf(c[u]))for(o in i=h[u],"all"===e?(n[u]=e,a=i,s={}):(s=n[u]=n[u]||{},a=e),a)(l=i&&i[o])&&("kill"in l.d&&!0!==l.d.kill(o)||Vt(this,l,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&d&&Re(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return de(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 de(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 b.killTweensOf(t,e,r)},e}(nr);Yt(gr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pt("staggerTo,staggerFrom,staggerFromTo",function(t){gr[t]=function(){var e=new ir,r=_e.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var mr=function(t,e,r){return t[e]=r},_r=function(t,e,r){return t[e](r)},vr=function(t,e,r,n){return t[e](n.fp,r)},yr=function(t,e,r){return t.setAttribute(e,r)},xr=function(t,e){return U(t[e])?_r:G(t[e])&&t.setAttribute?yr:mr},br=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},wr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Tr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},Or=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Cr=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},kr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Vt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Er=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},Sr=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},Mr=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||br,this.d=a||this,this.set=o||mr,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=Er,this.m=t,this.mt=r,this.tween=e},t}();Pt(Et+"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 xt[t]=1}),ct.TweenMax=ct.TweenLite=gr,ct.TimelineLite=ct.TimelineMax=ir,b=new ir({sortChildren:!1,defaults:N,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),F.stringFilter=We;var Ar=[],Pr={},Rr=[],Dr=0,zr=0,Fr=function(t){return(Pr[t]||Rr).map(function(t){return t()})},Nr=function(){var t=Date.now(),e=[];t-Dr>2&&(Fr("matchMediaInit"),Ar.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=w.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),Fr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),Dr=t,Fr("matchMedia"))},Ir=function(){function t(t,e){this.selector=e&&be(e),this.data=[],this._r=[],this.isReverted=!1,this.id=zr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){U(t)&&(r=e,e=t,t=U);var n=this,i=function(){var t,i=x,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=be(r)),x=n,t=e.apply(n,arguments),U(t)&&n._r.push(t),x=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===U?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=x;x=null,t(this),x=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof gr&&!(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 ir?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof gr)&&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=Ar.length;n--;)Ar[n].id===this.id&&Ar.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Br=function(){function t(t){this.contexts=[],this.scope=t,x&&x.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){$(t)||(t={matches:t});var n,i,s,a=new Ir(0,r||this.scope),o=a.conditions={};for(i in x&&!a.selector&&(a.selector=x.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=w.matchMedia(t[i]))&&(Ar.indexOf(a)<0&&Ar.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(Nr):n.addEventListener("change",Nr));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}(),Lr={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 ze(t)})},timeline:function(t){return new ir(t)},getTweensOf:function(t,e){return b.getTweensOf(t,e)},getProperty:function(t,e,r,n){H(t)&&(t=xe(t)[0]);var i=Mt(t||{}).get,s=r?jt:Lt;return"native"===r&&(r=""),t?e?s((Tt[e]&&Tt[e].get||i)(t,e,r,n)):function(e,r,n){return s((Tt[e]&&Tt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=xe(t)).length>1){var n=t.map(function(t){return Xr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=Tt[e],a=Mt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;E._pt=0,n.init(t,r?e+r:e,E,0,[t]),n.render(1,n),E._pt&&Or(1,E)}: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=Xr.to(t,Yt(((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 b.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Qe(t.ease,N.ease)),Wt(N,t||{})},config:function(t){return Wt(F,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&&!Tt[t]&&!ct[t]&&pt(e+" effect requires "+t+" plugin.")}),Ot[e]=function(t,e,n){return r(xe(t),Yt(e||{},i),n)},s&&(ir.prototype[e]=function(t,r,n){return this.add(Ot[e](t,$(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ue[t]=Qe(e)},parseEase:function(t,e){return arguments.length?Qe(t,e):Ue},getById:function(t){return b.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new ir(t);for(i.smoothChildTiming=Z(t.smoothChildTiming),b.remove(i),i._dp=0,i._time=i._tTime=b._time,r=b._first;r;)n=r._next,!e&&!r._dur&&r instanceof gr&&r.vars.onComplete===r._targets[0]||ie(i,r,r._start-r._delay),r=n;return ie(b,i,0),i},context:function(t,e){return t?new Ir(t,e):x},matchMedia:function(t){return new Br(t)},matchMediaRefresh:function(){return Ar.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||Nr()},addEventListener:function(t,e){var r=Pr[t]||(Pr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Pr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return tt(e)?Ee(e,t(0,e.length),r):pe(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return tt(e)?Ee(e,t(0,e.length-1),r):pe(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:Te,random:ke,snap:Ce,normalize:function(t,e,r){return Me(t,e,0,1,r)},getUnit:me,clamp:function(t,e,r){return pe(r,function(r){return ge(t,e,r)})},splitColor:Be,toArray:xe,selector:be,mapRange:Me,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||me(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=H(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(tt(e)&&!tt(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=Xt(tt(e)?[]:{},e));if(!l){for(a in r)lr.call(h,e,a,"get",r[a]);s=function(t){return Or(t,h)||(f?e.p:e)}}}return pe(n,s)},shuffle:we},install:ht,effects:Ot,ticker:qe,updateRoot:ir.updateRoot,plugins:Tt,globalTimeline:b,core:{PropTween:Mr,globals:gt,Tween:gr,Timeline:ir,Animation:nr,getCache:Mt,_removeLinkedListItem:Vt,reverting:function(){return y},context:function(t){return t&&x&&(x.data.push(t),t._ctx=x),x},suppressOverwrites:function(t){return v=t}}};Pt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Lr[t]=gr[t]}),qe.add(ir.updateRoot),E=Lr.to({},{duration:0});var jr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Yr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(H(r)&&(n={},Pt(r,function(t){return n[t]=1}),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=jr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Xr=Lr.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;)y?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)}},Yr("roundProps",Oe),Yr("modifiers"),Yr("snap",Ce))||Lr;gr.version=ir.version=Xr.version="3.15.0",C=1,Q()&&He(),Ue.Power0,Ue.Power1,Ue.Power2,Ue.Power3,Ue.Power4,Ue.Linear,Ue.Quad,Ue.Cubic,Ue.Quart,Ue.Quint,Ue.Strong,Ue.Elastic,Ue.Back,Ue.SteppedEase,Ue.Bounce,Ue.Sine,Ue.Expo,Ue.Circ;
|
|
9
|
+
*/var v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,F={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},N={duration:.5,overwrite:!1,delay:0},I=1e8,B=1e-8,L=2*Math.PI,j=L/4,Y=0,W=Math.sqrt,X=Math.cos,q=Math.sin,H=function(t){return"string"==typeof t},U=function(t){return"function"==typeof t},V=function(t){return"number"==typeof t},G=function(t){return void 0===t},$=function(t){return"object"==typeof t},Z=function(t){return!1!==t},Q=function(){return"undefined"!=typeof window},K=function(t){return U(t)||H(t)},J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},tt=Array.isArray,et=/random\([^)]+\)/g,rt=/,\s*/g,nt=/(?:-?\.?\d|\.)+/gi,it=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,st=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,at=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ot=/[+-]=-?[.\d]+/,lt=/[^,'"\[\]\s]+/gi,ut=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ct={},ht={},ft=function(t){return(ht=Wt(t,ct))&&Wr},dt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},pt=function(t,e){return!e&&console.warn(t)},gt=function(t,e){return t&&(ct[t]=e)&&ht&&(ht[t]=e)||ct},mt=function(){return 0},_t={suppressEvents:!0,isStart:!0,kill:!1},vt={suppressEvents:!0,kill:!1},yt={suppressEvents:!0},xt={},bt=[],wt={},Tt={},Ot={},Ct=30,kt=[],Et="",St=function(t){var e,r,n=t[0];if($(n)||U(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=kt.length;r--&&!kt[r].targetTest(n););e=kt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new rr(t[r],e)))||t.splice(r,1);return t},Mt=function(t){return t._gsap||St(xe(t))[0]._gsap},At=function(t,e,r){return(r=t[e])&&U(r)?t[e]():G(r)&&t.getAttribute&&t.getAttribute(e)||r},Pt=function(t,e){return(t=t.split(",")).forEach(e)||t},Rt=function(t){return Math.round(1e5*t)/1e5||0},Dt=function(t){return Math.round(1e7*t)/1e7||0},zt=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},Ft=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Nt=function(){var t,e,r=bt.length,n=bt.slice(0);for(wt={},bt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},It=function(t){return!!(t._initted||t._startAt||t.add)},Bt=function(t,e,r,n){bt.length&&!y&&Nt(),t.render(e,r,n||!!(y&&e<0&&It(t))),bt.length&&!y&&Nt()},Lt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(lt).length<2?e:H(t)?t.trim():t},jt=function(t){return t},Yt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Wt=function(t,e){for(var r in e)t[r]=e[r];return t},Xt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=$(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},qt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Ht=function(t){var e,r=t.parent||b,n=t.keyframes?(e=tt(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Yt;if(Z(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ut=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},Vt=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},Gt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},$t=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},Zt=function(t,e,r,n){return t._startAt&&(y?t._startAt.revert(vt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Qt=function t(e){return!e||e._ts&&t(e.parent)},Kt=function(t){return t._repeat?Jt(t._tTime,t=t.duration()+t._rDelay)*t:0},Jt=function(t,e){var r=Math.floor(t=Dt(t/e));return t&&r===t?r-1:r},te=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ee=function(t){return t._end=Dt(t._start+(t._tDur/Math.abs(t._ts||t._rts||B)||0))},re=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Dt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ee(t),r._dirty||$t(r,t)),t},ne=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=te(t.rawTime(),e),(!e._dur||ge(0,e.totalDuration(),r)-e._tTime>B)&&e.render(r,!0)),$t(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}},ie=function(t,e,r,n){return e.parent&&Gt(e),e._start=Dt((V(r)?r:r||t!==b?fe(t,r,e):t._time)+e._delay),e._end=Dt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ut(t,e,"_first","_last",t._sort?"_start":0),le(e)||(t._recent=e),n||ne(t,e),t._ts<0&&re(t,t._tTime),t},se=function(t,e){return(ct.ScrollTrigger||dt("scrollTrigger",e))&&ct.ScrollTrigger.create(e,t)},ae=function(t,e,r,n,i){return cr(t,e,i),t._initted?!r&&t._pt&&!y&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&k!==qe.frame?(bt.push(t),t._lazy=[i,n],1):void 0:1},oe=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},le=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ue=function(t,e,r,n){var i=t._repeat,s=Dt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:Dt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&re(t,t._tTime=t._tDur*a),t.parent&&ee(t),r||$t(t.parent,t),t},ce=function(t){return t instanceof ir?$t(t):ue(t,t._dur)},he={_start:0,endTime:mt,totalDuration:mt},fe=function t(e,r,n){var i,s,a,o=e.labels,l=e._recent||he,u=e.duration()>=I?l.endTime(!1):e._dur;return H(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*(tt(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},de=function(t,e,r){var n,i,s=V(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=Z(i.vars.inherit)&&i.parent;o.immediateRender=Z(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new gr(e[0],o,e[a+1])},pe=function(t,e){return t||0===t?e(t):e},ge=function(t,e,r){return r<t?t:r>e?e:r},me=function(t,e){return H(t)&&(e=ut.exec(t))?e[1]:""},_e=[].slice,ve=function(t,e){return t&&$(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&$(t[0]))&&!t.nodeType&&t!==w},ye=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return H(t)&&!e||ve(t,1)?(n=r).push.apply(n,xe(t)):r.push(t)})||r},xe=function(t,e,r){return x&&!e&&x.selector?x.selector(t):!H(t)||r||!T&&He()?tt(t)?ye(t,r):ve(t)?_e.call(t,0):t?[t]:[]:_e.call((e||O).querySelectorAll(t),0)},be=function(t){return t=xe(t)[0]||pt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return xe(e,r.querySelectorAll?r:r===t?pt("Invalid scope")||O.createElement("div"):t)}},we=function(t){return t.sort(function(){return.5-Math.random()})},Te=function(t){if(U(t))return t;var e=$(t)?t:{each:t},r=Qe(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 H(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(u=n[0],c=n[1]),function(t,a,h){var f,d,p,g,m,_,v,y,x,b=(h||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,I])[1])){for(v=-1e8;v<(v=h[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],f=o?Math.min(x,b)*u-.5:n%x,d=x===I?0:o?b*c/x-.5:n/x|0,v=0,y=I,_=0;_<b;_++)p=_%x-f,g=d-(_/x|0),w[_]=m=l?Math.abs("y"===l?g:p):W(p*p+g*g),m>v&&(v=m),m<y&&(y=m);"random"===n&&we(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=me(e.amount||e.each)||0,r=r&&b<0?Ze(r):r}return b=(w[t]-w.min)/w.max||0,Dt(w.b+(r?r(b):b)*w.v)+w.u}},Oe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=Dt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(V(r)?0:me(r))}},Ce=function(t,e){var r,n,i=tt(t);return!i&&$(t)&&(r=i=t.radius||I,t.values?(t=xe(t.values),(n=!V(t[0]))&&(r*=r)):t=Oe(t.increment)),pe(e,i?U(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=I,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||V(e)?u:u+me(e)}:Oe(t))},ke=function(t,e,r,n){return pe(tt(t)?!e:!0===r?!!(r=0):!n,function(){return tt(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})},Ee=function(t,e,r){return pe(r,function(r){return t[~~e(r)]})},Se=function(t){return t.replace(et,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(rt);return ke(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},Me=function(t,e,r,n,i){var s=e-t,a=n-r;return pe(i,function(e){return r+((e-t)/s*a||0)})},Ae=function(t,e,r){var n,i,s,a=t.labels,o=I;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},Pe=function(t,e,r){var n,i,s,a=t.vars,o=a[e],l=x,u=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&bt.length&&Nt(),u&&(x=u),s=n?o.apply(i,n):o.call(i),x=l,s},Re=function(t){return Gt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!y),t.progress()<1&&Pe(t,"onInterrupt"),t},De=[],ze=function(t){if(t)if(t=!t.name&&t.default||t,Q()||t.headless){var e=t.name,r=U(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:mt,render:Or,add:lr,kill:kr,modifier:Cr,rawVars:0},s={targetTest:0,get:0,getSetter:xr,aliases:{},register:0};if(He(),t!==n){if(Tt[e])return;Yt(n,Yt(qt(t,i),s)),Wt(n.prototype,Wt(i,qt(t,s))),Tt[n.prop=e]=n,t.targetTest&&(kt.push(n),xt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}gt(e,n),t.register&&t.register(Wr,n,Mr)}else De.push(t)},Fe=255,Ne={aqua:[0,Fe,Fe],lime:[0,Fe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Fe],navy:[0,0,128],white:[Fe,Fe,Fe],olive:[128,128,0],yellow:[Fe,Fe,0],orange:[Fe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Fe,0,0],pink:[Fe,192,203],cyan:[0,Fe,Fe],transparent:[Fe,Fe,Fe,0]},Ie=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)*Fe+.5|0},Be=function(t,e,r){var n,i,s,a,o,l,u,c,h,f,d=t?V(t)?[t>>16,t>>8&Fe,t&Fe]:0:Ne.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ne[t])d=Ne[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&Fe,d&Fe,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Fe,t&Fe]}else if("hsl"===t.substr(0,3))if(d=f=t.match(nt),e){if(~t.indexOf("="))return d=t.match(it),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]=Ie(a+1/3,n,i),d[1]=Ie(a,n,i),d[2]=Ie(a-1/3,n,i);else d=t.match(nt)||Ne.transparent;d=d.map(Number)}return e&&!f&&(n=d[0]/Fe,i=d[1]/Fe,s=d[2]/Fe,l=((u=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,u===c?a=o=0:(h=u-c,o=l>.5?h/(2-u-c):h/(u+c),a=u===n?(i-s)/h+(i<s?6:0):u===i?(s-n)/h+2:(n-i)/h+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},Le=function(t){var e=[],r=[],n=-1;return t.split(Ye).forEach(function(t){var i=t.match(st)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},je=function(t,e,r){var n,i,s,a,o="",l=(t+o).match(Ye),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=Be(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Le(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ye,"1").split(st)).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(Ye)).length-1;c<a;c++)o+=i[c]+l[c];return o+i[a]},Ye=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ne)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),We=/hsl[a]?\(/,Xe=function(t){var e,r=t.join(" ");if(Ye.lastIndex=0,Ye.test(r))return e=We.test(r),t[1]=je(t[1],e),t[0]=je(t[0],e,Le(t[1])),!0},qe=function(){var t,e,r,n,i,s,a=Date.now,o=500,l=33,u=a(),c=u,h=1e3/240,f=h,d=[],p=function r(p){var g,m,_,v,y=a()-c,x=!0===p;if((y>o||y<0)&&(u+=y-l),((g=(_=(c+=y)-u)-f)>0||x)&&(v=++n.frame,i=_-1e3*n.time,n.time=_/=1e3,f+=g+(g>=h?4:h-g),m=1),x||(t=e(r)),m)for(s=0;s<d.length;s++)d[s](_,i,v,p)};return n={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){C&&(!T&&Q()&&(w=T=window,O=w.document||{},ct.gsap=Wr,(w.gsapVersions||(w.gsapVersions=[])).push(Wr.version),ft(ht||w.GreenSockGlobals||!w.gsap&&w||{}),De.forEach(ze)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,f-1e3*n.time+1|0)},S=1,p(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),S=0,e=mt},lagSmoothing:function(t,e){o=t||1/0,l=Math.min(e||33,o)},fps:function(t){h=1e3/(t||240),f=1e3*n.time+h},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),d[r?"unshift":"push"](i),He(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&s>=e&&s--},_listeners:d}}(),He=function(){return!S&&qe.wake()},Ue={},Ve=/^[\d.\-M][\d.\-,\s]/,Ge=/["']/g,$e=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(Ge,"").trim():+n,a=r.substr(e+1).trim();return i},Ze=function(t){return function(e){return 1-t(1-e)}},Qe=function(t,e){return t&&(U(t)?t:Ue[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Ue[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[$e(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(Lt)):Ue._CE&&Ve.test(t)?Ue._CE("",t):a}(t))||e},Ke=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return Pt(t,function(t){for(var e in Ue[t]=ct[t]=s,Ue[i=t.toLowerCase()]=r,s)Ue[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ue[t+"."+e]=s[e]}),s},Je=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},tr=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/L*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*q((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Je(o);return s=L/s,l.config=function(r,n){return t(e,r,n)},l},er=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)}:Je(n);return i.config=function(r){return t(e,r)},i};Pt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Ke(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})}),Ue.Linear.easeNone=Ue.none=Ue.Linear.easeIn,Ke("Elastic",tr("in"),tr("out"),tr()),M=7.5625,R=2*(P=1/(A=2.75)),D=2.5*P,Ke("Bounce",function(t){return 1-z(1-t)},z=function(t){return t<P?M*t*t:t<R?M*Math.pow(t-1.5/A,2)+.75:t<D?M*(t-=2.25/A)*t+.9375:M*Math.pow(t-2.625/A,2)+.984375}),Ke("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Ke("Circ",function(t){return-(W(1-t*t)-1)}),Ke("Sine",function(t){return 1===t?1:1-X(t*j)}),Ke("Back",er("in"),er("out"),er()),Ue.SteppedEase=Ue.steps=ct.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*ge(0,.99999999,t)|0)+i)*r}}},N.ease=Ue["quad.out"],Pt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Et+=t+","+t+"Params,"});var rr=function(t,e){this.id=Y++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:At,this.set=e?e.getSetter:xr},nr=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,ue(this,+t.duration,1,1),this.data=t.data,x&&(this._ctx=x,x.data.push(this)),S||qe.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,ue(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(He(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(re(this,t),!r._dp||r.parent||ne(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)&&ie(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===B||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Kt(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)+Kt(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?Jt(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?te(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ge(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),ee(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):(He(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==B&&(this._tTime-=B)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Dt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ie(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Z(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?te(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=yt);var e=y;return y=t,It(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),y=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,ce(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,ce(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(fe(this,t),Z(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Z(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)-B))},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=U(t)?t:jt,s=function(){var t=e.then;e.then=null,r&&r(),U(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(){Re(this)},t}();Yt(nr.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 ir=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=Z(e.sortChildren),b&&ie(e.parent||b,m(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&se(m(n),e.scrollTrigger),n}_(e,t);var r=e.prototype;return r.to=function(t,e,r){return de(0,arguments,this),this},r.from=function(t,e,r){return de(1,arguments,this),this},r.fromTo=function(t,e,r,n){return de(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Ht(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new gr(t,e,fe(this,r),1),this},r.call=function(t,e,r){return ie(this,gr.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 gr(t,r,fe(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,Ht(r).immediateRender=Z(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,Ht(n).immediateRender=Z(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,a,o,l,u,c,h,f,d,p,g=this._time,m=this._dirty?this.totalDuration():this._tDur,_=this._dur,v=t<=0?0:Dt(t),x=this._zTime<0!=t<0&&(this._initted||!_);if(this!==b&&v>m&&t>=0&&(v=m),v!==this._tTime||r||x){if(g!==this._time&&_&&(v+=this._time-g,t+=this._time-g),n=v,h=this._start,l=!(c=this._ts),x&&(_||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=Dt(v%o),v===m?(a=this._repeat,n=_):((a=~~(f=Dt(v/o)))&&a===f&&(n=_,a--),n>_&&(n=_)),f=Jt(this._tTime,o),!g&&this._tTime&&f!==a&&this._tTime-f*o-this._dur<=0&&(f=a),d&&1&a&&(n=_-n,p=1),a!==f&&!this._lock){var w=d&&1&f,T=w===(d&&1&a);if(a<f&&(w=!w),g=w?0:v%_?_:v,this._lock=1,this.render(g||(p?0:Dt(a*o)),e,!_)._lock=0,this._tTime=v,!e&&this.parent&&Pe(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1,f=a),g&&g!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,m=this._tDur,T&&(this._lock=2,g=w?_:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=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,Dt(g),Dt(n)),u&&(v-=n-(n=u._start))),this._tTime=v,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&v&&_&&!e&&!f&&(Pe(this,"onStart"),this._tTime!==v))return this;if(n>=g&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&u!==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){u=0,s&&(v+=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&&u!==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||y&&It(i)),n!==this._time||!this._ts&&!l){u=0,s&&(v+=this._zTime=O?-1e-8:B);break}}i=s}}if(u&&!e&&(this.pause(),u.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=h,ee(this),this.render(t,e,r);this._onUpdate&&!e&&Pe(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&g)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!_)&&(v===m&&this._ts>0||!v&&this._ts<0)&&Gt(this,1),e||t<0&&!g||!v&&!g&&m||(Pe(this,v===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<m&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(V(e)||(e=fe(this,e,t)),!(t instanceof nr)){if(tt(t))return t.forEach(function(t){return r.add(t,e)}),this;if(H(t))return this.addLabel(t,e);if(!U(t))return this;t=gr.delayedCall(0,t)}return this!==t?ie(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 gr?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 H(t)?this.removeLabel(t):U(t)?this.killTweensOf(t):(t.parent===this&&Vt(this,t),t===this._recent&&(this._recent=this._last),$t(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Dt(qe.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]=fe(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=gr.delayedCall(0,e||mt,r);return n.data="isPause",this._hasPause=1,ie(this,n,fe(this,t))},r.removePause=function(t){var e=this._first;for(t=fe(this,t);e;)e._start===t&&"isPause"===e.data&&Gt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)sr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=xe(t),s=this._first,a=V(e);s;)s instanceof gr?Ft(s._targets,i)&&(a?(!sr||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=fe(n,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,u=s.immediateRender,c=gr.to(n,Yt({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())||B,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&&ue(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,Yt({startAt:{time:fe(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),Ae(this,fe(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),Ae(this,fe(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=Dt(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 $t(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={}),$t(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=I;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,ie(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=Dt(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;ue(s,s===b&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(b._ts&&(Bt(b,te(t,b)),k=qe.frame),qe.frame>=Ct){Ct+=F.autoSleep||120;var e=b._first;if((!e||!e._ts)&&F.autoSleep&&qe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||qe.sleep()}}},e}(nr);Yt(ir.prototype,{_lock:0,_hasPause:0,_forcing:0});var sr,ar,or=function(t,e,r,n,i,s,a){var o,l,u,c,h,f,d,p,g=new Mr(this._pt,t,e,0,1,Tr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=Se(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match(at)||[];o=at.exec(n);)c=o[0],h=n.substring(m,o.index),u?u=(u+1)%5:"rgba("===h.substr(-5)&&(u=1),c!==l[_++]&&(f=parseFloat(l[_-1])||0,g._pt={_next:g._pt,p:h||1===_?h:",",s:f,c:"="===c.charAt(1)?zt(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},m=at.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=a,(ot.test(n)||d)&&(g.e=0),this._pt=g,g},lr=function(t,e,r,n,i,s,a,o,l,u){U(n)&&(n=n(i||0,t,s));var c,h=t[e],f="get"!==r?r:U(h)?l?t[e.indexOf("set")||!U(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,d=U(h)?l?vr:_r:mr;if(H(n)&&(~n.indexOf("random(")&&(n=Se(n)),"="===n.charAt(1)&&((c=zt(f,n)+(me(f)||0))||0===c)&&(n=c)),!u||f!==n||ar)return isNaN(f*n)||""===n?(!h&&!(e in t)&&dt(e,n),or.call(this,t,e,f,n,d,o||F.stringFilter,l)):(c=new Mr(this._pt,t,e,+f||0,n-(f||0),"boolean"==typeof h?wr:br,0,d),l&&(c.fp=l),a&&c.modifier(a,this,t),this._pt=c)},ur=function(t,e,r,n,i,s){var a,o,l,u;if(Tt[t]&&!1!==(a=new Tt[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(U(t)&&(t=fr(t,i,e,r,n)),!$(t)||t.style&&t.nodeType||tt(t)||J(t))return H(t)?fr(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=fr(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new Mr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==E))for(l=r._ptLookup[r._targets.indexOf(i)],u=a._props.length;u--;)l[a._props[u]]=o;return a},cr=function t(e,r,n){var i,s,a,o,l,u,c,h,f,d,p,g,m,_=e.vars,x=_.ease,w=_.startAt,T=_.immediateRender,O=_.lazy,C=_.onUpdate,k=_.runBackwards,E=_.yoyoEase,S=_.keyframes,M=_.autoRevert,A=e._dur,P=e._startAt,R=e._targets,D=e.parent,z=D&&"nested"===D.data?D.vars.targets:R,F="auto"===e._overwrite&&!v,L=e.timeline,j=_.easeReverse||E;if(L&&(!S||!x)&&(x="none"),e._ease=Qe(x,N.ease),e._rEase=j&&(Qe(j)||e._ease),e._from=!L&&!!_.runBackwards,e._from&&(e.ratio=1),!L||S&&!_.stagger){if(g=(h=R[0]?Mt(R[0]).harness:0)&&_[h.prop],i=qt(_,xt),P&&(P._zTime<0&&P.progress(1),r<0&&k&&T&&!M?P.render(-1,!0):P.revert(k&&A?vt:_t),P._lazy=0),w){if(Gt(e._startAt=gr.set(R,Yt({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:!P&&Z(O),startAt:null,delay:0,onUpdate:C&&function(){return Pe(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(y||!T&&!M)&&e._startAt.revert(vt),T&&A&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(k&&A&&!P)if(r&&(T=!1),a=Yt({overwrite:!1,data:"isFromStart",lazy:T&&!P&&Z(O),immediateRender:T,stagger:0,parent:D},i),g&&(a[h.prop]=g),Gt(e._startAt=gr.set(R,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(y?e._startAt.revert(vt):e._startAt.render(-1,!0)),e._zTime=r,T){if(!r)return}else t(e._startAt,B,B);for(e._pt=e._ptCache=0,O=A&&Z(O)||O&&!A,s=0;s<R.length;s++){if(c=(l=R[s])._gsap||St(R)[s]._gsap,e._ptLookup[s]=d={},wt[c.id]&&bt.length&&Nt(),p=z===R?s:z.indexOf(l),h&&!1!==(f=new h).init(l,g||i,e,p,z)&&(e._pt=o=new Mr(e._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=o}),f.priority&&(u=1)),!h||g)for(a in i)Tt[a]&&(f=ur(a,i,e,p,l,z))?f.priority&&(u=1):d[a]=o=lr.call(e,l,a,"get",i[a],p,z,0,_.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),F&&e._pt&&(sr=e,b.killTweensOf(l,d,e.globalTime(r)),m=!e.parent,sr=0),e._pt&&O&&(wt[c.id]=1)}u&&Sr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!m,S&&r<=0&&L.render(I,!0,!0)},hr=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(tt(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})},fr=function(t,e,r,n,i){return U(t)?t.call(e,r,n,i):H(t)&&~t.indexOf("random(")?Se(t):t},dr=Et+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",pr={};Pt(dr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return pr[t]=1});var gr=function(t){function e(e,r,n,i){var s;"number"==typeof r&&(n.duration=r,r=n,n=null);var a,o,l,u,c,h,f,d,p=(s=t.call(this,i?r:Ht(r))||this).vars,g=p.duration,_=p.delay,y=p.immediateRender,x=p.stagger,w=p.overwrite,T=p.keyframes,O=p.defaults,C=p.scrollTrigger,k=r.parent||b,E=(tt(e)||J(e)?V(e[0]):"length"in r)?[e]:xe(e);if(s._targets=E.length?St(E):pt("GSAP target "+e+" not found. https://gsap.com",!F.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=w,T||x||K(g)||K(_)){var S=(r=s.vars).easeReverse||r.yoyoEase;if((a=s.timeline=new ir({data:"nested",defaults:O||{},targets:k&&"nested"===k.data?k.vars.targets:E})).kill(),a.parent=a._dp=m(s),a._start=0,x||K(g)||K(_)){if(u=E.length,f=x&&Te(x),$(x))for(c in x)~dr.indexOf(c)&&(d||(d={}),d[c]=x[c]);for(o=0;o<u;o++)(l=qt(r,pr)).stagger=0,S&&(l.easeReverse=S),d&&Wt(l,d),h=E[o],l.duration=+fr(g,m(s),o,h,E),l.delay=(+fr(_,m(s),o,h,E)||0)-s._delay,!x&&1===u&&l.delay&&(s._delay=_=l.delay,s._start+=_,l.delay=0),a.to(h,l,f?f(o,h,E):0),a._ease=Ue.none;a.duration()?g=_=0:s.timeline=0}else if(T){Ht(Yt(a.vars.defaults,{ease:"none"})),a._ease=Qe(T.ease||r.ease||"none");var M,A,P,R=0;if(tt(T))T.forEach(function(t){return a.to(E,t,">")}),a.duration();else{for(c in l={},T)"ease"===c||"easeEach"===c||hr(c,T[c],l,T.easeEach);for(c in l)for(M=l[c].sort(function(t,e){return t.t-e.t}),R=0,o=0;o<M.length;o++)(P={ease:(A=M[o]).e,duration:(A.t-(o?M[o-1].t:0))/100*g})[c]=A.v,a.to(E,P,R),R+=P.duration;a.duration()<g&&a.to({},{duration:g-a.duration()})}}g||s.duration(g=a.duration())}else s.timeline=0;return!0!==w||v||(sr=m(s),b.killTweensOf(E),sr=0),ie(k,m(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(y||!g&&!T&&s._start===Dt(k._time)&&Z(y)&&Qt(m(s))&&"nested"!==k.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-_)||0)),C&&se(m(s),C),s}_(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,l,u,c,h=this._time,f=this._tDur,d=this._dur,p=t<0,g=t>f-B&&!p?f:t<B?0:t;if(d){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p||this._lazy){if(n=g,c=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&p)return this.totalTime(100*a+t,e,r);if(n=Dt(g%a),g===f?(s=this._repeat,n=d):(s=~~(o=Dt(g/a)))&&s===o?(n=d,s--):n>d&&(n=d),(l=this._yoyo&&1&s)&&(n=d-n),o=Jt(this._tTime,a),n===h&&!r&&this._initted&&s===o)return this._tTime=g,this;s!==o&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(Dt(a*s),!0).invalidate()._lock=0)}if(!this._initted){if(ae(this,p?t:n,r,e,g))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 _=m?h:d-h;this._inv=m,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=_?(m?-1:1)/_:0,this._invScale=m?-this.ratio:1-this.ratio,this._invEase=m?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/d);if(this._from&&(this.ratio=u=1-u),this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&g&&!e&&!o&&(Pe(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(t<0?t:c._dur*c._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(p&&Zt(this,t,0,r),Pe(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&Pe(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(p&&!this._onUpdate&&Zt(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Gt(this,1),e||p&&!h||!(g||h||l)||(Pe(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&oe(t)&&(t._initted||!le(t))||(t._ts<0||t._dp._ts<0)&&!le(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=ge(0,t._tDur,e),s=Jt(c,u),t._yoyo&&1&s&&(l=1-l),s!==Jt(t._tTime,u)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||y||n||t._zTime===B||!e&&t._zTime){if(!t._initted&&ae(t,e,n,r,c))return;for(a=t._zTime,t._zTime=e||(r?B:0),r||(r=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Zt(t,e,0,!0),t._onUpdate&&!r&&Pe(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&Pe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Gt(t,1),r||y||(Pe(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){S||qe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||cr(this,s),function(t,e,r,n,i,s,a,o){var l,u,c,h,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((l=c[h][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return ar=1,t.vars[e]="+=0",cr(t,a),ar=0,o?pt(e+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(h=f.length;h--;)(l=(u=f[h])._pt||u).s=!n&&0!==n||i?l.s+(n||0)+s*l.c:n,l.c=r-l.s,u.e&&(u.e=Rt(r)+me(u.e)),u.b&&(u.b=l.s+me(u.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(re(this,0),this.parent||Ut(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?Re(this):this.scrollTrigger&&this.scrollTrigger.kill(!!y),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,sr&&!0!==sr.vars.overwrite)._first||Re(this),this.parent&&r!==this.timeline.totalDuration()&&ue(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,l,u,c=this._targets,h=t?xe(t):c,f=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}(c,h))return"all"===e&&(this._pt=0),Re(this);for(n=this._op=this._op||[],"all"!==e&&(H(e)&&(o={},Pt(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,n,i,s,a=t[0]?Mt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Wt({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(c,e)),u=c.length;u--;)if(~h.indexOf(c[u]))for(o in i=f[u],"all"===e?(n[u]=e,a=i,s={}):(s=n[u]=n[u]||{},a=e),a)(l=i&&i[o])&&("kill"in l.d&&!0!==l.d.kill(o)||Vt(this,l,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&d&&Re(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return de(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 de(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 b.killTweensOf(t,e,r)},e}(nr);Yt(gr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pt("staggerTo,staggerFrom,staggerFromTo",function(t){gr[t]=function(){var e=new ir,r=_e.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var mr=function(t,e,r){return t[e]=r},_r=function(t,e,r){return t[e](r)},vr=function(t,e,r,n){return t[e](n.fp,r)},yr=function(t,e,r){return t.setAttribute(e,r)},xr=function(t,e){return U(t[e])?_r:G(t[e])&&t.setAttribute?yr:mr},br=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},wr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Tr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},Or=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Cr=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},kr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Vt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Er=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},Sr=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},Mr=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||br,this.d=a||this,this.set=o||mr,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=Er,this.m=t,this.mt=r,this.tween=e},t}();Pt(Et+"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 xt[t]=1}),ct.TweenMax=ct.TweenLite=gr,ct.TimelineLite=ct.TimelineMax=ir,b=new ir({sortChildren:!1,defaults:N,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),F.stringFilter=Xe;var Ar=[],Pr={},Rr=[],Dr=0,zr=0,Fr=function(t){return(Pr[t]||Rr).map(function(t){return t()})},Nr=function(){var t=Date.now(),e=[];t-Dr>2&&(Fr("matchMediaInit"),Ar.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=w.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),Fr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),Dr=t,Fr("matchMedia"))},Ir=function(){function t(t,e){this.selector=e&&be(e),this.data=[],this._r=[],this.isReverted=!1,this.id=zr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){U(t)&&(r=e,e=t,t=U);var n=this,i=function(){var t,i=x,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=be(r)),x=n,t=e.apply(n,arguments),U(t)&&n._r.push(t),x=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===U?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=x;x=null,t(this),x=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof gr&&!(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 ir?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof gr)&&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=Ar.length;n--;)Ar[n].id===this.id&&Ar.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Br=function(){function t(t){this.contexts=[],this.scope=t,x&&x.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){$(t)||(t={matches:t});var n,i,s,a=new Ir(0,r||this.scope),o=a.conditions={};for(i in x&&!a.selector&&(a.selector=x.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=w.matchMedia(t[i]))&&(Ar.indexOf(a)<0&&Ar.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(Nr):n.addEventListener("change",Nr));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}(),Lr={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 ze(t)})},timeline:function(t){return new ir(t)},getTweensOf:function(t,e){return b.getTweensOf(t,e)},getProperty:function(t,e,r,n){H(t)&&(t=xe(t)[0]);var i=Mt(t||{}).get,s=r?jt:Lt;return"native"===r&&(r=""),t?e?s((Tt[e]&&Tt[e].get||i)(t,e,r,n)):function(e,r,n){return s((Tt[e]&&Tt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=xe(t)).length>1){var n=t.map(function(t){return Wr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=Tt[e],a=Mt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;E._pt=0,n.init(t,r?e+r:e,E,0,[t]),n.render(1,n),E._pt&&Or(1,E)}: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=Wr.to(t,Yt(((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 b.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Qe(t.ease,N.ease)),Xt(N,t||{})},config:function(t){return Xt(F,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&&!Tt[t]&&!ct[t]&&pt(e+" effect requires "+t+" plugin.")}),Ot[e]=function(t,e,n){return r(xe(t),Yt(e||{},i),n)},s&&(ir.prototype[e]=function(t,r,n){return this.add(Ot[e](t,$(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ue[t]=Qe(e)},parseEase:function(t,e){return arguments.length?Qe(t,e):Ue},getById:function(t){return b.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new ir(t);for(i.smoothChildTiming=Z(t.smoothChildTiming),b.remove(i),i._dp=0,i._time=i._tTime=b._time,r=b._first;r;)n=r._next,!e&&!r._dur&&r instanceof gr&&r.vars.onComplete===r._targets[0]||ie(i,r,r._start-r._delay),r=n;return ie(b,i,0),i},context:function(t,e){return t?new Ir(t,e):x},matchMedia:function(t){return new Br(t)},matchMediaRefresh:function(){return Ar.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||Nr()},addEventListener:function(t,e){var r=Pr[t]||(Pr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Pr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return tt(e)?Ee(e,t(0,e.length),r):pe(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return tt(e)?Ee(e,t(0,e.length-1),r):pe(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:Te,random:ke,snap:Ce,normalize:function(t,e,r){return Me(t,e,0,1,r)},getUnit:me,clamp:function(t,e,r){return pe(r,function(r){return ge(t,e,r)})},splitColor:Be,toArray:xe,selector:be,mapRange:Me,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||me(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,h=H(e),f={};if(!0===n&&(i=1)&&(n=null),h)e={p:e},r={p:r};else if(tt(e)&&!tt(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=Wt(tt(e)?[]:{},e));if(!l){for(a in r)lr.call(f,e,a,"get",r[a]);s=function(t){return Or(t,f)||(h?e.p:e)}}}return pe(n,s)},shuffle:we},install:ft,effects:Ot,ticker:qe,updateRoot:ir.updateRoot,plugins:Tt,globalTimeline:b,core:{PropTween:Mr,globals:gt,Tween:gr,Timeline:ir,Animation:nr,getCache:Mt,_removeLinkedListItem:Vt,reverting:function(){return y},context:function(t){return t&&x&&(x.data.push(t),t._ctx=x),x},suppressOverwrites:function(t){return v=t}}};Pt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Lr[t]=gr[t]}),qe.add(ir.updateRoot),E=Lr.to({},{duration:0});var jr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Yr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(H(r)&&(n={},Pt(r,function(t){return n[t]=1}),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=jr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Wr=Lr.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;)y?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)}},Yr("roundProps",Oe),Yr("modifiers"),Yr("snap",Ce))||Lr;gr.version=ir.version=Wr.version="3.15.0",C=1,Q()&&He(),Ue.Power0,Ue.Power1,Ue.Power2,Ue.Power3,Ue.Power4,Ue.Linear,Ue.Quad,Ue.Cubic,Ue.Quart,Ue.Quint,Ue.Strong,Ue.Elastic,Ue.Back,Ue.SteppedEase,Ue.Bounce,Ue.Sine,Ue.Expo,Ue.Circ;
|
|
10
10
|
/*!
|
|
11
11
|
* CSSPlugin 3.15.0
|
|
12
12
|
* https://gsap.com
|
|
@@ -15,7 +15,7 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r,{useRef as n,useState
|
|
|
15
15
|
* Subject to the terms at https://gsap.com/standard-license
|
|
16
16
|
* @author: Jack Doyle, jack@greensock.com
|
|
17
17
|
*/
|
|
18
|
-
var Wr,qr,Hr,Ur,Vr,Gr,$r,Zr,Qr={},Kr=180/Math.PI,Jr=Math.PI/180,tn=Math.atan2,en=/([A-Z])/g,rn=/(left|right|width|margin|padding|x)/i,nn=/[\s,\(]\S/,sn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},an=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},on=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)},ln=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)},un=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)},cn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},fn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},hn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},dn=function(t,e,r){return t.style[e]=r},pn=function(t,e,r){return t.style.setProperty(e,r)},gn=function(t,e,r){return t._gsap[e]=r},mn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},_n=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},vn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},yn="transform",xn=yn+"Origin",bn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Qr&&s){if(this.tfm=this.tfm||{},"transform"===e)return sn.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=sn[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Ln(i,t)}):this.tfm[e]=a.x?a[e]:Ln(i,e),e===xn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(yn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(xn,r,"")),e=yn}(s||r)&&this.props.push(e,r,s[e])},wn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Tn=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(en,"-$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=$r())&&t.isStart||i[yn]||(wn(i),s.zOrigin&&i[xn]&&(i[xn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},On=function(t,e){var r={target:t,props:[],revert:Tn,save:bn};return t._gsap||Xr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},Cn=function(t,e){var r=qr.createElementNS?qr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):qr.createElement(t);return r&&r.style?r:qr.createElement(t)},kn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(en,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,Sn(r)||r,1)||""},En="O,Moz,ms,Ms,Webkit".split(","),Sn=function(t,e,r){var n=(e||Vr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(En[i]+t in n););return i<0?null:(3===i?"ms":i>=0?En[i]:"")+t},Mn=function(){"undefined"!=typeof window&&window.document&&(Wr=window,qr=Wr.document,Hr=qr.documentElement,Vr=Cn("div")||{style:{}},Cn("div"),yn=Sn(yn),xn=yn+"Origin",Vr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Zr=!!Sn("perspective"),$r=Xr.core.reverting,Ur=1)},An=function(t){var e,r=t.ownerSVGElement,n=Cn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Hr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Hr.removeChild(n),e},Pn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Rn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=An(t),r=1}return e&&(e.width||e.height)||r||(e=An(t)),!e||e.width||e.x||e.y?e:{x:+Pn(t,["x","cx","x1"])||0,y:+Pn(t,["y","cy","y1"])||0,width:0,height:0}},Dn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Rn(t))},zn=function(t,e){if(e){var r,n=t.style;e in Qr&&e!==xn&&(e=yn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(en,"-$1").toLowerCase())):n.removeAttribute(e)}},Fn=function(t,e,r,n,i,s){var a=new Mr(t._pt,e,r,0,1,s?hn:fn);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},Nn={deg:1,rad:1,turn:1},In={grid:1,flex:1},Bn=function t(e,r,n,i){var s,a,o,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",f=Vr.style,h=rn.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(h?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!u||Nn[i]||Nn[c])return u;if("px"!==c&&!m&&(u=t(e,r,n,"px")),l=e.getCTM&&Dn(e),(_||"%"===c)&&(Qr[r]||~r.indexOf("adius")))return s=l?e.getBBox()[h?"width":"height"]:e[p],Rt(_?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!==qr&&a.appendChild||(a=qr.body),(o=a._gsap)&&_&&o.width&&h&&o.time===qe.time&&!o.uncache)return Rt(u/o.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!In[kn(a,"display")]&&(f.position=kn(e,"position")),a===e&&(f.position="static"),a.appendChild(Vr),s=Vr[p],a.removeChild(Vr),f.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[p],v?e.style[r]=v:zn(e,r)}return h&&_&&((o=Mt(a)).time=qe.time,o.width=a[p]),Rt(m?s*u/g:s&&u?g/s*u:0)},Ln=function(t,e,r,n){var i;return Ur||Mn(),e in sn&&"transform"!==e&&~(e=sn[e]).indexOf(",")&&(e=e.split(",")[0]),Qr[e]&&"transform"!==e?(i=Qn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Kn(kn(t,xn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=qn[e]&&qn[e](t,e,r)||kn(t,e)||At(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Bn(t,e,i,r)+r:i},jn=function(t,e,r,n){if(!r||"none"===r){var i=Sn(e,t,1),s=i&&kn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=kn(t,"borderTopColor"))}var a,o,l,u,c,f,h,d,p,g,m,_=new Mr(this._pt,t.style,e,0,1,Tr),v=0,y=0;if(_.b=r,_.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=kn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=kn(t,e)||n,f?t.style[e]=f:zn(t,e)),We(a=[r,n]),n=a[1],l=(r=a[0]).match(st)||[],(n.match(st)||[]).length){for(;o=st.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=zt(u,h)+m),d=parseFloat(h),g=h.substr((d+"").length),v=st.lastIndex-g.length,g||(g=g||F.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(u=Bn(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?hn:fn;return ot.test(n)&&(_.e=0),this._pt=_,_},Yn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Xn=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]=Yn[r]||r,e[1]=Yn[n]||n,e.join(" ")},Wn=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],Qr[r]&&(n=1,r="transformOrigin"===r?xn:yn),zn(s,r);n&&(zn(s,yn),l&&(l.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Qn(s,1),l.uncache=1,wn(a)))}},qn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new Mr(t._pt,e,r,0,0,Wn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Hn=[1,0,0,1,0,0],Un={},Vn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Gn=function(t){var e=kn(t,yn);return Vn(e)?Hn:e.substr(7).match(it).map(Rt)},$n=function(t,e){var r,n,i,s,a=t._gsap||Mt(t),o=t.style,l=Gn(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(",")?Hn:l:(l!==Hn||t.offsetParent||t===Hr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Hr.appendChild(t)),l=Gn(t),i?o.display=i:zn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Hr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Zn=function(t,e,r,n,i,s){var a,o,l,u=t._gsap,c=i||$n(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!==Hn&&(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=Rn(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[xn]="0px 0px",s&&(Fn(s,u,"xOrigin",f,w),Fn(s,u,"yOrigin",h,T),Fn(s,u,"xOffset",d,u.xOffset),Fn(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Qn=function(t,e){var r=t._gsap||new rr(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,O,C,k,E,S,M,A,P,R,D,z,N=t.style,I=r.scaleX<0,B="px",L="deg",j=getComputedStyle(t),Y=kn(t,xn)||"0";return n=i=s=l=u=c=f=h=d=0,a=o=1,r.svg=!(!t.getCTM||!Dn(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(N[yn]=("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[yn]?j[yn]:"")),N.scale=N.rotate=N.translate="none"),m=$n(t,r.svg),r.svg&&(r.uncache?(E=t.getBBox(),Y=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Zn(t,k||Y,!!k||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,g=r.yOrigin||0,m!==Hn&&(x=m[0],b=m[1],w=m[2],T=m[3],n=O=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?tn(b,x)*Kr:0,(f=w||T?tn(w,T)*Kr+l:0)&&(o*=Math.abs(Math.cos(f*Jr))),r.svg&&(n-=p-(p*x+g*w),i-=g-(p*b+g*T))):(z=m[6],R=m[7],M=m[8],A=m[9],P=m[10],D=m[11],n=m[12],i=m[13],s=m[14],u=(_=tn(z,P))*Kr,_&&(k=O*(v=Math.cos(-_))+M*(y=Math.sin(-_)),E=C*v+A*y,S=z*v+P*y,M=O*-y+M*v,A=C*-y+A*v,P=z*-y+P*v,D=R*-y+D*v,O=k,C=E,z=S),c=(_=tn(-w,P))*Kr,_&&(v=Math.cos(-_),D=T*(y=Math.sin(-_))+D*v,x=k=x*v-M*y,b=E=b*v-A*y,w=S=w*v-P*y),l=(_=tn(b,x))*Kr,_&&(k=x*(v=Math.cos(_))+b*(y=Math.sin(_)),E=O*v+C*y,b=b*v-x*y,C=C*v-O*y,x=k,O=E),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),a=Rt(Math.sqrt(x*x+b*b+w*w)),o=Rt(Math.sqrt(C*C+z*z)),_=tn(O,C),f=Math.abs(_)>2e-4?_*Kr:0,d=D?1/(D<0?-D:D):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Vn(kn(t,yn)),k&&t.setAttribute("transform",k))),Math.abs(f)>90&&Math.abs(f)<270&&(I?(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=Rt(a),r.scaleY=Rt(o),r.rotation=Rt(l)+L,r.rotationX=Rt(u)+L,r.rotationY=Rt(c)+L,r.skewX=f+L,r.skewY=h+L,r.transformPerspective=d+B,(r.zOrigin=parseFloat(Y.split(" ")[2])||!e&&r.zOrigin||0)&&(N[xn]=Kn(Y)),r.xOffset=r.yOffset=0,r.force3D=F.force3D,r.renderTransform=r.svg?si:Zr?ii:ti,r.uncache=0,r},Kn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Jn=function(t,e,r){var n=me(e);return Rt(parseFloat(e)+parseFloat(Bn(t,"x",r+"px",n)))+n},ti=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ii(t,e)},ei="0deg",ri="0px",ni=") ",ii=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!==ei||u!==ei)){var b,w=parseFloat(u)*Jr,T=Math.sin(w),O=Math.cos(w);w=parseFloat(c)*Jr,b=Math.cos(w),s=Jn(_,s,T*b*-v),a=Jn(_,a,-Math.sin(w)*-v),o=Jn(_,o,O*b*-v+v)}g!==ri&&(y+="perspective("+g+ni),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==ri||a!==ri||o!==ri)&&(y+=o!==ri||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+ni),l!==ei&&(y+="rotate("+l+ni),u!==ei&&(y+="rotateY("+u+ni),c!==ei&&(y+="rotateX("+c+ni),f===ei&&h===ei||(y+="skew("+f+", "+h+ni),1===d&&1===p||(y+="scale("+d+", "+p+ni),_.style[yn]=y||"translate(0, 0)"},si=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*=Jr,d*=Jr,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-d)*-m,s=Math.cos(h-d)*m,d&&(p*=Jr,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=Rt(r),n=Rt(n),i=Rt(i),s=Rt(s)):(r=g,s=m,n=i=0),(T&&!~(c+"").indexOf("px")||O&&!~(f+"").indexOf("px"))&&(T=Bn(_,"x",c,"px"),O=Bn(_,"y",f,"px")),(v||y||x||b)&&(T=Rt(T+v-(v*r+y*i)+x),O=Rt(O+y-(v*n+y*s)+b)),(l||u)&&(a=_.getBBox(),T=Rt(T+l/100*a.width),O=Rt(O+u/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+O+")",_.setAttribute("transform",a),w&&(_.style[yn]=a)},ai=function(t,e,r,n,i){var s,a,o=360,l=H(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?Kr: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 Mr(t._pt,e,r,n,u,on),a.e=c,a.u="deg",t._props.push(r),a},oi=function(t,e){for(var r in e)t[r]=e[r];return t},li=function(t,e,r){var n,i,s,a,o,l,u,c=oi({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[yn]=e,n=Qn(r,1),zn(r,yn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[yn],f[yn]=e,n=Qn(r,1),f[yn]=s),Qr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=me(s)!==(u=me(a))?Bn(r,i,s,u):parseFloat(s),l=parseFloat(a),t._pt=new Mr(t._pt,n,i,o,l-o,an),t._pt.u=u||0,t._props.push(i));oi(n,c)};Pt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",a=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map(function(r){return e<2?t+r:"border"+r+t});qn[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 Ln(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 ui,ci,fi,hi={name:"css",register:Mn,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,O=r.vars.startAt;for(f in Ur||Mn(),this.styles=this.styles||On(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!Tt[f]||!ur(f,e,r,n,t,i)))if(u=typeof a,c=qn[f],"function"===u&&(u=typeof(a=a.call(r,n,t,i))),"string"===u&&~a.indexOf("random(")&&(a=Se(a)),c)c(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Ye.lastIndex=0,Ye.test(s)||(h=me(s),(d=me(a))?h!==d&&(s=Bn(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(O&&f in O?(s="function"==typeof O[f]?O[f].call(r,n,t,i):O[f],H(s)&&~s.indexOf("random(")&&(s=Se(s)),me(s+"")||"auto"===s||(s+=F.units[f]||me(Ln(t,f))||""),"="===(s+"").charAt(1)&&(s=Ln(t,f))):s=Ln(t,f),l=parseFloat(s),(p="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in sn&&("autoAlpha"===f&&(1===l&&"hidden"===Ln(t,"visibility")&&o&&(l=0),x.push("visibility",0,T.visibility),Fn(this,T,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=sn[f]).indexOf(",")&&(f=f.split(",")[0])),g=f in Qr){if(this.styles.save(f),b=a,"string"===u&&"var(--"===a.substring(0,6)){if("calc("===(a=kn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var C=t.style.perspective;t.style.perspective=a,a=kn(t,"perspective"),C?t.style.perspective=C:zn(t,"perspective")}o=parseFloat(a)}if(m||((_=t._gsap).renderTransform&&!e.parseTransform||Qn(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new Mr(this._pt,T,yn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new Mr(this._pt,_,"scaleY",_.scaleY,(p?zt(_.scaleY,p+o):o)-_.scaleY||0,an),this._pt.u=0,w.push("scaleY",f),f+="X";else{if("transformOrigin"===f){x.push(xn,0,T[xn]),a=Xn(a),_.svg?Zn(t,a,0,v,0,this):((d=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&Fn(this,_,"zOrigin",_.zOrigin,d),Fn(this,T,f,Kn(s),Kn(a)));continue}if("svgOrigin"===f){Zn(t,a,1,v,0,this);continue}if(f in Un){ai(this,_,f,l,p?zt(l,p+a):a);continue}if("smoothOrigin"===f){Fn(this,_,"smooth",_.smooth,a);continue}if("force3D"===f){_[f]=a;continue}if("transform"===f){li(this,a,t);continue}}}else f in T||(f=Sn(f)||f);if(g||(o||0===o)&&(l||0===l)&&!nn.test(a)&&f in T)o||(o=0),(h=(s+"").substr((l+"").length))!==(d=me(a)||(f in F.units?F.units[f]:h))&&(l=Bn(t,f,s,d)),this._pt=new Mr(this._pt,g?_:T,f,l,(p?zt(l,p+o):o)-l,g||"px"!==d&&"zIndex"!==f||!1===e.autoRound?an:cn),this._pt.u=d||0,g&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=un):h!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=ln);else if(f in T)jn.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){dt(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&&Sr(this)},render:function(t,e){if(e.tween._time||!$r())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Ln,aliases:sn,getSetter:function(t,e,r){var n=sn[e];return n&&n.indexOf(",")<0&&(e=n),e in Qr&&e!==xn&&(t._gsap.x||Ln(t,"x"))?r&&Gr===r?"scale"===e?mn:gn:(Gr=r||{})&&("scale"===e?_n:vn):t.style&&!G(t.style[e])?dn:~e.indexOf("-")?pn:xr(t,e)},core:{_removeProperty:zn,_getMatrix:$n}};Xr.utils.checkPrefix=Sn,Xr.core.getStyleSaver=On,fi=Pt((ui="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ci="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Qr[t]=1}),Pt(ci,function(t){F.units[t]="deg",Un[t]=1}),sn[fi[13]]=ui+","+ci,Pt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");sn[e[1]]=fi[e[0]]}),Pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){F.units[t]="px"}),Xr.registerPlugin(hi);var di=Xr.registerPlugin(hi)||Xr;function pi(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)}}di.core.Tween;
|
|
18
|
+
var Xr,qr,Hr,Ur,Vr,Gr,$r,Zr,Qr={},Kr=180/Math.PI,Jr=Math.PI/180,tn=Math.atan2,en=/([A-Z])/g,rn=/(left|right|width|margin|padding|x)/i,nn=/[\s,\(]\S/,sn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},an=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},on=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)},ln=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)},un=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)},cn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},hn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},fn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},dn=function(t,e,r){return t.style[e]=r},pn=function(t,e,r){return t.style.setProperty(e,r)},gn=function(t,e,r){return t._gsap[e]=r},mn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},_n=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},vn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},yn="transform",xn=yn+"Origin",bn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Qr&&s){if(this.tfm=this.tfm||{},"transform"===e)return sn.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=sn[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Ln(i,t)}):this.tfm[e]=a.x?a[e]:Ln(i,e),e===xn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(yn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(xn,r,"")),e=yn}(s||r)&&this.props.push(e,r,s[e])},wn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Tn=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(en,"-$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=$r())&&t.isStart||i[yn]||(wn(i),s.zOrigin&&i[xn]&&(i[xn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},On=function(t,e){var r={target:t,props:[],revert:Tn,save:bn};return t._gsap||Wr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},Cn=function(t,e){var r=qr.createElementNS?qr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):qr.createElement(t);return r&&r.style?r:qr.createElement(t)},kn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(en,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,Sn(r)||r,1)||""},En="O,Moz,ms,Ms,Webkit".split(","),Sn=function(t,e,r){var n=(e||Vr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(En[i]+t in n););return i<0?null:(3===i?"ms":i>=0?En[i]:"")+t},Mn=function(){"undefined"!=typeof window&&window.document&&(Xr=window,qr=Xr.document,Hr=qr.documentElement,Vr=Cn("div")||{style:{}},Cn("div"),yn=Sn(yn),xn=yn+"Origin",Vr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Zr=!!Sn("perspective"),$r=Wr.core.reverting,Ur=1)},An=function(t){var e,r=t.ownerSVGElement,n=Cn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Hr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Hr.removeChild(n),e},Pn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Rn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=An(t),r=1}return e&&(e.width||e.height)||r||(e=An(t)),!e||e.width||e.x||e.y?e:{x:+Pn(t,["x","cx","x1"])||0,y:+Pn(t,["y","cy","y1"])||0,width:0,height:0}},Dn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Rn(t))},zn=function(t,e){if(e){var r,n=t.style;e in Qr&&e!==xn&&(e=yn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(en,"-$1").toLowerCase())):n.removeAttribute(e)}},Fn=function(t,e,r,n,i,s){var a=new Mr(t._pt,e,r,0,1,s?fn:hn);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},Nn={deg:1,rad:1,turn:1},In={grid:1,flex:1},Bn=function t(e,r,n,i){var s,a,o,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",h=Vr.style,f=rn.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!u||Nn[i]||Nn[c])return u;if("px"!==c&&!m&&(u=t(e,r,n,"px")),l=e.getCTM&&Dn(e),(_||"%"===c)&&(Qr[r]||~r.indexOf("adius")))return s=l?e.getBBox()[f?"width":"height"]:e[p],Rt(_?u/s*g:u/100*s);if(h[f?"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!==qr&&a.appendChild||(a=qr.body),(o=a._gsap)&&_&&o.width&&f&&o.time===qe.time&&!o.uncache)return Rt(u/o.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!In[kn(a,"display")]&&(h.position=kn(e,"position")),a===e&&(h.position="static"),a.appendChild(Vr),s=Vr[p],a.removeChild(Vr),h.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[p],v?e.style[r]=v:zn(e,r)}return f&&_&&((o=Mt(a)).time=qe.time,o.width=a[p]),Rt(m?s*u/g:s&&u?g/s*u:0)},Ln=function(t,e,r,n){var i;return Ur||Mn(),e in sn&&"transform"!==e&&~(e=sn[e]).indexOf(",")&&(e=e.split(",")[0]),Qr[e]&&"transform"!==e?(i=Qn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Kn(kn(t,xn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=qn[e]&&qn[e](t,e,r)||kn(t,e)||At(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Bn(t,e,i,r)+r:i},jn=function(t,e,r,n){if(!r||"none"===r){var i=Sn(e,t,1),s=i&&kn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=kn(t,"borderTopColor"))}var a,o,l,u,c,h,f,d,p,g,m,_=new Mr(this._pt,t.style,e,0,1,Tr),v=0,y=0;if(_.b=r,_.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=kn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=kn(t,e)||n,h?t.style[e]=h:zn(t,e)),Xe(a=[r,n]),n=a[1],l=(r=a[0]).match(st)||[],(n.match(st)||[]).length){for(;o=st.exec(n);)f=o[0],p=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=l[y++]||"")&&(u=parseFloat(h)||0,m=h.substr((u+"").length),"="===f.charAt(1)&&(f=zt(u,f)+m),d=parseFloat(f),g=f.substr((d+"").length),v=st.lastIndex-g.length,g||(g=g||F.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(u=Bn(t,e,h,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?fn:hn;return ot.test(n)&&(_.e=0),this._pt=_,_},Yn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Wn=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]=Yn[r]||r,e[1]=Yn[n]||n,e.join(" ")},Xn=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],Qr[r]&&(n=1,r="transformOrigin"===r?xn:yn),zn(s,r);n&&(zn(s,yn),l&&(l.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Qn(s,1),l.uncache=1,wn(a)))}},qn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new Mr(t._pt,e,r,0,0,Xn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Hn=[1,0,0,1,0,0],Un={},Vn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Gn=function(t){var e=kn(t,yn);return Vn(e)?Hn:e.substr(7).match(it).map(Rt)},$n=function(t,e){var r,n,i,s,a=t._gsap||Mt(t),o=t.style,l=Gn(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(",")?Hn:l:(l!==Hn||t.offsetParent||t===Hr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Hr.appendChild(t)),l=Gn(t),i?o.display=i:zn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Hr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Zn=function(t,e,r,n,i,s){var a,o,l,u=t._gsap,c=i||$n(t,!0),h=u.xOrigin||0,f=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!==Hn&&(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=Rn(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-h,x=T-f,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[xn]="0px 0px",s&&(Fn(s,u,"xOrigin",h,w),Fn(s,u,"yOrigin",f,T),Fn(s,u,"xOffset",d,u.xOffset),Fn(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Qn=function(t,e){var r=t._gsap||new rr(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,l,u,c,h,f,d,p,g,m,_,v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,N=t.style,I=r.scaleX<0,B="px",L="deg",j=getComputedStyle(t),Y=kn(t,xn)||"0";return n=i=s=l=u=c=h=f=d=0,a=o=1,r.svg=!(!t.getCTM||!Dn(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(N[yn]=("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[yn]?j[yn]:"")),N.scale=N.rotate=N.translate="none"),m=$n(t,r.svg),r.svg&&(r.uncache?(E=t.getBBox(),Y=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Zn(t,k||Y,!!k||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,g=r.yOrigin||0,m!==Hn&&(x=m[0],b=m[1],w=m[2],T=m[3],n=O=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?tn(b,x)*Kr:0,(h=w||T?tn(w,T)*Kr+l:0)&&(o*=Math.abs(Math.cos(h*Jr))),r.svg&&(n-=p-(p*x+g*w),i-=g-(p*b+g*T))):(z=m[6],R=m[7],M=m[8],A=m[9],P=m[10],D=m[11],n=m[12],i=m[13],s=m[14],u=(_=tn(z,P))*Kr,_&&(k=O*(v=Math.cos(-_))+M*(y=Math.sin(-_)),E=C*v+A*y,S=z*v+P*y,M=O*-y+M*v,A=C*-y+A*v,P=z*-y+P*v,D=R*-y+D*v,O=k,C=E,z=S),c=(_=tn(-w,P))*Kr,_&&(v=Math.cos(-_),D=T*(y=Math.sin(-_))+D*v,x=k=x*v-M*y,b=E=b*v-A*y,w=S=w*v-P*y),l=(_=tn(b,x))*Kr,_&&(k=x*(v=Math.cos(_))+b*(y=Math.sin(_)),E=O*v+C*y,b=b*v-x*y,C=C*v-O*y,x=k,O=E),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),a=Rt(Math.sqrt(x*x+b*b+w*w)),o=Rt(Math.sqrt(C*C+z*z)),_=tn(O,C),h=Math.abs(_)>2e-4?_*Kr:0,d=D?1/(D<0?-D:D):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Vn(kn(t,yn)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(I?(a*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,h+=h<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+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=Rt(a),r.scaleY=Rt(o),r.rotation=Rt(l)+L,r.rotationX=Rt(u)+L,r.rotationY=Rt(c)+L,r.skewX=h+L,r.skewY=f+L,r.transformPerspective=d+B,(r.zOrigin=parseFloat(Y.split(" ")[2])||!e&&r.zOrigin||0)&&(N[xn]=Kn(Y)),r.xOffset=r.yOffset=0,r.force3D=F.force3D,r.renderTransform=r.svg?si:Zr?ii:ti,r.uncache=0,r},Kn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Jn=function(t,e,r){var n=me(e);return Rt(parseFloat(e)+parseFloat(Bn(t,"x",r+"px",n)))+n},ti=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ii(t,e)},ei="0deg",ri="0px",ni=") ",ii=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,h=r.skewX,f=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!==ei||u!==ei)){var b,w=parseFloat(u)*Jr,T=Math.sin(w),O=Math.cos(w);w=parseFloat(c)*Jr,b=Math.cos(w),s=Jn(_,s,T*b*-v),a=Jn(_,a,-Math.sin(w)*-v),o=Jn(_,o,O*b*-v+v)}g!==ri&&(y+="perspective("+g+ni),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==ri||a!==ri||o!==ri)&&(y+=o!==ri||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+ni),l!==ei&&(y+="rotate("+l+ni),u!==ei&&(y+="rotateY("+u+ni),c!==ei&&(y+="rotateX("+c+ni),h===ei&&f===ei||(y+="skew("+h+", "+f+ni),1===d&&1===p||(y+="scale("+d+", "+p+ni),_.style[yn]=y||"translate(0, 0)"},si=function(t,e){var r,n,i,s,a,o=e||this,l=o.xPercent,u=o.yPercent,c=o.x,h=o.y,f=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(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Jr,d*=Jr,r=Math.cos(f)*g,n=Math.sin(f)*g,i=Math.sin(f-d)*-m,s=Math.cos(f-d)*m,d&&(p*=Jr,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=Rt(r),n=Rt(n),i=Rt(i),s=Rt(s)):(r=g,s=m,n=i=0),(T&&!~(c+"").indexOf("px")||O&&!~(h+"").indexOf("px"))&&(T=Bn(_,"x",c,"px"),O=Bn(_,"y",h,"px")),(v||y||x||b)&&(T=Rt(T+v-(v*r+y*i)+x),O=Rt(O+y-(v*n+y*s)+b)),(l||u)&&(a=_.getBBox(),T=Rt(T+l/100*a.width),O=Rt(O+u/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+O+")",_.setAttribute("transform",a),w&&(_.style[yn]=a)},ai=function(t,e,r,n,i){var s,a,o=360,l=H(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?Kr: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 Mr(t._pt,e,r,n,u,on),a.e=c,a.u="deg",t._props.push(r),a},oi=function(t,e){for(var r in e)t[r]=e[r];return t},li=function(t,e,r){var n,i,s,a,o,l,u,c=oi({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[yn]=e,n=Qn(r,1),zn(r,yn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[yn],h[yn]=e,n=Qn(r,1),h[yn]=s),Qr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=me(s)!==(u=me(a))?Bn(r,i,s,u):parseFloat(s),l=parseFloat(a),t._pt=new Mr(t._pt,n,i,o,l-o,an),t._pt.u=u||0,t._props.push(i));oi(n,c)};Pt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",a=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map(function(r){return e<2?t+r:"border"+r+t});qn[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 Ln(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 ui,ci,hi,fi={name:"css",register:Mn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,l,u,c,h,f,d,p,g,m,_,v,y,x,b,w=this._props,T=t.style,O=r.vars.startAt;for(h in Ur||Mn(),this.styles=this.styles||On(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(a=e[h],!Tt[h]||!ur(h,e,r,n,t,i)))if(u=typeof a,c=qn[h],"function"===u&&(u=typeof(a=a.call(r,n,t,i))),"string"===u&&~a.indexOf("random(")&&(a=Se(a)),c)c(this,t,h,a,r)&&(y=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Ye.lastIndex=0,Ye.test(s)||(f=me(s),(d=me(a))?f!==d&&(s=Bn(t,h,s,d)+d):f&&(a+=f)),this.add(T,"setProperty",s,a,n,i,0,0,h),w.push(h),x.push(h,0,T[h]);else if("undefined"!==u){if(O&&h in O?(s="function"==typeof O[h]?O[h].call(r,n,t,i):O[h],H(s)&&~s.indexOf("random(")&&(s=Se(s)),me(s+"")||"auto"===s||(s+=F.units[h]||me(Ln(t,h))||""),"="===(s+"").charAt(1)&&(s=Ln(t,h))):s=Ln(t,h),l=parseFloat(s),(p="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),h in sn&&("autoAlpha"===h&&(1===l&&"hidden"===Ln(t,"visibility")&&o&&(l=0),x.push("visibility",0,T.visibility),Fn(this,T,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=sn[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in Qr){if(this.styles.save(h),b=a,"string"===u&&"var(--"===a.substring(0,6)){if("calc("===(a=kn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var C=t.style.perspective;t.style.perspective=a,a=kn(t,"perspective"),C?t.style.perspective=C:zn(t,"perspective")}o=parseFloat(a)}if(m||((_=t._gsap).renderTransform&&!e.parseTransform||Qn(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new Mr(this._pt,T,yn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===h)this._pt=new Mr(this._pt,_,"scaleY",_.scaleY,(p?zt(_.scaleY,p+o):o)-_.scaleY||0,an),this._pt.u=0,w.push("scaleY",h),h+="X";else{if("transformOrigin"===h){x.push(xn,0,T[xn]),a=Wn(a),_.svg?Zn(t,a,0,v,0,this):((d=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&Fn(this,_,"zOrigin",_.zOrigin,d),Fn(this,T,h,Kn(s),Kn(a)));continue}if("svgOrigin"===h){Zn(t,a,1,v,0,this);continue}if(h in Un){ai(this,_,h,l,p?zt(l,p+a):a);continue}if("smoothOrigin"===h){Fn(this,_,"smooth",_.smooth,a);continue}if("force3D"===h){_[h]=a;continue}if("transform"===h){li(this,a,t);continue}}}else h in T||(h=Sn(h)||h);if(g||(o||0===o)&&(l||0===l)&&!nn.test(a)&&h in T)o||(o=0),(f=(s+"").substr((l+"").length))!==(d=me(a)||(h in F.units?F.units[h]:f))&&(l=Bn(t,h,s,d)),this._pt=new Mr(this._pt,g?_:T,h,l,(p?zt(l,p+o):o)-l,g||"px"!==d&&"zIndex"!==h||!1===e.autoRound?an:cn),this._pt.u=d||0,g&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=un):f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=ln);else if(h in T)jn.call(this,t,h,s,p?p+a:a);else if(h in t)this.add(t,h,s||t[h],p?p+a:a,n,i);else if("parseTransform"!==h){dt(h,a);continue}g||(h in T?x.push(h,0,T[h]):"function"==typeof t[h]?x.push(h,2,t[h]()):x.push(h,1,s||t[h])),w.push(h)}y&&Sr(this)},render:function(t,e){if(e.tween._time||!$r())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Ln,aliases:sn,getSetter:function(t,e,r){var n=sn[e];return n&&n.indexOf(",")<0&&(e=n),e in Qr&&e!==xn&&(t._gsap.x||Ln(t,"x"))?r&&Gr===r?"scale"===e?mn:gn:(Gr=r||{})&&("scale"===e?_n:vn):t.style&&!G(t.style[e])?dn:~e.indexOf("-")?pn:xr(t,e)},core:{_removeProperty:zn,_getMatrix:$n}};Wr.utils.checkPrefix=Sn,Wr.core.getStyleSaver=On,hi=Pt((ui="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ci="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Qr[t]=1}),Pt(ci,function(t){F.units[t]="deg",Un[t]=1}),sn[hi[13]]=ui+","+ci,Pt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");sn[e[1]]=hi[e[0]]}),Pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){F.units[t]="px"}),Wr.registerPlugin(fi);var di=Wr.registerPlugin(fi)||Wr;function pi(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)}}di.core.Tween;
|
|
19
19
|
/*!
|
|
20
20
|
* Observer 3.15.0
|
|
21
21
|
* https://gsap.com
|
|
@@ -24,7 +24,7 @@ var Wr,qr,Hr,Ur,Vr,Gr,$r,Zr,Qr={},Kr=180/Math.PI,Jr=Math.PI/180,tn=Math.atan2,en
|
|
|
24
24
|
* Subject to the terms at https://gsap.com/standard-license
|
|
25
25
|
* @author: Jack Doyle, jack@greensock.com
|
|
26
26
|
*/
|
|
27
|
-
var gi,mi,_i,vi,yi,xi,bi,wi,Ti,Oi,Ci,ki,Ei,Si=function(){return gi||"undefined"!=typeof window&&(gi=window.gsap)&&gi.registerPlugin&&gi},Mi=1,Ai=[],Pi=[],Ri=[],Di=Date.now,zi=function(t,e){return e},Fi=function(t,e){return~Ri.indexOf(t)&&Ri[Ri.indexOf(t)+1][e]},Ni=function(t){return!!~Oi.indexOf(t)},Ii=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Bi=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Li="scrollLeft",ji="scrollTop",Yi=function(){return Ci&&Ci.isPressed||Pi.cache++},
|
|
27
|
+
var gi,mi,_i,vi,yi,xi,bi,wi,Ti,Oi,Ci,ki,Ei,Si=function(){return gi||"undefined"!=typeof window&&(gi=window.gsap)&&gi.registerPlugin&&gi},Mi=1,Ai=[],Pi=[],Ri=[],Di=Date.now,zi=function(t,e){return e},Fi=function(t,e){return~Ri.indexOf(t)&&Ri[Ri.indexOf(t)+1][e]},Ni=function(t){return!!~Oi.indexOf(t)},Ii=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Bi=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Li="scrollLeft",ji="scrollTop",Yi=function(){return Ci&&Ci.isPressed||Pi.cache++},Wi=function(t,e){var r=function r(n){if(n||0===n){Mi&&(_i.history.scrollRestoration="manual");var i=Ci&&Ci.isPressed;n=r.v=Math.round(n)||(Ci&&Ci.iOS?1:0),t(n),r.cacheID=Pi.cache,i&&zi("ss",n)}else(e||Pi.cache!==r.cacheID||zi("ref"))&&(r.cacheID=Pi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Xi={s:Li,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Wi(function(t){return arguments.length?_i.scrollTo(t,qi.sc()):_i.pageXOffset||vi[Li]||yi[Li]||xi[Li]||0})},qi={s:ji,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Xi,sc:Wi(function(t){return arguments.length?_i.scrollTo(Xi.sc(),t):_i.pageYOffset||vi[ji]||yi[ji]||xi[ji]||0})},Hi=function(t,e){return(e&&e._ctx&&e._ctx.selector||gi.utils.toArray)(t)[0]||("string"==typeof t&&!1!==gi.config().nullTargetWarn?console.warn("Element not found:",t):null)},Ui=function(t,e){var r=e.s,n=e.sc;Ni(t)&&(t=vi.scrollingElement||yi);var i=Pi.indexOf(t),s=n===qi.sc?1:2;!~i&&(i=Pi.push(t)-1),Pi[i+s]||Ii(t,"scroll",Yi);var a=Pi[i+s],o=a||(Pi[i+s]=Wi(Fi(t,r),!0)||(Ni(t)?n:Wi(function(e){return arguments.length?t[r]=e:t[r]})));return o.target=t,a||(o.smooth="smooth"===gi.getProperty(t,"scrollBehavior")),o},Vi=function(t,e,r){var n=t,i=t,s=Di(),a=s,o=e||50,l=Math.max(500,3*o),u=function(t,e){var l=Di();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=Di();return(t||0===t)&&t!==n&&u(t),s===a||c-a>l?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},Gi=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},$i=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Zi=function(){var t,e,r,n;(Ti=gi.core.globals().ScrollTrigger)&&Ti.core&&(t=Ti.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Pi),n.push.apply(n,Ri),Pi=r,Ri=n,zi=function(t,r){return e[t](r)})},Qi=function(t){return gi=t||Si(),!mi&&gi&&"undefined"!=typeof document&&document.body&&(_i=window,vi=document,yi=vi.documentElement,xi=vi.body,Oi=[_i,vi,yi,xi],gi.utils.clamp,Ei=gi.core.context||function(){},wi="onpointerenter"in xi?"pointer":"mouse",bi=Ki.isTouch=_i.matchMedia&&_i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in _i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ki=Ki.eventTypes=("ontouchstart"in yi?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in yi?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Mi=0},500),mi=1),Ti||Zi(),mi};Xi.op=qi,Pi.cache=0;var Ki=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){mi||Qi(gi)||console.warn("Please gsap.registerPlugin(Observer)"),Ti||Zi();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,h=t.wheelSpeed,f=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,C=t.onToggleX,k=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,N=t.onDisable,I=t.onClick,B=t.scrollSpeed,L=t.capture,j=t.allowClicks,Y=t.lockAxis,W=t.onLockAxis;this.target=i=Hi(i)||yi,this.vars=t,c&&(c=gi.utils.toArray(c)),e=e||1e-9,r=r||0,h=h||1,B=B||1,n=n||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(_i.getComputedStyle(xi).lineHeight)||22);var X,q,H,U,V,G,$,Z=this,Q=0,K=0,J=t.passive||!o&&!1!==t.passive,tt=Ui(i,Xi),et=Ui(i,qi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===ki[0],st=Ni(i),at=i.ownerDocument||vi,ot=[0,0,0],lt=[0,0,0],ut=0,ct=function(){return ut=Di()},ht=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)},ft=function(){var t=Z.deltaX=$i(ot),r=Z.deltaY=$i(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),C&&Z.deltaX<0!=Q<0&&C(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),k&&Z.deltaY<0!=K<0&&k(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)&&W&&W(Z),V&&(z(Z),V=!1),X=0},dt=function(t,e,r){ot[r]+=t,lt[r]+=e,Z._vx.update(t),Z._vy.update(e),a?X||(X=requestAnimationFrame(ft)):ft()},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?X||(X=requestAnimationFrame(ft)):ft()},gt=function(t){if(!ht(t,1)){var e=(t=Gi(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){ht(t,1)||t&&t.button||(Z.axis=$=null,q.pause(),Z.isPressed=!0,t=Gi(t),Q=K=0,Z.startX=Z.x=t.clientX,Z.startY=Z.y=t.clientY,Z._vx.reset(),Z._vy.reset(),Ii(P?i:at,ki[1],gt,J,!0),Z.deltaX=Z.deltaY=0,m&&m(Z))},_t=Z.onRelease=function(t){if(!ht(t,1)){Bi(P?i:at,ki[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=Gi(t);!n&&e&&(Z._vx.reset(),Z._vy.reset(),o&&j&&gi.delayedCall(.08,function(){if(Di()-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,_i,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&&q.restart(!0),H&&ft(),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(!ht(t)){var e=tt(),r=et();dt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,l&&q.restart(!0)}},bt=function(t){if(!ht(t)){t=Gi(t,o),z&&(V=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?_i.innerHeight:1)*h;dt(t.deltaX*e,t.deltaY*e,0),l&&!P&&q.restart(!0)}},wt=function(t){if(!ht(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&&q.restart(!0),(n||i)&&pt(n,i)}},Tt=function(t){Z.event=t,E(Z)},Ot=function(t){Z.event=t,S(Z)},Ct=function(t){return ht(t)||Gi(t,o)&&I(Z)};q=Z._dc=gi.delayedCall(u||.25,function(){Z._vx.reset(),Z._vy.reset(),q.pause(),l&&l(Z)}).pause(),Z.deltaX=Z.deltaY=0,Z._vx=Vi(0,50,!0),Z._vy=Vi(0,50,!0),Z.scrollX=tt,Z.scrollY=et,Z.isDragging=Z.isGesturing=Z.isPressed=!1,Ei(this),Z.enable=function(t){return Z.isEnabled||(Ii(st?at:i,"scroll",Yi),n.indexOf("scroll")>=0&&Ii(st?at:i,"scroll",xt,J,L),n.indexOf("wheel")>=0&&Ii(i,"wheel",bt,J,L),(n.indexOf("touch")>=0&&bi||n.indexOf("pointer")>=0)&&(Ii(i,ki[0],mt,J,L),Ii(at,ki[2],_t),Ii(at,ki[3],_t),j&&Ii(i,"click",ct,!0,!0),I&&Ii(i,"click",Ct),R&&Ii(at,"gesturestart",vt),D&&Ii(at,"gestureend",yt),E&&Ii(i,wi+"enter",Tt),S&&Ii(i,wi+"leave",Ot),M&&Ii(i,wi+"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&&(Ai.filter(function(t){return t!==Z&&Ni(t.target)}).length||Bi(st?at:i,"scroll",Yi),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),Bi(P?i:at,ki[1],gt,!0)),Bi(st?at:i,"scroll",xt,L),Bi(i,"wheel",bt,L),Bi(i,ki[0],mt,L),Bi(at,ki[2],_t),Bi(at,ki[3],_t),Bi(i,"click",ct,!0),Bi(i,"click",Ct),Bi(at,"gesturestart",vt),Bi(at,"gestureend",yt),Bi(i,wi+"enter",Tt),Bi(i,wi+"leave",Ot),Bi(i,wi+"move",wt),Z.isEnabled=Z.isPressed=Z.isDragging=!1,N&&N(Z))},Z.kill=Z.revert=function(){Z.disable();var t=Ai.indexOf(Z);t>=0&&Ai.splice(t,1),Ci===Z&&(Ci=0)},Ai.push(Z),P&&Ni(i)&&(Ci=Z),Z.enable(f)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&pi(e.prototype,r),n&&pi(e,n),t}();Ki.version="3.15.0",Ki.create=function(t){return new Ki(t)},Ki.register=Qi,Ki.getAll=function(){return Ai.slice()},Ki.getById=function(t){return Ai.filter(function(e){return e.vars.id===t})[0]},Si()&&gi.registerPlugin(Ki);
|
|
28
28
|
/*!
|
|
29
29
|
* ScrollTrigger 3.15.0
|
|
30
30
|
* https://gsap.com
|
|
@@ -33,7 +33,7 @@ var gi,mi,_i,vi,yi,xi,bi,wi,Ti,Oi,Ci,ki,Ei,Si=function(){return gi||"undefined"!
|
|
|
33
33
|
* Subject to the terms at https://gsap.com/standard-license
|
|
34
34
|
* @author: Jack Doyle, jack@greensock.com
|
|
35
35
|
*/
|
|
36
|
-
var 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,Cs,ks,Es,Ss,Ms,As,Ps,Rs,Ds,zs,Fs,Ns,Is=1,Bs=Date.now,Ls=Bs(),js=0,Ys=0,Xs=function(t,e,r){var n=ra(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Ws=function(t,e){return!e||ra(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},qs=function t(){return Ys&&requestAnimationFrame(t)},Hs=function(){return hs=1},Us=function(){return hs=0},Vs=function(t){return t},Gs=function(t){return Math.round(1e5*t)/1e5||0},$s=function(){return"undefined"!=typeof window},Zs=function(){return Ji||$s()&&(Ji=window.gsap)&&Ji.registerPlugin&&Ji},Qs=function(t){return!!~ss.indexOf(t)},Ks=function(t){return("Height"===t?Ms:es["inner"+t])||ns["client"+t]||is["client"+t]},Js=function(t){return Fi(t,"getBoundingClientRect")||(Qs(t)?function(){return po.width=es.innerWidth,po.height=Ms,po}:function(){return Ca(t)})},ta=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Fi(t,r))?s()-Js(t)()[i]:Qs(t)?(ns[r]||is[r])-Ks(n):t[r]-t["offset"+n])},ea=function(t,e){for(var r=0;r<_s.length;r+=3)(!e||~e.indexOf(_s[r+1]))&&t(_s[r],_s[r+1],_s[r+2])},ra=function(t){return"string"==typeof t},na=function(t){return"function"==typeof t},ia=function(t){return"number"==typeof t},sa=function(t){return"object"==typeof t},aa=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},oa=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)}},la=Math.abs,ua="left",ca="right",fa="bottom",ha="width",da="height",pa="Right",ga="Left",ma="Top",_a="Bottom",va="padding",ya="margin",xa="Width",ba="Height",wa="px",Ta=function(t){return es.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},Oa=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Ca=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==Ta(t)[ds]&&Ji.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},ka=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},Ea=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Sa=function(t){var e=Ji.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)}},Ma=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},Aa=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Pa=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Ra=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Da={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},za={toggleActions:"play",anticipatePin:0},Fa={top:0,left:0,center:.5,bottom:1,right:1},Na=function(t,e){if(ra(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 Fa?Fa[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ia=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=rs.createElement("div"),p=Qs(r)||"fixed"===Fi(r,"pinType"),g=-1!==t.indexOf("scroller"),m=p?is:"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===qi?ca:fa)+":"+(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],Ba(d,0,n,_),d},Ba=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+xa]=1,i["border"+a+xa]=0,i[r.p]=e+"px",Ji.set(t,i)},La=[],ja={},Ya=function(){return Bs()-js>34&&(Ds||(Ds=requestAnimationFrame(ao)))},Xa=function(){(!bs||!bs.isPressed||bs.startX>is.clientWidth)&&(Pi.cache++,bs?Ds||(Ds=requestAnimationFrame(ao)):ao(),js||Ga("scrollStart"),js=Bs())},Wa=function(){Os=es.innerWidth,Ts=es.innerHeight},qa=function(t){Pi.cache++,(!0===t||!fs&&!xs&&!rs.fullscreenElement&&!rs.webkitFullscreenElement&&(!ws||Os!==es.innerWidth||Math.abs(es.innerHeight-Ts)>.25*es.innerHeight))&&as.restart(!0)},Ha={},Ua=[],Va=function t(){return Pa(bo,"scrollEnd",t)||no(!0)},Ga=function(t){return Ha[t]&&Ha[t].map(function(t){return t()})||Ua},$a=[],Za=function(t){for(var e=0;e<$a.length;e+=5)(!t||$a[e+4]&&$a[e+4].query===t)&&($a[e].style.cssText=$a[e+1],$a[e].getBBox&&$a[e].setAttribute("transform",$a[e+2]||""),$a[e+3].uncache=1)},Qa=function(){return Pi.forEach(function(t){return na(t)&&++t.cacheID&&(t.rec=t())})},Ka=function(t,e){var r;for(ps=0;ps<La.length;ps++)!(r=La[ps])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));As=!0,e&&Za(e),e||Ga("revert")},Ja=function(t,e){Pi.cache++,(e||!zs)&&Pi.forEach(function(t){return na(t)&&t.cacheID++&&(t.rec=0)}),ra(t)&&(es.history.scrollRestoration=Es=t)},to=0,eo=function(){is.appendChild(Ss),Ms=!bs&&Ss.offsetHeight||es.innerHeight,is.removeChild(Ss)},ro=function(t){return os(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},no=function(t,e){if(ns=rs.documentElement,is=rs.body,ss=[es,rs,ns,is],!js||t||As){eo(),zs=bo.isRefreshing=!0,As||Qa();var r=Ga("refreshInit");vs&&bo.sort(),e||Ka(),Pi.forEach(function(t){na(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),La.slice(0).forEach(function(t){return t.refresh()}),As=!1,La.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()}}),Ps=1,ro(!0),La.forEach(function(t){var e=ta(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)}),ro(!1),Ps=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),Pi.forEach(function(t){na(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Ja(Es,1),as.pause(),to++,zs=2,ao(2),La.forEach(function(t){return na(t.vars.onRefresh)&&t.vars.onRefresh(t)}),zs=bo.isRefreshing=!1,Ga("refresh")}else Aa(bo,"scrollEnd",Va)},io=0,so=1,ao=function(t){if(2===t||!zs&&!As){bo.isUpdating=!0,Ns&&Ns.update(0);var e=La.length,r=Bs(),n=r-Ls>=50,i=e&&La[0].scroll();if(so=io>i?-1:1,zs||(io=i),n&&(js&&!hs&&r-js>200&&(js=0,Ga("scrollEnd")),us=Ls,Ls=r),so<0){for(ps=e;ps-- >0;)La[ps]&&La[ps].update(0,n);so=1}else for(ps=0;ps<e;ps++)La[ps]&&La[ps].update(0,n);bo.isUpdating=!1}Ds=0},oo=[ua,"top",fa,ca,ya+_a,ya+pa,ya+ma,ya+ga,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],lo=oo.concat([ha,da,"boxSizing","max"+xa,"max"+ba,"position",ya,va,va+ma,va+pa,va+_a,va+ga]),uo=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=oo.length,a=e.style,o=t.style;s--;)a[i=oo[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[fa]=o[ca]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[ha]=ka(t,Wi)+wa,a[da]=ka(t,qi)+wa,a[va]=o[ya]=o.top=o[ua]="0",fo(n),o[ha]=o["max"+xa]=r[ha],o[da]=o["max"+ba]=r[da],o[va]=r[va],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},co=/([A-Z])/g,fo=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Ji.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(co,"-$1").toLowerCase())}},ho=function(t){for(var e=lo.length,r=t.style,n=[],i=0;i<e;i++)n.push(lo[i],r[lo[i]]);return n.t=t,n},po={left:0,top:0},go=function(t,e,r,n,i,s,a,o,l,u,c,f,h,d){na(t)&&(t=t(o)),ra(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Na("0"+t.substr(3),r):0));var p,g,m,_=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),ia(t))h&&(t=Ji.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&Ba(a,r,n,!0);else{na(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");m=Hi(e,o)||is,(v=Ca(m)||{})&&(v.left||v.top)||"none"!==Ta(m).display||(b=m.style.display,m.style.display="block",v=Ca(m),b?m.style.display=b:m.style.removeProperty("display")),y=Na(w[0],v[n.d]),x=Na(w[1]||"0",r),t=v[n.p]-l[n.p]-u+y+i-x,a&&Ba(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,Ba(s,T,n,O&&T>20||!O&&(c?Math.max(is[p],ns[p]):s.parentNode[p])<=T+1),c&&(l=Ca(a),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+wa))}return h&&m&&(p=Ca(m),h.seek(f),g=Ca(m),h._caScrollDist=p[n.p]-g[n.p],t=t/h._caScrollDist*f),h&&h.seek(_),h?t:Math.round(t)},mo=/(webkit|moz|length|cssText|inset)/i,_o=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===is){for(i in t._stOrig=a.cssText,s=Ta(t))+i||mo.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;Ji.core.getCache(t).uncache=1,e.appendChild(t)}},vo=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)}},yo=function(t,e,r){var n={};n[e.p]="+="+r,Ji.set(t,n)},xo=function(t,e){var r=Ui(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=vo(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(){Pi.cache++,e.tween&&ao()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=Ji.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Aa(t,"wheel",r.wheelHandler),bo.isTouch&&Aa(t,"touchmove",r.wheelHandler),i},bo=function(){function t(e,r){ts||t.register(Ji)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ks(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Ys){var n,i,s,a,o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,F,N,I,B,L,j,Y,X,W,q,H=e=Oa(ra(e)||ia(e)||e.nodeType?{trigger:e}:e,za),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?Wi:qi,dt=!Q&&0!==Q,pt=Hi(e.scroller||es),gt=Ji.core.getCache(pt),mt=Qs(pt),_t="fixed"===("pinType"in e?e.pinType:Fi(pt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:za.markers,bt=mt?0:parseFloat(Ta(pt)["border"+ht.p2+xa])||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=Fi(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Ks(i):t["client"+i])||0}}(pt,mt,ht),Ct=function(t,e){return!e||~Ri.indexOf(t)?Js(t):function(){return po}}(pt,mt),kt=0,Et=0,St=0,Mt=Ui(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&&(vs=1,-9999===e.refreshPriority&&(Ns=wt)),gt.tweenScroll=gt.tweenScroll||{top:xo(pt,qi),left:xo(pt,Wi)},wt.tweenTo=n=gt.tweenScroll[ht.p],wt.scrubDuration=function(t){(F=ia(t)&&t)?z?z.duration(t):z=Ji.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&&(sa(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in is.style&&Ji.set(mt?[is,ns]:pt,{scrollBehavior:"auto"}),Pi.forEach(function(t){return na(t)&&t.target===(mt?rs.scrollingElement||ns:pt)&&(t.smooth=!1)}),s=na(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Ji.utils.snap(Ea(t),e)}}(r):"labelsDirectional"===at.snapTo?(X=r,function(t,e){return Sa(Ea(X))(t,e.direction)}):!1!==at.directional?function(t,e){return Sa(at.snapTo)(t,Bs()-Et<500?0:e.direction)}:Ji.utils.snap(at.snapTo),N=at.duration||{min:.1,max:2},N=sa(N)?ls(N.min,N.max):ls(N,N),I=Ji.delayedCall(at.delay||F/2||.1,function(){var t=Mt(),e=Bs()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||hs||kt===t)wt.isActive&&kt!==t&&I.restart(!0);else{var a,o,c=(t-l)/m,f=r&&!dt?r.totalProgress():c,h=e?0:(f-D)/(Bs()-us)*1e3||0,d=Ji.utils.clamp(-c,1-c,la(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),ia(a)||(a=p),o=Math.max(0,Math.round(l+a*m)),t<=u&&t>=l&&o!==t){if(i&&!i._initted&&i.data<=la(o-t))return;!1===at.inertia&&(d=a-c),n(o,{duration:N(la(.185*Math.max(la(p-f),la(a-f))/h/.05||0)),ease:at.ease||"power3",data:la(o-t),onInterrupt:function(){return I.restart(!0)&&v&&oa(wt,v)},onComplete:function(){wt.update(),kt=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&&oa(wt,y)}},t,d*m,o-t-d*m),_&&oa(wt,_,n.tween)}}}).pause()),G&&(ja[G]=wt),(Y=(K=wt.trigger=Hi(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(Y=Y(wt)),J=!0===J?K:Hi(J),ra(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===ya||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===Ta(J.parentNode).display)&&va),wt.pin=J,(i=Ji.core.getCache(J)).spacer?_=i.pinState:(lt&&((lt=Hi(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=ho(lt))),i.spacer=x=lt||rs.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=_=ho(J)),!1!==e.force3D&&Ji.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=Ta(J),k=P[tt+ht.os2],w=Ji.getProperty(J),T=Ji.quickSetter(J,ht.a,wa),uo(J,x,P),y=ho(J)),xt){p=sa(xt)?Oa(xt,Da):Da,h=Ia("scroller-start",G,pt,ht,p,0),d=Ia("scroller-end",G,pt,ht,p,0,h),b=h["offset"+ht.op.d2];var At=Hi(Fi(pt,"content")||pt);c=this.markerStart=Ia("start",G,At,ht,p,b,0,ut),f=this.markerEnd=Ia("end",G,At,ht,p,b,0,ut),ut&&(j=Ji.quickSetter([c,f],ht.a,wa)),_t||Ri.length&&!0===Fi(pt,"fixedMarkers")||(q=Ta(W=mt?is:pt).position,W.style.position="absolute"===q||"fixed"===q?q:"relative",Ji.set([h,d],{force3D:!0}),S=Ji.quickSetter(h,ht.a,wa),A=Ji.quickSetter(d,ht.a,wa))}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 La[La.indexOf(wt)-1]},wt.next=function(){return La[La.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=fs;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&&(fs=wt,wt.update(n)),!J||ot&&wt.isActive||(n?function(t,e,r){fo(r);var n=t._gsap;if(n.spacerIsNative)fo(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,_):uo(J,x,Ta(J),E)),n||wt.update(n),fs=i,wt.isReverted=n)},wt.refresh=function(i,s,p,b){if(!fs&&wt.enabled||s)if(J&&i&&js)Aa(t,"scrollEnd",Va);else{!zs&&Tt&&Tt(wt),fs=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,k,S,A,P,R,D,F,N,j,Y,X,W,q=Ot(),H=Ct(),U=ut?ut.duration():ta(pt,ht),V=m<=.01||!m,G=0,$=b||0,Q=sa(p)?p.end:e.end,rt=e.endTrigger||K,nt=sa(p)?p.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Hi(e.pinnedContainer,wt),st=K&&Math.max(0,La.indexOf(wt))||0,at=st;for(xt&&sa(p)&&(X=Ji.getProperty(h,ht.p),W=Ji.getProperty(d,ht.p));at-- >0;)(R=La[at]).end||R.refresh(0,1)||(fs=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(j||(j=[]),j.unshift(R),R.revert(!0,!0)),R!==La[at]&&(st--,at--);for(na(nt)&&(nt=nt(wt)),nt=Xs(nt,"start",wt),l=go(nt,K,q,ht,Mt(),c,h,wt,H,bt,_t,U,ut,wt._startClamp&&"_startClamp")||(J?-.001:0),na(Q)&&(Q=Q(wt)),ra(Q)&&!Q.indexOf("+=")&&(~Q.indexOf(" ")?Q=(ra(nt)?nt.split(" ")[0]:"")+Q:(G=Na(Q.substr(2),q),Q=ra(nt)?nt:(ut?Ji.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+G,rt=K)),Q=Xs(Q,"end",wt),u=Math.max(l,go(Q||(rt?"100% 0":U),rt,q,ht,Mt()+G,f,d,wt,H,bt,_t,U,ut,wt._endClamp&&"_endClamp"))||-.001,G=0,at=st;at--;)(D=(R=La[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&&!zs&&(wt._endClamp=u||-.001,u=Math.min(u,ta(pt,ht))),m=u-l||(l-=.01)&&.001,V&&(St=Ji.utils.clamp(0,1,Ji.utils.normalize(l,u,B))),wt._pinPush=$,c&&G&&((T={})[ht.a]="+="+G,it&&(T[ht.p]="-="+Mt()),Ji.set([c,f],T)),!J||Ps&&wt.end>=ta(pt,ht)){if(K&&Mt()&&!ut)for(k=K.parentNode;k&&k!==is;)k._pinOffset&&(l-=k._pinOffset,u-=k._pinOffset),k=k.parentNode}else T=Ta(J),A=ht===qi,S=Mt(),O=parseFloat(w(ht.a))+$,!U&&u>1&&(Y={style:Y=(mt?rs.scrollingElement||ns:pt).style,value:Y["overflow"+ht.a.toUpperCase()]},mt&&"scroll"!==Ta(is)["overflow"+ht.a.toUpperCase()]&&(Y.style["overflow"+ht.a.toUpperCase()]="scroll")),uo(J,x,T),y=ho(J),k=Ca(J,!0),F=_t&&Ui(pt,A?Wi:qi)(),tt?((E=[tt+ht.os2,m+$+wa]).t=x,(at=tt===va?ka(J,ht)+m+$:0)&&(E.push(ht.d,at+wa),"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+wa)),fo(E),it&&La.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),_t&&Mt(B)):(at=ka(J,ht))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+wa),_t&&((P={top:k.top+(A?S-l:F)+wa,left:k.left+(A?F:S-l)+wa,boxSizing:"border-box",position:"fixed"})[ha]=P["max"+xa]=Math.ceil(k.width)+wa,P[da]=P["max"+ba]=Math.ceil(k.height)+wa,P[ya]=P[ya+ma]=P[ya+pa]=P[ya+_a]=P[ya+ga]="0",P[va]=T[va],P[va+ma]=T[va+ma],P[va+pa]=T[va+pa],P[va+_a]=T[va+_a],P[va+ga]=T[va+ga],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),zs&&Mt(0)),r?(N=r._initted,ys(1),r.render(r.duration(),!0,!0),C=w(ht.a)-O+m+$,M=Math.abs(m-C)>1,_t&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),N||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ys(0)):C=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=zs?B:Mt(),ut||zs||(a<B&&Mt(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Bs(),I&&(kt=-1,I.restart(!0)),fs=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?Ji.utils.normalize(l,u,0):St,!0),wt.progress=V||(a-l)/m===St?0:St),J&&tt&&(x._pinOffset=Math.round(wt.progress*C)),z&&z.invalidate(),isNaN(X)||(X-=Ji.getProperty(h,ht.p),W-=Ji.getProperty(d,ht.p),yo(h,ht,X),yo(c,ht,X-(b||0)),yo(d,ht,W),yo(f,ht,W-(b||0))),V&&!zs&&wt.update(),!Z||zs||g||(g=!0,Z(wt),g=!1)}},wt.getVelocity=function(){return(Mt()-o)/(Bs()-us)*1e3||0},wt.endAnimation=function(){aa(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?dt||aa(r,wt.direction<0,1):aa(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=La.indexOf(wt),r=wt.direction>0?La.slice(0,e).reverse():La.slice(e+1);return(ra(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===zs?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&&!fs&&!Is&&js&&(!E&&l<b+(b-o)/(Bs()-us)*rt?E=1e-4:1===E&&u>b+(b-o)/(Bs()-us)*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&&!fs&&(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)&&(na(ft)?ft(wt):wt.getTrailing(ft).forEach(function(t){return t.endAnimation()})),dt||(!z||fs||Is?r&&r.totalProgress(E,!(!fs||!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]=k),_t){if(d){if(g=!t&&E>P&&u+1>b&&b+1>=ta(pt,ht),ot)if(t||!s&&!g)_o(J,x);else{var F=Ca(J,!0),N=b-l;_o(J,is,F.top+(ht===qi?N:0)+wa,F.left+(ht===qi?0:N)+wa)}fo(s||g?v:y),M&&E<1&&s||T(O+(1!==E||g?0:C))}}else T(Gs(O+C*E));at&&!n.tween&&!fs&&!Is&&I.restart(!0),V&&(p||st&&E&&(E<1||!Rs))&&os(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!dt&&!t&&U(wt),d&&!fs?(dt&&(_&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),U&&U(wt)),!p&&Rs||($&&p&&oa(wt,$),vt[c]&&oa(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),p||vt[c=1===E?1:3]&&oa(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(ia(ct)?ct:2500)&&(aa(wt.callbackAnimation),z?z.progress(1):aa(r,"reverse"===f?1:!E,1))):dt&&U&&!fs&&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,Aa(pt,"resize",qa),mt||Aa(pt,"scroll",Xa),Tt&&Aa(t,"refreshInit",Tt),!1!==e&&(wt.progress=St=0,a=o=kt=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:Ws(t,r&&!!wt._startClamp),end:Ws(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+wa,E[1]=parseFloat(E[1])+t+wa,fo(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&&Pa(t,"refreshInit",Tt),I&&(I.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=La.length;s--;)if(La[s].scroller===pt&&La[s]!==wt)return;Pa(pt,"resize",qa),mt||Pa(pt,"scroll",Xa)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete ja[G];var s=La.indexOf(wt);s>=0&&La.splice(s,1),s===ps&&so>0&&ps--,s=0,La.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||zs||(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)}),Ns===wt&&(Ns=0),J&&(i&&(i.uncache=1),s=0,La.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},La.push(wt),wt.enable(!1,!1),Y&&Y(wt),r&&r.add&&!m){var Dt=wt.update;wt.update=function(){wt.update=Dt,Pi.cache++,l||u||wt.refresh()},Ji.delayedCall(.01,wt.update),m=.01,l=u=0}else wt.refresh();J&&function(){if(Fs!==to){var t=Fs=to;requestAnimationFrame(function(){return t===to&&no(!0)})}}()}else this.update=this.refresh=this.kill=Vs},t.register=function(e){return ts||(Ji=e||Zs(),$s()&&window.document&&t.enable(),ts=Ys),ts},t.defaults=function(t){if(t)for(var e in t)za[e]=t[e];return za},t.disable=function(t,e){Ys=0,La.forEach(function(r){return r[e?"kill":"disable"](t)}),Pa(es,"wheel",Xa),Pa(rs,"scroll",Xa),clearInterval(cs),Pa(rs,"touchcancel",Vs),Pa(is,"touchstart",Vs),Ma(Pa,rs,"pointerdown,touchstart,mousedown",Hs),Ma(Pa,rs,"pointerup,touchend,mouseup",Us),as.kill(),ea(Pa);for(var r=0;r<Pi.length;r+=3)Ra(Pa,Pi[r],Pi[r+1]),Ra(Pa,Pi[r],Pi[r+2])},t.enable=function(){if(es=window,rs=document,ns=rs.documentElement,is=rs.body,Ji)if(os=Ji.utils.toArray,ls=Ji.utils.clamp,ks=Ji.core.context||Vs,ys=Ji.core.suppressOverwrites||Vs,Es=es.history.scrollRestoration||"auto",io=es.pageYOffset||0,Ji.core.globals("ScrollTrigger",t),is){Ys=1,(Ss=document.createElement("div")).style.height="100vh",Ss.style.position="absolute",eo(),qs(),Ki.register(Ji),t.isTouch=Ki.isTouch,Cs=Ki.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ws=1===Ki.isTouch,Aa(es,"wheel",Xa),ss=[es,rs,ns,is],Ji.matchMedia?(t.matchMedia=function(t){var e,r=Ji.matchMedia();for(e in t)r.add(e,t[e]);return r},Ji.addEventListener("matchMediaInit",function(){Qa(),Ka()}),Ji.addEventListener("matchMediaRevert",function(){return Za()}),Ji.addEventListener("matchMedia",function(){no(0,1),Ga("matchMedia")}),Ji.matchMedia().add("(orientation: portrait)",function(){return Wa(),Wa})):console.warn("Requires GSAP 3.11.0 or later"),Wa(),Aa(rs,"scroll",Xa);var e,r,n=is.hasAttribute("style"),i=is.style,s=i.borderTopStyle,a=Ji.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=Ca(is),qi.m=Math.round(e.top+qi.sc())||0,Wi.m=Math.round(e.left+Wi.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(is.setAttribute("style",""),is.removeAttribute("style")),cs=setInterval(Ya,250),Ji.delayedCall(.5,function(){return Is=0}),Aa(rs,"touchcancel",Vs),Aa(is,"touchstart",Vs),Ma(Aa,rs,"pointerdown,touchstart,mousedown",Hs),Ma(Aa,rs,"pointerup,touchend,mouseup",Us),ds=Ji.utils.checkPrefix("transform"),lo.push(ds),ts=Bs(),as=Ji.delayedCall(.2,no).pause(),_s=[rs,"visibilitychange",function(){var t=es.innerWidth,e=es.innerHeight;rs.hidden?(gs=t,ms=e):gs===t&&ms===e||qa()},rs,"DOMContentLoaded",no,es,"load",no,es,"resize",qa],ea(Aa),La.forEach(function(t){return t.enable(0,1)}),r=0;r<Pi.length;r+=3)Ra(Pa,Pi[r],Pi[r+1]),Ra(Pa,Pi[r],Pi[r+2])}else if(rs){rs.addEventListener("DOMContentLoaded",function e(){t.enable(),rs.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(Rs=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(cs)||(cs=r)&&setInterval(Ya,r),"ignoreMobileResize"in e&&(ws=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(ea(Pa)||ea(Aa,e.autoRefreshEvents||"none"),xs=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Hi(t),n=Pi.indexOf(r),i=Qs(r);~n&&Pi.splice(n,i?6:2),e&&(i?Ri.unshift(es,e,is,e,ns,e):Ri.unshift(r,e))},t.clearMatchMedia=function(t){La.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(ra(t)?Hi(t):t).getBoundingClientRect(),i=n[r?ha:da]*e||0;return r?n.right-i>0&&n.left+i<es.innerWidth:n.bottom-i>0&&n.top+i<es.innerHeight},t.positionInViewport=function(t,e,r){ra(t)&&(t=Hi(t));var n=t.getBoundingClientRect(),i=n[r?ha:da],s=null==e?i/2:e in Fa?Fa[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/es.innerWidth:(n.top+s)/es.innerHeight},t.killAll=function(t){if(La.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=Ha.killAll||[];Ha={},e.forEach(function(t){return t()})}},t}();bo.version="3.15.0",bo.saveStyles=function(t){return t?os(t).forEach(function(t){if(t&&t.style){var e=$a.indexOf(t);e>=0&&$a.splice(e,5),$a.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Ji.core.getCache(t),ks())}}):$a},bo.revert=function(t,e){return Ka(!t,e)},bo.create=function(t,e){return new bo(t,e)},bo.refresh=function(t){return t?qa(!0):(ts||bo.register())&&no(!0)},bo.update=function(t){return++Pi.cache&&ao(!0===t?2:0)},bo.clearScrollMemory=Ja,bo.maxScroll=function(t,e){return ta(t,e?Wi:qi)},bo.getScrollFunc=function(t,e){return Ui(Hi(t),e?Wi:qi)},bo.getById=function(t){return ja[t]},bo.getAll=function(){return La.filter(function(t){return"ScrollSmoother"!==t.vars.id})},bo.isScrolling=function(){return!!js},bo.snapDirectional=Sa,bo.addEventListener=function(t,e){var r=Ha[t]||(Ha[t]=[]);~r.indexOf(e)||r.push(e)},bo.removeEventListener=function(t,e){var r=Ha[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},bo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Ji.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)&&na(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return na(a)&&(a=a(),Aa(bo,"refresh",function(){return a=e.batchMax()})),os(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(bo.create(e))}),n};var wo,To=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},Oo=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Ki.isTouch?" pinch-zoom":""):"none",e===ns&&t(is,r)},Co={auto:1,scroll:1},ko=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Ji.core.getCache(s),o=Bs();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==is&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Co[(e=Ta(s)).overflowY]&&!Co[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Qs(s)&&(Co[(e=Ta(s)).overflowY]||Co[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Eo=function(t,e,r,n){return Ki.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&ko,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Aa(rs,Ki.eventTypes[0],Mo,!1,!0)},onDisable:function(){return Pa(rs,Ki.eventTypes[0],Mo,!0)}})},So=/(input|label|select|textarea)/i,Mo=function(t){var e=So.test(t.target.tagName);(e||wo)&&(t._gsapAllow=!0,wo=e)},Ao=function(t){sa(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=Hi(t.target)||ns,g=Ji.core.globals().ScrollSmoother,m=g&&g.get(),_=Cs&&(t.content&&Hi(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=Ui(p,qi),y=Ui(p,Wi),x=1,b=(Ki.isTouch&&es.visualViewport?es.visualViewport.scale*es.visualViewport.width:es.outerWidth)/es.innerWidth,w=0,T=na(f)?function(){return f(e)}:function(){return f||2.8},O=Eo(p,t.type,!0,h),C=function(){return i=!1},k=Vs,E=Vs,S=function(){r=ta(p,qi),E=ls(Cs?1:0,r),c&&(k=ls(0,ta(p,Wi))),n=to},M=function(){_._gsap.y=Gs(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 _&&Ji.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return Cs&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(C);var t=Gs(e.deltaY/2),r=E(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=Gs((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=Pi.cache,ao()}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=Gs((es.visualViewport&&es.visualViewport.scale||1)/b),s.pause(),t!==x&&Oo(p,x>1.01||!c&&"x"),a=y(),o=v(),S(),n=to},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){Pi.cache++;var n,i,a=T();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=To(y,n,i,ta(p,Wi)),s.vars.scrollX=k(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=To(v,n,i,ta(p,qi)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(Cs&&s.vars.scrollY>=r||n>=r-1)&&Ji.to({},{onUpdate:A,duration:a})}else l.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),Bs()-w>1e3&&(n=0,w=Bs())},t.onChange=function(t,e,r,i,s){if(to!==n&&S(),e&&c&&y(k(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)&&ao()},t.onEnable=function(){Oo(p,!c&&"x"),bo.addEventListener("refresh",A),Aa(es,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),O.enable()},t.onDisable=function(){Oo(p,!0),Pa(es,"resize",A),bo.removeEventListener("refresh",A),O.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Ki(t)).iOS=Cs,Cs&&!v()&&v(1),Cs&&Ji.ticker.add(Vs),l=e._dc,s=Ji.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:vo(v,v(),function(){return s.pause()})},onUpdate:ao,onComplete:l.vars.onComplete}),e};function Po({data:t,index:r}){return e("div",{className:""})}function Ro({scrollingElement:t,direction:l="normal",children:u=e("div",{children:"Nothing to Display, Please add some properly styled content"}),style:c,className:f,startAnimation:d="bottom",gsapScrollTrigger:p,scrollSpeed:g=1}){const m=n(),[_,v]=i(!1),[y,x]=i(0);return s(()=>{!function(){if(_)return;const t=function(){const t=m.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&&x(t),v(!0)}()},[]),a(()=>{const e=m.current;if(!e||!y)return;let r=di.context(()=>{var r,n;const i=t?document.querySelector(`${t}`):h(e,!0),s=null!==(r={normal:-y,reverse:y,backward:y}[l])&&void 0!==r?r:-y,a=null!==(n={top:"top top",within:`top ${(window.innerHeight-e.getBoundingClientRect().height)/2}px`,bottom:"bottom bottom"}[d])&&void 0!==n?n:d,o=di.quickTo(e,"x",{ease:"power3.out",duration:.2});bo.create(Object.assign({trigger:e,scroller:i,start:a,end:`+=${y/g}px`,pin:!0,scrub:!0,invalidateOnRefresh:!0,onUpdate:t=>{o(s*t.progress)}},p))},m);return()=>r.revert()},[y,l,d,g,t,p]),e("div",{ref:m,style:Object.assign({width:"100%",height:"auto",position:"relative",display:"flex",alignItems:"flex-start",justifyContent:""+("backward"==l?"flex-end":"flex-start"),flexDirection:""+("reverse"==l?"row-reverse":"row")},c),className:`${f} scroll_container`,children:r.Children.map(u,(t,r)=>e(o,{children:t},r))})}function Do(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())})}bo.sort=function(t){if(na(t))return La.sort(t);var e=es.pageYOffset||0;return bo.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+es.innerHeight}),La.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))})},bo.observe=function(t){return new Ki(t)},bo.normalizeScroll=function(t){if(void 0===t)return bs;if(!0===t&&bs)return bs.enable();if(!1===t)return bs&&bs.kill(),void(bs=t);var e=t instanceof Ki?t:Ao(t);return bs&&bs.target===e.target&&bs.kill(),Qs(e.target)&&(bs=e),e},bo.core={_getVelocityProp:Vi,_inputObserver:Eo,_scrollers:Pi,_proxies:Ri,bridge:{ss:function(){js||Ga("scrollStart"),js=Bs()},ref:function(){return fs}}},Zs()&&Ji.registerPlugin(bo),di.registerPlugin(bo),di.registerPlugin(bo),"function"==typeof SuppressedError&&SuppressedError;
|
|
36
|
+
var Ji,ts,es,rs,ns,is,ss,as,os,ls,us,cs,hs,fs,ds,ps,gs,ms,_s,vs,ys,xs,bs,ws,Ts,Os,Cs,ks,Es,Ss,Ms,As,Ps,Rs,Ds,zs,Fs,Ns,Is=1,Bs=Date.now,Ls=Bs(),js=0,Ys=0,Ws=function(t,e,r){var n=ra(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Xs=function(t,e){return!e||ra(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},qs=function t(){return Ys&&requestAnimationFrame(t)},Hs=function(){return fs=1},Us=function(){return fs=0},Vs=function(t){return t},Gs=function(t){return Math.round(1e5*t)/1e5||0},$s=function(){return"undefined"!=typeof window},Zs=function(){return Ji||$s()&&(Ji=window.gsap)&&Ji.registerPlugin&&Ji},Qs=function(t){return!!~ss.indexOf(t)},Ks=function(t){return("Height"===t?Ms:es["inner"+t])||ns["client"+t]||is["client"+t]},Js=function(t){return Fi(t,"getBoundingClientRect")||(Qs(t)?function(){return po.width=es.innerWidth,po.height=Ms,po}:function(){return Ca(t)})},ta=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Fi(t,r))?s()-Js(t)()[i]:Qs(t)?(ns[r]||is[r])-Ks(n):t[r]-t["offset"+n])},ea=function(t,e){for(var r=0;r<_s.length;r+=3)(!e||~e.indexOf(_s[r+1]))&&t(_s[r],_s[r+1],_s[r+2])},ra=function(t){return"string"==typeof t},na=function(t){return"function"==typeof t},ia=function(t){return"number"==typeof t},sa=function(t){return"object"==typeof t},aa=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},oa=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)}},la=Math.abs,ua="left",ca="right",ha="bottom",fa="width",da="height",pa="Right",ga="Left",ma="Top",_a="Bottom",va="padding",ya="margin",xa="Width",ba="Height",wa="px",Ta=function(t){return es.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},Oa=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Ca=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==Ta(t)[ds]&&Ji.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},ka=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},Ea=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Sa=function(t){var e=Ji.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)}},Ma=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},Aa=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Pa=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Ra=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Da={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},za={toggleActions:"play",anticipatePin:0},Fa={top:0,left:0,center:.5,bottom:1,right:1},Na=function(t,e){if(ra(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 Fa?Fa[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ia=function(t,e,r,n,i,s,a,o){var l=i.startColor,u=i.endColor,c=i.fontSize,h=i.indent,f=i.fontWeight,d=rs.createElement("div"),p=Qs(r)||"fixed"===Fi(r,"pinType"),g=-1!==t.indexOf("scroller"),m=p?is:"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:"+f+";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===qi?ca:ha)+":"+(s+parseFloat(h))+"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],Ba(d,0,n,_),d},Ba=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+xa]=1,i["border"+a+xa]=0,i[r.p]=e+"px",Ji.set(t,i)},La=[],ja={},Ya=function(){return Bs()-js>34&&(Ds||(Ds=requestAnimationFrame(ao)))},Wa=function(){(!bs||!bs.isPressed||bs.startX>is.clientWidth)&&(Pi.cache++,bs?Ds||(Ds=requestAnimationFrame(ao)):ao(),js||Ga("scrollStart"),js=Bs())},Xa=function(){Os=es.innerWidth,Ts=es.innerHeight},qa=function(t){Pi.cache++,(!0===t||!hs&&!xs&&!rs.fullscreenElement&&!rs.webkitFullscreenElement&&(!ws||Os!==es.innerWidth||Math.abs(es.innerHeight-Ts)>.25*es.innerHeight))&&as.restart(!0)},Ha={},Ua=[],Va=function t(){return Pa(bo,"scrollEnd",t)||no(!0)},Ga=function(t){return Ha[t]&&Ha[t].map(function(t){return t()})||Ua},$a=[],Za=function(t){for(var e=0;e<$a.length;e+=5)(!t||$a[e+4]&&$a[e+4].query===t)&&($a[e].style.cssText=$a[e+1],$a[e].getBBox&&$a[e].setAttribute("transform",$a[e+2]||""),$a[e+3].uncache=1)},Qa=function(){return Pi.forEach(function(t){return na(t)&&++t.cacheID&&(t.rec=t())})},Ka=function(t,e){var r;for(ps=0;ps<La.length;ps++)!(r=La[ps])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));As=!0,e&&Za(e),e||Ga("revert")},Ja=function(t,e){Pi.cache++,(e||!zs)&&Pi.forEach(function(t){return na(t)&&t.cacheID++&&(t.rec=0)}),ra(t)&&(es.history.scrollRestoration=Es=t)},to=0,eo=function(){is.appendChild(Ss),Ms=!bs&&Ss.offsetHeight||es.innerHeight,is.removeChild(Ss)},ro=function(t){return os(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},no=function(t,e){if(ns=rs.documentElement,is=rs.body,ss=[es,rs,ns,is],!js||t||As){eo(),zs=bo.isRefreshing=!0,As||Qa();var r=Ga("refreshInit");vs&&bo.sort(),e||Ka(),Pi.forEach(function(t){na(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),La.slice(0).forEach(function(t){return t.refresh()}),As=!1,La.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()}}),Ps=1,ro(!0),La.forEach(function(t){var e=ta(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)}),ro(!1),Ps=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),Pi.forEach(function(t){na(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Ja(Es,1),as.pause(),to++,zs=2,ao(2),La.forEach(function(t){return na(t.vars.onRefresh)&&t.vars.onRefresh(t)}),zs=bo.isRefreshing=!1,Ga("refresh")}else Aa(bo,"scrollEnd",Va)},io=0,so=1,ao=function(t){if(2===t||!zs&&!As){bo.isUpdating=!0,Ns&&Ns.update(0);var e=La.length,r=Bs(),n=r-Ls>=50,i=e&&La[0].scroll();if(so=io>i?-1:1,zs||(io=i),n&&(js&&!fs&&r-js>200&&(js=0,Ga("scrollEnd")),us=Ls,Ls=r),so<0){for(ps=e;ps-- >0;)La[ps]&&La[ps].update(0,n);so=1}else for(ps=0;ps<e;ps++)La[ps]&&La[ps].update(0,n);bo.isUpdating=!1}Ds=0},oo=[ua,"top",ha,ca,ya+_a,ya+pa,ya+ma,ya+ga,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],lo=oo.concat([fa,da,"boxSizing","max"+xa,"max"+ba,"position",ya,va,va+ma,va+pa,va+_a,va+ga]),uo=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=oo.length,a=e.style,o=t.style;s--;)a[i=oo[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[ha]=o[ca]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[fa]=ka(t,Xi)+wa,a[da]=ka(t,qi)+wa,a[va]=o[ya]=o.top=o[ua]="0",ho(n),o[fa]=o["max"+xa]=r[fa],o[da]=o["max"+ba]=r[da],o[va]=r[va],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},co=/([A-Z])/g,ho=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Ji.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(co,"-$1").toLowerCase())}},fo=function(t){for(var e=lo.length,r=t.style,n=[],i=0;i<e;i++)n.push(lo[i],r[lo[i]]);return n.t=t,n},po={left:0,top:0},go=function(t,e,r,n,i,s,a,o,l,u,c,h,f,d){na(t)&&(t=t(o)),ra(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?Na("0"+t.substr(3),r):0));var p,g,m,_=f?f.time():0;if(f&&f.seek(0),isNaN(t)||(t=+t),ia(t))f&&(t=Ji.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,h,t)),a&&Ba(a,r,n,!0);else{na(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");m=Hi(e,o)||is,(v=Ca(m)||{})&&(v.left||v.top)||"none"!==Ta(m).display||(b=m.style.display,m.style.display="block",v=Ca(m),b?m.style.display=b:m.style.removeProperty("display")),y=Na(w[0],v[n.d]),x=Na(w[1]||"0",r),t=v[n.p]-l[n.p]-u+y+i-x,a&&Ba(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,Ba(s,T,n,O&&T>20||!O&&(c?Math.max(is[p],ns[p]):s.parentNode[p])<=T+1),c&&(l=Ca(a),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+wa))}return f&&m&&(p=Ca(m),f.seek(h),g=Ca(m),f._caScrollDist=p[n.p]-g[n.p],t=t/f._caScrollDist*h),f&&f.seek(_),f?t:Math.round(t)},mo=/(webkit|moz|length|cssText|inset)/i,_o=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===is){for(i in t._stOrig=a.cssText,s=Ta(t))+i||mo.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;Ji.core.getCache(t).uncache=1,e.appendChild(t)}},vo=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)}},yo=function(t,e,r){var n={};n[e.p]="+="+r,Ji.set(t,n)},xo=function(t,e){var r=Ui(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,l){var u=e.tween,c=s.onComplete,h={};a=a||r();var f=vo(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=h,h[n]=function(){return f(a+o*u.ratio+l*u.ratio*u.ratio)},s.onUpdate=function(){Pi.cache++,e.tween&&ao()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=Ji.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Aa(t,"wheel",r.wheelHandler),bo.isTouch&&Aa(t,"touchmove",r.wheelHandler),i},bo=function(){function t(e,r){ts||t.register(Ji)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ks(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Ys){var n,i,s,a,o,l,u,c,h,f,d,p,g,m,_,v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,F,N,I,B,L,j,Y,W,X,q,H=e=Oa(ra(e)||ia(e)||e.nodeType?{trigger:e}:e,za),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,ht=H.preventOverlaps,ft=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Xi:qi,dt=!Q&&0!==Q,pt=Hi(e.scroller||es),gt=Ji.core.getCache(pt),mt=Qs(pt),_t="fixed"===("pinType"in e?e.pinType:Fi(pt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:za.markers,bt=mt?0:parseFloat(Ta(pt)["border"+ft.p2+xa])||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=Fi(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Ks(i):t["client"+i])||0}}(pt,mt,ft),Ct=function(t,e){return!e||~Ri.indexOf(t)?Js(t):function(){return po}}(pt,mt),kt=0,Et=0,St=0,Mt=Ui(pt,ft);if(wt._startClamp=wt._endClamp=!1,wt._dir=ft,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&&(vs=1,-9999===e.refreshPriority&&(Ns=wt)),gt.tweenScroll=gt.tweenScroll||{top:xo(pt,qi),left:xo(pt,Xi)},wt.tweenTo=n=gt.tweenScroll[ft.p],wt.scrubDuration=function(t){(F=ia(t)&&t)?z?z.duration(t):z=Ji.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&&(sa(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in is.style&&Ji.set(mt?[is,ns]:pt,{scrollBehavior:"auto"}),Pi.forEach(function(t){return na(t)&&t.target===(mt?rs.scrollingElement||ns:pt)&&(t.smooth=!1)}),s=na(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Ji.utils.snap(Ea(t),e)}}(r):"labelsDirectional"===at.snapTo?(W=r,function(t,e){return Sa(Ea(W))(t,e.direction)}):!1!==at.directional?function(t,e){return Sa(at.snapTo)(t,Bs()-Et<500?0:e.direction)}:Ji.utils.snap(at.snapTo),N=at.duration||{min:.1,max:2},N=sa(N)?ls(N.min,N.max):ls(N,N),I=Ji.delayedCall(at.delay||F/2||.1,function(){var t=Mt(),e=Bs()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||fs||kt===t)wt.isActive&&kt!==t&&I.restart(!0);else{var a,o,c=(t-l)/m,h=r&&!dt?r.totalProgress():c,f=e?0:(h-D)/(Bs()-us)*1e3||0,d=Ji.utils.clamp(-c,1-c,la(f/2)*f/.185),p=c+(!1===at.inertia?0:d),g=at,_=g.onStart,v=g.onInterrupt,y=g.onComplete;if(a=s(p,wt),ia(a)||(a=p),o=Math.max(0,Math.round(l+a*m)),t<=u&&t>=l&&o!==t){if(i&&!i._initted&&i.data<=la(o-t))return;!1===at.inertia&&(d=a-c),n(o,{duration:N(la(.185*Math.max(la(p-h),la(a-h))/f/.05||0)),ease:at.ease||"power3",data:la(o-t),onInterrupt:function(){return I.restart(!0)&&v&&oa(wt,v)},onComplete:function(){wt.update(),kt=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&&oa(wt,y)}},t,d*m,o-t-d*m),_&&oa(wt,_,n.tween)}}}).pause()),G&&(ja[G]=wt),(Y=(K=wt.trigger=Hi(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(Y=Y(wt)),J=!0===J?K:Hi(J),ra(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===ya||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===Ta(J.parentNode).display)&&va),wt.pin=J,(i=Ji.core.getCache(J)).spacer?_=i.pinState:(lt&&((lt=Hi(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=fo(lt))),i.spacer=x=lt||rs.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=_=fo(J)),!1!==e.force3D&&Ji.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=Ta(J),k=P[tt+ft.os2],w=Ji.getProperty(J),T=Ji.quickSetter(J,ft.a,wa),uo(J,x,P),y=fo(J)),xt){p=sa(xt)?Oa(xt,Da):Da,f=Ia("scroller-start",G,pt,ft,p,0),d=Ia("scroller-end",G,pt,ft,p,0,f),b=f["offset"+ft.op.d2];var At=Hi(Fi(pt,"content")||pt);c=this.markerStart=Ia("start",G,At,ft,p,b,0,ut),h=this.markerEnd=Ia("end",G,At,ft,p,b,0,ut),ut&&(j=Ji.quickSetter([c,h],ft.a,wa)),_t||Ri.length&&!0===Fi(pt,"fixedMarkers")||(q=Ta(X=mt?is:pt).position,X.style.position="absolute"===q||"fixed"===q?q:"relative",Ji.set([f,d],{force3D:!0}),S=Ji.quickSetter(f,ft.a,wa),A=Ji.quickSetter(d,ft.a,wa))}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 La[La.indexOf(wt)-1]},wt.next=function(){return La[La.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=hs;n!==wt.isReverted&&(n&&(B=Math.max(Mt(),wt.scroll.rec||0),St=wt.progress,L=r&&r.progress()),c&&[c,h,f,d].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(hs=wt,wt.update(n)),!J||ot&&wt.isActive||(n?function(t,e,r){ho(r);var n=t._gsap;if(n.spacerIsNative)ho(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,_):uo(J,x,Ta(J),E)),n||wt.update(n),hs=i,wt.isReverted=n)},wt.refresh=function(i,s,p,b){if(!hs&&wt.enabled||s)if(J&&i&&js)Aa(t,"scrollEnd",Va);else{!zs&&Tt&&Tt(wt),hs=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,k,S,A,P,R,D,F,N,j,Y,W,X,q=Ot(),H=Ct(),U=ut?ut.duration():ta(pt,ft),V=m<=.01||!m,G=0,$=b||0,Q=sa(p)?p.end:e.end,rt=e.endTrigger||K,nt=sa(p)?p.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Hi(e.pinnedContainer,wt),st=K&&Math.max(0,La.indexOf(wt))||0,at=st;for(xt&&sa(p)&&(W=Ji.getProperty(f,ft.p),X=Ji.getProperty(d,ft.p));at-- >0;)(R=La[at]).end||R.refresh(0,1)||(hs=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(j||(j=[]),j.unshift(R),R.revert(!0,!0)),R!==La[at]&&(st--,at--);for(na(nt)&&(nt=nt(wt)),nt=Ws(nt,"start",wt),l=go(nt,K,q,ft,Mt(),c,f,wt,H,bt,_t,U,ut,wt._startClamp&&"_startClamp")||(J?-.001:0),na(Q)&&(Q=Q(wt)),ra(Q)&&!Q.indexOf("+=")&&(~Q.indexOf(" ")?Q=(ra(nt)?nt.split(" ")[0]:"")+Q:(G=Na(Q.substr(2),q),Q=ra(nt)?nt:(ut?Ji.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+G,rt=K)),Q=Ws(Q,"end",wt),u=Math.max(l,go(Q||(rt?"100% 0":U),rt,q,ft,Mt()+G,h,d,wt,H,bt,_t,U,ut,wt._endClamp&&"_endClamp"))||-.001,G=0,at=st;at--;)(D=(R=La[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&&!zs&&(wt._endClamp=u||-.001,u=Math.min(u,ta(pt,ft))),m=u-l||(l-=.01)&&.001,V&&(St=Ji.utils.clamp(0,1,Ji.utils.normalize(l,u,B))),wt._pinPush=$,c&&G&&((T={})[ft.a]="+="+G,it&&(T[ft.p]="-="+Mt()),Ji.set([c,h],T)),!J||Ps&&wt.end>=ta(pt,ft)){if(K&&Mt()&&!ut)for(k=K.parentNode;k&&k!==is;)k._pinOffset&&(l-=k._pinOffset,u-=k._pinOffset),k=k.parentNode}else T=Ta(J),A=ft===qi,S=Mt(),O=parseFloat(w(ft.a))+$,!U&&u>1&&(Y={style:Y=(mt?rs.scrollingElement||ns:pt).style,value:Y["overflow"+ft.a.toUpperCase()]},mt&&"scroll"!==Ta(is)["overflow"+ft.a.toUpperCase()]&&(Y.style["overflow"+ft.a.toUpperCase()]="scroll")),uo(J,x,T),y=fo(J),k=Ca(J,!0),F=_t&&Ui(pt,A?Xi:qi)(),tt?((E=[tt+ft.os2,m+$+wa]).t=x,(at=tt===va?ka(J,ft)+m+$:0)&&(E.push(ft.d,at+wa),"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+wa)),ho(E),it&&La.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),_t&&Mt(B)):(at=ka(J,ft))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+wa),_t&&((P={top:k.top+(A?S-l:F)+wa,left:k.left+(A?F:S-l)+wa,boxSizing:"border-box",position:"fixed"})[fa]=P["max"+xa]=Math.ceil(k.width)+wa,P[da]=P["max"+ba]=Math.ceil(k.height)+wa,P[ya]=P[ya+ma]=P[ya+pa]=P[ya+_a]=P[ya+ga]="0",P[va]=T[va],P[va+ma]=T[va+ma],P[va+pa]=T[va+pa],P[va+_a]=T[va+_a],P[va+ga]=T[va+ga],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),zs&&Mt(0)),r?(N=r._initted,ys(1),r.render(r.duration(),!0,!0),C=w(ft.a)-O+m+$,M=Math.abs(m-C)>1,_t&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),N||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ys(0)):C=m,Y&&(Y.value?Y.style["overflow"+ft.a.toUpperCase()]=Y.value:Y.style.removeProperty("overflow-"+ft.a));j&&j.forEach(function(t){return t.revert(!1,!0)}),wt.start=l,wt.end=u,a=o=zs?B:Mt(),ut||zs||(a<B&&Mt(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Bs(),I&&(kt=-1,I.restart(!0)),hs=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?Ji.utils.normalize(l,u,0):St,!0),wt.progress=V||(a-l)/m===St?0:St),J&&tt&&(x._pinOffset=Math.round(wt.progress*C)),z&&z.invalidate(),isNaN(W)||(W-=Ji.getProperty(f,ft.p),X-=Ji.getProperty(d,ft.p),yo(f,ft,W),yo(c,ft,W-(b||0)),yo(d,ft,X),yo(h,ft,X-(b||0))),V&&!zs&&wt.update(),!Z||zs||g||(g=!0,Z(wt),g=!1)}},wt.getVelocity=function(){return(Mt()-o)/(Bs()-us)*1e3||0},wt.endAnimation=function(){aa(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?dt||aa(r,wt.direction<0,1):aa(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=La.indexOf(wt),r=wt.direction>0?La.slice(0,e).reverse():La.slice(e+1);return(ra(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,h,d,p,g,_,b=!0===zs?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&&!hs&&!Is&&js&&(!E&&l<b+(b-o)/(Bs()-us)*rt?E=1e-4:1===E&&u>b+(b-o)/(Bs()-us)*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&&!hs&&(c=E&&!P?0:1===E?1:1===P?2:3,dt&&(h=!p&&"none"!==yt[c+1]&&yt[c+1]||yt[c],_=r&&("complete"===h||"reset"===h||h in r))),ht&&(p||_)&&(_||Q||!r)&&(na(ht)?ht(wt):wt.getTrailing(ht).forEach(function(t){return t.endAnimation()})),dt||(!z||hs||Is?r&&r.totalProgress(E,!(!hs||!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+ft.os2]=k),_t){if(d){if(g=!t&&E>P&&u+1>b&&b+1>=ta(pt,ft),ot)if(t||!s&&!g)_o(J,x);else{var F=Ca(J,!0),N=b-l;_o(J,is,F.top+(ft===qi?N:0)+wa,F.left+(ft===qi?0:N)+wa)}ho(s||g?v:y),M&&E<1&&s||T(O+(1!==E||g?0:C))}}else T(Gs(O+C*E));at&&!n.tween&&!hs&&!Is&&I.restart(!0),V&&(p||st&&E&&(E<1||!Rs))&&os(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!dt&&!t&&U(wt),d&&!hs?(dt&&(_&&("complete"===h?r.pause().totalProgress(1):"reset"===h?r.restart(!0).pause():"restart"===h?r.restart(!0):r[h]()),U&&U(wt)),!p&&Rs||($&&p&&oa(wt,$),vt[c]&&oa(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),p||vt[c=1===E?1:3]&&oa(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(ia(ct)?ct:2500)&&(aa(wt.callbackAnimation),z?z.progress(1):aa(r,"reverse"===h?1:!E,1))):dt&&U&&!hs&&U(wt)}if(A){var L=ut?b/ut.duration()*(ut._caScrollDist||0):b;S(L+(f._isFlipped?1:0)),A(L)}j&&j(-b/ut.duration()*(ut._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,Aa(pt,"resize",qa),mt||Aa(pt,"scroll",Wa),Tt&&Aa(t,"refreshInit",Tt),!1!==e&&(wt.progress=St=0,a=o=kt=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:Xs(t,r&&!!wt._startClamp),end:Xs(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(E&&t){var e=E.indexOf(ft.d)+1;E[e]=parseFloat(E[e])+t+wa,E[1]=parseFloat(E[1])+t+wa,ho(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&&Pa(t,"refreshInit",Tt),I&&(I.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=La.length;s--;)if(La[s].scroller===pt&&La[s]!==wt)return;Pa(pt,"resize",qa),mt||Pa(pt,"scroll",Wa)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete ja[G];var s=La.indexOf(wt);s>=0&&La.splice(s,1),s===ps&&so>0&&ps--,s=0,La.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||zs||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,h,f,d].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),Ns===wt&&(Ns=0),J&&(i&&(i.uncache=1),s=0,La.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},La.push(wt),wt.enable(!1,!1),Y&&Y(wt),r&&r.add&&!m){var Dt=wt.update;wt.update=function(){wt.update=Dt,Pi.cache++,l||u||wt.refresh()},Ji.delayedCall(.01,wt.update),m=.01,l=u=0}else wt.refresh();J&&function(){if(Fs!==to){var t=Fs=to;requestAnimationFrame(function(){return t===to&&no(!0)})}}()}else this.update=this.refresh=this.kill=Vs},t.register=function(e){return ts||(Ji=e||Zs(),$s()&&window.document&&t.enable(),ts=Ys),ts},t.defaults=function(t){if(t)for(var e in t)za[e]=t[e];return za},t.disable=function(t,e){Ys=0,La.forEach(function(r){return r[e?"kill":"disable"](t)}),Pa(es,"wheel",Wa),Pa(rs,"scroll",Wa),clearInterval(cs),Pa(rs,"touchcancel",Vs),Pa(is,"touchstart",Vs),Ma(Pa,rs,"pointerdown,touchstart,mousedown",Hs),Ma(Pa,rs,"pointerup,touchend,mouseup",Us),as.kill(),ea(Pa);for(var r=0;r<Pi.length;r+=3)Ra(Pa,Pi[r],Pi[r+1]),Ra(Pa,Pi[r],Pi[r+2])},t.enable=function(){if(es=window,rs=document,ns=rs.documentElement,is=rs.body,Ji)if(os=Ji.utils.toArray,ls=Ji.utils.clamp,ks=Ji.core.context||Vs,ys=Ji.core.suppressOverwrites||Vs,Es=es.history.scrollRestoration||"auto",io=es.pageYOffset||0,Ji.core.globals("ScrollTrigger",t),is){Ys=1,(Ss=document.createElement("div")).style.height="100vh",Ss.style.position="absolute",eo(),qs(),Ki.register(Ji),t.isTouch=Ki.isTouch,Cs=Ki.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ws=1===Ki.isTouch,Aa(es,"wheel",Wa),ss=[es,rs,ns,is],Ji.matchMedia?(t.matchMedia=function(t){var e,r=Ji.matchMedia();for(e in t)r.add(e,t[e]);return r},Ji.addEventListener("matchMediaInit",function(){Qa(),Ka()}),Ji.addEventListener("matchMediaRevert",function(){return Za()}),Ji.addEventListener("matchMedia",function(){no(0,1),Ga("matchMedia")}),Ji.matchMedia().add("(orientation: portrait)",function(){return Xa(),Xa})):console.warn("Requires GSAP 3.11.0 or later"),Xa(),Aa(rs,"scroll",Wa);var e,r,n=is.hasAttribute("style"),i=is.style,s=i.borderTopStyle,a=Ji.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=Ca(is),qi.m=Math.round(e.top+qi.sc())||0,Xi.m=Math.round(e.left+Xi.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(is.setAttribute("style",""),is.removeAttribute("style")),cs=setInterval(Ya,250),Ji.delayedCall(.5,function(){return Is=0}),Aa(rs,"touchcancel",Vs),Aa(is,"touchstart",Vs),Ma(Aa,rs,"pointerdown,touchstart,mousedown",Hs),Ma(Aa,rs,"pointerup,touchend,mouseup",Us),ds=Ji.utils.checkPrefix("transform"),lo.push(ds),ts=Bs(),as=Ji.delayedCall(.2,no).pause(),_s=[rs,"visibilitychange",function(){var t=es.innerWidth,e=es.innerHeight;rs.hidden?(gs=t,ms=e):gs===t&&ms===e||qa()},rs,"DOMContentLoaded",no,es,"load",no,es,"resize",qa],ea(Aa),La.forEach(function(t){return t.enable(0,1)}),r=0;r<Pi.length;r+=3)Ra(Pa,Pi[r],Pi[r+1]),Ra(Pa,Pi[r],Pi[r+2])}else if(rs){rs.addEventListener("DOMContentLoaded",function e(){t.enable(),rs.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(Rs=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(cs)||(cs=r)&&setInterval(Ya,r),"ignoreMobileResize"in e&&(ws=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(ea(Pa)||ea(Aa,e.autoRefreshEvents||"none"),xs=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Hi(t),n=Pi.indexOf(r),i=Qs(r);~n&&Pi.splice(n,i?6:2),e&&(i?Ri.unshift(es,e,is,e,ns,e):Ri.unshift(r,e))},t.clearMatchMedia=function(t){La.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(ra(t)?Hi(t):t).getBoundingClientRect(),i=n[r?fa:da]*e||0;return r?n.right-i>0&&n.left+i<es.innerWidth:n.bottom-i>0&&n.top+i<es.innerHeight},t.positionInViewport=function(t,e,r){ra(t)&&(t=Hi(t));var n=t.getBoundingClientRect(),i=n[r?fa:da],s=null==e?i/2:e in Fa?Fa[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/es.innerWidth:(n.top+s)/es.innerHeight},t.killAll=function(t){if(La.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=Ha.killAll||[];Ha={},e.forEach(function(t){return t()})}},t}();bo.version="3.15.0",bo.saveStyles=function(t){return t?os(t).forEach(function(t){if(t&&t.style){var e=$a.indexOf(t);e>=0&&$a.splice(e,5),$a.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Ji.core.getCache(t),ks())}}):$a},bo.revert=function(t,e){return Ka(!t,e)},bo.create=function(t,e){return new bo(t,e)},bo.refresh=function(t){return t?qa(!0):(ts||bo.register())&&no(!0)},bo.update=function(t){return++Pi.cache&&ao(!0===t?2:0)},bo.clearScrollMemory=Ja,bo.maxScroll=function(t,e){return ta(t,e?Xi:qi)},bo.getScrollFunc=function(t,e){return Ui(Hi(t),e?Xi:qi)},bo.getById=function(t){return ja[t]},bo.getAll=function(){return La.filter(function(t){return"ScrollSmoother"!==t.vars.id})},bo.isScrolling=function(){return!!js},bo.snapDirectional=Sa,bo.addEventListener=function(t,e){var r=Ha[t]||(Ha[t]=[]);~r.indexOf(e)||r.push(e)},bo.removeEventListener=function(t,e){var r=Ha[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},bo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Ji.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)&&na(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return na(a)&&(a=a(),Aa(bo,"refresh",function(){return a=e.batchMax()})),os(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(bo.create(e))}),n};var wo,To=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},Oo=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Ki.isTouch?" pinch-zoom":""):"none",e===ns&&t(is,r)},Co={auto:1,scroll:1},ko=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Ji.core.getCache(s),o=Bs();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==is&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Co[(e=Ta(s)).overflowY]&&!Co[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Qs(s)&&(Co[(e=Ta(s)).overflowY]||Co[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Eo=function(t,e,r,n){return Ki.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&ko,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Aa(rs,Ki.eventTypes[0],Mo,!1,!0)},onDisable:function(){return Pa(rs,Ki.eventTypes[0],Mo,!0)}})},So=/(input|label|select|textarea)/i,Mo=function(t){var e=So.test(t.target.tagName);(e||wo)&&(t._gsapAllow=!0,wo=e)},Ao=function(t){sa(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,h=u.momentum,f=u.allowNestedScroll,d=u.onRelease,p=Hi(t.target)||ns,g=Ji.core.globals().ScrollSmoother,m=g&&g.get(),_=Cs&&(t.content&&Hi(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=Ui(p,qi),y=Ui(p,Xi),x=1,b=(Ki.isTouch&&es.visualViewport?es.visualViewport.scale*es.visualViewport.width:es.outerWidth)/es.innerWidth,w=0,T=na(h)?function(){return h(e)}:function(){return h||2.8},O=Eo(p,t.type,!0,f),C=function(){return i=!1},k=Vs,E=Vs,S=function(){r=ta(p,qi),E=ls(Cs?1:0,r),c&&(k=ls(0,ta(p,Xi))),n=to},M=function(){_._gsap.y=Gs(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 _&&Ji.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return Cs&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(C);var t=Gs(e.deltaY/2),r=E(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=Gs((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=Pi.cache,ao()}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=Gs((es.visualViewport&&es.visualViewport.scale||1)/b),s.pause(),t!==x&&Oo(p,x>1.01||!c&&"x"),a=y(),o=v(),S(),n=to},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){Pi.cache++;var n,i,a=T();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=To(y,n,i,ta(p,Xi)),s.vars.scrollX=k(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=To(v,n,i,ta(p,qi)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(Cs&&s.vars.scrollY>=r||n>=r-1)&&Ji.to({},{onUpdate:A,duration:a})}else l.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),Bs()-w>1e3&&(n=0,w=Bs())},t.onChange=function(t,e,r,i,s){if(to!==n&&S(),e&&c&&y(k(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],h=E(u);l&&u!==h&&(o+=h-u),v(h)}(r||e)&&ao()},t.onEnable=function(){Oo(p,!c&&"x"),bo.addEventListener("refresh",A),Aa(es,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),O.enable()},t.onDisable=function(){Oo(p,!0),Pa(es,"resize",A),bo.removeEventListener("refresh",A),O.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Ki(t)).iOS=Cs,Cs&&!v()&&v(1),Cs&&Ji.ticker.add(Vs),l=e._dc,s=Ji.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:vo(v,v(),function(){return s.pause()})},onUpdate:ao,onComplete:l.vars.onComplete}),e};function Po({data:t,index:r}){return e("div",{className:""})}function Ro({scrollingElement:t,direction:l="normal",children:u=e("div",{children:"Nothing to Display, Please add some properly styled content"}),style:c,className:h,startAnimation:d="bottom",gsapScrollTrigger:p,scrollSpeed:g=1}){const m=n(),[_,v]=i(!1),[y,x]=i(0);return s(()=>{!function(){if(_)return;const t=function(){const t=m.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&&x(t),v(!0)}()},[]),a(()=>{const e=m.current;if(!e||!y)return;let r=di.context(()=>{var r,n;const i=t?document.querySelector(`${t}`):f(e,!0),s=null!==(r={normal:-y,reverse:y,backward:y}[l])&&void 0!==r?r:-y,a=null!==(n={top:"top top",within:`top ${(window.innerHeight-e.getBoundingClientRect().height)/2}px`,bottom:"bottom bottom"}[d])&&void 0!==n?n:d,o=di.quickTo(e,"x",{ease:"power3.out",duration:.2});bo.create(Object.assign({trigger:e,scroller:i,start:a,end:`+=${y/g}px`,pin:!0,scrub:!0,invalidateOnRefresh:!0,onUpdate:t=>{o(s*t.progress)}},p))},m);return()=>r.revert()},[y,l,d,g,t,p]),e("div",{ref:m,style:Object.assign({width:"100%",height:"auto",position:"relative",display:"flex",alignItems:"flex-start",justifyContent:""+("backward"==l?"flex-end":"flex-start"),flexDirection:""+("reverse"==l?"row-reverse":"row")},c),className:`${h} scroll_container`,children:r.Children.map(u,(t,r)=>e(o,{children:t},r))})}function Do(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())})}bo.sort=function(t){if(na(t))return La.sort(t);var e=es.pageYOffset||0;return bo.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+es.innerHeight}),La.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))})},bo.observe=function(t){return new Ki(t)},bo.normalizeScroll=function(t){if(void 0===t)return bs;if(!0===t&&bs)return bs.enable();if(!1===t)return bs&&bs.kill(),void(bs=t);var e=t instanceof Ki?t:Ao(t);return bs&&bs.target===e.target&&bs.kill(),Qs(e.target)&&(bs=e),e},bo.core={_getVelocityProp:Vi,_inputObserver:Eo,_scrollers:Pi,_proxies:Ri,bridge:{ss:function(){js||Ga("scrollStart"),js=Bs()},ref:function(){return hs}}},Zs()&&Ji.registerPlugin(bo),di.registerPlugin(bo),di.registerPlugin(bo),"function"==typeof SuppressedError&&SuppressedError;
|
|
37
37
|
/*!
|
|
38
38
|
* @gsap/react 2.1.2
|
|
39
39
|
* https://gsap.com
|
|
@@ -51,5 +51,5 @@ let zo="undefined"!=typeof document?a:s,Fo=t=>t&&!Array.isArray(t)&&"object"==ty
|
|
|
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 jo,Yo,Xo,Wo="function"==typeof Symbol?Symbol():"_split",qo="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Ho=t=>t?"string"==typeof t?Ho(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Ho(e)):t.push(e),t),[]):[t]:[],Uo=t=>Ho(t).filter(t=>t&&1===t.nodeType),Vo=[],Go=function(){},$o={add:t=>t()},Zo=/\s+/g,Qo=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"),Ko={left:0,top:0,width:0,height:0},Jo=(t,e)=>{for(;++e<t.length&&t[e]===Ko;);return t[e]||Ko},tl=({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")},el=(t,e)=>{if(e){let r,n,i,s,a=new Set(t.join("").match(e)||Vo),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},rl=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),nl=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),il=(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},sl=(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,C,k,E,S,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,N=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),I=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(C=p.textContent||"",R?C=C.replace(Zo," "):N&&(C=C.replace(/\n/g,h+"\n")),D&&(C=D(C,t)),p.textContent=C,g=h||d?C.split(d||h):C.match(o)||Vo,E=g[g.length-1],v=f?" "===E.slice(-1):!E,E||g.pop(),F=z,_=f?" "===g[0].charAt(0):!g[0],_&&nl(" ",t,p),g[0]||g.shift(),el(g,l),s&&u||(p.textContent=""),y=1;y<=g.length;y++)if(k=g[y-1],!R&&N&&"\n"===k.charAt(0)&&(null==(c=p.previousSibling)||c.remove(),nl(document.createElement("br"),t,p),k=k.slice(1)),R||""!==k)if(" "===k)t.insertBefore(document.createTextNode(" "),p);else{if(f&&" "===k.charAt(0)&&nl(" ",t,p),I&&1===y&&!_&&B.indexOf(I.parentNode)>-1?(m=B[B.length-1],m.appendChild(document.createTextNode(n?"":k))):(m=r(n?"":k),nl(m,t,p),I&&1===y&&!_&&m.insertBefore(I,m.firstChild)),n)for(b=qo?el([...qo.segment(k)].map(t=>t.segment),l):k.match(o)||Vo,S=0;S<b.length;S++)m.appendChild(" "===b[S]?document.createTextNode(" "):n(b[S]));if(s&&u){if(C=p.textContent=C.substring(k.length+1,C.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&&rl(w)}F=x}(y<g.length||v)&&nl(y>=g.length?" ":f&&" "===k.slice(-1)?" "+h:h,t,p)}else nl(h,t,p);t.removeChild(p),I=0}else 1===p.nodeType&&(a&&a.indexOf(p)>-1?(B.indexOf(p.previousSibling)>-1&&B[B.length-1].appendChild(p),I=p):(sl(p,e,r,n,i,s,a,o,l,!0),I=0),i&&rl(p))};const al=class t{constructor(t,e){this.isSplit=!1,Xo||ol.register(window.gsap),this.elements=Uo(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[Wo])||r._data.orig.filter(({element:e})=>e===t).forEach(tl)),t[Wo]=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)})},Go(this),this.split(e)}split(t){return(this._ctx||$o).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+"|"+Qo.source,"gu"):Qo,m=!!t.ignore&&Uo(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?il("char",t,v):null,w=il("word",t,y);if(sl(e,t,w,b,d,i&&(c||d),m,g,p,!1),c){let r,n,i=Ho(e.childNodes),s=((t,e,r,n)=>{let i=il("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():Ko),c=Ko;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=Jo(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,Yo&&c&&o&&Yo.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==Yo||Yo.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(tl),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){jo=jo||t||window.gsap,jo&&(Ho=jo.utils.toArray,Go=jo.core.context||Go),!Xo&&window.innerWidth>0&&(Yo=document.fonts,Xo=!0)}};al.version="3.15.0";let ol=al;di.registerPlugin(ol,bo);const ll={Z_Text:function(t){const{text:a,scrollingElement:o,progression:l="char",animation:u="Fade",playOnScroll:c=!1,playInView:f=!1,controllerRef:m=null,style:_,className:v,children:y,delay:x=0,timeline:b,speed:w,gsapScrollTrigger:T,extendAnimation:O,watch:C=!1}=t,k=n(null),[E,S]=i(!1),[M,A]=i(0),P=c||f,R=null!=b?b:di.timeline({paused:P,delay:x});return m&&(m.current=R),s(()=>function(){if(!C)return;const t="string"==typeof C?document.querySelector(C):window;if(!t)return;const e=()=>A(t=>t+1);return t.addEventListener("resize",e),()=>{t.removeEventListener("resize",e)}}(),[C]),s(()=>{let t=!0;return function(){Do(this,void 0,void 0,function*(){yield document.fonts.ready,t&&S(!0)})}(),()=>t=!1},[]),Lo(function(){const t=k.current;if(!t||!E)return;const e=di.context(()=>{var e;const r=o?document.querySelector(`${o}`):h(".fade_textation_x"),n=ol.create(t,{type:"lines,words,chars",autoSplit:!0,linesClass:"line",wordsClass:"word",charsClass:"char"}),{chars:i,words:s,lines:a}=n,m=p(l,i,s,a,w,c),_=null!==(e=g[u])&&void 0!==e?e:g.Fade,v=Object.assign(Object.assign({},d(_,"from")),d(O,"from")),y=Object.assign(Object.assign({},d(_,"to")),d(O,"to"));R.set(m.set,v);"char_line"===l||"word_line"===l?m.animate.forEach(t=>{R.to(t.char,y,t.charIndexInLine*m.speed)}):R.to(m.animate,Object.assign(Object.assign({},y),{stagger:m.speed}),0);const x="function"==typeof T?T(R)||{}:T||{};c?bo.create(Object.assign({trigger:t,scroller:r,start:"top 85%",end:"top 35%",scrub:!0,animation:R},x)):f&&bo.create(Object.assign({trigger:t,scroller:r,start:"top bottom",onEnter:()=>R.restart(),onLeaveBack:()=>R.pause()},x))},k);return()=>e.revert()},{scope:k,dependencies:[E,M]}),r.isValidElement(y)?r.cloneElement(y,{ref:k,style:Object.assign(Object.assign({visibility:E?"visible":"hidden"},_),y.props.style),className:["fade_textation_x",y.props.className,v].filter(Boolean).join(" ")}):e("p",{className:`fade_textation_x ${v}`,style:Object.assign({visibility:E?"visible":"hidden"},_),ref:k,children:a})},VerticalScroll:Ro,Overlay_Text:function(o){const{text:p,children:g,textClass:m,textStyle:_,layerStyle:v,layerClass:y,containerStyle:x,containerClass:b,scrollingElement:w,trigger:T,timeline:O,stagger:C=.2,duration:k=1.5,layers:E=1,layerColor:S="white",RenderLayer:M=Po,animationOrder:A="normal",animation:P="VerticalReveal",extendAnimation:R,gsapScrollTrigger:D,controllerRef:z=null,useOpacity:F,animationDirection:N=0}=o,I=n(null),B=n(null),L=l(E),[j,Y]=i({eachWidth:"100%",lastWidth:"100%"}),X=O||di.timeline({});z&&(z.current=X);const W=u[P],{defaultGsap:q,animation_origins:H,animationStyles:U}=W;return s(()=>{const{eachWidth:t,lastWidth:e}=c(B,L.length);Y({eachWidth:t,lastWidth:e})},[]),a(()=>function(){const t=B.current;if(!t)return;const e=[...t.children],r="reverse"===A?[...e].reverse():"random"===A?f(e):e,n=di.context(()=>{const e=w?document.querySelector(`${w}`):h(t,!0);X.set(r,Object.assign(Object.assign({opacity:1},d(q,"from")),d(R,"from"))),X.to(r,Object.assign(Object.assign(Object.assign({opacity:F?0:1,stagger:C},d(q,"to")),{duration:k}),d(R,"to")));const n="function"==typeof D?D(X)||{}:D||{};"onscroll"===T&&bo.create(Object.assign({trigger:r,start:"top 65%",end:"top 30%",animation:X,scrub:!0,scroller:e},n)),"inview"===T&&bo.create(Object.assign({trigger:r,start:"top bottom",onEnter:()=>X.restart(),onLeaveBack:()=>X.pause(),animation:X,scroller:e},n))},e);return()=>{n.revert()}}(),[P,A,w,R,D,C,N,u,X]),t("div",{style:Object.assign({width:"auto",height:"auto",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",position:"relative"},x),className:`overlay_text_container ${b}`,children:[p?e("p",{ref:I,className:`text-parentz ${m}`,style:Object.assign({},_),children:p}):r.cloneElement(g,{ref:I,style:Object.assign(Object.assign({},g.props.style),_),className:[g.props.className,"text-parentz",m].filter(Boolean).join(" ")}),e("div",{ref:B,className:"text_overlay_container",style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,display:"flex",justifyContent:"flex-start",alignItems:"flex-start"},children:L.map((t,r)=>{const n=L.length-1===r,{eachWidth:i,lastWidth:s}=j;return e("div",{className:`each-overlay-block ${y}`,style:Object.assign(Object.assign({width:n?s:i,height:"100%",willChange:"transform",background:S,transformOrigin:"number"==typeof N?H[N]||"center":N,display:"flex",justifyContent:"center",alignItems:"center"},U),v),children:e(M,{data:t,index:r})},r)})})]})}};function ul(t){const{text:a,scrollingElement:o,progression:l="char",style:u,className:c,children:f,playOnScroll:h=!1,playInView:d=!1,delay:p=0,timeline:g,speed:m,gsapScrollTrigger:_,defaultAnimation:v,extendAnimation:y,watch:x=!1}=t,b=n(null),[w,T]=i(0),[O,C]=i(!1);return s(()=>{!function(){if(!x)return;("string"==typeof x?document.querySelector(x):window).addEventListener("resize",()=>{T(t=>t+1)})}()},[]),s(()=>{if("loaded"===document.fonts.status)C(!0);else{function t(){return Do(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{C(!0)}).catch(()=>{C(!0)})})}t()}},[]),Lo(function(){const t=b.current;if(!t||!O)return;const e=o?document.querySelector(`${o}`):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=ol.create(t,{type:"lines,words,chars",linesClass:"line",wordsClass:"word",charsClass:"char",autoSplit:!0}),{chars:n,lines:i,words:s}=r,a=function(){let t=n;if("char_line"===l){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"===l){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"==l?n:"word"==l?s:"line"==l?i:n;return{set:"char"==l?n:"word"==l?s:"line"==l?i:"char_line"==l?n:"word_line"==l?s:n,animate:t,speed_0:m||("char"==l?h?.005:.1:"word"==l?.35:"line"==l?.9:"char_line"==l?.08:"word_line"==l?.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 c=!(!h&&!d),f=g||di.timeline({paused:c,delay:p});f.set(a.set,Object.assign(Object.assign({opacity:0},u(v,"from")),u(y,"from")));const x=function(){if("object"==typeof _)return _;if("function"==typeof _)return _(f)||{};return{}}();return(t=>{t&&a.animate.forEach((e,r)=>{let n="char_line"===l||"word_line"===l,i=n?e.char:e;const s=n?e.charIndexInLine:r;t.to(i,Object.assign(Object.assign({opacity:1,ease:"power3.out"},u(v,"to")),u(y,"to")),s*a.speed_0)})})(f),h?bo.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:h,animation:f},x)):d&&bo.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>f.restart(),onLeaveBack:()=>f.pause()},x)),()=>{r.revert(),f.kill(),bo.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[O,w],scope:b}),r.isValidElement(f)?r.cloneElement(f,{ref:b,style:Object.assign(Object.assign({visibility:O?"visible":"hidden"},u),f.props.style),className:["fade_textation_x",f.props.className,c].filter(Boolean).join(" ")}):e("p",{className:`fade_textation_x ${c}`,style:Object.assign({visibility:O?"visible":"hidden"},u),ref:b,children:a})}di.registerPlugin(ol,bo);const cl={TextEngine:ul,TextFade:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1]}},t))},TextFadeSkew:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},t))},TextFadeSkew_2:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},t))},TextFadeDown:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},t))},TextFadeOverlay:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[.2,1]}},t))},VerticalScroll:Ro};function fl({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")}const{TextEngine:hl,TextFade:dl,TextFadeDown:pl,TextFadeSkew:gl,TextFadeSkew_2:ml,TextFadeOverlay:_l}=cl,{Z_Text:vl,VerticalScroll:yl,Overlay_Text:xl}=ll;export{xl as Overlay_Text,hl as TextEngine,dl as TextFade,pl as TextFadeDown,_l as TextFadeOverlay,gl as TextFadeSkew,ml as TextFadeSkew_2,yl as VerticalScroll,vl as Z_Text,fl as justSayHello};
|
|
54
|
+
let jo,Yo,Wo,Xo="function"==typeof Symbol?Symbol():"_split",qo="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Ho=t=>t?"string"==typeof t?Ho(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Ho(e)):t.push(e),t),[]):[t]:[],Uo=t=>Ho(t).filter(t=>t&&1===t.nodeType),Vo=[],Go=function(){},$o={add:t=>t()},Zo=/\s+/g,Qo=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"),Ko={left:0,top:0,width:0,height:0},Jo=(t,e)=>{for(;++e<t.length&&t[e]===Ko;);return t[e]||Ko},tl=({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")},el=(t,e)=>{if(e){let r,n,i,s,a=new Set(t.join("").match(e)||Vo),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},rl=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),nl=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),il=(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},sl=(t,e,r,n,i,s,a,o,l,u)=>{var c;let h,f,d,p,g,m,_,v,y,x,b,w,T,O,C,k,E,S,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,N=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),I=0,B=r.collection;for("object"==typeof P?(d=P.delimiter||P,f=P.replaceWith||""):f=""===P?"":P||" ",h=" "!==f;A<M.length;A++)if(p=M[A],3===p.nodeType){for(C=p.textContent||"",R?C=C.replace(Zo," "):N&&(C=C.replace(/\n/g,f+"\n")),D&&(C=D(C,t)),p.textContent=C,g=f||d?C.split(d||f):C.match(o)||Vo,E=g[g.length-1],v=h?" "===E.slice(-1):!E,E||g.pop(),F=z,_=h?" "===g[0].charAt(0):!g[0],_&&nl(" ",t,p),g[0]||g.shift(),el(g,l),s&&u||(p.textContent=""),y=1;y<=g.length;y++)if(k=g[y-1],!R&&N&&"\n"===k.charAt(0)&&(null==(c=p.previousSibling)||c.remove(),nl(document.createElement("br"),t,p),k=k.slice(1)),R||""!==k)if(" "===k)t.insertBefore(document.createTextNode(" "),p);else{if(h&&" "===k.charAt(0)&&nl(" ",t,p),I&&1===y&&!_&&B.indexOf(I.parentNode)>-1?(m=B[B.length-1],m.appendChild(document.createTextNode(n?"":k))):(m=r(n?"":k),nl(m,t,p),I&&1===y&&!_&&m.insertBefore(I,m.firstChild)),n)for(b=qo?el([...qo.segment(k)].map(t=>t.segment),l):k.match(o)||Vo,S=0;S<b.length;S++)m.appendChild(" "===b[S]?document.createTextNode(" "):n(b[S]));if(s&&u){if(C=p.textContent=C.substring(k.length+1,C.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&&rl(w)}F=x}(y<g.length||v)&&nl(y>=g.length?" ":h&&" "===k.slice(-1)?" "+f:f,t,p)}else nl(f,t,p);t.removeChild(p),I=0}else 1===p.nodeType&&(a&&a.indexOf(p)>-1?(B.indexOf(p.previousSibling)>-1&&B[B.length-1].appendChild(p),I=p):(sl(p,e,r,n,i,s,a,o,l,!0),I=0),i&&rl(p))};const al=class t{constructor(t,e){this.isSplit=!1,Wo||ol.register(window.gsap),this.elements=Uo(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[Xo])||r._data.orig.filter(({element:e})=>e===t).forEach(tl)),t[Xo]=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)})},Go(this),this.split(e)}split(t){return(this._ctx||$o).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,h=r.indexOf("chars")>-1,f=r.indexOf("words")>-1,d=h&&!f&&!c,p=l&&("push"in l?new RegExp("(?:"+l.join("|")+")","gu"):l),g=p?new RegExp(p.source+"|"+Qo.source,"gu"):Qo,m=!!t.ignore&&Uo(t.ignore),{orig:_,animTime:v,obs:y}=this._data;(h||f||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=h?il("char",t,v):null,w=il("word",t,y);if(sl(e,t,w,b,d,i&&(c||d),m,g,p,!1),c){let r,n,i=Ho(e.childNodes),s=((t,e,r,n)=>{let i=il("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():Ko),c=Ko;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=Jo(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(!f){for(a=0;a<y.length;a++)if(o=y[a],h||!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,Yo&&c&&o&&Yo.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==Yo||Yo.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(tl),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){jo=jo||t||window.gsap,jo&&(Ho=jo.utils.toArray,Go=jo.core.context||Go),!Wo&&window.innerWidth>0&&(Yo=document.fonts,Wo=!0)}};al.version="3.15.0";let ol=al;di.registerPlugin(ol,bo);const ll={Z_Text:function(t){const{text:a,scrollingElement:o,progression:l="char",animation:u="Fade",trigger:c,controllerRef:h=null,style:m,className:_,children:v,delay:y=0,timeline:x,speed:b,gsapScrollTrigger:w,extendAnimation:T,watch:O=!1}=t,C=n(null),[k,E]=i(!1),[S,M]=i(0),A="onscroll"===c,P="inview"===c,R=A||P,D=null!=x?x:di.timeline({paused:R,delay:y});return h&&(h.current=D),s(()=>function(){if(!O)return;const t="string"==typeof O?document.querySelector(O):window;if(!t)return;const e=()=>M(t=>t+1);return t.addEventListener("resize",e),()=>{t.removeEventListener("resize",e)}}(),[O]),s(()=>{let t=!0;return function(){Do(this,void 0,void 0,function*(){yield document.fonts.ready,t&&E(!0)})}(),()=>t=!1},[]),Lo(function(){if("none"===c)return;const t=C.current;if(!t||!k)return;const e=di.context(()=>{var e;const r=o?document.querySelector(`${o}`):f(t,!0),n=ol.create(t,{type:"lines,words,chars",autoSplit:!0,linesClass:"line",wordsClass:"word",charsClass:"char"}),{chars:i,words:s,lines:a}=n,c=p(l,i,s,a,b,A),h=null!==(e=g[u])&&void 0!==e?e:g.Fade,m=Object.assign(Object.assign({},d(h,"from")),d(T,"from")),_=Object.assign(Object.assign({},d(h,"to")),d(T,"to"));D.set(c.set,m);"char_line"===l||"word_line"===l?c.animate.forEach(t=>{D.to(t.char,_,t.charIndexInLine*c.speed)}):D.to(c.animate,Object.assign(Object.assign({},_),{stagger:c.speed}),0);const v="function"==typeof w?w(D)||{}:w||{};A?bo.create(Object.assign({trigger:t,scroller:r,start:"top 85%",end:"top 35%",scrub:!0,animation:D},v)):P&&bo.create(Object.assign({trigger:t,scroller:r,start:"top bottom",animation:D,onEnter:()=>D.restart(),onLeaveBack:()=>D.pause()},v))},C);return()=>e.revert()},{scope:C,dependencies:[k,S,c]}),r.isValidElement(v)?r.cloneElement(v,{ref:C,style:Object.assign(Object.assign({visibility:k?"visible":"hidden"},m),v.props.style),className:["fade_textation_x",v.props.className,_].filter(Boolean).join(" ")}):e("p",{className:`fade_textation_x ${_}`,style:Object.assign({visibility:k?"visible":"hidden"},m),ref:C,children:a})},VerticalScroll:Ro,Overlay_Text:function(o){const{text:p,children:g,textClass:m,textStyle:_,layerStyle:v,layerClass:y,containerStyle:x,containerClass:b,scrollingElement:w,trigger:T,timeline:O,stagger:C=.2,duration:k=1.5,layers:E=1,layerColor:S="white",RenderLayer:M=Po,animationOrder:A="normal",animation:P="VerticalReveal",animationDimension:R="y",extendAnimation:D,gsapScrollTrigger:z,controllerRef:F=null,useOpacity:N,animationDirection:I=0}=o,B=n(null),L=n(null),j=l(E),[Y,W]=i({eachWidth:"100%",lastWidth:"100%"}),[X,q]=i({eachWidth:"100%",lastWidth:"100%"}),H=O||di.timeline({});F&&(F.current=H);const U=u[P],{defaultGsap:V,animation_origins:G,animationStyles:$}=U;return s(()=>{if("y"==R){const{eachWidth:t,lastWidth:e}=c(L,j.length,"width");W({eachWidth:t,lastWidth:e})}else{const{eachWidth:t,lastWidth:e}=c(L,j.length,"height");q({eachWidth:t,lastWidth:e})}},[]),a(()=>function(){if("none"==T)return;const t=L.current;if(!t)return;const e=[...t.children],r="reverse"===A?[...e].reverse():"random"===A?h(e):e,n=di.context(()=>{const e=w?document.querySelector(`${w}`):f(t,!0);H.set(r,Object.assign(Object.assign({opacity:1},d(V,"from")),d(D,"from"))),H.to(r,Object.assign(Object.assign(Object.assign({opacity:N?0:1,stagger:C},d(V,"to")),{duration:k}),d(D,"to")));const n="function"==typeof z?z(H)||{}:z||{};"onscroll"===T&&bo.create(Object.assign({trigger:r,start:"top 65%",end:"top 30%",animation:H,scrub:!0,scroller:e},n)),"inview"===T&&bo.create(Object.assign({trigger:r,start:"top bottom",onEnter:()=>H.restart(),onLeaveBack:()=>H.pause(),animation:H,scroller:e},n))},e);return()=>{n.revert()}}(),[P,A,w,D,z,C,I,u,H,T]),t("div",{style:Object.assign({width:"auto",height:"auto",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",position:"relative"},x),className:`overlay_text_container ${b}`,children:[p?e("p",{ref:B,className:`text-parentz ${m}`,style:Object.assign({},_),children:p}):r.cloneElement(g,{ref:B,style:Object.assign(Object.assign({},g.props.style),_),className:[g.props.className,"text-parentz",m].filter(Boolean).join(" ")}),e("div",{ref:L,className:"text_overlay_container",style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,display:"flex",flexDirection:"y"==R?"row":"column",justifyContent:"flex-start",alignItems:"flex-start"},children:j.map((t,r)=>{const n=j.length-1===r,{eachWidth:i,lastWidth:s}=Y,a=X.eachWidth,o=X.lastWidth;return e("div",{className:`each-overlay-block ${y}`,style:Object.assign(Object.assign({height:"y"==R?"100%":n?o:a,width:"x"==R?"100%":n?s:i,willChange:"transform",background:S,transformOrigin:"number"==typeof I?G[I]||"center":I,display:"flex",justifyContent:"center",alignItems:"center"},$),v),children:e(M,{data:t,index:r})},r)})})]})}};function ul(t){const{text:a,scrollingElement:o,progression:l="char",style:u,className:c,children:h,playOnScroll:f=!1,playInView:d=!1,delay:p=0,timeline:g,speed:m,gsapScrollTrigger:_,defaultAnimation:v,extendAnimation:y,watch:x=!1}=t,b=n(null),[w,T]=i(0),[O,C]=i(!1);return s(()=>{!function(){if(!x)return;("string"==typeof x?document.querySelector(x):window).addEventListener("resize",()=>{T(t=>t+1)})}()},[]),s(()=>{if("loaded"===document.fonts.status)C(!0);else{function t(){return Do(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{C(!0)}).catch(()=>{C(!0)})})}t()}},[]),Lo(function(){const t=b.current;if(!t||!O)return;const e=o?document.querySelector(`${o}`):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=ol.create(t,{type:"lines,words,chars",linesClass:"line",wordsClass:"word",charsClass:"char",autoSplit:!0}),{chars:n,lines:i,words:s}=r,a=function(){let t=n;if("char_line"===l){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"===l){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"==l?n:"word"==l?s:"line"==l?i:n;return{set:"char"==l?n:"word"==l?s:"line"==l?i:"char_line"==l?n:"word_line"==l?s:n,animate:t,speed_0:m||("char"==l?f?.005:.1:"word"==l?.35:"line"==l?.9:"char_line"==l?.08:"word_line"==l?.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 c=!(!f&&!d),h=g||di.timeline({paused:c,delay:p});h.set(a.set,Object.assign(Object.assign({opacity:0},u(v,"from")),u(y,"from")));const x=function(){if("object"==typeof _)return _;if("function"==typeof _)return _(h)||{};return{}}();return(t=>{t&&a.animate.forEach((e,r)=>{let n="char_line"===l||"word_line"===l,i=n?e.char:e;const s=n?e.charIndexInLine:r;t.to(i,Object.assign(Object.assign({opacity:1,ease:"power3.out"},u(v,"to")),u(y,"to")),s*a.speed_0)})})(h),f?bo.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:f,animation:h},x)):d&&bo.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>h.restart(),onLeaveBack:()=>h.pause()},x)),()=>{r.revert(),h.kill(),bo.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[O,w],scope:b}),r.isValidElement(h)?r.cloneElement(h,{ref:b,style:Object.assign(Object.assign({visibility:O?"visible":"hidden"},u),h.props.style),className:["fade_textation_x",h.props.className,c].filter(Boolean).join(" ")}):e("p",{className:`fade_textation_x ${c}`,style:Object.assign({visibility:O?"visible":"hidden"},u),ref:b,children:a})}di.registerPlugin(ol,bo);const cl={TextEngine:ul,TextFade:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1]}},t))},TextFadeSkew:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},t))},TextFadeSkew_2:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},t))},TextFadeDown:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},t))},TextFadeOverlay:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[.2,1]}},t))},VerticalScroll:Ro};function hl({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")}const{TextEngine:fl,TextFade:dl,TextFadeDown:pl,TextFadeSkew:gl,TextFadeSkew_2:ml,TextFadeOverlay:_l}=cl,{Z_Text:vl,VerticalScroll:yl,Overlay_Text:xl}=ll;export{xl as Overlay_Text,fl as TextEngine,dl as TextFade,pl as TextFadeDown,_l as TextFadeOverlay,gl as TextFadeSkew,ml as TextFadeSkew_2,yl as VerticalScroll,vl as Z_Text,hl as justSayHello};
|
|
55
55
|
//# sourceMappingURL=index.mjs.map
|