(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7678],{8920:function(t,e,n){"use strict";n.d(e,{f:function(){return a}});var o=n(67294);let r=t=>{let e=o.useRef(t);return o.useEffect(()=>{e.current=t}),e},i="undefined"!=typeof performance?performance:Date,l=()=>i.now();function a(t,e,n){let i=o.useState(t);return[i[0],function(t,e=30,n=!1){let i=r(t),a=1e3/e,s=o.useRef(0),c=o.useRef(),u=()=>c.current&&clearTimeout(c.current),p=[e,n,i];function d(){s.current=0,u()}return o.useEffect(()=>d,p),o.useCallback(function(){let t=arguments,e=l(),o=()=>{s.current=e,u(),i.current.apply(null,t)},r=s.current;if(n&&0===r)return o();if(e-r>a){if(r>0)return o();s.current=e}u(),c.current=setTimeout(()=>{o(),s.current=0},a)},p)}(i[1],e,n)]}},53145:function(t,e){!function(t){"use strict";function e(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var n,o,r,i,l,a,s,c,u,p="transform",d=p+"Origin",f=function(t){var e=t.ownerDocument||t;for(!(p in t.style)&&("msTransform"in t.style)&&(d=(p="msTransform")+"Origin");e.parentNode&&(e=e.parentNode););if(o=window,s=new k,e){n=e,r=e.documentElement,i=e.body,(c=n.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var l=e.createElement("div"),a=e.createElement("div");i.appendChild(l),l.appendChild(a),l.style.position="static",l.style[p]="translate3d(0,0,1px)",u=a.offsetParent!==l,i.removeChild(l)}return e},h=function(t){for(var e,n;t&&t!==i;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e},g=[],x=[],y=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},m=function t(e,o){if(e.parentNode&&(n||f(e))){var r=y(e),i=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=r?o?"rect":"g":"div",c=2!==o?0:100,u=3===o?100:0,p="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",d=n.createElementNS?n.createElementNS(i.replace(/^https/,"http"),s):n.createElement(s);return o&&(r?(a||(a=t(e)),d.setAttribute("width",.01),d.setAttribute("height",.01),d.setAttribute("transform","translate("+c+","+u+")"),a.appendChild(d)):(l||((l=t(e)).style.cssText=p),d.style.cssText=p+"width:0.1px;height:0.1px;top:"+u+"px;left:"+c+"px",l.appendChild(d))),d}throw"Need document and parent."},v=function(t){for(var e=new k,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e},w=function(t){var e,n=t.getCTM();return n||(e=t.style[p],t.style[p]="none",t.appendChild(c),n=c.getCTM(),t.removeChild(c),e?t.style[p]=e:t.style.removeProperty(p.replace(/([A-Z])/g,"-$1").toLowerCase())),n||s.clone()},b=function(t,e){var n,r,i,c,f,h,b=y(t),T=t===b,E=b?g:x,X=t.parentNode;if(t===o)return t;if(E.length||E.push(m(t,1),m(t,2),m(t,3)),n=b?a:l,b)T?(c=-(i=w(t)).e/i.a,f=-i.f/i.d,r=s):t.getBBox?(i=t.getBBox(),c=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?v(r):r.getItem(0).matrix:s).a*i.x+r.c*i.y,f=r.b*i.x+r.d*i.y):(r=new k,c=f=0),e&&"g"===t.tagName.toLowerCase()&&(c=f=0),(T?b:X).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+c)+","+(r.f+f)+")");else{if(c=f=0,u)for(r=t.offsetParent,i=t;i&&(i=i.parentNode)&&i!==r&&i.parentNode;)(o.getComputedStyle(i)[p]+"").length>4&&(c=i.offsetLeft,f=i.offsetTop,i=0);if("absolute"!==(h=o.getComputedStyle(t)).position&&"fixed"!==h.position)for(r=t.offsetParent;X&&X!==r;)c+=X.scrollLeft||0,f+=X.scrollTop||0,X=X.parentNode;(i=n.style).top=t.offsetTop-f+"px",i.left=t.offsetLeft-c+"px",i[p]=h[p],i[d]=h[d],i.position="fixed"===h.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},T=function(t,e,n,o,r,i,l){return t.a=e,t.b=n,t.c=o,t.d=r,t.e=i,t.f=l,t},k=function(){function t(t,e,n,o,r,i){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),T(this,t,e,n,o,r,i)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,n=this.c,o=this.d,r=this.e,i=this.f,l=t*o-e*n||1e-10;return T(this,o/l,-e/l,-n/l,t/l,(n*i-o*r)/l,-(t*i-e*r)/l)},e.multiply=function(t){var e=this.a,n=this.b,o=this.c,r=this.d,i=this.e,l=this.f,a=t.a,s=t.c,c=t.b,u=t.d,p=t.e,d=t.f;return T(this,a*e+c*o,a*n+c*r,s*e+u*o,s*n+u*r,i+p*e+d*o,l+p*n+d*r)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,n=this.b,o=this.c,r=this.d,i=this.e,l=this.f;return e===t.a&&n===t.b&&o===t.c&&r===t.d&&i===t.e&&l===t.f},e.apply=function(t,e){void 0===e&&(e={});var n=t.x,o=t.y,r=this.a,i=this.b,l=this.c,a=this.d,s=this.e,c=this.f;return e.x=n*r+o*l+s||0,e.y=n*i+o*a+c||0,e},t}();function E(t,e,l,a){if(!t||!t.parentNode||(n||f(t)).documentElement===t)return new k;var s=h(t),c=y(t)?g:x,u=b(t,l),p=c[0].getBoundingClientRect(),d=c[1].getBoundingClientRect(),m=c[2].getBoundingClientRect(),v=u.parentNode,w=!a&&function t(e){return"fixed"===o.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(t),T=new k((d.left-p.left)/100,(d.top-p.top)/100,(m.left-p.left)/100,(m.top-p.top)/100,p.left+(w?0:o.pageXOffset||n.scrollLeft||r.scrollLeft||i.scrollLeft||0),p.top+(w?0:o.pageYOffset||n.scrollTop||r.scrollTop||i.scrollTop||0));if(v.removeChild(u),s)for(p=s.length;p--;)(d=s[p]).scaleX=d.scaleY=0,d.renderTransform(1,d);return e?T.inverse():T}var X,Y,M,S,P,C,L,D,N,_,O,R,A,B,I,H,W,F,K,V,z,j,U=0,G=function(){return"undefined"!=typeof window},q=function(){return X||G()&&(X=window.gsap)&&X.registerPlugin&&X},$=function(t){return"function"==typeof t},Z=function(t){return"object"==typeof t},J=function(t){return void 0===t},Q=function(){return!1},tt="transform",te="transformOrigin",tn=function(t){return Math.round(1e4*t)/1e4},to=Array.isArray,tr=function(t,e){var n=M.createElementNS?M.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):M.createElement(t);return n.style?n:M.createElement(t)},ti=180/Math.PI,tl=new k,ta=Date.now||function(){return new Date().getTime()},ts=[],tc={},tu=0,tp=/^(?:a|input|textarea|button|select)$/i,td=0,tf={},th={},tg=function(t,e){var n,o={};for(n in t)o[n]=e?t[n]*e:t[n];return o},tx=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},ty=function t(e,n){for(var o,r=e.length;r--;)n?e[r].style.touchAction=n:e[r].style.removeProperty("touch-action"),(o=e[r].children)&&o.length&&t(o,n)},tm=function(){return ts.forEach(function(t){return t()})},tv=function(t){ts.push(t),1===ts.length&&X.ticker.add(tm)},tw=function(){return!ts.length&&X.ticker.remove(tm)},tb=function(t){for(var e=ts.length;e--;)ts[e]===t&&ts.splice(e,1);X.to(tw,{overwrite:!0,delay:15,duration:0,onComplete:tw,data:"_draggable"})},tT=function(t,e,n,o){if(t.addEventListener){var r=A[e];o=o||(O?{passive:!1}:null),t.addEventListener(r||e,n,o),r&&e!==r&&t.addEventListener(e,n,o)}},tk=function(t,e,n,o){if(t.removeEventListener){var r=A[e];t.removeEventListener(r||e,n,o),r&&e!==r&&t.removeEventListener(e,n,o)}},tE=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},tX=function(t,e){for(var n=t.length;n--;)if(t[n].identifier===e)return!0},tY=function t(e){B=e.touches&&U<e.touches.length,tk(e.target,"touchend",t)},tM=function(t){B=t.touches&&U<t.touches.length,tT(t.target,"touchend",tY)},tS=function(t){return Y.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},tP=function(t){return Y.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},tC=function t(e,n){tT(e,"scroll",n),tD(e.parentNode)||t(e.parentNode,n)},tL=function t(e,n){tk(e,"scroll",n),tD(e.parentNode)||t(e.parentNode,n)},tD=function(t){return!!(!t||t===S||9===t.nodeType||t===M.body||t===Y||!t.nodeType||!t.parentNode)},tN=function(t,e){var n="x"===e?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,tD(t)?Math.max(S[o],P[o])-(Y["inner"+n]||S[r]||P[r]):t[o]-t[r])},t_=function t(e,n){var o=tN(e,"x"),r=tN(e,"y");tD(e)?e=th:t(e.parentNode,n),e._gsMaxScrollX=o,e._gsMaxScrollY=r,n||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},tO=function(t,e,n){var o=t.style;o&&(J(o[e])&&(e=N(e,t)||e),null==n?o.removeProperty&&o.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):o[e]=n)},tR=function(t){return Y.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},tA={},tB=function(t){if(t===Y)return tA.left=tA.top=0,tA.width=tA.right=S.clientWidth||t.innerWidth||P.clientWidth||0,tA.height=tA.bottom=(t.innerHeight||0)-20<S.clientHeight?S.clientHeight:t.innerHeight||P.clientHeight||0,tA;var e=t.ownerDocument||M,n=J(t.pageX)?t.nodeType||J(t.left)||J(t.top)?_(t)[0].getBoundingClientRect():t:{left:t.pageX-tP(e),top:t.pageY-tS(e),right:t.pageX-tP(e)+1,bottom:t.pageY-tS(e)+1};return J(n.right)&&!J(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):J(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n},tI=function(t,e,n){var o,r=t.vars,i=r[n],l=t._listeners[e];return $(i)&&(o=i.apply(r.callbackScope||t,r[n+"Params"]||[t.pointerEvent])),l&&!1===t.dispatchEvent(e)&&(o=!1),o},tH=function(t,e){var n,o,r,i=_(t)[0];return i.nodeType||i===Y?tF(i,e):J(t.left)?{left:o=t.min||t.minX||t.minRotation||0,top:n=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-o,height:(t.max||t.maxY||0)-n}:(r={x:0,y:0},{left:t.left-r.x,top:t.top-r.y,width:t.width,height:t.height})},tW={},tF=function(t,e){e=_(e)[0];var n,o,r,i,l,a,s,c,u,p,d,f,h,g=t.getBBox&&t.ownerSVGElement,x=t.ownerDocument||M;if(t===Y)r=tS(x),o=(n=tP(x))+(x.documentElement.clientWidth||t.innerWidth||x.body.clientWidth||0),i=r+((t.innerHeight||0)-20<x.documentElement.clientHeight?x.documentElement.clientHeight:t.innerHeight||x.body.clientHeight||0);else{if(e===Y||J(e))return t.getBoundingClientRect();n=r=0,g?(d=(p=t.getBBox()).width,f=p.height):(t.viewBox&&(p=t.viewBox.baseVal)&&(n=p.x||0,r=p.y||0,d=p.width,f=p.height),d||(p="border-box"===(h=tR(t)).boxSizing,d=(parseFloat(h.width)||t.clientWidth||0)+(p?0:parseFloat(h.borderLeftWidth)+parseFloat(h.borderRightWidth)),f=(parseFloat(h.height)||t.clientHeight||0)+(p?0:parseFloat(h.borderTopWidth)+parseFloat(h.borderBottomWidth)))),o=d,i=f}return t===e?{left:n,top:r,width:o-n,height:i-r}:(a=(l=E(e,!0).multiply(E(t))).apply({x:n,y:r}),s=l.apply({x:o,y:r}),c=l.apply({x:o,y:i}),u=l.apply({x:n,y:i}),n=Math.min(a.x,s.x,c.x,u.x),r=Math.min(a.y,s.y,c.y,u.y),{left:n,top:r,width:Math.max(a.x,s.x,c.x,u.x)-n,height:Math.max(a.y,s.y,c.y,u.y)-r})},tK=function(t,e,n,o,r,i){var l,a,s,c={};if(e){if(1!==r&&e instanceof Array){if(c.end=l=[],s=e.length,Z(e[0]))for(a=0;a<s;a++)l[a]=tg(e[a],r);else for(a=0;a<s;a++)l[a]=e[a]*r;n+=1.1,o-=1.1}else $(e)?c.end=function(n){var o,i,l=e.call(t,n);if(1!==r){if(Z(l)){for(i in o={},l)o[i]=l[i]*r;l=o}else l*=r}return l}:c.end=e}return(n||0===n)&&(c.max=n),(o||0===o)&&(c.min=o),i&&(c.velocity=0),c},tV=function t(e){var n;return!!e&&!!e.getAttribute&&e!==P&&(!!("true"===(n=e.getAttribute("data-clickable"))||"false"!==n&&(e.onclick||tp.test(e.nodeName+"")||"true"===e.getAttribute("contentEditable")))||t(e.parentNode))},tz=function(t,e){for(var n,o=t.length;o--;)(n=t[o]).ondragstart=n.onselectstart=e?null:Q,X.set(n,{lazy:!0,userSelect:e?"text":"none"})},tj=function(t,e){t=X.utils.toArray(t)[0],e=e||{};var n,o,r,i,l,a,s=document.createElement("div"),c=s.style,u=t.firstChild,p=0,d=0,f=t.scrollTop,h=t.scrollLeft,g=t.scrollWidth,x=t.scrollHeight,y=0,m=0,v=0;z&&!1!==e.force3D?(l="translate3d(",a="px,0px)"):tt&&(l="translate(",a="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(n,o){if(!arguments.length)return-(t.scrollLeft+d);var r=t.scrollLeft-h,i=d;if((r>2||r<-2)&&!o){h=t.scrollLeft,X.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-h),e.onKill&&e.onKill();return}(n=-n)<0?(d=n-.5|0,n=0):n>m?(d=n-m|0,n=m):d=0,(d||i)&&(this._skip||(c[tt]=l+-d+"px,"+-p+a),d+y>=0&&(c.paddingRight=d+y+"px")),t.scrollLeft=0|n,h=t.scrollLeft},this.top=function(n,o){if(!arguments.length)return-(t.scrollTop+p);var r=t.scrollTop-f,i=p;if((r>2||r<-2)&&!o){f=t.scrollTop,X.killTweensOf(this,{top:1,scrollTop:1}),this.top(-f),e.onKill&&e.onKill();return}(n=-n)<0?(p=n-.5|0,n=0):n>v?(p=n-v|0,n=v):p=0,(p||i)&&!this._skip&&(c[tt]=l+-d+"px,"+-p+a),t.scrollTop=0|n,f=t.scrollTop},this.maxScrollTop=function(){return v},this.maxScrollLeft=function(){return m},this.disable=function(){for(u=s.firstChild;u;)i=u.nextSibling,t.appendChild(u),u=i;t===s.parentNode&&t.removeChild(s)},this.enable=function(){if((u=t.firstChild)!==s){for(;u;)i=u.nextSibling,s.appendChild(u),u=i;t.appendChild(s),this.calibrate()}},this.calibrate=function(e){var i,l,a,u=t.clientWidth===n;f=t.scrollTop,h=t.scrollLeft,(!u||t.clientHeight!==o||s.offsetHeight!==r||g!==t.scrollWidth||x!==t.scrollHeight||e)&&((p||d)&&(l=this.left(),a=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),i=tR(t),(!u||e)&&(c.display="block",c.width="auto",c.paddingRight="0px",(y=Math.max(0,t.scrollWidth-t.clientWidth))&&(y+=parseFloat(i.paddingLeft)+(j?parseFloat(i.paddingRight):0))),c.display="inline-block",c.position="relative",c.overflow="visible",c.verticalAlign="top",c.boxSizing="content-box",c.width="100%",c.paddingRight=y+"px",j&&(c.paddingBottom=i.paddingBottom),n=t.clientWidth,o=t.clientHeight,g=t.scrollWidth,x=t.scrollHeight,m=t.scrollWidth-n,v=t.scrollHeight-o,r=s.offsetHeight,c.display="block",(l||a)&&(this.left(l),this.top(a)))},this.content=s,this.element=t,this._skip=!1,this.enable()},tU=function(t){if(G()&&document.body){var e,n,o,r,i,l=window&&window.navigator;Y=window,S=(M=document).documentElement,P=M.body,C=tr("div"),F=!!window.PointerEvent,(L=tr("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",W="grab"===L.style.cursor?"grab":"move",I=l&&-1!==l.userAgent.toLowerCase().indexOf("android"),R="ontouchstart"in S&&"orientation"in Y||l&&(l.MaxTouchPoints>0||l.msMaxTouchPoints>0),n=tr("div"),r=(o=tr("div")).style,i=P,r.display="inline-block",r.position="relative",n.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(o),i.appendChild(n),e=o.offsetHeight+18>n.scrollHeight,i.removeChild(n),j=e,A=function(t){for(var e=t.split(","),n=(("onpointerdown"in C)?"pointerdown,pointermove,pointerup,pointercancel":("onmspointerdown"in C)?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),o={},r=4;--r>-1;)o[e[r]]=n[r],o[n[r]]=e[r];try{S.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){O=1}}))}catch(i){}return o}("touchstart,touchmove,touchend,touchcancel"),tT(M,"touchcancel",Q),tT(Y,"touchmove",Q),P&&P.addEventListener("touchstart",Q),tT(M,"contextmenu",function(){for(var t in tc)tc[t].isPressed&&tc[t].endDrag()}),X=D=q()}X?(H=X.plugins.inertia,K=X.core.context||function(){},tt=(N=X.utils.checkPrefix)(tt),te=N(te),_=X.utils.toArray,V=X.core.getStyleSaver,z=!!N("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},tG=function(t){var n;function o(n,r){i=t.call(this)||this,D||tU(1),n=_(n)[0],i.styles=V&&V(n,"transform,left,top"),H||(H=X.plugins.inertia),i.vars=r=tg(r||{}),i.target=n,i.x=i.y=i.rotation=0,i.dragResistance=parseFloat(r.dragResistance)||0,i.edgeResistance=isNaN(r.edgeResistance)?1:parseFloat(r.edgeResistance)||0,i.lockAxis=r.lockAxis,i.autoScroll=r.autoScroll||0,i.lockedAxis=null,i.allowEventDefault=!!r.allowEventDefault,X.getProperty(n,"x");var i,l,a,s,c,u,p,d,f,h,g,x,y,m,v,w,b,T,P,C,N,O,z,j,G,q,Q,tt,tr,ts,tp,tm,tw,tY,tN=(r.type||"x,y").toLowerCase(),tA=~tN.indexOf("x")||~tN.indexOf("y"),tF=-1!==tN.indexOf("rotation"),tG=tF?"rotation":tA?"x":"left",tq=tA?"y":"top",t$=!!(~tN.indexOf("x")||~tN.indexOf("left")||"scroll"===tN),tZ=!!(~tN.indexOf("y")||~tN.indexOf("top")||"scroll"===tN),tJ=r.minimumMovement||2,tQ=e(i),t0=_(r.trigger||r.handle||n),t1={},t2=0,t3=!1,t4=r.autoScrollMarginTop||40,t9=r.autoScrollMarginRight||40,t5=r.autoScrollMarginBottom||40,t6=r.autoScrollMarginLeft||40,t8=r.clickableTest||tV,t7=0,et=n._gsap||X.core.getCache(n),ee=function t(e){return"fixed"===tR(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(n),en=function(t,e){return parseFloat(et.get(n,t,e))},eo=n.ownerDocument||M,er=function(t){return tE(t),t.stopImmediatePropagation&&t.stopImmediatePropagation(),!1},ei=function t(e){if(tQ.autoScroll&&tQ.isDragging&&(t3||T)){var o,r,i,l,s,c,u,p,d=n,h=15*tQ.autoScroll;for(t3=!1,th.scrollTop=null!=Y.pageYOffset?Y.pageYOffset:null!=eo.documentElement.scrollTop?eo.documentElement.scrollTop:eo.body.scrollTop,th.scrollLeft=null!=Y.pageXOffset?Y.pageXOffset:null!=eo.documentElement.scrollLeft?eo.documentElement.scrollLeft:eo.body.scrollLeft,l=tQ.pointerX-th.scrollLeft,s=tQ.pointerY-th.scrollTop;d&&!r;)o=(r=tD(d.parentNode))?th:d.parentNode,i=r?{bottom:Math.max(S.clientHeight,Y.innerHeight||0),right:Math.max(S.clientWidth,Y.innerWidth||0),left:0,top:0}:o.getBoundingClientRect(),c=u=0,tZ&&((p=o._gsMaxScrollY-o.scrollTop)<0?u=p:s>i.bottom-t5&&p?(t3=!0,u=Math.min(p,h*(1-Math.max(0,i.bottom-s)/t5)|0)):s<i.top+t4&&o.scrollTop&&(t3=!0,u=-Math.min(o.scrollTop,h*(1-Math.max(0,s-i.top)/t4)|0)),u&&(o.scrollTop+=u)),t$&&((p=o._gsMaxScrollX-o.scrollLeft)<0?c=p:l>i.right-t9&&p?(t3=!0,c=Math.min(p,h*(1-Math.max(0,i.right-l)/t9)|0)):l<i.left+t6&&o.scrollLeft&&(t3=!0,c=-Math.min(o.scrollLeft,h*(1-Math.max(0,l-i.left)/t6)|0)),c&&(o.scrollLeft+=c)),r&&(c||u)&&(Y.scrollTo(o.scrollLeft,o.scrollTop),em(tQ.pointerX+c,tQ.pointerY+u)),d=o}if(T){var g=tQ.x,x=tQ.y;tF?(tQ.deltaX=g-parseFloat(et.rotation),tQ.rotation=g,et.rotation=g+"deg",et.renderTransform(1,et)):a?(tZ&&(tQ.deltaY=x-a.top(),a.top(x)),t$&&(tQ.deltaX=g-a.left(),a.left(g))):tA?(tZ&&(tQ.deltaY=x-parseFloat(et.y),et.y=x+"px"),t$&&(tQ.deltaX=g-parseFloat(et.x),et.x=g+"px"),et.renderTransform(1,et)):(tZ&&(tQ.deltaY=x-parseFloat(n.style.top||0),n.style.top=x+"px"),t$&&(tQ.deltaX=g-parseFloat(n.style.left||0),n.style.left=g+"px")),!f||e||tr||(tr=!0,!1===tI(tQ,"drag","onDrag")&&(t$&&(tQ.x-=tQ.deltaX),tZ&&(tQ.y-=tQ.deltaY),t(!0)),tr=!1)}T=!1},el=function(t,e){var o,r,i=tQ.x,l=tQ.y;n._gsap||(et=X.core.getCache(n)),et.uncache&&X.getProperty(n,"x"),tA?(tQ.x=parseFloat(et.x),tQ.y=parseFloat(et.y)):tF?tQ.x=tQ.rotation=parseFloat(et.rotation):a?(tQ.y=a.top(),tQ.x=a.left()):(tQ.y=parseFloat(n.style.top||(r=tR(n))&&r.top)||0,tQ.x=parseFloat(n.style.left||(r||{}).left)||0),(C||N||O)&&!e&&(tQ.isDragging||tQ.isThrowing)&&(O&&(tf.x=tQ.x,tf.y=tQ.y,(o=O(tf)).x!==tQ.x&&(tQ.x=o.x,T=!0),o.y!==tQ.y&&(tQ.y=o.y,T=!0)),C&&(o=C(tQ.x))!==tQ.x&&(tQ.x=o,tF&&(tQ.rotation=o),T=!0),N&&((o=N(tQ.y))!==tQ.y&&(tQ.y=o),T=!0)),T&&ei(!0),t||(tQ.deltaX=tQ.x-i,tQ.deltaY=tQ.y-l,tI(tQ,"throwupdate","onThrowUpdate"))},ea=function(t,e,n,o){return(null==e&&(e=-1e20),null==n&&(n=1e20),$(t))?function(r){var i=tQ.isPressed?1-tQ.edgeResistance:1;return t.call(tQ,(r>n?n+(r-n)*i:r<e?e+(r-e)*i:r)*o)*o}:to(t)?function(o){for(var r,i,l=t.length,a=0,s=1e20;--l>-1;)(i=(r=t[l])-o)<0&&(i=-i),i<s&&r>=e&&r<=n&&(a=l,s=i);return t[a]}:isNaN(t)?function(t){return t}:function(){return t*o}},es=function(){var t,e,o,i,l,s,c,u,p,f,h;d=!1,a?(a.calibrate(),tQ.minX=x=-a.maxScrollLeft(),tQ.minY=m=-a.maxScrollTop(),tQ.maxX=g=tQ.maxY=y=0,d=!0):r.bounds&&(t=tH(r.bounds,n.parentNode),tF?(tQ.minX=x=t.left,tQ.maxX=g=t.left+t.width,tQ.minY=m=tQ.maxY=y=0):J(r.bounds.maxX)&&J(r.bounds.maxY)?(e=tH(n,n.parentNode),tQ.minX=x=Math.round(en(tG,"px")+t.left-e.left),tQ.minY=m=Math.round(en(tq,"px")+t.top-e.top),tQ.maxX=g=Math.round(x+(t.width-e.width)),tQ.maxY=y=Math.round(m+(t.height-e.height))):(t=r.bounds,tQ.minX=x=t.minX,tQ.minY=m=t.minY,tQ.maxX=g=t.maxX,tQ.maxY=y=t.maxY),x>g&&(tQ.minX=g,tQ.maxX=g=x,x=tQ.minX),m>y&&(tQ.minY=y,tQ.maxY=y=m,m=tQ.minY),tF&&(tQ.minRotation=x,tQ.maxRotation=g),d=!0),r.liveSnap&&((i=to(o=!0===r.liveSnap?r.snap||{}:r.liveSnap)||$(o),tF)?(C=ea(i?o:o.rotation,x,g,1),N=null):o.points?(l=i?o:o.points,s=x,c=g,u=m,p=y,f=o.radius,h=a?-1:1,f=f&&f<1e20?f*f:1e20,O=$(l)?function(t){var e,n,o,r=tQ.isPressed?1-tQ.edgeResistance:1,i=t.x,a=t.y;return t.x=i=i>c?c+(i-c)*r:i<s?s+(i-s)*r:i,t.y=a=a>p?p+(a-p)*r:a<u?u+(a-u)*r:a,(e=l.call(tQ,t))!==t&&(t.x=e.x,t.y=e.y),1!==h&&(t.x*=h,t.y*=h),f<1e20&&(n=t.x-i)*n+(o=t.y-a)*o>f&&(t.x=i,t.y=a),t}:to(l)?function(t){for(var e,n,o,r,i=l.length,a=0,s=1e20;--i>-1;)(r=(e=(o=l[i]).x-t.x)*e+(n=o.y-t.y)*n)<s&&(a=i,s=r);return s<=f?l[a]:t}:function(t){return t}):(t$&&(C=ea(i?o:o.x||o.left||o.scrollLeft,x,g,a?-1:1)),tZ&&(N=ea(i?o:o.y||o.top||o.scrollTop,m,y,a?-1:1))))},ec=function(){tQ.isThrowing=!1,tI(tQ,"throwcomplete","onThrowComplete")},eu=function(){tQ.isThrowing=!1},ep=function(t,e){var o,i,l,s;t&&H?(!0===t&&(i=to(o=r.snap||r.liveSnap||{})||$(o),t={resistance:(r.throwResistance||r.resistance||1e3)/(tF?10:1)},tF?t.rotation=tK(tQ,i?o:o.rotation,g,x,1,e):(t$&&(t[tG]=tK(tQ,i?o:o.points||o.x||o.left,g,x,a?-1:1,e||"x"===tQ.lockedAxis)),tZ&&(t[tq]=tK(tQ,i?o:o.points||o.y||o.top,y,m,a?-1:1,e||"y"===tQ.lockedAxis)),(o.points||to(o)&&Z(o[0]))&&(t.linkedProps=tG+","+tq,t.radius=o.radius))),tQ.isThrowing=!0,s=isNaN(r.overshootTolerance)?1===r.edgeResistance?0:1-tQ.edgeResistance+.2:r.overshootTolerance,t.duration||(t.duration={max:Math.max(r.minDuration||0,"maxDuration"in r?r.maxDuration:2),min:isNaN(r.minDuration)?0===s||Z(t)&&t.resistance>1e3?0:.5:r.minDuration,overshoot:s}),tQ.tween=l=X.to(a||n,{inertia:t,data:"_draggable",onComplete:ec,onInterrupt:eu,onUpdate:r.fastMode?tI:el,onUpdateParams:r.fastMode?[tQ,"onthrowupdate","onThrowUpdate"]:o&&o.radius?[!1,!0]:[]}),!r.fastMode&&(a&&(a._skip=!0),l.render(1e9,!0,!0),el(!0,!0),tQ.endX=tQ.x,tQ.endY=tQ.y,tF&&(tQ.endRotation=tQ.x),l.play(0),el(!0,!0),a&&(a._skip=!1))):d&&tQ.applyBounds()},ed=function(t){var e,o=G;G=E(n.parentNode,!0),t&&tQ.isPressed&&!G.equals(o||new k)&&(e=o.inverse().apply({x:s,y:c}),G.apply(e,e),s=e.x,c=e.y),G.equals(tl)&&(G=null)},ef=function(){var t,e,o,r=1-tQ.edgeResistance,i=ee?tP(eo):0,l=ee?tS(eo):0;tA&&(et.x=en(tG,"px")+"px",et.y=en(tq,"px")+"px",et.renderTransform()),ed(!1),tW.x=tQ.pointerX-i,tW.y=tQ.pointerY-l,G&&G.apply(tW,tW),s=tW.x,c=tW.y,T&&(em(tQ.pointerX,tQ.pointerY),ei(!0)),tw=E(n),a?(es(),p=a.top(),u=a.left()):(eh()?(el(!0,!0),es()):tQ.applyBounds(),tF?(t=n.ownerSVGElement?[et.xOrigin-n.getBBox().x,et.yOrigin-n.getBBox().y]:(tR(n)[te]||"0 0").split(" "),b=tQ.rotationOrigin=E(n).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),el(!0,!0),e=tQ.pointerX-b.x-i,o=b.y-tQ.pointerY+l,u=tQ.x,p=tQ.y=Math.atan2(o,e)*ti):(p=en(tq,"px"),u=en(tG,"px"))),d&&r&&(u>g?u=g+(u-g)/r:u<x&&(u=x-(x-u)/r),!tF&&(p>y?p=y+(p-y)/r:p<m&&(p=m-(m-p)/r))),tQ.startX=u=tn(u),tQ.startY=p=tn(p)},eh=function(){return tQ.tween&&tQ.tween.isActive()},eg=function(){!L.parentNode||eh()||tQ.isDragging||L.parentNode.removeChild(L)},ex=function(t,e){var i;if(!l||tQ.isPressed||!t||("mousedown"===t.type||"pointerdown"===t.type)&&!e&&ta()-t7<30&&A[tQ.pointerEvent.type]){tm&&t&&l&&tE(t);return}if(q=eh(),tY=!1,tQ.pointerEvent=t,A[t.type]?(tT(j=~t.type.indexOf("touch")?t.currentTarget||t.target:eo,"touchend",ev),tT(j,"touchmove",ey),tT(j,"touchcancel",ev),tT(eo,"touchstart",tM)):(j=null,tT(eo,"mousemove",ey)),tt=null,(!F||!j)&&(tT(eo,"mouseup",ev),t&&t.target&&tT(t.target,"mouseup",ev)),z=t8.call(tQ,t.target)&&!1===r.dragClickables&&!e){tT(t.target,"change",ev),tI(tQ,"pressInit","onPressInit"),tI(tQ,"press","onPress"),tz(t0,!0),tm=!1;return}if((tm=!(Q=!!j&&t$!==tZ&&!1!==tQ.vars.allowNativeTouchScrolling&&(!tQ.vars.allowContextMenu||!t||!t.ctrlKey&&!(t.which>2))&&(t$?"y":"x"))&&!tQ.allowEventDefault)&&(tE(t),tT(Y,"touchforcechange",tE)),t.changedTouches?w=(t=v=t.changedTouches[0]).identifier:t.pointerId?w=t.pointerId:v=w=null,U++,tv(ei),c=tQ.pointerY=t.pageY,s=tQ.pointerX=t.pageX,tI(tQ,"pressInit","onPressInit"),(Q||tQ.autoScroll)&&t_(n.parentNode),!n.parentNode||!tQ.autoScroll||a||tF||!n.parentNode._gsMaxScrollX||L.parentNode||n.getBBox||(L.style.width=n.parentNode.scrollWidth+"px",n.parentNode.appendChild(L)),ef(),tQ.tween&&tQ.tween.kill(),tQ.isThrowing=!1,X.killTweensOf(a||n,t1,!0),a&&X.killTweensOf(n,{scrollTo:1},!0),tQ.tween=tQ.lockedAxis=null,!r.zIndexBoost&&(tF||a||!1===r.zIndexBoost)||(n.style.zIndex=o.zIndex++),tQ.isPressed=!0,f=!!(r.onDrag||tQ._listeners.drag),h=!!(r.onMove||tQ._listeners.move),!1!==r.cursor||r.activeCursor)for(i=t0.length;--i>-1;)X.set(t0[i],{cursor:r.activeCursor||r.cursor||("grab"===W?"grabbing":W)});tI(tQ,"press","onPress")},ey=function(t){var e,o,r,i,a,u,p=t;if(!l||B||!tQ.isPressed||!t){tm&&t&&l&&tE(t);return}if(tQ.pointerEvent=t,e=t.changedTouches){if((t=e[0])!==v&&t.identifier!==w){for(i=e.length;--i>-1&&(t=e[i]).identifier!==w&&t.target!==n;);if(i<0)return}}else if(t.pointerId&&w&&t.pointerId!==w)return;if(j&&Q&&!tt&&(tW.x=t.pageX-(ee?tP(eo):0),tW.y=t.pageY-(ee?tS(eo):0),G&&G.apply(tW,tW),o=tW.x,r=tW.y,((a=Math.abs(o-s))!==(u=Math.abs(r-c))&&(a>tJ||u>tJ)||I&&Q===tt)&&(tt=a>u&&t$?"x":"y",Q&&tt!==Q&&tT(Y,"touchforcechange",tE),!1!==tQ.vars.lockAxisOnTouchScroll&&t$&&tZ&&(tQ.lockedAxis="x"===tt?"y":"x",$(tQ.vars.onLockAxis)&&tQ.vars.onLockAxis.call(tQ,p)),I&&Q===tt))){ev(p);return}tQ.allowEventDefault||Q&&(!tt||Q===tt)||!1===p.cancelable?tm&&(tm=!1):(tE(p),tm=!0),tQ.autoScroll&&(t3=!0),em(t.pageX,t.pageY,h)},em=function(t,e,n){var o,r,i,l,a,f,h=1-tQ.dragResistance,v=1-tQ.edgeResistance,w=tQ.pointerX,k=tQ.pointerY,E=p,X=tQ.x,Y=tQ.y,M=tQ.endX,S=tQ.endY,P=tQ.endRotation,L=T;tQ.pointerX=t,tQ.pointerY=e,ee&&(t-=tP(eo),e-=tS(eo)),tF?(l=Math.atan2(b.y-e,t-b.x)*ti,(a=tQ.y-l)>180?(p-=360,tQ.y=l):a<-180&&(p+=360,tQ.y=l),tQ.x!==u||Math.abs(p-l)>tJ?(tQ.y=l,i=u+(p-l)*h):i=u):(G&&(f=t*G.a+e*G.c+G.e,e=t*G.b+e*G.d+G.f,t=f),(r=e-c)<tJ&&r>-tJ&&(r=0),(o=t-s)<tJ&&o>-tJ&&(o=0),(tQ.lockAxis||tQ.lockedAxis)&&(o||r)&&(!(f=tQ.lockedAxis)&&(tQ.lockedAxis=f=t$&&Math.abs(o)>Math.abs(r)?"y":tZ?"x":null,f&&$(tQ.vars.onLockAxis)&&tQ.vars.onLockAxis.call(tQ,tQ.pointerEvent)),"y"===f?r=0:"x"===f&&(o=0)),i=tn(u+o*h),l=tn(p+r*h)),(C||N||O)&&(tQ.x!==i||tQ.y!==l&&!tF)&&(O&&(tf.x=i,tf.y=l,f=O(tf),i=tn(f.x),l=tn(f.y)),C&&(i=tn(C(i))),N&&(l=tn(N(l)))),d&&(i>g?i=g+Math.round((i-g)*v):i<x&&(i=x+Math.round((i-x)*v)),!tF&&(l>y?l=Math.round(y+(l-y)*v):l<m&&(l=Math.round(m+(l-m)*v)))),tQ.x===i&&(tQ.y===l||tF)||(tF?(tQ.endRotation=tQ.x=tQ.endX=i,T=!0):(tZ&&(tQ.y=tQ.endY=l,T=!0),t$&&(tQ.x=tQ.endX=i,T=!0)),n&&!1===tI(tQ,"move","onMove")?(tQ.pointerX=w,tQ.pointerY=k,p=E,tQ.x=X,tQ.y=Y,tQ.endX=M,tQ.endY=S,tQ.endRotation=P,T=L):!tQ.isDragging&&tQ.isPressed&&(tQ.isDragging=tY=!0,tI(tQ,"dragstart","onDragStart")))},ev=function t(e,o){if(!l||!tQ.isPressed||e&&null!=w&&!o&&(e.pointerId&&e.pointerId!==w&&e.target!==n||e.changedTouches&&!tX(e.changedTouches,w))){tm&&e&&l&&tE(e);return}tQ.isPressed=!1;var i,a,s,c,u=e,p=tQ.isDragging,d=tQ.vars.allowContextMenu&&e&&(e.ctrlKey||e.which>2),f=X.delayedCall(.001,eg);if(j?(tk(j,"touchend",t),tk(j,"touchmove",ey),tk(j,"touchcancel",t),tk(eo,"touchstart",tM)):tk(eo,"mousemove",ey),tk(Y,"touchforcechange",tE),(!F||!j)&&(tk(eo,"mouseup",t),e&&e.target&&tk(e.target,"mouseup",t)),T=!1,p&&(t2=td=ta(),tQ.isDragging=!1),tb(ei),z&&!d){e&&(tk(e.target,"change",t),tQ.pointerEvent=u),tz(t0,!1),tI(tQ,"release","onRelease"),tI(tQ,"click","onClick"),z=!1;return}for(a=t0.length;--a>-1;)tO(t0[a],"cursor",r.cursor||(!1!==r.cursor?W:null));if(U--,e){if((i=e.changedTouches)&&(e=i[0])!==v&&e.identifier!==w){for(a=i.length;--a>-1&&(e=i[a]).identifier!==w&&e.target!==n;);if(a<0&&!o)return}tQ.pointerEvent=u,tQ.pointerX=e.pageX,tQ.pointerY=e.pageY}return d&&u?(tE(u),tm=!0,tI(tQ,"release","onRelease")):u&&!p?(tm=!1,q&&(r.snap||r.bounds)&&ep(r.inertia||r.throwProps),tI(tQ,"release","onRelease"),(!I||"touchmove"!==u.type)&&-1===u.type.indexOf("cancel")&&(tI(tQ,"click","onClick"),ta()-t7<300&&tI(tQ,"doubleclick","onDoubleClick"),c=u.target||n,t7=ta(),I||u.defaultPrevented||X.delayedCall(.05,function(){t7!==ts&&tQ.enabled()&&!tQ.isPressed&&!u.defaultPrevented&&(c.click?c.click():eo.createEvent&&((s=eo.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,Y,1,tQ.pointerEvent.screenX,tQ.pointerEvent.screenY,tQ.pointerX,tQ.pointerY,!1,!1,!1,!1,0,null),c.dispatchEvent(s)))}))):(ep(r.inertia||r.throwProps),!tQ.allowEventDefault&&u&&(!1!==r.dragClickables||!t8.call(tQ,u.target))&&p&&(!Q||tt&&Q===tt)&&!1!==u.cancelable?(tm=!0,tE(u)):tm=!1,tI(tQ,"release","onRelease")),eh()&&f.duration(tQ.tween.duration()),p&&tI(tQ,"dragend","onDragEnd"),!0},ew=function(t){if(t&&tQ.isDragging&&!a){var e=t.target||n.parentNode,o=e.scrollLeft-e._gsScrollX,r=e.scrollTop-e._gsScrollY;(o||r)&&(G?(s-=o*G.a+r*G.c,c-=r*G.d+o*G.b):(s-=o,c-=r),e._gsScrollX+=o,e._gsScrollY+=r,em(tQ.pointerX,tQ.pointerY))}},eb=function(t){var e=ta(),n=e-t7<100,o=e-t2<50,r=n&&ts===t7,i=tQ.pointerEvent&&tQ.pointerEvent.defaultPrevented,l=n&&tp===t7,a=t.isTrusted||null==t.isTrusted&&n&&r;if((r||o&&!1!==tQ.vars.suppressClickOnDrag)&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),n&&!(tQ.pointerEvent&&tQ.pointerEvent.defaultPrevented)&&(!r||a&&!l)){a&&r&&(tp=t7),ts=t7;return}(tQ.isPressed||o||n)&&(!a||!t.detail||!n||i)&&tE(t),n||o||tY||(t&&t.target&&(tQ.pointerEvent=t),tI(tQ,"click","onClick"))},eT=function(t){return G?{x:t.x*G.a+t.y*G.c+G.e,y:t.x*G.b+t.y*G.d+G.f}:{x:t.x,y:t.y}};return(P=o.get(n))&&P.kill(),i.startDrag=function(t,e){var o,r,i,l;ex(t||tQ.pointerEvent,!0),e&&!tQ.hitTest(t||tQ.pointerEvent)&&(o=tB(t||tQ.pointerEvent),r=tB(n),i=eT({x:o.left+o.width/2,y:o.top+o.height/2}),l=eT({x:r.left+r.width/2,y:r.top+r.height/2}),s-=i.x-l.x,c-=i.y-l.y),tQ.isDragging||(tQ.isDragging=tY=!0,tI(tQ,"dragstart","onDragStart"))},i.drag=ey,i.endDrag=function(t){return ev(t||tQ.pointerEvent,!0)},i.timeSinceDrag=function(){return tQ.isDragging?0:(ta()-t2)/1e3},i.timeSinceClick=function(){return(ta()-t7)/1e3},i.hitTest=function(t,e){return o.hitTest(tQ.target,t,e)},i.getDirection=function(t,e){var o,r,i,l,a,s,c="velocity"===t&&H?t:Z(t)&&!tF?"element":"start";return("element"===c&&(a=tB(tQ.target),s=tB(t)),o="start"===c?tQ.x-u:"velocity"===c?H.getVelocity(n,tG):a.left+a.width/2-(s.left+s.width/2),tF)?o<0?"counter-clockwise":"clockwise":(e=e||2,r="start"===c?tQ.y-p:"velocity"===c?H.getVelocity(n,tq):a.top+a.height/2-(s.top+s.height/2),l=(i=Math.abs(o/r))<1/e?"":o<0?"left":"right",i<e&&(""!==l&&(l+="-"),l+=r<0?"up":"down"),l)},i.applyBounds=function(t,e){var o,i,l,a,s,c;if(t&&r.bounds!==t)return r.bounds=t,tQ.update(!0,e);if(el(!0),es(),d&&!eh()){if(o=tQ.x,i=tQ.y,o>g?o=g:o<x&&(o=x),i>y?i=y:i<m&&(i=m),(tQ.x!==o||tQ.y!==i)&&(l=!0,tQ.x=tQ.endX=o,tF?tQ.endRotation=o:tQ.y=tQ.endY=i,T=!0,ei(!0),tQ.autoScroll&&!tQ.isDragging))for(t_(n.parentNode),a=n,th.scrollTop=null!=Y.pageYOffset?Y.pageYOffset:null!=eo.documentElement.scrollTop?eo.documentElement.scrollTop:eo.body.scrollTop,th.scrollLeft=null!=Y.pageXOffset?Y.pageXOffset:null!=eo.documentElement.scrollLeft?eo.documentElement.scrollLeft:eo.body.scrollLeft;a&&!c;)s=(c=tD(a.parentNode))?th:a.parentNode,tZ&&s.scrollTop>s._gsMaxScrollY&&(s.scrollTop=s._gsMaxScrollY),t$&&s.scrollLeft>s._gsMaxScrollX&&(s.scrollLeft=s._gsMaxScrollX),a=s;tQ.isThrowing&&(l||tQ.endX>g||tQ.endX<x||tQ.endY>y||tQ.endY<m)&&ep(r.inertia||r.throwProps,l)}return tQ},i.update=function(t,e,o){if(e&&tQ.isPressed){var r=E(n),i=tw.apply({x:tQ.x-u,y:tQ.y-p}),l=E(n.parentNode,!0);l.apply({x:r.e-i.x,y:r.f-i.y},i),tQ.x-=i.x-l.e,tQ.y-=i.y-l.f,ei(!0),ef()}var a=tQ.x,s=tQ.y;return ed(!e),t?tQ.applyBounds():(T&&o&&ei(!0),el(!0)),e&&(em(tQ.pointerX,tQ.pointerY),T&&ei(!0)),tQ.isPressed&&!e&&(t$&&Math.abs(a-tQ.x)>.01||tZ&&Math.abs(s-tQ.y)>.01&&!tF)&&ef(),tQ.autoScroll&&(t_(n.parentNode,tQ.isDragging),t3=tQ.isDragging,ei(!0),tL(n,ew),tC(n,ew)),tQ},i.enable=function(t){var e,o,i,s={lazy:!0};if(!1!==r.cursor&&(s.cursor=r.cursor||W),X.utils.checkPrefix("touchCallout")&&(s.touchCallout="none"),"soft"!==t){for(ty(t0,t$===tZ?"none":r.allowNativeTouchScrolling&&n.scrollHeight===n.clientHeight==(n.scrollWidth===n.clientHeight)||r.allowEventDefault?"manipulation":t$?"pan-y":"pan-x"),o=t0.length;--o>-1;)i=t0[o],F||tT(i,"mousedown",ex),tT(i,"touchstart",ex),tT(i,"click",eb,!0),X.set(i,s),i.getBBox&&i.ownerSVGElement&&t$!==tZ&&X.set(i.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":t$?"pan-y":"pan-x"}),r.allowContextMenu||tT(i,"contextmenu",er);tz(t0,!1)}return tC(n,ew),l=!0,H&&"soft"!==t&&H.track(a||n,tA?"x,y":tF?"rotation":"top,left"),n._gsDragID=e="d"+tu++,tc[e]=tQ,a&&(a.enable(),a.element._gsDragID=e),(r.bounds||tF)&&ef(),r.bounds&&tQ.applyBounds(),tQ},i.disable=function(t){for(var e,o=tQ.isDragging,r=t0.length;--r>-1;)tO(t0[r],"cursor",null);if("soft"!==t){for(ty(t0,null),r=t0.length;--r>-1;)tO(e=t0[r],"touchCallout",null),tk(e,"mousedown",ex),tk(e,"touchstart",ex),tk(e,"click",eb,!0),tk(e,"contextmenu",er);tz(t0,!0),j&&(tk(j,"touchcancel",ev),tk(j,"touchend",ev),tk(j,"touchmove",ey)),tk(eo,"mouseup",ev),tk(eo,"mousemove",ey)}return tL(n,ew),l=!1,H&&"soft"!==t&&H.untrack(a||n,tA?"x,y":tF?"rotation":"top,left"),a&&a.disable(),tb(ei),tQ.isDragging=tQ.isPressed=z=!1,o&&tI(tQ,"dragend","onDragEnd"),tQ},i.enabled=function(t,e){return arguments.length?t?tQ.enable(e):tQ.disable(e):l},i.kill=function(){return tQ.isThrowing=!1,tQ.tween&&tQ.tween.kill(),tQ.disable(),X.set(t0,{clearProps:"userSelect"}),delete tc[n._gsDragID],tQ},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~tN.indexOf("scroll")&&(a=i.scrollProxy=new tj(n,tx({onKill:function(){tQ.isPressed&&ev(null)}},r)),n.style.overflowY=tZ&&!R?"auto":"hidden",n.style.overflowX=t$&&!R?"auto":"hidden",n=a.content),tF?t1.rotation=1:(t$&&(t1[tG]=1),tZ&&(t1[tq]=1)),et.force3D=!("force3D"in r)||r.force3D,K(e(i)),i.enable(),i}return(n=o).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t,o.register=function(t){X=t,tU()},o.create=function(t,e){return D||tU(!0),_(t).map(function(t){return new o(t,e)})},o.get=function(t){return tc[(_(t)[0]||{})._gsDragID]},o.timeSinceDrag=function(){return(ta()-td)/1e3},o.hitTest=function(t,e,n){if(t===e)return!1;var o,r,i,l=tB(t),a=tB(e),s=l.top,c=l.left,u=l.right,p=l.bottom,d=l.width,f=l.height,h=a.left>u||a.right<c||a.top>p||a.bottom<s;return h||!n?!h:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,a.left),top:Math.max(s,a.top)}).width=Math.min(u,a.right)-o.left,o.height=Math.min(p,a.bottom)-o.top,!(o.width<0)&&!(o.height<0)&&(i?(n*=.01,(r=o.width*o.height)>=d*f*n||r>=a.width*a.height*n):o.width>n&&o.height>n))},o}(function(){function t(t){this._listeners={},this.target=t||this}var e=t.prototype;return e.addEventListener=function(t,e){var n=this._listeners[t]||(this._listeners[t]=[]);~n.indexOf(e)||n.push(e)},e.removeEventListener=function(t,e){var n=this._listeners[t],o=n&&n.indexOf(e);o>=0&&n.splice(o,1)},e.dispatchEvent=function(t){var e,n=this;return(this._listeners[t]||[]).forEach(function(o){return!1===o.call(n,{type:t,target:n.target})&&(e=!1)}),e},t}());(function(t,e){for(var n in e)n in t||(t[n]=e[n])})(tG.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),tG.zIndex=1e3,tG.version="3.11.5",q()&&X.registerPlugin(tG),t.Draggable=tG,t.default=tG,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}(e)},39664:function(t,e){var n,o,r,i,l,a,s,c,u,p,d,f,h,g,x,y,m,v,w,b;n=e,p=function(){return"undefined"!=typeof window},d=function(){return o||p()&&(o=window.gsap)&&o.registerPlugin&&o},f=function(t){return"string"==typeof t},h=function(t){return"function"==typeof t},g=function(t,e){var n="x"===e?"Width":"Height",o="scroll"+n,r="client"+n;return t===i||t===l||t===a?Math.max(l[o],a[o])-(i["inner"+n]||l[r]||a[r]):t[o]-t["offset"+n]},x=function(t,e){var n="scroll"+("x"===e?"Left":"Top");return t===i&&(null!=t.pageXOffset?n="page"+e.toUpperCase()+"Offset":t=null!=l[n]?l:a),function(){return t[n]}},y=function(t,e,n,o){if(h(t)&&(t=t(e,n,o)),"object"!=typeof t)return f(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var r,i={};for(r in t)i[r]="onAutoKill"!==r&&h(t[r])?t[r](e,n,o):t[r];return i},m=function(t,e){if(!(t=s(t)[0])||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var n=t.getBoundingClientRect(),o=!e||e===i||e===a,r=o?{top:l.clientTop-(i.pageYOffset||l.scrollTop||a.scrollTop||0),left:l.clientLeft-(i.pageXOffset||l.scrollLeft||a.scrollLeft||0)}:e.getBoundingClientRect(),c={x:n.left-r.left,y:n.top-r.top};return!o&&e&&(c.x+=x(e,"x")(),c.y+=x(e,"y")()),c},v=function(t,e,n,o,r){return isNaN(t)||"object"==typeof t?f(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+o-r:"max"===t?g(e,n)-r:Math.min(g(e,n),m(t,e)[n]-r):parseFloat(t)-r},w=function(){o=d(),p()&&o&&"undefined"!=typeof document&&document.body&&(i=window,a=document.body,l=document.documentElement,s=o.utils.toArray,o.config({autoKillThreshold:7}),c=o.config(),r=1)},(b={version:"3.11.5",name:"scrollTo",rawVars:1,register:function(t){o=t,w()},init:function(t,e,n,l,a){r||w();var s=this,c=o.getProperty(t,"scrollSnapType");s.isWin=t===i,s.target=t,s.tween=n,e=y(e,l,t,a),s.vars=e,s.autoKill=!!e.autoKill,s.getX=x(t,"x"),s.getY=x(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),u||(u=o.core.globals().ScrollTrigger),"smooth"===o.getProperty(t,"scrollBehavior")&&o.set(t,{scrollBehavior:"auto"}),c&&"none"!==c&&(s.snap=1,s.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),null!=e.x?(s.add(s,"x",s.x,v(e.x,t,"x",s.x,e.offsetX||0),l,a),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,v(e.y,t,"y",s.y,e.offsetY||0),l,a),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var n,o,r,l,a,s=e._pt,p=e.target,d=e.tween,f=e.autoKill,h=e.xPrev,x=e.yPrev,y=e.isWin,m=e.snap,v=e.snapInline;s;)s.r(t,s.d),s=s._next;n=y||!e.skipX?e.getX():h,r=(o=y||!e.skipY?e.getY():x)-x,l=n-h,a=c.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),f&&(!e.skipX&&(l>a||l<-a)&&n<g(p,"x")&&(e.skipX=1),!e.skipY&&(r>a||r<-a)&&o<g(p,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(d.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(d,e.vars.onAutoKillParams||[]))),y?i.scrollTo(e.skipX?n:e.x,e.skipY?o:e.y):(e.skipY||(p.scrollTop=e.y),e.skipX||(p.scrollLeft=e.x)),m&&(1===t||0===t)&&(o=p.scrollTop,n=p.scrollLeft,v?p.style.scrollSnapType=v:p.style.removeProperty("scroll-snap-type"),p.scrollTop=o+1,p.scrollLeft=n+1,p.scrollTop=o,p.scrollLeft=n),e.xPrev=e.x,e.yPrev=e.y,u&&u.update()},kill:function(t){var e="scrollTo"===t;(e||"scrollTo_x"===t)&&(this.skipX=1),(e||"scrollTo_y"===t)&&(this.skipY=1)}}).max=g,b.getOffset=m,b.buildGetter=x,d()&&o.registerPlugin(b),n.ScrollToPlugin=b,n.default=b,Object.defineProperty(n,"__esModule",{value:!0})}}]);