!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,(function(e){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
/*!
   * Observer 3.12.7
   * https://gsap.com
   *
   * @license Copyright 2008-2025, 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 r,n,i,o,a,s,l,c,u,f,d,p,h,g=function(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r},v=1,m=[],y=[],x=[],b=Date.now,w=function(e,t){return t},_=function(e,t){return~x.indexOf(e)&&x[x.indexOf(e)+1][t]},T=function(e){return!!~f.indexOf(e)},k=function(e,t,r,n,i){return e.addEventListener(t,r,{passive:!1!==n,capture:!!i})},C=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},E=function(){return d&&d.isPressed||y.cache++},S=function(e,t){var r=function r(n){if(n||0===n){v&&(i.history.scrollRestoration="manual");var o=d&&d.isPressed;n=r.v=Math.round(n)||(d&&d.iOS?1:0),e(n),r.cacheID=y.cache,o&&w("ss",n)}else(t||y.cache!==r.cacheID||w("ref"))&&(r.cacheID=y.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},M={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:S((function(e){return arguments.length?i.scrollTo(e,P.sc()):i.pageXOffset||o.scrollLeft||a.scrollLeft||s.scrollLeft||0}))},P={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:M,sc:S((function(e){return arguments.length?i.scrollTo(M.sc(),e):i.pageYOffset||o.scrollTop||a.scrollTop||s.scrollTop||0}))},O=function(e,t){return(t&&t._ctx&&t._ctx.selector||r.utils.toArray)(e)[0]||("string"==typeof e&&!1!==r.config().nullTargetWarn?void 0:null)},A=function(e,t){var n=t.s,i=t.sc;T(e)&&(e=o.scrollingElement||a);var s=y.indexOf(e),l=i===P.sc?1:2;!~s&&(s=y.push(e)-1),y[s+l]||k(e,"scroll",E);var c=y[s+l],u=c||(y[s+l]=S(_(e,n),!0)||(T(e)?i:S((function(t){return arguments.length?e[n]=t:e[n]}))));return u.target=e,c||(u.smooth="smooth"===r.getProperty(e,"scrollBehavior")),u},R=function(e,t,r){var n=e,i=e,o=b(),a=o,s=t||50,l=Math.max(500,3*s),c=function(e,t){var l=b();t||l-o>s?(i=n,n=e,a=o,o=l):r?n+=e:n=i+(e-i)/(l-a)*(o-a)};return{update:c,reset:function(){i=n=r?0:n,a=o=0},getVelocity:function(e){var t=a,s=i,u=b();return(e||0===e)&&e!==n&&c(e),o===a||u-a>l?0:(n+(r?s:-s))/((r?u:o)-t)*1e3}}},D=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Y=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},B=function(){var e,t,n,i;(u=r.core.globals().ScrollTrigger)&&u.core&&(e=u.core,t=e.bridge||{},n=e._scrollers,i=e._proxies,n.push.apply(n,y),i.push.apply(i,x),y=n,x=i,w=function(e,r){return t[e](r)})},I=function(e){return r=e||g(),!n&&r&&"undefined"!=typeof document&&document.body&&(i=window,o=document,a=o.documentElement,s=o.body,f=[i,o,a,s],r.utils.clamp,h=r.core.context||function(){},c="onpointerenter"in s?"pointer":"mouse",l=X.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,p=X.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return v=0}),500),B(),n=1),n};M.op=P,y.cache=0;var X=function(){function e(e){this.init(e)}var f,g,v;return e.prototype.init=function(e){n||I(r),u||B();var t=e.tolerance,f=e.dragMinimum,g=e.type,v=e.target,y=e.lineHeight,x=e.debounce,w=e.preventDefault,_=e.onStop,S=e.onStopDelay,X=e.ignore,z=e.wheelSpeed,L=e.event,N=e.onDragStart,F=e.onDragEnd,H=e.onDrag,W=e.onPress,q=e.onRelease,U=e.onRight,V=e.onLeft,G=e.onUp,j=e.onDown,K=e.onChangeX,Z=e.onChangeY,$=e.onChange,J=e.onToggleX,Q=e.onToggleY,ee=e.onHover,te=e.onHoverEnd,re=e.onMove,ne=e.ignoreCheck,ie=e.isNormalizer,oe=e.onGestureStart,ae=e.onGestureEnd,se=e.onWheel,le=e.onEnable,ce=e.onDisable,ue=e.onClick,fe=e.scrollSpeed,de=e.capture,pe=e.allowClicks,he=e.lockAxis,ge=e.onLockAxis;this.target=v=O(v)||a,this.vars=e,X&&(X=r.utils.toArray(X)),t=t||1e-9,f=f||0,z=z||1,fe=fe||1,g=g||"wheel,touch,pointer",x=!1!==x,y||(y=parseFloat(i.getComputedStyle(s).lineHeight)||22);var ve,me,ye,xe,be,we,_e,Te=this,ke=0,Ce=0,Ee=e.passive||!w&&!1!==e.passive,Se=A(v,M),Me=A(v,P),Pe=Se(),Oe=Me(),Ae=~g.indexOf("touch")&&!~g.indexOf("pointer")&&"pointerdown"===p[0],Re=T(v),De=v.ownerDocument||o,Ye=[0,0,0],Be=[0,0,0],Ie=0,Xe=function(){return Ie=b()},ze=function(e,t){return(Te.event=e)&&X&&~X.indexOf(e.target)||t&&Ae&&"touch"!==e.pointerType||ne&&ne(e,t)},Le=function(){var e=Te.deltaX=Y(Ye),r=Te.deltaY=Y(Be),n=Math.abs(e)>=t,i=Math.abs(r)>=t;$&&(n||i)&&$(Te,e,r,Ye,Be),n&&(U&&Te.deltaX>0&&U(Te),V&&Te.deltaX<0&&V(Te),K&&K(Te),J&&Te.deltaX<0!=ke<0&&J(Te),ke=Te.deltaX,Ye[0]=Ye[1]=Ye[2]=0),i&&(j&&Te.deltaY>0&&j(Te),G&&Te.deltaY<0&&G(Te),Z&&Z(Te),Q&&Te.deltaY<0!=Ce<0&&Q(Te),Ce=Te.deltaY,Be[0]=Be[1]=Be[2]=0),(xe||ye)&&(re&&re(Te),ye&&(N&&1===ye&&N(Te),H&&H(Te),ye=0),xe=!1),we&&!(we=!1)&&ge&&ge(Te),be&&(se(Te),be=!1),ve=0},Ne=function(e,t,r){Ye[r]+=e,Be[r]+=t,Te._vx.update(e),Te._vy.update(t),x?ve||(ve=requestAnimationFrame(Le)):Le()},Fe=function(e,t){he&&!_e&&(Te.axis=_e=Math.abs(e)>Math.abs(t)?"x":"y",we=!0),"y"!==_e&&(Ye[2]+=e,Te._vx.update(e,!0)),"x"!==_e&&(Be[2]+=t,Te._vy.update(t,!0)),x?ve||(ve=requestAnimationFrame(Le)):Le()},He=function(e){if(!ze(e,1)){var t=(e=D(e,w)).clientX,r=e.clientY,n=t-Te.x,i=r-Te.y,o=Te.isDragging;Te.x=t,Te.y=r,(o||(n||i)&&(Math.abs(Te.startX-t)>=f||Math.abs(Te.startY-r)>=f))&&(ye=o?2:1,o||(Te.isDragging=!0),Fe(n,i))}},We=Te.onPress=function(e){ze(e,1)||e&&e.button||(Te.axis=_e=null,me.pause(),Te.isPressed=!0,e=D(e),ke=Ce=0,Te.startX=Te.x=e.clientX,Te.startY=Te.y=e.clientY,Te._vx.reset(),Te._vy.reset(),k(ie?v:De,p[1],He,Ee,!0),Te.deltaX=Te.deltaY=0,W&&W(Te))},qe=Te.onRelease=function(e){if(!ze(e,1)){C(ie?v:De,p[1],He,!0);var t=!isNaN(Te.y-Te.startY),n=Te.isDragging,o=n&&(Math.abs(Te.x-Te.startX)>3||Math.abs(Te.y-Te.startY)>3),a=D(e);!o&&t&&(Te._vx.reset(),Te._vy.reset(),w&&pe&&r.delayedCall(.08,(function(){if(b()-Ie>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(De.createEvent){var t=De.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,i,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}))),Te.isDragging=Te.isGesturing=Te.isPressed=!1,_&&n&&!ie&&me.restart(!0),ye&&Le(),F&&n&&F(Te),q&&q(Te,o)}},Ue=function(e){return e.touches&&e.touches.length>1&&(Te.isGesturing=!0)&&oe(e,Te.isDragging)},Ve=function(){return(Te.isGesturing=!1)||ae(Te)},Ge=function(e){if(!ze(e)){var t=Se(),r=Me();Ne((t-Pe)*fe,(r-Oe)*fe,1),Pe=t,Oe=r,_&&me.restart(!0)}},je=function(e){if(!ze(e)){e=D(e,w),se&&(be=!0);var t=(1===e.deltaMode?y:2===e.deltaMode?i.innerHeight:1)*z;Ne(e.deltaX*t,e.deltaY*t,0),_&&!ie&&me.restart(!0)}},Ke=function(e){if(!ze(e)){var t=e.clientX,r=e.clientY,n=t-Te.x,i=r-Te.y;Te.x=t,Te.y=r,xe=!0,_&&me.restart(!0),(n||i)&&Fe(n,i)}},Ze=function(e){Te.event=e,ee(Te)},$e=function(e){Te.event=e,te(Te)},Je=function(e){return ze(e)||D(e,w)&&ue(Te)};me=Te._dc=r.delayedCall(S||.25,(function(){Te._vx.reset(),Te._vy.reset(),me.pause(),_&&_(Te)})).pause(),Te.deltaX=Te.deltaY=0,Te._vx=R(0,50,!0),Te._vy=R(0,50,!0),Te.scrollX=Se,Te.scrollY=Me,Te.isDragging=Te.isGesturing=Te.isPressed=!1,h(this),Te.enable=function(e){return Te.isEnabled||(k(Re?De:v,"scroll",E),g.indexOf("scroll")>=0&&k(Re?De:v,"scroll",Ge,Ee,de),g.indexOf("wheel")>=0&&k(v,"wheel",je,Ee,de),(g.indexOf("touch")>=0&&l||g.indexOf("pointer")>=0)&&(k(v,p[0],We,Ee,de),k(De,p[2],qe),k(De,p[3],qe),pe&&k(v,"click",Xe,!0,!0),ue&&k(v,"click",Je),oe&&k(De,"gesturestart",Ue),ae&&k(De,"gestureend",Ve),ee&&k(v,c+"enter",Ze),te&&k(v,c+"leave",$e),re&&k(v,c+"move",Ke)),Te.isEnabled=!0,Te.isDragging=Te.isGesturing=Te.isPressed=xe=ye=!1,Te._vx.reset(),Te._vy.reset(),Pe=Se(),Oe=Me(),e&&e.type&&We(e),le&&le(Te)),Te},Te.disable=function(){Te.isEnabled&&(m.filter((function(e){return e!==Te&&T(e.target)})).length||C(Re?De:v,"scroll",E),Te.isPressed&&(Te._vx.reset(),Te._vy.reset(),C(ie?v:De,p[1],He,!0)),C(Re?De:v,"scroll",Ge,de),C(v,"wheel",je,de),C(v,p[0],We,de),C(De,p[2],qe),C(De,p[3],qe),C(v,"click",Xe,!0),C(v,"click",Je),C(De,"gesturestart",Ue),C(De,"gestureend",Ve),C(v,c+"enter",Ze),C(v,c+"leave",$e),C(v,c+"move",Ke),Te.isEnabled=Te.isPressed=Te.isDragging=!1,ce&&ce(Te))},Te.kill=Te.revert=function(){Te.disable();var e=m.indexOf(Te);e>=0&&m.splice(e,1),d===Te&&(d=0)},m.push(Te),ie&&T(v)&&(d=Te),Te.enable(L)},f=e,(g=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&t(f.prototype,g),v&&t(f,v),e}();X.version="3.12.7",X.create=function(e){return new X(e)},X.register=I,X.getAll=function(){return m.slice()},X.getById=function(e){return m.filter((function(t){return t.vars.id===e}))[0]},g()&&r.registerPlugin(X);
/*!
   * ScrollTrigger 3.12.7
   * https://gsap.com
   *
   * @license Copyright 2008-2025, 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 z,L,N,F,H,W,q,U,V,G,j,K,Z,$,J,Q,ee,te,re,ne,ie,oe,ae,se,le,ce,ue,fe,de,pe,he,ge,ve,me,ye,xe,be,we,_e=1,Te=Date.now,ke=Te(),Ce=0,Ee=0,Se=function(e,t,r){var n=Ne(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},Me=function(e,t){return!t||Ne(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},Pe=function(){return $=1},Oe=function(){return $=0},Ae=function(e){return e},Re=function(e){return Math.round(1e5*e)/1e5||0},De=function(){return"undefined"!=typeof window},Ye=function(){return z||De()&&(z=window.gsap)&&z.registerPlugin&&z},Be=function(e){return!!~q.indexOf(e)},Ie=function(e){return("Height"===e?he:N["inner"+e])||H["client"+e]||W["client"+e]},Xe=function(e){return _(e,"getBoundingClientRect")||(Be(e)?function(){return zt.width=N.innerWidth,zt.height=he,zt}:function(){return $e(e)})},ze=function(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return Math.max(0,(r="scroll"+n)&&(o=_(e,r))?o()-Xe(e)()[i]:Be(e)?(H[r]||W[r])-Ie(n):e[r]-e["offset"+n])},Le=function(e,t){for(var r=0;r<re.length;r+=3)(!t||~t.indexOf(re[r+1]))&&e(re[r],re[r+1],re[r+2])},Ne=function(e){return"string"==typeof e},Fe=function(e){return"function"==typeof e},He=function(e){return"number"==typeof e},We=function(e){return"object"==typeof e},qe=function(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()},Ue=function(e,t){if(e.enabled){var r=e._ctx?e._ctx.add((function(){return t(e)})):t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Ve=Math.abs,Ge="padding",je="px",Ke=function(e){return N.getComputedStyle(e)},Ze=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},$e=function(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Ke(e)[J]&&z.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},Je=function(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0},Qe=function(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r},et=function(e){var t=z.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort((function(e,t){return e-t}));return r?function(e,n,i){var o;if(void 0===i&&(i=.001),!n)return t(e);if(n>0){for(e-=i,o=0;o<r.length;o++)if(r[o]>=e)return r[o];return r[o-1]}for(o=r.length,e+=i;o--;)if(r[o]<=e)return r[o];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var o=t(r);return!n||Math.abs(o-r)<i||o-r<0==n<0?o:t(n<0?r-e:r+e)}},tt=function(e,t,r,n){return r.split(",").forEach((function(r){return e(t,r,n)}))},rt=function(e,t,r,n,i){return e.addEventListener(t,r,{passive:!n,capture:!!i})},nt=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},it=function(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},ot={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},at={toggleActions:"play",anticipatePin:0},st={top:0,left:0,center:.5,bottom:1,right:1},lt=function(e,t){if(Ne(e)){var r=e.indexOf("="),n=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in st?st[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ct=function(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=F.createElement("div"),h=Be(r)||"fixed"===_(r,"pinType"),g=-1!==e.indexOf("scroller"),v=h?W:r,m=-1!==e.indexOf("start"),y=m?l:c,x="border-color:"+y+";font-size:"+u+";color:"+y+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((g||s)&&h?"fixed;":"absolute;"),(g||s||!h)&&(x+=(n===P?"right":"bottom")+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=m,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=x,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],ut(p,0,n,m),p},ut=function(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+"Width"]=1,i["border"+a+"Width"]=0,i[r.p]=t+"px",z.set(e,i)},ft=[],dt={},pt=function(){return Te()-Ce>34&&(ye||(ye=requestAnimationFrame(At)))},ht=function(){(!ae||!ae.isPressed||ae.startX>W.clientWidth)&&(y.cache++,ae?ye||(ye=requestAnimationFrame(At)):At(),Ce||bt("scrollStart"),Ce=Te())},gt=function(){ce=N.innerWidth,le=N.innerHeight},vt=function(e){y.cache++,(!0===e||!Z&&!oe&&!F.fullscreenElement&&!F.webkitFullscreenElement&&(!se||ce!==N.innerWidth||Math.abs(N.innerHeight-le)>.25*N.innerHeight))&&U.restart(!0)},mt={},yt=[],xt=function e(){return nt(Ut,"scrollEnd",e)||Mt(!0)},bt=function(e){return mt[e]&&mt[e].map((function(e){return e()}))||yt},wt=[],_t=function(e){for(var t=0;t<wt.length;t+=5)(!e||wt[t+4]&&wt[t+4].query===e)&&(wt[t].style.cssText=wt[t+1],wt[t].getBBox&&wt[t].setAttribute("transform",wt[t+2]||""),wt[t+3].uncache=1)},Tt=function(e,t){var r;for(Q=0;Q<ft.length;Q++)!(r=ft[Q])||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));ge=!0,t&&_t(t),t||bt("revert")},kt=function(e,t){y.cache++,(t||!xe)&&y.forEach((function(e){return Fe(e)&&e.cacheID++&&(e.rec=0)})),Ne(e)&&(N.history.scrollRestoration=de=e)},Ct=0,Et=function(){W.appendChild(pe),he=!ae&&pe.offsetHeight||N.innerHeight,W.removeChild(pe)},St=function(e){return V(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(t){return t.style.display=e?"none":"block"}))},Mt=function(e,t){if(H=F.documentElement,W=F.body,q=[N,F,H,W],!Ce||e||ge){Et(),xe=Ut.isRefreshing=!0,y.forEach((function(e){return Fe(e)&&++e.cacheID&&(e.rec=e())}));var r=bt("refreshInit");ne&&Ut.sort(),t||Tt(),y.forEach((function(e){Fe(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))})),ft.slice(0).forEach((function(e){return e.refresh()})),ge=!1,ft.forEach((function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}})),ve=1,St(!0),ft.forEach((function(e){var t=ze(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)})),St(!1),ve=0,r.forEach((function(e){return e&&e.render&&e.render(-1)})),y.forEach((function(e){Fe(e)&&(e.smooth&&requestAnimationFrame((function(){return e.target.style.scrollBehavior="smooth"})),e.rec&&e(e.rec))})),kt(de,1),U.pause(),Ct++,xe=2,At(2),ft.forEach((function(e){return Fe(e.vars.onRefresh)&&e.vars.onRefresh(e)})),xe=Ut.isRefreshing=!1,bt("refresh")}else rt(Ut,"scrollEnd",xt)},Pt=0,Ot=1,At=function(e){if(2===e||!xe&&!ge){Ut.isUpdating=!0,we&&we.update(0);var t=ft.length,r=Te(),n=r-ke>=50,i=t&&ft[0].scroll();if(Ot=Pt>i?-1:1,xe||(Pt=i),n&&(Ce&&!$&&r-Ce>200&&(Ce=0,bt("scrollEnd")),j=ke,ke=r),Ot<0){for(Q=t;Q-- >0;)ft[Q]&&ft[Q].update(0,n);Ot=1}else for(Q=0;Q<t;Q++)ft[Q]&&ft[Q].update(0,n);Ut.isUpdating=!1}ye=0},Rt=["left","top","bottom","right","marginBottom","marginRight","marginTop","marginLeft","display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Dt=Rt.concat(["width","height","boxSizing","maxWidth","maxHeight","position","margin",Ge,Ge+"Top",Ge+"Right",Ge+"Bottom",Ge+"Left"]),Yt=function(e,t,r,n){if(!e._gsap.swappedIn){for(var i,o=Rt.length,a=t.style,s=e.style;o--;)a[i=Rt[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s.bottom=s.right="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a.width=Je(e,M)+je,a.height=Je(e,P)+je,a[Ge]=s.margin=s.top=s.left="0",It(n),s.width=s.maxWidth=r.width,s.height=s.maxHeight=r.height,s[Ge]=r[Ge],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Bt=/([A-Z])/g,It=function(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||z.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(Bt,"-$1").toLowerCase())}},Xt=function(e){for(var t=Dt.length,r=e.style,n=[],i=0;i<t;i++)n.push(Dt[i],r[Dt[i]]);return n.t=e,n},zt={left:0,top:0},Lt=function(e,t,r,n,i,o,a,s,l,c,u,f,d,p){Fe(e)&&(e=e(s)),Ne(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?lt("0"+e.substr(3),r):0));var h,g,v,m=d?d.time():0;if(d&&d.seek(0),isNaN(e)||(e=+e),He(e))d&&(e=z.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,f,e)),a&&ut(a,r,n,!0);else{Fe(t)&&(t=t(s));var y,x,b,w,_=(e||"0").split(" ");v=O(t,s)||W,(y=$e(v)||{})&&(y.left||y.top)||"none"!==Ke(v).display||(w=v.style.display,v.style.display="block",y=$e(v),w?v.style.display=w:v.style.removeProperty("display")),x=lt(_[0],y[n.d]),b=lt(_[1]||"0",r),e=y[n.p]-l[n.p]-c+x+i-b,a&&ut(a,b,n,r-b<20||a._isStart&&b>20),r-=r-b}if(p&&(s[p]=e||-.001,e<0&&(e=0)),o){var T=e+r,k=o._isStart;h="scroll"+n.d2,ut(o,T,n,k&&T>20||!k&&(u?Math.max(W[h],H[h]):o.parentNode[h])<=T+1),u&&(l=$e(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+je))}return d&&v&&(h=$e(v),d.seek(f),g=$e(v),d._caScrollDist=h[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(m),d?e:Math.round(e)},Nt=/(webkit|moz|length|cssText|inset)/i,Ft=function(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===W){for(i in e._stOrig=a.cssText,o=Ke(e))+i||Nt.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;z.core.getCache(e).uncache=1,t.appendChild(e)}},Ht=function(e,t,r){var n=t,i=n;return function(t){var o=Math.round(e());return o!==n&&o!==i&&Math.abs(o-n)>3&&Math.abs(o-i)>3&&(t=o,r&&r()),i=n,n=Math.round(t)}},Wt=function(e,t,r){var n={};n[t.p]="+="+r,z.set(e,n)},qt=function(e,t){var r=A(e,t),n="_scroll"+t.p2,i=function t(i,o,a,s,l){var c=t.tween,u=o.onComplete,f={};a=a||r();var d=Ht(r,a,(function(){c.kill(),t.tween=0}));return l=s&&l||0,s=s||i-a,c&&c.kill(),o[n]=i,o.inherit=!1,o.modifiers=f,f[n]=function(){return d(a+s*c.ratio+l*c.ratio*c.ratio)},o.onUpdate=function(){y.cache++,t.tween&&At()},o.onComplete=function(){t.tween=0,u&&u.call(c)},c=t.tween=z.to(e,o)};return e[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},rt(e,"wheel",r.wheelHandler),Ut.isTouch&&rt(e,"touchmove",r.wheelHandler),i},Ut=function(){function e(t,r){L||e.register(z),fe(this),this.init(t,r)}return e.prototype.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Ee){var n,i,o,a,s,l,c,u,f,d,p,h,g,v,m,b,w,T,k,C,E,S,R,D,Y,B,I,X,L,q,U,K,J,ee,te,re,oe,ae,se,le,ce,ue,fe=t=Ze(Ne(t)||He(t)||t.nodeType?{trigger:t}:t,at),de=fe.onUpdate,pe=fe.toggleClass,he=fe.id,ge=fe.onToggle,ye=fe.onRefresh,ke=fe.scrub,Pe=fe.trigger,Oe=fe.pin,De=fe.pinSpacing,Ye=fe.invalidateOnRefresh,Le=fe.anticipatePin,tt=fe.onScrubComplete,it=fe.onSnapComplete,st=fe.once,ut=fe.snap,pt=fe.pinReparent,gt=fe.pinSpacer,mt=fe.containerAnimation,yt=fe.fastScrollEnd,bt=fe.preventOverlaps,wt=t.horizontal||t.containerAnimation&&!1!==t.horizontal?M:P,_t=!ke&&0!==ke,Tt=O(t.scroller||N),kt=z.core.getCache(Tt),Et=Be(Tt),St="fixed"===("pinType"in t?t.pinType:_(Tt,"pinType")||Et&&"fixed"),Pt=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],At=_t&&t.toggleActions.split(" "),Rt="markers"in t?t.markers:at.markers,Dt=Et?0:parseFloat(Ke(Tt)["border"+wt.p2+"Width"])||0,Bt=this,Nt=t.onRefreshInit&&function(){return t.onRefreshInit(Bt)},Ht=function(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=_(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Ie(i):e["client"+i])||0}}(Tt,Et,wt),Ut=function(e,t){return!t||~x.indexOf(e)?Xe(e):function(){return zt}}(Tt,Et),Vt=0,Gt=0,jt=0,Kt=A(Tt,wt);if(Bt._startClamp=Bt._endClamp=!1,Bt._dir=wt,Le*=45,Bt.scroller=Tt,Bt.scroll=mt?mt.time.bind(mt):Kt,a=Kt(),Bt.vars=t,r=r||t.animation,"refreshPriority"in t&&(ne=1,-9999===t.refreshPriority&&(we=Bt)),kt.tweenScroll=kt.tweenScroll||{top:qt(Tt,P),left:qt(Tt,M)},Bt.tweenTo=n=kt.tweenScroll[wt.p],Bt.scrubDuration=function(e){(J=He(e)&&e)?K?K.duration(e):K=z.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:J,paused:!0,onComplete:function(){return tt&&tt(Bt)}}):(K&&K.progress(1).kill(),K=0)},r&&(r.vars.lazy=!1,r._initted&&!Bt.isReverted||!1!==r.vars.immediateRender&&!1!==t.immediateRender&&r.duration()&&r.render(0,!0,!0),Bt.animation=r.pause(),r.scrollTrigger=Bt,Bt.scrubDuration(ke),q=0,he||(he=r.vars.id)),ut&&(We(ut)&&!ut.push||(ut={snapTo:ut}),"scrollBehavior"in W.style&&z.set(Et?[W,H]:Tt,{scrollBehavior:"auto"}),y.forEach((function(e){return Fe(e)&&e.target===(Et?F.scrollingElement||H:Tt)&&(e.smooth=!1)})),o=Fe(ut.snapTo)?ut.snapTo:"labels"===ut.snapTo?function(e){return function(t){return z.utils.snap(Qe(e),t)}}(r):"labelsDirectional"===ut.snapTo?(le=r,function(e,t){return et(Qe(le))(e,t.direction)}):!1!==ut.directional?function(e,t){return et(ut.snapTo)(e,Te()-Gt<500?0:t.direction)}:z.utils.snap(ut.snapTo),ee=ut.duration||{min:.1,max:2},ee=We(ee)?G(ee.min,ee.max):G(ee,ee),te=z.delayedCall(ut.delay||J/2||.1,(function(){var e=Kt(),t=Te()-Gt<500,i=n.tween;if(!(t||Math.abs(Bt.getVelocity())<10)||i||$||Vt===e)Bt.isActive&&Vt!==e&&te.restart(!0);else{var a,s,u=(e-l)/v,f=r&&!_t?r.totalProgress():u,d=t?0:(f-U)/(Te()-j)*1e3||0,p=z.utils.clamp(-u,1-u,Ve(d/2)*d/.185),h=u+(!1===ut.inertia?0:p),g=ut,m=g.onStart,y=g.onInterrupt,x=g.onComplete;if(a=o(h,Bt),He(a)||(a=h),s=Math.max(0,Math.round(l+a*v)),e<=c&&e>=l&&s!==e){if(i&&!i._initted&&i.data<=Ve(s-e))return;!1===ut.inertia&&(p=a-u),n(s,{duration:ee(Ve(.185*Math.max(Ve(h-f),Ve(a-f))/d/.05||0)),ease:ut.ease||"power3",data:Ve(s-e),onInterrupt:function(){return te.restart(!0)&&y&&y(Bt)},onComplete:function(){Bt.update(),Vt=Kt(),r&&!_t&&(K?K.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),q=U=r&&!_t?r.totalProgress():Bt.progress,it&&it(Bt),x&&x(Bt)}},e,p*v,s-e-p*v),m&&m(Bt,n.tween)}}})).pause()),he&&(dt[he]=Bt),(se=(Pe=Bt.trigger=O(Pe||!0!==Oe&&Oe))&&Pe._gsap&&Pe._gsap.stRevert)&&(se=se(Bt)),Oe=!0===Oe?Pe:O(Oe),Ne(pe)&&(pe={targets:Pe,className:pe}),Oe&&(!1===De||"margin"===De||(De=!(!De&&Oe.parentNode&&Oe.parentNode.style&&"flex"===Ke(Oe.parentNode).display)&&Ge),Bt.pin=Oe,(i=z.core.getCache(Oe)).spacer?m=i.pinState:(gt&&((gt=O(gt))&&!gt.nodeType&&(gt=gt.current||gt.nativeElement),i.spacerIsNative=!!gt,gt&&(i.spacerState=Xt(gt))),i.spacer=T=gt||F.createElement("div"),T.classList.add("pin-spacer"),he&&T.classList.add("pin-spacer-"+he),i.pinState=m=Xt(Oe)),!1!==t.force3D&&z.set(Oe,{force3D:!0}),Bt.spacer=T=i.spacer,L=Ke(Oe),D=L[De+wt.os2],C=z.getProperty(Oe),E=z.quickSetter(Oe,wt.a,je),Yt(Oe,T,L),w=Xt(Oe)),Rt){h=We(Rt)?Ze(Rt,ot):ot,d=ct("scroller-start",he,Tt,wt,h,0),p=ct("scroller-end",he,Tt,wt,h,0,d),k=d["offset"+wt.op.d2];var Zt=O(_(Tt,"content")||Tt);u=this.markerStart=ct("start",he,Zt,wt,h,k,0,mt),f=this.markerEnd=ct("end",he,Zt,wt,h,k,0,mt),mt&&(ae=z.quickSetter([u,f],wt.a,je)),St||x.length&&!0===_(Tt,"fixedMarkers")||(ue=Ke(ce=Et?W:Tt).position,ce.style.position="absolute"===ue||"fixed"===ue?ue:"relative",z.set([d,p],{force3D:!0}),B=z.quickSetter(d,wt.a,je),X=z.quickSetter(p,wt.a,je))}if(mt){var $t=mt.vars.onUpdate,Jt=mt.vars.onUpdateParams;mt.eventCallback("onUpdate",(function(){Bt.update(0,0,1),$t&&$t.apply(mt,Jt||[])}))}if(Bt.previous=function(){return ft[ft.indexOf(Bt)-1]},Bt.next=function(){return ft[ft.indexOf(Bt)+1]},Bt.revert=function(e,t){if(!t)return Bt.kill(!0);var n=!1!==e||!Bt.enabled,i=Z;n!==Bt.isReverted&&(n&&(re=Math.max(Kt(),Bt.scroll.rec||0),jt=Bt.progress,oe=r&&r.progress()),u&&[u,f,d,p].forEach((function(e){return e.style.display=n?"none":"block"})),n&&(Z=Bt,Bt.update(n)),!Oe||pt&&Bt.isActive||(n?function(e,t,r){It(r);var n=e._gsap;if(n.spacerIsNative)It(n.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1}(Oe,T,m):Yt(Oe,T,Ke(Oe),Y)),n||Bt.update(n),Z=i,Bt.isReverted=n)},Bt.refresh=function(i,o,h,y){if(!Z&&Bt.enabled||o)if(Oe&&i&&Ce)rt(e,"scrollEnd",xt);else{!xe&&Nt&&Nt(Bt),Z=Bt,n.tween&&!h&&(n.tween.kill(),n.tween=0),K&&K.pause(),Ye&&r&&r.revert({kill:!1}).invalidate(),Bt.isReverted||Bt.revert(!0,!0),Bt._subPinOffset=!1;var x,_,k,E,D,B,X,L,N,q,U,V,G,j=Ht(),$=Ut(),J=mt?mt.duration():ze(Tt,wt),Q=v<=.01,ee=0,ne=y||0,ae=We(h)?h.end:t.end,se=t.endTrigger||Pe,le=We(h)?h.start:t.start||(0!==t.start&&Pe?Oe?"0 0":"0 100%":0),ce=Bt.pinnedContainer=t.pinnedContainer&&O(t.pinnedContainer,Bt),ue=Pe&&Math.max(0,ft.indexOf(Bt))||0,fe=ue;for(Rt&&We(h)&&(V=z.getProperty(d,wt.p),G=z.getProperty(p,wt.p));fe-- >0;)(B=ft[fe]).end||B.refresh(0,1)||(Z=Bt),!(X=B.pin)||X!==Pe&&X!==Oe&&X!==ce||B.isReverted||(q||(q=[]),q.unshift(B),B.revert(!0,!0)),B!==ft[fe]&&(ue--,fe--);for(Fe(le)&&(le=le(Bt)),le=Se(le,"start",Bt),l=Lt(le,Pe,j,wt,Kt(),u,d,Bt,$,Dt,St,J,mt,Bt._startClamp&&"_startClamp")||(Oe?-.001:0),Fe(ae)&&(ae=ae(Bt)),Ne(ae)&&!ae.indexOf("+=")&&(~ae.indexOf(" ")?ae=(Ne(le)?le.split(" ")[0]:"")+ae:(ee=lt(ae.substr(2),j),ae=Ne(le)?le:(mt?z.utils.mapRange(0,mt.duration(),mt.scrollTrigger.start,mt.scrollTrigger.end,l):l)+ee,se=Pe)),ae=Se(ae,"end",Bt),c=Math.max(l,Lt(ae||(se?"100% 0":J),se,j,wt,Kt()+ee,f,p,Bt,$,Dt,St,J,mt,Bt._endClamp&&"_endClamp"))||-.001,ee=0,fe=ue;fe--;)(X=(B=ft[fe]).pin)&&B.start-B._pinPush<=l&&!mt&&B.end>0&&(x=B.end-(Bt._startClamp?Math.max(0,B.start):B.start),(X===Pe&&B.start-B._pinPush<l||X===ce)&&isNaN(le)&&(ee+=x*(1-B.progress)),X===Oe&&(ne+=x));if(l+=ee,c+=ee,Bt._startClamp&&(Bt._startClamp+=ee),Bt._endClamp&&!xe&&(Bt._endClamp=c||-.001,c=Math.min(c,ze(Tt,wt))),v=c-l||(l-=.01)&&.001,Q&&(jt=z.utils.clamp(0,1,z.utils.normalize(l,c,re))),Bt._pinPush=ne,u&&ee&&((x={})[wt.a]="+="+ee,ce&&(x[wt.p]="-="+Kt()),z.set([u,f],x)),!Oe||ve&&Bt.end>=ze(Tt,wt)){if(Pe&&Kt()&&!mt)for(_=Pe.parentNode;_&&_!==W;)_._pinOffset&&(l-=_._pinOffset,c-=_._pinOffset),_=_.parentNode}else x=Ke(Oe),E=wt===P,k=Kt(),S=parseFloat(C(wt.a))+ne,!J&&c>1&&(U={style:U=(Et?F.scrollingElement||H:Tt).style,value:U["overflow"+wt.a.toUpperCase()]},Et&&"scroll"!==Ke(W)["overflow"+wt.a.toUpperCase()]&&(U.style["overflow"+wt.a.toUpperCase()]="scroll")),Yt(Oe,T,x),w=Xt(Oe),_=$e(Oe,!0),L=St&&A(Tt,E?M:P)(),De?((Y=[De+wt.os2,v+ne+je]).t=T,(fe=De===Ge?Je(Oe,wt)+v+ne:0)&&(Y.push(wt.d,fe+je),"auto"!==T.style.flexBasis&&(T.style.flexBasis=fe+je)),It(Y),ce&&ft.forEach((function(e){e.pin===ce&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)})),St&&Kt(re)):(fe=Je(Oe,wt))&&"auto"!==T.style.flexBasis&&(T.style.flexBasis=fe+je),St&&((D={top:_.top+(E?k-l:L)+je,left:_.left+(E?L:k-l)+je,boxSizing:"border-box",position:"fixed"}).width=D.maxWidth=Math.ceil(_.width)+je,D.height=D.maxHeight=Math.ceil(_.height)+je,D.margin=D.marginTop=D.marginRight=D.marginBottom=D.marginLeft="0",D[Ge]=x[Ge],D[Ge+"Top"]=x[Ge+"Top"],D[Ge+"Right"]=x[Ge+"Right"],D[Ge+"Bottom"]=x[Ge+"Bottom"],D[Ge+"Left"]=x[Ge+"Left"],b=function(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(m,D,pt),xe&&Kt(0)),r?(N=r._initted,ie(1),r.render(r.duration(),!0,!0),R=C(wt.a)-S+v+ne,I=Math.abs(v-R)>1,St&&I&&b.splice(b.length-2,2),r.render(0,!0,!0),N||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ie(0)):R=v,U&&(U.value?U.style["overflow"+wt.a.toUpperCase()]=U.value:U.style.removeProperty("overflow-"+wt.a));q&&q.forEach((function(e){return e.revert(!1,!0)})),Bt.start=l,Bt.end=c,a=s=xe?re:Kt(),mt||xe||(a<re&&Kt(re),Bt.scroll.rec=0),Bt.revert(!1,!0),Gt=Te(),te&&(Vt=-1,te.restart(!0)),Z=0,r&&_t&&(r._initted||oe)&&r.progress()!==oe&&r.progress(oe||0,!0).render(r.time(),!0,!0),(Q||jt!==Bt.progress||mt||Ye||r&&!r._initted)&&(r&&!_t&&r.totalProgress(mt&&l<-.001&&!jt?z.utils.normalize(l,c,0):jt,!0),Bt.progress=Q||(a-l)/v===jt?0:jt),Oe&&De&&(T._pinOffset=Math.round(Bt.progress*R)),K&&K.invalidate(),isNaN(V)||(V-=z.getProperty(d,wt.p),G-=z.getProperty(p,wt.p),Wt(d,wt,V),Wt(u,wt,V-(y||0)),Wt(p,wt,G),Wt(f,wt,G-(y||0))),Q&&!xe&&Bt.update(),!ye||xe||g||(g=!0,ye(Bt),g=!1)}},Bt.getVelocity=function(){return(Kt()-s)/(Te()-j)*1e3||0},Bt.endAnimation=function(){qe(Bt.callbackAnimation),r&&(K?K.progress(1):r.paused()?_t||qe(r,Bt.direction<0,1):qe(r,r.reversed()))},Bt.labelToScroll=function(e){return r&&r.labels&&(l||Bt.refresh()||l)+r.labels[e]/r.duration()*v||0},Bt.getTrailing=function(e){var t=ft.indexOf(Bt),r=Bt.direction>0?ft.slice(0,t).reverse():ft.slice(t+1);return(Ne(e)?r.filter((function(t){return t.vars.preventOverlaps===e})):r).filter((function(e){return Bt.direction>0?e.end<=l:e.start>=c}))},Bt.update=function(e,t,i){if(!mt||i||e){var o,u,f,p,h,g,m,y=!0===xe?re:Bt.scroll(),x=e?0:(y-l)/v,_=x<0?0:x>1?1:x||0,k=Bt.progress;if(t&&(s=a,a=mt?Kt():y,ut&&(U=q,q=r&&!_t?r.totalProgress():_)),Le&&Oe&&!Z&&!_e&&Ce&&(!_&&l<y+(y-s)/(Te()-j)*Le?_=1e-4:1===_&&c>y+(y-s)/(Te()-j)*Le&&(_=.9999)),_!==k&&Bt.enabled){if(p=(h=(o=Bt.isActive=!!_&&_<1)!==(!!k&&k<1))||!!_!=!!k,Bt.direction=_>k?1:-1,Bt.progress=_,p&&!Z&&(u=_&&!k?0:1===_?1:1===k?2:3,_t&&(f=!h&&"none"!==At[u+1]&&At[u+1]||At[u],m=r&&("complete"===f||"reset"===f||f in r))),bt&&(h||m)&&(m||ke||!r)&&(Fe(bt)?bt(Bt):Bt.getTrailing(bt).forEach((function(e){return e.endAnimation()}))),_t||(!K||Z||_e?r&&r.totalProgress(_,!(!Z||!Gt&&!e)):(K._dp._time-K._start!==K._time&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo("totalProgress",_,r._tTime/r._tDur):(K.vars.totalProgress=_,K.invalidate().restart()))),Oe)if(e&&De&&(T.style[De+wt.os2]=D),St){if(p){if(g=!e&&_>k&&c+1>y&&y+1>=ze(Tt,wt),pt)if(e||!o&&!g)Ft(Oe,T);else{var C=$e(Oe,!0),M=y-l;Ft(Oe,W,C.top+(wt===P?M:0)+je,C.left+(wt===P?0:M)+je)}It(o||g?b:w),I&&_<1&&o||E(S+(1!==_||g?0:R))}}else E(Re(S+R*_));ut&&!n.tween&&!Z&&!_e&&te.restart(!0),pe&&(h||st&&_&&(_<1||!me))&&V(pe.targets).forEach((function(e){return e.classList[o||st?"add":"remove"](pe.className)})),de&&!_t&&!e&&de(Bt),p&&!Z?(_t&&(m&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),de&&de(Bt)),!h&&me||(ge&&h&&Ue(Bt,ge),Pt[u]&&Ue(Bt,Pt[u]),st&&(1===_?Bt.kill(!1,1):Pt[u]=0),h||Pt[u=1===_?1:3]&&Ue(Bt,Pt[u])),yt&&!o&&Math.abs(Bt.getVelocity())>(He(yt)?yt:2500)&&(qe(Bt.callbackAnimation),K?K.progress(1):qe(r,"reverse"===f?1:!_,1))):_t&&de&&!Z&&de(Bt)}if(X){var O=mt?y/mt.duration()*(mt._caScrollDist||0):y;B(O+(d._isFlipped?1:0)),X(O)}ae&&ae(-y/mt.duration()*(mt._caScrollDist||0))}},Bt.enable=function(t,r){Bt.enabled||(Bt.enabled=!0,rt(Tt,"resize",vt),Et||rt(Tt,"scroll",ht),Nt&&rt(e,"refreshInit",Nt),!1!==t&&(Bt.progress=jt=0,a=s=Vt=Kt()),!1!==r&&Bt.refresh())},Bt.getTween=function(e){return e&&n?n.tween:K},Bt.setPositions=function(e,t,r,n){if(mt){var i=mt.scrollTrigger,o=mt.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}Bt.refresh(!1,!1,{start:Me(e,r&&!!Bt._startClamp),end:Me(t,r&&!!Bt._endClamp)},n),Bt.update()},Bt.adjustPinSpacing=function(e){if(Y&&e){var t=Y.indexOf(wt.d)+1;Y[t]=parseFloat(Y[t])+e+je,Y[1]=parseFloat(Y[1])+e+je,It(Y)}},Bt.disable=function(t,r){if(Bt.enabled&&(!1!==t&&Bt.revert(!0,!0),Bt.enabled=Bt.isActive=!1,r||K&&K.pause(),re=0,i&&(i.uncache=1),Nt&&nt(e,"refreshInit",Nt),te&&(te.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!Et)){for(var o=ft.length;o--;)if(ft[o].scroller===Tt&&ft[o]!==Bt)return;nt(Tt,"resize",vt),Et||nt(Tt,"scroll",ht)}},Bt.kill=function(e,n){Bt.disable(e,n),K&&!n&&K.kill(),he&&delete dt[he];var o=ft.indexOf(Bt);o>=0&&ft.splice(o,1),o===Q&&Ot>0&&Q--,o=0,ft.forEach((function(e){return e.scroller===Bt.scroller&&(o=1)})),o||xe||(Bt.scroll.rec=0),r&&(r.scrollTrigger=null,e&&r.revert({kill:!1}),n||r.kill()),u&&[u,f,d,p].forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),we===Bt&&(we=0),Oe&&(i&&(i.uncache=1),o=0,ft.forEach((function(e){return e.pin===Oe&&o++})),o||(i.spacer=0)),t.onKill&&t.onKill(Bt)},ft.push(Bt),Bt.enable(!1,!1),se&&se(Bt),r&&r.add&&!v){var Qt=Bt.update;Bt.update=function(){Bt.update=Qt,y.cache++,l||c||Bt.refresh()},z.delayedCall(.01,Bt.update),v=.01,l=c=0}else Bt.refresh();Oe&&function(){if(be!==Ct){var e=be=Ct;requestAnimationFrame((function(){return e===Ct&&Mt(!0)}))}}()}else this.update=this.refresh=this.kill=Ae},e.register=function(t){return L||(z=t||Ye(),De()&&window.document&&e.enable(),L=Ee),L},e.defaults=function(e){if(e)for(var t in e)at[t]=e[t];return at},e.disable=function(e,t){Ee=0,ft.forEach((function(r){return r[t?"kill":"disable"](e)})),nt(N,"wheel",ht),nt(F,"scroll",ht),clearInterval(K),nt(F,"touchcancel",Ae),nt(W,"touchstart",Ae),tt(nt,F,"pointerdown,touchstart,mousedown",Pe),tt(nt,F,"pointerup,touchend,mouseup",Oe),U.kill(),Le(nt);for(var r=0;r<y.length;r+=3)it(nt,y[r],y[r+1]),it(nt,y[r],y[r+2])},e.enable=function(){if(N=window,F=document,H=F.documentElement,W=F.body,z&&(V=z.utils.toArray,G=z.utils.clamp,fe=z.core.context||Ae,ie=z.core.suppressOverwrites||Ae,de=N.history.scrollRestoration||"auto",Pt=N.pageYOffset||0,z.core.globals("ScrollTrigger",e),W)){Ee=1,(pe=document.createElement("div")).style.height="100vh",pe.style.position="absolute",Et(),function e(){return Ee&&requestAnimationFrame(e)}(),X.register(z),e.isTouch=X.isTouch,ue=X.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),se=1===X.isTouch,rt(N,"wheel",ht),q=[N,F,H,W],z.matchMedia&&(e.matchMedia=function(e){var t,r=z.matchMedia();for(t in e)r.add(t,e[t]);return r},z.addEventListener("matchMediaInit",(function(){return Tt()})),z.addEventListener("matchMediaRevert",(function(){return _t()})),z.addEventListener("matchMedia",(function(){Mt(0,1),bt("matchMedia")})),z.matchMedia().add("(orientation: portrait)",(function(){return gt(),gt}))),gt(),rt(F,"scroll",ht);var t,r,n=W.hasAttribute("style"),i=W.style,o=i.borderTopStyle,a=z.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",t=$e(W),P.m=Math.round(t.top+P.sc())||0,M.m=Math.round(t.left+M.sc())||0,o?i.borderTopStyle=o:i.removeProperty("border-top-style"),n||(W.setAttribute("style",""),W.removeAttribute("style")),K=setInterval(pt,250),z.delayedCall(.5,(function(){return _e=0})),rt(F,"touchcancel",Ae),rt(W,"touchstart",Ae),tt(rt,F,"pointerdown,touchstart,mousedown",Pe),tt(rt,F,"pointerup,touchend,mouseup",Oe),J=z.utils.checkPrefix("transform"),Dt.push(J),L=Te(),U=z.delayedCall(.2,Mt).pause(),re=[F,"visibilitychange",function(){var e=N.innerWidth,t=N.innerHeight;F.hidden?(ee=e,te=t):ee===e&&te===t||vt()},F,"DOMContentLoaded",Mt,N,"load",Mt,N,"resize",vt],Le(rt),ft.forEach((function(e){return e.enable(0,1)})),r=0;r<y.length;r+=3)it(nt,y[r],y[r+1]),it(nt,y[r],y[r+2])}},e.config=function(t){"limitCallbacks"in t&&(me=!!t.limitCallbacks);var r=t.syncInterval;r&&clearInterval(K)||(K=r)&&setInterval(pt,r),"ignoreMobileResize"in t&&(se=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Le(nt)||Le(rt,t.autoRefreshEvents||"none"),oe=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var r=O(e),n=y.indexOf(r),i=Be(r);~n&&y.splice(n,i?6:2),t&&(i?x.unshift(N,t,W,t,H,t):x.unshift(r,t))},e.clearMatchMedia=function(e){ft.forEach((function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)}))},e.isInViewport=function(e,t,r){var n=(Ne(e)?O(e):e).getBoundingClientRect(),i=n[r?"width":"height"]*t||0;return r?n.right-i>0&&n.left+i<N.innerWidth:n.bottom-i>0&&n.top+i<N.innerHeight},e.positionInViewport=function(e,t,r){Ne(e)&&(e=O(e));var n=e.getBoundingClientRect(),i=n[r?"width":"height"],o=null==t?i/2:t in st?st[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/N.innerWidth:(n.top+o)/N.innerHeight},e.killAll=function(e){if(ft.slice(0).forEach((function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()})),!0!==e){var t=mt.killAll||[];mt={},t.forEach((function(e){return e()}))}},e}();Ut.version="3.12.7",Ut.saveStyles=function(e){return e?V(e).forEach((function(e){if(e&&e.style){var t=wt.indexOf(e);t>=0&&wt.splice(t,5),wt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),z.core.getCache(e),fe())}})):wt},Ut.revert=function(e,t){return Tt(!e,t)},Ut.create=function(e,t){return new Ut(e,t)},Ut.refresh=function(e){return e?vt(!0):(L||Ut.register())&&Mt(!0)},Ut.update=function(e){return++y.cache&&At(!0===e?2:0)},Ut.clearScrollMemory=kt,Ut.maxScroll=function(e,t){return ze(e,t?M:P)},Ut.getScrollFunc=function(e,t){return A(O(e),t?M:P)},Ut.getById=function(e){return dt[e]},Ut.getAll=function(){return ft.filter((function(e){return"ScrollSmoother"!==e.vars.id}))},Ut.isScrolling=function(){return!!Ce},Ut.snapDirectional=et,Ut.addEventListener=function(e,t){var r=mt[e]||(mt[e]=[]);~r.indexOf(t)||r.push(t)},Ut.removeEventListener=function(e,t){var r=mt[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},Ut.batch=function(e,t){var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9,s=function(e,t){var r=[],n=[],i=z.delayedCall(o,(function(){t(r,n),r=[],n=[]})).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}};for(r in t)i[r]="on"===r.substr(0,2)&&Fe(t[r])&&"onRefreshInit"!==r?s(0,t[r]):t[r];return Fe(a)&&(a=a(),rt(Ut,"refresh",(function(){return a=t.batchMax()}))),V(e).forEach((function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(Ut.create(t))})),n};var Vt,Gt=function(e,t,r,n){return t>n?e(n):t<0&&e(0),r>n?(n-t)/(r-t):r<0?t/(t-r):1},jt=function e(t,r){!0===r?t.style.removeProperty("touch-action"):t.style.touchAction=!0===r?"auto":r?"pan-"+r+(X.isTouch?" pinch-zoom":""):"none",t===H&&e(W,r)},Kt={auto:1,scroll:1},Zt=function(e){var t,r=e.event,n=e.target,i=e.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,a=o._gsap||z.core.getCache(o),s=Te();if(!a._isScrollT||s-a._isScrollT>2e3){for(;o&&o!==W&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!Kt[(t=Ke(o)).overflowY]&&!Kt[t.overflowX]);)o=o.parentNode;a._isScroll=o&&o!==n&&!Be(o)&&(Kt[(t=Ke(o)).overflowY]||Kt[t.overflowX]),a._isScrollT=s}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},$t=function(e,t,r,n){return X.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&Zt,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&rt(F,X.eventTypes[0],Qt,!1,!0)},onDisable:function(){return nt(F,X.eventTypes[0],Qt,!0)}})},Jt=/(input|label|select|textarea)/i,Qt=function(e){var t=Jt.test(e.target.tagName);(t||Vt)&&(e._gsapAllow=!0,Vt=t)},er=function(e){We(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,i,o,a,s,l,c=e,u=c.normalizeScrollX,f=c.momentum,d=c.allowNestedScroll,p=c.onRelease,h=O(e.target)||H,g=z.core.globals().ScrollSmoother,v=g&&g.get(),m=ue&&(e.content&&O(e.content)||v&&!1!==e.content&&!v.smooth()&&v.content()),x=A(h,P),b=A(h,M),w=1,_=(X.isTouch&&N.visualViewport?N.visualViewport.scale*N.visualViewport.width:N.outerWidth)/N.innerWidth,T=0,k=Fe(f)?function(){return f(t)}:function(){return f||2.8},C=$t(h,e.type,!0,d),E=function(){return i=!1},S=Ae,R=Ae,D=function(){r=ze(h,P),R=G(ue?1:0,r),u&&(S=G(0,ze(h,M))),n=Ct},Y=function(){m._gsap.y=Re(parseFloat(m._gsap.y)+x.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",x.offset=x.cacheID=0},B=function(){D(),o.isActive()&&o.vars.scrollY>r&&(x()>r?o.progress(1)&&x(r):o.resetTo("scrollY",r))};return m&&z.set(m,{y:"+=0"}),e.ignoreCheck=function(e){return ue&&"touchmove"===e.type&&function(){if(i){requestAnimationFrame(E);var e=Re(t.deltaY/2),r=R(x.v-e);if(m&&r!==x.v+x.offset){x.offset=r-x.v;var n=Re((parseFloat(m&&m._gsap.y)||0)-x.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",m._gsap.y=n+"px",x.cacheID=y.cache,At()}return!0}x.offset&&Y(),i=!0}()||w>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){i=!1;var e=w;w=Re((N.visualViewport&&N.visualViewport.scale||1)/_),o.pause(),e!==w&&jt(h,w>1.01||!u&&"x"),a=b(),s=x(),D(),n=Ct},e.onRelease=e.onGestureStart=function(e,t){if(x.offset&&Y(),t){y.cache++;var n,i,a=k();u&&(i=(n=b())+.05*a*-e.velocityX/.227,a*=Gt(b,n,i,ze(h,M)),o.vars.scrollX=S(i)),i=(n=x())+.05*a*-e.velocityY/.227,a*=Gt(x,n,i,ze(h,P)),o.vars.scrollY=R(i),o.invalidate().duration(a).play(.01),(ue&&o.vars.scrollY>=r||n>=r-1)&&z.to({},{onUpdate:B,duration:a})}else l.restart(!0);p&&p(e)},e.onWheel=function(){o._ts&&o.pause(),Te()-T>1e3&&(n=0,T=Te())},e.onChange=function(e,t,r,i,o){if(Ct!==n&&D(),t&&u&&b(S(i[2]===t?a+(e.startX-e.x):b()+t-i[1])),r){x.offset&&Y();var l=o[2]===r,c=l?s+e.startY-e.y:x()+r-o[1],f=R(c);l&&c!==f&&(s+=f-c),x(f)}(r||t)&&At()},e.onEnable=function(){jt(h,!u&&"x"),Ut.addEventListener("refresh",B),rt(N,"resize",B),x.smooth&&(x.target.style.scrollBehavior="auto",x.smooth=b.smooth=!1),C.enable()},e.onDisable=function(){jt(h,!0),nt(N,"resize",B),Ut.removeEventListener("refresh",B),C.kill()},e.lockAxis=!1!==e.lockAxis,(t=new X(e)).iOS=ue,ue&&!x()&&x(1),ue&&z.ticker.add(Ae),l=t._dc,o=z.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Ht(x,x(),(function(){return o.pause()}))},onUpdate:At,onComplete:l.vars.onComplete}),t};Ut.sort=function(e){if(Fe(e))return ft.sort(e);var t=N.pageYOffset||0;return Ut.getAll().forEach((function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+N.innerHeight})),ft.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},Ut.observe=function(e){return new X(e)},Ut.normalizeScroll=function(e){if(void 0===e)return ae;if(!0===e&&ae)return ae.enable();if(!1===e)return ae&&ae.kill(),void(ae=e);var t=e instanceof X?e:er(e);return ae&&ae.target===t.target&&ae.kill(),Be(t.target)&&(ae=t),t},Ut.core={_getVelocityProp:R,_inputObserver:$t,_scrollers:y,_proxies:x,bridge:{ss:function(){Ce||bt("scrollStart"),Ce=Te()},ref:function(){return Z}}},Ye()&&z.registerPlugin(Ut),e.ScrollTrigger=Ut,e.default=Ut,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete window.default}));