PageSourceSearch

https://mental.ae/_next/static/chunks/4441-bcc169f586894546.js

js mental.ae collected 2026-10-07 21:23:31 UTC 81,322 bytes, 15 lines download raw bytes

vendor: 13,600 bytes, lines 1-15
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4441],{1204:function(t,e,r){r.d(e,{i:function(){return e2}});/*!
2 * Observer 3.15.0
3 * https://gsap.com
4 *
5 * @license Copyright 2008-2026, GreenSock. All rights reserved.
6 * Subject to the terms at https://gsap.com/standard-license
7 * @author: Jack Doyle, [email protected]
8*/var i,n,o,s,a,l,c,u,h,p,f,d,g,v=function(){return i||"undefined"!=typeof window&&(i=window.gsap)&&i.registerPlugin&&i},m=1,y=[],w=[],x=[],b=Date.now,S=function(t,e){return e},_=function(){var t=h.core,e=t.bridge||{},r=t._scrollers,i=t._proxies;r.push.apply(r,w),i.push.apply(i,x),w=r,x=i,S=function(t,r){return e[t](r)}},E=function(t,e){return~x.indexOf(t)&&x[x.indexOf(t)+1][e]},T=function(t){return!!~p.indexOf(t)},O=function(t,e,r,i,n){return t.addEventListener(e,r,{passive:!1!==i,capture:!!n})},M=function(t,e,r,i){return t.removeEventListener(e,r,!!i)},P="scrollLeft",C="scrollTop",k=function(){return f&&f.isPressed||w.cache++},z=function(t,e){var r=function r(i){if(i||0===i){m&&(o.history.scrollRestoration="manual");var n=f&&f.isPressed;t(i=r.v=Math.round(i)||(f&&f.iOS?1:0)),r.cacheID=w.cache,n&&S("ss",i)}else(e||w.cache!==r.cacheID||S("ref"))&&(r.cacheID=w.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},A={s:P,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:z(function(t){return arguments.length?o.scrollTo(t,R.sc()):o.pageXOffset||s[P]||a[P]||l[P]||0})},R={s:C,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:A,sc:z(function(t){return arguments.length?o.scrollTo(A.sc(),t):o.pageYOffset||s[C]||a[C]||l[C]||0})},N=function(t,e){return(e&&e._ctx&&e._ctx.selector||i.utils.toArray)(t)[0]||("string"==typeof t&&!1!==i.config().nullTargetWarn?console.warn("Element not found:",t):null)},D=function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1},L=function(t,e){var r=e.s,n=e.sc;T(t)&&(t=s.scrollingElement||a);var o=w.indexOf(t),l=n===R.sc?1:2;~o||(o=w.push(t)-1),w[o+l]||O(t,"scroll",k);var c=w[o+l],u=c||(w[o+l]=z(E(t,r),!0)||(T(t)?n:z(function(e){return arguments.length?t[r]=e:t[r]})));return u.target=t,c||(u.smooth="smooth"===i.getProperty(t,"scrollBehavior")),u},Y=function(t,e,r){var i=t,n=t,o=b(),s=o,a=e||50,l=Math.max(500,3*a),c=function(t,e){var l=b();e||l-o>a?(n=i,i=t,s=o,o=l):r?i+=t:i=n+(t-n)/(l-s)*(o-s)};return{update:c,reset:function(){n=i=r?0:i,s=o=0},getVelocity:function(t){var e=s,a=n,u=b();return(t||0===t)&&t!==i&&c(t),o===s||u-s>l?0:(i+(r?a:-a))/((r?u:o)-e)*1e3}}},F=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},W=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},X=function(){(h=i.core.globals().ScrollTrigger)&&h.core&&_()},H=function(t){return i=t||v(),!n&&i&&"undefined"!=typeof document&&document.body&&(o=window,a=(s=document).documentElement,l=s.body,p=[o,s,a,l],i.utils.clamp,g=i.core.context||function(){},u="onpointerenter"in l?"pointer":"mouse",c=I.isTouch=o.matchMedia&&o.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in o||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,d=I.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return m=0},500),n=1),h||X(),n};A.op=R,w.cache=0;var I=function(){function t(t){this.init(t)}return t.prototype.init=function(t){n||H(i)||console.warn("Please gsap.registerPlugin(Observer)"),h||X();var e=t.tolerance,r=t.dragMinimum,p=t.type,v=t.target,m=t.lineHeight,w=t.debounce,x=t.preventDefault,S=t.onStop,_=t.onStopDelay,E=t.ignore,P=t.wheelSpeed,C=t.event,z=t.onDragStart,I=t.onDragEnd,B=t.onDrag,V=t.onPress,U=t.onRelease,q=t.onRight,G=t.onLeft,j=t.onUp,Z=t.onDown,$=t.onChangeX,K=t.onChangeY,Q=t.onChange,J=t.onToggleX,tt=t.onToggleY,te=t.onHover,tr=t.onHoverEnd,ti=t.onMove,tn=t.ignoreCheck,to=t.isNormalizer,ts=t.onGestureStart,ta=t.onGestureEnd,tl=t.onWheel,tc=t.onEnable,tu=t.onDisable,th=t.onClick,tp=t.scrollSpeed,tf=t.capture,td=t.allowClicks,tg=t.lockAxis,tv=t.onLockAxis;this.target=v=N(v)||a,this.vars=t,E&&(E=i.utils.toArray(E)),e=e||1e-9,r=r||0,P=P||1,tp=tp||1,p=p||"wheel,touch,pointer",w=!1!==w,m||(m=parseFloat(o.getComputedStyle(l).lineHeight)||22);var tm,ty,tw,tx,tb,tS,t_,tE=this,tT=0,tO=0,tM=t.passive||!x&&!1!==t.passive,tP=L(v,A),tC=L(v,R),tk=tP(),tz=tC(),tA=~p.indexOf("touch")&&!~p.indexOf("pointer")&&"pointerdown"===d[0],tR=T(v),tN=v.ownerDocument||s,tD=[0,0,0],tL=[0,0,0],tY=0,tF=function(){return tY=b()},tW=function(t,e){return(tE.event=t)&&E&&D(t.target,E)||e&&tA&&"touch"!==t.pointerType||tn&&tn(t,e)},tX=function(){var t=tE.deltaX=W(tD),r=tE.deltaY=W(tL),i=Math.abs(t)>=e,n=Math.abs(r)>=e;Q&&(i||n)&&Q(tE,t,r,tD,tL),i&&(q&&tE.deltaX>0&&q(tE),G&&tE.deltaX<0&&G(tE),$&&$(tE),J&&tE.deltaX<0!=tT<0&&J(tE),tT=tE.deltaX,tD[0]=tD[1]=tD[2]=0),n&&(Z&&tE.deltaY>0&&Z(tE),j&&tE.deltaY<0&&j(tE),K&&K(tE),tt&&tE.deltaY<0!=tO<0&&tt(tE),tO=tE.deltaY,tL[0]=tL[1]=tL[2]=0),(tx||tw)&&(ti&&ti(tE),tw&&(z&&1===tw&&z(tE),B&&B(tE),tw=0),tx=!1),tS&&(tS=!1,1)&&tv&&tv(tE),tb&&(tl(tE),tb=!1),tm=0},tH=function(t,e,r){tD[r]+=t,tL[r]+=e,tE._vx.update(t),tE._vy.update(e),w?tm||(tm=requestAnimationFrame(tX)):tX()},tI=function(t,e){tg&&!t_&&(tE.axis=t_=Math.abs(t)>Math.abs(e)?"x":"y",tS=!0),"y"!==t_&&(tD[2]+=t,tE._vx.update(t,!0)),"x"!==t_&&(tL[2]+=e,tE._vy.update(e,!0)),w?tm||(tm=requestAnimationFrame(tX)):tX()},tB=function(t){if(!tW(t,1)){var e=(t=F(t,x)).clientX,i=t.clientY,n=e-tE.x,o=i-tE.y,s=tE.isDragging;tE.x=e,tE.y=i,(s||(n||o)&&(Math.abs(tE.startX-e)>=r||Math.abs(tE.startY-i)>=r))&&(tw||(tw=s?2:1),s||(tE.isDragging=!0),tI(n,o))}},tV=tE.onPress=function(t){tW(t,1)||t&&t.button||(tE.axis=t_=null,ty.pause(),tE.isPressed=!0,t=F(t),tT=tO=0,tE.startX=tE.x=t.clientX,tE.startY=tE.y=t.clientY,tE._vx.reset(),tE._vy.reset(),O(to?v:tN,d[1],tB,tM,!0),tE.deltaX=tE.deltaY=0,V&&V(tE))},tU=tE.onRelease=function(t){if(!tW(t,1)){M(to?v:tN,d[1],tB,!0);var e=!isNaN(tE.y-tE.startY),r=tE.isDragging,n=r&&(Math.abs(tE.x-tE.startX)>3||Math.abs(tE.y-tE.startY)>3),s=F(t);!n&&e&&(tE._vx.reset(),tE._vy.reset(),x&&td&&i.delayedCall(.08,function(){if(b()-tY>300&&!t.defaultPrevented){if(t.target.click)t.target.click();else if(tN.createEvent){var e=tN.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,o,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}})),tE.isDragging=tE.isGesturing=tE.isPressed=!1,S&&r&&!to&&ty.restart(!0),tw&&tX(),I&&r&&I(tE),U&&U(tE,n)}},tq=function(t){return t.touches&&t.touches.length>1&&(tE.isGesturing=!0)&&ts(t,tE.isDragging)},tG=function(){return tE.isGesturing=!1,ta(tE)},tj=function(t){if(!tW(t)){var e=tP(),r=tC();tH((e-tk)*tp,(r-tz)*tp,1),tk=e,tz=r,S&&ty.restart(!0)}},tZ=function(t){if(!tW(t)){t=F(t,x),tl&&(tb=!0);var e=(1===t.deltaMode?m:2===t.deltaMode?o.innerHeight:1)*P;tH(t.deltaX*e,t.deltaY*e,0),S&&!to&&ty.restart(!0)}},t$=function(t){if(!tW(t)){var e=t.clientX,r=t.clientY,i=e-tE.x,n=r-tE.y;tE.x=e,tE.y=r,tx=!0,S&&ty.restart(!0),(i||n)&&tI(i,n)}},tK=function(t){tE.event=t,te(tE)},tQ=function(t){tE.event=t,tr(tE)},tJ=function(t){return tW(t)||F(t,x)&&th(tE)};ty=tE._dc=i.delayedCall(_||.25,function(){tE._vx.reset(),tE._vy.reset(),ty.pause(),S&&S(tE)}).pause(),tE.deltaX=tE.deltaY=0,tE._vx=Y(0,50,!0),tE._vy=Y(0,50,!0),tE.scrollX=tP,tE.scrollY=tC,tE.isDragging=tE.isGesturing=tE.isPressed=!1,g(this),tE.enable=function(t){return!tE.isEnabled&&(O(tR?tN:v,"scroll",k),p.indexOf("scroll")>=0&&O(tR?tN:v,"scroll",tj,tM,tf),p.indexOf("wheel")>=0&&O(v,"wheel",tZ,tM,tf),(p.indexOf("touch")>=0&&c||p.indexOf("pointer")>=0)&&(O(v,d[0],tV,tM,tf),O(tN,d[2],tU),O(tN,d[3],tU),td&&O(v,"click",tF,!0,!0),th&&O(v,"click",tJ),ts&&O(tN,"gesturestart",tq),ta&&O(tN,"gestureend",tG),te&&O(v,u+"enter",tK),tr&&O(v,u+"leave",tQ),ti&&O(v,u+"move",t$)),tE.isEnabled=!0,tE.isDragging=tE.isGesturing=tE.isPressed=tx=tw=!1,tE._vx.reset(),tE._vy.reset(),tk=tP(),tz=tC(),t&&t.type&&tV(t),tc&&tc(tE)),tE},tE.disable=function(){tE.isEnabled&&(y.filter(function(t){return t!==tE&&T(t.target)}).length||M(tR?tN:v,"scroll",k),tE.isPressed&&(tE._vx.reset(),tE._vy.reset(),M(to?v:tN,d[1],tB,!0)),M(tR?tN:v,"scroll",tj,tf),M(v,"wheel",tZ,tf),M(v,d[0],tV,tf),M(tN,d[2],tU),M(tN,d[3],tU),M(v,"click",tF,!0),M(v,"click",tJ),M(tN,"gesturestart",tq),M(tN,"gestureend",tG),M(v,u+"enter",tK),M(v,u+"leave",tQ),M(v,u+"move",t$),tE.isEnabled=tE.isPressed=tE.isDragging=!1,tu&&tu(tE))},tE.kill=tE.revert=function(){tE.disable();var t=y.indexOf(tE);t>=0&&y.splice(t,1),f===tE&&(f=0)},y.push(tE),to&&T(v)&&(f=tE),tE.enable(C)},function(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();I.version="3.15.0",I.create=function(t){return new I(t)},I.register=H,I.getAll=function(){return y.slice()},I.getById=function(t){return y.filter(function(e){return e.vars.id===t})[0]},v()&&i.registerPlugin(I);/*!
9 * ScrollTrigger 3.15.0
10 * https://gsap.com
11 *
12 * @license Copyright 2008-2026, GreenSock. All rights reserved.
13 * Subject to the terms at https://gsap.com/standard-license
14 * @author: Jack Doyle, [email protected]
15*/var B,V,U,q,G,j,Z,$,K,Q,J,tt,te,tr,ti,tn,to,ts,ta,tl,tc,tu,th,tp,tf,td,tg,tv,tm,ty,tw,tx,tb,tS,t_,tE,tT,tO,tM=1,tP=Date.now,tC=tP(),tk=0,tz=0,tA=function(t,e,r){var i=tq(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=i,i?t.substr(6,t.length-7):t},tR=function(t,e){return e&&(!tq(t)||"clamp("!==t.substr(0,6))?"clamp("+t+")":t},tN=function(){return tr=1},tD=function(){return tr=0},tL=function(t){return t},tY=function(t){return Math.round(1e5*t)/1e5||0},tF=function(){return"undefined"!=typeof window},tW=function(){return B||tF()&&(B=window.gsap)&&B.registerPlugin&&B},tX=function(t){return!!~Z.indexOf(t)},tH=function(t){return("Height"===t?tw:U["inner"+t])||G["client"+t]||j["client"+t]},tI=function(t){return E(t,"getBoundingClientRect")||(tX(t)?function(){return eZ.width=U.innerWidth,eZ.height=tw,eZ}:function(){return en(t)})},tB=function(t,e,r){var i=r.d,n=r.d2,o=r.a;return(o=E(t,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(e?tH(n):t["client"+n])||0}},tV=function(t,e){var r=e.s,i=e.d2,n=e.d,o=e.a;return Math.max(0,(o=E(t,r="scroll"+i))?o()-tI(t)()[n]:tX(t)?(G[r]||j[r])-tH(i):t[r]-t["offset"+i])},tU=function(t,e){for(var r=0;r<ta.length;r+=3)(!e||~e.indexOf(ta[r+1]))&&t(ta[r],ta[r+1],ta[r+2])},tq=function(t){return"string"==typeof t},tG=function(t){return"function"==typeof t},tj=function(t){return"number"==typeof t},tZ=function(t){return"object"==typeof t},t$=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},tK=function(t,e,r){if(t.enabled){var i=t._ctx?t._ctx.add(function(){return e(t,r)}):e(t,r);i&&i.totalTime&&(t.callbackAnimation=i)}},tQ=Math.abs,tJ="left",t0="right",t1="bottom",t2="width",t3="height",t5="Right",t4="Left",t6="Bottom",t8="padding",t9="margin",t7="Width",et="Height",ee=function(t){return U.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},er=function(t){var e=ee(t).position;t.style.position="absolute"===e||"fixed"===e?e:"relative"},ei=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},en=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==ee(t)[ti]&&B.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect?t.getBoundingClientRect():t.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),i},eo=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},es=function(t){var e,r=[],i=t.labels,n=t.duration();for(e in i)r.push(i[e]/n);return r},ea=function(t){var e=B.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort(function(t,e){return t-e});return r?function(t,i,n){var o;if(void 0===n&&(n=.001),!i)return e(t);if(i>0){for(t-=n,o=0;o<r.length;o++)if(r[o]>=t)return r[o];return r[o-1]}for(o=r.length,t+=n;o--;)if(r[o]<=t)return r[o];return r[0]}:function(r,i,n){void 0===n&&(n=.001);var o=e(r);return!i||Math.abs(o-r)<n||o-r<0==i<0?o:e(i<0?r-t:r+t)}},el=function(t,e,r,i){return r.split(",").forEach(function(r){return t(e,r,i)})},ec=function(t,e,r,i,n){return t.addEventListener(e,r,{passive:!i,capture:!!n})},eu=function(t,e,r,i){return t.removeEventListener(e,r,!!i)},eh=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},ep={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},ef={toggleActions:"play",anticipatePin:0},ed={top:0,left:0,center:.5,bottom:1,right:1},eg=function(t,e){if(tq(t)){var r=t.indexOf("="),i=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(i*=e/100),t=t.substr(0,r-1)),t=i+(t in ed?ed[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},ev=function(t,e,r,i,n,o,s,a){var l=n.startColor,c=n.endColor,u=n.fontSize,h=n.indent,p=n.fontWeight,f=q.createElement("div"),d=tX(r)||"fixed"===E(r,"pinType"),g=-1!==t.indexOf("scroller"),v=d?j:"IFRAME"===r.tagName?r.contentDocument.body:r,m=-1!==t.indexOf("start"),y=m?l:c,w="border-color:"+y+";font-size:"+u+";color:"+y+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return w+="position:"+((g||a)&&d?"fixed;":"absolute;
15"),(g||a||!d)&&(w+=(i===R?t0:t1)+":"+(o+parseFloat(h))+"px;"),s&&(w+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),f._isStart=m,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=w,f.innerText=e||0===e?t+"-"+e:t,v.children[0]?v.insertBefore(f,v.children[0]):v.appendChild(f),f._offset=f["offset"+i.op.d2],em(f,0,i,m),f},em=function(t,e,r,i){var n={display:"block"},o=r[i?"os2":"p2"],s=r[i?"p2":"os2"];t._isFlipped=i,n[r.a+"Percent"]=i?-100:0,n[r.a]=i?"1px":0,n["border"+o+t7]=1,n["border"+s+t7]=0,n[r.p]=e+"px",B.set(t,n)},ey=[],ew={},ex=function(){return tP()-tk>34&&(t_||(t_=requestAnimationFrame(eX)))},eb=function(){th&&th.isPressed&&!(th.startX>j.clientWidth)||(w.cache++,th?t_||(t_=requestAnimationFrame(eX)):eX(),tk||eM("scrollStart"),tk=tP())},eS=function(){td=U.innerWidth,tf=U.innerHeight},e_=function(t){w.cache++,(!0===t||!te&&!tu&&!q.fullscreenElement&&!q.webkitFullscreenElement&&(!tp||td!==U.innerWidth||Math.abs(U.innerHeight-tf)>.25*U.innerHeight))&&$.restart(!0)},eE={},eT=[],eO=function t(){return eu(e2,"scrollEnd",t)||eY(!0)},eM=function(t){return eE[t]&&eE[t].map(function(t){return t()})||eT},eP=[],eC=function(t){for(var e=0;e<eP.length;e+=5)(!t||eP[e+4]&&eP[e+4].query===t)&&(eP[e].style.cssText=eP[e+1],eP[e].getBBox&&eP[e].setAttribute("transform",eP[e+2]||""),eP[e+3].uncache=1)},ek=function(){return w.forEach(function(t){return tG(t)&&++t.cacheID&&(t.rec=t())})},ez=function(t,e){var r;for(tn=0;tn<ey.length;tn++)(r=ey[tn])&&(!e||r._ctx===e)&&(t?r.kill(1):r.revert(!0,!0));tx=!0,e&&eC(e),e||eM("revert")},eA=function(t,e){w.cache++,(e||!tE)&&w.forEach(function(t){return tG(t)&&t.cacheID++&&(t.rec=0)}),tq(t)&&(U.history.scrollRestoration=tm=t)},eR=0,eN=function(){if(tT!==eR){var t=tT=eR;requestAnimationFrame(function(){return t===eR&&eY(!0)})}},eD=function(){j.appendChild(ty),tw=!th&&ty.offsetHeight||U.innerHeight,j.removeChild(ty)},eL=function(t){return K(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},eY=function(t,e){if(G=q.documentElement,j=q.body,Z=[U,q,G,j],tk&&!t&&!tx){ec(e2,"scrollEnd",eO);return}eD(),tE=e2.isRefreshing=!0,tx||ek();var r=eM("refreshInit");
vendor: 8,966 bytes, line 15
15tl&&e2.sort(),e||ez(),w.forEach(function(t){tG(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),ey.slice(0).forEach(function(t){return t.refresh()}),tx=!1,ey.forEach(function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}}),tb=1,eL(!0),ey.forEach(function(t){var e=tV(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,i=t._startClamp&&t.start>=e;(r||i)&&t.setPositions(i?e-1:t.start,r?Math.max(i?e:t.start+1,e):t.end,!0)}),eL(!1),tb=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),w.forEach(function(t){tG(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),eA(tm,1),$.pause(),eR++,tE=2,eX(2),ey.forEach(function(t){return tG(t.vars.onRefresh)&&t.vars.onRefresh(t)}),tE=e2.isRefreshing=!1,eM("refresh")},eF=0,eW=1,eX=function(t){if(2===t||!tE&&!tx){e2.isUpdating=!0,tO&&tO.update(0);var e=ey.length,r=tP(),i=r-tC>=50,n=e&&ey[0].scroll();if(eW=eF>n?-1:1,tE||(eF=n),i&&(tk&&!tr&&r-tk>200&&(tk=0,eM("scrollEnd")),J=tC,tC=r),eW<0){for(tn=e;tn-- >0;)ey[tn]&&ey[tn].update(0,i);eW=1}else for(tn=0;tn<e;tn++)ey[tn]&&ey[tn].update(0,i);e2.isUpdating=!1}t_=0},eH=[tJ,"top",t1,t0,t9+t6,t9+t5,t9+"Top",t9+t4,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],eI=eH.concat([t2,t3,"boxSizing","max"+t7,"max"+et,"position",t9,t8,t8+"Top",t8+t5,t8+t6,t8+t4]),eB=function(t,e,r){eq(r);var i=t._gsap;if(i.spacerIsNative)eq(i.spacerState);else if(t._gsap.swappedIn){var n=e.parentNode;n&&(n.insertBefore(t,e),n.removeChild(e))}t._gsap.swappedIn=!1},eV=function(t,e,r,i){if(!t._gsap.swappedIn){for(var n,o=eH.length,s=e.style,a=t.style;o--;)s[n=eH[o]]=r[n];s.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(s.display="inline-block"),a[t1]=a[t0]="auto",s.flexBasis=r.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[t2]=eo(t,A)+"px",s[t3]=eo(t,R)+"px",s[t8]=a[t9]=a.top=a[tJ]="0",eq(i),a[t2]=a["max"+t7]=r[t2],a[t3]=a["max"+et]=r[t3],a[t8]=r[t8],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},eU=/([A-Z])/g,eq=function(t){if(t){var e,r,i=t.t.style,n=t.length,o=0;for((t.t._gsap||B.core.getCache(t.t)).uncache=1;o<n;o+=2)r=t[o+1],e=t[o],r?i[e]=r:i[e]&&i.removeProperty(e.replace(eU,"-$1").toLowerCase())}},eG=function(t){for(var e=eI.length,r=t.style,i=[],n=0;n<e;n++)i.push(eI[n],r[eI[n]]);return i.t=t,i},ej=function(t,e,r){for(var i,n=[],o=t.length,s=r?8:0;s<o;s+=2)i=t[s],n.push(i,i in e?e[i]:t[s+1]);return n.t=t.t,n},eZ={left:0,top:0},e$=function(t,e,r,i,n,o,s,a,l,c,u,h,p,f){tG(t)&&(t=t(a)),tq(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?eg("0"+t.substr(3),r):0));var d,g,v,m=p?p.time():0;if(p&&p.seek(0),isNaN(t)||(t=+t),tj(t))p&&(t=B.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,h,t)),s&&em(s,r,i,!0);else{tG(e)&&(e=e(a));var y,w,x,b,S=(t||"0").split(" ");(y=en(v=N(e,a)||j)||{}).left||y.top||"none"!==ee(v).display||(b=v.style.display,v.style.display="block",y=en(v),b?v.style.display=b:v.style.removeProperty("display")),w=eg(S[0],y[i.d]),x=eg(S[1]||"0",r),t=y[i.p]-l[i.p]-c+w+n-x,s&&em(s,x,i,r-x<20||s._isStart&&x>20),r-=r-x}if(f&&(a[f]=t||-.001,t<0&&(t=0)),o){var _=t+r,E=o._isStart;d="scroll"+i.d2,em(o,_,i,E&&_>20||!E&&(u?Math.max(j[d],G[d]):o.parentNode[d])<=_+1),u&&(l=en(s),u&&(o.style[i.op.p]=l[i.op.p]-i.op.m-o._offset+"px"))}return p&&v&&(d=en(v),p.seek(h),g=en(v),p._caScrollDist=d[i.p]-g[i.p],t=t/p._caScrollDist*h),p&&p.seek(m),p?t:Math.round(t)},eK=/(webkit|moz|length|cssText|inset)/i,eQ=function(t,e,r,i){if(t.parentNode!==e){var n,o,s=t.style;if(e===j){for(n in t._stOrig=s.cssText,o=ee(t))+n||eK.test(n)||!o[n]||"string"!=typeof s[n]||"0"===n||(s[n]=o[n]);s.top=r,s.left=i}else s.cssText=t._stOrig;B.core.getCache(t).uncache=1,e.appendChild(t)}},eJ=function(t,e,r){var i=e,n=i;return function(e){var o=Math.round(t());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(e=o,r&&r()),n=i,i=Math.round(e)}},e0=function(t,e,r){var i={};i[e.p]="+="+r,B.set(t,i)},e1=function(t,e){var r=L(t,e),i="_scroll"+e.p2,n=function e(n,o,s,a,l){var c=e.tween,u=o.onComplete,h={};s=s||r();var p=eJ(r,s,function(){c.kill(),e.tween=0});return l=a&&l||0,a=a||n-s,c&&c.kill(),o[i]=n,o.inherit=!1,o.modifiers=h,h[i]=function(){return p(s+a*c.ratio+l*c.ratio*c.ratio)},o.onUpdate=function(){w.cache++,e.tween&&eX()},o.onComplete=function(){e.tween=0,u&&u.call(c)},c=e.tween=B.to(t,o)};return t[i]=r,r.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},ec(t,"wheel",r.wheelHandler),e2.isTouch&&ec(t,"touchmove",r.wheelHandler),n},e2=function(){function t(e,r){V||t.register(B)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),tv(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!tz){this.update=this.refresh=this.kill=tL;return}var i,n,o,s,a,l,c,u,h,p,f,d,g,v,m,y,b,S,_,T,O,M,P,C,k,z,D,Y,F,W,X,H,I,V,Z,$,tt,ti,to,ts,ta,tu=e=ei(tq(e)||tj(e)||e.nodeType?{trigger:e}:e,ef),th=tu.onUpdate,tp=tu.toggleClass,tf=tu.id,td=tu.onToggle,tg=tu.onRefresh,tv=tu.scrub,tm=tu.trigger,ty=tu.pin,tw=tu.pinSpacing,tx=tu.invalidateOnRefresh,t_=tu.anticipatePin,tT=tu.onScrubComplete,tC=tu.onSnapComplete,tN=tu.once,tD=tu.snap,tF=tu.pinReparent,tW=tu.pinSpacer,tH=tu.containerAnimation,tU=tu.fastScrollEnd,tJ=tu.preventOverlaps,t0=e.horizontal||e.containerAnimation&&!1!==e.horizontal?A:R,t1=!tv&&0!==tv,el=N(e.scroller||U),eh=B.core.getCache(el),ed=tX(el),em=("pinType"in e?e.pinType:E(el,"pinType")||ed&&"fixed")==="fixed",ex=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],eS=t1&&e.toggleActions.split(" "),eE="markers"in e?e.markers:ef.markers,eT=ed?0:parseFloat(ee(el)["border"+t0.p2+t7])||0,eM=this,eP=e.onRefreshInit&&function(){return e.onRefreshInit(eM)},eC=tB(el,ed,t0),ek=!ed||~x.indexOf(el)?tI(el):function(){return eZ},ez=0,eA=0,eR=0,eD=L(el,t0);if(eM._startClamp=eM._endClamp=!1,eM._dir=t0,t_*=45,eM.scroller=el,eM.scroll=tH?tH.time.bind(tH):eD,l=eD(),eM.vars=e,r=r||e.animation,"refreshPriority"in e&&(tl=1,-9999===e.refreshPriority&&(tO=eM)),eh.tweenScroll=eh.tweenScroll||{top:e1(el,R),left:e1(el,A)},eM.tweenTo=o=eh.tweenScroll[t0.p],eM.scrubDuration=function(t){(Z=tj(t)&&t)?V?V.duration(t):V=B.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Z,paused:!0,onComplete:function(){return tT&&tT(eM)}}):(V&&V.progress(1).kill(),V=0)},r&&(r.vars.lazy=!1,r._initted&&!eM.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),eM.animation=r.pause(),r.scrollTrigger=eM,eM.scrubDuration(tv),H=0,tf||(tf=r.vars.id)),tD&&((!tZ(tD)||tD.push)&&(tD={snapTo:tD}),"scrollBehavior"in j.style&&B.set(ed?[j,G]:el,{scrollBehavior:"auto"}),w.forEach(function(t){return tG(t)&&t.target===(ed?q.scrollingElement||G:el)&&(t.smooth=!1)}),a=tG(tD.snapTo)?tD.snapTo:"labels"===tD.snapTo?(i=r,function(t){return B.utils.snap(es(i),t)}):"labelsDirectional"===tD.snapTo?(n=r,function(t,e){return ea(es(n))(t,e.direction)}):!1!==tD.directional?function(t,e){return ea(tD.snapTo)(t,tP()-eA<500?0:e.direction)}:B.utils.snap(tD.snapTo),$=tZ($=tD.duration||{min:.1,max:2})?Q($.min,$.max):Q($,$),tt=B.delayedCall(tD.delay||Z/2||.1,function(){var t=eD(),e=tP()-eA<500,i=o.tween;if((e||10>Math.abs(eM.getVelocity()))&&!i&&!tr&&ez!==t){var n,s,l=(t-u)/y,c=r&&!t1?r.totalProgress():l,p=e?0:(c-I)/(tP()-J)*1e3||0,f=B.utils.clamp(-l,1-l,tQ(p/2)*p/.185),d=l+(!1===tD.inertia?0:f),g=tD,v=g.onStart,m=g.onInterrupt,w=g.onComplete;if(tj(n=a(d,eM))||(n=d),s=Math.max(0,Math.round(u+n*y)),t<=h&&t>=u&&s!==t){if(i&&!i._initted&&i.data<=tQ(s-t))return;!1===tD.inertia&&(f=n-l),o(s,{duration:$(tQ(.185*Math.max(tQ(d-c),tQ(n-c))/p/.05||0)),ease:tD.ease||"power3",data:tQ(s-t),onInterrupt:function(){return tt.restart(!0)&&m&&tK(eM,m)},onComplete:function(){eM.update(),ez=eD(),r&&!t1&&(V?V.resetTo("totalProgress",n,r._tTime/r._tDur):r.progress(n)),H=I=r&&!t1?r.totalProgress():eM.progress,tC&&tC(eM),w&&tK(eM,w)}},t,f*y,s-t-f*y),v&&tK(eM,v,o.tween)}}else eM.isActive&&ez!==t&&tt.restart(!0)}).pause()),tf&&(ew[tf]=eM),(ta=(tm=eM.trigger=N(tm||!0!==ty&&ty))&&tm._gsap&&tm._gsap.stRevert)&&(ta=ta(eM)),ty=!0===ty?tm:N(ty),tq(tp)&&(tp={targets:tm,className:tp}),ty&&(!1===tw||tw===t9||(tw=(!!tw||!ty.parentNode||!ty.parentNode.style||"flex"!==ee(ty.parentNode).display)&&t8),eM.pin=ty,(s=B.core.getCache(ty)).spacer?b=s.pinState:(tW&&((tW=N(tW))&&!tW.nodeType&&(tW=tW.current||tW.nativeElement),s.spacerIsNative=!!tW,tW&&(s.spacerState=eG(tW))),s.spacer=T=tW||q.createElement("div"),T.classList.add("pin-spacer"),tf&&T.classList.add("pin-spacer-"+tf),s.pinState=b=eG(ty)),!1!==e.force3D&&B.set(ty,{force3D:!0}),eM.spacer=T=s.spacer,z=(X=ee(ty))[tw+t0.os2],M=B.getProperty(ty),P=B.quickSetter(ty,t0.a,"px"),eV(ty,T,X),_=eG(ty)),eE){v=tZ(eE)?ei(eE,ep):ep,d=ev
15("scroller-start",tf,el,t0,v,0),g=ev("scroller-end",tf,el,t0,v,0,d),O=d["offset"+t0.op.d2];var eL=N(E(el,"content")||el);p=this.markerStart=ev("start",tf,eL,t0,v,O,0,tH),f=this.markerEnd=ev("end",tf,eL,t0,v,O,0,tH),tH&&(ts=B.quickSetter([p,f],t0.a,"px")),em||x.length&&!0===E(el,"fixedMarkers")||(er(ed?j:el),B.set([d,g],{force3D:!0}),Y=B.quickSetter(d,t0.a,"px"),W=B.quickSetter(g,t0.a,"px"))}if(tH){var eY=tH.vars.onUpdate,eF=tH.vars.onUpdateParams;tH.eventCallback("onUpdate",function(){eM.update(0,0,1),eY&&eY.apply(tH,eF||[])})}if(eM.previous=function(){return ey[ey.indexOf(eM)-1]},eM.next=function(){return ey[ey.indexOf(eM)+1]},eM.revert=function(t,e){if(!e)return eM.kill(!0);var i=!1!==t||!eM.enabled,n=te;i!==eM.isReverted&&(i&&(ti=Math.max(eD(),eM.scroll.rec||0),eR=eM.progress,to=r&&r.progress()),p&&[p,f,d,g].forEach(function(t){return t.style.display=i?"none":"block"}),i&&(te=eM,eM.update(i)),!ty||tF&&eM.isActive||(i?eB(ty,T,b):eV(ty,T,ee(ty),D)),i||eM.update(i),te=n,eM.isReverted=i)},eM.refresh=function(i,n,s,a){if(!te&&eM.enabled||n){if(ty&&i&&tk){ec(t,"scrollEnd",eO);return}!tE&&eP&&eP(eM),te=eM,o.tween&&!s&&(o.tween.kill(),o.tween=0),V&&V.pause(),tx&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(t){return t.vars.immediateRender&&t.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),eM.isReverted||eM.revert(!0,!0),eM._subPinOffset=!1;var v,w,x,E,O,P,z,Y,W,X,H,I,U,Z=eC(),$=ek(),K=tH?tH.duration():tV(el,t0),Q=y<=.01||!y,J=0,tr=a||0,tn=tZ(s)?s.end:e.end,ts=e.endTrigger||tm,ta=tZ(s)?s.start:e.start||(0!==e.start&&tm?ty?"0 0":"0 100%":0),tl=eM.pinnedContainer=e.pinnedContainer&&N(e.pinnedContainer,eM),tu=tm&&Math.max(0,ey.indexOf(eM))||0,th=tu;for(eE&&tZ(s)&&(I=B.getProperty(d,t0.p),U=B.getProperty(g,t0.p));th-- >0;)(P=ey[th]).end||P.refresh(0,1)||(te=eM),(z=P.pin)&&(z===tm||z===ty||z===tl)&&!P.isReverted&&(X||(X=[]),X.unshift(P),P.revert(!0,!0)),P!==ey[th]&&(tu--,th--);for(tG(ta)&&(ta=ta(eM)),u=e$(ta=tA(ta,"start",eM),tm,Z,t0,eD(),p,d,eM,$,eT,em,K,tH,eM._startClamp&&"_startClamp")||(ty?-.001:0),tG(tn)&&(tn=tn(eM)),tq(tn)&&!tn.indexOf("+=")&&(~tn.indexOf(" ")?tn=(tq(ta)?ta.split(" ")[0]:"")+tn:(J=eg(tn.substr(2),Z),tn=tq(ta)?ta:(tH?B.utils.mapRange(0,tH.duration(),tH.scrollTrigger.start,tH.scrollTrigger.end,u):u)+J,ts=tm)),tn=tA(tn,"end",eM),h=Math.max(u,e$(tn||(ts?"100% 0":K),ts,Z,t0,eD()+J,f,g,eM,$,eT,em,K,tH,eM._endClamp&&"_endClamp"))||-.001,J=0,th=tu;th--;)(z=(P=ey[th]||{}).pin)&&P.start-P._pinPush<=u&&!tH&&P.end>0&&(v=P.end-(eM._startClamp?Math.max(0,P.start):P.start),(z===tm&&P.start-P._pinPush<u||z===tl)&&isNaN(ta)&&(J+=v*(1-P.progress)),z===ty&&(tr+=v));if(u+=J,h+=J,eM._startClamp&&(eM._startClamp+=J),eM._endClamp&&!tE&&(eM._endClamp=h||-.001,h=Math.min(h,tV(el,t0))),y=h-u||(u-=.01)&&.001,Q&&(eR=B.utils.clamp(0,1,B.utils.normalize(u,h,ti))),eM._pinPush=tr,p&&J&&((v={})[t0.a]="+="+J,tl&&(v[t0.p]="-="+eD()),B.set([p,f],v)),ty&&!(tb&&eM.end>=tV(el,t0)))v=ee(ty),E=t0===R,x=eD(),C=parseFloat(M(t0.a))+tr,!K&&h>1&&(H={style:H=(ed?q.scrollingElement||G:el).style,value:H["overflow"+t0.a.toUpperCase()]},ed&&"scroll"!==ee(j)["overflow"+t0.a.toUpperCase()]&&(H.style["overflow"+t0.a.toUpperCase()]="scroll")),eV(ty,T,v),_=eG(ty),w=en(ty,!0),Y=em&&L(el,E?A:R)(),tw?((D=[tw+t0.os2,y+tr+"px"]).t=T,(th=tw===t8?eo(ty,t0)+y+tr:0)&&(D.push(t0.d,th+"px"),"auto"!==T.style.flexBasis&&(T.style.flexBasis=th+"px")),eq(D),tl&&ey.forEach(function(t){t.pin===tl&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),em&&eD(ti)):(th=eo(ty,t0))&&"auto"!==T.style.flexBasis&&(T.style.flexBasis=th+"px"),em&&((O={top:w.top+(E?x-u:Y)+"px",left:w.left+(E?Y:x-u)+"px",boxSizing:"border-box",position:"fixed"})[t2]=O["max"+t7]=Math.ceil(w.width)+"px",O[t3]=O["max"+et]=Math.ceil(w.height)+"px",O[t9]=O[t9+"Top"]=O[t9+t5]=O[t9+t6]=O[t9+t4]="0",O[t8]=v[t8],O[t8+"Top"]=v[t8+"Top"],O[t8+t5]=v[t8+t5],O[t8+t6]=v[t8+t6],O[t8+t4]=v[t8+t4],S=ej(b,O,tF),tE&&eD(0)),r?(W=r._initted,tc(1),r.render(r.duration(),!0,!0),k=M(t0.a)-C+y+tr,F=Math.abs(y-k)>1,em&&F&&S.splice(S.length-2,2),r.render(0,!0,!0),W||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),tc(0)):k=y,H&&(H.value?H.style["overflow"+t0.a.toUpperCase()]=H.value:H.style.removeProperty("overflow-"+t0.a));
vendor: 4,221 bytes, line 15
15else if(tm&&eD()&&!tH)for(w=tm.parentNode;w&&w!==j;)w._pinOffset&&(u-=w._pinOffset,h-=w._pinOffset),w=w.parentNode;X&&X.forEach(function(t){return t.revert(!1,!0)}),eM.start=u,eM.end=h,l=c=tE?ti:eD(),tH||tE||(l<ti&&eD(ti),eM.scroll.rec=0),eM.revert(!1,!0),eA=tP(),tt&&(ez=-1,tt.restart(!0)),te=0,r&&t1&&(r._initted||to)&&r.progress()!==to&&r.progress(to||0,!0).render(r.time(),!0,!0),(Q||eR!==eM.progress||tH||tx||r&&!r._initted)&&(r&&!t1&&(r._initted||eR||!1!==r.vars.immediateRender)&&r.totalProgress(tH&&u<-.001&&!eR?B.utils.normalize(u,h,0):eR,!0),eM.progress=Q||(l-u)/y===eR?0:eR),ty&&tw&&(T._pinOffset=Math.round(eM.progress*k)),V&&V.invalidate(),isNaN(I)||(I-=B.getProperty(d,t0.p),U-=B.getProperty(g,t0.p),e0(d,t0,I),e0(p,t0,I-(a||0)),e0(g,t0,U),e0(f,t0,U-(a||0))),Q&&!tE&&eM.update(),!tg||tE||m||(m=!0,tg(eM),m=!1)}},eM.getVelocity=function(){return(eD()-c)/(tP()-J)*1e3||0},eM.endAnimation=function(){t$(eM.callbackAnimation),r&&(V?V.progress(1):r.paused()?t1||t$(r,eM.direction<0,1):t$(r,r.reversed()))},eM.labelToScroll=function(t){return r&&r.labels&&(u||eM.refresh()||u)+r.labels[t]/r.duration()*y||0},eM.getTrailing=function(t){var e=ey.indexOf(eM),r=eM.direction>0?ey.slice(0,e).reverse():ey.slice(e+1);return(tq(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return eM.direction>0?t.end<=u:t.start>=h})},eM.update=function(t,e,i){if(!tH||i||t){var n,s,a,p,f,g,v,m=!0===tE?ti:eM.scroll(),w=t?0:(m-u)/y,x=w<0?0:w>1?1:w||0,b=eM.progress;if(e&&(c=l,l=tH?eD():m,tD&&(I=H,H=r&&!t1?r.totalProgress():x)),t_&&ty&&!te&&!tM&&tk&&(!x&&u<m+(m-c)/(tP()-J)*t_?x=1e-4:1===x&&h>m+(m-c)/(tP()-J)*t_&&(x=.9999)),x!==b&&eM.enabled){if(p=(f=(n=eM.isActive=!!x&&x<1)!=(!!b&&b<1))||!!x!=!!b,eM.direction=x>b?1:-1,eM.progress=x,p&&!te&&(s=x&&!b?0:1===x?1:1===b?2:3,t1&&(a=!f&&"none"!==eS[s+1]&&eS[s+1]||eS[s],v=r&&("complete"===a||"reset"===a||a in r))),tJ&&(f||v)&&(v||tv||!r)&&(tG(tJ)?tJ(eM):eM.getTrailing(tJ).forEach(function(t){return t.endAnimation()})),!t1&&(!V||te||tM?r&&r.totalProgress(x,!!(te&&(eA||t))):(V._dp._time-V._start!==V._time&&V.render(V._dp._time-V._start),V.resetTo?V.resetTo("totalProgress",x,r._tTime/r._tDur):(V.vars.totalProgress=x,V.invalidate().restart()))),ty){if(t&&tw&&(T.style[tw+t0.os2]=z),em){if(p){if(g=!t&&x>b&&h+1>m&&m+1>=tV(el,t0),tF){if(!t&&(n||g)){var E=en(ty,!0),O=m-u;eQ(ty,j,E.top+(t0===R?O:0)+"px",E.left+(t0===R?0:O)+"px")}else eQ(ty,T)}eq(n||g?S:_),F&&x<1&&n||P(C+(1!==x||g?0:k))}}else P(tY(C+k*x))}!tD||o.tween||te||tM||tt.restart(!0),tp&&(f||tN&&x&&(x<1||!tS))&&K(tp.targets).forEach(function(t){return t.classList[n||tN?"add":"remove"](tp.className)}),!th||t1||t||th(eM),p&&!te?(t1&&(v&&("complete"===a?r.pause().totalProgress(1):"reset"===a?r.restart(!0).pause():"restart"===a?r.restart(!0):r[a]()),th&&th(eM)),(f||!tS)&&(td&&f&&tK(eM,td),ex[s]&&tK(eM,ex[s]),tN&&(1===x?eM.kill(!1,1):ex[s]=0),!f&&ex[s=1===x?1:3]&&tK(eM,ex[s])),tU&&!n&&Math.abs(eM.getVelocity())>(tj(tU)?tU:2500)&&(t$(eM.callbackAnimation),V?V.progress(1):t$(r,"reverse"===a?1:!x,1))):t1&&th&&!te&&th(eM)}if(W){var M=tH?m/tH.duration()*(tH._caScrollDist||0):m;Y(M+(d._isFlipped?1:0)),W(M)}ts&&ts(-m/tH.duration()*(tH._caScrollDist||0))}},eM.enable=function(e,r){eM.enabled||(eM.enabled=!0,ec(el,"resize",e_),ed||ec(el,"scroll",eb),eP&&ec(t,"refreshInit",eP),!1!==e&&(eM.progress=eR=0,l=c=ez=eD()),!1!==r&&eM.refresh())},eM.getTween=function(t){return t&&o?o.tween:V},eM.setPositions=function(t,e,r,i){if(tH){var n=tH.scrollTrigger,o=tH.duration(),s=n.end-n.start;t=n.start+s*t/o,e=n.start+s*e/o}eM.refresh(!1,!1,{start:tR(t,r&&!!eM._startClamp),end:tR(e,r&&!!eM._endClamp)},i),eM.update()},eM.adjustPinSpacing=function(t){if(D&&t){var e=D.indexOf(t0.d)+1;D[e]=parseFloat(D[e])+t+"px",D[1]=parseFloat(D[1])+t+"px",eq(D)}},eM.disable=function(e,r){if(!1!==e&&eM.revert(!0,!0),eM.enabled&&(eM.enabled=eM.isActive=!1,r||V&&V.pause(),ti=0,s&&(s.uncache=1),eP&&eu(t,"refreshInit",eP),tt&&(tt.pause(),o.tween&&o.tween.kill()&&(o.tween=0)),!ed)){for(var i=ey.length;i--;)if(ey[i].scroller===el&&ey[i]!==eM)return;eu(el,"resize",e_),ed||eu(el,"scroll",eb)}},eM.kill=function(t,i){eM.disable(t,i),V&&!i&&V.kill(),tf&&delete ew[tf];var n=ey.indexOf(eM);n>=0&&ey.splice(n,1),n===tn&&eW>
vendor: 3,613 bytes, line 15
150&&tn--,n=0,ey.forEach(function(t){return t.scroller===eM.scroller&&(n=1)}),n||tE||(eM.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),i||r.kill()),p&&[p,f,d,g].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),tO===eM&&(tO=0),ty&&(s&&(s.uncache=1),n=0,ey.forEach(function(t){return t.pin===ty&&n++}),n||(s.spacer=0)),e.onKill&&e.onKill(eM)},ey.push(eM),eM.enable(!1,!1),ta&&ta(eM),r&&r.add&&!y){var eX=eM.update;eM.update=function(){eM.update=eX,w.cache++,u||h||eM.refresh()},B.delayedCall(.01,eM.update),y=.01,u=h=0}else eM.refresh();ty&&eN()},t.register=function(e){return V||(B=e||tW(),tF()&&window.document&&t.enable(),V=tz),V},t.defaults=function(t){if(t)for(var e in t)ef[e]=t[e];return ef},t.disable=function(t,e){tz=0,ey.forEach(function(r){return r[e?"kill":"disable"](t)}),eu(U,"wheel",eb),eu(q,"scroll",eb),clearInterval(tt),eu(q,"touchcancel",tL),eu(j,"touchstart",tL),el(eu,q,"pointerdown,touchstart,mousedown",tN),el(eu,q,"pointerup,touchend,mouseup",tD),$.kill(),tU(eu);for(var r=0;r<w.length;r+=3)eh(eu,w[r],w[r+1]),eh(eu,w[r],w[r+2])},t.enable=function(){if(U=window,G=(q=document).documentElement,j=q.body,B){if(K=B.utils.toArray,Q=B.utils.clamp,tv=B.core.context||tL,tc=B.core.suppressOverwrites||tL,tm=U.history.scrollRestoration||"auto",eF=U.pageYOffset||0,B.core.globals("ScrollTrigger",t),j){tz=1,(ty=document.createElement("div")).style.height="100vh",ty.style.position="absolute",eD(),function t(){return tz&&requestAnimationFrame(t)}(),I.register(B),t.isTouch=I.isTouch,tg=I.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),tp=1===I.isTouch,ec(U,"wheel",eb),Z=[U,q,G,j],B.matchMedia?(t.matchMedia=function(t){var e,r=B.matchMedia();for(e in t)r.add(e,t[e]);return r},B.addEventListener("matchMediaInit",function(){ek(),ez()}),B.addEventListener("matchMediaRevert",function(){return eC()}),B.addEventListener("matchMedia",function(){eY(0,1),eM("matchMedia")}),B.matchMedia().add("(orientation: portrait)",function(){return eS(),eS})):console.warn("Requires GSAP 3.11.0 or later"),eS(),ec(q,"scroll",eb);var e,r,i=j.hasAttribute("style"),n=j.style,o=n.borderTopStyle,s=B.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",e=en(j),R.m=Math.round(e.top+R.sc())||0,A.m=Math.round(e.left+A.sc())||0,o?n.borderTopStyle=o:n.removeProperty("border-top-style"),i||(j.setAttribute("style",""),j.removeAttribute("style")),tt=setInterval(ex,250),B.delayedCall(.5,function(){return tM=0}),ec(q,"touchcancel",tL),ec(j,"touchstart",tL),el(ec,q,"pointerdown,touchstart,mousedown",tN),el(ec,q,"pointerup,touchend,mouseup",tD),ti=B.utils.checkPrefix("transform"),eI.push(ti),V=tP(),$=B.delayedCall(.2,eY).pause(),ta=[q,"visibilitychange",function(){var t=U.innerWidth,e=U.innerHeight;q.hidden?(to=t,ts=e):(to!==t||ts!==e)&&e_()},q,"DOMContentLoaded",eY,U,"load",eY,U,"resize",e_],tU(ec),ey.forEach(function(t){return t.enable(0,1)}),r=0;r<w.length;r+=3)eh(eu,w[r],w[r+1]),eh(eu,w[r],w[r+2])}else q&&q.addEventListener("DOMContentLoaded",function e(){t.enable(),q.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(tS=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(tt)||(tt=r)&&setInterval(ex,r),"ignoreMobileResize"in e&&(tp=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(tU(eu)||tU(ec,e.autoRefreshEvents||"none"),tu=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=N(t),i=w.indexOf(r),n=tX(r);~i&&w.splice(i,n?6:2),e&&(n?x.unshift(U,e,j,e,G,e):x.unshift(r,e))}
vendor: 8,930 bytes, line 15
15,t.clearMatchMedia=function(t){ey.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var i=(tq(t)?N(t):t).getBoundingClientRect(),n=i[r?t2:t3]*e||0;return r?i.right-n>0&&i.left+n<U.innerWidth:i.bottom-n>0&&i.top+n<U.innerHeight},t.positionInViewport=function(t,e,r){tq(t)&&(t=N(t));var i=t.getBoundingClientRect(),n=i[r?t2:t3],o=null==e?n/2:e in ed?ed[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0;return r?(i.left+o)/U.innerWidth:(i.top+o)/U.innerHeight},t.killAll=function(t){if(ey.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=eE.killAll||[];eE={},e.forEach(function(t){return t()})}},t}();e2.version="3.15.0",e2.saveStyles=function(t){return t?K(t).forEach(function(t){if(t&&t.style){var e=eP.indexOf(t);e>=0&&eP.splice(e,5),eP.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),B.core.getCache(t),tv())}}):eP},e2.revert=function(t,e){return ez(!t,e)},e2.create=function(t,e){return new e2(t,e)},e2.refresh=function(t){return t?e_(!0):(V||e2.register())&&eY(!0)},e2.update=function(t){return++w.cache&&eX(!0===t?2:0)},e2.clearScrollMemory=eA,e2.maxScroll=function(t,e){return tV(t,e?A:R)},e2.getScrollFunc=function(t,e){return L(N(t),e?A:R)},e2.getById=function(t){return ew[t]},e2.getAll=function(){return ey.filter(function(t){return"ScrollSmoother"!==t.vars.id})},e2.isScrolling=function(){return!!tk},e2.snapDirectional=ea,e2.addEventListener=function(t,e){var r=eE[t]||(eE[t]=[]);~r.indexOf(e)||r.push(e)},e2.removeEventListener=function(t,e){var r=eE[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},e2.batch=function(t,e){var r,i=[],n={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var r=[],i=[],n=B.delayedCall(o,function(){e(r,i),r=[],i=[]}).pause();return function(t){r.length||n.restart(!0),r.push(t.trigger),i.push(t),s<=r.length&&n.progress(1)}};for(r in e)n[r]="on"===r.substr(0,2)&&tG(e[r])&&"onRefreshInit"!==r?a(r,e[r]):e[r];return tG(s)&&(s=s(),ec(e2,"refresh",function(){return s=e.batchMax()})),K(t).forEach(function(t){var e={};for(r in n)e[r]=n[r];e.trigger=t,i.push(e2.create(e))}),i};var e3,e5=function(t,e,r,i){return e>i?t(i):e<0&&t(0),r>i?(i-e)/(r-e):r<0?e/(e-r):1},e4=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(I.isTouch?" pinch-zoom":""):"none",e===G&&t(j,r)},e6={auto:1,scroll:1},e8=function(t){var e,r=t.event,i=t.target,n=t.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,s=o._gsap||B.core.getCache(o),a=tP();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==j&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!(e6[(e=ee(o)).overflowY]||e6[e.overflowX]));)o=o.parentNode;s._isScroll=o&&o!==i&&!tX(o)&&(e6[(e=ee(o)).overflowY]||e6[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===n)&&(r.stopPropagation(),r._gsapAllow=!0)},e9=function(t,e,r,i){return I.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&e8,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&ec(q,I.eventTypes[0],rt,!1,!0)},onDisable:function(){return eu(q,I.eventTypes[0],rt,!0)}})},e7=/(input|label|select|textarea)/i,rt=function(t){var e=e7.test(t.target.tagName);(e||e3)&&(t._gsapAllow=!0,e3=e)},re=function(t){tZ(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,i,n,o,s,a,l,c=t,u=c.normalizeScrollX,h=c.momentum,p=c.allowNestedScroll,f=c.onRelease,d=N(t.target)||G,g=B.core.globals().ScrollSmoother,v=g&&g.get(),m=tg&&(t.content&&N(t.content)||v&&!1!==t.content&&!v.smooth()&&v.content()),y=L(d,R),x=L(d,A),b=1,S=(I.isTouch&&U.visualViewport?U.visualViewport.scale*U.visualViewport.width:U.outerWidth)/U.innerWidth,_=0,E=tG(h)?function(){return h(e)}:function(){return h||2.8},T=e9(d,t.type,!0,p),O=function(){return n=!1},M=tL,P=tL,C=function(){r=tV(d,R),P=Q(tg?1:0,r),u&&(M=Q(0,tV(d,A))),i=eR},k=function(){m._gsap.y=tY(parseFloat(m._gsap.y)+y.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)",y.offset=y.cacheID=0},z=function(){if(n){requestAnimationFrame(O);var t=tY(e.deltaY/2),r=P(y.v-t);if(m&&r!==y.v+y.offset){y.offset=r-y.v;var i=tY((parseFloat(m&&m._gsap.y)||0)-y.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+i+", 0, 1)",m._gsap.y=i+"px",y.cacheID=w.cache,eX()}return!0}y.offset&&k(),n=!0},D=function(){C(),o.isActive()&&o.vars.scrollY>r&&(y()>r?o.progress(1)&&y(r):o.resetTo("scrollY",r))};return m&&B.set(m,{y:"+=0"}),t.ignoreCheck=function(t){return tg&&"touchmove"===t.type&&z(t)||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){n=!1;var t=b;b=tY((U.visualViewport&&U.visualViewport.scale||1)/S),o.pause(),t!==b&&e4(d,b>1.01||!u&&"x"),s=x(),a=y(),C(),i=eR},t.onRelease=t.onGestureStart=function(t,e){if(y.offset&&k(),e){w.cache++;var i,n,s=E();u&&(n=(i=x())+-(.05*s*t.velocityX)/.227,s*=e5(x,i,n,tV(d,A)),o.vars.scrollX=M(n)),n=(i=y())+-(.05*s*t.velocityY)/.227,s*=e5(y,i,n,tV(d,R)),o.vars.scrollY=P(n),o.invalidate().duration(s).play(.01),(tg&&o.vars.scrollY>=r||i>=r-1)&&B.to({},{onUpdate:D,duration:s})}else l.restart(!0);f&&f(t)},t.onWheel=function(){o._ts&&o.pause(),tP()-_>1e3&&(i=0,_=tP())},t.onChange=function(t,e,r,n,o){if(eR!==i&&C(),e&&u&&x(M(n[2]===e?s+(t.startX-t.x):x()+e-n[1])),r){y.offset&&k();var l=o[2]===r,c=l?a+t.startY-t.y:y()+r-o[1],h=P(c);l&&c!==h&&(a+=h-c),y(h)}(r||e)&&eX()},t.onEnable=function(){e4(d,!u&&"x"),e2.addEventListener("refresh",D),ec(U,"resize",D),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),T.enable()},t.onDisable=function(){e4(d,!0),eu(U,"resize",D),e2.removeEventListener("refresh",D),T.kill()},t.lockAxis=!1!==t.lockAxis,(e=new I(t)).iOS=tg,tg&&!y()&&y(1),tg&&B.ticker.add(tL),l=e._dc,o=B.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:eJ(y,y(),function(){return o.pause()})},onUpdate:eX,onComplete:l.vars.onComplete}),e};e2.sort=function(t){if(tG(t))return ey.sort(t);var e=U.pageYOffset||0;return e2.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+U.innerHeight}),ey.sort(t||function(t,e){return -1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},e2.observe=function(t){return new I(t)},e2.normalizeScroll=function(t){if(void 0===t)return th;if(!0===t&&th)return th.enable();if(!1===t){th&&th.kill(),th=t;return}var e=t instanceof I?t:re(t);return th&&th.target===e.target&&th.kill(),tX(e.target)&&(th=e),e},e2.core={_getVelocityProp:Y,_inputObserver:e9,_scrollers:w,_proxies:x,bridge:{ss:function(){tk||eM("scrollStart"),tk=tP()},ref:function(){return te}}},tW()&&B.registerPlugin(e2)},9582:function(t,e,r){r.d(e,{p8:function(){return tT}});var i,n,o,s,a,l,c,u,h,p,f,d=r(9244),g={},v=180/Math.PI,m=Math.PI/180,y=Math.atan2,w=/([A-Z])/g,x=/(left|right|width|margin|padding|x)/i,b=/[\s,\(]\S/,S={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},E=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)},T=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)},O=function(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},M=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},P=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},C=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},k=function(t,e,r){return t.style[e]=r},z=function(t,e,r){return t.style.setProperty(e,r)},A=function(t,e,r){return t._gsap[e]=r},R=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},N=function(t,e,r,i,n){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(n,o)},D=function(t,e,r,i,n){var o=t._gsap;o[e]=r,o.renderTransform(n,o)},L="transform",Y=L+"Origin",F=function t(e,r){var i=this,n=this.target,o=n.style,s=n._gsap;if(e in g&&o){if(this.tfm=this.tfm||{},"transform"===e)return S.transform.split(",").forEach(function(e){return t.call(i,e,r)});if(~(e=S[e]||e).indexOf(",")?e.split(",").forEach(function(t){return i.tfm[t]=tr(n,t)}):this.tfm[e]=s.x?s[e]:tr(n,e),e===Y&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(L)>=0)return;s.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Y,r,"")),e=L}(o||r)&&this.props.push(e,r,o[e])},W=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},X=function(){var t,e,r=this.props,i=this.target,n=i.style,o=i._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?i[r[t]](r[t+2]):i[r[t]]=r[t+2]:r[t+2]?n[r[t]]=r[t+2]:n.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(w,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];
15o.svg&&(o.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(t=p())&&t.isStart||n[L]||(W(n),o.zOrigin&&n[Y]&&(n[Y]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},H=function(t,e){var r={target:t,props:[],revert:X,save:F};return t._gsap||d.p8.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},I=function(t,e){var r=a.createElementNS?a.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):a.createElement(t);return r&&r.style?r:a.createElement(t)},B=function t(e,r,i){var n=getComputedStyle(e);return n[r]||n.getPropertyValue(r.replace(w,"-$1").toLowerCase())||n.getPropertyValue(r)||!i&&t(e,U(r)||r,1)||""},V="O,Moz,ms,Ms,Webkit".split(","),U=function(t,e,r){var i=(e||u).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(V[n]+t in i););return n<0?null:(3===n?"ms":n>=0?V[n]:"")+t},q=function(){"undefined"!=typeof window&&window.document&&(l=(a=window.document).documentElement,u=I("div")||{style:{}},I("div"),Y=(L=U(L))+"Origin",u.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",f=!!U("perspective"),p=d.p8.core.reverting,c=1)},G=function(t){var e,r=t.ownerSVGElement,i=I("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=t.cloneNode(!0);n.style.display="block",i.appendChild(n),l.appendChild(i);try{e=n.getBBox()}catch(t){}return i.removeChild(n),l.removeChild(i),e},j=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Z=function(t){var e,r;try{e=t.getBBox()}catch(i){e=G(t),r=1}return e&&(e.width||e.height)||r||(e=G(t)),!e||e.width||e.x||e.y?e:{x:+j(t,["x","cx","x1"])||0,y:+j(t,["y","cy","y1"])||0,width:0,height:0}},$=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Z(t))},K=function(t,e){if(e){var r,i=t.style;e in g&&e!==Y&&(e=L),i.removeProperty?(("ms"===(r=e.substr(0,2))||"webkit"===e.substr(0,6))&&(e="-"+e),i.removeProperty("--"===r?e:e.replace(w,"-$1").toLowerCase())):i.removeAttribute(e)}},Q=function(t,e,r,i,n,o){var s=new d.Fo(t._pt,e,r,0,1,o?C:P);return t._pt=s,s.b=i,s.e=n,t._props.push(r),s},J={deg:1,rad:1,turn:1},tt={grid:1,flex:1},te=function t(e,r,i,n){var o,s,l,c,h=parseFloat(i)||0,p=(i+"").trim().substr((h+"").length)||"px",f=u.style,v=x.test(r),m="svg"===e.tagName.toLowerCase(),y=(m?"client":"offset")+(v?"Width":"Height"),w="px"===n,b="%"===n;if(n===p||!h||J[n]||J[p])return h;if("px"===p||w||(h=t(e,r,i,"px")),c=e.getCTM&&$(e),(b||"%"===p)&&(g[r]||~r.indexOf("adius")))return o=c?e.getBBox()[v?"width":"height"]:e[y],(0,d.Pr)(b?h/o*100:h/100*o);if(f[v?"width":"height"]=100+(w?p:n),s="rem"!==n&&~r.indexOf("adius")||"em"===n&&e.appendChild&&!m?e:e.parentNode,c&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==a&&s.appendChild||(s=a.body),(l=s._gsap)&&b&&l.width&&v&&l.time===d.xr.time&&!l.uncache)return(0,d.Pr)(h/l.width*100);if(b&&("height"===r||"width"===r)){var S=e.style[r];e.style[r]=100+n,o=e[y],S?e.style[r]=S:K(e,r)}else(b||"%"===p)&&!tt[B(s,"display")]&&(f.position=B(e,"position")),s===e&&(f.position="static"),s.appendChild(u),o=u[y],s.removeChild(u),f.position="absolute";return v&&b&&((l=(0,d.DY)(s)).time=d.xr.time,l.width=s[y]),(0,d.Pr)(w?o*h/100:o&&h?100/o*h:0)},tr=function(t,e,r,i){var n;return c||q(),e in S&&"transform"!==e&&~(e=S[e]).indexOf(",")&&(e=e.split(",")[0]),g[e]&&"transform"!==e?(n=td(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:tg(B(t,Y))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||i||~(n+"").indexOf("calc("))&&(n=ta[e]&&ta[e](t,e,r)||B(t,e)||(0,d.Ok)(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?te(t,e,n,r)+r:n},ti=function(t,e,r,i){if(!r||"none"===r){var n=U(e,t,1),o=n&&B(t,n,1);o&&o!==r?(e=n,r=o):"borderColor"===e&&(r=B(t,"borderTopColor"))}var s,a,l,c,u,h,p,f,g,v,m,y=new d.Fo(this._pt,t.style,e,0,1,d.Ks),w=0,x=0;if(y.b=r,y.e=i,r+="","var(--"===(i+="").substring(0,6)&&(i=B(t,i.substring(4,i.indexOf(")")))),"auto"===i&&(h=t.style[e],t.style[e]=i,i=B(t,e)||i,h?t.style[e]=h:K(t,e)),s=[r,i],(0,d.kr)(s),r=s[0],i=s[1],l=r.match(d.d4)||[],(i.match(d.d4)||[]).length){for(;a=d.d4.exec(i);)p=a[0],g=i.substring(w,a.index),u?u=(u+1)%5:("rgba("===g.substr(-5)||"hsla("===g.substr(-5))&&(u=1),p!==(h=l[x++]||"")&&(c=parseFloat(h)||0,m=h.substr((c+"").length),"="===p.charAt(1)&&(p=(0,d.cy)(c,p)+m),f=parseFloat(p),v=p.substr((f+"").length),w=d.d4.lastIndex-v.length,v||(v=v||d.Fc.units[e]||m,w!==i.length||(i+=v,y.e+=v)),m!==v&&(c=te(t,e,h,v)||0),y._pt={_next:y._pt,p:g||1===x?g:",",s:c,c:f-c,m:u&&u<4||"zIndex"===e?Math.round:0});y.c=w<i.length?i.substring(w,i.length):""}
15else y.r="display"===e&&"none"===i?C:P;return d.bQ.test(i)&&(y.e=0),this._pt=y,y},tn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},to=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return("top"===r||"bottom"===r||"left"===i||"right"===i)&&(t=r,r=i,i=t),e[0]=tn[r]||r,e[1]=tn[i]||i,e.join(" ")},ts=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,o=e.t,s=o.style,a=e.u,l=o._gsap;if("all"===a||!0===a)s.cssText="",i=1;else for(n=(a=a.split(",")).length;--n>-1;)g[r=a[n]]&&(i=1,r="transformOrigin"===r?Y:L),K(o,r);i&&(K(o,L),l&&(l.svg&&o.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",td(o,1),l.uncache=1,W(s)))}},ta={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data){var o=t._pt=new d.Fo(t._pt,e,r,0,0,ts);return o.u=i,o.pr=-10,o.tween=n,t._props.push(r),1}}},tl=[1,0,0,1,0,0],tc={},tu=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},th=function(t){var e=B(t,L);return tu(e)?tl:e.substr(7).match(d.SI).map(d.Pr)},tp=function(t,e){var r,i,n,o,s=t._gsap||(0,d.DY)(t),a=t.style,c=th(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(c=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?tl:c:(c!==tl||t.offsetParent||t===l||s.svg||(n=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(o=1,i=t.nextElementSibling,l.appendChild(t)),c=th(t),n?a.display=n:K(t,"display"),o&&(i?r.insertBefore(t,i):r?r.appendChild(t):l.removeChild(t))),e&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},tf=function(t,e,r,i,n,o){var s,a,l,c,u=t._gsap,h=n||tp(t,!0),p=u.xOrigin||0,f=u.yOrigin||0,d=u.xOffset||0,g=u.yOffset||0,v=h[0],m=h[1],y=h[2],w=h[3],x=h[4],b=h[5],S=e.split(" "),_=parseFloat(S[0])||0,E=parseFloat(S[1])||0;r?h!==tl&&(a=v*w-m*y)&&(l=w/a*_+-y/a*E+(y*b-w*x)/a,c=-m/a*_+v/a*E-(v*b-m*x)/a,_=l,E=c):(_=(s=Z(t)).x+(~S[0].indexOf("%")?_/100*s.width:_),E=s.y+(~(S[1]||S[0]).indexOf("%")?E/100*s.height:E)),i||!1!==i&&u.smooth?(x=_-p,b=E-f,u.xOffset=d+(x*v+b*y)-x,u.yOffset=g+(x*m+b*w)-b):u.xOffset=u.yOffset=0,u.xOrigin=_,u.yOrigin=E,u.smooth=!!i,u.origin=e,u.originIsAbsolute=!!r,t.style[Y]="0px 0px",o&&(Q(o,u,"xOrigin",p,_),Q(o,u,"yOrigin",f,E),Q(o,u,"xOffset",d,u.xOffset),Q(o,u,"yOffset",g,u.yOffset)),t.setAttribute("data-svg-origin",_+" "+E)},td=function(t,e){var r=t._gsap||new d.l1(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,o,s,a,l,c,u,h,p,g,w,x,b,S,_,E,T,O,M,P,C,k,z,A,R,N,D,F,W,X,H,I=t.style,V=r.scaleX<0,U=getComputedStyle(t),q=B(t,Y)||"0";return i=n=o=l=c=u=h=p=g=0,s=a=1,r.svg=!!(t.getCTM&&$(t)),U.translate&&(("none"!==U.translate||"none"!==U.scale||"none"!==U.rotate)&&(I[L]=("none"!==U.translate?"translate3d("+(U.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==U.rotate?"rotate("+U.rotate+") ":"")+("none"!==U.scale?"scale("+U.scale.split(" ").join(",")+") ":"")+("none"!==U[L]?U[L]:"")),I.scale=I.rotate=I.translate="none"),b=tp(t,r.svg),r.svg&&(r.uncache?(A=t.getBBox(),q=r.xOrigin-A.x+"px "+(r.yOrigin-A.y)+"px",z=""):z=!e&&t.getAttribute("data-svg-origin"),tf(t,z||q,!!z||r.originIsAbsolute,!1!==r.smooth,b)),w=r.xOrigin||0,x=r.yOrigin||0,b!==tl&&(T=b[0],O=b[1],M=b[2],P=b[3],i=C=b[4],n=k=b[5],6===b.length?(s=Math.sqrt(T*T+O*O),a=Math.sqrt(P*P+M*M),l=T||O?y(O,T)*v:0,(h=M||P?y(M,P)*v+l:0)&&(a*=Math.abs(Math.cos(h*m))),r.svg&&(i-=w-(w*T+x*M),n-=x-(w*O+x*P))):(H=b[6],W=b[7],N=b[8],D=b[9],F=b[10],X=b[11],i=b[12],n=b[13],o=b[14],c=(S=y(H,F))*v,S&&(z=C*(_=Math.cos(-S))+N*(E=Math.sin(-S)),A=k*_+D*E,R=H*_+F*E,N=-(C*E)+N*_,D=-(k*E)+D*_,F=-(H*E)+F*_,X=-(W*E)+X*_,C=z,k=A,H=R),u=(S=y(-M,F))*v,S&&(z=T*(_=Math.cos(-S))-N*(E=Math.sin(-S)),A=O*_-D*E,R=M*_-F*E,X=P*E+X*_,T=z,O=A,M=R),l=(S=y(O,T))*v,S&&(z=T*(_=Math.cos(S))+O*(E=Math.sin(S)),A=C*_+k*E,O=O*_-T*E,k=k*_-C*E,T=z,C=A),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),s=(0,d.Pr)(Math.sqrt(T*T+O*O+M*M)),a=(0,d.Pr)(Math.sqrt(k*k+H*H)),h=Math.abs(S=y(C,k))>2e-4?S*v:0,g=X?1/(X<0?-X:X):0),r.svg&&(z=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!tu(B(t,L)),z&&t.setAttribute("transform",z))),Math.abs(h)>90&&270>Math.abs(h)&&(V?(s*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=o+"px",r.scaleX=(0,d.Pr)(s),r.scaleY=(0,d.Pr)(a),r.rotation=(0,d.Pr)(l)+"deg",r.rotationX=(0,d.Pr)(c)+"deg",r.rotationY=(0,d.Pr)(u)+"deg",r.skewX=h+"deg",r.skewY=p+"deg",r.transformPerspective=g+"px",(r.zOrigin=parseFloat(q.split(" ")[2])||!e&&r.zOrigin||0)&&(I[Y]=tg(q)),r.xOffset=r.yOffset=0,r.force3D=d.Fc.force3D,r.renderTransform=r.svg?tx:f?tw:tm,r.uncache=0,r},tg=function(t){return(t=t.split(" "))[0]+" "+t[1]},tv=function(t,e,r){var i=(0,d.Wy)(e);return(0,d.Pr)(parseFloat(e)+parseFloat(te(t,"x",r+"px",i)))+i},tm=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,tw(t,e)},ty="0deg",tw=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,o=r.x,s=r.y,a=r.z,l=r.rotation,c=r.rotationY,u=r.rotationX,h=r.skewX,p=r.skewY,f=r.scaleX,d=r.scaleY,g=r.transformPerspective,v=r.force3D,y=r.target,w=r.zOrigin,x="",b="auto"===v&&t&&1!==t||!0===v;if(w&&(u!==ty||c!==ty)){var S,_=parseFloat(c)*m,E=Math.sin(_),T=Math.cos(_);o=tv(y,o,-(E*(S=Math.cos(_=parseFloat(u)*m))*w)),s=tv(y,s,-(-Math.sin(_)*w)),a=tv(y,a,-(T*S*w)+w)}"0px"!==g&&(x+="perspective("+g+") "),(i||n)&&(x+="translate("+i+"%, "+n+"%) "),(b||"0px"!==o||"0px"!==s||"0px"!==a)&&(x+="0px"!==a||b?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+") "),l!==ty&&(x+="rotate("+l+") "),c!==ty&&(x+="rotateY("+c+") "),u!==ty&&(x+="rotateX("+u+") "),(h!==ty||p!==ty)&&(x+="skew("+h+", "+p+") "),(1!==f||1!==d)&&(x+="scale("+f+", "+d+") "),y.style[L]=x||"translate(0, 0)"},tx=function(t,e){var r,i,n,o,s,a=e||this,l=a.xPercent,c=a.yPercent,u=a.x,h=a.y,p=a.rotation,f=
15a.skewX,g=a.skewY,v=a.scaleX,y=a.scaleY,w=a.target,x=a.xOrigin,b=a.yOrigin,S=a.xOffset,_=a.yOffset,E=a.forceCSS,T=parseFloat(u),O=parseFloat(h);p=parseFloat(p),f=parseFloat(f),(g=parseFloat(g))&&(f+=g=parseFloat(g),p+=g),p||f?(p*=m,f*=m,r=Math.cos(p)*v,i=Math.sin(p)*v,n=-(Math.sin(p-f)*y),o=Math.cos(p-f)*y,f&&(g*=m,n*=s=Math.sqrt(1+(s=Math.tan(f-g))*s),o*=s,g&&(r*=s=Math.sqrt(1+(s=Math.tan(g))*s),i*=s)),r=(0,d.Pr)(r),i=(0,d.Pr)(i),n=(0,d.Pr)(n),o=(0,d.Pr)(o)):(r=v,o=y,i=n=0),(T&&!~(u+"").indexOf("px")||O&&!~(h+"").indexOf("px"))&&(T=te(w,"x",u,"px"),O=te(w,"y",h,"px")),(x||b||S||_)&&(T=(0,d.Pr)(T+x-(x*r+b*n)+S),O=(0,d.Pr)(O+b-(x*i+b*o)+_)),(l||c)&&(s=w.getBBox(),T=(0,d.Pr)(T+l/100*s.width),O=(0,d.Pr)(O+c/100*s.height)),s="matrix("+r+","+i+","+n+","+o+","+T+","+O+")",w.setAttribute("transform",s),E&&(w.style[L]=s)},tb=function(t,e,r,i,n){var o,s,a=(0,d.r9)(n),l=parseFloat(n)*(a&&~n.indexOf("rad")?v:1)-i,c=i+l+"deg";return a&&("short"===(o=n.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===o&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===o&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),t._pt=s=new d.Fo(t._pt,e,r,i,l,E),s.e=c,s.u="deg",t._props.push(r),s},tS=function(t,e){for(var r in e)t[r]=e[r];return t},t_=function(t,e,r){var i,n,o,s,a,l,c,u=tS({},r._gsap),h=r.style;for(n in u.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),h[L]=e,i=td(r,1),K(r,L),r.setAttribute("transform",o)):(o=getComputedStyle(r)[L],h[L]=e,i=td(r,1),h[L]=o),g)(o=u[n])!==(s=i[n])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)&&(a=(0,d.Wy)(o)!==(c=(0,d.Wy)(s))?te(r,n,o,c):parseFloat(o),l=parseFloat(s),t._pt=new d.Fo(t._pt,i,n,a,l-a,_),t._pt.u=c||0,t._props.push(n));tS(i,u)};(0,d.fS)("padding,margin,Width,Radius",function(t,e){var r="Right",i="Bottom",n="Left",o=(e<3?["Top",r,i,n]:["Top"+n,"Top"+r,i+r,i+n]).map(function(r){return e<2?t+r:"border"+r+t});ta[e>1?"border"+t:t]=function(t,e,r,i,n){var s,a;if(arguments.length<4)return 5===(a=(s=o.map(function(e){return tr(t,e,r)})).join(" ")).split(s[0]).length?s[0]:a;s=(i+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,a,n)}});var tE={name:"css",register:q,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var o,s,a,l,u,h,p,f,v,m,y,w,x,E,P,C,k,z=this._props,A=t.style,R=r.vars.startAt;for(p in c||q(),this.styles=this.styles||H(t),C=this.styles.props,this.tween=r,e)if("autoRound"!==p&&(s=e[p],!(d.$i[p]&&(0,d.if)(p,e,r,i,t,n)))){if(u=typeof s,h=ta[p],"function"===u&&(u=typeof(s=s.call(r,i,t,n))),"string"===u&&~s.indexOf("random(")&&(s=(0,d.UI)(s)),h)h(this,t,p,s,r)&&(P=1);else if("--"===p.substr(0,2))o=(getComputedStyle(t).getPropertyValue(p)+"").trim(),s+="",d.GN.lastIndex=0,!d.GN.test(o)&&(f=(0,d.Wy)(o),(v=(0,d.Wy)(s))?f!==v&&(o=te(t,p,o,v)+v):f&&(s+=f)),this.add(A,"setProperty",o,s,i,n,0,0,p),z.push(p),C.push(p,0,A[p]);else if("undefined"!==u){if(R&&p in R?(o="function"==typeof R[p]?R[p].call(r,i,t,n):R[p],(0,d.r9)(o)&&~o.indexOf("random(")&&(o=(0,d.UI)(o)),(0,d.Wy)(o+"")||"auto"===o||(o+=d.Fc.units[p]||(0,d.Wy)(tr(t,p))||""),"="===(o+"").charAt(1)&&(o=tr(t,p))):o=tr(t,p),l=parseFloat(o),(m="string"===u&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),p in S&&("autoAlpha"===p&&(1===l&&"hidden"===tr(t,"visibility")&&a&&(l=0),C.push("visibility",0,A.visibility),Q(this,A,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==p&&"transform"!==p&&~(p=S[p]).indexOf(",")&&(p=p.split(",")[0])),y=p in g){if(this.styles.save(p),k=s,"string"===u&&"var(--"===s.substring(0,6)){if("calc("===(s=B(t,s.substring(4,s.indexOf(")")))).substring(0,5)){var N=t.style.perspective;t.style.perspective=s,s=B(t,"perspective"),N?t.style.perspective=N:K(t,"perspective")}a=parseFloat(s)}if(w||((x=t._gsap).renderTransform&&!e.parseTransform||td(t,e.parseTransform),E=!1!==e.smoothOrigin&&x.smooth,(w=this._pt=new d.Fo(this._pt,A,L,0,1,x.renderTransform,x,0,-1)).dep=1),"scale"===p)this._pt=new d.Fo(this._pt,x,"scaleY",x.scaleY,(m?(0,d.cy)(x.scaleY,m+a):a)-x.scaleY||0,_),this._pt.u=0,z.push("scaleY",p),p+="X";else if("transformOrigin"===p){C.push(Y,0,A[Y]),s=to(s),x.svg?tf(t,s,0,E,0,this):((v=parseFloat(s.split(" ")[2])||0)!==x.zOrigin&&Q(this,x,"zOrigin",x.zOrigin,v),Q(this,A,p,tg(o),tg(s)));continue}else if("svgOrigin"===p){tf(t,s,1,E,0,this);continue}else if(p in tc){tb(this,x,p,l,m?(0,d.cy)(l,m+s):s);continue}else if("smoothOrigin"===p){Q(this,x,"smooth",x.smooth,s);continue}else if("force3D"===p){x[p]=s;continue}else if("transform"===p){t_(this,s,t);continue}}else p in A||(p=U(p)||p);if(y||(a||0===a)&&(l||0===l)&&!b.test(s)&&p in A)f=(o+"").substr((l+"").length),a||(a=0),v=(0,d.Wy)(s)||(p in d.Fc.units?d.Fc.units[p]:f),f!==v&&(l=te(t,p,o,v)),this._pt=new d.Fo(this._pt,y?x:A,p,l,(m?(0,d.cy)(l,m+a):a)-l,y||"px"!==v&&"zIndex"!==p||!1===e.autoRound?_:M),this._pt.u=v||0,y&&k!==s?(this._pt.b=o,this._pt.e=k,this._pt.r=O):f!==v&&"%"!==v&&(this._pt.b=o,this._pt.r=T);else if(p in A)ti.call(this,t,p,o,m?m+s:s);else if(p in t)this.add(t,p,o||t[p],m?m+s:s,i,n);else if("parseTransform"!==p){(0,d.lC)(p,s);continue}y||(p in A?C.push(p,0,A[p]):"function"==typeof t[p]?C.push(p,2,t[p]()):C.push(p,1,o||t[p])),z.pu
15sh(p)}}P&&(0,d.JV)(this)},render:function(t,e){if(e.tween._time||!p())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:tr,aliases:S,getSetter:function(t,e,r){var i=S[e];return i&&0>i.indexOf(",")&&(e=i),e in g&&e!==Y&&(t._gsap.x||tr(t,"x"))?r&&h===r?"scale"===e?R:A:(h=r||{},"scale"===e?N:D):t.style&&!(0,d.m2)(t.style[e])?k:~e.indexOf("-")?z:(0,d.S5)(t,e)},core:{_removeProperty:K,_getMatrix:tp}};d.p8.utils.checkPrefix=U,d.p8.core.getStyleSaver=H,i="x,y,z,scale,scaleX,scaleY,xPercent,yPercent",n="rotation,rotationX,rotationY,skewX,skewY",o="0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",s=(0,d.fS)(i+","+n+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){g[t]=1}),(0,d.fS)(n,function(t){d.Fc.units[t]="deg",tc[t]=1}),S[s[13]]=i+","+n,(0,d.fS)(o,function(t){var e=t.split(":");S[e[1]]=s[e[0]]}),(0,d.fS)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){d.Fc.units[t]="px"}),d.p8.registerPlugin(tE);var tT=d.p8.registerPlugin(tE)||d.p8;tT.core.Tween},4108:function(t,e,r){r.d(e,{Z:function(){return f}});var i="1.3.26";function n(t,e,r){return Math.max(t,Math.min(e,r))}var o=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let r=n(0,this.currentTime/this.duration,1),i=(e=r>=1)?1:this.easing(r);this.value=this.from+(this.to-this.from)*i}else if(this.lerp){var r,i,o;this.value=(r=this.value,i=this.to,(1-(o=1-Math.exp(-(60*this.lerp)*t)))*r+o*i),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:r,duration:i,easing:n,onStart:o,onUpdate:s}){this.from=this.value=t,this.to=e,this.lerp=r,this.duration=i,this.easing=n,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=s}},s=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(t,e,{autoResize:r=!0,debounce:i=250}={}){if(this.wrapper=t,this.content=e,r){var n;let t;this.debouncedResize=(n=this.resize,function(...e){clearTimeout(t),t=setTimeout(()=>{t=void 0,n.apply(this,e)},i)}),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)}this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},a=class{events={};emit(t,...e){let r=this.events[t]||[];for(let t=0,i=r.length;t<i;t++)r[t]?.(...e)}on(t,e){return this.events[t]?this.events[t].push(e):this.events[t]=[e],()=>{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}};let l=100/6,c={passive:!1};function u(t,e){return 1===t?l:2===t?e:1}var h=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new a;constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,c),this.element.addEventListener("touchstart",this.onTouchStart,c),this.element.addEventListener("touchmove",this.onTouchMove,c),this.element.addEventListener("touchend",this.onTouchEnd,c)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,c),this.element.removeEventListener("touchstart",this.onTouchStart,c),this.element.removeEventListener("touchmove",this.onTouchMove,c),this.element.removeEventListener("touchend",this.onTouchEnd,c)}onTouchStart=t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t,i=-(e-this.touchStart.x)*this.options.touchMultiplier,n=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:i,y:n},this.emitter.emit("scroll",{deltaX:i,deltaY:n,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:r,deltaMode:i}=t,n=u(i,this.window.width),o=u(i,this.window.height);e*=n,r*=o,e*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:r,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};let p=t=>Math.min(1,1.001-2**(-10*t));var f=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;reducedMotionMediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)");
15isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new o;emitter=new a;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:r=t,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:a=.075,touchInertiaExponent:l=1.7,duration:c,easing:u,lerp:f=.1,infinite:d=!1,orientation:g="vertical",gestureOrientation:v="horizontal"===g?"both":"vertical",touchMultiplier:m=1,wheelMultiplier:y=1,autoResize:w=!0,prevent:x,virtualScroll:b,overscroll:S=!0,autoRaf:_=!1,anchors:E=!1,autoToggle:T=!1,allowNestedScroll:O=!1,__experimental__naiveDimensions:M=!1,naiveDimensions:P=M,stopInertiaOnNavigate:C=!1,respectReducedMotion:k=!0}={}){window.lenisVersion=i,window.lenis||(window.lenis={}),window.lenis.version=i,"horizontal"===g&&(window.lenis.horizontal=!0),!0===o&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),t&&t!==document.documentElement||(t=window),"number"==typeof c&&"function"!=typeof u?u=p:"function"==typeof u&&"number"!=typeof c&&(c=1),this.options={wrapper:t,content:e,eventsTarget:r,smoothWheel:n,syncTouch:o,syncTouchLerp:a,touchInertiaExponent:l,duration:c,easing:u,lerp:f,infinite:d,gestureOrientation:v,orientation:g,touchMultiplier:m,wheelMultiplier:y,autoResize:w,prevent:x,virtualScroll:b,overscroll:S,autoRaf:_,anchors:E,autoToggle:T,allowNestedScroll:O,naiveDimensions:P,stopInertiaOnNavigate:C,respectReducedMotion:k},this.dimensions=new s(t,e,{autoResize:w}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new h(r,{touchMultiplier:m,wheelMultiplier:y}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=t=>{t.propertyName?.includes("overflow")&&t.target===this.rootElement&&this.checkOverflow()};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),r=new URL(window.location.href);if(this.options.anchors){let t=e.find(t=>r.host===t.host&&r.pathname===t.pathname&&t.hash);if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,r=decodeURIComponent(t.hash);this.scrollTo(r,e);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>r.host===t.host&&r.pathname!==t.pathname)){this.reset();return}};onPointerDown=t=>{1===t.button&&this.reset()};isTouchOnSelectionHandle(t){let e=window.getSelection();if(!e||e.isCollapsed||0===e.rangeCount)return!1;let r=t.targetTouches[0]??t.changedTouches[0];if(!r)return!1;let i=e.getRangeAt(0).getClientRects();if(0===i.length)return!1;let n=i[0],o=i[i.length-1],s=40>=Math.hypot(r.clientX-n.left,r.clientY-n.top),a=40>=Math.hypot(r.clientX-o.right,r.clientY-o.bottom);return s||a}onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:r,event:i}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:r,event:i}),i.ctrlKey||i.lenisStopPropagation)return;let n=i.type.includes("touch"),o=i.type.includes("wheel");if(n&&this.isIos&&("touchstart"===i.type&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(i)),this._isDraggingSelection)){"touchend"===i.type&&(this._isDraggingSelection=!1);return}this.isTouching="touchstart"===i.type||"touchmove"===i.type;let s=0===e&&0===r;if(this.options.syncTouch&&n&&"touchstart"===i.type&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let a="vertical"===this.options.gestureOrientation&&0===r||"horizontal"===this.options.gestureOrientation&&0===e;if(s||a)return;let l=i.composedPath();l=l.slice(0,l.indexOf(this.rootElement));let c=this.options.prevent,u=Math.abs(e)>=Math.abs(r)?"horizontal":"vertical";if(l.find(t=>t instanceof HTMLElement&&("function"==typeof c&&c?.(t)||t.hasAttribute?.("data-lenis-prevent")||"vertical"===u&&t.hasAttribute?.("data-lenis-prevent-vertical")||"horizontal"===u&&t.hasAttribute?.("data-lenis-prevent-horizontal")||n&&t.hasAttribute?.("data-lenis-prevent-touch")||o&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(t,{deltaX:e,deltaY:r}))))return;if(this.isStopped||this.isLocked){i.cancelable&&i.preventDefault();return}if(!(this.options.syncTouch&&n||this.options.smoothWheel&&o)){this.isScrolling="native",this.animate.stop(),i.lenisStopPropagation=!0;return}let h=r;"both"===this.options.gestureOrientation?h=Math.abs(r)>Math.abs(e)?r:e:"horizontal"===this.options.gestureOrientation&&(h=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&r>0||this.animatedScroll===this.limit&&r<0))&&(i.lenisStopPropagation=!0),i.cancelable&&i.preventDefault();let p=n&&this.options.syncTouch,f=n&&"touchend"===i.type;f&&(h=Math.sign(h)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+h,{programmatic:!1,...p?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
15()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:r=!1,lock:i=!1,programmatic:o=!0,lerp:s=o?this.options.lerp:void 0,duration:a=o?this.options.duration:void 0,easing:l=o?this.options.easing:void 0,onStart:c,onComplete:u,force:h=!1,userData:f}={}){if(this.prefersReducedMotion&&(o?r=!0:(s=1,a=void 0,l=void 0)),(this.isStopped||this.isLocked)&&!h)return;let d=t,g=e;if("string"==typeof d&&["top","left","start","#"].includes(d))d=0;else if("string"==typeof d&&["bottom","right","end"].includes(d))d=this.limit;else{let t=null;if("string"==typeof d?(t=d.startsWith("#")?document.getElementById(d.slice(1)):document.querySelector(d))||("#top"===d?d=0:console.warn("Lenis: Target not found",d)):d instanceof HTMLElement&&d?.nodeType&&(t=d),t){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();g-=this.isHorizontal?t.left:t.top}let e=t.getBoundingClientRect(),r=getComputedStyle(t),i=this.isHorizontal?Number.parseFloat(r.scrollMarginLeft):Number.parseFloat(r.scrollMarginTop),n=getComputedStyle(this.rootElement),o=this.isHorizontal?Number.parseFloat(n.scrollPaddingLeft):Number.parseFloat(n.scrollPaddingTop);d=(this.isHorizontal?e.left:e.top)+this.animatedScroll-(Number.isNaN(i)?0:i)-(Number.isNaN(o)?0:o)}}if("number"==typeof d){if(d+=g,this.options.infinite){if(o){this.targetScroll=this.animatedScroll=this.scroll;let t=d-this.animatedScroll;t>this.limit/2?d-=this.limit:t<-this.limit/2&&(d+=this.limit)}}else d=n(0,d,this.limit);if(d===this.targetScroll){c?.(this),u?.(this);return}if(this.userData=f??{},r){this.animatedScroll=this.targetScroll=d,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}o||(this.targetScroll=d),"number"==typeof a&&"function"!=typeof l?l=p:"function"==typeof l&&"number"!=typeof a&&(a=1),this.animate.fromTo(this.animatedScroll,d,{duration:a,easing:l,lerp:s,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling="smooth",c?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),o&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(t,{deltaX:e,deltaY:r}){let i,n,o,s,a,l,c,u,h,p,f,d,g,v,m,y;let w=Date.now();t._lenis||(t._lenis={});let x=t._lenis;if(w-(x.time??0)>2e3){x.time=Date.now();let e=window.getComputedStyle(t);if(x.computedStyle=e,i=["auto","overlay","scroll"].includes(e.overflowX),n=["auto","overlay","scroll"].includes(e.overflowY),a=["auto"].includes(e.overscrollBehaviorX),l=["auto"].includes(e.overscrollBehaviorY),x.hasOverflowX=i,x.hasOverflowY=n,!(i||n))return!1;c=t.scrollWidth,u=t.scrollHeight,h=t.clientWidth,p=t.clientHeight,o=c>h,s=u>p,x.isScrollableX=o,x.isScrollableY=s,x.scrollWidth=c,x.scrollHeight=u,x.clientWidth=h,x.clientHeight=p,x.hasOverscrollBehaviorX=a,x.hasOverscrollBehaviorY=l}else o=x.isScrollableX,s=x.isScrollableY,i=x.hasOverflowX,n=x.hasOverflowY,c=x.scrollWidth,u=x.scrollHeight,h=x.clientWidth,p=x.clientHeight,a=x.hasOverscrollBehaviorX,l=x.hasOverscrollBehaviorY;if(!(i&&o||n&&s))return!1;let b=Math.abs(e)>=Math.abs(r)?"horizontal":"vertical";if("horizontal"===b)f=Math.round(t.scrollLeft),d=c-h,g=e,v=i,m=o,y=a;else{if("vertical"!==b)return!1;f=Math.round(t.scrollTop),d=u-p,g=r,v=n,m=s,y=l}return!y&&(f>=d||f<=0)||(g>0?f<d:f>0)&&v&&m}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(t=>{this.rootElement.classList.add(t)})}cleanUpClassName(){for(let t of Array.from(this.rootElement.classList))("lenis"===t||t.startsWith("lenis-"))&&this.rootElement.classList.remove(t)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.