p-1e-8&&!g?p:t<1e-8?0:t;if(d){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g){if(n=m,c=this.timeline,this._repeat){if(s=d+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*s+t,e,r);if(n=tk(m%s),m===p?(o=this._repeat,n=d):((o=~~(m/s))&&o===tk(m/s)&&(n=d,o--),n>d&&(n=d)),(u=this._yoyo&&1&o)&&(h=this._yEase,n=d-n),a=tU(this._tTime,s),n===f&&!r&&this._initted&&o===a)return this._tTime=m,this;o!==a&&(c&&this._yEase&&eL(c,u),this.vars.repeatRefresh&&!u&&!this._lock&&this._time!==s&&this._initted&&(this._lock=r=1,this.render(tk(s*o),!0).invalidate()._lock=0))}if(!this._initted){if(tZ(this,g?t:n,r,e,m))return this._tTime=0,this;if(f!==this._time&&!(r&&this.vars.repeatRefresh&&o!==a))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(h||this._ease)(n/d),this._from&&(this.ratio=l=1-l),n&&!f&&!e&&!o&&(ed(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:c._dur*c._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&tq(this,t,e,r),ed(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!e&&this.parent&&ed(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(g&&!this._onUpdate&&tq(this,t,!0,!0),(t||!d)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&tY(this,1),!e&&!(g&&!f)&&(m||f||u)&&(ed(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m0)&&this._prom()))}}else t1(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return e&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){C||eM.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||e0(this,o),e1(this,t,e,r,n,this._ease(o/this._dur),o,i))?this.resetTo(t,e,r,n,1):(tG(this,0),this.parent||tF(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!t&&(!e||"all"===e))return this._lazy=this._pt=0,this.parent?eg(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,eG&&!0!==eG.vars.overwrite)._first||eg(this),this.parent&&r!==this.timeline.totalDuration()&&t5(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,o,s,a,u,l,c=this._targets,h=t?en(t):c,f=this._ptLookup,p=this._pt;if((!e||"all"===e)&&tB(c,h))return"all"===e&&(this._pt=0),eg(this);for(n=this._op=this._op||[],"all"!==e&&(N(e)&&(a={},tT(e,function(t){return a[t]=1}),e=a),e=e2(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(a in i=f[l],"all"===e?(n[l]=e,s=i,o={}):(o=n[l]=n[l]||{},s=e),s)(u=i&&i[a])&&("kill"in u.d&&!0!==u.d.kill(a)||tN(this,u,"_pt"),delete i[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&p&&eg(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return t4(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return t4(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return T.killTweensOf(t,e,r)},e}(eX);tD(e4.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),tT("staggerTo,staggerFrom,staggerFromTo",function(t){e4[t]=function(){var e=new eq,r=ee.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var e9=function(t,e,r){return t[e]=r},e7=function(t,e,r){return t[e](r)},rt=function(t,e,r,n){return t[e](n.fp,r)},re=function(t,e,r){return t.setAttribute(e,r)},rr=function(t,e){return Y(t[e])?e7:X(t[e])&&t.setAttribute?re:e9},rn=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},ri=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ro=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((r.s+r.c*t)*1e4)/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},rs=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ra=function(t,e,r,n){for(var i,o=this._pt;o;)i=o._next,o.p===n&&o.modifier(t,e,r),o=i},ru=function(t){for(var e,r,n=this._pt;n;)r=n._next,(n.p!==t||n.op)&&n.op!==t?n.dep||(e=1):tN(this,n,"_pt"),n=r;return!e},rl=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},rc=function(t){for(var e,r,n,i,o=t._pt;o;){for(e=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:i)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:i=o,o=e}t._pt=n},rh=function(){function t(t,e,r,n,i,o,s,a,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=o||rn,this.d=s||this,this.set=a||e9,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=rl,this.m=t,this.mt=r,this.tween=e},t}();tT(ty+"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 tf[t]=1}),tr.TweenMax=tr.TweenLite=e4,tr.TimelineLite=tr.TimelineMax=eq,T=new eq({sortChildren:!1,defaults:D,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),A.stringFilter=ek;var rf=[],rp={},rd=[],rg=0,rm=0,r_=function(t){return(rp[t]||rd).map(function(t){return t()})},rv=function(){var t=Date.now(),e=[];t-rg>2&&(r_("matchMediaInit"),rf.forEach(function(t){var r,n,i,o,s=t.queries,a=t.conditions;for(n in s)(r=E.matchMedia(s[n]).matches)&&(i=1),r!==a[n]&&(a[n]=r,o=1);o&&(t.revert(),i&&e.push(t))}),r_("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),rg=t,r_("matchMedia"))},ry=function(){function t(t,e){this.selector=e&&ei(e),this.data=[],this._r=[],this.isReverted=!1,this.id=rm++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){Y(t)&&(r=e,e=t,t=Y);var n=this,i=function(){var t,i=b,o=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=ei(r)),b=n,t=e.apply(n,arguments),Y(t)&&n._r.push(t),b=i,n.selector=o,n.isReverted=!1,t};return n.last=i,t===Y?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=b;b=null,t(this),b=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof e4&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach(function(t){return n.splice(n.indexOf(t),1)}));for(n.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(e){return e.t.revert(t)}),i=r.data.length;i--;)(e=r.data[i])instanceof eq?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):e instanceof e4||!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=rf.length;n--;)rf[n].id===this.id&&rf.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),rx=function(){function t(t){this.contexts=[],this.scope=t,b&&b.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){q(t)||(t={matches:t});var n,i,o,s=new ry(0,r||this.scope),a=s.conditions={};for(i in b&&!s.selector&&(s.selector=b.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?o=1:(n=E.matchMedia(t[i]))&&(0>rf.indexOf(s)&&rf.push(s),(a[i]=n.matches)&&(o=1),n.addListener?n.addListener(rv):n.addEventListener("change",rv));return o&&e(s,function(t){return s.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}(),rw={registerPlugin:function(){for(var t=arguments.length,e=Array(t),r=0;r1){var n=t.map(function(t){return rk.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var o=tg[e],s=tw(t),a=s.harness&&(s.harness.aliases||{})[e]||e,u=o?function(e){var n=new o;P._pt=0,n.init(t,r?e+r:e,P,0,[t]),n.render(1,n),P._pt&&rs(1,P)}:s.set(t,a);return o?u:function(e){return u(t,a,r?e+r:e,s,1)}},quickTo:function(t,e,r){var n,i=rk.to(t,tR(((n={})[e]="+=0.1",n.paused=!0,n),r||{})),o=function(t,r,n){return i.resetTo(e,t,r,n)};return o.tween=i,o},isTweening:function(t){return T.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=eI(t.ease,D.ease)),tz(D,t||{})},config:function(t){return tz(A,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(t){return t&&!tg[t]&&!tr[t]&&ts(e+" effect requires "+t+" plugin.")}),tm[e]=function(t,e,n){return r(en(t),tD(e||{},i),n)},o&&(eq.prototype[e]=function(t,r,n){return this.add(tm[e](t,q(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){eS[t]=eI(e)},parseEase:function(t,e){return arguments.length?eI(t,e):eS},getById:function(t){return T.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new eq(t);for(i.smoothChildTiming=j(t.smoothChildTiming),T.remove(i),i._dp=0,i._time=i._tTime=T._time,r=T._first;r;)n=r._next,(e||!(!r._dur&&r instanceof e4&&r.vars.onComplete===r._targets[0]))&&tQ(i,r,r._start-r._delay),r=n;return tQ(T,i,0),i},context:function(t,e){return t?new ry(t,e):b},matchMedia:function(t){return new rx(t)},matchMediaRefresh:function(){return rf.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||rv()},addEventListener:function(t,e){var r=rp[t]||(rp[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=rp[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return G(e)?ec(e,t(0,e.length),r):t9(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,o=2*i;return G(e)?ec(e,t(0,e.length-1),r):t9(n,function(t){return t=(o+(t-e)%o)%o||0,e+(t>i?o-t:t)})},distribute:es,random:el,snap:eu,normalize:function(t,e,r){return ef(t,e,0,1,r)},getUnit:et,clamp:function(t,e,r){return t9(r,function(r){return t7(t,e,r)})},splitColor:ex,toArray:en,selector:ei,mapRange:ef,pipe:function(){for(var t=arguments.length,e=Array(t),r=0;r{setTimeout(()=>{this.progress(t,e,r)})};this.images.forEach(function(e){e.once("progress",t),e.check()})},i.prototype.progress=function(t,e,r){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&n&&n.log(`progress: ${r}`,t,e)},i.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},a.prototype=Object.create(e.prototype),a.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(0!==this.img.naturalWidth,"naturalWidth");return}this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},a.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},a.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:r}=this.img,n="PICTURE"===r.nodeName?r:this.img;this.emitEvent("progress",[this,n,e])},a.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},a.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},a.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},a.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype=Object.create(a.prototype),u.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((r=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(r(this))})},i.makeJQueryPlugin(),i},a?a=x(y,o("4hJWI")):y.imagesLoaded=x(y,y.EvEmitter);const u=(t,e,r,n,i)=>(t-e)*(i-n)/(r-e)+n,l=(t,e=400,r=5e3)=>{let n={width:window.innerWidth,height:window.innerHeight},i=t.getBoundingClientRect(),o={x:i.left+t.offsetWidth/2,y:i.top+t.offsetHeight/2},s={x:n.width/2,y:n.height/2};e=Math.max(u(c(t),0,r,e,0),0);let a=Math.atan2(Math.abs(s.y-o.y),Math.abs(s.x-o.x)),l=Math.abs(Math.cos(a)*e),h=Math.abs(Math.sin(a)*e);return{x:o.x{let e={width:window.innerWidth,height:window.innerHeight},r={x:t.offsetLeft+t.offsetWidth/2,y:t.offsetTop+t.offsetHeight/2},n={x:e.width/2,y:e.height/2};return Math.hypot(r.x-n.x,r.y-n.y)};var h={};function f(){}f.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function i(){n.off(t,i),e.apply(r,arguments)}return i._=e,this.on(t,i,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=r.length;n0&&r<0||e<0&&r>0)&&(r+=e),r}p=function(){var t=0;function e(e){return"__private_"+t+++"_"+e}function r(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw TypeError("attempted to use private field on non-instance");return t}function n(){}n.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function i(){n.off(t,i),e.apply(r,arguments)}return i._=e,this.on(t,i,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=r.length;n1,hasPointer:!!window.navigator.msPointerEnabled,hasKeyDown:"onkeydown"in document,isFirefox:navigator.userAgent.indexOf("Firefox")>-1}),r(this,s)[s]=Object.assign({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",useKeyboard:!0,useTouch:!0},t),r(this,u)[u]=new n,r(this,l)[l]={y:0,x:0,deltaX:0,deltaY:0},r(this,c)[c]={x:null,y:null},r(this,h)[h]=null,void 0!==r(this,s)[s].passive&&(this.listenerOptions={passive:r(this,s)[s].passive})}var e=t.prototype;return e._notify=function(t){var e=r(this,l)[l];e.x+=e.deltaX,e.y+=e.deltaY,r(this,u)[u].emit(o,{x:e.x,y:e.y,deltaX:e.deltaX,deltaY:e.deltaY,originalEvent:t})},e._bind=function(){i.hasWheelEvent&&r(this,a)[a].addEventListener("wheel",this._onWheel,this.listenerOptions),i.hasMouseWheelEvent&&r(this,a)[a].addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),i.hasTouch&&r(this,s)[s].useTouch&&(r(this,a)[a].addEventListener("touchstart",this._onTouchStart,this.listenerOptions),r(this,a)[a].addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),i.hasPointer&&i.hasTouchWin&&(r(this,h)[h]=document.body.style.msTouchAction,document.body.style.msTouchAction="none",r(this,a)[a].addEventListener("MSPointerDown",this._onTouchStart,!0),r(this,a)[a].addEventListener("MSPointerMove",this._onTouchMove,!0)),i.hasKeyDown&&r(this,s)[s].useKeyboard&&document.addEventListener("keydown",this._onKeyDown)},e._unbind=function(){i.hasWheelEvent&&r(this,a)[a].removeEventListener("wheel",this._onWheel),i.hasMouseWheelEvent&&r(this,a)[a].removeEventListener("mousewheel",this._onMouseWheel),i.hasTouch&&(r(this,a)[a].removeEventListener("touchstart",this._onTouchStart),r(this,a)[a].removeEventListener("touchmove",this._onTouchMove)),i.hasPointer&&i.hasTouchWin&&(document.body.style.msTouchAction=r(this,h)[h],r(this,a)[a].removeEventListener("MSPointerDown",this._onTouchStart,!0),r(this,a)[a].removeEventListener("MSPointerMove",this._onTouchMove,!0)),i.hasKeyDown&&r(this,s)[s].useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)},e.on=function(t,e){r(this,u)[u].on(o,t,e);var n=r(this,u)[u].e;n&&n[o]&&1===n[o].length&&this._bind()},e.off=function(t,e){r(this,u)[u].off(o,t,e);var n=r(this,u)[u].e;(!n[o]||n[o].length<=0)&&this._unbind()},e.destroy=function(){r(this,u)[u].off(),this._unbind()},t}()}();var y,x,w,b,T,E,k,M,O,S=["duration","easing"],P=function(){function t(){}var e=t.prototype;return e.to=function(t,e){var r=this,n=void 0===e?{}:e,i=n.duration,o=n.easing,s=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n=0||(i[r]=t[r]);return i}(n,S);this.target=t,this.fromKeys=m({},s),this.toKeys=m({},s),this.keys=Object.keys(m({},s)),this.keys.forEach(function(e){r.fromKeys[e]=t[e]}),this.duration=void 0===i?1:i,this.easing=void 0===o?function(t){return t}:o,this.currentTime=0,this.isRunning=!0},e.stop=function(){this.isRunning=!1},e.raf=function(t){var e=this;if(this.isRunning){this.currentTime=Math.min(this.currentTime+t,this.duration);var r=this.progress>=1?1:this.easing(this.progress);this.keys.forEach(function(t){var n=e.fromKeys[t];e.target[t]=n+(e.toKeys[t]-n)*r}),1===r&&this.stop()}},g(t,[{key:"progress",get:function(){return this.currentTime/this.duration}}]),t}(),C=function(t){function e(e){var r,n,i,o,s,a=void 0===e?{}:e,u=a.duration,l=void 0===u?1.2:u,c=a.easing,h=void 0===c?function(t){return Math.min(1,1.001-Math.pow(2,-10*t))}:c,f=a.smooth,d=void 0===f||f,g=a.mouseMultiplier,m=void 0===g?1:g,_=a.smoothTouch,v=void 0!==_&&_,y=a.touchMultiplier,x=void 0===y?2:y,w=a.direction,b=void 0===w?"vertical":w,T=a.gestureDirection,E=void 0===T?"vertical":T,k=a.infinite,M=void 0!==k&&k,O=a.wrapper,S=void 0===O?window:O,C=a.content,A=void 0===C?document.body:C;(s=t.call(this)||this).onWindowResize=function(){s.wrapperWidth=window.innerWidth,s.wrapperHeight=window.innerHeight},s.onWrapperResize=function(t){var e=t[0];if(e){var r=e.contentRect;s.wrapperWidth=r.width,s.wrapperHeight=r.height}},s.onContentResize=function(t){var e=t[0];if(e){var r=e.contentRect;s.contentWidth=r.width,s.contentHeight=r.height}},s.onVirtualScroll=function(t){var e=t.deltaY,r=t.deltaX,n=t.originalEvent;if(!("vertical"===s.gestureDirection&&0===e||"horizontal"===s.gestureDirection&&0===r)){var i=!!n.composedPath().find(function(t){return t.hasAttribute&&t.hasAttribute("data-lenis-prevent")});n.ctrlKey||i||(s.smooth=n.changedTouches?s.smoothTouch:s.options.smooth,s.stopped?n.preventDefault():s.smooth&&4!==n.buttons&&(s.smooth&&n.preventDefault(),s.targetScroll-="both"===s.gestureDirection?r+e:"horizontal"===s.gestureDirection?r:e,s.scrollTo(s.targetScroll)))}},s.onScroll=function(t){s.isScrolling&&s.smooth||(s.targetScroll=s.scroll=s.lastScroll=s.wrapperNode[s.scrollProperty],s.notify())},window.lenisVersion="0.2.28",s.options={duration:l,easing:h,smooth:d,mouseMultiplier:m,smoothTouch:v,touchMultiplier:x,direction:b,gestureDirection:E,infinite:M,wrapper:S,content:A},s.duration=l,s.easing=h,s.smooth=d,s.mouseMultiplier=m,s.smoothTouch=v,s.touchMultiplier=x,s.direction=b,s.gestureDirection=E,s.infinite=M,s.wrapperNode=S,s.contentNode=A,s.wrapperNode.addEventListener("scroll",s.onScroll),s.wrapperNode===window?(s.wrapperNode.addEventListener("resize",s.onWindowResize),s.onWindowResize()):(s.wrapperHeight=s.wrapperNode.offsetHeight,s.wrapperWidth=s.wrapperNode.offsetWidth,s.wrapperObserver=new ResizeObserver(s.onWrapperResize),s.wrapperObserver.observe(s.wrapperNode)),s.contentHeight=s.contentNode.offsetHeight,s.contentWidth=s.contentNode.offsetWidth,s.contentObserver=new ResizeObserver(s.onContentResize),s.contentObserver.observe(s.contentNode),s.targetScroll=s.scroll=s.lastScroll=s.wrapperNode[s.scrollProperty],s.animate=new P;var D=(null==(n=navigator)||null==(i=n.userAgentData)?void 0:i.platform)||(null==(o=navigator)?void 0:o.platform)||"unknown";return s.virtualScroll=new((r=p)&&r.__esModule?r.default:r)({el:s.wrapperNode,firefoxMultiplier:50,mouseMultiplier:s.mouseMultiplier*(D.includes("Win")||D.includes("Linux")?.84:.4),touchMultiplier:s.touchMultiplier,passive:!1,useKeyboard:!1,useTouch:!0}),s.virtualScroll.on(s.onVirtualScroll),s}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_(e,t);var r=e.prototype;return r.start=function(){var t=this.wrapperNode;this.wrapperNode===window&&(t=document.documentElement),t.classList.remove("lenis-stopped"),this.stopped=!1},r.stop=function(){var t=this.wrapperNode;this.wrapperNode===window&&(t=document.documentElement),t.classList.add("lenis-stopped"),this.stopped=!0,this.animate.stop()},r.destroy=function(){var t;this.wrapperNode===window&&this.wrapperNode.removeEventListener("resize",this.onWindowResize),this.wrapperNode.removeEventListener("scroll",this.onScroll),this.virtualScroll.destroy(),null==(t=this.wrapperObserver)||t.disconnect(),this.contentObserver.disconnect()},r.raf=function(t){var e=t-(this.now||0);this.now=t,!this.stopped&&this.smooth&&(this.lastScroll=this.scroll,this.animate.raf(.001*e),this.scroll===this.targetScroll&&(this.lastScroll=this.scroll),this.isScrolling&&(this.setScroll(this.scroll),this.notify()),this.isScrolling=this.scroll!==this.targetScroll)},r.setScroll=function(t){var e=this.infinite?v(t,this.limit):t;"horizontal"===this.direction?this.wrapperNode.scrollTo(e,0):this.wrapperNode.scrollTo(0,e)},r.notify=function(){var t=this.infinite?v(this.scroll,this.limit):this.scroll;this.emit("scroll",{scroll:t,limit:this.limit,velocity:this.velocity,direction:0===this.velocity?0:this.velocity>0?1:-1,progress:t/this.limit})},r.scrollTo=function(t,e){var r=void 0===e?{}:e,n=r.offset,i=r.immediate,o=r.duration,s=void 0===o?this.duration:o,a=r.easing,u=void 0===a?this.easing:a;if(null!=t&&!this.stopped){if("number"==typeof t)l=t;else if("top"===t||"#top"===t)l=0;else if("bottom"===t)l=this.limit;else{if("string"==typeof t)c=document.querySelector(t);else{if(null==t||!t.nodeType)return;c=t}if(!c)return;var l,c,h=0;if(this.wrapperNode!==window){var f=this.wrapperNode.getBoundingClientRect();h="horizontal"===this.direction?f.left:f.top}var p=c.getBoundingClientRect();l=("horizontal"===this.direction?p.left:p.top)+this.scroll-h}l+=void 0===n?0:n,this.targetScroll=this.infinite?l:Math.max(0,Math.min(l,this.limit)),!this.smooth||void 0!==i&&i?(this.animate.stop(),this.scroll=this.lastScroll=this.targetScroll,this.setScroll(this.targetScroll)):this.animate.to(this,{duration:s,easing:u,scroll:this.targetScroll})}},g(e,[{key:"scrollProperty",get:function(){return this.wrapperNode===window?"horizontal"===this.direction?"scrollX":"scrollY":"horizontal"===this.direction?"scrollLeft":"scrollTop"}},{key:"limit",get:function(){return"horizontal"===this.direction?this.contentWidth-this.wrapperWidth:this.contentHeight-this.wrapperHeight}},{key:"velocity",get:function(){return this.scroll-this.lastScroll}}]),e}(h.TinyEmitter),A=(o("jxfTi"),o("jxfTi")),D={},R=180/Math.PI,z=Math.PI/180,L=Math.atan2,I=/([A-Z])/g,B=/(left|right|width|margin|padding|x)/i,F=/[\s,\(]\S/,N={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Y=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},W=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},X=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},q=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},j=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},U=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},H=function(t,e,r){return t.style[e]=r},V=function(t,e,r){return t.style.setProperty(e,r)},G=function(t,e,r){return t._gsap[e]=r},K=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Q=function(t,e,r,n,i){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},$=function(t,e,r,n,i){var o=t._gsap;o[e]=r,o.renderTransform(i,o)},Z="transform",J=Z+"Origin",tt=function t(e,r){var n=this,i=this.target,o=i.style,s=i._gsap;if(e in D&&o){if(this.tfm=this.tfm||{},"transform"===e)return N.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=N[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=tv(i,t)}):this.tfm[e]=s.x?s[e]:tv(i,e),e===J&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(Z)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(J,r,"")),e=Z}(o||r)&&this.props.push(e,r,o[e])},te=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},tr=function(){var t,e,r=this.props,n=this.target,i=n.style,o=n._gsap;for(t=0;t=0?ts[i]:"")+t},tu=function(){"undefined"!=typeof window&&window.document&&(b=(w=window.document).documentElement,E=ti("div")||{style:{}},ti("div"),J=(Z=ta(Z))+"Origin",E.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",O=!!ta("perspective"),M=A.gsap.core.reverting,T=1)},tl=function t(e){var r,n=ti("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(b.appendChild(n),n.appendChild(this),this.style.display="block",e)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(r=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),b.removeChild(n),this.style.cssText=s,r},tc=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},th=function(t){var e;try{e=t.getBBox()}catch(r){e=tl.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===tl||(e=tl.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+tc(t,["x","cx","x1"])||0,y:+tc(t,["y","cy","y1"])||0,width:0,height:0}},tf=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&th(t))},tp=function(t,e){if(e){var r,n=t.style;e in D&&e!==J&&(e=Z),n.removeProperty?(("ms"===(r=e.substr(0,2))||"webkit"===e.substr(0,6))&&(e="-"+e),n.removeProperty("--"===r?e:e.replace(I,"-$1").toLowerCase())):n.removeAttribute(e)}},td=function(t,e,r,n,i,o){var s=new A.PropTween(t._pt,e,r,0,1,o?U:j);return t._pt=s,s.b=n,s.e=i,t._props.push(r),s},tg={deg:1,rad:1,turn:1},tm={grid:1,flex:1},t_=function t(e,r,n,i){var o,s,a,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",h=E.style,f=B.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(f?"Width":"Height"),g="px"===i,m="%"===i;if(i===c||!l||tg[i]||tg[c])return l;if("px"===c||g||(l=t(e,r,n,"px")),u=e.getCTM&&tf(e),(m||"%"===c)&&(D[r]||~r.indexOf("adius")))return o=u?e.getBBox()[f?"width":"height"]:e[d],(0,A._round)(m?l/o*100:l/100*o);if(h[f?"width":"height"]=100+(g?c:i),s=~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==w&&s.appendChild||(s=w.body),(a=s._gsap)&&m&&a.width&&f&&a.time===A._ticker.time&&!a.uncache)return(0,A._round)(l/a.width*100);if(m&&("height"===r||"width"===r)){var _=e.style[r];e.style[r]=100+i,o=e[d],_?e.style[r]=_:tp(e,r)}else(m||"%"===c)&&!tm[to(s,"display")]&&(h.position=to(e,"position")),s===e&&(h.position="static"),s.appendChild(E),o=E[d],s.removeChild(E),h.position="absolute";return f&&m&&((a=(0,A._getCache)(s)).time=A._ticker.time,a.width=s[d]),(0,A._round)(g?o*l/100:o&&l?100/o*l:0)},tv=function(t,e,r,n){var i;return T||tu(),e in N&&"transform"!==e&&~(e=N[e]).indexOf(",")&&(e=e.split(",")[0]),D[e]&&"transform"!==e?(i=tC(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:tA(to(t,J))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=tT[e]&&tT[e](t,e,r)||to(t,e)||(0,A._getProperty)(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?t_(t,e,i,r)+r:i},ty=function(t,e,r,n){if(!r||"none"===r){var i=ta(e,t,1),o=i&&to(t,i,1);o&&o!==r?(e=i,r=o):"borderColor"===e&&(r=to(t,"borderTopColor"))}var s,a,u,l,c,h,f,p,d,g,m,_=new A.PropTween(this._pt,t.style,e,0,1,A._renderComplexString),v=0,y=0;if(_.b=r,_.e=n,r+="","auto"==(n+="")&&(h=t.style[e],t.style[e]=n,n=to(t,e)||n,h?t.style[e]=h:tp(t,e)),s=[r,n],(0,A._colorStringFilter)(s),r=s[0],n=s[1],u=r.match(A._numWithUnitExp)||[],(n.match(A._numWithUnitExp)||[]).length){for(;a=(0,A._numWithUnitExp).exec(n);)f=a[0],d=n.substring(v,a.index),c?c=(c+1)%5:("rgba("===d.substr(-5)||"hsla("===d.substr(-5))&&(c=1),f!==(h=u[y++]||"")&&(l=parseFloat(h)||0,m=h.substr((l+"").length),"="===f.charAt(1)&&(f=(0,A._parseRelative)(l,f)+m),p=parseFloat(f),g=f.substr((p+"").length),v=A._numWithUnitExp.lastIndex-g.length,g||(g=g||A._config.units[e]||m,v!==n.length||(n+=g,_.e+=g)),m!==g&&(l=t_(t,e,h,g)||0),_._pt={_next:_._pt,p:d||1===y?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=v-1;)D[r=a[i]]&&(n=1,r="transformOrigin"===r?J:Z),tp(o,r);n&&(tp(o,Z),u&&(u.svg&&o.removeAttribute("transform"),tC(o,1),u.uncache=1,te(s)))}},tT={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var o=t._pt=new A.PropTween(t._pt,e,r,0,0,tb);return o.u=n,o.pr=-10,o.tween=i,t._props.push(r),1}}},tE=[1,0,0,1,0,0],tk={},tM=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},tO=function(t){var e=to(t,Z);return tM(e)?tE:e.substr(7).match(A._numExp).map(A._round)},tS=function(t,e){var r,n,i,o,s=t._gsap||(0,A._getCache)(t),a=t.style,u=tO(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?tE:u:(u!==tE||t.offsetParent||t===b||s.svg||(i=a.display,a.display="block",(r=t.parentNode)&&t.offsetParent||(o=1,n=t.nextElementSibling,b.appendChild(t)),u=tO(t),i?a.display=i:tp(t,"display"),o&&(n?r.insertBefore(t,n):r?r.appendChild(t):b.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},tP=function(t,e,r,n,i,o){var s,a,u,l,c=t._gsap,h=i||tS(t,!0),f=c.xOrigin||0,p=c.yOrigin||0,d=c.xOffset||0,g=c.yOffset||0,m=h[0],_=h[1],v=h[2],y=h[3],x=h[4],w=h[5],b=e.split(" "),T=parseFloat(b[0])||0,E=parseFloat(b[1])||0;r?h!==tE&&(a=m*y-_*v)&&(u=y/a*T+-v/a*E+(v*w-y*x)/a,l=-_/a*T+m/a*E-(m*w-_*x)/a,T=u,E=l):(T=(s=th(t)).x+(~b[0].indexOf("%")?T/100*s.width:T),E=s.y+(~(b[1]||b[0]).indexOf("%")?E/100*s.height:E)),n||!1!==n&&c.smooth?(x=T-f,w=E-p,c.xOffset=d+(x*m+w*v)-x,c.yOffset=g+(x*_+w*y)-w):c.xOffset=c.yOffset=0,c.xOrigin=T,c.yOrigin=E,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!r,t.style[J]="0px 0px",o&&(td(o,c,"xOrigin",f,T),td(o,c,"yOrigin",p,E),td(o,c,"xOffset",d,c.xOffset),td(o,c,"yOffset",g,c.yOffset)),t.setAttribute("data-svg-origin",T+" "+E)},tC=function(t,e){var r=t._gsap||new A.GSCache(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,o,s,a,u,l,c,h,f,p,d,g,m,_,v,y,x,w,b,T,E,k,M,S,P,C,D,I,B,F,N,Y=t.style,W=r.scaleX<0,X=getComputedStyle(t),q=to(t,J)||"0";return n=i=o=u=l=c=h=f=p=0,s=a=1,r.svg=!!(t.getCTM&&tf(t)),X.translate&&(("none"!==X.translate||"none"!==X.scale||"none"!==X.rotate)&&(Y[Z]=("none"!==X.translate?"translate3d("+(X.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==X.rotate?"rotate("+X.rotate+") ":"")+("none"!==X.scale?"scale("+X.scale.split(" ").join(",")+") ":"")+("none"!==X[Z]?X[Z]:"")),Y.scale=Y.rotate=Y.translate="none"),m=tS(t,r.svg),r.svg&&(r.uncache?(S=t.getBBox(),q=r.xOrigin-S.x+"px "+(r.yOrigin-S.y)+"px",M=""):M=!e&&t.getAttribute("data-svg-origin"),tP(t,M||q,!!M||r.originIsAbsolute,!1!==r.smooth,m)),d=r.xOrigin||0,g=r.yOrigin||0,m!==tE&&(x=m[0],w=m[1],b=m[2],T=m[3],n=E=m[4],i=k=m[5],6===m.length?(s=Math.sqrt(x*x+w*w),a=Math.sqrt(T*T+b*b),u=x||w?L(w,x)*R:0,(h=b||T?L(b,T)*R+u:0)&&(a*=Math.abs(Math.cos(h*z))),r.svg&&(n-=d-(d*x+g*b),i-=g-(d*w+g*T))):(N=m[6],B=m[7],C=m[8],D=m[9],I=m[10],F=m[11],n=m[12],i=m[13],o=m[14],l=(_=L(N,I))*R,_&&(M=E*(v=Math.cos(-_))+C*(y=Math.sin(-_)),S=k*v+D*y,P=N*v+I*y,C=-(E*y)+C*v,D=-(k*y)+D*v,I=-(N*y)+I*v,F=-(B*y)+F*v,E=M,k=S,N=P),c=(_=L(-b,I))*R,_&&(M=x*(v=Math.cos(-_))-C*(y=Math.sin(-_)),S=w*v-D*y,P=b*v-I*y,F=T*y+F*v,x=M,w=S,b=P),u=(_=L(w,x))*R,_&&(M=x*(v=Math.cos(_))+w*(y=Math.sin(_)),S=E*v+k*y,w=w*v-x*y,k=k*v-E*y,x=M,E=S),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),s=(0,A._round)(Math.sqrt(x*x+w*w+b*b)),a=(0,A._round)(Math.sqrt(k*k+N*N)),h=Math.abs(_=L(E,k))>2e-4?_*R:0,p=F?1/(F<0?-F:F):0),r.svg&&(M=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!tM(to(t,Z)),M&&t.setAttribute("transform",M))),Math.abs(h)>90&&270>Math.abs(h)&&(W?(s*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",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)+"px",r.z=o+"px",r.scaleX=(0,A._round)(s),r.scaleY=(0,A._round)(a),r.rotation=(0,A._round)(u)+"deg",r.rotationX=(0,A._round)(l)+"deg",r.rotationY=(0,A._round)(c)+"deg",r.skewX=h+"deg",r.skewY=f+"deg",r.transformPerspective=p+"px",(r.zOrigin=parseFloat(q.split(" ")[2])||!e&&r.zOrigin||0)&&(Y[J]=tA(q)),r.xOffset=r.yOffset=0,r.force3D=A._config.force3D,r.renderTransform=r.svg?tI:O?tL:tR,r.uncache=0,r},tA=function(t){return(t=t.split(" "))[0]+" "+t[1]},tD=function(t,e,r){var n=(0,A.getUnit)(e);return(0,A._round)(parseFloat(e)+parseFloat(t_(t,"x",r+"px",n)))+n},tR=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,tL(t,e)},tz="0deg",tL=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,o=r.x,s=r.y,a=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,h=r.skewX,f=r.skewY,p=r.scaleX,d=r.scaleY,g=r.transformPerspective,m=r.force3D,_=r.target,v=r.zOrigin,y="",x="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==tz||l!==tz)){var w,b=parseFloat(l)*z,T=Math.sin(b),E=Math.cos(b);o=tD(_,o,-(T*(w=Math.cos(b=parseFloat(c)*z))*v)),s=tD(_,s,-(-Math.sin(b)*v)),a=tD(_,a,-(E*w*v)+v)}"0px"!==g&&(y+="perspective("+g+") "),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||"0px"!==o||"0px"!==s||"0px"!==a)&&(y+="0px"!==a||x?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+") "),u!==tz&&(y+="rotate("+u+") "),l!==tz&&(y+="rotateY("+l+") "),c!==tz&&(y+="rotateX("+c+") "),(h!==tz||f!==tz)&&(y+="skew("+h+", "+f+") "),(1!==p||1!==d)&&(y+="scale("+p+", "+d+") "),_.style[Z]=y||"translate(0, 0)"},tI=function(t,e){var r,n,i,o,s,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,h=a.y,f=a.rotation,p=a.skewX,d=a.skewY,g=a.scaleX,m=a.scaleY,_=a.target,v=a.xOrigin,y=a.yOrigin,x=a.xOffset,w=a.yOffset,b=a.forceCSS,T=parseFloat(c),E=parseFloat(h);f=parseFloat(f),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),f+=d),f||p?(f*=z,p*=z,r=Math.cos(f)*g,n=Math.sin(f)*g,i=-(Math.sin(f-p)*m),o=Math.cos(f-p)*m,p&&(d*=z,i*=s=Math.sqrt(1+(s=Math.tan(p-d))*s),o*=s,d&&(r*=s=Math.sqrt(1+(s=Math.tan(d))*s),n*=s)),r=(0,A._round)(r),n=(0,A._round)(n),i=(0,A._round)(i),o=(0,A._round)(o)):(r=g,o=m,n=i=0),(T&&!~(c+"").indexOf("px")||E&&!~(h+"").indexOf("px"))&&(T=t_(_,"x",c,"px"),E=t_(_,"y",h,"px")),(v||y||x||w)&&(T=(0,A._round)(T+v-(v*r+y*i)+x),E=(0,A._round)(E+y-(v*n+y*o)+w)),(u||l)&&(s=_.getBBox(),T=(0,A._round)(T+u/100*s.width),E=(0,A._round)(E+l/100*s.height)),s="matrix("+r+","+n+","+i+","+o+","+T+","+E+")",_.setAttribute("transform",s),b&&(_.style[Z]=s)},tB=function(t,e,r,n,i){var o,s,a=(0,A._isString)(i),u=parseFloat(i)*(a&&~i.indexOf("rad")?R:1)-n,l=n+u+"deg";return a&&("short"===(o=i.split("_")[1])&&(u%=360)!=u%180&&(u+=u<0?360:-360),"cw"===o&&u<0?u=(u+36e9)%360-360*~~(u/360):"ccw"===o&&u>0&&(u=(u-36e9)%360-360*~~(u/360))),t._pt=s=new A.PropTween(t._pt,e,r,n,u,W),s.e=l,s.u="deg",t._props.push(r),s},tF=function(t,e){for(var r in e)t[r]=e[r];return t},tN=function(t,e,r){var n,i,o,s,a,u,l,c=tF({},r._gsap),h=r.style;for(i in c.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),h[Z]=e,n=tC(r,1),tp(r,Z),r.setAttribute("transform",o)):(o=getComputedStyle(r)[Z],h[Z]=e,n=tC(r,1),h[Z]=o),D)(o=c[i])!==(s=n[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(a=(0,A.getUnit)(o)!==(l=(0,A.getUnit)(s))?t_(r,i,o,l):parseFloat(o),u=parseFloat(s),t._pt=new A.PropTween(t._pt,n,i,a,u-a,Y),t._pt.u=l||0,t._props.push(i));tF(n,c)};(0,A._forEachName)("padding,margin,Width,Radius",function(t,e){var r="Right",n="Bottom",i="Left",o=(e<3?["Top",r,n,i]:["Top"+i,"Top"+r,n+r,n+i]).map(function(r){return e<2?t+r:"border"+r+t});tT[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return 5===(a=(s=o.map(function(e){return tv(t,e,r)})).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 tY={name:"css",register:tu,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var o,s,a,u,l,c,h,f,p,d,g,m,_,v,y,x,w=this._props,b=t.style,E=r.vars.startAt;for(h in T||tu(),this.styles=this.styles||tn(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(s=e[h],!(A._plugins[h]&&(0,A._checkPlugin)(h,e,r,n,t,i)))){if(l=typeof s,c=tT[h],"function"===l&&(l=typeof(s=s.call(r,n,t,i))),"string"===l&&~s.indexOf("random(")&&(s=(0,A._replaceRandom)(s)),c)c(this,t,h,s,r)&&(y=1);else if("--"===h.substr(0,2))o=(getComputedStyle(t).getPropertyValue(h)+"").trim(),s+="",A._colorExp.lastIndex=0,(0,A._colorExp).test(o)||(f=(0,A.getUnit)(o),p=(0,A.getUnit)(s)),p?f!==p&&(o=t_(t,h,o,p)+p):f&&(s+=f),this.add(b,"setProperty",o,s,n,i,0,0,h),w.push(h),x.push(h,0,b[h]);else if("undefined"!==l){if(E&&h in E?(o="function"==typeof E[h]?E[h].call(r,n,t,i):E[h],(0,A._isString)(o)&&~o.indexOf("random(")&&(o=(0,A._replaceRandom)(o)),(0,A.getUnit)(o+"")||"auto"===o||(o+=A._config.units[h]||(0,A.getUnit)(tv(t,h))||""),"="===(o+"").charAt(1)&&(o=tv(t,h))):o=tv(t,h),u=parseFloat(o),(d="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),h in N&&("autoAlpha"===h&&(1===u&&"hidden"===tv(t,"visibility")&&a&&(u=0),x.push("visibility",0,b.visibility),td(this,b,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=N[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in D){if(this.styles.save(h),m||((_=t._gsap).renderTransform&&!e.parseTransform||tC(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new A.PropTween(this._pt,b,Z,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===h)this._pt=new A.PropTween(this._pt,_,"scaleY",_.scaleY,(d?(0,A._parseRelative)(_.scaleY,d+a):a)-_.scaleY||0,Y),this._pt.u=0,w.push("scaleY",h),h+="X";else if("transformOrigin"===h){x.push(J,0,b[J]),s=tw(s),_.svg?tP(t,s,0,v,0,this):((p=parseFloat(s.split(" ")[2])||0)!==_.zOrigin&&td(this,_,"zOrigin",_.zOrigin,p),td(this,b,h,tA(o),tA(s)));continue}else if("svgOrigin"===h){tP(t,s,1,v,0,this);continue}else if(h in tk){tB(this,_,h,u,d?(0,A._parseRelative)(u,d+s):s);continue}else if("smoothOrigin"===h){td(this,_,"smooth",_.smooth,s);continue}else if("force3D"===h){_[h]=s;continue}else if("transform"===h){tN(this,s,t);continue}}else h in b||(h=ta(h)||h);if(g||(a||0===a)&&(u||0===u)&&!F.test(s)&&h in b)f=(o+"").substr((u+"").length),a||(a=0),p=(0,A.getUnit)(s)||(h in A._config.units?A._config.units[h]:f),f!==p&&(u=t_(t,h,o,p)),this._pt=new A.PropTween(this._pt,g?_:b,h,u,(d?(0,A._parseRelative)(u,d+a):a)-u,g||"px"!==p&&"zIndex"!==h||!1===e.autoRound?Y:q),this._pt.u=p||0,f!==p&&"%"!==p&&(this._pt.b=o,this._pt.r=X);else if(h in b)ty.call(this,t,h,o,d?d+s:s);else if(h in t)this.add(t,h,o||t[h],d?d+s:s,n,i);else if("parseTransform"!==h){(0,A._missingPlugin)(h,s);continue}g||(h in b?x.push(h,0,b[h]):x.push(h,1,o||t[h])),w.push(h)}}y&&(0,A._sortPropTweensByPriority)(this)},render:function(t,e){if(e.tween._time||!M())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:tv,aliases:N,getSetter:function(t,e,r){var n=N[e];return n&&0>n.indexOf(",")&&(e=n),e in D&&e!==J&&(t._gsap.x||tv(t,"x"))?r&&k===r?"scale"===e?K:G:(k=r||{},"scale"===e?Q:$):t.style&&!(0,A._isUndefined)(t.style[e])?H:~e.indexOf("-")?V:(0,A._getSetter)(t,e)},core:{_removeProperty:tp,_getMatrix:tS}};A.gsap.utils.checkPrefix=ta,A.gsap.core.getStyleSaver=tn,tX="x,y,z,scale,scaleX,scaleY,xPercent,yPercent",tq="rotation,rotationX,rotationY,skewX,skewY",tj="0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",tU=(0,A._forEachName)(tX+","+tq+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){D[t]=1}),(0,A._forEachName)(tq,function(t){A._config.units[t]="deg",tk[t]=1}),N[tU[13]]=tX+","+tq,(0,A._forEachName)(tj,function(t){var e=t.split(":");N[e[1]]=tU[e[0]]}),(0,A._forEachName)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){A._config.units[t]="px"}),(0,A.gsap).registerPlugin(tY);var tW=(0,A.gsap).registerPlugin(tY)||A.gsap;tW.core.Tween;/*!
* Observer 3.12.5
* https://gsap.com
*
* @license Copyright 2008-2024, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license or for
* Club GSAP members, the agreement issued with that membership.
* @author: Jack Doyle, jack@greensock.com
*/var tX,tq,tj,tU,tH,tV,tG,tK,tQ,t$,tZ,tJ,t0,t1,t2,t5,t3,t8=function(){return tH||"undefined"!=typeof window&&(tH=window.gsap)&&tH.registerPlugin&&tH},t6=1,t4=[],t9=[],t7=[],et=Date.now,ee=function(t,e){return e},er=function(){var t=t0.core,e=t.bridge||{},r=t._scrollers,n=t._proxies;r.push.apply(r,t9),n.push.apply(n,t7),t9=r,t7=n,ee=function(t,r){return e[t](r)}},en=function(t,e){return~t7.indexOf(t)&&t7[t7.indexOf(t)+1][e]},ei=function(t){return!!~t1.indexOf(t)},eo=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},es=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},ea="scrollLeft",eu="scrollTop",el=function(){return t2&&t2.isPressed||t9.cache++},ec=function(t,e){var r=function r(n){if(n||0===n){t6&&(tG.history.scrollRestoration="manual");var i=t2&&t2.isPressed;t(n=r.v=Math.round(n)||(t2&&t2.iOS?1:0)),r.cacheID=t9.cache,i&&ee("ss",n)}else(e||t9.cache!==r.cacheID||ee("ref"))&&(r.cacheID=t9.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},eh={s:ea,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:ec(function(t){return arguments.length?tG.scrollTo(t,ef.sc()):tG.pageXOffset||tK[ea]||tQ[ea]||t$[ea]||0})},ef={s:eu,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:eh,sc:ec(function(t){return arguments.length?tG.scrollTo(eh.sc(),t):tG.pageYOffset||tK[eu]||tQ[eu]||t$[eu]||0})},ep=function(t,e){return(e&&e._ctx&&e._ctx.selector||tH.utils.toArray)(t)[0]||("string"==typeof t&&!1!==tH.config().nullTargetWarn?console.warn("Element not found:",t):null)},ed=function(t,e){var r=e.s,n=e.sc;ei(t)&&(t=tK.scrollingElement||tQ);var i=t9.indexOf(t),o=n===ef.sc?1:2;~i||(i=t9.push(t)-1),t9[i+o]||eo(t,"scroll",el);var s=t9[i+o],a=s||(t9[i+o]=ec(en(t,r),!0)||(ei(t)?n:ec(function(e){return arguments.length?t[r]=e:t[r]})));return a.target=t,s||(a.smooth="smooth"===tH.getProperty(t,"scrollBehavior")),a},eg=function(t,e,r){var n=t,i=t,o=et(),s=o,a=e||50,u=Math.max(500,3*a),l=function(t,e){var u=et();e||u-o>a?(i=n,n=t,s=o,o=u):r?n+=t:n=i+(t-i)/(u-s)*(o-s)};return{update:l,reset:function(){i=n=r?0:n,s=o=0},getVelocity:function(t){var e=s,a=i,c=et();return(t||0===t)&&t!==n&&l(t),o===s||c-s>u?0:(n+(r?a:-a))/((r?c:o)-e)*1e3}}},em=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},e_=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},ev=function(){(t0=tH.core.globals().ScrollTrigger)&&t0.core&&er()},ey=function(t){return tH=t||t8(),!tV&&tH&&"undefined"!=typeof document&&document.body&&(tG=window,tQ=(tK=document).documentElement,t$=tK.body,t1=[tG,tK,tQ,t$],tH.utils.clamp,t3=tH.core.context||function(){},tJ="onpointerenter"in t$?"pointer":"mouse",tZ=ex.isTouch=tG.matchMedia&&tG.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in tG||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,t5=ex.eventTypes=("ontouchstart"in tQ?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in tQ?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return t6=0},500),ev(),tV=1),tV};eh.op=ef,t9.cache=0;var ex=function(){function t(t){this.init(t)}return t.prototype.init=function(t){tV||ey(tH)||console.warn("Please gsap.registerPlugin(Observer)"),t0||ev();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,o=t.lineHeight,s=t.debounce,a=t.preventDefault,u=t.onStop,l=t.onStopDelay,c=t.ignore,h=t.wheelSpeed,f=t.event,p=t.onDragStart,d=t.onDragEnd,g=t.onDrag,m=t.onPress,_=t.onRelease,v=t.onRight,y=t.onLeft,x=t.onUp,w=t.onDown,b=t.onChangeX,T=t.onChangeY,E=t.onChange,k=t.onToggleX,M=t.onToggleY,O=t.onHover,S=t.onHoverEnd,P=t.onMove,C=t.ignoreCheck,A=t.isNormalizer,D=t.onGestureStart,R=t.onGestureEnd,z=t.onWheel,L=t.onEnable,I=t.onDisable,B=t.onClick,F=t.scrollSpeed,N=t.capture,Y=t.allowClicks,W=t.lockAxis,X=t.onLockAxis;this.target=i=ep(i)||tQ,this.vars=t,c&&(c=tH.utils.toArray(c)),e=e||1e-9,r=r||0,h=h||1,F=F||1,n=n||"wheel,touch,pointer",s=!1!==s,o||(o=parseFloat(tG.getComputedStyle(t$).lineHeight)||22);var q,j,U,H,V,G,K,Q=this,$=0,Z=0,J=t.passive||!a,tt=ed(i,eh),te=ed(i,ef),tr=tt(),tn=te(),ti=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===t5[0],to=ei(i),ts=i.ownerDocument||tK,ta=[0,0,0],tu=[0,0,0],tl=0,tc=function(){return tl=et()},th=function(t,e){return(Q.event=t)&&c&&~c.indexOf(t.target)||e&&ti&&"touch"!==t.pointerType||C&&C(t,e)},tf=function(){var t=Q.deltaX=e_(ta),r=Q.deltaY=e_(tu),n=Math.abs(t)>=e,i=Math.abs(r)>=e;E&&(n||i)&&E(Q,t,r,ta,tu),n&&(v&&Q.deltaX>0&&v(Q),y&&Q.deltaX<0&&y(Q),b&&b(Q),k&&Q.deltaX<0!=$<0&&k(Q),$=Q.deltaX,ta[0]=ta[1]=ta[2]=0),i&&(w&&Q.deltaY>0&&w(Q),x&&Q.deltaY<0&&x(Q),T&&T(Q),M&&Q.deltaY<0!=Z<0&&M(Q),Z=Q.deltaY,tu[0]=tu[1]=tu[2]=0),(H||U)&&(P&&P(Q),U&&(g(Q),U=!1),H=!1),G&&(G=!1,1)&&X&&X(Q),V&&(z(Q),V=!1),q=0},tp=function(t,e,r){ta[r]+=t,tu[r]+=e,Q._vx.update(t),Q._vy.update(e),s?q||(q=requestAnimationFrame(tf)):tf()},td=function(t,e){W&&!K&&(Q.axis=K=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==K&&(ta[2]+=t,Q._vx.update(t,!0)),"x"!==K&&(tu[2]+=e,Q._vy.update(e,!0)),s?q||(q=requestAnimationFrame(tf)):tf()},tg=function(t){if(!th(t,1)){var e=(t=em(t,a)).clientX,n=t.clientY,i=e-Q.x,o=n-Q.y,s=Q.isDragging;Q.x=e,Q.y=n,(s||Math.abs(Q.startX-e)>=r||Math.abs(Q.startY-n)>=r)&&(g&&(U=!0),s||(Q.isDragging=!0),td(i,o),s||p&&p(Q))}},tm=Q.onPress=function(t){th(t,1)||t&&t.button||(Q.axis=K=null,j.pause(),Q.isPressed=!0,t=em(t),$=Z=0,Q.startX=Q.x=t.clientX,Q.startY=Q.y=t.clientY,Q._vx.reset(),Q._vy.reset(),eo(A?i:ts,t5[1],tg,J,!0),Q.deltaX=Q.deltaY=0,m&&m(Q))},t_=Q.onRelease=function(t){if(!th(t,1)){es(A?i:ts,t5[1],tg,!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),o=em(t);!n&&e&&(Q._vx.reset(),Q._vy.reset(),a&&Y&&tH.delayedCall(.08,function(){if(et()-tl>300&&!t.defaultPrevented){if(t.target.click)t.target.click();else if(ts.createEvent){var e=ts.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,tG,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}})),Q.isDragging=Q.isGesturing=Q.isPressed=!1,u&&r&&!A&&j.restart(!0),d&&r&&d(Q),_&&_(Q,n)}},tv=function(t){return t.touches&&t.touches.length>1&&(Q.isGesturing=!0)&&D(t,Q.isDragging)},ty=function(){return Q.isGesturing=!1,R(Q)},tx=function(t){if(!th(t)){var e=tt(),r=te();tp((e-tr)*F,(r-tn)*F,1),tr=e,tn=r,u&&j.restart(!0)}},tw=function(t){if(!th(t)){t=em(t,a),z&&(V=!0);var e=(1===t.deltaMode?o:2===t.deltaMode?tG.innerHeight:1)*h;tp(t.deltaX*e,t.deltaY*e,0),u&&!A&&j.restart(!0)}},tb=function(t){if(!th(t)){var e=t.clientX,r=t.clientY,n=e-Q.x,i=r-Q.y;Q.x=e,Q.y=r,H=!0,u&&j.restart(!0),(n||i)&&td(n,i)}},tT=function(t){Q.event=t,O(Q)},tE=function(t){Q.event=t,S(Q)},tk=function(t){return th(t)||em(t,a)&&B(Q)};j=Q._dc=tH.delayedCall(l||.25,function(){Q._vx.reset(),Q._vy.reset(),j.pause(),u&&u(Q)}).pause(),Q.deltaX=Q.deltaY=0,Q._vx=eg(0,50,!0),Q._vy=eg(0,50,!0),Q.scrollX=tt,Q.scrollY=te,Q.isDragging=Q.isGesturing=Q.isPressed=!1,t3(this),Q.enable=function(t){return!Q.isEnabled&&(eo(to?ts:i,"scroll",el),n.indexOf("scroll")>=0&&eo(to?ts:i,"scroll",tx,J,N),n.indexOf("wheel")>=0&&eo(i,"wheel",tw,J,N),(n.indexOf("touch")>=0&&tZ||n.indexOf("pointer")>=0)&&(eo(i,t5[0],tm,J,N),eo(ts,t5[2],t_),eo(ts,t5[3],t_),Y&&eo(i,"click",tc,!0,!0),B&&eo(i,"click",tk),D&&eo(ts,"gesturestart",tv),R&&eo(ts,"gestureend",ty),O&&eo(i,tJ+"enter",tT),S&&eo(i,tJ+"leave",tE),P&&eo(i,tJ+"move",tb)),Q.isEnabled=!0,t&&t.type&&tm(t),L&&L(Q)),Q},Q.disable=function(){Q.isEnabled&&(t4.filter(function(t){return t!==Q&&ei(t.target)}).length||es(to?ts:i,"scroll",el),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),es(A?i:ts,t5[1],tg,!0)),es(to?ts:i,"scroll",tx,N),es(i,"wheel",tw,N),es(i,t5[0],tm,N),es(ts,t5[2],t_),es(ts,t5[3],t_),es(i,"click",tc,!0),es(i,"click",tk),es(ts,"gesturestart",tv),es(ts,"gestureend",ty),es(i,tJ+"enter",tT),es(i,tJ+"leave",tE),es(i,tJ+"move",tb),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var t=t4.indexOf(Q);t>=0&&t4.splice(t,1),t2===Q&&(t2=0)},t4.push(Q),A&&ei(i)&&(t2=Q),Q.enable(f)},/*!
* ScrollTrigger 3.12.5
* https://gsap.com
*
* @license Copyright 2008-2024, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license or for
* Club GSAP members, the agreement issued with that membership.
* @author: Jack Doyle, jack@greensock.com
*/function(t,e){for(var r=0;r-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},re=function(t,e){return e&&(!rd(t)||"clamp("!==t.substr(0,6))?"clamp("+t+")":t},rr=function(){return ez=1},rn=function(){return ez=0},ri=function(t){return t},ro=function(t){return Math.round(1e5*t)/1e5||0},rs=function(){return"undefined"!=typeof window},ra=function(){return ew||rs()&&(ew=window.gsap)&&ew.registerPlugin&&ew},ru=function(t){return!!~eO.indexOf(t)},rl=function(t){return("Height"===t?e$:eT["inner"+t])||ek["client"+t]||eM["client"+t]},rc=function(t){return en(t,"getBoundingClientRect")||(ru(t)?function(){return nm.width=eT.innerWidth,nm.height=e$,nm}:function(){return rI(t)})},rh=function(t,e,r){var n=r.d,i=r.d2,o=r.a;return(o=en(t,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(e?rl(i):t["client"+i])||0}},rf=function(t,e){var r=e.s,n=e.d2,i=e.d,o=e.a;return Math.max(0,(o=en(t,r="scroll"+n))?o()-rc(t)()[i]:ru(t)?(ek[r]||eM[r])-rl(n):t[r]-t["offset"+n])},rp=function(t,e){for(var r=0;r0){for(t-=i,o=0;o=t)return r[o];return r[o-1]}for(o=r.length,t+=i;o--;)if(r[o]<=t)return r[o];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var o=e(r);return!n||Math.abs(o-r)r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in rH?rH[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},rG=function(t,e,r,n,i,o,s,a){var u=i.startColor,l=i.endColor,c=i.fontSize,h=i.indent,f=i.fontWeight,p=eE.createElement("div"),d=ru(r)||"fixed"===en(r,"pinType"),g=-1!==t.indexOf("scroller"),m=d?eM:r,_=-1!==t.indexOf("start"),v=_?u:l,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)&&d?"fixed;":"absolute;"),(g||a||!d)&&(y+=(n===ef?rb:rT)+":"+(o+parseFloat(h))+"px;"),s&&(y+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),p._isStart=_,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=y,p.innerText=e||0===e?t+"-"+e:t,m.children[0]?m.insertBefore(p,m.children[0]):m.appendChild(p),p._offset=p["offset"+n.op.d2],rK(p,0,n,_),p},rK=function(t,e,r,n){var i={display:"block"},o=r[n?"os2":"p2"],s=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+rA]=1,i["border"+s+rA]=0,i[r.p]=e+"px",ew.set(t,i)},rQ=[],r$={},rZ=function(){return e6()-e9>34&&(e1||(e1=requestAnimationFrame(na)))},rJ=function(){eq&&eq.isPressed&&!(eq.startX>eM.clientWidth)||(t9.cache++,eq?e1||(e1=requestAnimationFrame(na)):na(),e9||r8("scrollStart"),e9=e6())},r0=function(){eH=eT.innerWidth,eU=eT.innerHeight},r1=function(){t9.cache++,!(!eR&&!eX&&!eE.fullscreenElement&&!eE.webkitFullscreenElement&&(!ej||eH!==eT.innerWidth||Math.abs(eT.innerHeight-eU)>.25*eT.innerHeight))||eS.restart(!0)},r2={},r5=[],r3=function t(){return rX(nT,"scrollEnd",t)||ni(!0)},r8=function(t){return r2[t]&&r2[t].map(function(t){return t()})||r5},r6=[],r4=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)}),nn(!1),eJ=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),t9.forEach(function(t){rg(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),r7(eK,1),eS.pause(),nt++,e2=2,na(2),rQ.forEach(function(t){return rg(t.vars.onRefresh)&&t.vars.onRefresh(t)}),e2=nT.isRefreshing=!1,r8("refresh")},no=0,ns=1,na=function(t){if(2===t||!e2&&!eZ){nT.isUpdating=!0,e3&&e3.update(0);var e=rQ.length,r=e6(),n=r-e4>=50,i=e&&rQ[0].scroll();if(ns=no>i?-1:1,e2||(no=i),n&&(e9&&!ez&&r-e9>200&&(e9=0,r8("scrollEnd")),eA=e4,e4=r),ns<0){for(eI=e;eI-- >0;)rQ[eI]&&rQ[eI].update(0,n);ns=1}else for(eI=0;eI20),r-=r-x}if(p&&(a[p]=t||-.001,t<0&&(t=0)),o){var T=t+r,E=o._isStart;d="scroll"+n.d2,rK(o,T,n,E&&T>20||!E&&(c?Math.max(eM[d],ek[d]):o.parentNode[d])<=T+1),c&&(u=rI(s),c&&(o.style[n.op.p]=u[n.op.p]-n.op.m-o._offset+"px"))}return f&&m&&(d=rI(m),f.seek(h),g=rI(m),f._caScrollDist=d[n.p]-g[n.p],t=t/f._caScrollDist*h),f&&f.seek(_),f?t:Math.round(t)},nv=/(webkit|moz|length|cssText|inset)/i,ny=function(t,e,r,n){if(t.parentNode!==e){var i,o,s=t.style;if(e===eM){for(i in t._stOrig=s.cssText,o=rR(t))+i||nv.test(i)||!o[i]||"string"!=typeof s[i]||"0"===i||(s[i]=o[i]);s.top=r,s.left=n}else s.cssText=t._stOrig;ew.core.getCache(t).uncache=1,e.appendChild(t)}},nx=function(t,e,r){var n=e,i=n;return function(e){var o=Math.round(t());return o!==n&&o!==i&&Math.abs(o-n)>3&&Math.abs(o-i)>3&&(e=o,r&&r()),i=n,n=e,e}},nw=function(t,e,r){var n={};n[e.p]="+="+r,ew.set(t,n)},nb=function(t,e){var r=ed(t,e),n="_scroll"+e.p2,i=function e(i,o,s,a,u){var l=e.tween,c=o.onComplete,h={};s=s||r();var f=nx(r,s,function(){l.kill(),e.tween=0});return u=a&&u||0,a=a||i-s,l&&l.kill(),o[n]=i,o.inherit=!1,o.modifiers=h,h[n]=function(){return f(s+a*l.ratio+u*l.ratio*l.ratio)},o.onUpdate=function(){t9.cache++,e.tween&&na()},o.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=ew.to(t,o)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},rW(t,"wheel",r.wheelHandler),nT.isTouch&&rW(t,"touchmove",r.wheelHandler),i},nT=function(){function t(e,r){eb||t.register(ew)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),eG(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!e7){this.update=this.refresh=this.kill=ri;return}var n,i,o,s,a,u,l,c,h,f,p,d,g,m,_,v,y,x,w,b,T,E,k,M,O,S,P,C,A,D,R,z,L,I,B,F,N,Y,W,X,q,j=e=rL(rd(e)||rm(e)||e.nodeType?{trigger:e}:e,rU),U=j.onUpdate,H=j.toggleClass,V=j.id,G=j.onToggle,K=j.onRefresh,Q=j.scrub,$=j.trigger,Z=j.pin,J=j.pinSpacing,tt=j.invalidateOnRefresh,te=j.anticipatePin,tr=j.onScrubComplete,tn=j.onSnapComplete,ti=j.once,to=j.snap,ts=j.pinReparent,ta=j.pinSpacer,tu=j.containerAnimation,tl=j.fastScrollEnd,tc=j.preventOverlaps,th=e.horizontal||e.containerAnimation&&!1!==e.horizontal?eh:ef,tf=!Q&&0!==Q,tp=ep(e.scroller||eT),td=ew.core.getCache(tp),tg=ru(tp),tm=("pinType"in e?e.pinType:en(tp,"pinType")||tg&&"fixed")==="fixed",t_=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],tv=tf&&e.toggleActions.split(" "),ty="markers"in e?e.markers:rU.markers,tx=tg?0:parseFloat(rR(tp)["border"+th.p2+rA])||0,tw=this,tb=e.onRefreshInit&&function(){return e.onRefreshInit(tw)},tT=rh(tp,tg,th),tE=!tg||~t7.indexOf(tp)?rc(tp):function(){return nm},tk=0,tM=0,tO=0,tS=ed(tp,th);if(tw._startClamp=tw._endClamp=!1,tw._dir=th,te*=45,tw.scroller=tp,tw.scroll=tu?tu.time.bind(tu):tS,u=tS(),tw.vars=e,r=r||e.animation,"refreshPriority"in e&&(eY=1,-9999===e.refreshPriority&&(e3=tw)),td.tweenScroll=td.tweenScroll||{top:nb(tp,ef),left:nb(tp,eh)},tw.tweenTo=o=td.tweenScroll[th.p],tw.scrubDuration=function(t){(B=rm(t)&&t)?I?I.duration(t):I=ew.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:B,paused:!0,onComplete:function(){return tr&&tr(tw)}}):(I&&I.progress(1).kill(),I=0)},r&&(r.vars.lazy=!1,r._initted&&!tw.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),tw.animation=r.pause(),r.scrollTrigger=tw,tw.scrubDuration(Q),z=0,V||(V=r.vars.id)),to&&((!r_(to)||to.push)&&(to={snapTo:to}),"scrollBehavior"in eM.style&&ew.set(tg?[eM,ek]:tp,{scrollBehavior:"auto"}),t9.forEach(function(t){return rg(t)&&t.target===(tg?eE.scrollingElement||ek:tp)&&(t.smooth=!1)}),a=rg(to.snapTo)?to.snapTo:"labels"===to.snapTo?(n=r,function(t){return ew.utils.snap(rF(n),t)}):"labelsDirectional"===to.snapTo?(i=r,function(t,e){return rN(rF(i))(t,e.direction)}):!1!==to.directional?function(t,e){return rN(to.snapTo)(t,e6()-tM<500?0:e.direction)}:ew.utils.snap(to.snapTo),F=r_(F=to.duration||{min:.1,max:2})?eC(F.min,F.max):eC(F,F),N=ew.delayedCall(to.delay||B/2||.1,function(){var t=tS(),e=e6()-tM<500,n=o.tween;if((e||10>Math.abs(tw.getVelocity()))&&!n&&!ez&&tk!==t){var i,s,u=(t-c)/v,l=r&&!tf?r.totalProgress():u,f=e?0:(l-L)/(e6()-eA)*1e3||0,p=ew.utils.clamp(-u,1-u,rx(f/2)*f/.185),d=u+(!1===to.inertia?0:p),g=to,m=g.onStart,_=g.onInterrupt,y=g.onComplete;if(rm(i=a(d,tw))||(i=d),s=Math.round(c+i*v),t<=h&&t>=c&&s!==t){if(n&&!n._initted&&n.data<=rx(s-t))return;!1===to.inertia&&(p=i-u),o(s,{duration:F(rx(.185*Math.max(rx(d-l),rx(i-l))/f/.05||0)),ease:to.ease||"power3",data:rx(s-t),onInterrupt:function(){return N.restart(!0)&&_&&_(tw)},onComplete:function(){tw.update(),tk=tS(),r&&(I?I.resetTo("totalProgress",i,r._tTime/r._tDur):r.progress(i)),z=L=r&&!tf?r.totalProgress():tw.progress,tn&&tn(tw),y&&y(tw)}},t,p*v,s-t-p*v),m&&m(tw,o.tween)}}else tw.isActive&&tk!==t&&N.restart(!0)}).pause()),V&&(r$[V]=tw),(q=($=tw.trigger=ep($||!0!==Z&&Z))&&$._gsap&&$._gsap.stRevert)&&(q=q(tw)),Z=!0===Z?$:ep(Z),rd(H)&&(H={targets:$,className:H}),Z&&(!1===J||J===rC||(J=(!!J||!Z.parentNode||!Z.parentNode.style||"flex"!==rR(Z.parentNode).display)&&rP),tw.pin=Z,(s=ew.core.getCache(Z)).spacer?y=s.pinState:(ta&&((ta=ep(ta))&&!ta.nodeType&&(ta=ta.current||ta.nativeElement),s.spacerIsNative=!!ta,ta&&(s.spacerState=nd(ta))),s.spacer=b=ta||eE.createElement("div"),b.classList.add("pin-spacer"),V&&b.classList.add("pin-spacer-"+V),s.pinState=y=nd(Z)),!1!==e.force3D&&ew.set(Z,{force3D:!0}),tw.spacer=b=s.spacer,S=(R=rR(Z))[J+th.os2],E=ew.getProperty(Z),k=ew.quickSetter(Z,th.a,"px"),nh(Z,b,R),w=nd(Z)),ty){m=r_(ty)?rL(ty,rj):rj,d=rG("scroller-start",V,tp,th,m,0),g=rG("scroller-end",V,tp,th,m,0,d),T=d["offset"+th.op.d2];var tP=ep(en(tp,"content")||tp);f=this.markerStart=rG("start",V,tP,th,m,T,0,tu),p=this.markerEnd=rG("end",V,tP,th,m,T,0,tu),tu&&(X=ew.quickSetter([f,p],th.a,"px")),tm||t7.length&&!0===en(tp,"fixedMarkers")||(rz(tg?eM:tp),ew.set([d,g],{force3D:!0}),C=ew.quickSetter(d,th.a,"px"),D=ew.quickSetter(g,th.a,"px"))}if(tu){var tC=tu.vars.onUpdate,tA=tu.vars.onUpdateParams;tu.eventCallback("onUpdate",function(){tw.update(0,0,1),tC&&tC.apply(tu,tA||[])})}if(tw.previous=function(){return rQ[rQ.indexOf(tw)-1]},tw.next=function(){return rQ[rQ.indexOf(tw)+1]},tw.revert=function(t,e){if(!e)return tw.kill(!0);var n=!1!==t||!tw.enabled,i=eR;n!==tw.isReverted&&(n&&(Y=Math.max(tS(),tw.scroll.rec||0),tO=tw.progress,W=r&&r.progress()),f&&[f,p,d,g].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(eR=tw,tw.update(n)),!Z||ts&&tw.isActive||(n?nc(Z,b,y):nh(Z,b,rR(Z),P)),n||tw.update(n),eR=i,tw.isReverted=n)},tw.refresh=function(n,i,s,a){if(!eR&&tw.enabled||i){if(Z&&n&&e9){rW(t,"scrollEnd",r3);return}!e2&&tb&&tb(tw),eR=tw,o.tween&&!s&&(o.tween.kill(),o.tween=0),I&&I.pause(),tt&&r&&r.revert({kill:!1}).invalidate(),tw.isReverted||tw.revert(!0,!0),tw._subPinOffset=!1;var m,T,k,S,C,D,R,z,L,B,F,X,q,j=tT(),U=tE(),H=tu?tu.duration():rf(tp,th),V=v<=.01,G=0,Q=a||0,te=r_(s)?s.end:e.end,tr=e.endTrigger||$,tn=r_(s)?s.start:e.start||(0!==e.start&&$?Z?"0 0":"0 100%":0),ti=tw.pinnedContainer=e.pinnedContainer&&ep(e.pinnedContainer,tw),to=$&&Math.max(0,rQ.indexOf(tw))||0,ta=to;for(ty&&r_(s)&&(X=ew.getProperty(d,th.p),q=ew.getProperty(g,th.p));ta--;)(D=rQ[ta]).end||D.refresh(0,1)||(eR=tw),(R=D.pin)&&(R===$||R===Z||R===ti)&&!D.isReverted&&(B||(B=[]),B.unshift(D),D.revert(!0,!0)),D!==rQ[ta]&&(to--,ta--);for(rg(tn)&&(tn=tn(tw)),c=n_(tn=rt(tn,"start",tw),$,j,th,tS(),f,d,tw,U,tx,tm,H,tu,tw._startClamp&&"_startClamp")||(Z?-.001:0),rg(te)&&(te=te(tw)),rd(te)&&!te.indexOf("+=")&&(~te.indexOf(" ")?te=(rd(tn)?tn.split(" ")[0]:"")+te:(G=rV(te.substr(2),j),te=rd(tn)?tn:(tu?ew.utils.mapRange(0,tu.duration(),tu.scrollTrigger.start,tu.scrollTrigger.end,c):c)+G,tr=$)),te=rt(te,"end",tw),h=Math.max(c,n_(te||(tr?"100% 0":H),tr,j,th,tS()+G,p,g,tw,U,tx,tm,H,tu,tw._endClamp&&"_endClamp"))||-.001,G=0,ta=to;ta--;)(R=(D=rQ[ta]).pin)&&D.start-D._pinPush<=c&&!tu&&D.end>0&&(m=D.end-(tw._startClamp?Math.max(0,D.start):D.start),(R===$&&D.start-D._pinPush=rf(tp,th)))m=rR(Z),S=th===ef,k=tS(),M=parseFloat(E(th.a))+Q,!H&&h>1&&(F={style:F=(tg?eE.scrollingElement||ek:tp).style,value:F["overflow"+th.a.toUpperCase()]},tg&&"scroll"!==rR(eM)["overflow"+th.a.toUpperCase()]&&(F.style["overflow"+th.a.toUpperCase()]="scroll")),nh(Z,b,m),w=nd(Z),T=rI(Z,!0),z=tm&&ed(tp,S?eh:ef)(),J?((P=[J+th.os2,v+Q+"px"]).t=b,(ta=J===rP?rB(Z,th)+v+Q:0)&&(P.push(th.d,ta+"px"),"auto"!==b.style.flexBasis&&(b.style.flexBasis=ta+"px")),np(P),ti&&rQ.forEach(function(t){t.pin===ti&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),tm&&tS(Y)):(ta=rB(Z,th))&&"auto"!==b.style.flexBasis&&(b.style.flexBasis=ta+"px"),tm&&((C={top:T.top+(S?k-c:z)+"px",left:T.left+(S?z:k-c)+"px",boxSizing:"border-box",position:"fixed"})[rE]=C["max"+rA]=Math.ceil(T.width)+"px",C[rk]=C["max"+rD]=Math.ceil(T.height)+"px",C[rC]=C[rC+"Top"]=C[rC+rM]=C[rC+rS]=C[rC+rO]="0",C[rP]=m[rP],C[rP+"Top"]=m[rP+"Top"],C[rP+rM]=m[rP+rM],C[rP+rS]=m[rP+rS],C[rP+rO]=m[rP+rO],x=ng(y,C,ts),e2&&tS(0)),r?(L=r._initted,eW(1),r.render(r.duration(),!0,!0),O=E(th.a)-M+v+Q,A=Math.abs(v-O)>1,tm&&A&&x.splice(x.length-2,2),r.render(0,!0,!0),L||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),eW(0)):O=v,F&&(F.value?F.style["overflow"+th.a.toUpperCase()]=F.value:F.style.removeProperty("overflow-"+th.a));else if($&&tS()&&!tu)for(T=$.parentNode;T&&T!==eM;)T._pinOffset&&(c-=T._pinOffset,h-=T._pinOffset),T=T.parentNode;B&&B.forEach(function(t){return t.revert(!1,!0)}),tw.start=c,tw.end=h,u=l=e2?Y:tS(),tu||e2||(u0?rQ.slice(0,e).reverse():rQ.slice(e+1);return(rd(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return tw.direction>0?t.end<=c:t.start>=h})},tw.update=function(t,e,n){if(!tu||n||t){var i,s,a,f,p,g,m,_=!0===e2?Y:tw.scroll(),y=t?0:(_-c)/v,T=y<0?0:y>1?1:y||0,E=tw.progress;if(e&&(l=u,u=tu?tS():_,to&&(L=z,z=r&&!tf?r.totalProgress():T)),te&&Z&&!eR&&!e8&&e9&&(!T&&c<_+(_-l)/(e6()-eA)*te?T=1e-4:1===T&&h>_+(_-l)/(e6()-eA)*te&&(T=.9999)),T!==E&&tw.enabled){if(f=(p=(i=tw.isActive=!!T&&T<1)!=(!!E&&E<1))||!!T!=!!E,tw.direction=T>E?1:-1,tw.progress=T,f&&!eR&&(s=T&&!E?0:1===T?1:1===E?2:3,tf&&(a=!p&&"none"!==tv[s+1]&&tv[s+1]||tv[s],m=r&&("complete"===a||"reset"===a||a in r))),tc&&(p||m)&&(m||Q||!r)&&(rg(tc)?tc(tw):tw.getTrailing(tc).forEach(function(t){return t.endAnimation()})),!tf&&(!I||eR||e8?r&&r.totalProgress(T,!!(eR&&(tM||t))):(I._dp._time-I._start!==I._time&&I.render(I._dp._time-I._start),I.resetTo?I.resetTo("totalProgress",T,r._tTime/r._tDur):(I.vars.totalProgress=T,I.invalidate().restart()))),Z){if(t&&J&&(b.style[J+th.os2]=S),tm){if(f){if(g=!t&&T>E&&h+1>_&&_+1>=rf(tp,th),ts){if(!t&&(i||g)){var P=rI(Z,!0),R=_-c;ny(Z,eM,P.top+(th===ef?R:0)+"px",P.left+(th===ef?0:R)+"px")}else ny(Z,b)}np(i||g?x:w),A&&T<1&&i||k(M+(1!==T||g?0:O))}}else k(ro(M+O*T))}!to||o.tween||eR||e8||N.restart(!0),H&&(p||ti&&T&&(T<1||!e0))&&eP(H.targets).forEach(function(t){return t.classList[i||ti?"add":"remove"](H.className)}),!U||tf||t||U(tw),f&&!eR?(tf&&(m&&("complete"===a?r.pause().totalProgress(1):"reset"===a?r.restart(!0).pause():"restart"===a?r.restart(!0):r[a]()),U&&U(tw)),(p||!e0)&&(G&&p&&ry(tw,G),t_[s]&&ry(tw,t_[s]),ti&&(1===T?tw.kill(!1,1):t_[s]=0),!p&&t_[s=1===T?1:3]&&ry(tw,t_[s])),tl&&!i&&Math.abs(tw.getVelocity())>(rm(tl)?tl:2500)&&(rv(tw.callbackAnimation),I?I.progress(1):rv(r,"reverse"===a?1:!T,1))):tf&&U&&!eR&&U(tw)}if(D){var B=tu?_/tu.duration()*(tu._caScrollDist||0):_;C(B+(d._isFlipped?1:0)),D(B)}X&&X(-_/tu.duration()*(tu._caScrollDist||0))}},tw.enable=function(e,r){tw.enabled||(tw.enabled=!0,rW(tp,"resize",r1),tg||rW(tp,"scroll",rJ),tb&&rW(t,"refreshInit",tb),!1!==e&&(tw.progress=tO=0,u=l=tk=tS()),!1!==r&&tw.refresh())},tw.getTween=function(t){return t&&o?o.tween:I},tw.setPositions=function(t,e,r,n){if(tu){var i=tu.scrollTrigger,o=tu.duration(),s=i.end-i.start;t=i.start+s*t/o,e=i.start+s*e/o}tw.refresh(!1,!1,{start:re(t,r&&!!tw._startClamp),end:re(e,r&&!!tw._endClamp)},n),tw.update()},tw.adjustPinSpacing=function(t){if(P&&t){var e=P.indexOf(th.d)+1;P[e]=parseFloat(P[e])+t+"px",P[1]=parseFloat(P[1])+t+"px",np(P)}},tw.disable=function(e,r){if(tw.enabled&&(!1!==e&&tw.revert(!0,!0),tw.enabled=tw.isActive=!1,r||I&&I.pause(),Y=0,s&&(s.uncache=1),tb&&rX(t,"refreshInit",tb),N&&(N.pause(),o.tween&&o.tween.kill()&&(o.tween=0)),!tg)){for(var n=rQ.length;n--;)if(rQ[n].scroller===tp&&rQ[n]!==tw)return;rX(tp,"resize",r1),tg||rX(tp,"scroll",rJ)}},tw.kill=function(t,n){tw.disable(t,n),I&&!n&&I.kill(),V&&delete r$[V];var i=rQ.indexOf(tw);i>=0&&rQ.splice(i,1),i===eI&&ns>0&&eI--,i=0,rQ.forEach(function(t){return t.scroller===tw.scroller&&(i=1)}),i||e2||(tw.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),f&&[f,p,d,g].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),e3===tw&&(e3=0),Z&&(s&&(s.uncache=1),i=0,rQ.forEach(function(t){return t.pin===Z&&i++}),i||(s.spacer=0)),e.onKill&&e.onKill(tw)},rQ.push(tw),tw.enable(!1,!1),q&&q(tw),r&&r.add&&!v){var tD=tw.update;tw.update=function(){tw.update=tD,c||h||tw.refresh()},ew.delayedCall(.01,tw.update),v=.01,c=h=0}else tw.refresh();Z&&ne()},t.register=function(e){return eb||(ew=e||ra(),rs()&&window.document&&t.enable(),eb=e7),eb},t.defaults=function(t){if(t)for(var e in t)rU[e]=t[e];return rU},t.disable=function(t,e){e7=0,rQ.forEach(function(r){return r[e?"kill":"disable"](t)}),rX(eT,"wheel",rJ),rX(eE,"scroll",rJ),clearInterval(eD),rX(eE,"touchcancel",ri),rX(eM,"touchstart",ri),rY(rX,eE,"pointerdown,touchstart,mousedown",rr),rY(rX,eE,"pointerup,touchend,mouseup",rn),eS.kill(),rp(rX);for(var r=0;r0&&n.left+i0&&n.top+i=0&&r6.splice(e,5),r6.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),ew.core.getCache(t),eG())}}):r6},nT.revert=function(t,e){return r9(!t,e)},nT.create=function(t,e){return new nT(t,e)},nT.refresh=function(t){return t?r1():(eb||nT.register())&&ni(!0)},nT.update=function(t){return++t9.cache&&na(!0===t?2:0)},nT.clearScrollMemory=r7,nT.maxScroll=function(t,e){return rf(t,e?eh:ef)},nT.getScrollFunc=function(t,e){return ed(ep(t),e?eh:ef)},nT.getById=function(t){return r$[t]},nT.getAll=function(){return rQ.filter(function(t){return"ScrollSmoother"!==t.vars.id})},nT.isScrolling=function(){return!!e9},nT.snapDirectional=rN,nT.addEventListener=function(t,e){var r=r2[t]||(r2[t]=[]);~r.indexOf(e)||r.push(e)},nT.removeEventListener=function(t,e){var r=r2[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},nT.batch=function(t,e){var r,n=[],i={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var r=[],n=[],i=ew.delayedCall(o,function(){e(r,n),r=[],n=[]}).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),s<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&rg(e[r])&&"onRefreshInit"!==r?a(r,e[r]):e[r];return rg(s)&&(s=s(),rW(nT,"refresh",function(){return s=e.batchMax()})),eP(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(nT.create(e))}),n};var nE,nk=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},nM=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(ex.isTouch?" pinch-zoom":""):"none",e===ek&&t(eM,r)},nO={auto:1,scroll:1},nS=function(t){var e,r=t.event,n=t.target,i=t.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,s=o._gsap||ew.core.getCache(o),a=e6();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==eM&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!(nO[(e=rR(o)).overflowY]||nO[e.overflowX]));)o=o.parentNode;s._isScroll=o&&o!==n&&!ru(o)&&(nO[(e=rR(o)).overflowY]||nO[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},nP=function(t,e,r,n){return ex.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&nS,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&rW(eE,ex.eventTypes[0],nA,!1,!0)},onDisable:function(){return rX(eE,ex.eventTypes[0],nA,!0)}})},nC=/(input|label|select|textarea)/i,nA=function(t){var e=nC.test(t.target.tagName);(e||nE)&&(t._gsapAllow=!0,nE=e)},nD=function(t){r_(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,o,s,a,u,l=t,c=l.normalizeScrollX,h=l.momentum,f=l.allowNestedScroll,p=l.onRelease,d=ep(t.target)||ek,g=ew.core.globals().ScrollSmoother,m=g&&g.get(),_=eV&&(t.content&&ep(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=ed(d,ef),y=ed(d,eh),x=1,w=(ex.isTouch&&eT.visualViewport?eT.visualViewport.scale*eT.visualViewport.width:eT.outerWidth)/eT.innerWidth,b=0,T=rg(h)?function(){return h(e)}:function(){return h||2.8},E=nP(d,t.type,!0,f),k=function(){return i=!1},M=ri,O=ri,S=function(){r=rf(d,ef),O=eC(eV?1:0,r),c&&(M=eC(0,rf(d,eh))),n=nt},P=function(){_._gsap.y=ro(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},C=function(){if(i){requestAnimationFrame(k);var t=ro(e.deltaY/2),r=O(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=ro((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=t9.cache,na()}return!0}v.offset&&P(),i=!0},A=function(){S(),o.isActive()&&o.vars.scrollY>r&&(v()>r?o.progress(1)&&v(r):o.resetTo("scrollY",r))};return _&&ew.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return eV&&"touchmove"===t.type&&C(t)||x>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=x;x=ro((eT.visualViewport&&eT.visualViewport.scale||1)/w),o.pause(),t!==x&&nM(d,x>1.01||!c&&"x"),s=y(),a=v(),S(),n=nt},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&P(),e){t9.cache++;var n,i,s=T();c&&(i=(n=y())+-(.05*s*t.velocityX)/.227,s*=nk(y,n,i,rf(d,eh)),o.vars.scrollX=M(i)),i=(n=v())+-(.05*s*t.velocityY)/.227,s*=nk(v,n,i,rf(d,ef)),o.vars.scrollY=O(i),o.invalidate().duration(s).play(.01),(eV&&o.vars.scrollY>=r||n>=r-1)&&ew.to({},{onUpdate:A,duration:s})}else u.restart(!0);p&&p(t)},t.onWheel=function(){o._ts&&o.pause(),e6()-b>1e3&&(n=0,b=e6())},t.onChange=function(t,e,r,i,o){if(nt!==n&&S(),e&&c&&y(M(i[2]===e?s+(t.startX-t.x):y()+e-i[1])),r){v.offset&&P();var u=o[2]===r,l=u?a+t.startY-t.y:v()+r-o[1],h=O(l);u&&l!==h&&(a+=h-l),v(h)}(r||e)&&na()},t.onEnable=function(){nM(d,!c&&"x"),nT.addEventListener("refresh",A),rW(eT,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),E.enable()},t.onDisable=function(){nM(d,!0),rX(eT,"resize",A),nT.removeEventListener("refresh",A),E.kill()},t.lockAxis=!1!==t.lockAxis,(e=new ex(t)).iOS=eV,eV&&!v()&&v(1),eV&&ew.ticker.add(ri),u=e._dc,o=ew.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:nx(v,v(),function(){return o.pause()})},onUpdate:na,onComplete:u.vars.onComplete}),e};nT.sort=function(t){return rQ.sort(t||function(t,e){return -1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},nT.observe=function(t){return new ex(t)},nT.normalizeScroll=function(t){if(void 0===t)return eq;if(!0===t&&eq)return eq.enable();if(!1===t){eq&&eq.kill(),eq=t;return}var e=t instanceof ex?t:nD(t);return eq&&eq.target===e.target&&eq.kill(),ru(e.target)&&(eq=e),e},nT.core={_getVelocityProp:eg,_inputObserver:nP,_scrollers:t9,_proxies:t7,bridge:{ss:function(){e9||r8("scrollStart"),e9=e6()},ref:function(){return eR}}},ra()&&ew.registerPlugin(nT),tW.registerPlugin(nT);const nR={sections:{columns:document.querySelector(".section--columns"),showcase:document.querySelector(".section--showcase")},columns:document.querySelectorAll(".section--columns > .columns"),columnWraps:document.querySelectorAll(".section--columns .column-wrap"),itemsWrappers:document.querySelectorAll(".section--columns .column-wrap .column"),items:document.querySelectorAll(".section--columns .column__item"),images:document.querySelectorAll(".section--columns .column__item-img")},nz=()=>{t=new C({lerp:.2,smooth:!0});let e=r=>{t.raf(r),requestAnimationFrame(e)};requestAnimationFrame(e)},nL=()=>{tW.timeline({scrollTrigger:{start:0,end:"max",scrub:!0}}).addLabel("start",0).to(nR.sections.columns,{ease:"none",startAt:{scale:.7},scale:1},"start").to(nR.sections.columns,{scrollTrigger:{trigger:nR.sections.showcase,start:0,end:"top top",scrub:!0},ease:"power4.inOut",startAt:{opacity:.2},opacity:1,yoyo:!0,repeat:1},"start").to(nR.images,{ease:"none",scale:1.4},"start").to(nR.items,{scrollTrigger:{trigger:nR.sections.showcase,start:0,end:"top top",scrub:!0},ease:"none",x:(t,e)=>l(e,600).x,y:(t,e)=>l(e,600).y},"start")};((t="img")=>new Promise(e=>{a(document.querySelectorAll(t),{background:!0},e)}))(".column__item-img").then(()=>{document.body.classList.remove("loading"),nz(),nL()});