/*! For license information please see index8a928b6db8ae7c80ce1f.js.LICENSE.txt */ (()=>{"use strict";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,n,i,s,o,a,l,u,c,h,f,d,p,g,m,_,v,y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},x=1e8,w=1e-8,T=2*Math.PI,E=T/4,S=0,C=Math.sqrt,k=Math.cos,O=Math.sin,M=function(t){return"string"==typeof t},A=function(t){return"function"==typeof t},P=function(t){return"number"==typeof t},R=function(t){return void 0===t},D=function(t){return"object"==typeof t},z=function(t){return!1!==t},L=function(){return"undefined"!=typeof window},I=function(t){return A(t)||M(t)},F="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,N=/(?:-?\.?\d|\.)+/gi,q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Y=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,X=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,V=/[+-]=-?[.\d]+/,H=/[^,'"\[\]\s]+/gi,U=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W={},j={},G=function(t){return(j=Et(t,W))&&Er},$=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Q=function(t,e){return!e&&console.warn(t)},Z=function(t,e){return t&&(W[t]=e)&&j&&(j[t]=e)||W},K=function(){return 0},J={suppressEvents:!0,isStart:!0,kill:!1},tt={suppressEvents:!0,kill:!1},et={suppressEvents:!0},rt={},nt=[],it={},st={},ot={},at=30,lt=[],ut="",ct=function(t){var e,r,n=t[0];if(D(n)||A(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=lt.length;r--&&!lt[r].targetTest(n););e=lt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Be(t[r],e)))||t.splice(r,1);return t},ht=function(t){return t._gsap||ct(ee(t))[0]._gsap},ft=function(t,e,r){return(r=t[e])&&A(r)?t[e]():R(r)&&t.getAttribute&&t.getAttribute(e)||r},dt=function(t,e){return(t=t.split(",")).forEach(e)||t},pt=function(t){return Math.round(1e5*t)/1e5||0},gt=function(t){return Math.round(1e7*t)/1e7||0},mt=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},_t=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++ns;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Mt=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},At=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Pt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Rt=function(t,e,r,i){return t._startAt&&(n?t._startAt.revert(tt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Dt=function t(e){return!e||e._ts&&t(e.parent)},zt=function(t){return t._repeat?Lt(t._tTime,t=t.duration()+t._rDelay)*t:0},Lt=function(t,e){var r=Math.floor(t=gt(t/e));return t&&r===t?r-1:r},It=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ft=function(t){return t._end=gt(t._start+(t._tDur/Math.abs(t._ts||t._rts||w)||0))},Bt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=gt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ft(t),r._dirty||Pt(r,t)),t},Nt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._startw)&&e.render(r,!0)),Pt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},qt=function(t,e,r,n){return e.parent&&At(e),e._start=gt((P(r)?r:r||t!==s?Gt(t,r,e):t._time)+e._delay),e._end=gt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ot(t,e,"_first","_last",t._sort?"_start":0),Ht(e)||(t._recent=e),n||Nt(t,e),t._ts<0&&Bt(t,t._tTime),t},Yt=function(t,e){return(W.ScrollTrigger||$("scrollTrigger",e))&&W.ScrollTrigger.create(e,t)},Xt=function(t,e,r,i,s){return We(t,e,s),t._initted?!r&&t._pt&&!n&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==Se.frame?(nt.push(t),t._lazy=[s,i],1):void 0:1},Vt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Ht=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Ut=function(t,e,r,n){var i=t._repeat,s=gt(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:gt(s*(i+1)+t._rDelay*i):s,o>0&&!n&&Bt(t,t._tTime=t._tDur*o),t.parent&&Ft(t),r||Pt(t.parent,t),t},Wt=function(t){return t instanceof qe?Pt(t):Ut(t,t._dur)},jt={_start:0,endTime:K,totalDuration:K},Gt=function t(e,r,n){var i,s,o,a=e.labels,l=e._recent||jt,u=e.duration()>=x?l.endTime(!1):e._dur;return M(r)&&(isNaN(r)||r in a)?(s=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?l:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=u),a[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(s=s/100*(B(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},$t=function(t,e,r){var n,i,s=P(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=z(i.vars.inherit)&&i.parent;a.immediateRender=z(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new Ze(e[0],a,e[o+1])},Qt=function(t,e){return t||0===t?e(t):e},Zt=function(t,e,r){return re?e:r},Kt=function(t,e){return M(t)&&(e=U.exec(t))?e[1]:""},Jt=[].slice,te=function(t,e){return t&&D(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&D(t[0]))&&!t.nodeType&&t!==o},ee=function(t,e,r){return i&&!e&&i.selector?i.selector(t):!M(t)||r||!a&&Ce()?B(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return M(t)&&!e||te(t,1)?(n=r).push.apply(n,ee(t)):r.push(t)}))||r}(t,r):te(t)?Jt.call(t,0):t?[t]:[]:Jt.call((e||l).querySelectorAll(t),0)},re=function(t){return t=ee(t)[0]||Q("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return ee(e,r.querySelectorAll?r:r===t?Q("Invalid scope")||l.createElement("div"):t)}},ne=function(t){return t.sort((function(){return.5-Math.random()}))},ie=function(t){if(A(t))return t;var e=D(t)?t:{each:t},r=De(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,l=e.axis,u=n,c=n;return M(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(u=n[0],c=n[1]),function(t,o,h){var f,d,p,g,m,_,v,y,b,w=(h||e).length,T=s[w];if(!T){if(!(b="auto"===e.grid?0:(e.grid||[1,x])[1])){for(v=-x;v<(v=h[b++].getBoundingClientRect().left)&&bv&&(v=m),mw?w-1:l?"y"===l?w/b:b:Math.max(b,w/b))||0)*("edges"===n?-1:1),T.b=w<0?i-w:i,T.u=Kt(e.amount||e.each)||0,r=r&&w<0?Pe(r):r}return w=(T[t]-T.min)/T.max||0,gt(T.b+(r?r(w):w)*T.v)+T.u}},se=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=gt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(P(r)?0:Kt(r))}},oe=function(t,e){var r,n,i=B(t);return!i&&D(t)&&(r=i=t.radius||x,t.values?(t=ee(t.values),(n=!P(t[0]))&&(r*=r)):t=se(t.increment)),Qt(e,i?A(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),l=x,u=0,c=t.length;c--;)(i=n?(i=t[c].x-o)*i+(s=t[c].y-a)*s:Math.abs(t[c]-o))(i=Math.abs(i))&&(s=n,a=i);return s},fe=function(t,e,r){var n,s,o,a=t.vars,l=a[e],u=i,c=t._ctx;if(l)return n=a[e+"Params"],s=a.callbackScope||t,r&&nt.length&&vt(),c&&(i=c),o=n?l.apply(s,n):l.call(s),i=u,o},de=function(t){return At(t),t.scrollTrigger&&t.scrollTrigger.kill(!!n),t.progress()<1&&fe(t,"onInterrupt"),t},pe=[],ge=function(t){if(t)if(t=!t.name&&t.default||t,L()||t.headless){var e=t.name,r=A(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:K,render:or,add:He,kill:lr,modifier:ar,rawVars:0},s={targetTest:0,get:0,getSetter:rr,aliases:{},register:0};if(Ce(),t!==n){if(st[e])return;Tt(n,Tt(Ct(t,i),s)),Et(n.prototype,Et(i,Ct(t,s))),st[n.prop=e]=n,t.targetTest&&(lt.push(n),rt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Z(e,n),t.register&&t.register(Er,n,hr)}else pe.push(t)},me=255,_e={aqua:[0,me,me],lime:[0,me,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,me],navy:[0,0,128],white:[me,me,me],olive:[128,128,0],yellow:[me,me,0],orange:[me,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[me,0,0],pink:[me,192,203],cyan:[0,me,me],transparent:[me,me,me,0]},ve=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)*me+.5|0},ye=function(t,e,r){var n,i,s,o,a,l,u,c,h,f,d=t?P(t)?[t>>16,t>>8&me,t&me]:0:_e.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),_e[t])d=_e[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&me,d&me,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&me,t&me]}else if("hsl"===t.substr(0,3))if(d=f=t.match(N),e){if(~t.indexOf("="))return d=t.match(q),r&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,n=2*(l=+d[2]/100)-(i=l<=.5?l*(a+1):l+a-l*a),d.length>3&&(d[3]*=1),d[0]=ve(o+1/3,n,i),d[1]=ve(o,n,i),d[2]=ve(o-1/3,n,i);else d=t.match(N)||_e.transparent;d=d.map(Number)}return e&&!f&&(n=d[0]/me,i=d[1]/me,s=d[2]/me,l=((u=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,u===c?o=a=0:(h=u-c,a=l>.5?h/(2-u-c):h/(u+c),o=u===n?(i-s)/h+(ih||y<0)&&(p+=y-d),((a=(u=(g+=y)-p)-_)>0||b)&&(f=++n.frame,i=u-1e3*n.time,n.time=u/=1e3,_+=a+(a>=m?4:m-a),l=1),b||(t=e(r)),l)for(s=0;s=e&&s--},_listeners:v}}(),Ce=function(){return!f&&Se.wake()},ke={},Oe=/^[\d.\-M][\d.\-,\s]/,Me=/["']/g,Ae=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,l=s.length;a1&&o.config?o.config.apply(null,~t.indexOf("{")?[Ae(s[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),o=s/T*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*O((t-o)*s)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Le(a);return s=T/s,l.config=function(r,n){return t(e,r,n)},l},Fe=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Le(n);return i.config=function(r){return t(e,r)},i};dt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;ze(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),ke.Linear.easeNone=ke.none=ke.Linear.easeIn,ze("Elastic",Ie("in"),Ie("out"),Ie()),d=7.5625,m=2*(g=1/(p=2.75)),_=2.5*g,ze("Bounce",(function(t){return 1-v(1-t)}),v=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Ut(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ce(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Bt(this,t),!r._dp||r.parent||Nt(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&&t0||!this._tDur&&!t)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===w||!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+zt(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)+zt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Lt(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?It(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Zt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Ft(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ce(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==w&&(this._tTime-=w)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&qt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(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?It(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=et);var e=n;return n=t,yt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),n=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Wt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Wt(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(Gt(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&&t1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=A(t)?t:wt,i=function(){var t=e.then;e.then=null,A(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){de(this)},t}();Tt(Ne.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 qe=function(r){function i(e,n){var i;return void 0===e&&(e={}),(i=r.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=z(e.sortChildren),s&&qt(e.parent||s,t(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Yt(t(i),e.scrollTrigger),i}e(i,r);var o=i.prototype;return o.to=function(t,e,r){return $t(0,arguments,this),this},o.from=function(t,e,r){return $t(1,arguments,this),this},o.fromTo=function(t,e,r,n){return $t(2,arguments,this),this},o.set=function(t,e,r){return e.duration=0,e.parent=this,kt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ze(t,e,Gt(this,r),1),this},o.call=function(t,e,r){return qt(this,Ze.delayedCall(0,t,e),r)},o.staggerTo=function(t,e,r,n,i,s,o){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=o,r.parent=this,new Ze(t,r,Gt(this,i)),this},o.staggerFrom=function(t,e,r,n,i,s,o){return r.runBackwards=1,kt(r).immediateRender=z(r.immediateRender),this.staggerTo(t,e,r,n,i,s,o)},o.staggerFromTo=function(t,e,r,n,i,s,o,a){return n.startAt=r,kt(n).immediateRender=z(n.immediateRender),this.staggerTo(t,e,n,i,s,o,a)},o.render=function(t,e,r){var i,o,a,l,u,c,h,f,d,p,g,m,_=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,b=t<=0?0:gt(t),x=this._zTime<0!=t<0&&(this._initted||!y);if(this!==s&&b>v&&t>=0&&(b=v),b!==this._tTime||r||x){if(_!==this._time&&y&&(b+=this._time-_,t+=this._time-_),i=b,d=this._start,c=!(f=this._ts),x&&(y||(_=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(g=this._yoyo,u=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*u+t,e,r);if(i=gt(b%u),b===v?(l=this._repeat,i=y):((l=~~(p=gt(b/u)))&&l===p&&(i=y,l--),i>y&&(i=y)),p=Lt(this._tTime,u),!_&&this._tTime&&p!==l&&this._tTime-p*u-this._dur<=0&&(p=l),g&&1&l&&(i=y-i,m=1),l!==p&&!this._lock){var T=g&&1&p,E=T===(g&&1&l);if(le)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=_&&t>=0)for(o=this._first;o;){if(a=o._next,(o._act||i>=o._start)&&o._ts&&h!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(i-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(i-o._start)*o._ts,e,r),i!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=-1e-8);break}}o=a}else{o=this._last;for(var S=t<0?t:i;o;){if(a=o._prev,(o._act||S<=o._end)&&o._ts&&h!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(S-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(S-o._start)*o._ts,e,r||n&&yt(o)),i!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=S?-1e-8:w);break}}o=a}}if(h&&!e&&(this.pause(),h.render(i>=_?0:-1e-8)._zTime=i>=_?1:-1,this._ts))return this._start=d,Ft(this),this.render(t,e,r);this._onUpdate&&!e&&fe(this,"onUpdate",!0),(b===v&&this._tTime>=this.totalDuration()||!b&&_)&&(d!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(b===v&&this._ts>0||!b&&this._ts<0)&&At(this,1),e||t<0&&!_||!b&&!_&&v||(fe(this,b===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b0)&&this._prom())))}return this},o.add=function(t,e){var r=this;if(P(e)||(e=Gt(this,e,t)),!(t instanceof Ne)){if(B(t))return t.forEach((function(t){return r.add(t,e)})),this;if(M(t))return this.addLabel(t,e);if(!A(t))return this;t=Ze.delayedCall(0,t)}return this!==t?qt(this,t,e):this},o.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-x);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof Ze?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},o.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},o.remove=function(t){return M(t)?this.removeLabel(t):A(t)?this.killTweensOf(t):(t.parent===this&&Mt(this,t),t===this._recent&&(this._recent=this._last),Pt(this))},o.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=gt(Se.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},o.addLabel=function(t,e){return this.labels[t]=Gt(this,e),this},o.removeLabel=function(t){return delete this.labels[t],this},o.addPause=function(t,e,r){var n=Ze.delayedCall(0,e||K,r);return n.data="isPause",this._hasPause=1,qt(this,n,Gt(this,t))},o.removePause=function(t){var e=this._first;for(t=Gt(this,t);e;)e._start===t&&"isPause"===e.data&&At(e),e=e._next},o.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Ye!==n[i]&&n[i].kill(t,e);return this},o.getTweensOf=function(t,e){for(var r,n=[],i=ee(t),s=this._first,o=P(e);s;)s instanceof Ze?_t(s._targets,i)&&(o?(!Ye||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},o.tweenTo=function(t,e){e=e||{};var r,n=this,i=Gt(n,t),s=e,o=s.startAt,a=s.onStart,l=s.onStartParams,u=s.immediateRender,c=Ze.to(n,Tt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||w,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==t&&Ut(c,t,0,1).render(c._time,!0,!0),r=1}a&&a.apply(c,l||[])}},e));return u?c.render(0):c},o.tweenFromTo=function(t,e,r){return this.tweenTo(e,Tt({startAt:{time:Gt(this,t)}},r))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),he(this,Gt(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),he(this,Gt(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+w)},o.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return Pt(this)},o.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return r.prototype.invalidate.call(this,t)},o.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Pt(this)},o.totalDuration=function(t){var e,r,n,i=0,o=this,a=o._last,l=x;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(n=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,qt(o,a,r-a._delay,1)._lock=0):l=r,r<0&&a._ts&&(i-=r,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=r/o._ts,o._time-=r,o._tTime-=r),o.shiftChildren(-r,!1,-Infinity),l=0),a._end>i&&a._ts&&(i=a._end),a=e;Ut(o,o===s&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},i.updateRoot=function(t){if(s._ts&&(bt(s,It(t,s)),c=Se.frame),Se.frame>=at){at+=y.autoSleep||120;var e=s._first;if((!e||!e._ts)&&y.autoSleep&&Se._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Se.sleep()}}},i}(Ne);Tt(qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ye,Xe,Ve=function(t,e,r,n,i,s,o){var a,l,u,c,h,f,d,p,g=new hr(this._pt,t,e,0,1,sr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=ue(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match(X)||[];a=X.exec(n);)c=a[0],h=n.substring(m,a.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)?mt(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},m=X.lastIndex);return g.c=m")})),u.duration();else{for(d in h={},E)"ease"===d||"easeEach"===d||je(d,E[d],h,E.easeEach);for(d in h)for(A=h[d].sort((function(t,e){return t.t-e.t})),N=0,c=0;cp-w&&!m?p:tg&&(i=g),(u=this._yoyo&&1&o)&&(f=this._yEase,i=g-i),l=Lt(this._tTime,a),i===d&&!r&&this._initted&&o===l)return this._tTime=_,this;o!==l&&(h&&this._yEase&&Re(h,u),this.vars.repeatRefresh&&!u&&!this._lock&&i!==a&&this._initted&&(this._lock=r=1,this.render(gt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Xt(this,m?t:i,r,e,_))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&o!==l))return this;if(g!==this._dur)return this.render(t,e,r)}if(this._tTime=_,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(i/g),this._from&&(this.ratio=c=1-c),!d&&_&&!e&&!l&&(fe(this,"onStart"),this._tTime!==_))return this;for(s=this._pt;s;)s.r(c,s.d),s=s._next;h&&h.render(t<0?t:h._dur*h._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Rt(this,t,0,r),fe(this,"onUpdate")),this._repeat&&o!==l&&this.vars.onRepeat&&!e&&this.parent&&fe(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(m&&!this._onUpdate&&Rt(this,t,0,!0),(t||!g)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&At(this,1),e||m&&!d||!(_||d||u)||(fe(this,_===p?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom()))}}else!function(t,e,r,i){var s,o,a,l=t.ratio,u=e<0||!e&&(!t._start&&Vt(t)&&(t._initted||!Ht(t))||(t._ts<0||t._dp._ts<0)&&!Ht(t))?0:1,c=t._rDelay,h=0;if(c&&t._repeat&&(h=Zt(0,t._tDur,e),o=Lt(h,c),t._yoyo&&1&o&&(u=1-u),o!==Lt(t._tTime,c)&&(l=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==l||n||i||t._zTime===w||!e&&t._zTime){if(!t._initted&&Xt(t,e,i,r,h))return;for(a=t._zTime,t._zTime=e||(r?w:0),r||(r=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=h,s=t._pt;s;)s.r(u,s.d),s=s._next;e<0&&Rt(t,e,0,!0),t._onUpdate&&!r&&fe(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&fe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&At(t,1),r||n||(fe(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},a.targets=function(){return this._targets},a.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),i.prototype.invalidate.call(this,t)},a.resetTo=function(t,e,r,n,i){f||Se.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||We(this,s),function(t,e,r,n,i,s,o,a){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 Xe=1,t.vars[e]="+=0",We(t,o),Xe=0,a?Q(e+" not eligible for reset"):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=pt(r)+Kt(u.e)),u.b&&(u.b=l.s+Kt(u.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Bt(this,0),this.parent||Ot(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?de(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ye&&!0!==Ye.vars.overwrite)._first||de(this),this.parent&&r!==this.timeline.totalDuration()&&Ut(this,this._dur*this.timeline._tDur/r,0,1),this}var i,s,o,a,l,u,c,h=this._targets,f=t?ee(t):h,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(h,f))return"all"===e&&(this._pt=0),de(this);for(i=this._op=this._op||[],"all"!==e&&(M(e)&&(l={},dt(e,(function(t){return l[t]=1})),e=l),e=function(t,e){var r,n,i,s,o=t[0]?ht(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in r=Et({},e),a)if(n in r)for(i=(s=a[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(h,e)),c=h.length;c--;)if(~f.indexOf(h[c]))for(l in s=d[c],"all"===e?(i[c]=e,a=s,o={}):(o=i[c]=i[c]||{},a=e),a)(u=s&&s[l])&&("kill"in u.d&&!0!==u.d.kill(l)||Mt(this,u,"_pt"),delete s[l]),"all"!==o&&(o[l]=1);return this._initted&&!this._pt&&p&&de(this),this},o.to=function(t,e){return new o(t,e,arguments[2])},o.from=function(t,e){return $t(1,arguments)},o.delayedCall=function(t,e,r,n){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},o.fromTo=function(t,e,r){return $t(2,arguments)},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},o}(Ne);Tt(Ze.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),dt("staggerTo,staggerFrom,staggerFromTo",(function(t){Ze[t]=function(){var e=new qe,r=Jt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var Ke=function(t,e,r){return t[e]=r},Je=function(t,e,r){return t[e](r)},tr=function(t,e,r,n){return t[e](n.fp,r)},er=function(t,e,r){return t.setAttribute(e,r)},rr=function(t,e){return A(t[e])?Je:R(t[e])&&t.setAttribute?er:Ke},nr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ir=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},sr=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},ar=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},lr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Mt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},ur=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},cr=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},hr=function(){function t(t,e,r,n,i,s,o,a,l){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||nr,this.d=o||this,this.set=a||Ke,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=ur,this.m=t,this.mt=r,this.tween=e},t}();dt(ut+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return rt[t]=1})),W.TweenMax=W.TweenLite=Ze,W.TimelineLite=W.TimelineMax=qe,s=new qe({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),y.stringFilter=Ee;var fr=[],dr={},pr=[],gr=0,mr=0,_r=function(t){return(dr[t]||pr).map((function(t){return t()}))},vr=function(){var t=Date.now(),e=[];t-gr>2&&(_r("matchMediaInit"),fr.forEach((function(t){var r,n,i,s,a=t.queries,l=t.conditions;for(n in a)(r=o.matchMedia(a[n]).matches)&&(i=1),r!==l[n]&&(l[n]=r,s=1);s&&(t.revert(),i&&e.push(t))})),_r("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),gr=t,_r("matchMedia"))},yr=function(){function t(t,e){this.selector=e&&re(e),this.data=[],this._r=[],this.isReverted=!1,this.id=mr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){A(t)&&(r=e,e=t,t=A);var n=this,s=function(){var t,s=i,o=n.selector;return s&&s!==n&&s.data.push(n),r&&(n.selector=re(r)),i=n,t=e.apply(n,arguments),A(t)&&n._r.push(t),i=s,n.selector=o,n.isReverted=!1,t};return n.last=s,t===A?s(n,(function(t){return n.add(null,t)})):t?n[t]=s:s},e.ignore=function(t){var e=i;i=null,t(this),i=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Ze&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})));for(n.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}})).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 qe?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Ze)&&e.revert&&e.revert(t);r._r.forEach((function(e){return e(t,r)})),r.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var n=fr.length;n--;)fr[n].id===this.id&&fr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),br=function(){function t(t){this.contexts=[],this.scope=t,i&&i.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){D(t)||(t={matches:t});var n,s,a,l=new yr(0,r||this.scope),u=l.conditions={};for(s in i&&!l.selector&&(l.selector=i.selector),this.contexts.push(l),e=l.add("onMatch",e),l.queries=t,t)"all"===s?a=1:(n=o.matchMedia(t[s]))&&(fr.indexOf(l)<0&&fr.push(l),(u[s]=n.matches)&&(a=1),n.addListener?n.addListener(vr):n.addEventListener("change",vr));return a&&e(l,(function(t){return l.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),xr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r1){var n=t.map((function(t){return Er.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=st[e],o=ht(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;h._pt=0,n.init(t,r?e+r:e,h,0,[t]),n.render(1,n),h._pt&&or(1,h)}:o.set(t,a);return s?l:function(e){return l(t,a,r?e+r:e,o,1)}},quickTo:function(t,e,r){var n,i=Er.to(t,Tt(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),s=function(t,r,n){return i.resetTo(e,t,r,n)};return s.tween=i,s},isTweening:function(t){return s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=De(t.ease,b.ease)),St(b,t||{})},config:function(t){return St(y,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!st[t]&&!W[t]&&Q(e+" effect requires "+t+" plugin.")})),ot[e]=function(t,e,n){return r(ee(t),Tt(e||{},i),n)},s&&(qe.prototype[e]=function(t,r,n){return this.add(ot[e](t,D(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){ke[t]=De(e)},parseEase:function(t,e){return arguments.length?De(t,e):ke},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new qe(t);for(i.smoothChildTiming=z(t.smoothChildTiming),s.remove(i),i._dp=0,i._time=i._tTime=s._time,r=s._first;r;)n=r._next,!e&&!r._dur&&r instanceof Ze&&r.vars.onComplete===r._targets[0]||qt(i,r,r._start-r._delay),r=n;return qt(s,i,0),i},context:function(t,e){return t?new yr(t,e):i},matchMedia:function(t){return new br(t)},matchMediaRefresh:function(){return fr.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||vr()},addEventListener:function(t,e){var r=dr[t]||(dr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=dr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return B(e)?le(e,t(0,e.length),r):Qt(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return B(e)?le(e,t(0,e.length-1),r):Qt(n,(function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)}))},distribute:ie,random:ae,snap:oe,normalize:function(t,e,r){return ce(t,e,0,1,r)},getUnit:Kt,clamp:function(t,e,r){return Qt(r,(function(r){return Zt(t,e,r)}))},splitColor:ye,toArray:ee,selector:re,mapRange:ce,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(tn,r,"")),e=Jr}(s||r)&&this.props.push(e,r,s[e])},rn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},nn=function(){var t,e,r=this.props,n=this.target,i=n.style,s=n._gsap;for(t=0;t=0?ln[i]:"")+t},cn=function(){"undefined"!=typeof window&&window.document&&(Sr=window,Cr=Sr.document,kr=Cr.documentElement,Mr=on("div")||{style:{}},on("div"),Jr=un(Jr),tn=Jr+"Origin",Mr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rr=!!un("perspective"),Pr=Er.core.reverting,Or=1)},hn=function(t){var e,r=t.ownerSVGElement,n=on("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),kr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),kr.removeChild(n),e},fn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},dn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=hn(t),r=1}return e&&(e.width||e.height)||r||(e=hn(t)),!e||e.width||e.x||e.y?e:{x:+fn(t,["x","cx","x1"])||0,y:+fn(t,["y","cy","y1"])||0,width:0,height:0}},pn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!dn(t))},gn=function(t,e){if(e){var r,n=t.style;e in Dr&&e!==tn&&(e=Jr),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Fr,"-$1").toLowerCase())):n.removeAttribute(e)}},mn=function(t,e,r,n,i,s){var o=new hr(t._pt,e,r,0,1,s?Wr:Ur);return t._pt=o,o.b=n,o.e=i,t._props.push(r),o},_n={deg:1,rad:1,turn:1},vn={grid:1,flex:1},yn=function t(e,r,n,i){var s,o,a,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",h=Mr.style,f=Br.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!u||_n[i]||_n[c])return u;if("px"!==c&&!m&&(u=t(e,r,n,"px")),l=e.getCTM&&pn(e),(_||"%"===c)&&(Dr[r]||~r.indexOf("adius")))return s=l?e.getBBox()[f?"width":"height"]:e[p],pt(_?u/s*g:u/100*s);if(h[f?"width":"height"]=g+(m?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Cr&&o.appendChild||(o=Cr.body),(a=o._gsap)&&_&&a.width&&f&&a.time===Se.time&&!a.uncache)return pt(u/a.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!vn[an(o,"display")]&&(h.position=an(e,"position")),o===e&&(h.position="static"),o.appendChild(Mr),s=Mr[p],o.removeChild(Mr),h.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[p],v?e.style[r]=v:gn(e,r)}return f&&_&&((a=ht(o)).time=Se.time,a.width=o[p]),pt(m?s*u/g:s&&u?g/s*u:0)},bn=function(t,e,r,n){var i;return Or||cn(),e in qr&&"transform"!==e&&~(e=qr[e]).indexOf(",")&&(e=e.split(",")[0]),Dr[e]&&"transform"!==e?(i=Pn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Rn(an(t,tn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=En[e]&&En[e](t,e,r)||an(t,e)||ft(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?yn(t,e,i,r)+r:i},xn=function(t,e,r,n){if(!r||"none"===r){var i=un(e,t,1),s=i&&an(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=an(t,"borderTopColor"))}var o,a,l,u,c,h,f,d,p,g,m,_=new hr(this._pt,t.style,e,0,1,sr),v=0,b=0;if(_.b=r,_.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=an(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=an(t,e)||n,h?t.style[e]=h:gn(t,e)),Ee(o=[r,n]),n=o[1],l=(r=o[0]).match(Y)||[],(n.match(Y)||[]).length){for(;a=Y.exec(n);)f=a[0],p=n.substring(v,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=l[b++]||"")&&(u=parseFloat(h)||0,m=h.substr((u+"").length),"="===f.charAt(1)&&(f=mt(u,f)+m),d=parseFloat(f),g=f.substr((d+"").length),v=Y.lastIndex-g.length,g||(g=g||y.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(u=yn(t,e,h,g)||0),_._pt={_next:_._pt,p:p||1===b?p:",",s:u,c:d-u,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=v-1;)r=a[i],Dr[r]&&(n=1,r="transformOrigin"===r?tn:Jr),gn(s,r);n&&(gn(s,Jr),l&&(l.svg&&s.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Pn(s,1),l.uncache=1,rn(o)))}},En={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new hr(t._pt,e,r,0,0,Tn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Sn=[1,0,0,1,0,0],Cn={},kn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},On=function(t){var e=an(t,Jr);return kn(e)?Sn:e.substr(7).match(q).map(pt)},Mn=function(t,e){var r,n,i,s,o=t._gsap||ht(t),a=t.style,l=On(t);return o.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(",")?Sn:l:(l!==Sn||t.offsetParent||t===kr||o.svg||(i=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,kr.appendChild(t)),l=On(t),i?a.display=i:gn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):kr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},An=function(t,e,r,n,i,s){var o,a,l,u=t._gsap,c=i||Mn(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],b=c[5],x=e.split(" "),w=parseFloat(x[0])||0,T=parseFloat(x[1])||0;r?c!==Sn&&(a=g*v-m*_)&&(l=w*(-m/a)+T*(g/a)-(g*b-m*y)/a,w=w*(v/a)+T*(-_/a)+(_*b-v*y)/a,T=l):(w=(o=dn(t)).x+(~x[0].indexOf("%")?w/100*o.width:w),T=o.y+(~(x[1]||x[0]).indexOf("%")?T/100*o.height:T)),n||!1!==n&&u.smooth?(y=w-h,b=T-f,u.xOffset=d+(y*g+b*_)-y,u.yOffset=p+(y*m+b*v)-b):u.xOffset=u.yOffset=0,u.xOrigin=w,u.yOrigin=T,u.smooth=!!n,u.origin=e,u.originIsAbsolute=!!r,t.style[tn]="0px 0px",s&&(mn(s,u,"xOrigin",h,w),mn(s,u,"yOrigin",f,T),mn(s,u,"xOffset",d,u.xOffset),mn(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Pn=function(t,e){var r=t._gsap||new Be(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,o,a,l,u,c,h,f,d,p,g,m,_,v,b,x,w,T,E,S,C,k,O,M,A,P,R,D,z,L,I=t.style,F=r.scaleX<0,B="px",N="deg",q=getComputedStyle(t),Y=an(t,tn)||"0";return n=i=s=l=u=c=h=f=d=0,o=a=1,r.svg=!(!t.getCTM||!pn(t)),q.translate&&("none"===q.translate&&"none"===q.scale&&"none"===q.rotate||(I[Jr]=("none"!==q.translate?"translate3d("+(q.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==q.rotate?"rotate("+q.rotate+") ":"")+("none"!==q.scale?"scale("+q.scale.split(" ").join(",")+") ":"")+("none"!==q[Jr]?q[Jr]:"")),I.scale=I.rotate=I.translate="none"),m=Mn(t,r.svg),r.svg&&(r.uncache?(O=t.getBBox(),Y=r.xOrigin-O.x+"px "+(r.yOrigin-O.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),An(t,k||Y,!!k||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,g=r.yOrigin||0,m!==Sn&&(x=m[0],w=m[1],T=m[2],E=m[3],n=S=m[4],i=C=m[5],6===m.length?(o=Math.sqrt(x*x+w*w),a=Math.sqrt(E*E+T*T),l=x||w?Ir(w,x)*zr:0,(h=T||E?Ir(T,E)*zr+l:0)&&(a*=Math.abs(Math.cos(h*Lr))),r.svg&&(n-=p-(p*x+g*T),i-=g-(p*w+g*E))):(L=m[6],D=m[7],A=m[8],P=m[9],R=m[10],z=m[11],n=m[12],i=m[13],s=m[14],u=(_=Ir(L,R))*zr,_&&(k=S*(v=Math.cos(-_))+A*(b=Math.sin(-_)),O=C*v+P*b,M=L*v+R*b,A=S*-b+A*v,P=C*-b+P*v,R=L*-b+R*v,z=D*-b+z*v,S=k,C=O,L=M),c=(_=Ir(-T,R))*zr,_&&(v=Math.cos(-_),z=E*(b=Math.sin(-_))+z*v,x=k=x*v-A*b,w=O=w*v-P*b,T=M=T*v-R*b),l=(_=Ir(w,x))*zr,_&&(k=x*(v=Math.cos(_))+w*(b=Math.sin(_)),O=S*v+C*b,w=w*v-x*b,C=C*v-S*b,x=k,S=O),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=pt(Math.sqrt(x*x+w*w+T*T)),a=pt(Math.sqrt(C*C+L*L)),_=Ir(S,C),h=Math.abs(_)>2e-4?_*zr:0,d=z?1/(z<0?-z:z):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!kn(an(t,Jr)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(F?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+B,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+B,r.z=s+B,r.scaleX=pt(o),r.scaleY=pt(a),r.rotation=pt(l)+N,r.rotationX=pt(u)+N,r.rotationY=pt(c)+N,r.skewX=h+N,r.skewY=f+N,r.transformPerspective=d+B,(r.zOrigin=parseFloat(Y.split(" ")[2])||!e&&r.zOrigin||0)&&(I[tn]=Rn(Y)),r.xOffset=r.yOffset=0,r.force3D=y.force3D,r.renderTransform=r.svg?Nn:Rr?Bn:zn,r.uncache=0,r},Rn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Dn=function(t,e,r){var n=Kt(e);return pt(parseFloat(e)+parseFloat(yn(t,"x",r+"px",n)))+n},zn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Bn(t,e)},Ln="0deg",In="0px",Fn=") ",Bn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,o=r.y,a=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="",b="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==Ln||u!==Ln)){var x,w=parseFloat(u)*Lr,T=Math.sin(w),E=Math.cos(w);w=parseFloat(c)*Lr,x=Math.cos(w),s=Dn(_,s,T*x*-v),o=Dn(_,o,-Math.sin(w)*-v),a=Dn(_,a,E*x*-v+v)}g!==In&&(y+="perspective("+g+Fn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==In||o!==In||a!==In)&&(y+=a!==In||b?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Fn),l!==Ln&&(y+="rotate("+l+Fn),u!==Ln&&(y+="rotateY("+u+Fn),c!==Ln&&(y+="rotateX("+c+Fn),h===Ln&&f===Ln||(y+="skew("+h+", "+f+Fn),1===d&&1===p||(y+="scale("+d+", "+p+Fn),_.style[Jr]=y||"translate(0, 0)"},Nn=function(t,e){var r,n,i,s,o,a=e||this,l=a.xPercent,u=a.yPercent,c=a.x,h=a.y,f=a.rotation,d=a.skewX,p=a.skewY,g=a.scaleX,m=a.scaleY,_=a.target,v=a.xOrigin,y=a.yOrigin,b=a.xOffset,x=a.yOffset,w=a.forceCSS,T=parseFloat(c),E=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Lr,d*=Lr,r=Math.cos(f)*g,n=Math.sin(f)*g,i=Math.sin(f-d)*-m,s=Math.cos(f-d)*m,d&&(p*=Lr,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),r*=o=Math.sqrt(1+o*o),n*=o)),r=pt(r),n=pt(n),i=pt(i),s=pt(s)):(r=g,s=m,n=i=0),(T&&!~(c+"").indexOf("px")||E&&!~(h+"").indexOf("px"))&&(T=yn(_,"x",c,"px"),E=yn(_,"y",h,"px")),(v||y||b||x)&&(T=pt(T+v-(v*r+y*i)+b),E=pt(E+y-(v*n+y*s)+x)),(l||u)&&(o=_.getBBox(),T=pt(T+l/100*o.width),E=pt(E+u/100*o.height)),o="matrix("+r+","+n+","+i+","+s+","+T+","+E+")",_.setAttribute("transform",o),w&&(_.style[Jr]=o)},qn=function(t,e,r,n,i){var s,o,a=360,l=M(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?zr:1)-n,c=n+u+"deg";return l&&("short"===(s=i.split("_")[1])&&(u%=a)!=u%180&&(u+=u<0?a:-360),"cw"===s&&u<0?u=(u+36e9)%a-~~(u/a)*a:"ccw"===s&&u>0&&(u=(u-36e9)%a-~~(u/a)*a)),t._pt=o=new hr(t._pt,e,r,n,u,Xr),o.e=c,o.u="deg",t._props.push(r),o},Yn=function(t,e){for(var r in e)t[r]=e[r];return t},Xn=function(t,e,r){var n,i,s,o,a,l,u,c=Yn({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[Jr]=e,n=Pn(r,1),gn(r,Jr),r.setAttribute("transform",s)):(s=getComputedStyle(r)[Jr],h[Jr]=e,n=Pn(r,1),h[Jr]=s),Dr)(s=c[i])!==(o=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Kt(s)!==(u=Kt(o))?yn(r,i,s,u):parseFloat(s),l=parseFloat(o),t._pt=new hr(t._pt,n,i,a,l-a,Yr),t._pt.u=u||0,t._props.push(i));Yn(n,c)};dt("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",s="Left",o=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map((function(r){return e<2?t+r:"border"+r+t}));En[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return s=o.map((function(e){return bn(t,e,r)})),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach((function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,a,i)}}));var Vn,Hn,Un={name:"css",register:cn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,o,a,l,u,c,h,f,d,p,g,m,_,v,b,x,w,T,E,S,C=this._props,k=t.style,O=r.vars.startAt;for(h in Or||cn(),this.styles=this.styles||sn(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(o=e[h],!st[h]||!Ue(h,e,r,n,t,i)))if(u=typeof o,c=En[h],"function"===u&&(u=typeof(o=o.call(r,n,t,i))),"string"===u&&~o.indexOf("random(")&&(o=ue(o)),c)c(this,t,h,o,r)&&(b=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",we.lastIndex=0,we.test(s)||(f=Kt(s),d=Kt(o)),d?f!==d&&(s=yn(t,h,s,d)+d):f&&(o+=f),this.add(k,"setProperty",s,o,n,i,0,0,h),C.push(h),x.push(h,0,k[h]);else if("undefined"!==u){if(O&&h in O?(s="function"==typeof O[h]?O[h].call(r,n,t,i):O[h],M(s)&&~s.indexOf("random(")&&(s=ue(s)),Kt(s+"")||"auto"===s||(s+=y.units[h]||Kt(bn(t,h))||""),"="===(s+"").charAt(1)&&(s=bn(t,h))):s=bn(t,h),l=parseFloat(s),(p="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),h in qr&&("autoAlpha"===h&&(1===l&&"hidden"===bn(t,"visibility")&&a&&(l=0),x.push("visibility",0,k.visibility),mn(this,k,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=qr[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in Dr)if(this.styles.save(h),"string"===u&&"var(--"===o.substring(0,6)&&(o=an(t,o.substring(4,o.indexOf(")"))),a=parseFloat(o)),m||((_=t._gsap).renderTransform&&!e.parseTransform||Pn(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new hr(this._pt,k,Jr,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===h)this._pt=new hr(this._pt,_,"scaleY",_.scaleY,(p?mt(_.scaleY,p+a):a)-_.scaleY||0,Yr),this._pt.u=0,C.push("scaleY",h),h+="X";else{if("transformOrigin"===h){x.push(tn,0,k[tn]),T=void 0,E=void 0,S=void 0,E=(T=(w=o).split(" "))[0],S=T[1]||"50%","top"!==E&&"bottom"!==E&&"left"!==S&&"right"!==S||(w=E,E=S,S=w),T[0]=wn[E]||E,T[1]=wn[S]||S,o=T.join(" "),_.svg?An(t,o,0,v,0,this):((d=parseFloat(o.split(" ")[2])||0)!==_.zOrigin&&mn(this,_,"zOrigin",_.zOrigin,d),mn(this,k,h,Rn(s),Rn(o)));continue}if("svgOrigin"===h){An(t,o,1,v,0,this);continue}if(h in Cn){qn(this,_,h,l,p?mt(l,p+o):o);continue}if("smoothOrigin"===h){mn(this,_,"smooth",_.smooth,o);continue}if("force3D"===h){_[h]=o;continue}if("transform"===h){Xn(this,o,t);continue}}else h in k||(h=un(h)||h);if(g||(a||0===a)&&(l||0===l)&&!Nr.test(o)&&h in k)a||(a=0),(f=(s+"").substr((l+"").length))!==(d=Kt(o)||(h in y.units?y.units[h]:f))&&(l=yn(t,h,s,d)),this._pt=new hr(this._pt,g?_:k,h,l,(p?mt(l,p+a):a)-l,g||"px"!==d&&"zIndex"!==h||!1===e.autoRound?Yr:Hr),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Vr);else if(h in k)xn.call(this,t,h,s,p?p+o:o);else if(h in t)this.add(t,h,s||t[h],p?p+o:o,n,i);else if("parseTransform"!==h){$(h,o);continue}g||(h in k?x.push(h,0,k[h]):"function"==typeof t[h]?x.push(h,2,t[h]()):x.push(h,1,s||t[h])),C.push(h)}b&&cr(this)},render:function(t,e){if(e.tween._time||!Pr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:bn,aliases:qr,getSetter:function(t,e,r){var n=qr[e];return n&&n.indexOf(",")<0&&(e=n),e in Dr&&e!==tn&&(t._gsap.x||bn(t,"x"))?r&&Ar===r?"scale"===e?Qr:$r:(Ar=r||{})&&("scale"===e?Zr:Kr):t.style&&!R(t.style[e])?jr:~e.indexOf("-")?Gr:rr(t,e)},core:{_removeProperty:gn,_getMatrix:Mn}};Er.utils.checkPrefix=un,Er.core.getStyleSaver=sn,Hn=dt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Vn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Dr[t]=1})),dt(Vn,(function(t){y.units[t]="deg",Cn[t]=1})),qr[Hn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Vn,dt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");qr[e[1]]=Hn[e[0]]})),dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){y.units[t]="px"})),Er.registerPlugin(Un);var Wn=Er.registerPlugin(Un)||Er;function jn(t,e){for(var r=0;ra?(i=n,n=t,o=s,s=l):r?n+=t:n=i+(t-i)/(l-o)*(s-o)};return{update:u,reset:function(){i=n=r?0:n,o=s=0},getVelocity:function(t){var e=o,a=i,c=fi();return(t||0===t)&&t!==n&&u(t),s===o||c-o>l?0:(n+(r?a:-a))/((r?c:s)-e)*1e3}}},ki=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Oi=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Mi=function(){var t,e,r,n;(ri=Gn.core.globals().ScrollTrigger)&&ri.core&&(t=ri.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,ci),n.push.apply(n,hi),ci=r,hi=n,di=function(t,r){return e[t](r)})},Ai=function(t){return Gn=t||ai(),!$n&&Gn&&"undefined"!=typeof document&&document.body&&(Qn=window,Zn=document,Kn=Zn.documentElement,Jn=Zn.body,ni=[Qn,Zn,Kn,Jn],Gn.utils.clamp,oi=Gn.core.context||function(){},ei="onpointerenter"in Jn?"pointer":"mouse",ti=Pi.isTouch=Qn.matchMedia&&Qn.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Qn||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,si=Pi.eventTypes=("ontouchstart"in Kn?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Kn?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return li=0}),500),Mi(),$n=1),$n};wi.op=Ti,ci.cache=0;var Pi=function(){function t(t){this.init(t)}var e,r;return t.prototype.init=function(t){$n||Ai(Gn)||console.warn("Please gsap.registerPlugin(Observer)"),ri||Mi();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,o=t.debounce,a=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,b=t.onUp,x=t.onDown,w=t.onChangeX,T=t.onChangeY,E=t.onChange,S=t.onToggleX,C=t.onToggleY,k=t.onHover,O=t.onHoverEnd,M=t.onMove,A=t.ignoreCheck,P=t.isNormalizer,R=t.onGestureStart,D=t.onGestureEnd,z=t.onWheel,L=t.onEnable,I=t.onDisable,F=t.onClick,B=t.scrollSpeed,N=t.capture,q=t.allowClicks,Y=t.lockAxis,X=t.onLockAxis;this.target=i=Ei(i)||Kn,this.vars=t,c&&(c=Gn.utils.toArray(c)),e=e||1e-9,r=r||0,h=h||1,B=B||1,n=n||"wheel,touch,pointer",o=!1!==o,s||(s=parseFloat(Qn.getComputedStyle(Jn).lineHeight)||22);var V,H,U,W,j,G,$,Q=this,Z=0,K=0,J=t.passive||!a&&!1!==t.passive,tt=Si(i,wi),et=Si(i,Ti),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===si[0],st=gi(i),ot=i.ownerDocument||Zn,at=[0,0,0],lt=[0,0,0],ut=0,ct=function(){return ut=fi()},ht=function(t,e){return(Q.event=t)&&c&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,c)||e&&it&&"touch"!==t.pointerType||A&&A(t,e)},ft=function(){var t=Q.deltaX=Oi(at),r=Q.deltaY=Oi(lt),n=Math.abs(t)>=e,i=Math.abs(r)>=e;E&&(n||i)&&E(Q,t,r,at,lt),n&&(v&&Q.deltaX>0&&v(Q),y&&Q.deltaX<0&&y(Q),w&&w(Q),S&&Q.deltaX<0!=Z<0&&S(Q),Z=Q.deltaX,at[0]=at[1]=at[2]=0),i&&(x&&Q.deltaY>0&&x(Q),b&&Q.deltaY<0&&b(Q),T&&T(Q),C&&Q.deltaY<0!=K<0&&C(Q),K=Q.deltaY,lt[0]=lt[1]=lt[2]=0),(W||U)&&(M&&M(Q),U&&(d&&1===U&&d(Q),g&&g(Q),U=0),W=!1),G&&!(G=!1)&&X&&X(Q),j&&(z(Q),j=!1),V=0},dt=function(t,e,r){at[r]+=t,lt[r]+=e,Q._vx.update(t),Q._vy.update(e),o?V||(V=requestAnimationFrame(ft)):ft()},pt=function(t,e){Y&&!$&&(Q.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(at[2]+=t,Q._vx.update(t,!0)),"x"!==$&&(lt[2]+=e,Q._vy.update(e,!0)),o?V||(V=requestAnimationFrame(ft)):ft()},gt=function(t){if(!ht(t,1)){var e=(t=ki(t,a)).clientX,n=t.clientY,i=e-Q.x,s=n-Q.y,o=Q.isDragging;Q.x=e,Q.y=n,(o||(i||s)&&(Math.abs(Q.startX-e)>=r||Math.abs(Q.startY-n)>=r))&&(U=o?2:1,o||(Q.isDragging=!0),pt(i,s))}},mt=Q.onPress=function(t){ht(t,1)||t&&t.button||(Q.axis=$=null,H.pause(),Q.isPressed=!0,t=ki(t),Z=K=0,Q.startX=Q.x=t.clientX,Q.startY=Q.y=t.clientY,Q._vx.reset(),Q._vy.reset(),mi(P?i:ot,si[1],gt,J,!0),Q.deltaX=Q.deltaY=0,m&&m(Q))},_t=Q.onRelease=function(t){if(!ht(t,1)){_i(P?i:ot,si[1],gt,!0);var e=!isNaN(Q.y-Q.startY),r=Q.isDragging,n=r&&(Math.abs(Q.x-Q.startX)>3||Math.abs(Q.y-Q.startY)>3),s=ki(t);!n&&e&&(Q._vx.reset(),Q._vy.reset(),a&&q&&Gn.delayedCall(.08,(function(){if(fi()-ut>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ot.createEvent){var e=ot.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Qn,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Q.isDragging=Q.isGesturing=Q.isPressed=!1,l&&r&&!P&&H.restart(!0),U&&ft(),p&&r&&p(Q),_&&_(Q,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(Q.isGesturing=!0)&&R(t,Q.isDragging)},yt=function(){return(Q.isGesturing=!1)||D(Q)},bt=function(t){if(!ht(t)){var e=tt(),r=et();dt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,l&&H.restart(!0)}},xt=function(t){if(!ht(t)){t=ki(t,a),z&&(j=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?Qn.innerHeight:1)*h;dt(t.deltaX*e,t.deltaY*e,0),l&&!P&&H.restart(!0)}},wt=function(t){if(!ht(t)){var e=t.clientX,r=t.clientY,n=e-Q.x,i=r-Q.y;Q.x=e,Q.y=r,W=!0,l&&H.restart(!0),(n||i)&&pt(n,i)}},Tt=function(t){Q.event=t,k(Q)},Et=function(t){Q.event=t,O(Q)},St=function(t){return ht(t)||ki(t,a)&&F(Q)};H=Q._dc=Gn.delayedCall(u||.25,(function(){Q._vx.reset(),Q._vy.reset(),H.pause(),l&&l(Q)})).pause(),Q.deltaX=Q.deltaY=0,Q._vx=Ci(0,50,!0),Q._vy=Ci(0,50,!0),Q.scrollX=tt,Q.scrollY=et,Q.isDragging=Q.isGesturing=Q.isPressed=!1,oi(this),Q.enable=function(t){return Q.isEnabled||(mi(st?ot:i,"scroll",bi),n.indexOf("scroll")>=0&&mi(st?ot:i,"scroll",bt,J,N),n.indexOf("wheel")>=0&&mi(i,"wheel",xt,J,N),(n.indexOf("touch")>=0&&ti||n.indexOf("pointer")>=0)&&(mi(i,si[0],mt,J,N),mi(ot,si[2],_t),mi(ot,si[3],_t),q&&mi(i,"click",ct,!0,!0),F&&mi(i,"click",St),R&&mi(ot,"gesturestart",vt),D&&mi(ot,"gestureend",yt),k&&mi(i,ei+"enter",Tt),O&&mi(i,ei+"leave",Et),M&&mi(i,ei+"move",wt)),Q.isEnabled=!0,Q.isDragging=Q.isGesturing=Q.isPressed=W=U=!1,Q._vx.reset(),Q._vy.reset(),rt=tt(),nt=et(),t&&t.type&&mt(t),L&&L(Q)),Q},Q.disable=function(){Q.isEnabled&&(ui.filter((function(t){return t!==Q&&gi(t.target)})).length||_i(st?ot:i,"scroll",bi),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),_i(P?i:ot,si[1],gt,!0)),_i(st?ot:i,"scroll",bt,N),_i(i,"wheel",xt,N),_i(i,si[0],mt,N),_i(ot,si[2],_t),_i(ot,si[3],_t),_i(i,"click",ct,!0),_i(i,"click",St),_i(ot,"gesturestart",vt),_i(ot,"gestureend",yt),_i(i,ei+"enter",Tt),_i(i,ei+"leave",Et),_i(i,ei+"move",wt),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var t=ui.indexOf(Q);t>=0&&ui.splice(t,1),ii===Q&&(ii=0)},ui.push(Q),P&&gi(i)&&(ii=Q),Q.enable(f)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&jn(e.prototype,r),t}();Pi.version="3.13.0",Pi.create=function(t){return new Pi(t)},Pi.register=Ai,Pi.getAll=function(){return ui.slice()},Pi.getById=function(t){return ui.filter((function(e){return e.vars.id===t}))[0]},ai()&&Gn.registerPlugin(Pi);var Ri,Di,zi,Li,Ii,Fi,Bi,Ni,qi,Yi,Xi,Vi,Hi,Ui,Wi,ji,Gi,$i,Qi,Zi,Ki,Ji,ts,es,rs,ns,is,ss,os,as,ls,us,cs,hs,fs,ds,ps,gs,ms=1,_s=Date.now,vs=_s(),ys=0,bs=0,xs=function(t,e,r){var n=Ls(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||Ls(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ts=function t(){return bs&&requestAnimationFrame(t)},Es=function(){return Ui=1},Ss=function(){return Ui=0},Cs=function(t){return t},ks=function(t){return Math.round(1e5*t)/1e5||0},Os=function(){return"undefined"!=typeof window},Ms=function(){return Ri||Os()&&(Ri=window.gsap)&&Ri.registerPlugin&&Ri},As=function(t){return!!~Bi.indexOf(t)},Ps=function(t){return("Height"===t?ls:zi["inner"+t])||Ii["client"+t]||Fi["client"+t]},Rs=function(t){return pi(t,"getBoundingClientRect")||(As(t)?function(){return Wo.width=zi.innerWidth,Wo.height=ls,Wo}:function(){return io(t)})},Ds=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=pi(t,r))?s()-Rs(t)()[i]:As(t)?(Ii[r]||Fi[r])-Ps(n):t[r]-t["offset"+n])},zs=function(t,e){for(var r=0;r0){for(t-=i,s=0;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)r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in go?go[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},_o=function(t,e,r,n,i,s,o,a){var l=i.startColor,u=i.endColor,c=i.fontSize,h=i.indent,f=i.fontWeight,d=Li.createElement("div"),p=As(r)||"fixed"===pi(r,"pinType"),g=-1!==t.indexOf("scroller"),m=p?Fi: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||a)&&p?"fixed;":"absolute;"),(g||a||!p)&&(y+=(n===Ti?Vs:Hs)+":"+(s+parseFloat(h))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.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],vo(d,0,n,_),d},vo=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],o=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+Js]=1,i["border"+o+Js]=0,i[r.p]=e+"px",Ri.set(t,i)},yo=[],bo={},xo=function(){return _s()-ys>34&&(fs||(fs=requestAnimationFrame(No)))},wo=function(){(!ts||!ts.isPressed||ts.startX>Fi.clientWidth)&&(ci.cache++,ts?fs||(fs=requestAnimationFrame(No)):No(),ys||Oo("scrollStart"),ys=_s())},To=function(){ns=zi.innerWidth,rs=zi.innerHeight},Eo=function(t){ci.cache++,(!0===t||!Hi&&!Ji&&!Li.fullscreenElement&&!Li.webkitFullscreenElement&&(!es||ns!==zi.innerWidth||Math.abs(zi.innerHeight-rs)>.25*zi.innerHeight))&&Ni.restart(!0)},So={},Co=[],ko=function t(){return co(Jo,"scrollEnd",t)||Io(!0)},Oo=function(t){return So[t]&&So[t].map((function(t){return t()}))||Co},Mo=[],Ao=function(t){for(var e=0;ee,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)})),Lo(!1),cs=0,r.forEach((function(t){return t&&t.render&&t.render(-1)})),ci.forEach((function(t){Is(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),Ro(os,1),Ni.pause(),Do++,ds=2,No(2),yo.forEach((function(t){return Is(t.vars.onRefresh)&&t.vars.onRefresh(t)})),ds=Jo.isRefreshing=!1,Oo("refresh")}else uo(Jo,"scrollEnd",ko)},Fo=0,Bo=1,No=function(t){if(2===t||!ds&&!us){Jo.isUpdating=!0,gs&&gs.update(0);var e=yo.length,r=_s(),n=r-vs>=50,i=e&&yo[0].scroll();if(Bo=Fo>i?-1:1,ds||(Fo=i),n&&(ys&&!Ui&&r-ys>200&&(ys=0,Oo("scrollEnd")),Xi=vs,vs=r),Bo<0){for(ji=e;ji-- >0;)yo[ji]&&yo[ji].update(0,n);Bo=1}else for(ji=0;ji20),r-=r-b}if(d&&(a[d]=t||-.001,t<0&&(t=0)),s){var T=t+r,E=s._isStart;p="scroll"+n.d2,vo(s,T,n,E&&T>20||!E&&(c?Math.max(Fi[p],Ii[p]):s.parentNode[p])<=T+1),c&&(l=io(o),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+eo))}return f&&m&&(p=io(m),f.seek(h),g=io(m),f._caScrollDist=p[n.p]-g[n.p],t=t/f._caScrollDist*h),f&&f.seek(_),f?t:Math.round(t)},Go=/(webkit|moz|length|cssText|inset)/i,$o=function(t,e,r,n){if(t.parentNode!==e){var i,s,o=t.style;if(e===Fi){for(i in t._stOrig=o.cssText,s=ro(t))+i||Go.test(i)||!s[i]||"string"!=typeof o[i]||"0"===i||(o[i]=s[i]);o.top=r,o.left=n}else o.cssText=t._stOrig;Ri.core.getCache(t).uncache=1,e.appendChild(t)}},Qo=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)}},Zo=function(t,e,r){var n={};n[e.p]="+="+r,Ri.set(t,n)},Ko=function(t,e){var r=Si(t,e),n="_scroll"+e.p2,i=function e(i,s,o,a,l){var u=e.tween,c=s.onComplete,h={};o=o||r();var f=Qo(r,o,(function(){u.kill(),e.tween=0}));return l=a&&l||0,a=a||i-o,u&&u.kill(),s[n]=i,s.inherit=!1,s.modifiers=h,h[n]=function(){return f(o+a*u.ratio+l*u.ratio*u.ratio)},s.onUpdate=function(){ci.cache++,e.tween&&No()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=Ri.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},uo(t,"wheel",r.wheelHandler),Jo.isTouch&&uo(t,"touchmove",r.wheelHandler),i},Jo=function(){function t(e,r){Di||t.register(Ri)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ss(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),bs){var n,i,s,o,a,l,u,c,h,f,d,p,g,m,_,v,y,b,x,w,T,E,S,C,k,O,M,A,P,R,D,z,L,I,F,B,N,q,Y,X,V,H,U=e=no(Ls(e)||Fs(e)||e.nodeType?{trigger:e}:e,po),W=U.onUpdate,j=U.toggleClass,G=U.id,$=U.onToggle,Q=U.onRefresh,Z=U.scrub,K=U.trigger,J=U.pin,tt=U.pinSpacing,et=U.invalidateOnRefresh,rt=U.anticipatePin,nt=U.onScrubComplete,it=U.onSnapComplete,st=U.once,ot=U.snap,at=U.pinReparent,lt=U.pinSpacer,ut=U.containerAnimation,ct=U.fastScrollEnd,ht=U.preventOverlaps,ft=e.horizontal||e.containerAnimation&&!1!==e.horizontal?wi:Ti,dt=!Z&&0!==Z,pt=Ei(e.scroller||zi),gt=Ri.core.getCache(pt),mt=As(pt),_t="fixed"===("pinType"in e?e.pinType:pi(pt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),bt="markers"in e?e.markers:po.markers,xt=mt?0:parseFloat(ro(pt)["border"+ft.p2+Js])||0,wt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},Et=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=pi(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Ps(i):t["client"+i])||0}}(pt,mt,ft),St=function(t,e){return!e||~hi.indexOf(t)?Rs(t):function(){return Wo}}(pt,mt),Ct=0,kt=0,Ot=0,Mt=Si(pt,ft);if(wt._startClamp=wt._endClamp=!1,wt._dir=ft,rt*=45,wt.scroller=pt,wt.scroll=ut?ut.time.bind(ut):Mt,o=Mt(),wt.vars=e,r=r||e.animation,"refreshPriority"in e&&(Zi=1,-9999===e.refreshPriority&&(gs=wt)),gt.tweenScroll=gt.tweenScroll||{top:Ko(pt,Ti),left:Ko(pt,wi)},wt.tweenTo=n=gt.tweenScroll[ft.p],wt.scrubDuration=function(t){(L=Fs(t)&&t)?z?z.duration(t):z=Ri.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:L,paused:!0,onComplete:function(){return nt&&nt(wt)}}):(z&&z.progress(1).kill(),z=0)},r&&(r.vars.lazy=!1,r._initted&&!wt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),wt.animation=r.pause(),r.scrollTrigger=wt,wt.scrubDuration(Z),R=0,G||(G=r.vars.id)),ot&&(Bs(ot)&&!ot.push||(ot={snapTo:ot}),"scrollBehavior"in Fi.style&&Ri.set(mt?[Fi,Ii]:pt,{scrollBehavior:"auto"}),ci.forEach((function(t){return Is(t)&&t.target===(mt?Li.scrollingElement||Ii:pt)&&(t.smooth=!1)})),s=Is(ot.snapTo)?ot.snapTo:"labels"===ot.snapTo?function(t){return function(e){return Ri.utils.snap(oo(t),e)}}(r):"labelsDirectional"===ot.snapTo?(X=r,function(t,e){return ao(oo(X))(t,e.direction)}):!1!==ot.directional?function(t,e){return ao(ot.snapTo)(t,_s()-kt<500?0:e.direction)}:Ri.utils.snap(ot.snapTo),I=ot.duration||{min:.1,max:2},I=Bs(I)?Yi(I.min,I.max):Yi(I,I),F=Ri.delayedCall(ot.delay||L/2||.1,(function(){var t=Mt(),e=_s()-kt<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||Ui||Ct===t)wt.isActive&&Ct!==t&&F.restart(!0);else{var o,a,c=(t-l)/m,h=r&&!dt?r.totalProgress():c,f=e?0:(h-D)/(_s()-Xi)*1e3||0,d=Ri.utils.clamp(-c,1-c,Ys(f/2)*f/.185),p=c+(!1===ot.inertia?0:d),g=ot,_=g.onStart,v=g.onInterrupt,y=g.onComplete;if(o=s(p,wt),Fs(o)||(o=p),a=Math.max(0,Math.round(l+o*m)),t<=u&&t>=l&&a!==t){if(i&&!i._initted&&i.data<=Ys(a-t))return;!1===ot.inertia&&(d=o-c),n(a,{duration:I(Ys(.185*Math.max(Ys(p-h),Ys(o-h))/f/.05||0)),ease:ot.ease||"power3",data:Ys(a-t),onInterrupt:function(){return F.restart(!0)&&v&&v(wt)},onComplete:function(){wt.update(),Ct=Mt(),r&&!dt&&(z?z.resetTo("totalProgress",o,r._tTime/r._tDur):r.progress(o)),R=D=r&&!dt?r.totalProgress():wt.progress,it&&it(wt),y&&y(wt)}},t,d*m,a-t-d*m),_&&_(wt,n.tween)}}})).pause()),G&&(bo[G]=wt),(Y=(K=wt.trigger=Ei(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(Y=Y(wt)),J=!0===J?K:Ei(J),Ls(j)&&(j={targets:K,className:j}),J&&(!1===tt||tt===Ks||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===ro(J.parentNode).display)&&Zs),wt.pin=J,(i=Ri.core.getCache(J)).spacer?_=i.pinState:(lt&&((lt=Ei(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=Uo(lt))),i.spacer=b=lt||Li.createElement("div"),b.classList.add("pin-spacer"),G&&b.classList.add("pin-spacer-"+G),i.pinState=_=Uo(J)),!1!==e.force3D&&Ri.set(J,{force3D:!0}),wt.spacer=b=i.spacer,P=ro(J),C=P[tt+ft.os2],w=Ri.getProperty(J),T=Ri.quickSetter(J,ft.a,eo),Xo(J,b,P),y=Uo(J)),bt){p=Bs(bt)?no(bt,fo):fo,f=_o("scroller-start",G,pt,ft,p,0),d=_o("scroller-end",G,pt,ft,p,0,f),x=f["offset"+ft.op.d2];var At=Ei(pi(pt,"content")||pt);c=this.markerStart=_o("start",G,At,ft,p,x,0,ut),h=this.markerEnd=_o("end",G,At,ft,p,x,0,ut),ut&&(q=Ri.quickSetter([c,h],ft.a,eo)),_t||hi.length&&!0===pi(pt,"fixedMarkers")||(H=ro(V=mt?Fi:pt).position,V.style.position="absolute"===H||"fixed"===H?H:"relative",Ri.set([f,d],{force3D:!0}),O=Ri.quickSetter(f,ft.a,eo),A=Ri.quickSetter(d,ft.a,eo))}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 yo[yo.indexOf(wt)-1]},wt.next=function(){return yo[yo.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=Hi;n!==wt.isReverted&&(n&&(B=Math.max(Mt(),wt.scroll.rec||0),Ot=wt.progress,N=r&&r.progress()),c&&[c,h,f,d].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(Hi=wt,wt.update(n)),!J||at&&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,b,_):Xo(J,b,ro(J),k)),n||wt.update(n),Hi=i,wt.isReverted=n)},wt.refresh=function(i,s,p,x){if(!Hi&&wt.enabled||s)if(J&&i&&ys)uo(t,"scrollEnd",ko);else{!ds&&Tt&&Tt(wt),Hi=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)}))),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var T,C,O,A,P,R,D,L,I,q,Y,X,V,H=Et(),U=St(),W=ut?ut.duration():Ds(pt,ft),j=m<=.01||!m,G=0,$=x||0,Z=Bs(p)?p.end:e.end,rt=e.endTrigger||K,nt=Bs(p)?p.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Ei(e.pinnedContainer,wt),st=K&&Math.max(0,yo.indexOf(wt))||0,ot=st;for(bt&&Bs(p)&&(X=Ri.getProperty(f,ft.p),V=Ri.getProperty(d,ft.p));ot-- >0;)(R=yo[ot]).end||R.refresh(0,1)||(Hi=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(q||(q=[]),q.unshift(R),R.revert(!0,!0)),R!==yo[ot]&&(st--,ot--);for(Is(nt)&&(nt=nt(wt)),nt=xs(nt,"start",wt),l=jo(nt,K,H,ft,Mt(),c,f,wt,U,xt,_t,W,ut,wt._startClamp&&"_startClamp")||(J?-.001:0),Is(Z)&&(Z=Z(wt)),Ls(Z)&&!Z.indexOf("+=")&&(~Z.indexOf(" ")?Z=(Ls(nt)?nt.split(" ")[0]:"")+Z:(G=mo(Z.substr(2),H),Z=Ls(nt)?nt:(ut?Ri.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+G,rt=K)),Z=xs(Z,"end",wt),u=Math.max(l,jo(Z||(rt?"100% 0":W),rt,H,ft,Mt()+G,h,d,wt,U,xt,_t,W,ut,wt._endClamp&&"_endClamp"))||-.001,G=0,ot=st;ot--;)(D=(R=yo[ot]).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=Ds(pt,ft)){if(K&&Mt()&&!ut)for(C=K.parentNode;C&&C!==Fi;)C._pinOffset&&(l-=C._pinOffset,u-=C._pinOffset),C=C.parentNode}else T=ro(J),A=ft===Ti,O=Mt(),E=parseFloat(w(ft.a))+$,!W&&u>1&&(Y={style:Y=(mt?Li.scrollingElement||Ii:pt).style,value:Y["overflow"+ft.a.toUpperCase()]},mt&&"scroll"!==ro(Fi)["overflow"+ft.a.toUpperCase()]&&(Y.style["overflow"+ft.a.toUpperCase()]="scroll")),Xo(J,b,T),y=Uo(J),C=io(J,!0),L=_t&&Si(pt,A?wi:Ti)(),tt?((k=[tt+ft.os2,m+$+eo]).t=b,(ot=tt===Zs?so(J,ft)+m+$:0)&&(k.push(ft.d,ot+eo),"auto"!==b.style.flexBasis&&(b.style.flexBasis=ot+eo)),Ho(k),it&&yo.forEach((function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),_t&&Mt(B)):(ot=so(J,ft))&&"auto"!==b.style.flexBasis&&(b.style.flexBasis=ot+eo),_t&&((P={top:C.top+(A?O-l:L)+eo,left:C.left+(A?L:O-l)+eo,boxSizing:"border-box",position:"fixed"})[Us]=P["max"+Js]=Math.ceil(C.width)+eo,P[Ws]=P["max"+to]=Math.ceil(C.height)+eo,P[Ks]=P[Ks+$s]=P[Ks+js]=P[Ks+Qs]=P[Ks+Gs]="0",P[Zs]=T[Zs],P[Zs+$s]=T[Zs+$s],P[Zs+js]=T[Zs+js],P[Zs+Qs]=T[Zs+Qs],P[Zs+Gs]=T[Zs+Gs],v=function(t,e,r){for(var n,i=[],s=t.length,o=r?8:0;o1,_t&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),I||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),Ki(0)):S=m,Y&&(Y.value?Y.style["overflow"+ft.a.toUpperCase()]=Y.value:Y.style.removeProperty("overflow-"+ft.a));q&&q.forEach((function(t){return t.revert(!1,!0)})),wt.start=l,wt.end=u,o=a=ds?B:Mt(),ut||ds||(o0?yo.slice(0,e).reverse():yo.slice(e+1);return(Ls(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,_,x=!0===ds?B:wt.scroll(),w=t?0:(x-l)/m,k=w<0?0:w>1?1:w||0,P=wt.progress;if(e&&(a=o,o=ut?Mt():x,ot&&(D=R,R=r&&!dt?r.totalProgress():k)),rt&&J&&!Hi&&!ms&&ys&&(!k&&lx+(x-a)/(_s()-Xi)*rt&&(k=.9999)),k!==P&&wt.enabled){if(d=(p=(s=wt.isActive=!!k&&k<1)!=(!!P&&P<1))||!!k!=!!P,wt.direction=k>P?1:-1,wt.progress=k,d&&!Hi&&(c=k&&!P?0:1===k?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||_)&&(_||Z||!r)&&(Is(ht)?ht(wt):wt.getTrailing(ht).forEach((function(t){return t.endAnimation()}))),dt||(!z||Hi||ms?r&&r.totalProgress(k,!(!Hi||!kt&&!t)):(z._dp._time-z._start!==z._time&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",k,r._tTime/r._tDur):(z.vars.totalProgress=k,z.invalidate().restart()))),J)if(t&&tt&&(b.style[tt+ft.os2]=C),_t){if(d){if(g=!t&&k>P&&u+1>x&&x+1>=Ds(pt,ft),at)if(t||!s&&!g)$o(J,b);else{var L=io(J,!0),I=x-l;$o(J,Fi,L.top+(ft===Ti?I:0)+eo,L.left+(ft===Ti?0:I)+eo)}Ho(s||g?v:y),M&&k<1&&s||T(E+(1!==k||g?0:S))}}else T(ks(E+S*k));ot&&!n.tween&&!Hi&&!ms&&F.restart(!0),j&&(p||st&&k&&(k<1||!hs))&&qi(j.targets).forEach((function(t){return t.classList[s||st?"add":"remove"](j.className)})),W&&!dt&&!t&&W(wt),d&&!Hi?(dt&&(_&&("complete"===h?r.pause().totalProgress(1):"reset"===h?r.restart(!0).pause():"restart"===h?r.restart(!0):r[h]()),W&&W(wt)),!p&&hs||($&&p&&qs(wt,$),vt[c]&&qs(wt,vt[c]),st&&(1===k?wt.kill(!1,1):vt[c]=0),p||vt[c=1===k?1:3]&&qs(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(Fs(ct)?ct:2500)&&(Ns(wt.callbackAnimation),z?z.progress(1):Ns(r,"reverse"===h?1:!k,1))):dt&&W&&!Hi&&W(wt)}if(A){var N=ut?x/ut.duration()*(ut._caScrollDist||0):x;O(N+(f._isFlipped?1:0)),A(N)}q&&q(-x/ut.duration()*(ut._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,uo(pt,"resize",Eo),mt||uo(pt,"scroll",wo),Tt&&uo(t,"refreshInit",Tt),!1!==e&&(wt.progress=Ot=0,o=a=Ct=Mt()),!1!==r&&wt.refresh())},wt.getTween=function(t){return t&&n?n.tween:z},wt.setPositions=function(t,e,r,n){if(ut){var i=ut.scrollTrigger,s=ut.duration(),o=i.end-i.start;t=i.start+o*t/s,e=i.start+o*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(k&&t){var e=k.indexOf(ft.d)+1;k[e]=parseFloat(k[e])+t+eo,k[1]=parseFloat(k[1])+t+eo,Ho(k)}},wt.disable=function(e,r){if(wt.enabled&&(!1!==e&&wt.revert(!0,!0),wt.enabled=wt.isActive=!1,r||z&&z.pause(),B=0,i&&(i.uncache=1),Tt&&co(t,"refreshInit",Tt),F&&(F.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=yo.length;s--;)if(yo[s].scroller===pt&&yo[s]!==wt)return;co(pt,"resize",Eo),mt||co(pt,"scroll",wo)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete bo[G];var s=yo.indexOf(wt);s>=0&&yo.splice(s,1),s===ji&&Bo>0&&ji--,s=0,yo.forEach((function(t){return t.scroller===wt.scroller&&(s=1)})),s||ds||(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)})),gs===wt&&(gs=0),J&&(i&&(i.uncache=1),s=0,yo.forEach((function(t){return t.pin===J&&s++})),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},yo.push(wt),wt.enable(!1,!1),Y&&Y(wt),r&&r.add&&!m){var Dt=wt.update;wt.update=function(){wt.update=Dt,ci.cache++,l||u||wt.refresh()},Ri.delayedCall(.01,wt.update),m=.01,l=u=0}else wt.refresh();J&&function(){if(ps!==Do){var t=ps=Do;requestAnimationFrame((function(){return t===Do&&Io(!0)}))}}()}else this.update=this.refresh=this.kill=Cs},t.register=function(e){return Di||(Ri=e||Ms(),Os()&&window.document&&t.enable(),Di=bs),Di},t.defaults=function(t){if(t)for(var e in t)po[e]=t[e];return po},t.disable=function(t,e){bs=0,yo.forEach((function(r){return r[e?"kill":"disable"](t)})),co(zi,"wheel",wo),co(Li,"scroll",wo),clearInterval(Vi),co(Li,"touchcancel",Cs),co(Fi,"touchstart",Cs),lo(co,Li,"pointerdown,touchstart,mousedown",Es),lo(co,Li,"pointerup,touchend,mouseup",Ss),Ni.kill(),zs(co);for(var r=0;r0&&n.left+i0&&n.top+i=0&&Mo.splice(e,5),Mo.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Ri.core.getCache(t),ss())}})):Mo},Jo.revert=function(t,e){return Po(!t,e)},Jo.create=function(t,e){return new Jo(t,e)},Jo.refresh=function(t){return t?Eo(!0):(Di||Jo.register())&&Io(!0)},Jo.update=function(t){return++ci.cache&&No(!0===t?2:0)},Jo.clearScrollMemory=Ro,Jo.maxScroll=function(t,e){return Ds(t,e?wi:Ti)},Jo.getScrollFunc=function(t,e){return Si(Ei(t),e?wi:Ti)},Jo.getById=function(t){return bo[t]},Jo.getAll=function(){return yo.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},Jo.isScrolling=function(){return!!ys},Jo.snapDirectional=ao,Jo.addEventListener=function(t,e){var r=So[t]||(So[t]=[]);~r.indexOf(e)||r.push(e)},Jo.removeEventListener=function(t,e){var r=So[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},Jo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,o=e.batchMax||1e9,a=function(t,e){var r=[],n=[],i=Ri.delayedCall(s,(function(){e(r,n),r=[],n=[]})).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),o<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&Is(e[r])&&"onRefreshInit"!==r?a(0,e[r]):e[r];return Is(o)&&(o=o(),uo(Jo,"refresh",(function(){return o=e.batchMax()}))),qi(t).forEach((function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(Jo.create(e))})),n};var ta,ea=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},ra=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Pi.isTouch?" pinch-zoom":""):"none",e===Ii&&t(Fi,r)},na={auto:1,scroll:1},ia=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,o=s._gsap||Ri.core.getCache(s),a=_s();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==Fi&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!na[(e=ro(s)).overflowY]&&!na[e.overflowX]);)s=s.parentNode;o._isScroll=s&&s!==n&&!As(s)&&(na[(e=ro(s)).overflowY]||na[e.overflowX]),o._isScrollT=a}(o._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},sa=function(t,e,r,n){return Pi.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&ia,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&uo(Li,Pi.eventTypes[0],aa,!1,!0)},onDisable:function(){return co(Li,Pi.eventTypes[0],aa,!0)}})},oa=/(input|label|select|textarea)/i,aa=function(t){var e=oa.test(t.target.tagName);(e||ta)&&(t._gsapAllow=!0,ta=e)};Jo.sort=function(t){if(Is(t))return yo.sort(t);var e=zi.pageYOffset||0;return Jo.getAll().forEach((function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+zi.innerHeight})),yo.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))})},Jo.observe=function(t){return new Pi(t)},Jo.normalizeScroll=function(t){if(void 0===t)return ts;if(!0===t&&ts)return ts.enable();if(!1===t)return ts&&ts.kill(),void(ts=t);var e=t instanceof Pi?t:function(t){Bs(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,o,a,l,u=t,c=u.normalizeScrollX,h=u.momentum,f=u.allowNestedScroll,d=u.onRelease,p=Ei(t.target)||Ii,g=Ri.core.globals().ScrollSmoother,m=g&&g.get(),_=is&&(t.content&&Ei(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=Si(p,Ti),y=Si(p,wi),b=1,x=(Pi.isTouch&&zi.visualViewport?zi.visualViewport.scale*zi.visualViewport.width:zi.outerWidth)/zi.innerWidth,w=0,T=Is(h)?function(){return h(e)}:function(){return h||2.8},E=sa(p,t.type,!0,f),S=function(){return i=!1},C=Cs,k=Cs,O=function(){r=Ds(p,Ti),k=Yi(is?1:0,r),c&&(C=Yi(0,Ds(p,wi))),n=Do},M=function(){_._gsap.y=ks(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(){O(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return _&&Ri.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return is&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(S);var t=ks(e.deltaY/2),r=k(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=ks((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=ci.cache,No()}return!0}v.offset&&M(),i=!0}()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=b;b=ks((zi.visualViewport&&zi.visualViewport.scale||1)/x),s.pause(),t!==b&&ra(p,b>1.01||!c&&"x"),o=y(),a=v(),O(),n=Do},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){ci.cache++;var n,i,o=T();c&&(i=(n=y())+.05*o*-t.velocityX/.227,o*=ea(y,n,i,Ds(p,wi)),s.vars.scrollX=C(i)),i=(n=v())+.05*o*-t.velocityY/.227,o*=ea(v,n,i,Ds(p,Ti)),s.vars.scrollY=k(i),s.invalidate().duration(o).play(.01),(is&&s.vars.scrollY>=r||n>=r-1)&&Ri.to({},{onUpdate:A,duration:o})}else l.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),_s()-w>1e3&&(n=0,w=_s())},t.onChange=function(t,e,r,i,s){if(Do!==n&&O(),e&&c&&y(C(i[2]===e?o+(t.startX-t.x):y()+e-i[1])),r){v.offset&&M();var l=s[2]===r,u=l?a+t.startY-t.y:v()+r-s[1],h=k(u);l&&u!==h&&(a+=h-u),v(h)}(r||e)&&No()},t.onEnable=function(){ra(p,!c&&"x"),Jo.addEventListener("refresh",A),uo(zi,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),E.enable()},t.onDisable=function(){ra(p,!0),co(zi,"resize",A),Jo.removeEventListener("refresh",A),E.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Pi(t)).iOS=is,is&&!v()&&v(1),is&&Ri.ticker.add(Cs),l=e._dc,s=Ri.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Qo(v,v(),(function(){return s.pause()}))},onUpdate:No,onComplete:l.vars.onComplete}),e}(t);return ts&&ts.target===e.target&&ts.kill(),As(e.target)&&(ts=e),e},Jo.core={_getVelocityProp:Ci,_inputObserver:sa,_scrollers:ci,_proxies:hi,bridge:{ss:function(){ys||Oo("scrollStart"),ys=_s()},ref:function(){return Hi}}},Ms()&&Ri.registerPlugin(Jo);let la,ua,ca,ha="undefined"!=typeof Intl?new Intl.Segmenter:0,fa=t=>"string"==typeof t?fa(document.querySelectorAll(t)):"length"in t?Array.from(t):[t],da=t=>fa(t).filter((t=>t instanceof HTMLElement)),pa=[],ga=function(){},ma=/\s+/g,_a=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"),va={left:0,top:0,width:0,height:0},ya=(t,e)=>{if(e){let r,n,i,s,o=new Set(t.join("").match(e)||pa),a=t.length;if(o.size)for(;--a>-1;)for(i of(n=t[a],o))if(i.startsWith(n)&&i.length>n.length){for(r=0,s=n;i.startsWith(s+=t[a+ ++r])&&s.length"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),xa=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),wa=(t,e,r)=>{let n=e[t+"sClass"]||"",{tag:i="div",aria:s="auto",propIndex:o=!1}=e,a="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:"")),o&&u.style.setProperty("--"+t,c+""),"none"!==s&&u.setAttribute("aria-hidden","true"),"span"!==i&&(u.style.position="relative",u.style.display=a),u.textContent=e,r.push(u),u};return l&&(n=n.replace("++","")),u.collection=r,u},Ta=(t,e,r,n,i,s,o,a,l,u)=>{var c;let h,f,d,p,g,m,_,v,y,b,x,w,T,E,S,C,k,O,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),L=z,I=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),F=0,B=r.collection;for("object"==typeof P?(d=P.delimiter||P,f=P.replaceWith||""):f=""===P?"":P||" ",h=" "!==f;A-1?(m=B[B.length-1],m.appendChild(document.createTextNode(n?"":C))):(m=r(n?"":C),xa(m,t,p),F&&1===y&&!_&&m.insertBefore(F,m.firstChild)),n)for(x=ha?ya([...ha.segment(C)].map((t=>t.segment)),l):C.match(a)||pa,O=0;OL.top&&b.left<=L.left){for(w=t.cloneNode(),T=t.childNodes[0];T&&T!==m;)E=T,T=T.nextSibling,w.appendChild(E);t.parentNode.insertBefore(w,t),i&&ba(w)}L=b}(y=g.length?" ":h&&" "===C.slice(-1)?" "+f:f,t,p)}else xa(f,t,p);t.removeChild(p),F=0}else 1===p.nodeType&&(o&&o.indexOf(p)>-1?(B.indexOf(p.previousSibling)>-1&&B[B.length-1].appendChild(p),F=p):(Ta(p,e,r,n,i,s,o,a,l,!0),F=0),i&&ba(p))};const Ea=class t{constructor(t,e){this.isSplit=!1,ca||Sa.register(window.gsap),this.elements=da(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,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)}))},ga(this),this.split(e)}split(t){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:o,autoSplit:a=!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+"|"+_a.source,"gu"):_a,m=!!t.ignore&&da(t.ignore),{orig:_,animTime:v,obs:y}=this._data;return(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 o,a,l,u,v=[],y=[],b=[],x=h?wa("char",t,v):null,w=wa("word",t,y);if(Ta(e,t,w,x,d,i&&(c||d),m,g,p,!1),c){let r,n=fa(e.childNodes),i=((t,e,r,n)=>{let i=wa("line",r,n),s=window.getComputedStyle(t).textAlign||"left";return(r,n)=>{let o=i("");for(o.style.textAlign=s,t.insertBefore(o,e[r]);r1===t.nodeType?t.getBoundingClientRect():va)),u=va;for(o=0;ou.top&&l[o].left<=u.left&&(i(a,o),a=o),u=l[o]));a{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}))}if(!f){for(o=0;o{let e=t.cloneNode();return t.replaceWith(e),e.appendChild(t),t.className&&(e.className=t.className.replace(/(\b\w+\b)/g,"$1-mask")),e.style.overflow="clip",e})))),this.isSplit=!0,ua&&(a?ua.addEventListener("loadingdone",this._split):"loading"===ua.status&&console.warn("SplitText called before fonts loaded")),(e=o&&o(this))&&e.totalTime&&(this._data.anim=v?e.totalTime(v):e),c&&a&&this.elements.forEach(((t,e)=>{_[e].width=t.offsetWidth,y&&y.observe(t)})),this}revert(){var t,e;let{orig:r,anim:n,obs:i}=this._data;return i&&i.disconnect(),r.forEach((({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")})),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,null==ua||ua.removeEventListener("loadingdone",this._split),n&&(this._data.animTime=n.totalTime(),n.revert()),null==(e=(t=this.vars).onRevert)||e.call(t,this),this}static create(e,r){return new t(e,r)}static register(t){la=la||t||window.gsap,la&&(fa=la.utils.toArray,ga=la.core.context||ga),!ca&&window.innerWidth>0&&(ua=document.fonts,ca=!0)}};Ea.version="3.13.0";let Sa=Ea;function Ca(t,e){for(var r=0;r0?o+(u-l):H(u,e),h.setPositions(o,a,!0,(h._startClamp?Math.max(0,o):o)-l),h.markerStart&&d.push(ka.quickSetter([h.markerStart,h.markerEnd],"y","px")),h.pin&&h.end>0&&!n)){if(i=h.end-h.start,s=e._startClamp&&h.start<0){if(e.start>0)return e.setPositions(0,e.end+(e._startNative-e.start),!0),void t(e,r);i+=h.start,f.offset=-h.start}f.push({start:h.start,nativeStart:l,end:h.end,distance:i,trig:h}),e.setPositions(e.start,e.end+(s?-h.start:i),!0)}},W=function(t,e){a.forEach((function(r){return U(r,t,e)}))},j=function(){Pa=Aa.documentElement,Ra=Aa.body,B(),requestAnimationFrame(B),a&&(La.getAll().forEach((function(t){t._startNative=t.start,t._endNative=t.end})),a.forEach((function(t){var e=t._startClamp||t.start,r=t.autoSpeed?Math.min(Ha(),t.end):e+Math.abs((t.end-e)/t.ratio),n=r-t.end;if((e-=n/2)>(r-=n/2)){var i=e;e=r,r=i}t._startClamp&&e<0?(n=(r=t.ratio<0?Ha():t.end/t.ratio)-t.end,e=0):(t.ratio<0||t._endClamp&&r>=Ha())&&(n=((r=Ha())-(e=t.ratio<0||t.ratio>1?0:r-(r-t.start)/t.ratio))*t.ratio-(t.end-t.start)),t.offset=n||1e-4,t.pins.length=t.pins.offset=0,t.setPositions(e,r,!0)})),W(La.sort())),L.reset()},G=function(){return La.addEventListener("refresh",j)},$=function(){return a&&a.forEach((function(t){return t.vars.onRefresh(t)}))},Q=function(){return a&&a.forEach((function(t){return t.vars.onRefreshInit(t)})),$},Z=function(t,e,r,n){return function(){var i="function"==typeof e?e(r,n):e;i||0===i||(i=n.getAttribute("data-"+O+t)||("speed"===t?1:0)),n.setAttribute("data-"+O+t,i);var s="clamp("===(i+"").substr(0,6);return{clamp:s,value:s?i.substr(6,i.length-7):i}}},K=function(t,e,r,n,s){s=("function"==typeof s?s(n,t):s)||0;var o,l,u,c,h,f,d=Z("speed",e,n,t),p=Z("lag",r,n,t),g=ka.getProperty(t,"y"),m=t._gsap,_=[],v=function(){e=d(),r=parseFloat(p().value),o=parseFloat(e.value)||1,u="auto"===e.value,h=u||l&&l._startClamp&&l.start<=0||_.offset?0:l&&l._endClamp&&l.end===Ha()?1:.5,c&&c.kill(),c=r&&ka.to(t,{ease:Fa,overwrite:!1,y:"+=0",duration:r}),l&&(l.ratio=o,l.autoSpeed=u)},y=function(){m.y=g+"px",m.renderTransform(1),v()},b=[],x=0,w=function(e){if(u){y();var r=function(t,e){var r,n,i=t.parentNode||Pa,s=t.getBoundingClientRect(),o=i.getBoundingClientRect(),a=o.top-s.top,l=o.bottom-s.bottom,u=(Math.abs(a)>Math.abs(l)?a:l)/(1-e),c=-u*e;return u>0&&(n=.5==(r=o.height/(Ma.innerHeight+o.height))?2*o.height:2*Math.min(o.height,Math.abs(-u*r/(2*r-1)))*(e||1),c+=e?-n*e:-n/2,u+=n),{change:u,offset:c}}(t,za(0,1,-e.start/(e.end-e.start)));x=r.change,f=r.offset}else f=_.offset||0,x=(e.end-e.start-f)*(1-o);_.forEach((function(t){return x-=t.distance*(1-o)})),e.offset=x||.001,e.vars.onUpdate(e),c&&c.progress(1)};return v(),(1!==o||u||c)&&(l=La.create({trigger:u?t.parentNode:t,start:function(){return e.clamp?"clamp(top bottom+="+s+")":"top bottom+="+s},end:function(){return e.value<0?"max":e.clamp?"clamp(bottom top-="+s+")":"bottom top-="+s},scroller:i,scrub:!0,refreshPriority:-999,onRefreshInit:y,onRefresh:w,onKill:function(t){var e=a.indexOf(t);e>=0&&a.splice(e,1),y()},onUpdate:function(t){var e,r,n,i,s=g+x*(t.progress-h),o=_.length,a=0;if(t.offset){if(o){for(r=-R,n=t.end;o--;){if((e=_[o]).trig.isActive||r>=e.start&&r<=e.end)return void(c&&(e.trig.progress+=e.trig.direction<0?.001:-.001,e.trig.update(0,0,1),c.resetTo("y",parseFloat(m.y),-D,!0),z&&c.progress(1)));r>e.end&&(a+=e.distance),n-=e.distance}s=g+a+x*((ka.utils.clamp(t.start,t.end,r)-t.start-a)/(n-t.start)-h)}b.length&&!u&&b.forEach((function(t){return t(s-a)})),i=s+f,s=Math.round(1e5*i)/1e5||0,c?(c.resetTo("y",s,-D,!0),z&&c.progress(1)):(m.y=s+"px",m.renderTransform(1))}}}),w(l),ka.core.getCache(l.trigger).stRevert=Q,l.startY=g,l.pins=_,l.markers=b,l.ratio=o,l.autoSpeed=u,t.style.willChange="transform"),l};function J(){return s=n.clientHeight,n.style.overflow="visible",Ra.style.height=Ma.innerHeight+(s-Ma.innerHeight)/P+"px",s-Ma.innerHeight}G(),La.addEventListener("killAll",G),ka.delayedCall(.5,(function(){return z=0})),this.scrollTop=Y,this.scrollTo=function(t,e,n){var i=ka.utils.clamp(0,Ha(),isNaN(t)?r.offset(t,n,!!e&&!f):+t);e?f?ka.to(r,{duration:A,scrollTop:i,overwrite:"auto",ease:Fa}):M(i):Y(i)},this.offset=function(t,e,r){var n,i=(t=Da(t)[0]).style.cssText,s=La.create({trigger:t,start:e||"top top"});return a&&(z?La.refresh():W([s],!0)),n=s.start/(r?P:1),s.kill(!1),t.style.cssText=i,ka.core.getCache(t).uncache=1,n},this.content=function(t){if(arguments.length){var e=Da(t||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||Ra.children[0];return e!==n&&(h=(n=e).getAttribute("style")||"",X&&X.observe(n),ka.set(n,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),A||ka.set(n,{clearProps:"transform"})),this}return n},this.wrapper=function(t){return arguments.length?(i=Da(t||"#smooth-wrapper")[0]||function(t){var e=Aa.querySelector(".ScrollSmoother-wrapper");return e||((e=Aa.createElement("div")).classList.add("ScrollSmoother-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t)),e}(n),c=i.getAttribute("style")||"",J(),ka.set(i,A?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):i},this.effects=function(t,e){var r;if(a||(a=[]),!t)return a.slice(0);(t=Da(t)).forEach((function(t){for(var e=a.length;e--;)a[e].trigger===t&&a[e].kill()}));var n,i,s=e=e||{},o=s.speed,l=s.lag,u=s.effectsPadding,c=[];for(n=0;nn._dp._time,p=R,F.y=0,A&&(1===La.isTouch&&(i.style.position="absolute"),i.scrollTop=0,1===La.isTouch&&(i.style.position="fixed"))}},onRefresh:function(e){e.animation.invalidate(),e.setPositions(e.start,J()/P),g||N(e),F.y=-M()*P,q(F.y),z||(g&&(_=!1),e.animation.progress(ka.utils.clamp(0,1,p/P/-e.end))),g&&(e.progress-=.001,e.update()),t.isRefreshing=!1},id:"ScrollSmoother",scroller:Ma,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return J()/P},onScrubComplete:function(){L.reset(),w&&w(r)},scrub:A||!0}),this.smooth=function(t){return arguments.length&&(P=(A=t||0)&&+e.speed||1,o.scrubDuration(t)),o.getTween()?o.getTween().duration():0},o.getTween()&&(o.getTween().vars.ease=e.ease||Fa),this.scrollTrigger=o,e.effects&&this.effects(!0===e.effects?"[data-"+O+"speed], [data-"+O+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(!0===e.sections?"[data-section]":e.sections),tt.forEach((function(t){t.vars.scroller=i,t.revert(!1,!0),t.init(t.vars,t.animation)})),this.paused=function(t,e){return arguments.length?(!!f!==t&&(t?(o.getTween()&&o.getTween().pause(),M(-R/P),L.reset(),(d=La.normalizeScroll())&&d.disable(),(f=La.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return Y(-R)}})).nested=Na(Pa,"wheel,touch,scroll",!0,!1!==e)):(f.nested.kill(),f.kill(),f=0,d&&d.enable(),o.progress=(-R/P-o.start)/(o.end-o.start),N(o))),this):!!f},this.kill=this.revert=function(){r.paused(!1),N(o),o.kill();for(var t=(a||[]).concat(l||[]),e=t.length;e--;)t[e].kill();La.scrollerProxy(i),La.removeEventListener("killAll",G),La.removeEventListener("refresh",j),i.style.cssText=c,n.style.cssText=h;var s=La.defaults({});s&&s.scroller===i&&La.defaults({scroller:Ma}),r.normalizer&&La.normalizeScroll(!1),clearInterval(u),Ia=null,X&&X.disconnect(),Ra.style.removeProperty("height"),Ma.removeEventListener("focusin",V)},this.refresh=function(t,e){return o.refresh(t,e)},S&&(this.normalizer=La.normalizeScroll(!0===S?{debounce:!0,content:!A&&n}:S)),La.config(e),"scrollBehavior"in Ma.getComputedStyle(Ra)&&ka.set([Ra,Pa],{scrollBehavior:"auto"}),Ma.addEventListener("focusin",V),u=setInterval(I,250),"loading"===Aa.readyState||requestAnimationFrame((function(){return La.refresh()}))}var e,r;return t.register=function(e){return Oa||(ka=e||Va(),Xa()&&window.document&&(Ma=window,Aa=document,Pa=Aa.documentElement,Ra=Aa.body),ka&&(Da=ka.utils.toArray,za=ka.utils.clamp,Fa=ka.parseEase("expo"),qa=ka.core.context||function(){},La=ka.core.globals().ScrollTrigger,ka.core.globals("ScrollSmoother",t),Ra&&La&&(Ya=ka.delayedCall(.2,(function(){return La.isRefreshing||Ia&&Ia.refresh()})).pause(),Ba=La.core._getVelocityProp,Na=La.core._inputObserver,t.refresh=La.refresh,Oa=1))),Oa},e=t,(r=[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}])&&Ca(e.prototype,r),t}();Ua.version="3.13.0",Ua.create=function(t){return Ia&&t&&Ia.content()===Da(t.content)[0]?Ia:new Ua(t)},Ua.get=function(){return Ia},Va()&&ka.registerPlugin(Ua);class Wa{constructor(t){this._modal=document.querySelector(t),this._handleEscButton=t=>{"Escape"===t.key&&this.close()},this._handleOverlayClick=t=>{t.target.classList.contains("popup_opened")&&this.close()}}open(){document.querySelector("body").classList.add("body-fixed"),this._modal.classList.add("popup_opened"),document.addEventListener("keydown",this._handleEscButton)}close(){this._modal.classList.remove("popup_opened"),document.removeEventListener("keydown",this._handleEscButton),document.querySelector("body").classList.remove("body-fixed")}setEventListeners(){this._modal.querySelector(".popup-button-close").addEventListener("mousedown",(()=>{this.close()}))}}Wn.registerPlugin(Pi,Jo,Sa,Ua);const ja=Ua.create({smooth:2,effects:!0,smoothTouch:.05,normalizeScroll:!0}),Ga=document.forms.quiz,$a=["gorizontalnye-rezervuary-rgs","gorizontalnye-rezervuary-rgsp","vertikalnye-rezervuary","silosy"],Qa=Ga.querySelectorAll(".formquiz__inputcheckbox"),Za=$a.map((t=>{const e=Ga.querySelector(`#sizes-${t}`);return e.classList.add("hidden"),e}));Za[0].classList.remove("hidden");const Ka=$a.map((t=>{const e=Ga.querySelector(`#staff-${t}`);return e.classList.add("hidden"),e}));Ka[0].classList.remove("hidden"),Array.from(Qa).map((t=>{t.addEventListener("change",(t=>{var e;e=Ga.elements.rezervuartype.value,Za.map((t=>{t.id===`sizes-${e}`?t.classList.remove("hidden"):t.classList.add("hidden")})),function(t){Ka.map((e=>{e.id===`staff-${t}`?e.classList.remove("hidden"):e.classList.add("hidden")}))}(Ga.elements.rezervuartype.value)}))}));const Ja=new Wa(".popup-menu");Ja.setEventListeners(),document.querySelector(".nav__mobile-icon").addEventListener("click",(()=>{Ja.open(),console.log("111")}));const tl=new class{constructor({baseUrl:t,headers:e}){this._baseUrl=t,this._headers=e}_isResponseOk(t){return t.ok?t.json():Promise.reject(`Ошибка: ${t.status}`)}getProducts(){return fetch("https://api-cms.kupcov.com/data/products",{headers:this._headers}).then((t=>this._isResponseOk(t)))}getInitiatPartners(){return fetch("https://api.termoblok.ru/partners",{headers:this._headers}).then((t=>this._isResponseOk(t)))}sendSmallForm(t){return fetch(`${this._baseUrl}/forms/small-form`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((t=>this._isResponseOk(t)))}sendBigForm(t){return fetch(`${this._baseUrl}/forms/big-form`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((t=>this._isResponseOk(t)))}}({baseUrl:"https://api-cms.kupcov.com",headers:{Accept:"application/json","Content-Type":"application/json;charset=utf-8"}}),el=".form-in-popup",rl=document.querySelector(".popup-callback-button"),nl=document.querySelector(el),il=new class{constructor(t,e){this._inputSelector=t.inputSelector,this._inputErrorClass=t.inputErrorClass,this._errorClass=t.errorClass,this._submitButtonSelector=t.submitButtonSelector,this._inactiveButtonClass=t.inactiveButtonClass,this._formElement=e,this._inputList=Array.from(this._formElement.querySelectorAll(this._inputSelector)),this._buttonElement=this._formElement.querySelector(this._submitButtonSelector)}_showInputError(t,e){const r=this._formElement.querySelector(`.${t.id}-error`);t.classList.add(this._inputErrorClass),r.textContent=e,r.classList.add(this._errorClass)}_hideInputError(t){const e=this._formElement.querySelector(`.${t.id}-error`);t.classList.remove(this._inputErrorClass),e.classList.remove(this._errorClass),e.textContent=""}_checkInputValidity(t){t.validity.valid?this._hideInputError(t):this._showInputError(t,t.validationMessage)}_hasInvalidInput(t){return t.some((t=>!t.validity.valid))}_toggleButtonState(t,e){this._hasInvalidInput(t)?(e.classList.add(this._inactiveButtonClass),e.setAttribute("disabled",!0)):(e.classList.remove(this._inactiveButtonClass),e.removeAttribute("disabled"))}_showErrors(t,e){t.forEach((r=>{this._checkInputValidity(r),this._toggleButtonState(t,e)}))}toggleButtonState(){this._toggleButtonState(this._inputList,this._buttonElement)}hasInvalidInput(){return this._hasInvalidInput(this._inputList)}disableSaveButton(){this._buttonElement.classList.add(this._inactiveButtonClass),this._buttonElement.setAttribute("disabled",!0)}cleanAllErrors(){this._inputList.forEach((t=>{this._hideInputError(t)}))}showErrors(){this._inputList.forEach((t=>{this._checkInputValidity(t),this.toggleButtonState(this._inputList,this._buttonElement)}))}showErrorsForStep(t){}_setEventListeners(){this._inputList.forEach((t=>{t.addEventListener("input",(()=>{this._checkInputValidity(t),this.toggleButtonState()}))}))}_setStepEventListeners(t){t.forEach((t=>{const e=t.inputs,r=t.button;console.log(`123 ${r}`),e.forEach((t=>{t.addEventListener("input",(()=>{this._checkInputValidity(t),this._toggleButtonState(e,r)}))}))}))}enableValidation(){this._formElement.addEventListener("submit",(t=>{t.preventDefault()})),this._setEventListeners()}checkStep(t){const e=this._sets[t].inputs,r=this._sets[t].button;return!this._hasInvalidInput(e)||(this._showErrors(e,r),this._toggleButtonState(e,r),!1)}enableStepValidation(){this._sets=[];const t=this._formElement.querySelector(".first-step"),e=t.querySelector(".first-step-button"),r=Array.from(t.querySelectorAll(this._inputSelector));this._sets.push({inputs:r,button:e});const n=this._formElement.querySelector(".second-step"),i=n.querySelector(".second-step-button"),s=Array.from(n.querySelectorAll(this._inputSelector));this._sets.push({inputs:s,button:i}),this._setStepEventListeners(this._sets)}}({inputSelector:".form__input",submitButtonSelector:".form__submit-button",inactiveButtonClass:"form__submit-button_disabled",inputErrorClass:"form__input_type_error",errorClass:"form__input-error_visible"},nl);il.enableValidation();const sl=new class extends Wa{constructor({formSubmitHandler:t,formCleanError:e,checherValidation:r,handleClose:n},i,s,o){super(i),this._formSubmitHandler=t,this._formCleanError=e,this._formElement=this._modal.querySelector(s),this._heading=this._modal.querySelector(".popup-heading"),this._comment=this._modal.querySelector(".popup-textarea-input"),this._inputSelector=o,this._checker=r,n&&(this._handleCloseFunc=n)}_getInputValues(){return this._inputList=this._formElement.querySelectorAll(this._inputSelector),this._formValues={},this._inputList.forEach((t=>{this._formValues[t.name]=t.value})),this._formValues}open(t,e){this._heading.textContent=t||"Отправить заявку на расчёт",this._comment.textContent=e||"",super.open()}close(){super.close(),this._handleCloseFunc&&this._handleCloseFunc(),this._formElement.reset(),this._formCleanError()}setEventListeners(){super.setEventListeners(),this._formElement.addEventListener("submit",(t=>{t.preventDefault(),this._checker()&&this._formSubmitHandler(this._getInputValues())}))}}({handleClose:()=>{ja?.paused(!1)},formSubmitHandler:async t=>{console.log(t);try{const e=await tl.sendSmallForm(t);if(!e.message||"Норм"!==e.message)throw new Error("Вернулся какой то не такой объект");sl.close()}catch(t){console.log("Что то пошло не так",t)}},formCleanError:()=>{il.cleanAllErrors()},checherValidation:t=>!il.hasInvalidInput()||(il.showErrors(),!1)},".popup-with-form",el,".form__input");sl.setEventListeners(),rl.addEventListener("click",(()=>{sl.open(),console.log("smoother buttonToOpenPopupWithForm",ja),ja&&ja.paused(!0)})),Wn.utils.toArray(".comparisonSectionWrapper").forEach((t=>{Wn.timeline({scrollTrigger:{trigger:t,start:"top top",end:()=>"+="+t.offsetWidth,scrub:!0,pin:!0},defaults:{ease:"none"}}).to("body",{backgroundColor:"#000",duration:.14},0).to(".text-logo-cs",{fill:"#f2f2f2",duration:0},.05).to(".text-logo-cs1",{yPercent:-50,duration:.1},.05).fromTo(t.querySelector(".afterImage"),{xPercent:100,x:0},{xPercent:0},0).fromTo(t.querySelector(".afterImage img"),{xPercent:-100,x:0},{xPercent:0},0).to(t.querySelector(".button-1"),{opacity:1,duration:.01},.1).to(t.querySelector(".button-2"),{opacity:1,duration:.01},.3).to(t.querySelector(".button-3"),{opacity:1,duration:.01},.4).to("body",{backgroundColor:"#fff",duration:.14},.85)})),document.fonts.ready.then((()=>{document.getElementById("original-text"),document.getElementById("animated-text"),Sa.create("#animated-text",{type:"lines",linesClass:"line linex relative overflow-hidden block",autoSplit:!0}).lines.forEach(((t,e)=>{Wn.fromTo(t,{width:0,transformOrigin:"left center"},{width:"100%",ease:"power2.out",scrollTrigger:{trigger:t,start:"top 85%",end:"top 30%",scrub:1.5,markers:!1},delay:.25*e})}))}))})();