mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
1 line
68 KiB
JavaScript
1 line
68 KiB
JavaScript
function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r,i,n,s,a,o,u,h,f,l,c,p,_,d,m,g,v,y,T,x,w,b,O,M,k,A,C,D,P,E,z,S,R={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},F={duration:.5,overwrite:!1,delay:0},L=1e8,I=1e-8,B=2*Math.PI,Y=B/4,X=0,N=Math.sqrt,U=Math.cos,q=Math.sin,V=function(t){return"string"==typeof t},j=function(t){return"function"==typeof t},W=function(t){return"number"==typeof t},G=function(t){return void 0===t},Q=function(t){return"object"==typeof t},H=function(t){return!1!==t},Z=function(){return"undefined"!=typeof window},$=function(t){return j(t)||V(t)},J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},K=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,st=/[^,'"\[\]\s]+/gi,at=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ot={},ut={},ht=function(t){return(ut=Yt(t,ot))&&Yr},ft=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},lt=function(t,e){return!e&&console.warn(t)},ct=function(t,e){return t&&(ot[t]=e)&&ut&&(ut[t]=e)||ot},pt=function(){return 0},_t={suppressEvents:!0,isStart:!0,kill:!1},dt={suppressEvents:!0,kill:!1},mt={suppressEvents:!0},gt={},vt=[],yt={},Tt={},xt={},wt=30,bt=[],Ot="",Mt=function(t){var e,r,i=t[0];if(Q(i)||j(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=bt.length;r--&&!bt[r].targetTest(i););e=bt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ke(t[r],e)))||t.splice(r,1);return t},kt=function(t){return t._gsap||Mt(me(t))[0]._gsap},At=function(t,e,r){return(r=t[e])&&j(r)?t[e]():G(r)&&t.getAttribute&&t.getAttribute(e)||r},Ct=function(t,e){return(t=t.split(",")).forEach(e)||t},Dt=function(t){return Math.round(1e5*t)/1e5||0},Pt=function(t){return Math.round(1e7*t)/1e7||0},Et=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i},zt=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r},St=function(){var t,e,r=vt.length,i=vt.slice(0);for(yt={},vt.length=0,t=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Rt=function(t){return!!(t._initted||t._startAt||t.add)},Ft=function(t,e,r,n){vt.length&&!i&&St(),t.render(e,r,!!(i&&e<0&&Rt(t))),vt.length&&!i&&St()},Lt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(st).length<2?e:V(t)?t.trim():t},It=function(t){return t},Bt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Yt=function(t,e){for(var r in e)t[r]=e[r];return t},Xt=function t(e,r){for(var i in r)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(e[i]=Q(r[i])?t(e[i]||(e[i]={}),r[i]):r[i]);return e},Nt=function(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i},Ut=function(t){var e,r=t.parent||s,i=t.keyframes?(e=K(t.keyframes),function(t,r){for(var i in r)i in t||"duration"===i&&e||"ease"===i||(t[i]=r[i])}):Bt;if(H(t.inherit))for(;r;)i(t,r.vars.defaults),r=r.parent||r._dp;return t},qt=function(t,e,r,i,n){var s,a=t[i];if(n)for(s=e[n];a&&a[n]>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[i]=e,e._prev=a,e.parent=e._dp=t,e},Vt=function(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},jt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Wt=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},Gt=function(t,e,r,n){return t._startAt&&(i?t._startAt.revert(dt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Qt=function t(e){return!e||e._ts&&t(e.parent)},Ht=function(t){return t._repeat?Zt(t._tTime,t=t.duration()+t._rDelay)*t:0},Zt=function(t,e){var r=Math.floor(t=Pt(t/e));return t&&r===t?r-1:r},$t=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Jt=function(t){return t._end=Pt(t._start+(t._tDur/Math.abs(t._ts||t._rts||I)||0))},Kt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Pt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Jt(t),r._dirty||Wt(r,t)),t},te=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=$t(t.rawTime(),e),(!e._dur||ce(0,e.totalDuration(),r)-e._tTime>I)&&e.render(r,!0)),Wt(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}},ee=function(t,e,r,i){return e.parent&&jt(e),e._start=Pt((W(r)?r:r||t!==s?he(t,r,e):t._time)+e._delay),e._end=Pt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),qt(t,e,"_first","_last",t._sort?"_start":0),se(e)||(t._recent=e),i||te(t,e),t._ts<0&&Kt(t,t._tTime),t},re=function(t,e){return(ot.ScrollTrigger||ft("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)},ie=function(t,e,r,n,s){return or(t,e,s),t._initted?!r&&t._pt&&!i&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Xe.frame?(vt.push(t),t._lazy=[s,n],1):void 0:1},ne=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},se=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ae=function(t,e,r,i){var n=t._repeat,s=Pt(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:Pt(s*(n+1)+t._rDelay*n):s,a>0&&!i&&Kt(t,t._tTime=t._tDur*a),t.parent&&Jt(t),r||Wt(t.parent,t),t},oe=function(t){return t instanceof er?Wt(t):ae(t,t._dur)},ue={_start:0,endTime:pt,totalDuration:pt},he=function t(e,r,i){var n,s,a,o=e.labels,u=e._recent||ue,h=e.duration()>=L?u.endTime(!1):e._dur;return V(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),n=r.indexOf("="),"<"===s||">"===s?(n>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(n<0?u:i).totalDuration()/100:1)):n<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(n-1)+r.substr(n+1)),a&&i&&(s=s/100*(K(i)?i[0]:i).totalDuration()),n>1?t(e,r.substr(0,n-1),i)+s:h+s)):null==r?h:+r},fe=function(t,e,r){var i,n,s=W(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=H(n.vars.inherit)&&n.parent;o.immediateRender=H(i.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new cr(e[0],o,e[a+1])},le=function(t,e){return t||0===t?e(t):e},ce=function(t,e,r){return r<t?t:r>e?e:r},pe=function(t,e){return V(t)&&(e=at.exec(t))?e[1]:""},_e=[].slice,de=function(t,e){return t&&Q(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Q(t[0]))&&!t.nodeType&&t!==a},me=function(t,e,r){return n&&!e&&n.selector?n.selector(t):!V(t)||r||!o&&Ne()?K(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var i;return V(t)&&!e||de(t,1)?(i=r).push.apply(i,me(t)):r.push(t)})||r}(t,r):de(t)?_e.call(t,0):t?[t]:[]:_e.call((e||u).querySelectorAll(t),0)},ge=function(t){return t=me(t)[0]||lt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return me(e,r.querySelectorAll?r:r===t?lt("Invalid scope")||u.createElement("div"):t)}},ve=function(t){return t.sort(function(){return.5-Math.random()})},ye=function(t){if(j(t))return t;var e=Q(t)?t:{each:t},r=Qe(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},a=i>0&&i<1,o=isNaN(i)||a,u=e.axis,h=i,f=i;return V(i)?h=f={center:.5,edges:.5,end:1}[i]||0:!a&&o&&(h=i[0],f=i[1]),function(t,a,l){var c,p,_,d,m,g,v,y,T,x=(l||e).length,w=s[x];if(!w){if(!(T="auto"===e.grid?0:(e.grid||[1,L])[1])){for(v=-1e8;v<(v=l[T++].getBoundingClientRect().left)&&T<x;);T<x&&T--}for(w=s[x]=[],c=o?Math.min(T,x)*h-.5:i%T,p=T===L?0:o?x*f/T-.5:i/T|0,v=0,y=L,g=0;g<x;g++)_=g%T-c,d=p-(g/T|0),w[g]=m=u?Math.abs("y"===u?d:_):N(_*_+d*d),m>v&&(v=m),m<y&&(y=m);"random"===i&&ve(w),w.max=v-y,w.min=y,w.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(T>x?x-1:u?"y"===u?x/T:T:Math.max(T,x/T))||0)*("edges"===i?-1:1),w.b=x<0?n-x:n,w.u=pe(e.amount||e.each)||0,r=r&&x<0?We(r):r}return x=(w[t]-w.min)/w.max||0,Pt(w.b+(r?r(x):x)*w.v)+w.u}},Te=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=Pt(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(W(r)?0:pe(r))}},xe=function(t,e){var r,i,n=K(t);return!n&&Q(t)&&(r=n=t.radius||L,t.values?(t=me(t.values),(i=!W(t[0]))&&(r*=r)):t=Te(t.increment)),le(e,n?j(t)?function(e){return i=t(e),Math.abs(i-e)<=r?i:e}:function(e){for(var n,s,a=parseFloat(i?e.x:e),o=parseFloat(i?e.y:0),u=L,h=0,f=t.length;f--;)(n=i?(n=t[f].x-a)*n+(s=t[f].y-o)*s:Math.abs(t[f]-a))<u&&(u=n,h=f);return h=!r||u<=r?t[h]:e,i||h===e||W(e)?h:h+pe(e)}:Te(t))},we=function(t,e,r,i){return le(K(t)?!e:!0===r?!!(r=0):!i,function(){return K(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})},be=function(t,e,r){return le(r,function(r){return t[~~e(r)]})},Oe=function(t){for(var e,r,i,n,s=0,a="";~(e=t.indexOf("random(",s));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?st:tt),a+=t.substr(s,e-s)+we(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),s=i+1;return a+t.substr(s,t.length-s)},Me=function(t,e,r,i,n){var s=e-t,a=i-r;return le(n,function(e){return r+((e-t)/s*a||0)})},ke=function(t,e,r){var i,n,s,a=t.labels,o=L;for(i in a)(n=a[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(s=i,o=n);return s},Ae=function(t,e,r){var i,s,a,o=t.vars,u=o[e],h=n,f=t._ctx;if(u)return i=o[e+"Params"],s=o.callbackScope||t,r&&vt.length&&St(),f&&(n=f),a=i?u.apply(s,i):u.call(s),n=h,a},Ce=function(t){return jt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!i),t.progress()<1&&Ae(t,"onInterrupt"),t},De=[],Pe=function(t){if(t)if(t=!t.name&&t.default||t,Z()||t.headless){var e=t.name,r=j(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:pt,render:xr,add:sr,kill:br,modifier:wr,rawVars:0},s={targetTest:0,get:0,getSetter:gr,aliases:{},register:0};if(Ne(),t!==i){if(Tt[e])return;Bt(i,Bt(Nt(t,n),s)),Yt(i.prototype,Yt(n,Nt(t,s))),Tt[i.prop=e]=i,t.targetTest&&(bt.push(i),gt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ct(e,i),t.register&&t.register(Yr,i,kr)}else De.push(t)},Ee=255,ze={aqua:[0,Ee,Ee],lime:[0,Ee,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ee],navy:[0,0,128],white:[Ee,Ee,Ee],olive:[128,128,0],yellow:[Ee,Ee,0],orange:[Ee,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ee,0,0],pink:[Ee,192,203],cyan:[0,Ee,Ee],transparent:[Ee,Ee,Ee,0]},Se=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)*Ee+.5|0},Re=function(t,e,r){var i,n,s,a,o,u,h,f,l,c,p=t?W(t)?[t>>16,t>>8&Ee,t&Ee]:0:ze.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ze[t])p=ze[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+i+i+n+n+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Ee,p&Ee,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ee,t&Ee]}else if("hsl"===t.substr(0,3))if(p=c=t.match(tt),e){if(~t.indexOf("="))return p=t.match(et),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,i=2*(u=+p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=Se(a+1/3,i,n),p[1]=Se(a,i,n),p[2]=Se(a-1/3,i,n);else p=t.match(tt)||ze.transparent;p=p.map(Number)}return e&&!c&&(i=p[0]/Ee,n=p[1]/Ee,s=p[2]/Ee,u=((h=Math.max(i,n,s))+(f=Math.min(i,n,s)))/2,h===f?a=o=0:(l=h-f,o=u>.5?l/(2-h-f):l/(h+f),a=h===i?(n-s)/l+(n<s?6:0):h===n?(s-i)/l+2:(i-n)/l+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p},Fe=function(t){var e=[],r=[],i=-1;return t.split(Ie).forEach(function(t){var n=t.match(rt)||[];e.push.apply(e,n),r.push(i+=n.length+1)}),e.c=r,e},Le=function(t,e,r){var i,n,s,a,o="",u=(t+o).match(Ie),h=e?"hsla(":"rgba(",f=0;if(!u)return t;if(u=u.map(function(t){return(t=Re(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Fe(t),(i=r.c).join(o)!==s.c.join(o)))for(a=(n=t.replace(Ie,"1").split(rt)).length-1;f<a;f++)o+=n[f]+(~i.indexOf(f)?u.shift()||h+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!n)for(a=(n=t.split(Ie)).length-1;f<a;f++)o+=n[f]+u[f];return o+n[a]},Ie=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ze)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Be=/hsl[a]?\(/,Ye=function(t){var e,r=t.join(" ");if(Ie.lastIndex=0,Ie.test(r))return e=Be.test(r),t[1]=Le(t[1],e),t[0]=Le(t[0],e,Fe(t[1])),!0},Xe=(y=Date.now,T=500,x=33,w=y(),b=w,M=O=1e3/240,A=function t(e){var r,i,n,s,a=y()-b,o=!0===e;if((a>T||a<0)&&(w+=a-x),((r=(n=(b+=a)-w)-M)>0||o)&&(s=++m.frame,g=n-1e3*m.time,m.time=n/=1e3,M+=r+(r>=O?4:O-r),i=1),o||(p=_(t)),i)for(v=0;v<k.length;v++)k[v](n,g,s,e)},m={time:0,frame:0,tick:function(){A(!0)},deltaRatio:function(t){return g/(1e3/(t||60))},wake:function(){h&&(!o&&Z()&&(a=o=window,u=a.document||{},ot.gsap=Yr,(a.gsapVersions||(a.gsapVersions=[])).push(Yr.version),ht(ut||a.GreenSockGlobals||!a.gsap&&a||{}),De.forEach(Pe)),d="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,p&&m.sleep(),_=d||function(t){return setTimeout(t,M-1e3*m.time+1|0)},c=1,A(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(p),c=0,_=pt},lagSmoothing:function(t,e){T=t||1/0,x=Math.min(e||33,T)},fps:function(t){O=1e3/(t||240),M=1e3*m.time+O},add:function(t,e,r){var i=e?function(e,r,n,s){t(e,r,n,s),m.remove(i)}:t;return m.remove(t),k[r?"unshift":"push"](i),Ne(),i},remove:function(t,e){~(e=k.indexOf(t))&&k.splice(e,1)&&v>=e&&v--},_listeners:k=[]}),Ne=function(){return!c&&Xe.wake()},Ue={},qe=/^[\d.\-M][\d.\-,\s]/,Ve=/["']/g,je=function(t){for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[a]=isNaN(i)?i.replace(Ve,"").trim():+i,a=r.substr(e+1).trim();return n},We=function(t){return function(e){return 1-t(1-e)}},Ge=function t(e,r){for(var i,n=e._first;n;)n instanceof er?t(n,r):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===r||(n.timeline?t(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},Qe=function(t,e){return t&&(j(t)?t:Ue[t]||function(t){var e,r,i,n,s=(t+"").split("("),a=Ue[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[je(s[1])]:(e=t,r=e.indexOf("(")+1,i=e.indexOf(")"),n=e.indexOf("(",r),e.substring(r,~n&&n<i?e.indexOf(")",i+1):i)).split(",").map(Lt)):Ue._CE&&qe.test(t)?Ue._CE("",t):a}(t))||e},He=function(t,e,r,i){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===i&&(i=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,s={easeIn:e,easeOut:r,easeInOut:i};return Ct(t,function(t){for(var e in Ue[t]=ot[t]=s,Ue[n=t.toLowerCase()]=r,s)Ue[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ue[t+"."+e]=s[e]}),s},Ze=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},$e=function t(e,r,i){var n=r>=1?r:1,s=(i||(e?.3:.45))/(r<1?r:1),a=s/B*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*q((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ze(o);return s=B/s,u.config=function(r,i){return t(e,r,i)},u},Je=function t(e,r){void 0===r&&(r=1.70158);var i=function(t){return t?--t*t*((r+1)*t+r)+1:0},n="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Ze(i);return n.config=function(r){return t(e,r)},n};Ct("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;He(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,He("Elastic",$e("in"),$e("out"),$e()),C=7.5625,E=2*(P=1/(D=2.75)),z=2.5*P,He("Bounce",function(t){return 1-S(1-t)},S=function(t){return t<P?C*t*t:t<E?C*Math.pow(t-1.5/D,2)+.75:t<z?C*(t-=2.25/D)*t+.9375:C*Math.pow(t-2.625/D,2)+.984375}),He("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),He("Circ",function(t){return-(N(1-t*t)-1)}),He("Sine",function(t){return 1===t?1:1-U(t*Y)}),He("Back",Je("in"),Je("out"),Je()),Ue.SteppedEase=Ue.steps=ot.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*ce(0,.99999999,t)|0)+n)*r}}},F.ease=Ue["quad.out"],Ct("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Ot+=t+","+t+"Params,"});var Ke=function(t,e){this.id=X++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:At,this.set=e?e.getSetter:gr},tr=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,ae(this,+t.duration,1,1),this.data=t.data,n&&(this._ctx=n,n.data.push(this)),c||Xe.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,ae(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ne(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Kt(this,t),!r._dp||r.parent||te(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)&&ee(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===I||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ft(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ht(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)+Ht(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Zt(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?$t(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ce(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Jt(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):(Ne(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==I&&(this._tTime-=I)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ee(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(H(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?$t(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=mt);var e=i;return i=t,Rt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),i=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,oe(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,oe(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),H(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,H(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)-I))},e.eventCallback=function(t,e,r){var i=this.vars;return arguments.length>1?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise(function(r){var i=j(t)?t:It,n=function(){var t=e.then;e.then=null,j(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),r(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n})},e.kill=function(){Ce(this)},t}();Bt(tr.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 er=function(r){function n(e,i){var n;return void 0===e&&(e={}),(n=r.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=H(e.sortChildren),s&&ee(e.parent||s,t(n),i),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&re(t(n),e.scrollTrigger),n}e(n,r);var a=n.prototype;return a.to=function(t,e,r){return fe(0,arguments,this),this},a.from=function(t,e,r){return fe(1,arguments,this),this},a.fromTo=function(t,e,r,i){return fe(2,arguments,this),this},a.set=function(t,e,r){return e.duration=0,e.parent=this,Ut(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new cr(t,e,he(this,r),1),this},a.call=function(t,e,r){return ee(this,cr.delayedCall(0,t,e),r)},a.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new cr(t,r,he(this,n)),this},a.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,Ut(r).immediateRender=H(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},a.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,Ut(i).immediateRender=H(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},a.render=function(t,e,r){var n,a,o,u,h,f,l,c,p,_,d,m,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,T=t<=0?0:Pt(t),x=this._zTime<0!=t<0&&(this._initted||!y);if(this!==s&&T>v&&t>=0&&(T=v),T!==this._tTime||r||x){if(g!==this._time&&y&&(T+=this._time-g,t+=this._time-g),n=T,p=this._start,f=!(c=this._ts),x&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,h=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,r);if(n=Pt(T%h),T===v?(u=this._repeat,n=y):((u=~~(_=Pt(T/h)))&&u===_&&(n=y,u--),n>y&&(n=y)),_=Zt(this._tTime,h),!g&&this._tTime&&_!==u&&this._tTime-_*h-this._dur<=0&&(_=u),d&&1&u&&(n=y-n,m=1),u!==_&&!this._lock){var w=d&&1&_,b=w===(d&&1&u);if(u<_&&(w=!w),g=w?0:T%y?y:T,this._lock=1,this.render(g||(m?0:Pt(u*h)),e,!y)._lock=0,this._tTime=T,!e&&this.parent&&Ae(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||f!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,b&&(this._lock=2,g=w?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!f)return this;Ge(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,Pt(g),Pt(n)),l&&(T-=n-(n=l._start))),this._tTime=T,this._time=n,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&T&&!e&&!_&&(Ae(this,"onStart"),this._tTime!==T))return this;if(n>=g&&t>=0)for(a=this._first;a;){if(o=a._next,(a._act||n>=a._start)&&a._ts&&l!==a){if(a.parent!==this)return this.render(t,e,r);if(a.render(a._ts>0?(n-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(n-a._start)*a._ts,e,r),n!==this._time||!this._ts&&!f){l=0,o&&(T+=this._zTime=-1e-8);break}}a=o}else{a=this._last;for(var O=t<0?t:n;a;){if(o=a._prev,(a._act||O<=a._end)&&a._ts&&l!==a){if(a.parent!==this)return this.render(t,e,r);if(a.render(a._ts>0?(O-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(O-a._start)*a._ts,e,r||i&&Rt(a)),n!==this._time||!this._ts&&!f){l=0,o&&(T+=this._zTime=O?-1e-8:I);break}}a=o}}if(l&&!e&&(this.pause(),l.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=p,Jt(this),this.render(t,e,r);this._onUpdate&&!e&&Ae(this,"onUpdate",!0),(T===v&&this._tTime>=this.totalDuration()||!T&&g)&&(p!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(T===v&&this._ts>0||!T&&this._ts<0)&&jt(this,1),e||t<0&&!g||!T&&!g&&v||(Ae(this,T===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(T<v&&this.timeScale()>0)&&this._prom())))}return this},a.add=function(t,e){var r=this;if(W(e)||(e=he(this,e,t)),!(t instanceof tr)){if(K(t))return t.forEach(function(t){return r.add(t,e)}),this;if(V(t))return this.addLabel(t,e);if(!j(t))return this;t=cr.delayedCall(0,t)}return this!==t?ee(this,t,e):this},a.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-1e8);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof cr?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},a.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},a.remove=function(t){return V(t)?this.removeLabel(t):j(t)?this.killTweensOf(t):(t.parent===this&&Vt(this,t),t===this._recent&&(this._recent=this._last),Wt(this))},a.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Pt(Xe.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},a.addLabel=function(t,e){return this.labels[t]=he(this,e),this},a.removeLabel=function(t){return delete this.labels[t],this},a.addPause=function(t,e,r){var i=cr.delayedCall(0,e||pt,r);return i.data="isPause",this._hasPause=1,ee(this,i,he(this,t))},a.removePause=function(t){var e=this._first;for(t=he(this,t);e;)e._start===t&&"isPause"===e.data&&jt(e),e=e._next},a.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)rr!==i[n]&&i[n].kill(t,e);return this},a.getTweensOf=function(t,e){for(var r,i=[],n=me(t),s=this._first,a=W(e);s;)s instanceof cr?zt(s._targets,n)&&(a?(!rr||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},a.tweenTo=function(t,e){e=e||{};var r,i=this,n=he(i,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,f=cr.to(i,Bt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||I,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());f._dur!==t&&ae(f,t,0,1).render(f._time,!0,!0),r=1}o&&o.apply(f,u||[])}},e));return h?f.render(0):f},a.tweenFromTo=function(t,e,r){return this.tweenTo(e,Bt({startAt:{time:he(this,t)}},r))},a.recent=function(){return this._recent},a.nextLabel=function(t){return void 0===t&&(t=this._time),ke(this,he(this,t))},a.previousLabel=function(t){return void 0===t&&(t=this._time),ke(this,he(this,t),1)},a.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+I)},a.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return Wt(this)},a.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return r.prototype.invalidate.call(this,t)},a.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Wt(this)},a.totalDuration=function(t){var e,r,i,n=0,a=this,o=a._last,u=L;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>u&&a._sort&&o._ts&&!a._lock?(a._lock=1,ee(a,o,r-o._delay,1)._lock=0):u=r,r<0&&o._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-1/0),u=0),o._end>n&&o._ts&&(n=o._end),o=e;ae(a,a===s&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},n.updateRoot=function(t){if(s._ts&&(Ft(s,$t(t,s)),f=Xe.frame),Xe.frame>=wt){wt+=R.autoSleep||120;var e=s._first;if((!e||!e._ts)&&R.autoSleep&&Xe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Xe.sleep()}}},n}(tr);Bt(er.prototype,{_lock:0,_hasPause:0,_forcing:0});var rr,ir,nr=function(t,e,r,i,n,s,a){var o,u,h,f,l,c,p,_,d=new kr(this._pt,t,e,0,1,Tr,null,n),m=0,g=0;for(d.b=r,d.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=Oe(i)),s&&(s(_=[r,i],t,e),r=_[0],i=_[1]),u=r.match(it)||[];o=it.exec(i);)f=o[0],l=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===l.substr(-5)&&(h=1),f!==u[g++]&&(c=parseFloat(u[g-1])||0,d._pt={_next:d._pt,p:l||1===g?l:",",s:c,c:"="===f.charAt(1)?Et(c,f)-c:parseFloat(f)-c,m:h&&h<4?Math.round:0},m=it.lastIndex);return d.c=m<i.length?i.substring(m,i.length):"",d.fp=a,(nt.test(i)||p)&&(d.e=0),this._pt=d,d},sr=function(t,e,r,i,n,s,a,o,u,h){j(i)&&(i=i(n||0,t,s));var f,l=t[e],c="get"!==r?r:j(l)?u?t[e.indexOf("set")||!j(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():l,p=j(l)?u?dr:_r:pr;if(V(i)&&(~i.indexOf("random(")&&(i=Oe(i)),"="===i.charAt(1)&&((f=Et(c,i)+(pe(c)||0))||0===f)&&(i=f)),!h||c!==i||ir)return isNaN(c*i)||""===i?(!l&&!(e in t)&&ft(e,i),nr.call(this,t,e,c,i,p,o||R.stringFilter,u)):(f=new kr(this._pt,t,e,+c||0,i-(c||0),"boolean"==typeof l?yr:vr,0,p),u&&(f.fp=u),a&&f.modifier(a,this,t),this._pt=f)},ar=function(t,e,r,i,n,s){var a,o,u,h;if(Tt[t]&&!1!==(a=new Tt[t]).init(n,a.rawVars?e[t]:function(t,e,r,i,n){if(j(t)&&(t=hr(t,n,e,r,i)),!Q(t)||t.style&&t.nodeType||K(t)||J(t))return V(t)?hr(t,n,e,r,i):t;var s,a={};for(s in t)a[s]=hr(t[s],n,e,r,i);return a}(e[t],i,n,s,r),r,i,s)&&(r._pt=o=new kr(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==l))for(u=r._ptLookup[r._targets.indexOf(n)],h=a._props.length;h--;)u[a._props[h]]=o;return a},or=function t(e,n,a){var o,u,h,f,l,c,p,_,d,m,g,v,y,T=e.vars,x=T.ease,w=T.startAt,b=T.immediateRender,O=T.lazy,M=T.onUpdate,k=T.runBackwards,A=T.yoyoEase,C=T.keyframes,D=T.autoRevert,P=e._dur,E=e._startAt,z=e._targets,S=e.parent,R=S&&"nested"===S.data?S.vars.targets:z,B="auto"===e._overwrite&&!r,Y=e.timeline;if(Y&&(!C||!x)&&(x="none"),e._ease=Qe(x,F.ease),e._yEase=A?We(Qe(!0===A?x:A,F.ease)):0,A&&e._yoyo&&!e._repeat&&(A=e._yEase,e._yEase=e._ease,e._ease=A),e._from=!Y&&!!T.runBackwards,!Y||C&&!T.stagger){if(v=(_=z[0]?kt(z[0]).harness:0)&&T[_.prop],o=Nt(T,gt),E&&(E._zTime<0&&E.progress(1),n<0&&k&&b&&!D?E.render(-1,!0):E.revert(k&&P?dt:_t),E._lazy=0),w){if(jt(e._startAt=cr.set(z,Bt({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:!E&&H(O),startAt:null,delay:0,onUpdate:M&&function(){return Ae(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(i||!b&&!D)&&e._startAt.revert(dt),b&&P&&n<=0&&a<=0)return void(n&&(e._zTime=n))}else if(k&&P&&!E)if(n&&(b=!1),h=Bt({overwrite:!1,data:"isFromStart",lazy:b&&!E&&H(O),immediateRender:b,stagger:0,parent:S},o),v&&(h[_.prop]=v),jt(e._startAt=cr.set(z,h)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(i?e._startAt.revert(dt):e._startAt.render(-1,!0)),e._zTime=n,b){if(!n)return}else t(e._startAt,I,I);for(e._pt=e._ptCache=0,O=P&&H(O)||O&&!P,u=0;u<z.length;u++){if(p=(l=z[u])._gsap||Mt(z)[u]._gsap,e._ptLookup[u]=m={},yt[p.id]&&vt.length&&St(),g=R===z?u:R.indexOf(l),_&&!1!==(d=new _).init(l,v||o,e,g,R)&&(e._pt=f=new kr(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach(function(t){m[t]=f}),d.priority&&(c=1)),!_||v)for(h in o)Tt[h]&&(d=ar(h,o,e,g,l,R))?d.priority&&(c=1):m[h]=f=sr.call(e,l,h,"get",o[h],g,R,0,T.stringFilter);e._op&&e._op[u]&&e.kill(l,e._op[u]),B&&e._pt&&(rr=e,s.killTweensOf(l,m,e.globalTime(n)),y=!e.parent,rr=0),e._pt&&O&&(yt[p.id]=1)}c&&Mr(e),e._onInit&&e._onInit(e)}e._onUpdate=M,e._initted=(!e._op||e._pt)&&!y,C&&n<=0&&Y.render(L,!0,!0)},ur=function(t,e,r,i){var n,s,a=e.ease||i||"power1.inOut";if(K(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(n in e)s=r[n]||(r[n]=[]),"ease"===n||s.push({t:parseFloat(t),v:e[n],e:a})},hr=function(t,e,r,i,n){return j(t)?t.call(e,r,i,n):V(t)&&~t.indexOf("random(")?Oe(t):t},fr=Ot+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",lr={};Ct(fr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return lr[t]=1});var cr=function(n){function a(e,i,a,o){var u;"number"==typeof i&&(a.duration=i,i=a,a=null);var h,f,l,c,p,_,d,m,g=(u=n.call(this,o?i:Ut(i))||this).vars,v=g.duration,y=g.delay,T=g.immediateRender,x=g.stagger,w=g.overwrite,b=g.keyframes,O=g.defaults,M=g.scrollTrigger,k=g.yoyoEase,A=i.parent||s,C=(K(e)||J(e)?W(e[0]):"length"in i)?[e]:me(e);if(u._targets=C.length?Mt(C):lt("GSAP target "+e+" not found. https://gsap.com",!R.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=w,b||x||$(v)||$(y)){if(i=u.vars,(h=u.timeline=new er({data:"nested",defaults:O||{},targets:A&&"nested"===A.data?A.vars.targets:C})).kill(),h.parent=h._dp=t(u),h._start=0,x||$(v)||$(y)){if(c=C.length,d=x&&ye(x),Q(x))for(p in x)~fr.indexOf(p)&&(m||(m={}),m[p]=x[p]);for(f=0;f<c;f++)(l=Nt(i,lr)).stagger=0,k&&(l.yoyoEase=k),m&&Yt(l,m),_=C[f],l.duration=+hr(v,t(u),f,_,C),l.delay=(+hr(y,t(u),f,_,C)||0)-u._delay,!x&&1===c&&l.delay&&(u._delay=y=l.delay,u._start+=y,l.delay=0),h.to(_,l,d?d(f,_,C):0),h._ease=Ue.none;h.duration()?v=y=0:u.timeline=0}else if(b){Ut(Bt(h.vars.defaults,{ease:"none"})),h._ease=Qe(b.ease||i.ease||"none");var D,P,E,z=0;if(K(b))b.forEach(function(t){return h.to(C,t,">")}),h.duration();else{for(p in l={},b)"ease"===p||"easeEach"===p||ur(p,b[p],l,b.easeEach);for(p in l)for(D=l[p].sort(function(t,e){return t.t-e.t}),z=0,f=0;f<D.length;f++)(E={ease:(P=D[f]).e,duration:(P.t-(f?D[f-1].t:0))/100*v})[p]=P.v,h.to(C,E,z),z+=E.duration;h.duration()<v&&h.to({},{duration:v-h.duration()})}}v||u.duration(v=h.duration())}else u.timeline=0;return!0!==w||r||(rr=t(u),s.killTweensOf(C),rr=0),ee(A,t(u),a),i.reversed&&u.reverse(),i.paused&&u.paused(!0),(T||!v&&!b&&u._start===Pt(A._time)&&H(T)&&Qt(t(u))&&"nested"!==A.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-y)||0)),M&&re(t(u),M),u}e(a,n);var o=a.prototype;return o.render=function(t,e,r){var n,s,a,o,u,h,f,l,c,p=this._time,_=this._tDur,d=this._dur,m=t<0,g=t>_-I&&!m?_:t<I?0:t;if(d){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=g,l=this.timeline,this._repeat){if(o=d+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+t,e,r);if(n=Pt(g%o),g===_?(a=this._repeat,n=d):(a=~~(u=Pt(g/o)))&&a===u?(n=d,a--):n>d&&(n=d),(h=this._yoyo&&1&a)&&(c=this._yEase,n=d-n),u=Zt(this._tTime,o),n===p&&!r&&this._initted&&a===u)return this._tTime=g,this;a!==u&&(l&&this._yEase&&Ge(l,h),this.vars.repeatRefresh&&!h&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(Pt(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(ie(this,m?t:n,r,e,g))return this._tTime=0,this;if(!(p===this._time||r&&this.vars.repeatRefresh&&a!==u))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(c||this._ease)(n/d),this._from&&(this.ratio=f=1-f),!p&&g&&!e&&!u&&(Ae(this,"onStart"),this._tTime!==g))return this;for(s=this._pt;s;)s.r(f,s.d),s=s._next;l&&l.render(t<0?t:l._dur*l._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Gt(this,t,0,r),Ae(this,"onUpdate")),this._repeat&&a!==u&&this.vars.onRepeat&&!e&&this.parent&&Ae(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Gt(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&jt(this,1),e||m&&!p||!(g||p||h)||(Ae(this,g===_?"onComplete":"onReverseComplete",!0),this._prom&&!(g<_&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var s,a,o,u=t.ratio,h=e<0||!e&&(!t._start&&ne(t)&&(t._initted||!se(t))||(t._ts<0||t._dp._ts<0)&&!se(t))?0:1,f=t._rDelay,l=0;if(f&&t._repeat&&(l=ce(0,t._tDur,e),a=Zt(l,f),t._yoyo&&1&a&&(h=1-h),a!==Zt(t._tTime,f)&&(u=1-h,t.vars.repeatRefresh&&t._initted&&t.invalidate())),h!==u||i||n||t._zTime===I||!e&&t._zTime){if(!t._initted&&ie(t,e,n,r,l))return;for(o=t._zTime,t._zTime=e||(r?I:0),r||(r=e&&!o),t.ratio=h,t._from&&(h=1-h),t._time=0,t._tTime=l,s=t._pt;s;)s.r(h,s.d),s=s._next;e<0&&Gt(t,e,0,!0),t._onUpdate&&!r&&Ae(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Ae(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===h&&(h&&jt(t,1),r||i||(Ae(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},o.targets=function(){return this._targets},o.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),n.prototype.invalidate.call(this,t)},o.resetTo=function(t,e,r,i,n){c||Xe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||or(this,s),function(t,e,r,i,n,s,a,o){var u,h,f,l,c=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!c)for(c=t._ptCache[e]=[],f=t._ptLookup,l=t._targets.length;l--;){if((u=f[l][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return ir=1,t.vars[e]="+=0",or(t,a),ir=0,o?lt(e+" not eligible for reset"):1;c.push(u)}for(l=c.length;l--;)(u=(h=c[l])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+s*u.c:i,u.c=r-u.s,h.e&&(h.e=Dt(r)+pe(h.e)),h.b&&(h.b=u.s+pe(h.b))}(this,t,e,r,i,this._ease(s/this._dur),s,n)?this.resetTo(t,e,r,i,1):(Kt(this,0),this.parent||qt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ce(this):this.scrollTrigger&&this.scrollTrigger.kill(!!i),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,rr&&!0!==rr.vars.overwrite)._first||Ce(this),this.parent&&r!==this.timeline.totalDuration()&&ae(this,this._dur*this.timeline._tDur/r,0,1),this}var n,s,a,o,u,h,f,l=this._targets,c=t?me(t):l,p=this._ptLookup,_=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(l,c))return"all"===e&&(this._pt=0),Ce(this);for(n=this._op=this._op||[],"all"!==e&&(V(e)&&(u={},Ct(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,i,n,s,a=t[0]?kt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(i in r=Yt({},e),o)if(i in r)for(n=(s=o[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(l,e)),f=l.length;f--;)if(~c.indexOf(l[f]))for(u in s=p[f],"all"===e?(n[f]=e,o=s,a={}):(a=n[f]=n[f]||{},o=e),o)(h=s&&s[u])&&("kill"in h.d&&!0!==h.d.kill(u)||Vt(this,h,"_pt"),delete s[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&_&&Ce(this),this},a.to=function(t,e){return new a(t,e,arguments[2])},a.from=function(t,e){return fe(1,arguments)},a.delayedCall=function(t,e,r,i){return new a(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},a.fromTo=function(t,e,r){return fe(2,arguments)},a.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new a(t,e)},a.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},a}(tr);Bt(cr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ct("staggerTo,staggerFrom,staggerFromTo",function(t){cr[t]=function(){var e=new er,r=_e.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var pr=function(t,e,r){return t[e]=r},_r=function(t,e,r){return t[e](r)},dr=function(t,e,r,i){return t[e](i.fp,r)},mr=function(t,e,r){return t.setAttribute(e,r)},gr=function(t,e){return j(t[e])?_r:G(t[e])&&t.setAttribute?mr:pr},vr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},yr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Tr=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},xr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},wr=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},br=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?Vt(this,i,"_pt"):i.dep||(e=1),i=r;return!e},Or=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},Mr=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},kr=function(){function t(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||vr,this.d=a||this,this.set=o||pr,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=Or,this.m=t,this.mt=r,this.tween=e},t}();Ct(Ot+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return gt[t]=1}),ot.TweenMax=ot.TweenLite=cr,ot.TimelineLite=ot.TimelineMax=er,s=new er({sortChildren:!1,defaults:F,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),R.stringFilter=Ye;var Ar=[],Cr={},Dr=[],Pr=0,Er=0,zr=function(t){return(Cr[t]||Dr).map(function(t){return t()})},Sr=function(){var t=Date.now(),e=[];t-Pr>2&&(zr("matchMediaInit"),Ar.forEach(function(t){var r,i,n,s,o=t.queries,u=t.conditions;for(i in o)(r=a.matchMedia(o[i]).matches)&&(n=1),r!==u[i]&&(u[i]=r,s=1);s&&(t.revert(),n&&e.push(t))}),zr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),Pr=t,zr("matchMedia"))},Rr=function(){function t(t,e){this.selector=e&&ge(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Er++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){j(t)&&(r=e,e=t,t=j);var i=this,s=function(){var t,s=n,a=i.selector;return s&&s!==i&&s.data.push(i),r&&(i.selector=ge(r)),n=i,t=e.apply(i,arguments),j(t)&&i._r.push(t),n=s,i.selector=a,i.isReverted=!1,t};return i.last=s,t===j?s(i,function(t){return i.add(null,t)}):t?i[t]=s:s},e.ignore=function(t){var e=n;n=null,t(this),n=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof cr&&!(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,i=r.getTweens(),n=r.data.length;n--;)"isFlip"===(e=r.data[n]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach(function(t){return i.splice(i.indexOf(t),1)}));for(i.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)}),n=r.data.length;n--;)(e=r.data[n])instanceof er?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof cr)&&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 i=Ar.length;i--;)Ar[i].id===this.id&&Ar.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),Fr=function(){function t(t){this.contexts=[],this.scope=t,n&&n.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){Q(t)||(t={matches:t});var i,s,o,u=new Rr(0,r||this.scope),h=u.conditions={};for(s in n&&!u.selector&&(u.selector=n.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===s?o=1:(i=a.matchMedia(t[s]))&&(Ar.indexOf(u)<0&&Ar.push(u),(h[s]=i.matches)&&(o=1),i.addListener?i.addListener(Sr):i.addEventListener("change",Sr));return o&&e(u,function(t){return u.add(null,t)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(e){return e.kill(t,!0)})},t}(),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 Pe(t)})},timeline:function(t){return new er(t)},getTweensOf:function(t,e){return s.getTweensOf(t,e)},getProperty:function(t,e,r,i){V(t)&&(t=me(t)[0]);var n=kt(t||{}).get,s=r?It:Lt;return"native"===r&&(r=""),t?e?s((Tt[e]&&Tt[e].get||n)(t,e,r,i)):function(e,r,i){return s((Tt[e]&&Tt[e].get||n)(t,e,r,i))}:t},quickSetter:function(t,e,r){if((t=me(t)).length>1){var i=t.map(function(t){return Yr.quickSetter(t,e,r)}),n=i.length;return function(t){for(var e=n;e--;)i[e](t)}}t=t[0]||{};var s=Tt[e],a=kt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var i=new s;l._pt=0,i.init(t,r?e+r:e,l,0,[t]),i.render(1,i),l._pt&&xr(1,l)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var i,n=Yr.to(t,Bt(((i={})[e]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(t,r,i){return n.resetTo(e,t,r,i)};return s.tween=n,s},isTweening:function(t){return s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Qe(t.ease,F.ease)),Xt(F,t||{})},config:function(t){return Xt(R,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(t){return t&&!Tt[t]&&!ot[t]&<(e+" effect requires "+t+" plugin.")}),xt[e]=function(t,e,i){return r(me(t),Bt(e||{},n),i)},s&&(er.prototype[e]=function(t,r,i){return this.add(xt[e](t,Q(r)?r:(i=r)&&{},this),i)})},registerEase:function(t,e){Ue[t]=Qe(e)},parseEase:function(t,e){return arguments.length?Qe(t,e):Ue},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,i,n=new er(t);for(n.smoothChildTiming=H(t.smoothChildTiming),s.remove(n),n._dp=0,n._time=n._tTime=s._time,r=s._first;r;)i=r._next,!e&&!r._dur&&r instanceof cr&&r.vars.onComplete===r._targets[0]||ee(n,r,r._start-r._delay),r=i;return ee(s,n,0),n},context:function(t,e){return t?new Rr(t,e):n},matchMedia:function(t){return new Fr(t)},matchMediaRefresh:function(){return Ar.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||Sr()},addEventListener:function(t,e){var r=Cr[t]||(Cr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Cr[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:function t(e,r,i){var n=r-e;return K(e)?be(e,t(0,e.length),r):le(i,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return K(e)?be(e,t(0,e.length-1),r):le(i,function(t){return e+((t=(s+(t-e)%s)%s||0)>n?s-t:t)})},distribute:ye,random:we,snap:xe,normalize:function(t,e,r){return Me(t,e,0,1,r)},getUnit:pe,clamp:function(t,e,r){return le(r,function(r){return ce(t,e,r)})},splitColor:Re,toArray:me,selector:ge,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||pe(r))}},interpolate:function t(e,r,i,n){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,h,f,l=V(e),c={};if(!0===i&&(n=1)&&(i=null),l)e={p:e},r={p:r};else if(K(e)&&!K(r)){for(u=[],h=e.length,f=h-2,o=1;o<h;o++)u.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(f,~~t);return u[e](t-e)},i=r}else n||(e=Yt(K(e)?[]:{},e));if(!u){for(a in r)sr.call(c,e,a,"get",r[a]);s=function(t){return xr(t,c)||(l?e.p:e)}}}return le(i,s)},shuffle:ve},install:ht,effects:xt,ticker:Xe,updateRoot:er.updateRoot,plugins:Tt,globalTimeline:s,core:{PropTween:kr,globals:ct,Tween:cr,Timeline:er,Animation:tr,getCache:kt,_removeLinkedListItem:Vt,reverting:function(){return i},context:function(t){return t&&n&&(n.data.push(t),t._ctx=n),n},suppressOverwrites:function(t){return r=t}}};Ct("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Lr[t]=cr[t]}),Xe.add(er.updateRoot),l=Lr.to({},{duration:0});var Ir=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Br=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,i){i._onInit=function(t){var i,n;if(V(r)&&(i={},Ct(r,function(t){return i[t]=1}),r=i),e){for(n in i={},r)i[n]=e(r[n]);r=i}!function(t,e){var r,i,n,s=t._targets;for(r in e)for(i=s.length;i--;)(n=t._ptLookup[i][r])&&(n=n.d)&&(n._pt&&(n=Ir(n,r)),n&&n.modifier&&n.modifier(e[r],t,s[i],r))}(t,r)}}}},Yr=Lr.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],i,n,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)i?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Br("roundProps",Te),Br("modifiers"),Br("snap",xe))||Lr;cr.version=er.version=Yr.version="3.13.0",h=1,Z()&&Ne();var Xr,Nr,Ur,qr,Vr,jr,Wr,Gr,Qr=Ue.Power0,Hr=Ue.Power1,Zr=Ue.Power2,$r=Ue.Power3,Jr=Ue.Power4,Kr=Ue.Linear,ti=Ue.Quad,ei=Ue.Cubic,ri=Ue.Quart,ii=Ue.Quint,ni=Ue.Strong,si=Ue.Elastic,ai=Ue.Back,oi=Ue.SteppedEase,ui=Ue.Bounce,hi=Ue.Sine,fi=Ue.Expo,li=Ue.Circ,ci={},pi=180/Math.PI,_i=Math.PI/180,di=Math.atan2,mi=/([A-Z])/g,gi=/(left|right|width|margin|padding|x)/i,vi=/[\s,\(]\S/,yi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ti=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},xi=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)},wi=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)},bi=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Oi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Mi=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ki=function(t,e,r){return t.style[e]=r},Ai=function(t,e,r){return t.style.setProperty(e,r)},Ci=function(t,e,r){return t._gsap[e]=r},Di=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Pi=function(t,e,r,i,n){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},Ei=function(t,e,r,i,n){var s=t._gsap;s[e]=r,s.renderTransform(n,s)},zi="transform",Si=zi+"Origin",Ri=function t(e,r){var i=this,n=this.target,s=n.style,a=n._gsap;if(e in ci&&s){if(this.tfm=this.tfm||{},"transform"===e)return yi.transform.split(",").forEach(function(e){return t.call(i,e,r)});if(~(e=yi[e]||e).indexOf(",")?e.split(",").forEach(function(t){return i.tfm[t]=Ji(n,t)}):this.tfm[e]=a.x?a[e]:Ji(n,e),e===Si&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(zi)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Si,r,"")),e=zi}(s||r)&&this.props.push(e,r,s[e])},Fi=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Li=function(){var t,e,r=this.props,i=this.target,n=i.style,s=i._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?i[r[t]](r[t+2]):i[r[t]]=r[t+2]:r[t+2]?n[r[t]]=r[t+2]:n.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(mi,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(t=Wr())&&t.isStart||n[zi]||(Fi(n),s.zOrigin&&n[Si]&&(n[Si]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Ii=function(t,e){var r={target:t,props:[],revert:Li,save:Ri};return t._gsap||Yr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},Bi=function(t,e){var r=Nr.createElementNS?Nr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Nr.createElement(t);return r&&r.style?r:Nr.createElement(t)},Yi=function t(e,r,i){var n=getComputedStyle(e);return n[r]||n.getPropertyValue(r.replace(mi,"-$1").toLowerCase())||n.getPropertyValue(r)||!i&&t(e,Ni(r)||r,1)||""},Xi="O,Moz,ms,Ms,Webkit".split(","),Ni=function(t,e,r){var i=(e||Vr).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(Xi[n]+t in i););return n<0?null:(3===n?"ms":n>=0?Xi[n]:"")+t},Ui=function(){"undefined"!=typeof window&&window.document&&(Xr=window,Nr=Xr.document,Ur=Nr.documentElement,Vr=Bi("div")||{style:{}},Bi("div"),zi=Ni(zi),Si=zi+"Origin",Vr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Gr=!!Ni("perspective"),Wr=Yr.core.reverting,qr=1)},qi=function(t){var e,r=t.ownerSVGElement,i=Bi("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=t.cloneNode(!0);n.style.display="block",i.appendChild(n),Ur.appendChild(i);try{e=n.getBBox()}catch(s){}return i.removeChild(n),Ur.removeChild(i),e},Vi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},ji=function(t){var e,r;try{e=t.getBBox()}catch(i){e=qi(t),r=1}return e&&(e.width||e.height)||r||(e=qi(t)),!e||e.width||e.x||e.y?e:{x:+Vi(t,["x","cx","x1"])||0,y:+Vi(t,["y","cy","y1"])||0,width:0,height:0}},Wi=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ji(t))},Gi=function(t,e){if(e){var r,i=t.style;e in ci&&e!==Si&&(e=zi),i.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty("--"===r?e:e.replace(mi,"-$1").toLowerCase())):i.removeAttribute(e)}},Qi=function(t,e,r,i,n,s){var a=new kr(t._pt,e,r,0,1,s?Mi:Oi);return t._pt=a,a.b=i,a.e=n,t._props.push(r),a},Hi={deg:1,rad:1,turn:1},Zi={grid:1,flex:1},$i=function t(e,r,i,n){var s,a,o,u,h=parseFloat(i)||0,f=(i+"").trim().substr((h+"").length)||"px",l=Vr.style,c=gi.test(r),p="svg"===e.tagName.toLowerCase(),_=(p?"client":"offset")+(c?"Width":"Height"),d=100,m="px"===n,g="%"===n;if(n===f||!h||Hi[n]||Hi[f])return h;if("px"!==f&&!m&&(h=t(e,r,i,"px")),u=e.getCTM&&Wi(e),(g||"%"===f)&&(ci[r]||~r.indexOf("adius")))return s=u?e.getBBox()[c?"width":"height"]:e[_],Dt(g?h/s*d:h/100*s);if(l[c?"width":"height"]=d+(m?f:n),a="rem"!==n&&~r.indexOf("adius")||"em"===n&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Nr&&a.appendChild||(a=Nr.body),(o=a._gsap)&&g&&o.width&&c&&o.time===Xe.time&&!o.uncache)return Dt(h/o.width*d);if(!g||"height"!==r&&"width"!==r)(g||"%"===f)&&!Zi[Yi(a,"display")]&&(l.position=Yi(e,"position")),a===e&&(l.position="static"),a.appendChild(Vr),s=Vr[_],a.removeChild(Vr),l.position="absolute";else{var v=e.style[r];e.style[r]=d+n,s=e[_],v?e.style[r]=v:Gi(e,r)}return c&&g&&((o=kt(a)).time=Xe.time,o.width=a[_]),Dt(m?s*h/d:s&&h?d/s*h:0)},Ji=function(t,e,r,i){var n;return qr||Ui(),e in yi&&"transform"!==e&&~(e=yi[e]).indexOf(",")&&(e=e.split(",")[0]),ci[e]&&"transform"!==e?(n=ln(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:cn(Yi(t,Si))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||i||~(n+"").indexOf("calc("))&&(n=nn[e]&&nn[e](t,e,r)||Yi(t,e)||At(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?$i(t,e,n,r)+r:n},Ki=function(t,e,r,i){if(!r||"none"===r){var n=Ni(e,t,1),s=n&&Yi(t,n,1);s&&s!==r?(e=n,r=s):"borderColor"===e&&(r=Yi(t,"borderTopColor"))}var a,o,u,h,f,l,c,p,_,d,m,g=new kr(this._pt,t.style,e,0,1,Tr),v=0,y=0;if(g.b=r,g.e=i,r+="","var(--"===(i+="").substring(0,6)&&(i=Yi(t,i.substring(4,i.indexOf(")")))),"auto"===i&&(l=t.style[e],t.style[e]=i,i=Yi(t,e)||i,l?t.style[e]=l:Gi(t,e)),Ye(a=[r,i]),i=a[1],u=(r=a[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)c=o[0],_=i.substring(v,o.index),f?f=(f+1)%5:"rgba("!==_.substr(-5)&&"hsla("!==_.substr(-5)||(f=1),c!==(l=u[y++]||"")&&(h=parseFloat(l)||0,m=l.substr((h+"").length),"="===c.charAt(1)&&(c=Et(h,c)+m),p=parseFloat(c),d=c.substr((p+"").length),v=rt.lastIndex-d.length,d||(d=d||R.units[e]||m,v===i.length&&(i+=d,g.e+=d)),m!==d&&(h=$i(t,e,l,d)||0),g._pt={_next:g._pt,p:_||1===y?_:",",s:h,c:p-h,m:f&&f<4||"zIndex"===e?Math.round:0});g.c=v<i.length?i.substring(v,i.length):""}else g.r="display"===e&&"none"===i?Mi:Oi;return nt.test(i)&&(g.e=0),this._pt=g,g},tn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},en=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=tn[r]||r,e[1]=tn[i]||i,e.join(" ")},rn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,s=e.t,a=s.style,o=e.u,u=s._gsap;if("all"===o||!0===o)a.cssText="",i=1;else for(n=(o=o.split(",")).length;--n>-1;)r=o[n],ci[r]&&(i=1,r="transformOrigin"===r?Si:zi),Gi(s,r);i&&(Gi(s,zi),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",ln(s,1),u.uncache=1,Fi(a)))}},nn={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data){var s=t._pt=new kr(t._pt,e,r,0,0,rn);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},sn=[1,0,0,1,0,0],an={},on=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},un=function(t){var e=Yi(t,zi);return on(e)?sn:e.substr(7).match(et).map(Dt)},hn=function(t,e){var r,i,n,s,a=t._gsap||kt(t),o=t.style,u=un(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?sn:u:(u!==sn||t.offsetParent||t===Ur||a.svg||(n=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,i=t.nextElementSibling,Ur.appendChild(t)),u=un(t),n?o.display=n:Gi(t,"display"),s&&(i?r.insertBefore(t,i):r?r.appendChild(t):Ur.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},fn=function(t,e,r,i,n,s){var a,o,u,h=t._gsap,f=n||hn(t,!0),l=h.xOrigin||0,c=h.yOrigin||0,p=h.xOffset||0,_=h.yOffset||0,d=f[0],m=f[1],g=f[2],v=f[3],y=f[4],T=f[5],x=e.split(" "),w=parseFloat(x[0])||0,b=parseFloat(x[1])||0;r?f!==sn&&(o=d*v-m*g)&&(u=w*(-m/o)+b*(d/o)-(d*T-m*y)/o,w=w*(v/o)+b*(-g/o)+(g*T-v*y)/o,b=u):(w=(a=ji(t)).x+(~x[0].indexOf("%")?w/100*a.width:w),b=a.y+(~(x[1]||x[0]).indexOf("%")?b/100*a.height:b)),i||!1!==i&&h.smooth?(y=w-l,T=b-c,h.xOffset=p+(y*d+T*g)-y,h.yOffset=_+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=b,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[Si]="0px 0px",s&&(Qi(s,h,"xOrigin",l,w),Qi(s,h,"yOrigin",c,b),Qi(s,h,"xOffset",p,h.xOffset),Qi(s,h,"yOffset",_,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+b)},ln=function(t,e){var r=t._gsap||new Ke(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,s,a,o,u,h,f,l,c,p,_,d,m,g,v,y,T,x,w,b,O,M,k,A,C,D,P,E,z,S,F,L=t.style,I=r.scaleX<0,B="px",Y="deg",X=getComputedStyle(t),N=Yi(t,Si)||"0";return i=n=s=u=h=f=l=c=p=0,a=o=1,r.svg=!(!t.getCTM||!Wi(t)),X.translate&&("none"===X.translate&&"none"===X.scale&&"none"===X.rotate||(L[zi]=("none"!==X.translate?"translate3d("+(X.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==X.rotate?"rotate("+X.rotate+") ":"")+("none"!==X.scale?"scale("+X.scale.split(" ").join(",")+") ":"")+("none"!==X[zi]?X[zi]:"")),L.scale=L.rotate=L.translate="none"),m=hn(t,r.svg),r.svg&&(r.uncache?(A=t.getBBox(),N=r.xOrigin-A.x+"px "+(r.yOrigin-A.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),fn(t,k||N,!!k||r.originIsAbsolute,!1!==r.smooth,m)),_=r.xOrigin||0,d=r.yOrigin||0,m!==sn&&(T=m[0],x=m[1],w=m[2],b=m[3],i=O=m[4],n=M=m[5],6===m.length?(a=Math.sqrt(T*T+x*x),o=Math.sqrt(b*b+w*w),u=T||x?di(x,T)*pi:0,(l=w||b?di(w,b)*pi+u:0)&&(o*=Math.abs(Math.cos(l*_i))),r.svg&&(i-=_-(_*T+d*w),n-=d-(_*x+d*b))):(F=m[6],z=m[7],D=m[8],P=m[9],E=m[10],S=m[11],i=m[12],n=m[13],s=m[14],h=(g=di(F,E))*pi,g&&(k=O*(v=Math.cos(-g))+D*(y=Math.sin(-g)),A=M*v+P*y,C=F*v+E*y,D=O*-y+D*v,P=M*-y+P*v,E=F*-y+E*v,S=z*-y+S*v,O=k,M=A,F=C),f=(g=di(-w,E))*pi,g&&(v=Math.cos(-g),S=b*(y=Math.sin(-g))+S*v,T=k=T*v-D*y,x=A=x*v-P*y,w=C=w*v-E*y),u=(g=di(x,T))*pi,g&&(k=T*(v=Math.cos(g))+x*(y=Math.sin(g)),A=O*v+M*y,x=x*v-T*y,M=M*v-O*y,T=k,O=A),h&&Math.abs(h)+Math.abs(u)>359.9&&(h=u=0,f=180-f),a=Dt(Math.sqrt(T*T+x*x+w*w)),o=Dt(Math.sqrt(M*M+F*F)),g=di(O,M),l=Math.abs(g)>2e-4?g*pi:0,p=S?1/(S<0?-S:S):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!on(Yi(t,zi)),k&&t.setAttribute("transform",k))),Math.abs(l)>90&&Math.abs(l)<270&&(I?(a*=-1,l+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,l+=l<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+B,r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+B,r.z=s+B,r.scaleX=Dt(a),r.scaleY=Dt(o),r.rotation=Dt(u)+Y,r.rotationX=Dt(h)+Y,r.rotationY=Dt(f)+Y,r.skewX=l+Y,r.skewY=c+Y,r.transformPerspective=p+B,(r.zOrigin=parseFloat(N.split(" ")[2])||!e&&r.zOrigin||0)&&(L[Si]=cn(N)),r.xOffset=r.yOffset=0,r.force3D=R.force3D,r.renderTransform=r.svg?yn:Gr?vn:_n,r.uncache=0,r},cn=function(t){return(t=t.split(" "))[0]+" "+t[1]},pn=function(t,e,r){var i=pe(e);return Dt(parseFloat(e)+parseFloat($i(t,"x",r+"px",i)))+i},_n=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,vn(t,e)},dn="0deg",mn="0px",gn=") ",vn=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,a=r.y,o=r.z,u=r.rotation,h=r.rotationY,f=r.rotationX,l=r.skewX,c=r.skewY,p=r.scaleX,_=r.scaleY,d=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(f!==dn||h!==dn)){var x,w=parseFloat(h)*_i,b=Math.sin(w),O=Math.cos(w);w=parseFloat(f)*_i,x=Math.cos(w),s=pn(g,s,b*x*-v),a=pn(g,a,-Math.sin(w)*-v),o=pn(g,o,O*x*-v+v)}d!==mn&&(y+="perspective("+d+gn),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),(T||s!==mn||a!==mn||o!==mn)&&(y+=o!==mn||T?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+gn),u!==dn&&(y+="rotate("+u+gn),h!==dn&&(y+="rotateY("+h+gn),f!==dn&&(y+="rotateX("+f+gn),l===dn&&c===dn||(y+="skew("+l+", "+c+gn),1===p&&1===_||(y+="scale("+p+", "+_+gn),g.style[zi]=y||"translate(0, 0)"},yn=function(t,e){var r,i,n,s,a,o=e||this,u=o.xPercent,h=o.yPercent,f=o.x,l=o.y,c=o.rotation,p=o.skewX,_=o.skewY,d=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,x=o.yOffset,w=o.forceCSS,b=parseFloat(f),O=parseFloat(l);c=parseFloat(c),p=parseFloat(p),(_=parseFloat(_))&&(p+=_=parseFloat(_),c+=_),c||p?(c*=_i,p*=_i,r=Math.cos(c)*d,i=Math.sin(c)*d,n=Math.sin(c-p)*-m,s=Math.cos(c-p)*m,p&&(_*=_i,a=Math.tan(p-_),n*=a=Math.sqrt(1+a*a),s*=a,_&&(a=Math.tan(_),r*=a=Math.sqrt(1+a*a),i*=a)),r=Dt(r),i=Dt(i),n=Dt(n),s=Dt(s)):(r=d,s=m,i=n=0),(b&&!~(f+"").indexOf("px")||O&&!~(l+"").indexOf("px"))&&(b=$i(g,"x",f,"px"),O=$i(g,"y",l,"px")),(v||y||T||x)&&(b=Dt(b+v-(v*r+y*n)+T),O=Dt(O+y-(v*i+y*s)+x)),(u||h)&&(a=g.getBBox(),b=Dt(b+u/100*a.width),O=Dt(O+h/100*a.height)),a="matrix("+r+","+i+","+n+","+s+","+b+","+O+")",g.setAttribute("transform",a),w&&(g.style[zi]=a)},Tn=function(t,e,r,i,n){var s,a,o=360,u=V(n),h=parseFloat(n)*(u&&~n.indexOf("rad")?pi:1)-i,f=i+h+"deg";return u&&("short"===(s=n.split("_")[1])&&(h%=o)!==h%180&&(h+=h<0?o:-360),"cw"===s&&h<0?h=(h+36e9)%o-~~(h/o)*o:"ccw"===s&&h>0&&(h=(h-36e9)%o-~~(h/o)*o)),t._pt=a=new kr(t._pt,e,r,i,h,xi),a.e=f,a.u="deg",t._props.push(r),a},xn=function(t,e){for(var r in e)t[r]=e[r];return t},wn=function(t,e,r){var i,n,s,a,o,u,h,f=xn({},r._gsap),l=r.style;for(n in f.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),l[zi]=e,i=ln(r,1),Gi(r,zi),r.setAttribute("transform",s)):(s=getComputedStyle(r)[zi],l[zi]=e,i=ln(r,1),l[zi]=s),ci)(s=f[n])!==(a=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=pe(s)!==(h=pe(a))?$i(r,n,s,h):parseFloat(s),u=parseFloat(a),t._pt=new kr(t._pt,i,n,o,u-o,Ti),t._pt.u=h||0,t._props.push(n));xn(i,f)};Ct("padding,margin,Width,Radius",function(t,e){var r="Top",i="Right",n="Bottom",s="Left",a=(e<3?[r,i,n,s]:[r+s,r+i,n+i,n+s]).map(function(r){return e<2?t+r:"border"+r+t});nn[e>1?"border"+t:t]=function(t,e,r,i,n){var s,o;if(arguments.length<4)return s=a.map(function(e){return Ji(t,e,r)}),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(i+"").split(" "),o={},a.forEach(function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,o,n)}});var bn,On,Mn={name:"css",register:Ui,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s,a,o,u,h,f,l,c,p,_,d,m,g,v,y,T,x=this._props,w=t.style,b=r.vars.startAt;for(l in qr||Ui(),this.styles=this.styles||Ii(t),T=this.styles.props,this.tween=r,e)if("autoRound"!==l&&(a=e[l],!Tt[l]||!ar(l,e,r,i,t,n)))if(h=typeof a,f=nn[l],"function"===h&&(h=typeof(a=a.call(r,i,t,n))),"string"===h&&~a.indexOf("random(")&&(a=Oe(a)),f)f(this,t,l,a,r)&&(y=1);else if("--"===l.substr(0,2))s=(getComputedStyle(t).getPropertyValue(l)+"").trim(),a+="",Ie.lastIndex=0,Ie.test(s)||(c=pe(s),p=pe(a)),p?c!==p&&(s=$i(t,l,s,p)+p):c&&(a+=c),this.add(w,"setProperty",s,a,i,n,0,0,l),x.push(l),T.push(l,0,w[l]);else if("undefined"!==h){if(b&&l in b?(s="function"==typeof b[l]?b[l].call(r,i,t,n):b[l],V(s)&&~s.indexOf("random(")&&(s=Oe(s)),pe(s+"")||"auto"===s||(s+=R.units[l]||pe(Ji(t,l))||""),"="===(s+"").charAt(1)&&(s=Ji(t,l))):s=Ji(t,l),u=parseFloat(s),(_="string"===h&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),l in yi&&("autoAlpha"===l&&(1===u&&"hidden"===Ji(t,"visibility")&&o&&(u=0),T.push("visibility",0,w.visibility),Qi(this,w,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==l&&"transform"!==l&&~(l=yi[l]).indexOf(",")&&(l=l.split(",")[0])),d=l in ci)if(this.styles.save(l),"string"===h&&"var(--"===a.substring(0,6)&&(a=Yi(t,a.substring(4,a.indexOf(")"))),o=parseFloat(a)),m||((g=t._gsap).renderTransform&&!e.parseTransform||ln(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new kr(this._pt,w,zi,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===l)this._pt=new kr(this._pt,g,"scaleY",g.scaleY,(_?Et(g.scaleY,_+o):o)-g.scaleY||0,Ti),this._pt.u=0,x.push("scaleY",l),l+="X";else{if("transformOrigin"===l){T.push(Si,0,w[Si]),a=en(a),g.svg?fn(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&Qi(this,g,"zOrigin",g.zOrigin,p),Qi(this,w,l,cn(s),cn(a)));continue}if("svgOrigin"===l){fn(t,a,1,v,0,this);continue}if(l in an){Tn(this,g,l,u,_?Et(u,_+a):a);continue}if("smoothOrigin"===l){Qi(this,g,"smooth",g.smooth,a);continue}if("force3D"===l){g[l]=a;continue}if("transform"===l){wn(this,a,t);continue}}else l in w||(l=Ni(l)||l);if(d||(o||0===o)&&(u||0===u)&&!vi.test(a)&&l in w)o||(o=0),(c=(s+"").substr((u+"").length))!==(p=pe(a)||(l in R.units?R.units[l]:c))&&(u=$i(t,l,s,p)),this._pt=new kr(this._pt,d?g:w,l,u,(_?Et(u,_+o):o)-u,d||"px"!==p&&"zIndex"!==l||!1===e.autoRound?Ti:bi),this._pt.u=p||0,c!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=wi);else if(l in w)Ki.call(this,t,l,s,_?_+a:a);else if(l in t)this.add(t,l,s||t[l],_?_+a:a,i,n);else if("parseTransform"!==l){ft(l,a);continue}d||(l in w?T.push(l,0,w[l]):"function"==typeof t[l]?T.push(l,2,t[l]()):T.push(l,1,s||t[l])),x.push(l)}y&&Mr(this)},render:function(t,e){if(e.tween._time||!Wr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Ji,aliases:yi,getSetter:function(t,e,r){var i=yi[e];return i&&i.indexOf(",")<0&&(e=i),e in ci&&e!==Si&&(t._gsap.x||Ji(t,"x"))?r&&jr===r?"scale"===e?Di:Ci:(jr=r||{})&&("scale"===e?Pi:Ei):t.style&&!G(t.style[e])?ki:~e.indexOf("-")?Ai:gr(t,e)},core:{_removeProperty:Gi,_getMatrix:hn}};Yr.utils.checkPrefix=Ni,Yr.core.getStyleSaver=Ii,On=Ct("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(bn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){ci[t]=1}),Ct(bn,function(t){R.units[t]="deg",an[t]=1}),yi[On[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+bn,Ct("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");yi[e[1]]=On[e[0]]}),Ct("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){R.units[t]="px"}),Yr.registerPlugin(Mn);var kn=Yr.registerPlugin(Mn)||Yr,An=kn.core.Tween;export{ai as Back,ui as Bounce,Mn as CSSPlugin,li as Circ,ei as Cubic,si as Elastic,fi as Expo,Kr as Linear,Qr as Power0,Hr as Power1,Zr as Power2,$r as Power3,Jr as Power4,ti as Quad,ri as Quart,ii as Quint,hi as Sine,oi as SteppedEase,ni as Strong,er as TimelineLite,er as TimelineMax,cr as TweenLite,An as TweenMax,kn as default,kn as gsap}; |