ecloud-spark 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -47
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -47
- package/dist/esm/index.js.map +1 -1
- package/package.json +10 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import*as t from"react";import e,{forwardRef as n,useRef as r,createContext as i,useLayoutEffect as o,useEffect as s,useContext as a,useInsertionEffect as u,useCallback as l,useMemo as c,createElement as h,useId as f,useState as p,cloneElement as d,Children as m,isValidElement as v}from"react";var g=function(){return g=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},g.apply(this,arguments)};function y(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function _(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;_(".spark-button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-align: center;\n text-decoration: none;\n transition: 0.3s color, 0.3s background-color; }\n .spark-button:hover {\n background-color: black;\n color: white; }\n");var x=n((function(t,n){var r=t.children,i=t.className,o=void 0===i?"":i,s=t.as,a=void 0===s?"button":s,u=y(t,["children","className","as"]);return e.createElement(a,g({ref:n,className:"spark-button ".concat(o)},u),r)}));function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
2
|
-
/*!
|
|
3
|
-
* GSAP 3.12.2
|
|
4
|
-
* https://greensock.com
|
|
5
|
-
*
|
|
6
|
-
* @license Copyright 2008-2023, GreenSock. All rights reserved.
|
|
7
|
-
* Subject to the terms at https://greensock.com/standard-license or for
|
|
8
|
-
* Club GreenSock members, the agreement issued with that membership.
|
|
9
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
10
|
-
*/var T,k,E,P,S,A,C,M,O,D,R,L={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},V={duration:.5,overwrite:!1,delay:0},j=1e8,B=1e-8,F=2*Math.PI,I=F/4,z=0,N=Math.sqrt,U=Math.cos,W=Math.sin,$=function(t){return"string"==typeof t},Y=function(t){return"function"==typeof t},H=function(t){return"number"==typeof t},q=function(t){return void 0===t},X=function(t){return"object"==typeof t},G=function(t){return!1!==t},Z=function(){return"undefined"!=typeof window},K=function(t){return Y(t)||$(t)},Q="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},J=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,nt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,rt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,it=/[+-]=-?[.\d]+/,ot=/[^,'"\[\]\s]+/gi,st=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,at={},ut={},lt=function(t){return(ut=Ft(t,at))&&In},ct=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ht=function(t,e){return!e&&console.warn(t)},ft=function(t,e){return t&&(at[t]=e)&&ut&&(ut[t]=e)||at},pt=function(){return 0},dt={suppressEvents:!0,isStart:!0,kill:!1},mt={suppressEvents:!0,kill:!1},vt={suppressEvents:!0},gt={},yt=[],_t={},xt={},bt={},wt=30,Tt=[],kt="",Et=function(t){var e,n,r=t[0];if(X(r)||Y(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Tt.length;n--&&!Tt[n].targetTest(r););e=Tt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Qe(t[n],e)))||t.splice(n,1);return t},Pt=function(t){return t._gsap||Et(me(t))[0]._gsap},St=function(t,e,n){return(n=t[e])&&Y(n)?t[e]():q(n)&&t.getAttribute&&t.getAttribute(e)||n},At=function(t,e){return(t=t.split(",")).forEach(e)||t},Ct=function(t){return Math.round(1e5*t)/1e5||0},Mt=function(t){return Math.round(1e7*t)/1e7||0},Ot=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},Dt=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Rt=function(){var t,e,n=yt.length,r=yt.slice(0);for(_t={},yt.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Lt=function(t,e,n,r){yt.length&&!k&&Rt(),t.render(e,n,r||k&&e<0&&(t._initted||t._startAt)),yt.length&&!k&&Rt()},Vt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ot).length<2?e:$(t)?t.trim():t},jt=function(t){return t},Bt=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Ft=function(t,e){for(var n in e)t[n]=e[n];return t},It=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=X(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},zt=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Nt=function(t){var e,n=t.parent||P,r=t.keyframes?(e=J(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Bt;if(G(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Ut=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,s=t[r];if(i)for(o=e[i];s&&s[i]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Wt=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,o=e._next;i?i._next=o:t[n]===e&&(t[n]=o),o?o._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},$t=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Yt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Ht=function(t,e,n,r){return t._startAt&&(k?t._startAt.revert(mt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},qt=function t(e){return!e||e._ts&&t(e.parent)},Xt=function(t){return t._repeat?Gt(t._tTime,t=t.duration()+t._rDelay)*t:0},Gt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Zt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Kt=function(t){return t._end=Mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||B)||0))},Qt=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Mt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Kt(t),n._dirty||Yt(n,t)),t},Jt=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Zt(t.rawTime(),e),(!e._dur||he(0,e.totalDuration(),n)-e._tTime>B)&&e.render(n,!0)),Yt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},te=function(t,e,n,r){return e.parent&&$t(e),e._start=Mt((H(n)?n:n||t!==P?ue(t,n,e):t._time)+e._delay),e._end=Mt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ut(t,e,"_first","_last",t._sort?"_start":0),ie(e)||(t._recent=e),r||Jt(t,e),t._ts<0&&Qt(t,t._tTime),t},ee=function(t,e){return(at.ScrollTrigger||ct("scrollTrigger",e))&&at.ScrollTrigger.create(e,t)},ne=function(t,e,n,r,i){return an(t,e,i),t._initted?!n&&t._pt&&!k&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&O!==Ie.frame?(yt.push(t),t._lazy=[i,r],1):void 0:1},re=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ie=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},oe=function(t,e,n,r){var i=t._repeat,o=Mt(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:Mt(o*(i+1)+t._rDelay*i):o,s>0&&!r&&Qt(t,t._tTime=t._tDur*s),t.parent&&Kt(t),n||Yt(t.parent,t),t},se=function(t){return t instanceof tn?Yt(t):oe(t,t._dur)},ae={_start:0,endTime:pt,totalDuration:pt},ue=function t(e,n,r){var i,o,s,a=e.labels,u=e._recent||ae,l=e.duration()>=j?u.endTime(!1):e._dur;return $(n)&&(isNaN(n)||n in a)?(o=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?u:r).totalDuration()/100:1)):i<0?(n in a||(a[n]=l),a[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(o=o/100*(J(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:l+o)):null==n?l:+n},le=function(t,e,n){var r,i,o=H(e[1]),s=(o?2:1)+(t<2?0:1),a=e[s];if(o&&(a.duration=e[1]),a.parent=n,t){for(r=a,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=G(i.vars.inherit)&&i.parent;a.immediateRender=G(r.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new fn(e[0],a,e[s+1])},ce=function(t,e){return t||0===t?e(t):e},he=function(t,e,n){return n<t?t:n>e?e:n},fe=function(t,e){return $(t)&&(e=st.exec(t))?e[1]:""},pe=[].slice,de=function(t,e){return t&&X(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&X(t[0]))&&!t.nodeType&&t!==S},me=function(t,e,n){return E&&!e&&E.selector?E.selector(t):!$(t)||n||!A&&ze()?J(t)?function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return $(t)&&!e||de(t,1)?(r=n).push.apply(r,me(t)):n.push(t)}))||n}(t,n):de(t)?pe.call(t,0):t?[t]:[]:pe.call((e||C).querySelectorAll(t),0)},ve=function(t){return t=me(t)[0]||ht("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return me(e,n.querySelectorAll?n:n===t?ht("Invalid scope")||C.createElement("div"):t)}},ge=function(t){return t.sort((function(){return.5-Math.random()}))},ye=function(t){if(Y(t))return t;var e=X(t)?t:{each:t},n=qe(e.ease),r=e.from||0,i=parseFloat(e.base)||0,o={},s=r>0&&r<1,a=isNaN(r)||s,u=e.axis,l=r,c=r;return $(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!s&&a&&(l=r[0],c=r[1]),function(t,s,h){var f,p,d,m,v,g,y,_,x,b=(h||e).length,w=o[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,j])[1])){for(y=-1e8;y<(y=h[x++].getBoundingClientRect().left)&&x<b;);x--}for(w=o[b]=[],f=a?Math.min(x,b)*l-.5:r%x,p=x===j?0:a?b*c/x-.5:r/x|0,y=0,_=j,g=0;g<b;g++)d=g%x-f,m=p-(g/x|0),w[g]=v=u?Math.abs("y"===u?m:d):N(d*d+m*m),v>y&&(y=v),v<_&&(_=v);"random"===r&&ge(w),w.max=y-_,w.min=_,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:u?"y"===u?b/x:x:Math.max(x,b/x))||0)*("edges"===r?-1:1),w.b=b<0?i-b:i,w.u=fe(e.amount||e.each)||0,n=n&&b<0?Ye(n):n}return b=(w[t]-w.min)/w.max||0,Mt(w.b+(n?n(b):b)*w.v)+w.u}},_e=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Mt(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(H(n)?0:fe(n))}},xe=function(t,e){var n,r,i=J(t);return!i&&X(t)&&(n=i=t.radius||j,t.values?(t=me(t.values),(r=!H(t[0]))&&(n*=n)):t=_e(t.increment)),ce(e,i?Y(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,o,s=parseFloat(r?e.x:e),a=parseFloat(r?e.y:0),u=j,l=0,c=t.length;c--;)(i=r?(i=t[c].x-s)*i+(o=t[c].y-a)*o:Math.abs(t[c]-s))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||H(e)?l:l+fe(e)}:_e(t))},be=function(t,e,n,r){return ce(J(t)?!e:!0===n?!!(n=0):!r,(function(){return J(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},we=function(t,e,n){return ce(n,(function(n){return t[~~e(n)]}))},Te=function(t){for(var e,n,r,i,o=0,s="";~(e=t.indexOf("random(",o));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?ot:tt),s+=t.substr(o,e-o)+be(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return s+t.substr(o,t.length-o)},ke=function(t,e,n,r,i){var o=e-t,s=r-n;return ce(i,(function(e){return n+((e-t)/o*s||0)}))},Ee=function(t,e,n){var r,i,o,s=t.labels,a=j;for(r in s)(i=s[r]-e)<0==!!n&&i&&a>(i=Math.abs(i))&&(o=r,a=i);return o},Pe=function(t,e,n){var r,i,o,s=t.vars,a=s[e],u=E,l=t._ctx;if(a)return r=s[e+"Params"],i=s.callbackScope||t,n&&yt.length&&Rt(),l&&(E=l),o=r?a.apply(i,r):a.call(i),E=u,o},Se=function(t){return $t(t),t.scrollTrigger&&t.scrollTrigger.kill(!!k),t.progress()<1&&Pe(t,"onInterrupt"),t},Ae=[],Ce=function(t){if(Z()&&t){var e=(t=!t.name&&t.default||t).name,n=Y(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:pt,render:bn,add:on,kill:Tn,modifier:wn,rawVars:0},o={targetTest:0,get:0,getSetter:gn,aliases:{},register:0};if(ze(),t!==r){if(xt[e])return;Bt(r,Bt(zt(t,i),o)),Ft(r.prototype,Ft(i,zt(t,o))),xt[r.prop=e]=r,t.targetTest&&(Tt.push(r),gt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ft(e,r),t.register&&t.register(In,r,Pn)}else t&&Ae.push(t)},Me=255,Oe={aqua:[0,Me,Me],lime:[0,Me,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Me],navy:[0,0,128],white:[Me,Me,Me],olive:[128,128,0],yellow:[Me,Me,0],orange:[Me,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Me,0,0],pink:[Me,192,203],cyan:[0,Me,Me],transparent:[Me,Me,Me,0]},De=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Me+.5|0},Re=function(t,e,n){var r,i,o,s,a,u,l,c,h,f,p=t?H(t)?[t>>16,t>>8&Me,t&Me]:0:Oe.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Oe[t])p=Oe[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+r+r+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Me,p&Me,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Me,t&Me]}else if("hsl"===t.substr(0,3))if(p=f=t.match(tt),e){if(~t.indexOf("="))return p=t.match(et),n&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,a=+p[1]/100,r=2*(u=+p[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),p.length>3&&(p[3]*=1),p[0]=De(s+1/3,r,i),p[1]=De(s,r,i),p[2]=De(s-1/3,r,i);else p=t.match(tt)||Oe.transparent;p=p.map(Number)}return e&&!f&&(r=p[0]/Me,i=p[1]/Me,o=p[2]/Me,u=((l=Math.max(r,i,o))+(c=Math.min(r,i,o)))/2,l===c?s=a=0:(h=l-c,a=u>.5?h/(2-l-c):h/(l+c),s=l===r?(i-o)/h+(i<o?6:0):l===i?(o-r)/h+2:(r-i)/h+4,s*=60),p[0]=~~(s+.5),p[1]=~~(100*a+.5),p[2]=~~(100*u+.5)),n&&p.length<4&&(p[3]=1),p},Le=function(t){var e=[],n=[],r=-1;return t.split(je).forEach((function(t){var i=t.match(nt)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Ve=function(t,e,n){var r,i,o,s,a="",u=(t+a).match(je),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Re(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(o=Le(t),(r=n.c).join(a)!==o.c.join(a)))for(s=(i=t.replace(je,"1").split(nt)).length-1;c<s;c++)a+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(o.length?o:u.length?u:n).shift());if(!i)for(s=(i=t.split(je)).length-1;c<s;c++)a+=i[c]+u[c];return a+i[s]},je=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Oe)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Be=/hsl[a]?\(/,Fe=function(t){var e,n=t.join(" ");if(je.lastIndex=0,je.test(n))return e=Be.test(n),t[1]=Ve(t[1],e),t[0]=Ve(t[0],e,Le(t[1])),!0},Ie=function(){var t,e,n,r,i,o,s=Date.now,a=500,u=33,l=s(),c=l,h=1e3/240,f=h,p=[],d=function n(d){var m,v,g,y,_=s()-c,x=!0===d;if(_>a&&(l+=_-u),((m=(g=(c+=_)-l)-f)>0||x)&&(y=++r.frame,i=g-1e3*r.time,r.time=g/=1e3,f+=m+(m>=h?4:h-m),v=1),x||(t=e(n)),v)for(o=0;o<p.length;o++)p[o](g,i,y,d)};return r={time:0,frame:0,tick:function(){d(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){M&&(!A&&Z()&&(S=A=window,C=S.document||{},at.gsap=In,(S.gsapVersions||(S.gsapVersions=[])).push(In.version),lt(ut||S.GreenSockGlobals||!S.gsap&&S||{}),n=S.requestAnimationFrame,Ae.forEach(Ce)),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},R=1,d(2))},sleep:function(){(n?S.cancelAnimationFrame:clearTimeout)(t),R=0,e=pt},lagSmoothing:function(t,e){a=t||1/0,u=Math.min(e||33,a)},fps:function(t){h=1e3/(t||240),f=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,o,s){t(e,n,o,s),r.remove(i)}:t;return r.remove(t),p[n?"unshift":"push"](i),ze(),i},remove:function(t,e){~(e=p.indexOf(t))&&p.splice(e,1)&&o>=e&&o--},_listeners:p}}(),ze=function(){return!R&&Ie.wake()},Ne={},Ue=/^[\d.\-M][\d.\-,\s]/,We=/["']/g,$e=function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),s=o[0],a=1,u=o.length;a<u;a++)n=o[a],e=a!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(We,"").trim():+r,s=n.substr(e+1).trim();return i},Ye=function(t){return function(e){return 1-t(1-e)}},He=function t(e,n){for(var r,i=e._first;i;)i instanceof tn?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},qe=function(t,e){return t&&(Y(t)?t:Ne[t]||function(t){var e,n,r,i,o=(t+"").split("("),s=Ne[o[0]];return s&&o.length>1&&s.config?s.config.apply(null,~t.indexOf("{")?[$e(o[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)).split(",").map(Vt)):Ne._CE&&Ue.test(t)?Ne._CE("",t):s}(t))||e},Xe=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,o={easeIn:e,easeOut:n,easeInOut:r};return At(t,(function(t){for(var e in Ne[t]=at[t]=o,Ne[i=t.toLowerCase()]=n,o)Ne[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ne[t+"."+e]=o[e]})),o},Ge=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ze=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),s=o/F*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*W((t-s)*o)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Ge(a);return o=F/o,u.config=function(n,r){return t(e,n,r)},u},Ke=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Ge(r);return i.config=function(n){return t(e,n)},i};At("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Xe(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Ne.Linear.easeNone=Ne.none=Ne.Linear.easeIn,Xe("Elastic",Ze("in"),Ze("out"),Ze()),function(t,e){var n=1/e,r=function(r){return r<n?t*r*r:r<.7272727272727273?t*Math.pow(r-1.5/e,2)+.75:r<.9090909090909092?t*(r-=2.25/e)*r+.9375:t*Math.pow(r-2.625/e,2)+.984375};Xe("Bounce",(function(t){return 1-r(1-t)}),r)}(7.5625,2.75),Xe("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Xe("Circ",(function(t){return-(N(1-t*t)-1)})),Xe("Sine",(function(t){return 1===t?1:1-U(t*I)})),Xe("Back",Ke("in"),Ke("out"),Ke()),Ne.SteppedEase=Ne.steps=at.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*he(0,.99999999,t)|0)+i)*n}}},V.ease=Ne["quad.out"],At("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return kt+=t+","+t+"Params,"}));var Qe=function(t,e){this.id=z++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:St,this.set=e?e.getSetter:gn},Je=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,oe(this,+t.duration,1,1),this.data=t.data,E&&(this._ctx=E,E.data.push(this)),R||Ie.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,oe(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ze(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Qt(this,t),!n._dp||n.parent||Jt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&te(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===B||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Lt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Xt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Xt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Gt(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Zt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(he(-Math.abs(this._delay),this._tDur,e),!0),Kt(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ze(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==B&&(this._tTime-=B)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&te(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(G(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Zt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=vt);var e=k;return k=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),k=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,se(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,se(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(ue(this,t),G(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,G(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-B))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Y(t)?t:jt,i=function(){var t=e.then;e.then=null,Y(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Se(this)},t}();Bt(Je.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var tn=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=G(e.sortChildren),P&&te(e.parent||P,b(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&ee(b(r),e.scrollTrigger),r}w(e,t);var n=e.prototype;return n.to=function(t,e,n){return le(0,arguments,this),this},n.from=function(t,e,n){return le(1,arguments,this),this},n.fromTo=function(t,e,n,r){return le(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Nt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new fn(t,e,ue(this,n),1),this},n.call=function(t,e,n){return te(this,fn.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,o,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=s,n.parent=this,new fn(t,n,ue(this,i)),this},n.staggerFrom=function(t,e,n,r,i,o,s){return n.runBackwards=1,Nt(n).immediateRender=G(n.immediateRender),this.staggerTo(t,e,n,r,i,o,s)},n.staggerFromTo=function(t,e,n,r,i,o,s,a){return r.startAt=n,Nt(r).immediateRender=G(r.immediateRender),this.staggerTo(t,e,r,i,o,s,a)},n.render=function(t,e,n){var r,i,o,s,a,u,l,c,h,f,p,d,m=this._time,v=this._dirty?this.totalDuration():this._tDur,g=this._dur,y=t<=0?0:Mt(t),_=this._zTime<0!=t<0&&(this._initted||!g);if(this!==P&&y>v&&t>=0&&(y=v),y!==this._tTime||n||_){if(m!==this._time&&g&&(y+=this._time-m,t+=this._time-m),r=y,h=this._start,u=!(c=this._ts),_&&(g||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,a=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,n);if(r=Mt(y%a),y===v?(s=this._repeat,r=g):((s=~~(y/a))&&s===y/a&&(r=g,s--),r>g&&(r=g)),f=Gt(this._tTime,a),!m&&this._tTime&&f!==s&&this._tTime-f*a-this._dur<=0&&(f=s),p&&1&s&&(r=g-r,d=1),s!==f&&!this._lock){var x=p&&1&f,b=x===(p&&1&s);if(s<f&&(x=!x),m=x?0:y%g?g:y,this._lock=1,this.render(m||(d?0:Mt(s*a)),e,!g)._lock=0,this._tTime=y,!e&&this.parent&&Pe(this,"onRepeat"),this.vars.repeatRefresh&&!d&&(this.invalidate()._lock=1),m&&m!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,v=this._tDur,b&&(this._lock=2,m=x?g:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!d&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;He(this,d)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Mt(m),Mt(r)),l&&(y-=r-(r=l._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&!s&&(Pe(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(o=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){l=0,o&&(y+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var w=t<0?t:r;i;){if(o=i._prev,(i._act||w<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(w-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(w-i._start)*i._ts,e,n||k&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,o&&(y+=this._zTime=w?-1e-8:B);break}}i=o}}if(l&&!e&&(this.pause(),l.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,Kt(this),this.render(t,e,n);this._onUpdate&&!e&&Pe(this,"onUpdate",!0),(y===v&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!g)&&(y===v&&this._ts>0||!y&&this._ts<0)&&$t(this,1),e||t<0&&!m||!y&&!m&&v||(Pe(this,y===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<v&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(H(e)||(e=ue(this,e,t)),!(t instanceof Je)){if(J(t))return t.forEach((function(t){return n.add(t,e)})),this;if($(t))return this.addLabel(t,e);if(!Y(t))return this;t=fn.delayedCall(0,t)}return this!==t?te(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],o=this._first;o;)o._start>=r&&(o instanceof fn?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return $(t)?this.removeLabel(t):Y(t)?this.killTweensOf(t):(Wt(this,t),t===this._recent&&(this._recent=this._last),Yt(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mt(Ie.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=ue(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=fn.delayedCall(0,e||pt,n);return r.data="isPause",this._hasPause=1,te(this,r,ue(this,t))},n.removePause=function(t){var e=this._first;for(t=ue(this,t);e;)e._start===t&&"isPause"===e.data&&$t(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)en!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=me(t),o=this._first,s=H(e);o;)o instanceof fn?Dt(o._targets,i)&&(s?(!en||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=ue(r,t),o=e,s=o.startAt,a=o.onStart,u=o.onStartParams,l=o.immediateRender,c=fn.to(r,Bt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||B,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());c._dur!==t&&oe(c,t,0,1).render(c._time,!0,!0),n=1}a&&a.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Bt({startAt:{time:ue(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Ee(this,ue(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Ee(this,ue(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return Yt(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Yt(this)},n.totalDuration=function(t){var e,n,r,i=0,o=this,s=o._last,a=j;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(r=o.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>a&&o._sort&&s._ts&&!o._lock?(o._lock=1,te(o,s,n-s._delay,1)._lock=0):a=n,n<0&&s._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),a=0),s._end>i&&s._ts&&(i=s._end),s=e;oe(o,o===P&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(P._ts&&(Lt(P,Zt(t,P)),O=Ie.frame),Ie.frame>=wt){wt+=L.autoSleep||120;var e=P._first;if((!e||!e._ts)&&L.autoSleep&&Ie._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ie.sleep()}}},e}(Je);Bt(tn.prototype,{_lock:0,_hasPause:0,_forcing:0});var en,nn,rn=function(t,e,n,r,i,o,s){var a,u,l,c,h,f,p,d,m=new Pn(this._pt,t,e,0,1,xn,null,i),v=0,g=0;for(m.b=n,m.e=r,n+="",(p=~(r+="").indexOf("random("))&&(r=Te(r)),o&&(o(d=[n,r],t,e),n=d[0],r=d[1]),u=n.match(rt)||[];a=rt.exec(r);)c=a[0],h=r.substring(v,a.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,m._pt={_next:m._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?Ot(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},v=rt.lastIndex);return m.c=v<r.length?r.substring(v,r.length):"",m.fp=s,(it.test(r)||p)&&(m.e=0),this._pt=m,m},on=function(t,e,n,r,i,o,s,a,u,l){Y(r)&&(r=r(i||0,t,o));var c,h=t[e],f="get"!==n?n:Y(h)?u?t[e.indexOf("set")||!Y(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,p=Y(h)?u?mn:dn:pn;if($(r)&&(~r.indexOf("random(")&&(r=Te(r)),"="===r.charAt(1)&&((c=Ot(f,r)+(fe(f)||0))||0===c)&&(r=c)),!l||f!==r||nn)return isNaN(f*r)||""===r?(!h&&!(e in t)&&ct(e,r),rn.call(this,t,e,f,r,p,a||L.stringFilter,u)):(c=new Pn(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?_n:yn,0,p),u&&(c.fp=u),s&&c.modifier(s,this,t),this._pt=c)},sn=function(t,e,n,r,i,o){var s,a,u,l;if(xt[t]&&!1!==(s=new xt[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(Y(t)&&(t=ln(t,i,e,n,r)),!X(t)||t.style&&t.nodeType||J(t)||Q(t))return $(t)?ln(t,i,e,n,r):t;var o,s={};for(o in t)s[o]=ln(t[o],i,e,n,r);return s}(e[t],r,i,o,n),n,r,o)&&(n._pt=a=new Pn(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==D))for(u=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)u[s._props[l]]=a;return s},an=function t(e,n,r){var i,o,s,a,u,l,c,h,f,p,d,m,v,g=e.vars,y=g.ease,_=g.startAt,x=g.immediateRender,b=g.lazy,w=g.onUpdate,E=g.onUpdateParams,S=g.callbackScope,A=g.runBackwards,C=g.yoyoEase,M=g.keyframes,O=g.autoRevert,D=e._dur,R=e._startAt,L=e._targets,F=e.parent,I=F&&"nested"===F.data?F.vars.targets:L,z="auto"===e._overwrite&&!T,N=e.timeline;if(N&&(!M||!y)&&(y="none"),e._ease=qe(y,V.ease),e._yEase=C?Ye(qe(!0===C?y:C,V.ease)):0,C&&e._yoyo&&!e._repeat&&(C=e._yEase,e._yEase=e._ease,e._ease=C),e._from=!N&&!!g.runBackwards,!N||M&&!g.stagger){if(m=(h=L[0]?Pt(L[0]).harness:0)&&g[h.prop],i=zt(g,gt),R&&(R._zTime<0&&R.progress(1),n<0&&A&&x&&!O?R.render(-1,!0):R.revert(A&&D?mt:dt),R._lazy=0),_){if($t(e._startAt=fn.set(L,Bt({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:!R&&G(b),startAt:null,delay:0,onUpdate:w,onUpdateParams:E,callbackScope:S,stagger:0},_))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(k||!x&&!O)&&e._startAt.revert(mt),x&&D&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(A&&D&&!R)if(n&&(x=!1),s=Bt({overwrite:!1,data:"isFromStart",lazy:x&&!R&&G(b),immediateRender:x,stagger:0,parent:F},i),m&&(s[h.prop]=m),$t(e._startAt=fn.set(L,s)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(k?e._startAt.revert(mt):e._startAt.render(-1,!0)),e._zTime=n,x){if(!n)return}else t(e._startAt,B,B);for(e._pt=e._ptCache=0,b=D&&G(b)||b&&!D,o=0;o<L.length;o++){if(c=(u=L[o])._gsap||Et(L)[o]._gsap,e._ptLookup[o]=p={},_t[c.id]&&yt.length&&Rt(),d=I===L?o:I.indexOf(u),h&&!1!==(f=new h).init(u,m||i,e,d,I)&&(e._pt=a=new Pn(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){p[t]=a})),f.priority&&(l=1)),!h||m)for(s in i)xt[s]&&(f=sn(s,i,e,d,u,I))?f.priority&&(l=1):p[s]=a=on.call(e,u,s,"get",i[s],d,I,0,g.stringFilter);e._op&&e._op[o]&&e.kill(u,e._op[o]),z&&e._pt&&(en=e,P.killTweensOf(u,p,e.globalTime(n)),v=!e.parent,en=0),e._pt&&b&&(_t[c.id]=1)}l&&En(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!v,M&&n<=0&&N.render(j,!0,!0)},un=function(t,e,n,r){var i,o,s=e.ease||r||"power1.inOut";if(J(e))o=n[t]||(n[t]=[]),e.forEach((function(t,n){return o.push({t:n/(e.length-1)*100,v:t,e:s})}));else for(i in e)o=n[i]||(n[i]=[]),"ease"===i||o.push({t:parseFloat(t),v:e[i],e:s})},ln=function(t,e,n,r,i){return Y(t)?t.call(e,n,r,i):$(t)&&~t.indexOf("random(")?Te(t):t},cn=kt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",hn={};At(cn+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return hn[t]=1}));var fn=function(t){function e(e,n,r,i){var o;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,a,u,l,c,h,f,p,d=(o=t.call(this,i?n:Nt(n))||this).vars,m=d.duration,v=d.delay,g=d.immediateRender,y=d.stagger,_=d.overwrite,x=d.keyframes,w=d.defaults,k=d.scrollTrigger,E=d.yoyoEase,S=n.parent||P,A=(J(e)||Q(e)?H(e[0]):"length"in n)?[e]:me(e);if(o._targets=A.length?Et(A):ht("GSAP target "+e+" not found. https://greensock.com",!L.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=_,x||y||K(m)||K(v)){if(n=o.vars,(s=o.timeline=new tn({data:"nested",defaults:w||{},targets:S&&"nested"===S.data?S.vars.targets:A})).kill(),s.parent=s._dp=b(o),s._start=0,y||K(m)||K(v)){if(l=A.length,f=y&&ye(y),X(y))for(c in y)~cn.indexOf(c)&&(p||(p={}),p[c]=y[c]);for(a=0;a<l;a++)(u=zt(n,hn)).stagger=0,E&&(u.yoyoEase=E),p&&Ft(u,p),h=A[a],u.duration=+ln(m,b(o),a,h,A),u.delay=(+ln(v,b(o),a,h,A)||0)-o._delay,!y&&1===l&&u.delay&&(o._delay=v=u.delay,o._start+=v,u.delay=0),s.to(h,u,f?f(a,h,A):0),s._ease=Ne.none;s.duration()?m=v=0:o.timeline=0}else if(x){Nt(Bt(s.vars.defaults,{ease:"none"})),s._ease=qe(x.ease||n.ease||"none");var C,M,O,D=0;if(J(x))x.forEach((function(t){return s.to(A,t,">")})),s.duration();else{for(c in u={},x)"ease"===c||"easeEach"===c||un(c,x[c],u,x.easeEach);for(c in u)for(C=u[c].sort((function(t,e){return t.t-e.t})),D=0,a=0;a<C.length;a++)(O={ease:(M=C[a]).e,duration:(M.t-(a?C[a-1].t:0))/100*m})[c]=M.v,s.to(A,O,D),D+=O.duration;s.duration()<m&&s.to({},{duration:m-s.duration()})}}m||o.duration(m=s.duration())}else o.timeline=0;return!0!==_||T||(en=b(o),P.killTweensOf(A),en=0),te(S,b(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(g||!m&&!x&&o._start===Mt(S._time)&&G(g)&&qt(b(o))&&"nested"!==S.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-v)||0)),k&&ee(b(o),k),o}w(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,o,s,a,u,l,c,h,f=this._time,p=this._tDur,d=this._dur,m=t<0,v=t>p-B&&!m?p:t<B?0:t;if(d){if(v!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=v,c=this.timeline,this._repeat){if(s=d+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+t,e,n);if(r=Mt(v%s),v===p?(o=this._repeat,r=d):((o=~~(v/s))&&o===v/s&&(r=d,o--),r>d&&(r=d)),(u=this._yoyo&&1&o)&&(h=this._yEase,r=d-r),a=Gt(this._tTime,s),r===f&&!n&&this._initted)return this._tTime=v,this;o!==a&&(c&&this._yEase&&He(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Mt(s*o),!0).invalidate()._lock=0))}if(!this._initted){if(ne(this,m?t:r,n,e,v))return this._tTime=0,this;if(f!==this._time)return this;if(d!==this._dur)return this.render(t,e,n)}if(this._tTime=v,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(h||this._ease)(r/d),this._from&&(this.ratio=l=1-l),r&&!f&&!e&&!o&&(Pe(this,"onStart"),this._tTime!==v))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Ht(this,t,0,n),Pe(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!e&&this.parent&&Pe(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(m&&!this._onUpdate&&Ht(this,t,0,!0),(t||!d)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&$t(this,1),e||m&&!f||!(v||f||u)||(Pe(this,v===p?"onComplete":"onReverseComplete",!0),this._prom&&!(v<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,o,s,a=t.ratio,u=e<0||!e&&(!t._start&&re(t)&&(t._initted||!ie(t))||(t._ts<0||t._dp._ts<0)&&!ie(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=he(0,t._tDur,e),o=Gt(c,l),t._yoyo&&1&o&&(u=1-u),o!==Gt(t._tTime,l)&&(a=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==a||k||r||t._zTime===B||!e&&t._zTime){if(!t._initted&&ne(t,e,r,n,c))return;for(s=t._zTime,t._zTime=e||(n?B:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Ht(t,e,0,!0),t._onUpdate&&!n&&Pe(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&Pe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&$t(t,1),n||k||(Pe(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r){R||Ie.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||an(this,i),function(t,e,n,r,i,o,s){var a,u,l,c,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],l=t._ptLookup,c=t._targets.length;c--;){if((a=l[c][e])&&a.d&&a.d._pt)for(a=a.d._pt;a&&a.p!==e&&a.fp!==e;)a=a._next;if(!a)return nn=1,t.vars[e]="+=0",an(t,s),nn=0,1;h.push(a)}for(c=h.length;c--;)(a=(u=h[c])._pt||u).s=!r&&0!==r||i?a.s+(r||0)+o*a.c:r,a.c=n-a.s,u.e&&(u.e=Ct(n)+fe(u.e)),u.b&&(u.b=a.s+fe(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(Qt(this,0),this.parent||Ut(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Se(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,en&&!0!==en.vars.overwrite)._first||Se(this),this.parent&&n!==this.timeline.totalDuration()&&oe(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,s,a,u,l,c=this._targets,h=t?me(t):c,f=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(c,h))return"all"===e&&(this._pt=0),Se(this);for(r=this._op=this._op||[],"all"!==e&&($(e)&&(a={},At(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var n,r,i,o,s=t[0]?Pt(t[0]).harness:0,a=s&&s.aliases;if(!a)return e;for(r in n=Ft({},e),a)if(r in n)for(i=(o=a[r].split(",")).length;i--;)n[o[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(a in i=f[l],"all"===e?(r[l]=e,s=i,o={}):(o=r[l]=r[l]||{},s=e),s)(u=i&&i[a])&&("kill"in u.d&&!0!==u.d.kill(a)||Wt(this,u,"_pt"),delete i[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&p&&Se(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return le(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return le(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return P.killTweensOf(t,e,n)},e}(Je);Bt(fn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),At("staggerTo,staggerFrom,staggerFromTo",(function(t){fn[t]=function(){var e=new tn,n=pe.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var pn=function(t,e,n){return t[e]=n},dn=function(t,e,n){return t[e](n)},mn=function(t,e,n,r){return t[e](r.fp,n)},vn=function(t,e,n){return t.setAttribute(e,n)},gn=function(t,e){return Y(t[e])?dn:q(t[e])&&t.setAttribute?vn:pn},yn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},_n=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},xn=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},bn=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},wn=function(t,e,n,r){for(var i,o=this._pt;o;)i=o._next,o.p===r&&o.modifier(t,e,n),o=i},Tn=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Wt(this,r,"_pt"):r.dep||(e=1),r=n;return!e},kn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},En=function(t){for(var e,n,r,i,o=t._pt;o;){for(e=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=e}t._pt=r},Pn=function(){function t(t,e,n,r,i,o,s,a,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=o||yn,this.d=s||this,this.set=a||pn,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=kn,this.m=t,this.mt=n,this.tween=e},t}();At(kt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return gt[t]=1})),at.TweenMax=at.TweenLite=fn,at.TimelineLite=at.TimelineMax=tn,P=new tn({sortChildren:!1,defaults:V,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),L.stringFilter=Fe;var Sn=[],An={},Cn=[],Mn=0,On=0,Dn=function(t){return(An[t]||Cn).map((function(t){return t()}))},Rn=function(){var t=Date.now(),e=[];t-Mn>2&&(Dn("matchMediaInit"),Sn.forEach((function(t){var n,r,i,o,s=t.queries,a=t.conditions;for(r in s)(n=S.matchMedia(s[r]).matches)&&(i=1),n!==a[r]&&(a[r]=n,o=1);o&&(t.revert(),i&&e.push(t))})),Dn("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),Mn=t,Dn("matchMedia"))},Ln=function(){function t(t,e){this.selector=e&&ve(e),this.data=[],this._r=[],this.isReverted=!1,this.id=On++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Y(t)&&(n=e,e=t,t=Y);var r=this,i=function(){var t,i=E,o=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=ve(n)),E=r,t=e.apply(r,arguments),Y(t)&&r._r.push(t),E=i,r.selector=o,r.isReverted=!1,t};return r.last=i,t===Y?i(r):t?r[t]=i:i},e.ignore=function(t){var e=E;E=null,t(this),E=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof fn&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t){var r=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})))})),r.map((function(t){return{g:t.globalTime(0),t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof fn)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,n)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e)for(var i=Sn.length;i--;)Sn[i].id===this.id&&Sn.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),Vn=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){X(t)||(t={matches:t});var r,i,o,s=new Ln(0,n||this.scope),a=s.conditions={};for(i in E&&!s.selector&&(s.selector=E.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?o=1:(r=S.matchMedia(t[i]))&&(Sn.indexOf(s)<0&&Sn.push(s),(a[i]=r.matches)&&(o=1),r.addListener?r.addListener(Rn):r.addEventListener("change",Rn));return o&&e(s),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),jn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Ce(t)}))},timeline:function(t){return new tn(t)},getTweensOf:function(t,e){return P.getTweensOf(t,e)},getProperty:function(t,e,n,r){$(t)&&(t=me(t)[0]);var i=Pt(t||{}).get,o=n?jt:Vt;return"native"===n&&(n=""),t?e?o((xt[e]&&xt[e].get||i)(t,e,n,r)):function(e,n,r){return o((xt[e]&&xt[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=me(t)).length>1){var r=t.map((function(t){return In.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var o=xt[e],s=Pt(t),a=s.harness&&(s.harness.aliases||{})[e]||e,u=o?function(e){var r=new o;D._pt=0,r.init(t,n?e+n:e,D,0,[t]),r.render(1,r),D._pt&&bn(1,D)}:s.set(t,a);return o?u:function(e){return u(t,a,n?e+n:e,s,1)}},quickTo:function(t,e,n){var r,i=In.to(t,Ft(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),o=function(t,n,r){return i.resetTo(e,t,n,r)};return o.tween=i,o},isTweening:function(t){return P.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=qe(t.ease,V.ease)),It(V,t||{})},config:function(t){return It(L,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!xt[t]&&!at[t]&&ht(e+" effect requires "+t+" plugin.")})),bt[e]=function(t,e,r){return n(me(t),Bt(e||{},i),r)},o&&(tn.prototype[e]=function(t,n,r){return this.add(bt[e](t,X(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ne[t]=qe(e)},parseEase:function(t,e){return arguments.length?qe(t,e):Ne},getById:function(t){return P.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new tn(t);for(i.smoothChildTiming=G(t.smoothChildTiming),P.remove(i),i._dp=0,i._time=i._tTime=P._time,n=P._first;n;)r=n._next,!e&&!n._dur&&n instanceof fn&&n.vars.onComplete===n._targets[0]||te(i,n,n._start-n._delay),n=r;return te(P,i,0),i},context:function(t,e){return t?new Ln(t,e):E},matchMedia:function(t){return new Vn(t)},matchMediaRefresh:function(){return Sn.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Rn()},addEventListener:function(t,e){var n=An[t]||(An[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=An[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return J(e)?we(e,t(0,e.length),n):ce(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,o=2*i;return J(e)?we(e,t(0,e.length-1),n):ce(r,(function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)}))},distribute:ye,random:be,snap:xe,normalize:function(t,e,n){return ke(t,e,0,1,n)},getUnit:fe,clamp:function(t,e,n){return ce(n,(function(n){return he(t,e,n)}))},splitColor:Re,toArray:me,selector:ve,mapRange:ke,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||fe(n))}},interpolate:function t(e,n,r,i){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var s,a,u,l,c,h=$(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(J(e)&&!J(n)){for(u=[],l=e.length,c=l-2,a=1;a<l;a++)u.push(t(e[a-1],e[a]));l--,o=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=Ft(J(e)?[]:{},e));if(!u){for(s in n)on.call(f,e,s,"get",n[s]);o=function(t){return bn(t,f)||(h?e.p:e)}}}return ce(r,o)},shuffle:ge},install:lt,effects:bt,ticker:Ie,updateRoot:tn.updateRoot,plugins:xt,globalTimeline:P,core:{PropTween:Pn,globals:ft,Tween:fn,Timeline:tn,Animation:Je,getCache:Pt,_removeLinkedListItem:Wt,reverting:function(){return k},context:function(t){return t&&E&&(E.data.push(t),t._ctx=E),E},suppressOverwrites:function(t){return T=t}}};At("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return jn[t]=fn[t]})),Ie.add(tn.updateRoot),D=jn.to({},{duration:0});var Bn=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Fn=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if($(n)&&(r={},At(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,o=t._targets;for(n in e)for(r=o.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Bn(i,n)),i&&i.modifier&&i.modifier(e[n],t,o[r],n))}(t,n)}}}},In=jn.registerPlugin({name:"attr",init:function(t,e,n,r,i){var o,s,a;for(o in this.tween=n,e)a=t.getAttribute(o)||"",(s=this.add(t,"setAttribute",(a||0)+"",e[o],r,i,0,0,o)).op=o,s.b=a,this._props.push(o)},render:function(t,e){for(var n=e._pt;n;)k?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Fn("roundProps",_e),Fn("modifiers"),Fn("snap",xe))||jn;fn.version=tn.version=In.version="3.12.2",M=1,Z()&&ze(),Ne.Power0,Ne.Power1,Ne.Power2,Ne.Power3,Ne.Power4,Ne.Linear,Ne.Quad,Ne.Cubic,Ne.Quart,Ne.Quint,Ne.Strong,Ne.Elastic,Ne.Back,Ne.SteppedEase,Ne.Bounce,Ne.Sine,Ne.Expo,Ne.Circ;
|
|
11
|
-
/*!
|
|
12
|
-
* CSSPlugin 3.12.2
|
|
13
|
-
* https://greensock.com
|
|
14
|
-
*
|
|
15
|
-
* Copyright 2008-2023, GreenSock. All rights reserved.
|
|
16
|
-
* Subject to the terms at https://greensock.com/standard-license or for
|
|
17
|
-
* Club GreenSock members, the agreement issued with that membership.
|
|
18
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
19
|
-
*/
|
|
20
|
-
var zn,Nn,Un,Wn,$n,Yn,Hn,qn,Xn={},Gn=180/Math.PI,Zn=Math.PI/180,Kn=Math.atan2,Qn=/([A-Z])/g,Jn=/(left|right|width|margin|padding|x)/i,tr=/[\s,\(]\S/,er={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},nr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},rr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ir=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},or=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},sr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ar=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ur=function(t,e,n){return t.style[e]=n},lr=function(t,e,n){return t.style.setProperty(e,n)},cr=function(t,e,n){return t._gsap[e]=n},hr=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},fr=function(t,e,n,r,i){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},pr=function(t,e,n,r,i){var o=t._gsap;o[e]=n,o.renderTransform(i,o)},dr="transform",mr=dr+"Origin",vr=function t(e,n){var r=this,i=this.target,o=i.style;if(e in Xn&&o){if(this.tfm=this.tfm||{},"transform"===e)return er.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=er[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Lr(i,t)})):this.tfm[e]=i._gsap.x?i._gsap[e]:Lr(i,e),this.props.indexOf(dr)>=0)return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(mr,n,"")),e=dr}(o||n)&&this.props.push(e,n,o[e])},gr=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},yr=function(){var t,e,n=this.props,r=this.target,i=r.style,o=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(Qn,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];o.svg&&(o.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Hn())&&t.isStart||i[dr]||(gr(i),o.uncache=1)}},_r=function(t,e){var n={target:t,props:[],revert:yr,save:vr};return t._gsap||In.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},xr=function(t,e){var n=Nn.createElementNS?Nn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Nn.createElement(t);return n.style?n:Nn.createElement(t)},br=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Qn,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Tr(n)||n,1)||""},wr="O,Moz,ms,Ms,Webkit".split(","),Tr=function(t,e,n){var r=(e||$n).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(wr[i]+t in r););return i<0?null:(3===i?"ms":i>=0?wr[i]:"")+t},kr=function(){"undefined"!=typeof window&&window.document&&(zn=window,Nn=zn.document,Un=Nn.documentElement,$n=xr("div")||{style:{}},xr("div"),dr=Tr(dr),mr=dr+"Origin",$n.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",qn=!!Tr("perspective"),Hn=In.core.reverting,Wn=1)},Er=function t(e){var n,r=xr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(Un.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),Un.removeChild(r),this.style.cssText=s,n},Pr=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Sr=function(t){var e;try{e=t.getBBox()}catch(n){e=Er.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Er||(e=Er.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Pr(t,["x","cx","x1"])||0,y:+Pr(t,["y","cy","y1"])||0,width:0,height:0}},Ar=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Sr(t))},Cr=function(t,e){if(e){var n=t.style;e in Xn&&e!==mr&&(e=dr),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(Qn,"-$1").toLowerCase())):n.removeAttribute(e)}},Mr=function(t,e,n,r,i,o){var s=new Pn(t._pt,e,n,0,1,o?ar:sr);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},Or={deg:1,rad:1,turn:1},Dr={grid:1,flex:1},Rr=function t(e,n,r,i){var o,s,a,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=$n.style,f=Jn.test(n),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(f?"Width":"Height"),m=100,v="px"===i,g="%"===i;return i===c||!l||Or[i]||Or[c]?l:("px"!==c&&!v&&(l=t(e,n,r,"px")),u=e.getCTM&&Ar(e),!g&&"%"!==c||!Xn[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=m+(v?c:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==Nn&&s.appendChild||(s=Nn.body),(a=s._gsap)&&g&&a.width&&f&&a.time===Ie.time&&!a.uncache?Ct(l/a.width*m):((g||"%"===c)&&!Dr[br(s,"display")]&&(h.position=br(e,"position")),s===e&&(h.position="static"),s.appendChild($n),o=$n[d],s.removeChild($n),h.position="absolute",f&&g&&((a=Pt(s)).time=Ie.time,a.width=s[d]),Ct(v?o*l/m:o&&l?m/o*l:0))):(o=u?e.getBBox()[f?"width":"height"]:e[d],Ct(g?l/o*m:l/100*o)))},Lr=function(t,e,n,r){var i;return Wn||kr(),e in er&&"transform"!==e&&~(e=er[e]).indexOf(",")&&(e=e.split(",")[0]),Xn[e]&&"transform"!==e?(i=Hr(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:qr(br(t,mr))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Ir[e]&&Ir[e](t,e,n)||br(t,e)||St(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Rr(t,e,i,n)+n:i},Vr=function(t,e,n,r){if(!n||"none"===n){var i=Tr(e,t,1),o=i&&br(t,i,1);o&&o!==n?(e=i,n=o):"borderColor"===e&&(n=br(t,"borderTopColor"))}var s,a,u,l,c,h,f,p,d,m,v,g=new Pn(this._pt,t.style,e,0,1,xn),y=0,_=0;if(g.b=n,g.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=br(t,e)||r,t.style[e]=n),Fe(s=[n,r]),r=s[1],u=(n=s[0]).match(nt)||[],(r.match(nt)||[]).length){for(;a=nt.exec(r);)f=a[0],d=r.substring(y,a.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),f!==(h=u[_++]||"")&&(l=parseFloat(h)||0,v=h.substr((l+"").length),"="===f.charAt(1)&&(f=Ot(l,f)+v),p=parseFloat(f),m=f.substr((p+"").length),y=nt.lastIndex-m.length,m||(m=m||L.units[e]||v,y===r.length&&(r+=m,g.e+=m)),v!==m&&(l=Rr(t,e,h,m)||0),g._pt={_next:g._pt,p:d||1===_?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});g.c=y<r.length?r.substring(y,r.length):""}else g.r="display"===e&&"none"===r?ar:sr;return it.test(r)&&(g.e=0),this._pt=g,g},jr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Br=function(t){var e=t.split(" "),n=e[0],r=e[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==r&&"right"!==r||(t=n,n=r,r=t),e[0]=jr[n]||n,e[1]=jr[r]||r,e.join(" ")},Fr=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,o=e.t,s=o.style,a=e.u,u=o._gsap;if("all"===a||!0===a)s.cssText="",r=1;else for(i=(a=a.split(",")).length;--i>-1;)n=a[i],Xn[n]&&(r=1,n="transformOrigin"===n?mr:dr),Cr(o,n);r&&(Cr(o,dr),u&&(u.svg&&o.removeAttribute("transform"),Hr(o,1),u.uncache=1,gr(s)))}},Ir={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var o=t._pt=new Pn(t._pt,e,n,0,0,Fr);return o.u=r,o.pr=-10,o.tween=i,t._props.push(n),1}}},zr=[1,0,0,1,0,0],Nr={},Ur=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Wr=function(t){var e=br(t,dr);return Ur(e)?zr:e.substr(7).match(et).map(Ct)},$r=function(t,e){var n,r,i,o,s=t._gsap||Pt(t),a=t.style,u=Wr(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?zr:u:(u!==zr||t.offsetParent||t===Un||s.svg||(i=a.display,a.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,r=t.nextElementSibling,Un.appendChild(t)),u=Wr(t),i?a.display=i:Cr(t,"display"),o&&(r?n.insertBefore(t,r):n?n.appendChild(t):Un.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Yr=function(t,e,n,r,i,o){var s,a,u,l=t._gsap,c=i||$r(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,m=c[0],v=c[1],g=c[2],y=c[3],_=c[4],x=c[5],b=e.split(" "),w=parseFloat(b[0])||0,T=parseFloat(b[1])||0;n?c!==zr&&(a=m*y-v*g)&&(u=w*(-v/a)+T*(m/a)-(m*x-v*_)/a,w=w*(y/a)+T*(-g/a)+(g*x-y*_)/a,T=u):(w=(s=Sr(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),T=s.y+(~(b[1]||b[0]).indexOf("%")?T/100*s.height:T)),r||!1!==r&&l.smooth?(_=w-h,x=T-f,l.xOffset=p+(_*m+x*g)-_,l.yOffset=d+(_*v+x*y)-x):l.xOffset=l.yOffset=0,l.xOrigin=w,l.yOrigin=T,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[mr]="0px 0px",o&&(Mr(o,l,"xOrigin",h,w),Mr(o,l,"yOrigin",f,T),Mr(o,l,"xOffset",p,l.xOffset),Mr(o,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Hr=function(t,e){var n=t._gsap||new Qe(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,o,s,a,u,l,c,h,f,p,d,m,v,g,y,_,x,b,w,T,k,E,P,S,A,C,M,O,D,R,V,j=t.style,B=n.scaleX<0,F="px",I="deg",z=getComputedStyle(t),N=br(t,mr)||"0";return r=i=o=u=l=c=h=f=p=0,s=a=1,n.svg=!(!t.getCTM||!Ar(t)),z.translate&&("none"===z.translate&&"none"===z.scale&&"none"===z.rotate||(j[dr]=("none"!==z.translate?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==z.rotate?"rotate("+z.rotate+") ":"")+("none"!==z.scale?"scale("+z.scale.split(" ").join(",")+") ":"")+("none"!==z[dr]?z[dr]:"")),j.scale=j.rotate=j.translate="none"),v=$r(t,n.svg),n.svg&&(n.uncache?(S=t.getBBox(),N=n.xOrigin-S.x+"px "+(n.yOrigin-S.y)+"px",P=""):P=!e&&t.getAttribute("data-svg-origin"),Yr(t,P||N,!!P||n.originIsAbsolute,!1!==n.smooth,v)),d=n.xOrigin||0,m=n.yOrigin||0,v!==zr&&(x=v[0],b=v[1],w=v[2],T=v[3],r=k=v[4],i=E=v[5],6===v.length?(s=Math.sqrt(x*x+b*b),a=Math.sqrt(T*T+w*w),u=x||b?Kn(b,x)*Gn:0,(h=w||T?Kn(w,T)*Gn+u:0)&&(a*=Math.abs(Math.cos(h*Zn))),n.svg&&(r-=d-(d*x+m*w),i-=m-(d*b+m*T))):(V=v[6],D=v[7],C=v[8],M=v[9],O=v[10],R=v[11],r=v[12],i=v[13],o=v[14],l=(g=Kn(V,O))*Gn,g&&(P=k*(y=Math.cos(-g))+C*(_=Math.sin(-g)),S=E*y+M*_,A=V*y+O*_,C=k*-_+C*y,M=E*-_+M*y,O=V*-_+O*y,R=D*-_+R*y,k=P,E=S,V=A),c=(g=Kn(-w,O))*Gn,g&&(y=Math.cos(-g),R=T*(_=Math.sin(-g))+R*y,x=P=x*y-C*_,b=S=b*y-M*_,w=A=w*y-O*_),u=(g=Kn(b,x))*Gn,g&&(P=x*(y=Math.cos(g))+b*(_=Math.sin(g)),S=k*y+E*_,b=b*y-x*_,E=E*y-k*_,x=P,k=S),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),s=Ct(Math.sqrt(x*x+b*b+w*w)),a=Ct(Math.sqrt(E*E+V*V)),g=Kn(k,E),h=Math.abs(g)>2e-4?g*Gn:0,p=R?1/(R<0?-R:R):0),n.svg&&(P=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Ur(br(t,dr)),P&&t.setAttribute("transform",P))),Math.abs(h)>90&&Math.abs(h)<270&&(B?(s*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+F,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+F,n.z=o+F,n.scaleX=Ct(s),n.scaleY=Ct(a),n.rotation=Ct(u)+I,n.rotationX=Ct(l)+I,n.rotationY=Ct(c)+I,n.skewX=h+I,n.skewY=f+I,n.transformPerspective=p+F,(n.zOrigin=parseFloat(N.split(" ")[2])||0)&&(j[mr]=qr(N)),n.xOffset=n.yOffset=0,n.force3D=L.force3D,n.renderTransform=n.svg?ti:qn?Jr:Gr,n.uncache=0,n},qr=function(t){return(t=t.split(" "))[0]+" "+t[1]},Xr=function(t,e,n){var r=fe(e);return Ct(parseFloat(e)+parseFloat(Rr(t,"x",n+"px",r)))+r},Gr=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Jr(t,e)},Zr="0deg",Kr="0px",Qr=") ",Jr=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,o=n.x,s=n.y,a=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,h=n.skewX,f=n.skewY,p=n.scaleX,d=n.scaleY,m=n.transformPerspective,v=n.force3D,g=n.target,y=n.zOrigin,_="",x="auto"===v&&t&&1!==t||!0===v;if(y&&(c!==Zr||l!==Zr)){var b,w=parseFloat(l)*Zn,T=Math.sin(w),k=Math.cos(w);w=parseFloat(c)*Zn,b=Math.cos(w),o=Xr(g,o,T*b*-y),s=Xr(g,s,-Math.sin(w)*-y),a=Xr(g,a,k*b*-y+y)}m!==Kr&&(_+="perspective("+m+Qr),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(x||o!==Kr||s!==Kr||a!==Kr)&&(_+=a!==Kr||x?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+Qr),u!==Zr&&(_+="rotate("+u+Qr),l!==Zr&&(_+="rotateY("+l+Qr),c!==Zr&&(_+="rotateX("+c+Qr),h===Zr&&f===Zr||(_+="skew("+h+", "+f+Qr),1===p&&1===d||(_+="scale("+p+", "+d+Qr),g.style[dr]=_||"translate(0, 0)"},ti=function(t,e){var n,r,i,o,s,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,h=a.y,f=a.rotation,p=a.skewX,d=a.skewY,m=a.scaleX,v=a.scaleY,g=a.target,y=a.xOrigin,_=a.yOrigin,x=a.xOffset,b=a.yOffset,w=a.forceCSS,T=parseFloat(c),k=parseFloat(h);f=parseFloat(f),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),f+=d),f||p?(f*=Zn,p*=Zn,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-p)*-v,o=Math.cos(f-p)*v,p&&(d*=Zn,s=Math.tan(p-d),i*=s=Math.sqrt(1+s*s),o*=s,d&&(s=Math.tan(d),n*=s=Math.sqrt(1+s*s),r*=s)),n=Ct(n),r=Ct(r),i=Ct(i),o=Ct(o)):(n=m,o=v,r=i=0),(T&&!~(c+"").indexOf("px")||k&&!~(h+"").indexOf("px"))&&(T=Rr(g,"x",c,"px"),k=Rr(g,"y",h,"px")),(y||_||x||b)&&(T=Ct(T+y-(y*n+_*i)+x),k=Ct(k+_-(y*r+_*o)+b)),(u||l)&&(s=g.getBBox(),T=Ct(T+u/100*s.width),k=Ct(k+l/100*s.height)),s="matrix("+n+","+r+","+i+","+o+","+T+","+k+")",g.setAttribute("transform",s),w&&(g.style[dr]=s)},ei=function(t,e,n,r,i){var o,s,a=360,u=$(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Gn:1)-r,c=r+l+"deg";return u&&("short"===(o=i.split("_")[1])&&(l%=a)!==l%180&&(l+=l<0?a:-360),"cw"===o&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===o&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=s=new Pn(t._pt,e,n,r,l,rr),s.e=c,s.u="deg",t._props.push(n),s},ni=function(t,e){for(var n in e)t[n]=e[n];return t},ri=function(t,e,n){var r,i,o,s,a,u,l,c=ni({},n._gsap),h=n.style;for(i in c.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),h[dr]=e,r=Hr(n,1),Cr(n,dr),n.setAttribute("transform",o)):(o=getComputedStyle(n)[dr],h[dr]=e,r=Hr(n,1),h[dr]=o),Xn)(o=c[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=fe(o)!==(l=fe(s))?Rr(n,i,o,l):parseFloat(o),u=parseFloat(s),t._pt=new Pn(t._pt,r,i,a,u-a,nr),t._pt.u=l||0,t._props.push(i));ni(r,c)};At("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",o="Left",s=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map((function(n){return e<2?t+n:"border"+n+t}));Ir[e>1?"border"+t:t]=function(t,e,n,r,i){var o,a;if(arguments.length<4)return o=s.map((function(e){return Lr(t,e,n)})),5===(a=o.join(" ")).split(o[0]).length?o[0]:a;o=(r+"").split(" "),a={},s.forEach((function(t,e){return a[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,a,i)}}));var ii,oi,si,ai={name:"css",register:kr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var o,s,a,u,l,c,h,f,p,d,m,v,g,y,_,x,b=this._props,w=t.style,T=n.vars.startAt;for(h in Wn||kr(),this.styles=this.styles||_r(t),x=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(s=e[h],!xt[h]||!sn(h,e,n,r,t,i)))if(l=typeof s,c=Ir[h],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=Te(s)),c)c(this,t,h,s,n)&&(_=1);else if("--"===h.substr(0,2))o=(getComputedStyle(t).getPropertyValue(h)+"").trim(),s+="",je.lastIndex=0,je.test(o)||(f=fe(o),p=fe(s)),p?f!==p&&(o=Rr(t,h,o,p)+p):f&&(s+=f),this.add(w,"setProperty",o,s,r,i,0,0,h),b.push(h),x.push(h,0,w[h]);else if("undefined"!==l){if(T&&h in T?(o="function"==typeof T[h]?T[h].call(n,r,t,i):T[h],$(o)&&~o.indexOf("random(")&&(o=Te(o)),fe(o+"")||(o+=L.units[h]||fe(Lr(t,h))||""),"="===(o+"").charAt(1)&&(o=Lr(t,h))):o=Lr(t,h),u=parseFloat(o),(d="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),h in er&&("autoAlpha"===h&&(1===u&&"hidden"===Lr(t,"visibility")&&a&&(u=0),x.push("visibility",0,w.visibility),Mr(this,w,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=er[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Xn)if(this.styles.save(h),v||((g=t._gsap).renderTransform&&!e.parseTransform||Hr(t,e.parseTransform),y=!1!==e.smoothOrigin&&g.smooth,(v=this._pt=new Pn(this._pt,w,dr,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new Pn(this._pt,g,"scaleY",g.scaleY,(d?Ot(g.scaleY,d+a):a)-g.scaleY||0,nr),this._pt.u=0,b.push("scaleY",h),h+="X";else{if("transformOrigin"===h){x.push(mr,0,w[mr]),s=Br(s),g.svg?Yr(t,s,0,y,0,this):((p=parseFloat(s.split(" ")[2])||0)!==g.zOrigin&&Mr(this,g,"zOrigin",g.zOrigin,p),Mr(this,w,h,qr(o),qr(s)));continue}if("svgOrigin"===h){Yr(t,s,1,y,0,this);continue}if(h in Nr){ei(this,g,h,u,d?Ot(u,d+s):s);continue}if("smoothOrigin"===h){Mr(this,g,"smooth",g.smooth,s);continue}if("force3D"===h){g[h]=s;continue}if("transform"===h){ri(this,s,t);continue}}else h in w||(h=Tr(h)||h);if(m||(a||0===a)&&(u||0===u)&&!tr.test(s)&&h in w)a||(a=0),(f=(o+"").substr((u+"").length))!==(p=fe(s)||(h in L.units?L.units[h]:f))&&(u=Rr(t,h,o,p)),this._pt=new Pn(this._pt,m?g:w,h,u,(d?Ot(u,d+a):a)-u,m||"px"!==p&&"zIndex"!==h||!1===e.autoRound?nr:or),this._pt.u=p||0,f!==p&&"%"!==p&&(this._pt.b=o,this._pt.r=ir);else if(h in w)Vr.call(this,t,h,o,d?d+s:s);else if(h in t)this.add(t,h,o||t[h],d?d+s:s,r,i);else if("parseTransform"!==h){ct(h,s);continue}m||(h in w?x.push(h,0,w[h]):x.push(h,1,o||t[h])),b.push(h)}_&&En(this)},render:function(t,e){if(e.tween._time||!Hn())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Lr,aliases:er,getSetter:function(t,e,n){var r=er[e];return r&&r.indexOf(",")<0&&(e=r),e in Xn&&e!==mr&&(t._gsap.x||Lr(t,"x"))?n&&Yn===n?"scale"===e?hr:cr:(Yn=n||{})&&("scale"===e?fr:pr):t.style&&!q(t.style[e])?ur:~e.indexOf("-")?lr:gn(t,e)},core:{_removeProperty:Cr,_getMatrix:$r}};In.utils.checkPrefix=Tr,In.core.getStyleSaver=_r,si=At((ii="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(oi="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Xn[t]=1})),At(oi,(function(t){L.units[t]="deg",Nr[t]=1})),er[si[13]]=ii+","+oi,At("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");er[e[1]]=si[e[0]]})),At("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){L.units[t]="px"})),In.registerPlugin(ai);var ui=In.registerPlugin(ai)||In;ui.core.Tween;_(".spark-magnetic {\n display: inline-block;\n position: relative; }\n");var li=n((function(t,n){var i=t.children,o=t.className,s=void 0===o?"":o,a=t.button,u=t.movement,l=void 0===u?.5:u,c=y(t,["children","className","button","movement"]),h=r(null),f=r(null),p=a?e.cloneElement(a,g({ref:f},c)):e.createElement(x,g({ref:f},c),i);return e.createElement("div",{className:"spark-magnetic ".concat(s),ref:h,onMouseMove:function(t){var e=h.current;if(e){var n=e.getBoundingClientRect(),r=t.pageX-n.left,i=t.pageY-n.top,o=window.scrollY||document.documentElement.scrollTop;ui.to(f.current,{duration:.3,x:(r-n.width/2)*l,y:(i-n.height/2-o)*l,ease:"expo.out"})}},onMouseOut:function(){ui.to(f.current,{duration:.4,x:0,y:0,ease:"elastic.out(1, 0.5)"})}},p)}));const ci=i({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),hi=i({}),fi=i(null),pi="undefined"!=typeof document,di=pi?o:s,mi=i({strict:!1});function vi(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function gi(t){return"string"==typeof t||Array.isArray(t)}function yi(t){return"object"==typeof t&&"function"==typeof t.start}const _i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xi=["initial",..._i];function bi(t){return yi(t.animate)||xi.some((e=>gi(t[e])))}function wi(t){return Boolean(bi(t)||t.variants)}function Ti(t){const{initial:e,animate:n}=function(t,e){if(bi(t)){const{initial:e,animate:n}=t;return{initial:!1===e||gi(e)?e:void 0,animate:gi(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,a(hi));return c((()=>({initial:e,animate:n})),[ki(e),ki(n)])}function ki(t){return Array.isArray(t)?t.join(" "):t}const Ei={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pi={};for(const t in Ei)Pi[t]={isEnabled:e=>Ei[t].some((t=>!!e[t]))};const Si=i({}),Ai=i({}),Ci=Symbol.for("motionComponentSymbol");function Mi({preloadedFeatures:e,createVisualElement:i,useRender:o,useVisualState:c,Component:h}){e&&function(t){for(const e in t)Pi[e]={...Pi[e],...t[e]}}(e);const f=n((function(n,f){let p;const d={...a(ci),...n,layoutId:Oi(n)},{isStatic:m}=d,v=Ti(n),g=c(n,m);if(!m&&pi){v.visualElement=function(t,e,n,i){const{visualElement:o}=a(hi),l=a(mi),c=a(fi),h=a(ci).reducedMotion,f=r();i=i||l.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:o,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:h}));const p=f.current;u((()=>{p&&p.update(n,c)}));const d=r(Boolean(window.HandoffAppearAnimations));return di((()=>{p&&(p.render(),d.current&&p.animationState&&p.animationState.animateChanges())})),s((()=>{p&&(p.updateFeatures(),!d.current&&p.animationState&&p.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)})),p}(h,g,d,i);const t=a(Ai),n=a(mi).strict;v.visualElement&&(p=v.visualElement.loadFeatures(d,n,e,t))}return t.createElement(hi.Provider,{value:v},p&&v.visualElement?t.createElement(p,{visualElement:v.visualElement,...d}):null,o(h,n,function(t,e,n){return l((r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):vi(n)&&(n.current=r))}),[e])}(g,v.visualElement,f),g,m,v.visualElement))}));return f[Ci]=h,f}function Oi({layoutId:t}){const e=a(Si).id;return e&&void 0!==t?e+"-"+t:t}function Di(t){function e(e,n={}){return Mi(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const Ri=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Li(t){return"string"==typeof t&&!t.includes("-")&&!!(Ri.indexOf(t)>-1||/[A-Z]/.test(t))}const Vi={};const ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bi=new Set(ji);function Fi(t,{layout:e,layoutId:n}){return Bi.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Vi[t]||"opacity"===t)}const Ii=t=>Boolean(t&&t.getVelocity),zi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ni=ji.length;const Ui=t=>e=>"string"==typeof e&&e.startsWith(t),Wi=Ui("--"),$i=Ui("var(--"),Yi=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Hi=(t,e,n)=>Math.min(Math.max(n,t),e),qi={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Xi={...qi,transform:t=>Hi(0,1,t)},Gi={...qi,default:1},Zi=t=>Math.round(1e5*t)/1e5,Ki=/(-)?([\d]*\.?[\d])+/g,Qi=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ji=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function to(t){return"string"==typeof t}const eo=t=>({test:e=>to(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),no=eo("deg"),ro=eo("%"),io=eo("px"),oo=eo("vh"),so=eo("vw"),ao={...ro,parse:t=>ro.parse(t)/100,transform:t=>ro.transform(100*t)},uo={...qi,transform:Math.round},lo={borderWidth:io,borderTopWidth:io,borderRightWidth:io,borderBottomWidth:io,borderLeftWidth:io,borderRadius:io,radius:io,borderTopLeftRadius:io,borderTopRightRadius:io,borderBottomRightRadius:io,borderBottomLeftRadius:io,width:io,maxWidth:io,height:io,maxHeight:io,size:io,top:io,right:io,bottom:io,left:io,padding:io,paddingTop:io,paddingRight:io,paddingBottom:io,paddingLeft:io,margin:io,marginTop:io,marginRight:io,marginBottom:io,marginLeft:io,rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:Gi,scaleX:Gi,scaleY:Gi,scaleZ:Gi,skew:no,skewX:no,skewY:no,distance:io,translateX:io,translateY:io,translateZ:io,x:io,y:io,z:io,perspective:io,transformPerspective:io,opacity:Xi,originX:ao,originY:ao,originZ:io,zIndex:uo,fillOpacity:Xi,strokeOpacity:Xi,numOctaves:uo};function co(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let u=!1,l=!1,c=!0;for(const t in e){const n=e[t];if(Wi(t)){o[t]=n;continue}const r=lo[t],h=Yi(n,r);if(Bi.has(t)){if(u=!0,s[t]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(l=!0,a[t]=h):i[t]=h}if(e.transform||(u||r?i.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let e=0;e<Ni;e++){const n=ji[e];void 0!==t[n]&&(o+=`${zi[n]||n}(${t[n]}) `)}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}(t.transform,n,c,r):i.transform&&(i.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}const ho=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fo(t,e,n){for(const r in e)Ii(e[r])||Fi(r,n)||(t[r]=e[r])}function po(t,e,n){const r={};return fo(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},e,n){return c((()=>{const r=ho();return co(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(r):r}function mo(t,e,n){const r={},i=po(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const vo=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function go(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||vo.has(t)}let yo=t=>!go(t);try{(_o=require("@emotion/is-prop-valid").default)&&(yo=t=>t.startsWith("on")?!go(t):_o(t))}catch(t){}var _o;function xo(t,e,n){return"string"==typeof t?t:io.transform(e+n*t)}const bo={offset:"stroke-dashoffset",array:"stroke-dasharray"},wo={offset:"strokeDashoffset",array:"strokeDasharray"};function To(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:u=0,...l},c,h,f){if(co(t,l,c,f),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:d,dimensions:m}=t;p.transform&&(m&&(d.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${xo(e,t.x,t.width)} ${xo(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?bo:wo;t[o.offset]=io.transform(-r);const s=io.transform(e),a=io.transform(n);t[o.array]=`${s} ${a}`}(p,s,a,u,!1)}const ko=()=>({...ho(),attrs:{}}),Eo=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Po(t,e,n,r){const i=c((()=>{const n=ko();return To(n,e,{enableHardwareAcceleration:!1},Eo(r),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};fo(e,t.style,t),i.style={...e,...i.style}}return i}function So(t=!1){return(e,n,r,{latestValues:i},o)=>{const s=(Li(e)?Po:mo)(n,i,o,e),a=function(t,e,n){const r={};for(const i in t)"values"===i&&"object"==typeof t.values||(yo(i)||!0===n&&go(i)||!e&&!go(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),u={...a,...s,ref:r},{children:l}=n,f=c((()=>Ii(l)?l.get():l),[l]);return h(e,{...u,children:f})}}const Ao=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Co(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const Mo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Oo(t,e,n,r){Co(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(Mo.has(n)?n:Ao(n),e.attrs[n])}function Do(t,e){const{style:n}=t,r={};for(const i in n)(Ii(n[i])||e.style&&Ii(e.style[i])||Fi(i,t))&&(r[i]=n[i]);return r}function Ro(t,e){const n=Do(t,e);for(const r in t)if(Ii(t[r])||Ii(e[r])){n[-1!==ji.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function Lo(t,e,n,r={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}function Vo(t){const e=r(null);return null===e.current&&(e.current=t()),e.current}const jo=t=>Array.isArray(t),Bo=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Fo=t=>jo(t)?t[t.length-1]||0:t;function Io(t){const e=Ii(t)?t.get():t;return Bo(e)?e.toValue():e}const zo=t=>(e,n)=>{const r=a(hi),i=a(fi),o=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:No(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s}(t,e,r,i);return n?o():Vo(o)};function No(t,e,n,r){const i={},o=r(t,{});for(const t in o)i[t]=Io(o[t]);let{initial:s,animate:a}=t;const u=bi(t),l=wi(t);e&&l&&!u&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const h=c?a:s;if(h&&"boolean"!=typeof h&&!yi(h)){(Array.isArray(h)?h:[h]).forEach((e=>{const n=Lo(t,e);if(!n)return;const{transitionEnd:r,transition:o,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(i[t]=e)}for(const t in r)i[t]=r[t]}))}return i}const Uo=t=>t;class Wo{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const $o=["prepare","read","update","preRender","render","postRender"];const{schedule:Yo,cancel:Ho,state:qo,steps:Xo}=function(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=$o.reduce(((t,e)=>(t[e]=function(t){let e=new Wo,n=new Wo,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const u=a&&i,l=u?e:n;return o&&s.add(t),l.add(t)&&u&&i&&(r=e.order.length),t},cancel:t=>{n.remove(t),s.delete(t)},process:u=>{if(i)o=!0;else{if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];r(u),s.has(r)&&(a.schedule(r),t())}i=!1,o&&(o=!1,a.process(u))}}};return a}((()=>n=!0)),t)),{}),s=t=>o[t].process(i),a=()=>{const o=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,$o.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))};return{schedule:$o.reduce(((e,s)=>{const u=o[s];return e[s]=(e,o=!1,s=!1)=>(n||(n=!0,r=!0,i.isProcessing||t(a)),u.schedule(e,o,s)),e}),{}),cancel:t=>$o.forEach((e=>o[e].cancel(t))),state:i,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Uo,!0),Go={useVisualState:zo({scrapeMotionValuesFromProps:Ro,createRenderState:ko,onMount:(t,e,{renderState:n,latestValues:r})=>{Yo.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),Yo.render((()=>{To(n,r,{enableHardwareAcceleration:!1},Eo(e.tagName),t.transformTemplate),Oo(e,n)}))}})},Zo={useVisualState:zo({scrapeMotionValuesFromProps:Do,createRenderState:ho})};function Ko(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Qo=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Jo(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const ts=t=>e=>Qo(e)&&t(e,Jo(e));function es(t,e,n,r){return Ko(t,e,ts(n),r)}const ns=(t,e)=>n=>e(t(n)),rs=(...t)=>t.reduce(ns);function is(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const os=is("dragHorizontal"),ss=is("dragVertical");function as(t){let e=!1;if("y"===t)e=ss();else if("x"===t)e=os();else{const t=os(),n=ss();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function us(){const t=as(!0);return!t||(t(),!1)}class ls{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cs(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return es(t.current,n,((n,i)=>{if("touch"===n.type||us())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[r]&&Yo.update((()=>o[r](n,i)))}),{passive:!t.getProps()[r]})}const hs=(t,e)=>!!e&&(t===e||hs(t,e.parentElement));function fs(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Jo(n))}const ps=new WeakMap,ds=new WeakMap,ms=t=>{const e=ps.get(t.target);e&&e(t)},vs=t=>{t.forEach(ms)};function gs(t,e,n){const r=function({root:t,...e}){const n=t||document;ds.has(n)||ds.set(n,{});const r=ds.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(vs,{root:t,...e})),r[i]}(e);return ps.set(t,n),r.observe(t),()=>{ps.delete(t),r.unobserve(t)}}const ys={some:0,all:1};const _s={inView:{Feature:class extends ls{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ys[r]};return gs(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ls{constructor(){super(...arguments),this.removeStartListeners=Uo,this.removeEndListeners=Uo,this.removeAccessibleListeners=Uo,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=es(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Yo.update((()=>{hs(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),i=es(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=rs(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Ko(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Ko(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&fs("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Yo.update((()=>n(t,e)))}))})),fs("down",((t,e)=>{this.startPress(t,e)}))})),e=Ko(this.node.current,"blur",(()=>{this.isPressing&&fs("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=rs(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Yo.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!us()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Yo.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=es(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Ko(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=rs(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ls{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rs(Ko(this.node.current,"focus",(()=>this.onFocus())),Ko(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ls{mount(){this.unmount=rs(cs(this.node,!0),cs(this.node,!1))}unmount(){}}}};function xs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function bs(t,e,n){const r=t.getProps();return Lo(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}const ws="data-"+Ao("framerAppearId");let Ts=Uo,ks=Uo;"production"!==process.env.NODE_ENV&&(Ts=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},ks=(t,e)=>{if(!t)throw new Error(e)});const Es=t=>1e3*t,Ps=t=>t/1e3,Ss=!1,As=t=>Array.isArray(t)&&"number"==typeof t[0];function Cs(t){return Boolean(!t||"string"==typeof t&&Os[t]||As(t)||Array.isArray(t)&&t.every(Cs))}const Ms=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Os={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ms([0,.65,.55,1]),circOut:Ms([.55,0,1,.45]),backIn:Ms([.31,.01,.66,-.59]),backOut:Ms([.33,1.53,.69,.99])};function Ds(t){if(t)return As(t)?Ms(t):Array.isArray(t)?t.map(Ds):Os[t]}const Rs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ls=1e-7,Vs=12;function js(t,e,n,r){if(t===e&&n===r)return Uo;const i=e=>function(t,e,n,r,i){let o,s,a=0;do{s=e+(n-e)/2,o=Rs(s,r,i)-t,o>0?n=s:e=s}while(Math.abs(o)>Ls&&++a<Vs);return s}(e,0,1,t,n);return t=>0===t||1===t?t:Rs(i(t),e,r)}const Bs=js(.42,0,1,1),Fs=js(0,0,.58,1),Is=js(.42,0,.58,1),zs=t=>Array.isArray(t)&&"number"!=typeof t[0],Ns=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Us=t=>e=>1-t(1-e),Ws=t=>1-Math.sin(Math.acos(t)),$s=Us(Ws),Ys=Ns($s),Hs=js(.33,1.53,.69,.99),qs=Us(Hs),Xs=Ns(qs),Gs={linear:Uo,easeIn:Bs,easeInOut:Is,easeOut:Fs,circIn:Ws,circInOut:Ys,circOut:$s,backIn:qs,backInOut:Xs,backOut:Hs,anticipate:t=>(t*=2)<1?.5*qs(t):.5*(2-Math.pow(2,-10*(t-1)))},Zs=t=>{if(Array.isArray(t)){ks(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return js(e,n,r,i)}return"string"==typeof t?(ks(void 0!==Gs[t],`Invalid easing type '${t}'`),Gs[t]):t},Ks=(t,e)=>n=>Boolean(to(n)&&Ji.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Qs=(t,e,n)=>r=>{if(!to(r))return r;const[i,o,s,a]=r.match(Ki);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Js={...qi,transform:t=>Math.round((t=>Hi(0,255,t))(t))},ta={test:Ks("rgb","red"),parse:Qs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Js.transform(t)+", "+Js.transform(e)+", "+Js.transform(n)+", "+Zi(Xi.transform(r))+")"};const ea={test:Ks("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ta.transform},na={test:Ks("hsl","hue"),parse:Qs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ro.transform(Zi(e))+", "+ro.transform(Zi(n))+", "+Zi(Xi.transform(r))+")"},ra={test:t=>ta.test(t)||ea.test(t)||na.test(t),parse:t=>ta.test(t)?ta.parse(t):na.test(t)?na.parse(t):ea.parse(t),transform:t=>to(t)?t:t.hasOwnProperty("red")?ta.transform(t):na.transform(t)},ia=(t,e,n)=>-n*t+n*e+t;function oa(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const sa=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},aa=[ea,ta,na];function ua(t){const e=(n=t,aa.find((t=>t.test(n))));var n;ks(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===na&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=oa(a,r,t+1/3),o=oa(a,r,t),s=oa(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const la=(t,e)=>{const n=ua(t),r=ua(e),i={...n};return t=>(i.red=sa(n.red,r.red,t),i.green=sa(n.green,r.green,t),i.blue=sa(n.blue,r.blue,t),i.alpha=ia(n.alpha,r.alpha,t),ta.transform(i))};const ca={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Uo},ha={regex:Qi,countKey:"Colors",token:"${c}",parse:ra.parse},fa={regex:Ki,countKey:"Numbers",token:"${n}",parse:qi.parse};function pa(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function da(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&pa(n,ca),pa(n,ha),pa(n,fa),n}function ma(t){return da(t).values}function va(t){const{values:e,numColors:n,numVars:r,tokenised:i}=da(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=i<r?e.replace(ca.token,t[i]):i<r+n?e.replace(ha.token,ra.transform(t[i])):e.replace(fa.token,Zi(t[i]));return e}}const ga=t=>"number"==typeof t?0:t;const ya={test:function(t){var e,n;return isNaN(t)&&to(t)&&((null===(e=t.match(Ki))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Qi))||void 0===n?void 0:n.length)||0)>0},parse:ma,createTransformer:va,getAnimatableNone:function(t){const e=ma(t);return va(t)(e.map(ga))}},_a=(t,e)=>n=>`${n>0?e:t}`;function xa(t,e){return"number"==typeof t?n=>ia(t,e,n):ra.test(t)?la(t,e):t.startsWith("var(")?_a(t,e):Ta(t,e)}const ba=(t,e)=>{const n=[...t],r=n.length,i=t.map(((t,n)=>xa(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},wa=(t,e)=>{const n={...t,...e},r={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=xa(t[i],e[i]));return t=>{for(const e in r)n[e]=r[e](t);return n}},Ta=(t,e)=>{const n=ya.createTransformer(e),r=da(t),i=da(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?rs(ba(r.values,i.values),n):(Ts(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),_a(t,e))},ka=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Ea=(t,e)=>n=>ia(t,e,n);function Pa(t,e,n){const r=[],i=n||("number"==typeof(o=t[0])?Ea:"string"==typeof o?ra.test(o)?la:Ta:Array.isArray(o)?ba:"object"==typeof o?wa:Ea);var o;const s=t.length-1;for(let n=0;n<s;n++){let o=i(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||Uo:e;o=rs(t,o)}r.push(o)}return r}function Sa(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(ks(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=Pa(e,r,i),a=s.length,u=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=ka(t[n],t[n+1],e);return s[n](r)};return n?e=>u(Hi(t[0],t[o-1],e)):u}function Aa(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=ka(0,e,r);t.push(ia(n,1,i))}}(e,t.length-1),e}function Ca(t,e){return t.map((()=>e||Is)).splice(0,t.length-1)}function Ma({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=zs(r)?r.map(Zs):Zs(r),o={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:Aa(e),t),a=Sa(s,e,{ease:Array.isArray(i)?i:Ca(e,i)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}function Oa(t,e){return e?t*(1e3/e):0}const Da=5;function Ra(t,e,n){const r=Math.max(e-Da,0);return Oa(n-t(r),e-r)}const La=.001,Va=.01,ja=10,Ba=.05,Fa=1;function Ia({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Ts(t<=Es(ja),"Spring duration must be 10 seconds or less");let s=1-e;s=Hi(Ba,Fa,s),t=Hi(Va,ja,Ps(t)),s<1?(i=e=>{const r=e*s,i=r*t,o=r-n,a=Na(e,s),u=Math.exp(-i);return La-o/a*u},o=e=>{const r=e*s*t,o=r*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,u=Math.exp(-r),l=Na(Math.pow(e,2),s);return(-i(e)+La>0?-1:1)*((o-a)*u)/l}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-La,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let r=n;for(let n=1;n<za;n++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=Es(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}const za=12;function Na(t,e){return t*Math.sqrt(1-e*e)}const Ua=["duration","bounce"],Wa=["stiffness","damping","mass"];function $a(t,e){return e.some((e=>void 0!==t[e]))}function Ya({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:u,mass:l,velocity:c,duration:h,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!$a(t,Wa)&&$a(t,Ua)){const n=Ia(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r),p=c?-Ps(c):0,d=u/(2*Math.sqrt(a*l)),m=o-i,v=Ps(Math.sqrt(a/l)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),e||(e=g?.005:.5),d<1){const t=Na(v,d);y=e=>{const n=Math.exp(-d*v*e);return o-n*((p+d*v*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===d)y=t=>o-Math.exp(-v*t)*(m+(p+v*m)*t);else{const t=v*Math.sqrt(d*d-1);y=e=>{const n=Math.exp(-d*v*e),r=Math.min(t*e,300);return o-n*((p+d*v*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:f&&h||null,next:t=>{const r=y(t);if(f)s.done=t>=h;else{let i=p;0!==t&&(i=d<1?Ra(y,t,r):0);const a=Math.abs(i)<=n,u=Math.abs(o-r)<=e;s.done=a&&u}return s.value=s.done?o:r,s}}}function Ha({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:u,restDelta:l=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},p=t=>void 0===a?u:void 0===u||Math.abs(a-t)<Math.abs(u-t)?a:u;let d=n*e;const m=h+d,v=void 0===s?m:s(m);v!==m&&(d=v-h);const g=t=>-d*Math.exp(-t/r),y=t=>v+g(t),_=t=>{const e=g(t),n=y(t);f.done=Math.abs(e)<=l,f.value=f.done?v:n};let x,b;const w=t=>{var e;(e=f.value,void 0!==a&&e<a||void 0!==u&&e>u)&&(x=t,b=Ya({keyframes:[f.value,p(f.value)],velocity:Ra(y,t,f.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return b||void 0!==x||(e=!0,_(t),w(t)),void 0!==x&&t>x?b.next(t-x):(!e&&_(t),f)}}}const qa=t=>{const e=({timestamp:e})=>t(e);return{start:()=>Yo.update(e,!0),stop:()=>Ho(e),now:()=>qo.isProcessing?qo.timestamp:performance.now()}},Xa=2e4;function Ga(t){let e=0;let n=t.next(e);for(;!n.done&&e<Xa;)e+=50,n=t.next(e);return e>=Xa?1/0:e}const Za={decay:Ha,inertia:Ha,tween:Ma,keyframes:Ma,spring:Ya};function Ka({autoplay:t=!0,delay:e=0,driver:n=qa,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:h,...f}){let p,d,m=1,v=!1;const g=()=>{d=new Promise((t=>{p=t}))};let y;g();const _=Za[i]||Ma;let x;_!==Ma&&"number"!=typeof r[0]&&(x=Sa([0,100],r,{clamp:!1}),r=[0,100]);const b=_({...f,keyframes:r});let w;"mirror"===a&&(w=_({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let T="idle",k=null,E=null,P=null;null===b.calculatedDuration&&o&&(b.calculatedDuration=Ga(b));const{calculatedDuration:S}=b;let A=1/0,C=1/0;null!==S&&(A=S+s,C=A*(o+1)-s);let M=0;const O=t=>{if(null===E)return;m>0&&(E=Math.min(E,t)),m<0&&(E=Math.min(t-C/m,E)),M=null!==k?k:Math.round(t-E)*m;const n=M-e*(m>=0?1:-1),i=m>=0?n<0:n>C;M=Math.max(n,0),"finished"===T&&null===k&&(M=C);let u=M,l=b;if(o){const t=M/A;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,o+1);const r=Boolean(e%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/A)):"mirror"===a&&(l=w));let i=Hi(0,1,n);M>C&&(i="reverse"===a&&r?1:0),u=i*A}const c=i?{done:!1,value:r[0]}:l.next(u);x&&(c.value=x(c.value));let{done:f}=c;i||null===S||(f=m>=0?M>=C:M<=0);const p=null===k&&("finished"===T||"running"===T&&f);return h&&h(c.value),p&&L(),c},D=()=>{y&&y.stop(),y=void 0},R=()=>{T="idle",D(),p(),g(),E=P=null},L=()=>{T="finished",c&&c(),D(),p()},V=()=>{if(v)return;y||(y=n(O));const t=y.now();u&&u(),null!==k?E=t-k:E&&"finished"!==T||(E=t),"finished"===T&&g(),P=E,k=null,T="running",y.start()};t&&V();const j={then:(t,e)=>d.then(t,e),get time(){return Ps(M)},set time(t){t=Es(t),M=t,null===k&&y&&0!==m?E=y.now()-t/m:k=t},get duration(){const t=null===b.calculatedDuration?Ga(b):b.calculatedDuration;return Ps(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,j.time=Ps(M))},get state(){return T},play:V,pause:()=>{T="paused",k=M},stop:()=>{v=!0,"idle"!==T&&(T="idle",l&&l(),R())},cancel:()=>{null!==P&&O(P),R()},complete:()=>{T="finished"},sample:t=>(E=0,O(t))};return j}const Qa=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Ja=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function tu(t,e,{onUpdate:n,onComplete:r,...i}){if(!(Qa()&&Ja.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,s,a=!1;const u=()=>{s=new Promise((t=>{o=t}))};u();let{keyframes:l,duration:c=300,ease:h,times:f}=i;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!Cs(e.ease))(e,i)){const t=Ka({...i,repeat:0,delay:0});let e={done:!1,value:l[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;f=void 0,l=n,c=r-10,h="linear"}const p=function(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){const l={[e]:n};u&&(l.offset=u);const c=Ds(a);return Array.isArray(c)&&(l.easing=c),t.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,l,{...i,duration:c,ease:h,times:f});i.syncStart&&(p.startTime=qo.isProcessing?qo.timestamp:document.timeline?document.timeline.currentTime:performance.now());const d=()=>p.cancel(),m=()=>{Yo.update(d),o(),u()};p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(l,i)),r&&r(),m()};return{then:(t,e)=>s.then(t,e),attachTimeline:t=>(p.timeline=t,p.onfinish=null,Uo),get time(){return Ps(p.currentTime||0)},set time(t){p.currentTime=Es(t)},get speed(){return p.playbackRate},set speed(t){p.playbackRate=t},get duration(){return Ps(c)},play:()=>{a||(p.play(),Ho(d))},pause:()=>p.pause(),stop:()=>{if(a=!0,"idle"===p.playState)return;const{currentTime:e}=p;if(e){const n=Ka({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}m()},complete:()=>p.finish(),cancel:m}}const eu={type:"spring",stiffness:500,damping:25,restSpeed:10},nu={type:"keyframes",duration:.8},ru={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iu=(t,{keyframes:e})=>e.length>2?nu:Bi.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:eu:ru,ou=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!ya.test(e)&&"0"!==e||e.startsWith("url("))),su=new Set(["brightness","contrast","saturate","opacity"]);function au(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(Ki)||[];if(!r)return t;const i=n.replace(r,"");let o=su.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const uu=/([a-z-]*)\(.*?\)/g,lu={...ya,getAnimatableNone:t=>{const e=t.match(uu);return e?e.map(au).join(" "):t}},cu={...lo,color:ra,backgroundColor:ra,outlineColor:ra,fill:ra,stroke:ra,borderColor:ra,borderTopColor:ra,borderRightColor:ra,borderBottomColor:ra,borderLeftColor:ra,filter:lu,WebkitFilter:lu},hu=t=>cu[t];function fu(t,e){let n=hu(t);return n!==lu&&(n=ya),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const pu=t=>/^0[^.\s]+$/.test(t);function du(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||pu(t):void 0}function mu(t,e){return t[e]||t.default||t}const vu=(t,e,n,r={})=>i=>{const o=mu(r,t)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a-=Es(s);const u=function(t,e,n,r){const i=ou(e,n);let o;o=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:t.get();let a;const u=[];for(let t=0;t<o.length;t++)null===o[t]&&(o[t]=0===t?s:o[t-1]),du(o[t])&&u.push(t),"string"==typeof o[t]&&"none"!==o[t]&&"0"!==o[t]&&(a=o[t]);if(i&&u.length&&a)for(let t=0;t<u.length;t++)o[u[t]]=fu(e,a);return o}(e,t,n,o),l=u[0],c=u[u.length-1],h=ou(t,l),f=ou(t,c);Ts(h===f,`You are trying to animate ${t} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:u,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}(o)||(p={...p,...iu(t,p)}),p.duration&&(p.duration=Es(p.duration)),p.repeatDelay&&(p.repeatDelay=Es(p.repeatDelay)),!h||!f||Ss||!1===o.type)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Uo,pause:Uo,stop:Uo,then:t=>(t(),Promise.resolve()),cancel:Uo,complete:Uo});return e?Ka({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}(Ss?{...p,delay:0}:p);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=tu(e,t,p);if(n)return n}return Ka(p)};function gu(t){return Boolean(Ii(t)&&t.add)}const yu=t=>/^\-?\d*\.?\d+$/.test(t);function _u(t,e){-1===t.indexOf(e)&&t.push(e)}function xu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class bu{constructor(){this.subscriptions=[]}add(t){return _u(this.subscriptions,t),()=>xu(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const wu=new Set;function Tu(t,e,n){t||wu.has(e)||(console.warn(e),n&&console.warn(n),wu.add(e))}class ku{constructor(t,e={}){var n;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:r}=qo;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Yo.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Yo.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return"production"!==process.env.NODE_ENV&&Tu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new bu);const n=this.events[t].add(e);return"change"===t?()=>{n(),Yo.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Oa(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Eu(t,e){return new ku(t,e)}const Pu=t=>e=>e.test(t),Su=[qi,io,ro,no,so,oo,{test:t=>"auto"===t,parse:t=>t}],Au=t=>Su.find(Pu(t)),Cu=[...Su,ra,ya];function Mu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Eu(n))}function Ou(t,e){if(!e)return;return(e[t]||e.default||e).from}function Du({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function Ru(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");r&&(o=r);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const e in a){const r=t.getValue(e),i=a[e];if(!r||void 0===i||c&&Du(c,e))continue;const s={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[ws];n&&(s.elapsed=window.HandoffAppearAnimations(n,e,r,Yo),s.syncStart=!0)}r.start(vu(e,r,i,t.shouldReduceMotion&&Bi.has(e)?{type:!1}:s));const h=r.animation;gu(u)&&(u.add(e),h.then((()=>u.remove(e)))),l.push(h)}return s&&Promise.all(l).then((()=>{s&&function(t,e){const n=bs(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const e in o)Mu(t,e,Fo(o[e]))}(t,s)})),l}function Lu(t,e,n={}){const r=bs(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Ru(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,u=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(Vu).forEach(((t,r)=>{t.notify("AnimationStart",e),s.push(Lu(t,e,{...o,delay:n+u(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then((()=>e()))}return Promise.all([o(),s(n.delay)])}function Vu(t,e){return t.sortNodePosition(e)}const ju=[..._i].reverse(),Bu=_i.length;function Fu(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>Lu(t,e,n)));r=Promise.all(i)}else if("string"==typeof e)r=Lu(t,e,n);else{const i="function"==typeof e?bs(t,e,n.custom):e;r=Promise.all(Ru(t,i,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Iu(t){let e=Fu(t);const n={animate:Nu(!0),whileInView:Nu(),whileHover:Nu(),whileTap:Nu(),whileDrag:Nu(),whileFocus:Nu(),exit:Nu()};let r=!0;const i=(e,n)=>{const r=bs(t,n);if(r){const{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function o(o,s){const a=t.getProps(),u=t.getVariantContext(!0)||{},l=[],c=new Set;let h={},f=1/0;for(let e=0;e<Bu;e++){const p=ju[e],d=n[p],m=void 0!==a[p]?a[p]:u[p],v=gi(m),g=p===s?d.isActive:null;!1===g&&(f=e);let y=m===u[p]&&m!==a[p]&&v;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),d.protectedKeys={...h},!d.isActive&&null===g||!m&&!d.prevProp||yi(m)||"boolean"==typeof m)continue;const _=zu(d.prevProp,m);let x=_||p===s&&d.isActive&&!y&&v||e>f&&v;const b=Array.isArray(m)?m:[m];let w=b.reduce(i,{});!1===g&&(w={});const{prevResolvedValues:T={}}=d,k={...T,...w},E=t=>{x=!0,c.delete(t),d.needsAnimating[t]=!0};for(const t in k){const e=w[t],n=T[t];h.hasOwnProperty(t)||(e!==n?jo(e)&&jo(n)?!xs(e,n)||_?E(t):d.protectedKeys[t]=!0:void 0!==e?E(t):c.add(t):void 0!==e&&c.has(t)?E(t):d.protectedKeys[t]=!0)}d.prevProp=m,d.prevResolvedValues=w,d.isActive&&(h={...h,...w}),r&&t.blockInitialAnimation&&(x=!1),x&&!y&&l.push(...b.map((t=>({animation:t,options:{type:p,...o}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),l.push({animation:e})}let p=Boolean(l.length);return r&&!1===a.initial&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var s;if(n[e].isActive===r)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const a=o(i,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function zu(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!xs(e,t)}function Nu(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Uu=0;const Wu={animation:{Feature:class extends ls{constructor(t){super(t),t.animationState||(t.animationState=Iu(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),yi(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ls{constructor(){super(...arguments),this.id=Uu++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},$u=(t,e)=>Math.abs(t-e);class Yu{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Xu(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=$u(t.x,e.x),r=$u(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:i}=qo;this.history.push({...r,timestamp:i});const{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Hu(e,this.transformPagePoint),Yo.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,i=Xu("pointercancel"===t.type?this.lastMoveEventInfo:Hu(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!Qo(t))return;this.handlers=e,this.transformPagePoint=n;const r=Hu(Jo(t),this.transformPagePoint),{point:i}=r,{timestamp:o}=qo;this.history=[{...i,timestamp:o}];const{onSessionStart:s}=e;s&&s(t,Xu(r,this.history)),this.removeListeners=rs(es(window,"pointermove",this.handlePointerMove),es(window,"pointerup",this.handlePointerUp),es(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ho(this.updatePoint)}}function Hu(t,e){return e?{point:e(t.point)}:t}function qu(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Xu({point:t},e){return{point:t,delta:qu(t,Zu(e)),offset:qu(t,Gu(e)),velocity:Ku(e,.1)}}function Gu(t){return t[0]}function Zu(t){return t[t.length-1]}function Ku(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Zu(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Es(e)));)n--;if(!r)return{x:0,y:0};const o=Ps(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Qu(t){return t.max-t.min}function Ju(t,e=0,n=.01){return Math.abs(t-e)<=n}function tl(t,e,n,r=.5){t.origin=r,t.originPoint=ia(e.min,e.max,t.origin),t.scale=Qu(n)/Qu(e),(Ju(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=ia(n.min,n.max,t.origin)-t.originPoint,(Ju(t.translate)||isNaN(t.translate))&&(t.translate=0)}function el(t,e,n,r){tl(t.x,e.x,n.x,r?r.originX:void 0),tl(t.y,e.y,n.y,r?r.originY:void 0)}function nl(t,e,n){t.min=n.min+e.min,t.max=t.min+Qu(e)}function rl(t,e,n){t.min=e.min-n.min,t.max=t.min+Qu(e)}function il(t,e,n){rl(t.x,e.x,n.x),rl(t.y,e.y,n.y)}function ol(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function sl(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const al=.35;function ul(t,e,n){return{min:ll(t,e),max:ll(t,n)}}function ll(t,e){return"number"==typeof t?t:t[e]||0}const cl=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),hl=()=>({x:{min:0,max:0},y:{min:0,max:0}});function fl(t){return[t("x"),t("y")]}function pl({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function dl(t){return void 0===t||1===t}function ml({scale:t,scaleX:e,scaleY:n}){return!dl(t)||!dl(e)||!dl(n)}function vl(t){return ml(t)||gl(t)||t.z||t.rotate||t.rotateX||t.rotateY}function gl(t){return yl(t.x)||yl(t.y)}function yl(t){return t&&"0%"!==t}function _l(t,e,n){return n+e*(t-n)}function xl(t,e,n,r,i){return void 0!==i&&(t=_l(t,i,r)),_l(t,n,r)+e}function bl(t,e=0,n=1,r,i){t.min=xl(t.min,e,n,r,i),t.max=xl(t.max,e,n,r,i)}function wl(t,{x:e,y:n}){bl(t.x,e.translate,e.scale,e.originPoint),bl(t.y,n.translate,n.scale,n.originPoint)}function Tl(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function kl(t,e){t.min=t.min+e,t.max=t.max+e}function El(t,e,[n,r,i]){const o=void 0!==e[i]?e[i]:.5,s=ia(t.min,t.max,o);bl(t,e[n],e[r],s,e.scale)}const Pl=["x","scaleX","originX"],Sl=["y","scaleY","originY"];function Al(t,e){El(t.x,e,Pl),El(t.y,e,Sl)}function Cl(t,e){return pl(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const Ml=new WeakMap;class Ol{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=hl(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Yu(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(Jo(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=as(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fl((t=>{let e=this.getAxisMotionValue(t).get()||0;if(ro.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=Qu(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),i&&Yo.update((()=>i(t,e)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Yo.update((()=>i(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!Dl(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?ia(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?ia(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;t&&vi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:r,right:i}){return{x:ol(t.x,n,i),y:ol(t.y,e,r)}}(n.layoutBox,t),this.elastic=function(t=al){return!1===t?t=0:!0===t&&(t=al),{x:ul(t,"left","right"),y:ul(t,"top","bottom")}}(e),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fl((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!vi(t))return!1;const n=t.current;ks(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(t,e,n){const r=Cl(t,n),{scroll:i}=e;return i&&(kl(r.x,i.offset.x),kl(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:sl(t.x,e.x),y:sl(t.y,e.y)}}(r.layout.layoutBox,i);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=pl(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},u=fl((s=>{if(!Dl(s,e,this.currentDirection))return;let u=a&&a[s]||{};o&&(u={min:0,max:0});const l=r?200:1e6,c=r?40:1e7,h={type:"inertia",velocity:n?t[s]:0,bounceStiffness:l,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(s,h)}));return Promise.all(u).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(vu(t,n,0,e))}stopAnimation(){fl((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){fl((e=>{const{drag:n}=this.getProps();if(!Dl(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-ia(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!vi(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};fl((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=Qu(t),i=Qu(e);return i>r?n=ka(e.min,e.max-r,t.min):r>i&&(n=ka(t.min,t.max-i,e.min)),Hi(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fl((e=>{if(!Dl(e,t,null))return;const n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(ia(i,o,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Ml.set(this.visualElement,this);const t=es(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();vi(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const i=Ko(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(fl((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{i(),t(),r(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=al,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function Dl(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Rl=t=>(e,n)=>{t&&Yo.update((()=>t(e,n)))};const Ll={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Vl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const jl={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!io.test(t))return t;t=parseFloat(t)}return`${Vl(t,e.target.x)}% ${Vl(t,e.target.y)}%`}},Bl={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=ya.parse(t);if(i.length>5)return r;const o=ya.createTransformer(t),s="number"!=typeof i[0]?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=u;const l=ia(a,u,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),o(i)}};class Fl extends e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;var o;o=zl,Object.assign(Vi,o),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ll.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Yo.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Il(t){const[n,r]=function(){const t=a(fi);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=f();return s((()=>r(i)),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),i=a(Si);return e.createElement(Fl,{...t,layoutGroup:i,switchLayoutGroup:a(Ai),isPresent:n,safeToRemove:r})}const zl={borderRadius:{...jl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jl,borderTopRightRadius:jl,borderBottomLeftRadius:jl,borderBottomRightRadius:jl,boxShadow:Bl},Nl=["TopLeft","TopRight","BottomLeft","BottomRight"],Ul=Nl.length,Wl=t=>"string"==typeof t?parseFloat(t):t,$l=t=>"number"==typeof t||io.test(t);function Yl(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Hl=Xl(0,.5,$s),ql=Xl(.5,.95,Uo);function Xl(t,e,n){return r=>r<t?0:r>e?1:n(ka(t,e,r))}function Gl(t,e){t.min=e.min,t.max=e.max}function Zl(t,e){Gl(t.x,e.x),Gl(t.y,e.y)}function Kl(t,e,n,r,i){return t=_l(t-=e,1/n,r),void 0!==i&&(t=_l(t,1/i,r)),t}function Ql(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){ro.test(e)&&(e=parseFloat(e),e=ia(s.min,s.max,e/100)-s.min);if("number"!=typeof e)return;let a=ia(o.min,o.max,r);t===o&&(a-=e),t.min=Kl(t.min,e,n,a,i),t.max=Kl(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}const Jl=["x","scaleX","originX"],tc=["y","scaleY","originY"];function ec(t,e,n,r){Ql(t.x,e,Jl,n?n.x:void 0,r?r.x:void 0),Ql(t.y,e,tc,n?n.y:void 0,r?r.y:void 0)}function nc(t){return 0===t.translate&&1===t.scale}function rc(t){return nc(t.x)&&nc(t.y)}function ic(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function oc(t){return Qu(t.x)/Qu(t.y)}class sc{constructor(){this.members=[]}add(t){_u(this.members,t),t.scheduleRender()}remove(t){if(xu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ac(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),i&&(r+=`rotateY(${i}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const uc=(t,e)=>t.depth-e.depth;class lc{constructor(){this.children=[],this.isDirty=!1}add(t){_u(this.children,t),this.isDirty=!0}remove(t){xu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(uc),this.isDirty=!1,this.children.forEach(t)}}const cc=["","X","Y","Z"];let hc=0;const fc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function pc({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=hc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;fc.totalNodes=fc.resolvedTargetDeltas=fc.recalculatedProjection=0,this.nodes.forEach(vc),this.nodes.forEach(Tc),this.nodes.forEach(kc),this.nodes.forEach(gc),t=fc,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new lc)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new bu),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Ho(r),t(o-e))};return Yo.read(r,!0),()=>Ho(r)}(r,250),Ll.hasAnimatedSinceResize&&(Ll.hasAnimatedSinceResize=!1,this.nodes.forEach(wc))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||s.getDefaultTransition()||Mc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),u=!this.targetLayout||!ic(this.targetLayout,r)||n,l=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,l);const e={...mu(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||wc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ho(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ec),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(_c);this.isUpdating||this.nodes.forEach(xc),this.isUpdating=!1,this.nodes.forEach(bc),this.nodes.forEach(dc),this.nodes.forEach(mc),this.clearAllSnapshots();const t=performance.now();qo.delta=Hi(0,1e3/60,t-qo.timestamp),qo.timestamp=t,qo.isProcessing=!0,Xo.update.process(qo),Xo.preRender.process(qo),Xo.render.process(qo),qo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(yc),this.sharedNodes.forEach(Pc)}scheduleUpdateProjection(){Yo.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Yo.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=hl(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!rc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||vl(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),Rc((r=n).x),Rc(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return hl();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(kl(e.x,n.offset.x),kl(e.y,n.offset.y)),e}removeElementScroll(t){const e=hl();Zl(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){Zl(e,t);const{scroll:n}=this.root;n&&(kl(e.x,-n.offset.x),kl(e.y,-n.offset.y))}kl(e.x,i.offset.x),kl(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){const n=hl();Zl(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Al(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),vl(r.latestValues)&&Al(n,r.latestValues)}return vl(this.latestValues)&&Al(n,this.latestValues),n}removeTransform(t){const e=hl();Zl(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!vl(n.latestValues))continue;ml(n.latestValues)&&n.updateSnapshot();const r=hl();Zl(r,n.measurePageBox()),ec(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return vl(this.latestValues)&&ec(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==qo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=qo.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=hl(),this.relativeTargetOrigin=hl(),il(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Zl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,u;if(this.target||(this.target=hl(),this.targetWithTransforms=hl()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,u=this.relativeParent.target,nl(s.x,a.x,u.x),nl(s.y,a.y,u.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Zl(this.target,this.layout.layoutBox),wl(this.target,this.targetDelta)):Zl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=hl(),this.relativeTargetOrigin=hl(),il(this.relativeTargetOrigin,this.target,t.target),Zl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}fc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ml(this.parent.latestValues)&&!gl(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===qo.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;Zl(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,r=!1){const i=n.length;if(!i)return;let o,s;e.x=e.y=1;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Al(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,wl(t,s)),r&&vl(o.latestValues)&&Al(t,o.latestValues))}e.x=Tl(e.x),e.y=Tl(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox);const{target:u}=e;if(!u)return void(this.projectionTransform&&(this.projectionDelta=cl(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=cl(),this.projectionDeltaWithTransform=cl());const l=this.projectionTransform;el(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=ac(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),fc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o=cl();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s=hl(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),l=!u||u.members.length<=1,c=Boolean(a&&!l&&!0===this.options.crossfade&&!this.path.some(Cc));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var u,f,p,d,m,v;Sc(o.x,t.x,n),Sc(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(il(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,d=this.relativeTargetOrigin,m=s,v=n,Ac(p.x,d.x,m.x,v),Ac(p.y,d.y,m.y,v),h&&(u=this.relativeTarget,f=h,u.x.min===f.x.min&&u.x.max===f.x.max&&u.y.min===f.y.min&&u.y.max===f.y.max)&&(this.isProjectionDirty=!1),h||(h=hl()),Zl(h,this.relativeTarget)),a&&(this.animationValues=i,function(t,e,n,r,i,o){i?(t.opacity=ia(0,void 0!==n.opacity?n.opacity:1,Hl(r)),t.opacityExit=ia(void 0!==e.opacity?e.opacity:1,0,ql(r))):o&&(t.opacity=ia(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Ul;i++){const o=`border${Nl[i]}Radius`;let s=Yl(e,o),a=Yl(n,o);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||$l(s)===$l(a)?(t[o]=Math.max(ia(Wl(s),Wl(a),r),0),(ro.test(a)||ro.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=ia(e.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,c,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ho(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yo.update((()=>{Ll.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=Ii(t)?t:Eu(t);return r.start(vu("",r,e,n)),r.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&Lc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||hl();const e=Qu(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=Qu(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Zl(e,n),Al(e,i),el(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sc);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let e=0;e<cc.length;e++){const i="rotate"+cc[e];n[i]&&(r[i]=n[i],t.setStaticValue(i,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Io(t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Io(t.pointerEvents)||""),this.hasProjected&&!vl(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=ac(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));const{x:a,y:u}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const t in Vi){if(void 0===s[t])continue;const{correct:e,applyTo:n}=Vi[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?Io(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(_c),this.root.sharedNodes.clear()}}}function dc(t){t.updateLayout()}function mc(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?fl((t=>{const r=o?n.measuredBox[t]:n.layoutBox[t],i=Qu(r);r.min=e[t].min,r.max=r.min+i})):Lc(i,n.layoutBox,e)&&fl((r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],s=Qu(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)}));const s=cl();el(s,e,n.layoutBox);const a=cl();o?el(a,t.applyTransform(r,!0),n.measuredBox):el(a,e,n.layoutBox);const u=!rc(s);let l=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const s=hl();il(s,n.layoutBox,i.layoutBox);const a=hl();il(a,e,o.layoutBox),ic(s,a)||(l=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:l})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function vc(t){fc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function gc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function yc(t){t.clearSnapshot()}function _c(t){t.clearMeasurements()}function xc(t){t.isLayoutDirty=!1}function bc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function wc(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Tc(t){t.resolveTargetDelta()}function kc(t){t.calcProjection()}function Ec(t){t.resetRotation()}function Pc(t){t.removeLeadSnapshot()}function Sc(t,e,n){t.translate=ia(e.translate,0,n),t.scale=ia(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ac(t,e,n,r){t.min=ia(e.min,n.min,r),t.max=ia(e.max,n.max,r)}function Cc(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Mc={duration:.45,ease:[.4,0,.1,1]},Oc=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),Dc=Oc("applewebkit/")&&!Oc("chrome/")?Math.round:Uo;function Rc(t){t.min=Dc(t.min),t.max=Dc(t.max)}function Lc(t,e,n){return"position"===t||"preserve-aspect"===t&&!Ju(oc(e),oc(n),.2)}const Vc=pc({attachResizeListener:(t,e)=>Ko(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jc={current:void 0},Bc=pc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!jc.current){const t=new Vc({});t.mount(window),t.setOptions({layoutScroll:!0}),jc.current=t}return jc.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Fc={pan:{Feature:class extends ls{constructor(){super(...arguments),this.removePointerDownListener=Uo}onPointerDown(t){this.session=new Yu(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Rl(t),onStart:Rl(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&Yo.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=es(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ls{constructor(t){super(t),this.removeGroupControls=Uo,this.removeListeners=Uo,this.controls=new Ol(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Uo}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Bc,MeasureLayout:Il}},Ic=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const zc=4;function Nc(t,e,n=1){ks(n<=zc,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=function(t){const e=Ic.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const t=o.trim();return yu(t)?parseFloat(t):t}return $i(i)?Nc(i,e,n+1):i}const Uc=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wc=t=>Uc.has(t),$c=t=>t===qi||t===io,Yc=(t,e)=>parseFloat(t.split(", ")[e]),Hc=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Yc(i[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Yc(e[1],t):0}},qc=new Set(["x","y","z"]),Xc=ji.filter((t=>!qc.has(t)));const Gc={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Hc(4,13),y:Hc(5,14)};Gc.translateX=Gc.x,Gc.translateY=Gc.y;const Zc=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(Wc);let o=[],s=!1;const a=[];if(i.forEach((i=>{const u=t.getValue(i);if(!t.hasValue(i))return;let l=n[i],c=Au(l);const h=e[i];let f;if(jo(h)){const t=h.length,e=null===h[0]?1:0;l=h[e],c=Au(l);for(let n=e;n<t&&null!==h[n];n++)f?ks(Au(h[n])===f,"All keyframes must be of the same type"):(f=Au(h[n]),ks(f===c||$c(c)&&$c(f),"Keyframes must be of the same dimension as the current value"))}else f=Au(h);if(c!==f)if($c(c)&&$c(f)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof h?e[i]=parseFloat(h):Array.isArray(h)&&f===io&&(e[i]=h.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==f?void 0:f.transform)&&(0===l||0===h)?0===l?u.set(f.transform(l)):e[i]=c.transform(h):(s||(o=function(t){const e=[];return Xc.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(h))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Gc[t](r,o)})),e.render();const u=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Gc[n](u,o)})),t})(e,t,a);return o.length&&o.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),pi&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}return{target:e,transitionEnd:r}};function Kc(t,e,n,r){return(t=>Object.keys(t).some(Wc))(e)?Zc(t,e,n,r):{target:e,transitionEnd:r}}const Qc=(t,e,n,r)=>{const i=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!$i(e))return;const n=Nc(e,r);n&&t.set(n)}));for(const t in e){const i=e[t];if(!$i(i))continue;const o=Nc(i,r);o&&(e[t]=o,n||(n={}),void 0===n[t]&&(n[t]=i))}return{target:e,transitionEnd:n}}(t,e,r);return Kc(t,e=i.target,n,r=i.transitionEnd)},Jc={current:null},th={current:!1};const eh=new WeakMap,nh=Object.keys(Pi),rh=nh.length,ih=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],oh=xi.length;class sh{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Yo.render(this.render,!1,!0);const{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=bi(e),this.isVariantNode=wi(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==s[t]&&Ii(e)&&(e.set(s[t],!1),gu(u)&&u.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,eh.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),th.current||function(){if(th.current=!0,pi)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Jc.current=t.matches;t.addListener(e),e()}else Jc.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Jc.current),"production"!==process.env.NODE_ENV&&Tu(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){eh.delete(this.current),this.projection&&this.projection.unmount(),Ho(this.notifyUpdate),Ho(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=Bi.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Yo.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),i()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,i){let o,s;if("production"!==process.env.NODE_ENV&&r&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ts(!1,t):ks(!1,t)}for(let t=0;t<rh;t++){const n=nh[t],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:u}=Pi[n];a&&(o=a),r(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),u&&(s=u))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||s&&vi(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:u})}return s}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):hl()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ih.length;e++){const n=ih[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(Ii(o))t.addValue(i,o),gu(r)&&r.add(i),"development"===process.env.NODE_ENV&&Tu("10.16.4"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.16.4 may not work as expected.`);else if(Ii(s))t.addValue(i,Eu(o,{owner:t})),gu(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const e=t.getValue(i);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(i);t.addValue(i,Eu(void 0!==e?e:o,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<oh;t++){const n=xi[t],r=this.props[n];(gi(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Eu(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=Lo(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Ii(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new bu),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ah extends sh{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let o=function(t,e,n){const r={};for(const i in t){const t=Ou(i,e);if(void 0!==t)r[i]=t;else{const t=n.getValue(i);t&&(r[i]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),i){!function(t,e,n){var r,i;const o=Object.keys(e).filter((e=>!t.hasValue(e))),s=o.length;var a;if(s)for(let u=0;u<s;u++){const s=o[u],l=e[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(i=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==i?i:e[s]),null!=c&&("string"==typeof c&&(yu(c)||pu(c))?c=parseFloat(c):(a=c,!Cu.find(Pu(a))&&ya.test(l)&&(c=fu(s,l))),t.addValue(s,Eu(c,{owner:t})),void 0===n[s]&&(n[s]=c),null!==c&&t.setBaseTarget(s,c))}}(this,n,o);const t=Qc(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class uh extends ah{readValueFromInstance(t,e){if(Bi.has(e)){const t=hu(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),i=(Wi(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Cl(t,e)}build(t,e,n,r){co(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Do(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ii(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){Co(t,e,n,r)}}class lh extends ah{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Bi.has(e)){const t=hu(e);return t&&t.default||0}return e=Mo.has(e)?e:Ao(e),t.getAttribute(e)}measureInstanceViewportBox(){return hl()}scrapeMotionValuesFromProps(t,e){return Ro(t,e)}build(t,e,n,r){To(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){Oo(t,e,0,r)}mount(t){this.isSVGTag=Eo(t.tagName),super.mount(t)}}const ch=(t,e)=>Li(t)?new lh(e,{enableHardwareAcceleration:!1}):new uh(e,{enableHardwareAcceleration:!0}),hh={...Wu,..._s,...Fc,...{layout:{ProjectionNode:Bc,MeasureLayout:Il}}},fh=Di(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...Li(t)?Go:Zo,preloadedFeatures:n,useRender:So(e),createVisualElement:r,Component:t}}(t,e,hh,ch)));function ph(){const t=r(!1);return di((()=>(t.current=!0,()=>{t.current=!1})),[]),t}class dh extends t.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function mh({children:e,isPresent:n}){const i=f(),o=r(null),s=r({width:0,height:0,top:0,left:0});return u((()=>{const{width:t,height:e,top:r,left:a}=s.current;if(n||!o.current||!t||!e)return;o.current.dataset.motionPopId=i;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${i}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n top: ${r}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(u)}}),[n]),t.createElement(dh,{isPresent:n,childRef:o,sizeRef:s},t.cloneElement(e,{ref:o}))}const vh=({children:e,initial:n,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:a})=>{const u=Vo(gh),l=f(),h=c((()=>({id:l,initial:n,isPresent:r,custom:o,onExitComplete:t=>{u.set(t,!0);for(const t of u.values())if(!t)return;i&&i()},register:t=>(u.set(t,!1),()=>u.delete(t))})),s?void 0:[r]);return c((()=>{u.forEach(((t,e)=>u.set(e,!1)))}),[r]),t.useEffect((()=>{!r&&!u.size&&i&&i()}),[r]),"popLayout"===a&&(e=t.createElement(mh,{isPresent:r},e)),t.createElement(fi.Provider,{value:h},e)};function gh(){return new Map}const yh=t=>t.key||"";const _h=({children:e,custom:n,initial:i=!0,onExitComplete:o,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:h="sync"})=>{ks(!u,"Replace exitBeforeEnter with mode='wait'");const f=a(Si).forceRender||function(){const t=ph(),[e,n]=p(0),r=l((()=>{t.current&&n(e+1)}),[e]);return[l((()=>Yo.postRender(r)),[r]),e]}()[0],g=ph(),y=function(t){const e=[];return m.forEach(t,(t=>{v(t)&&e.push(t)})),e}(e);let _=y;const x=r(new Map).current,b=r(_),w=r(new Map).current,T=r(!0);var k;if(di((()=>{T.current=!1,function(t,e){t.forEach((t=>{const n=yh(t);e.set(n,t)}))}(y,w),b.current=_})),k=()=>{T.current=!0,w.clear(),x.clear()},s((()=>()=>k()),[]),T.current)return t.createElement(t.Fragment,null,_.map((e=>t.createElement(vh,{key:yh(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:c,mode:h},e))));_=[..._];const E=b.current.map(yh),P=y.map(yh),S=E.length;for(let t=0;t<S;t++){const e=E[t];-1!==P.indexOf(e)||x.has(e)||x.set(e,void 0)}return"wait"===h&&x.size&&(_=[]),x.forEach(((e,r)=>{if(-1!==P.indexOf(r))return;const i=w.get(r);if(!i)return;const s=E.indexOf(r);let a=e;if(!a){const e=()=>{w.delete(r),x.delete(r);const t=b.current.findIndex((t=>t.key===r));if(b.current.splice(t,1),!x.size){if(b.current=y,!1===g.current)return;f(),o&&o()}};a=t.createElement(vh,{key:yh(i),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:c,mode:h},i),x.set(r,a)}_.splice(s,0,a)})),_=_.map((e=>{const n=e.key;return x.has(n)?e:t.createElement(vh,{key:yh(e),isPresent:!0,presenceAffectsLayout:c,mode:h},e)})),"production"!==process.env.NODE_ENV&&"wait"===h&&_.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),t.createElement(t.Fragment,null,x.size?_:_.map((t=>d(t))))};_(".spark-elastic {\n background-color: transparent;\n border: 0 none;\n margin: 0;\n padding: 0; }\n .spark-elastic > div {\n height: 100%; }\n .spark-elastic__stack {\n display: flex; }\n .spark-elastic__button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-decoration: none; }\n .spark-elastic__icon {\n border-radius: 100%;\n box-shadow: 0 0 0 1px inset black;\n height: 100%;\n width: 3.35rem; }\n");var xh=n((function(t,n){var r=t.children,i=t.className,o=void 0===i?"":i,s=t.as,a=void 0===s?"button":s,u=t.button,l=t.icon,c=void 0===l?e.createElement("div",{className:"spark-elastic__icon"}):l,h=y(t,["children","className","as","button","icon"]),f=p(!1),d=f[0],m=f[1],v=function(){return c},_=u?e.cloneElement(u):e.createElement("div",{className:"spark-elastic__button"},r);return e.createElement(a,g({ref:n,className:"spark-elastic ".concat(o)},h),e.createElement("div",{className:"spark-elastic__stack",onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},e.createElement(_h,{mode:"wait"},e.createElement(fh.div,{key:d?"hover":"idle",initial:{x:20},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},d&&e.createElement(v,null))),e.createElement(_h,{mode:"wait"},e.createElement(fh.div,{key:d?"hover":"idle",initial:{x:20},animate:{x:0},transition:{duration:.3,ease:"circOut"}},_)),e.createElement(_h,{mode:"wait"},e.createElement(fh.div,{key:d?"hover":"idle",initial:{x:10},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},!d&&e.createElement(v,null)))))})),bh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},wh={exports:{}};function Th(t,e){return Object.getOwnPropertyNames(Object(t)).reduce(((n,r)=>{const i=Object.getOwnPropertyDescriptor(Object(t),r),o=Object.getOwnPropertyDescriptor(Object(e),r);return Object.defineProperty(n,r,o||i)}),{})}function kh(t){return"string"==typeof t}function Eh(t){return Array.isArray(t)}function Ph(t={}){const e=Th(t);let n;return void 0!==e.types?n=e.types:void 0!==e.split&&(n=e.split),void 0!==n&&(e.types=(kh(n)||Eh(n)?String(n):"").split(",").map((t=>String(t).trim())).filter((t=>/((line)|(word)|(char))/i.test(t)))),(e.absolute||e.position)&&(e.absolute=e.absolute||/absolute/.test(t.position)),e}function Sh(t){const e=kh(t)||Eh(t)?String(t):"";return{none:!e,lines:/line/i.test(e),words:/word/i.test(e),chars:/char/i.test(e)}}function Ah(t){return null!==t&&"object"==typeof t}function Ch(t){return Ah(t)&&/^(1|3|11)$/.test(t.nodeType)}function Mh(t){return Eh(t)?t:null==t?[]:function(t){return Ah(t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0}(t.length)}(t)?Array.prototype.slice.call(t):[t]}function Oh(t){let e=t;return kh(t)&&(e=/^(#[a-z]\w+)$/.test(t.trim())?document.getElementById(t.trim().slice(1)):document.querySelectorAll(t)),Mh(e).reduce(((t,e)=>[...t,...Mh(e).filter(Ch)]),[])}!function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}
|
|
21
|
-
/*!
|
|
22
|
-
* Observer 3.12.2
|
|
23
|
-
* https://greensock.com
|
|
24
|
-
*
|
|
25
|
-
* @license Copyright 2008-2023, GreenSock. All rights reserved.
|
|
26
|
-
* Subject to the terms at https://greensock.com/standard-license or for
|
|
27
|
-
* Club GreenSock members, the agreement issued with that membership.
|
|
28
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
29
|
-
*/var r,i,o,s,a,u,l,c,h,f,p,d,m,v=function(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r},g=1,y=[],_=[],x=[],b=Date.now,w=function(t,e){return e},T=function(){var t=h.core,e=t.bridge||{},n=t._scrollers,r=t._proxies;n.push.apply(n,_),r.push.apply(r,x),_=n,x=r,w=function(t,n){return e[t](n)}},k=function(t,e){return~x.indexOf(t)&&x[x.indexOf(t)+1][e]},E=function(t){return!!~f.indexOf(t)},P=function(t,e,n,r,i){return t.addEventListener(e,n,{passive:!r,capture:!!i})},S=function(t,e,n,r){return t.removeEventListener(e,n,!!r)},A="scrollLeft",C="scrollTop",M=function(){return p&&p.isPressed||_.cache++},O=function(t,e){var n=function n(r){if(r||0===r){g&&(o.history.scrollRestoration="manual");var i=p&&p.isPressed;r=n.v=Math.round(r)||(p&&p.iOS?1:0),t(r),n.cacheID=_.cache,i&&w("ss",r)}else(e||_.cache!==n.cacheID||w("ref"))&&(n.cacheID=_.cache,n.v=t());return n.v+n.offset};return n.offset=0,t&&n},D={s:A,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:O((function(t){return arguments.length?o.scrollTo(t,R.sc()):o.pageXOffset||s[A]||a[A]||u[A]||0}))},R={s:C,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:D,sc:O((function(t){return arguments.length?o.scrollTo(D.sc(),t):o.pageYOffset||s[C]||a[C]||u[C]||0}))},L=function(t,e){return(e&&e._ctx&&e._ctx.selector||r.utils.toArray)(t)[0]||("string"==typeof t&&!1!==r.config().nullTargetWarn?console.warn("Element not found:",t):null)},V=function(t,e){var n=e.s,i=e.sc;E(t)&&(t=s.scrollingElement||a);var o=_.indexOf(t),u=i===R.sc?1:2;!~o&&(o=_.push(t)-1),_[o+u]||P(t,"scroll",M);var l=_[o+u],c=l||(_[o+u]=O(k(t,n),!0)||(E(t)?i:O((function(e){return arguments.length?t[n]=e:t[n]}))));return c.target=t,l||(c.smooth="smooth"===r.getProperty(t,"scrollBehavior")),c},j=function(t,e,n){var r=t,i=t,o=b(),s=o,a=e||50,u=Math.max(500,3*a),l=function(t,e){var u=b();e||u-o>a?(i=r,r=t,s=o,o=u):n?r+=t:r=i+(t-i)/(u-s)*(o-s)},c=function(t){var e=s,a=i,c=b();return(t||0===t)&&t!==r&&l(t),o===s||c-s>u?0:(r+(n?a:-a))/((n?c:o)-e)*1e3};return{update:l,reset:function(){i=r=n?0:r,s=o=0},getVelocity:c}},B=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},F=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},I=function(){(h=r.core.globals().ScrollTrigger)&&h.core&&T()},z=function(t){return(r=t||v())&&"undefined"!=typeof document&&document.body&&(o=window,s=document,a=s.documentElement,u=s.body,f=[o,s,a,u],r.utils.clamp,m=r.core.context||function(){},c="onpointerenter"in u?"pointer":"mouse",l=N.isTouch=o.matchMedia&&o.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in o||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,d=N.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return g=0}),500),I(),i=1),i};D.op=R,_.cache=0;var N=function(){function t(t){this.init(t)}return t.prototype.init=function(t){i||z(r)||console.warn("Please gsap.registerPlugin(Observer)"),h||I();var e=t.tolerance,n=t.dragMinimum,f=t.type,v=t.target,g=t.lineHeight,_=t.debounce,x=t.preventDefault,w=t.onStop,T=t.onStopDelay,k=t.ignore,A=t.wheelSpeed,C=t.event,O=t.onDragStart,N=t.onDragEnd,U=t.onDrag,W=t.onPress,$=t.onRelease,Y=t.onRight,H=t.onLeft,q=t.onUp,X=t.onDown,G=t.onChangeX,Z=t.onChangeY,K=t.onChange,Q=t.onToggleX,J=t.onToggleY,tt=t.onHover,et=t.onHoverEnd,nt=t.onMove,rt=t.ignoreCheck,it=t.isNormalizer,ot=t.onGestureStart,st=t.onGestureEnd,at=t.onWheel,ut=t.onEnable,lt=t.onDisable,ct=t.onClick,ht=t.scrollSpeed,ft=t.capture,pt=t.allowClicks,dt=t.lockAxis,mt=t.onLockAxis;this.target=v=L(v)||a,this.vars=t,k&&(k=r.utils.toArray(k)),e=e||1e-9,n=n||0,A=A||1,ht=ht||1,f=f||"wheel,touch,pointer",_=!1!==_,g||(g=parseFloat(o.getComputedStyle(u).lineHeight)||22);var vt,gt,yt,_t,xt,bt,wt,Tt=this,kt=0,Et=0,Pt=V(v,D),St=V(v,R),At=Pt(),Ct=St(),Mt=~f.indexOf("touch")&&!~f.indexOf("pointer")&&"pointerdown"===d[0],Ot=E(v),Dt=v.ownerDocument||s,Rt=[0,0,0],Lt=[0,0,0],Vt=0,jt=function(){return Vt=b()},Bt=function(t,e){return(Tt.event=t)&&k&&~k.indexOf(t.target)||e&&Mt&&"touch"!==t.pointerType||rt&&rt(t,e)},Ft=function(){Tt._vx.reset(),Tt._vy.reset(),gt.pause(),w&&w(Tt)},It=function(){var t=Tt.deltaX=F(Rt),n=Tt.deltaY=F(Lt),r=Math.abs(t)>=e,i=Math.abs(n)>=e;K&&(r||i)&&K(Tt,t,n,Rt,Lt),r&&(Y&&Tt.deltaX>0&&Y(Tt),H&&Tt.deltaX<0&&H(Tt),G&&G(Tt),Q&&Tt.deltaX<0!=kt<0&&Q(Tt),kt=Tt.deltaX,Rt[0]=Rt[1]=Rt[2]=0),i&&(X&&Tt.deltaY>0&&X(Tt),q&&Tt.deltaY<0&&q(Tt),Z&&Z(Tt),J&&Tt.deltaY<0!=Et<0&&J(Tt),Et=Tt.deltaY,Lt[0]=Lt[1]=Lt[2]=0),(_t||yt)&&(nt&&nt(Tt),yt&&(U(Tt),yt=!1),_t=!1),bt&&!(bt=!1)&&mt&&mt(Tt),xt&&(at(Tt),xt=!1),vt=0},zt=function(t,e,n){Rt[n]+=t,Lt[n]+=e,Tt._vx.update(t),Tt._vy.update(e),_?vt||(vt=requestAnimationFrame(It)):It()},Nt=function(t,e){dt&&!wt&&(Tt.axis=wt=Math.abs(t)>Math.abs(e)?"x":"y",bt=!0),"y"!==wt&&(Rt[2]+=t,Tt._vx.update(t,!0)),"x"!==wt&&(Lt[2]+=e,Tt._vy.update(e,!0)),_?vt||(vt=requestAnimationFrame(It)):It()},Ut=function(t){if(!Bt(t,1)){var e=(t=B(t,x)).clientX,r=t.clientY,i=e-Tt.x,o=r-Tt.y,s=Tt.isDragging;Tt.x=e,Tt.y=r,(s||Math.abs(Tt.startX-e)>=n||Math.abs(Tt.startY-r)>=n)&&(U&&(yt=!0),s||(Tt.isDragging=!0),Nt(i,o),s||O&&O(Tt))}},Wt=Tt.onPress=function(t){Bt(t,1)||t&&t.button||(Tt.axis=wt=null,gt.pause(),Tt.isPressed=!0,t=B(t),kt=Et=0,Tt.startX=Tt.x=t.clientX,Tt.startY=Tt.y=t.clientY,Tt._vx.reset(),Tt._vy.reset(),P(it?v:Dt,d[1],Ut,x,!0),Tt.deltaX=Tt.deltaY=0,W&&W(Tt))},$t=Tt.onRelease=function(t){if(!Bt(t,1)){S(it?v:Dt,d[1],Ut,!0);var e=!isNaN(Tt.y-Tt.startY),n=Tt.isDragging&&(Math.abs(Tt.x-Tt.startX)>3||Math.abs(Tt.y-Tt.startY)>3),i=B(t);!n&&e&&(Tt._vx.reset(),Tt._vy.reset(),x&&pt&&r.delayedCall(.08,(function(){if(b()-Vt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Dt.createEvent){var e=Dt.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,o,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,w&&!it&>.restart(!0),N&&n&&N(Tt),$&&$(Tt,n)}},Yt=function(t){return t.touches&&t.touches.length>1&&(Tt.isGesturing=!0)&&ot(t,Tt.isDragging)},Ht=function(){return(Tt.isGesturing=!1)||st(Tt)},qt=function(t){if(!Bt(t)){var e=Pt(),n=St();zt((e-At)*ht,(n-Ct)*ht,1),At=e,Ct=n,w&>.restart(!0)}},Xt=function(t){if(!Bt(t)){t=B(t,x),at&&(xt=!0);var e=(1===t.deltaMode?g:2===t.deltaMode?o.innerHeight:1)*A;zt(t.deltaX*e,t.deltaY*e,0),w&&!it&>.restart(!0)}},Gt=function(t){if(!Bt(t)){var e=t.clientX,n=t.clientY,r=e-Tt.x,i=n-Tt.y;Tt.x=e,Tt.y=n,_t=!0,(r||i)&&Nt(r,i)}},Zt=function(t){Tt.event=t,tt(Tt)},Kt=function(t){Tt.event=t,et(Tt)},Qt=function(t){return Bt(t)||B(t,x)&&ct(Tt)};gt=Tt._dc=r.delayedCall(T||.25,Ft).pause(),Tt.deltaX=Tt.deltaY=0,Tt._vx=j(0,50,!0),Tt._vy=j(0,50,!0),Tt.scrollX=Pt,Tt.scrollY=St,Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,m(this),Tt.enable=function(t){return Tt.isEnabled||(P(Ot?Dt:v,"scroll",M),f.indexOf("scroll")>=0&&P(Ot?Dt:v,"scroll",qt,x,ft),f.indexOf("wheel")>=0&&P(v,"wheel",Xt,x,ft),(f.indexOf("touch")>=0&&l||f.indexOf("pointer")>=0)&&(P(v,d[0],Wt,x,ft),P(Dt,d[2],$t),P(Dt,d[3],$t),pt&&P(v,"click",jt,!1,!0),ct&&P(v,"click",Qt),ot&&P(Dt,"gesturestart",Yt),st&&P(Dt,"gestureend",Ht),tt&&P(v,c+"enter",Zt),et&&P(v,c+"leave",Kt),nt&&P(v,c+"move",Gt)),Tt.isEnabled=!0,t&&t.type&&Wt(t),ut&&ut(Tt)),Tt},Tt.disable=function(){Tt.isEnabled&&(y.filter((function(t){return t!==Tt&&E(t.target)})).length||S(Ot?Dt:v,"scroll",M),Tt.isPressed&&(Tt._vx.reset(),Tt._vy.reset(),S(it?v:Dt,d[1],Ut,!0)),S(Ot?Dt:v,"scroll",qt,ft),S(v,"wheel",Xt,ft),S(v,d[0],Wt,ft),S(Dt,d[2],$t),S(Dt,d[3],$t),S(v,"click",jt,!0),S(v,"click",Qt),S(Dt,"gesturestart",Yt),S(Dt,"gestureend",Ht),S(v,c+"enter",Zt),S(v,c+"leave",Kt),S(v,c+"move",Gt),Tt.isEnabled=Tt.isPressed=Tt.isDragging=!1,lt&<(Tt))},Tt.kill=Tt.revert=function(){Tt.disable();var t=y.indexOf(Tt);t>=0&&y.splice(t,1),p===Tt&&(p=0)},y.push(Tt),it&&E(v)&&(p=Tt),Tt.enable(C)},n(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();N.version="3.12.2",N.create=function(t){return new N(t)},N.register=z,N.getAll=function(){return y.slice()},N.getById=function(t){return y.filter((function(e){return e.vars.id===t}))[0]},v()&&r.registerPlugin(N);
|
|
30
|
-
/*!
|
|
31
|
-
* ScrollTrigger 3.12.2
|
|
32
|
-
* https://greensock.com
|
|
33
|
-
*
|
|
34
|
-
* @license Copyright 2008-2023, GreenSock. All rights reserved.
|
|
35
|
-
* Subject to the terms at https://greensock.com/standard-license or for
|
|
36
|
-
* Club GreenSock members, the agreement issued with that membership.
|
|
37
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
38
|
-
*/
|
|
39
|
-
var U,W,$,Y,H,q,X,G,Z,K,Q,J,tt,et,nt,rt,it,ot,st,at,ut,lt,ct,ht,ft,pt,dt,mt,vt,gt,yt,_t,xt,bt,wt,Tt,kt=1,Et=Date.now,Pt=Et(),St=0,At=0,Ct=function(t,e,n){var r=Yt(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=r,r?t.substr(6,t.length-7):t},Mt=function(t,e){return!e||Yt(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ot=function t(){return At&&requestAnimationFrame(t)},Dt=function(){return et=1},Rt=function(){return et=0},Lt=function(t){return t},Vt=function(t){return Math.round(1e5*t)/1e5||0},jt=function(){return"undefined"!=typeof window},Bt=function(){return U||jt()&&(U=window.gsap)&&U.registerPlugin&&U},Ft=function(t){return!!~X.indexOf(t)},It=function(t){return("Height"===t?yt:$["inner"+t])||H["client"+t]||q["client"+t]},zt=function(t){return k(t,"getBoundingClientRect")||(Ft(t)?function(){return un.width=$.innerWidth,un.height=yt,un}:function(){return ve(t)})},Nt=function(t,e,n){var r=n.d,i=n.d2,o=n.a;return(o=k(t,"getBoundingClientRect"))?function(){return o()[r]}:function(){return(e?It(i):t["client"+i])||0}},Ut=function(t,e){return!e||~x.indexOf(t)?zt(t):function(){return un}},Wt=function(t,e){var n=e.s,r=e.d2,i=e.d,o=e.a;return Math.max(0,(n="scroll"+r)&&(o=k(t,n))?o()-zt(t)()[i]:Ft(t)?(H[n]||q[n])-It(r):t[n]-t["offset"+r])},$t=function(t,e){for(var n=0;n<st.length;n+=3)(!e||~e.indexOf(st[n+1]))&&t(st[n],st[n+1],st[n+2])},Yt=function(t){return"string"==typeof t},Ht=function(t){return"function"==typeof t},qt=function(t){return"number"==typeof t},Xt=function(t){return"object"==typeof t},Gt=function(t,e,n){return t&&t.progress(e?0:1)&&n&&t.pause()},Zt=function(t,e){if(t.enabled){var n=e(t);n&&n.totalTime&&(t.callbackAnimation=n)}},Kt=Math.abs,Qt="left",Jt="top",te="right",ee="bottom",ne="width",re="height",ie="Right",oe="Left",se="Top",ae="Bottom",ue="padding",le="margin",ce="Width",he="Height",fe="px",pe=function(t){return $.getComputedStyle(t)},de=function(t){var e=pe(t).position;t.style.position="absolute"===e||"fixed"===e?e:"relative"},me=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},ve=function(t,e){var n=e&&"matrix(1, 0, 0, 1, 0, 0)"!==pe(t)[nt]&&U.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=t.getBoundingClientRect();return n&&n.progress(0).kill(),r},ge=function(t,e){var n=e.d2;return t["offset"+n]||t["client"+n]||0},ye=function(t){var e,n=[],r=t.labels,i=t.duration();for(e in r)n.push(r[e]/i);return n},_e=function(t){return function(e){return U.utils.snap(ye(t),e)}},xe=function(t){var e=U.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return n?function(t,r,i){var o;if(void 0===i&&(i=.001),!r)return e(t);if(r>0){for(t-=i,o=0;o<n.length;o++)if(n[o]>=t)return n[o];return n[o-1]}for(o=n.length,t+=i;o--;)if(n[o]<=t)return n[o];return n[0]}:function(n,r,i){void 0===i&&(i=.001);var o=e(n);return!r||Math.abs(o-n)<i||o-n<0==r<0?o:e(r<0?n-t:n+t)}},be=function(t){return function(e,n){return xe(ye(t))(e,n.direction)}},we=function(t,e,n,r){return n.split(",").forEach((function(n){return t(e,n,r)}))},Te=function(t,e,n,r,i){return t.addEventListener(e,n,{passive:!r,capture:!!i})},ke=function(t,e,n,r){return t.removeEventListener(e,n,!!r)},Ee=function(t,e,n){(n=n&&n.wheelHandler)&&(t(e,"wheel",n),t(e,"touchmove",n))},Pe={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Se={toggleActions:"play",anticipatePin:0},Ae={top:0,left:0,center:.5,bottom:1,right:1},Ce=function(t,e){if(Yt(t)){var n=t.indexOf("="),r=~n?+(t.charAt(n-1)+1)*parseFloat(t.substr(n+1)):0;~n&&(t.indexOf("%")>n&&(r*=e/100),t=t.substr(0,n-1)),t=r+(t in Ae?Ae[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Me=function(t,e,n,r,i,o,s,a){var u=i.startColor,l=i.endColor,c=i.fontSize,h=i.indent,f=i.fontWeight,p=Y.createElement("div"),d=Ft(n)||"fixed"===k(n,"pinType"),m=-1!==t.indexOf("scroller"),v=d?q:n,g=-1!==t.indexOf("start"),y=g?u:l,_="border-color:"+y+";font-size:"+c+";color:"+y+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return _+="position:"+((m||a)&&d?"fixed;":"absolute;"),(m||a||!d)&&(_+=(r===R?te:ee)+":"+(o+parseFloat(h))+"px;"),s&&(_+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),p._isStart=g,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=_,p.innerText=e||0===e?t+"-"+e:t,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+r.op.d2],Oe(p,0,r,g),p},Oe=function(t,e,n,r){var i={display:"block"},o=n[r?"os2":"p2"],s=n[r?"p2":"os2"];t._isFlipped=r,i[n.a+"Percent"]=r?-100:0,i[n.a]=r?"1px":0,i["border"+o+ce]=1,i["border"+s+ce]=0,i[n.p]=e+"px",U.set(t,i)},De=[],Re={},Le=function(){return Et()-St>34&&(xt||(xt=requestAnimationFrame(Qe)))},Ve=function(){(!ct||!ct.isPressed||ct.startX>q.clientWidth)&&(_.cache++,ct?xt||(xt=requestAnimationFrame(Qe)):Qe(),St||Ne("scrollStart"),St=Et())},je=function(){pt=$.innerWidth,ft=$.innerHeight},Be=function(){_.cache++,!tt&&!lt&&!Y.fullscreenElement&&!Y.webkitFullscreenElement&&(!ht||pt!==$.innerWidth||Math.abs($.innerHeight-ft)>.25*$.innerHeight)&&G.restart(!0)},Fe={},Ie=[],ze=function t(){return ke(mn,"scrollEnd",t)||Ge(!0)},Ne=function(t){return Fe[t]&&Fe[t].map((function(t){return t()}))||Ie},Ue=[],We=function(t){for(var e=0;e<Ue.length;e+=5)(!t||Ue[e+4]&&Ue[e+4].query===t)&&(Ue[e].style.cssText=Ue[e+1],Ue[e].getBBox&&Ue[e].setAttribute("transform",Ue[e+2]||""),Ue[e+3].uncache=1)},$e=function(t,e){var n;for(rt=0;rt<De.length;rt++)!(n=De[rt])||e&&n._ctx!==e||(t?n.kill(1):n.revert(!0,!0));e&&We(e),e||Ne("revert")},Ye=function(t,e){_.cache++,(e||!bt)&&_.forEach((function(t){return Ht(t)&&t.cacheID++&&(t.rec=0)})),Yt(t)&&($.history.scrollRestoration=vt=t)},He=0,qe=function(){if(wt!==He){var t=wt=He;requestAnimationFrame((function(){return t===He&&Ge(!0)}))}},Xe=function(){q.appendChild(gt),yt=gt.offsetHeight||$.innerHeight,q.removeChild(gt)},Ge=function(t,e){if(!St||t){Xe(),bt=mn.isRefreshing=!0,_.forEach((function(t){return Ht(t)&&++t.cacheID&&(t.rec=t())}));var n=Ne("refreshInit");at&&mn.sort(),e||$e(),_.forEach((function(t){Ht(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),De.slice(0).forEach((function(t){return t.refresh()})),De.forEach((function(t,e){if(t._subPinOffset&&t.pin){var n=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[n];t.revert(!0,1),t.adjustPinSpacing(t.pin[n]-r),t.refresh()}})),De.forEach((function(t){var e=Wt(t.scroller,t._dir);("max"===t.vars.end||t._endClamp&&t.end>e)&&t.setPositions(t.start,Math.max(t.start+1,e),!0)})),n.forEach((function(t){return t&&t.render&&t.render(-1)})),_.forEach((function(t){Ht(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),Ye(vt,1),G.pause(),He++,bt=2,Qe(2),De.forEach((function(t){return Ht(t.vars.onRefresh)&&t.vars.onRefresh(t)})),bt=mn.isRefreshing=!1,Ne("refresh")}else Te(mn,"scrollEnd",ze)},Ze=0,Ke=1,Qe=function(t){if(!bt||2===t){mn.isUpdating=!0,Tt&&Tt.update(0);var e=De.length,n=Et(),r=n-Pt>=50,i=e&&De[0].scroll();if(Ke=Ze>i?-1:1,bt||(Ze=i),r&&(St&&!et&&n-St>200&&(St=0,Ne("scrollEnd")),Q=Pt,Pt=n),Ke<0){for(rt=e;rt-- >0;)De[rt]&&De[rt].update(0,r);Ke=1}else for(rt=0;rt<e;rt++)De[rt]&&De[rt].update(0,r);mn.isUpdating=!1}xt=0},Je=[Qt,Jt,ee,te,le+ae,le+ie,le+se,le+oe,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],tn=Je.concat([ne,re,"boxSizing","max"+ce,"max"+he,"position",le,ue,ue+se,ue+ie,ue+ae,ue+oe]),en=function(t,e,n){on(n);var r=t._gsap;if(r.spacerIsNative)on(r.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1},nn=function(t,e,n,r){if(!t._gsap.swappedIn){for(var i,o=Je.length,s=e.style,a=t.style;o--;)s[i=Je[o]]=n[i];s.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(s.display="inline-block"),a[ee]=a[te]="auto",s.flexBasis=n.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[ne]=ge(t,D)+fe,s[re]=ge(t,R)+fe,s[ue]=a[le]=a[Jt]=a[Qt]="0",on(r),a[ne]=a["max"+ce]=n[ne],a[re]=a["max"+he]=n[re],a[ue]=n[ue],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},rn=/([A-Z])/g,on=function(t){if(t){var e,n,r=t.t.style,i=t.length,o=0;for((t.t._gsap||U.core.getCache(t.t)).uncache=1;o<i;o+=2)n=t[o+1],e=t[o],n?r[e]=n:r[e]&&r.removeProperty(e.replace(rn,"-$1").toLowerCase())}},sn=function(t){for(var e=tn.length,n=t.style,r=[],i=0;i<e;i++)r.push(tn[i],n[tn[i]]);return r.t=t,r},an=function(t,e,n){for(var r,i=[],o=t.length,s=n?8:0;s<o;s+=2)r=t[s],i.push(r,r in e?e[r]:t[s+1]);return i.t=t.t,i},un={left:0,top:0},ln=function(t,e,n,r,i,o,s,a,u,l,c,h,f,p){Ht(t)&&(t=t(a)),Yt(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?Ce("0"+t.substr(3),n):0));var d,m,v,g=f?f.time():0;if(f&&f.seek(0),isNaN(t)||(t=+t),qt(t))f&&(t=U.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,h,t)),s&&Oe(s,n,r,!0);else{Ht(e)&&(e=e(a));var y,_,x,b,w=(t||"0").split(" ");v=L(e,a)||q,(y=ve(v)||{})&&(y.left||y.top)||"none"!==pe(v).display||(b=v.style.display,v.style.display="block",y=ve(v),b?v.style.display=b:v.style.removeProperty("display")),_=Ce(w[0],y[r.d]),x=Ce(w[1]||"0",n),t=y[r.p]-u[r.p]-l+_+i-x,s&&Oe(s,x,r,n-x<20||s._isStart&&x>20),n-=n-x}if(p&&(a[p]=t||-.001,t<0&&(t=0)),o){var T=t+n,k=o._isStart;d="scroll"+r.d2,Oe(o,T,r,k&&T>20||!k&&(c?Math.max(q[d],H[d]):o.parentNode[d])<=T+1),c&&(u=ve(s),c&&(o.style[r.op.p]=u[r.op.p]-r.op.m-o._offset+fe))}return f&&v&&(d=ve(v),f.seek(h),m=ve(v),f._caScrollDist=d[r.p]-m[r.p],t=t/f._caScrollDist*h),f&&f.seek(g),f?t:Math.round(t)},cn=/(webkit|moz|length|cssText|inset)/i,hn=function(t,e,n,r){if(t.parentNode!==e){var i,o,s=t.style;if(e===q){for(i in t._stOrig=s.cssText,o=pe(t))+i||cn.test(i)||!o[i]||"string"!=typeof s[i]||"0"===i||(s[i]=o[i]);s.top=n,s.left=r}else s.cssText=t._stOrig;U.core.getCache(t).uncache=1,e.appendChild(t)}},fn=function(t,e,n){var r=e,i=r;return function(e){var o=Math.round(t());return o!==r&&o!==i&&Math.abs(o-r)>3&&Math.abs(o-i)>3&&(e=o,n&&n()),i=r,r=e,e}},pn=function(t,e,n){var r={};r[e.p]="+="+n,U.set(t,r)},dn=function(t,e){var n=V(t,e),r="_scroll"+e.p2,i=function e(i,o,s,a,u){var l=e.tween,c=o.onComplete,h={};s=s||n();var f=fn(n,s,(function(){l.kill(),e.tween=0}));return u=a&&u||0,a=a||i-s,l&&l.kill(),o[r]=i,o.modifiers=h,h[r]=function(){return f(s+a*l.ratio+u*l.ratio*l.ratio)},o.onUpdate=function(){_.cache++,Qe()},o.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=U.to(t,o)};return t[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Te(t,"wheel",n.wheelHandler),mn.isTouch&&Te(t,"touchmove",n.wheelHandler),i},mn=function(){function t(e,n){W||t.register(U)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),mt(this),this.init(e,n)}return t.prototype.init=function(e,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),At){var r,i,o,s,a,u,l,c,h,f,p,d,m,v,g,y,b,w,T,E,P,S,A,C,M,O,j,B,F,I,z,N,W,X,G,J,nt,it,ot,st=e=me(Yt(e)||qt(e)||e.nodeType?{trigger:e}:e,Se),lt=st.onUpdate,ct=st.toggleClass,ht=st.id,ft=st.onToggle,pt=st.onRefresh,dt=st.scrub,mt=st.trigger,vt=st.pin,gt=st.pinSpacing,yt=st.invalidateOnRefresh,xt=st.anticipatePin,wt=st.onScrubComplete,Pt=st.onSnapComplete,Ot=st.once,Dt=st.snap,Rt=st.pinReparent,jt=st.pinSpacer,Bt=st.containerAnimation,It=st.fastScrollEnd,zt=st.preventOverlaps,$t=e.horizontal||e.containerAnimation&&!1!==e.horizontal?D:R,Qt=!dt&&0!==dt,Jt=L(e.scroller||$),te=U.core.getCache(Jt),ee=Ft(Jt),ye="fixed"===("pinType"in e?e.pinType:k(Jt,"pinType")||ee&&"fixed"),we=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Ee=Qt&&e.toggleActions.split(" "),Ae="markers"in e?e.markers:Se.markers,Oe=ee?0:parseFloat(pe(Jt)["border"+$t.p2+ce])||0,Le=this,je=e.onRefreshInit&&function(){return e.onRefreshInit(Le)},Fe=Nt(Jt,ee,$t),Ie=Ut(Jt,ee),Ne=0,Ue=0,We=0,$e=V(Jt,$t);if(Le._startClamp=Le._endClamp=!1,Le._dir=$t,xt*=45,Le.scroller=Jt,Le.scroll=Bt?Bt.time.bind(Bt):$e,s=$e(),Le.vars=e,n=n||e.animation,"refreshPriority"in e&&(at=1,-9999===e.refreshPriority&&(Tt=Le)),te.tweenScroll=te.tweenScroll||{top:dn(Jt,R),left:dn(Jt,D)},Le.tweenTo=r=te.tweenScroll[$t.p],Le.scrubDuration=function(t){(W=qt(t)&&t)?N?N.duration(t):N=U.to(n,{ease:"expo",totalProgress:"+=0",duration:W,paused:!0,onComplete:function(){return wt&&wt(Le)}}):(N&&N.progress(1).kill(),N=0)},n&&(n.vars.lazy=!1,n._initted&&!Le.isReverted||!1!==n.vars.immediateRender&&!1!==e.immediateRender&&n.duration()&&n.render(0,!0,!0),Le.animation=n.pause(),n.scrollTrigger=Le,Le.scrubDuration(dt),I=0,ht||(ht=n.vars.id)),Dt&&(Xt(Dt)&&!Dt.push||(Dt={snapTo:Dt}),"scrollBehavior"in q.style&&U.set(ee?[q,H]:Jt,{scrollBehavior:"auto"}),_.forEach((function(t){return Ht(t)&&t.target===(ee?Y.scrollingElement||H:Jt)&&(t.smooth=!1)})),o=Ht(Dt.snapTo)?Dt.snapTo:"labels"===Dt.snapTo?_e(n):"labelsDirectional"===Dt.snapTo?be(n):!1!==Dt.directional?function(t,e){return xe(Dt.snapTo)(t,Et()-Ue<500?0:e.direction)}:U.utils.snap(Dt.snapTo),X=Dt.duration||{min:.1,max:2},X=Xt(X)?K(X.min,X.max):K(X,X),G=U.delayedCall(Dt.delay||W/2||.1,(function(){var t=$e(),e=Et()-Ue<500,i=r.tween;if(!(e||Math.abs(Le.getVelocity())<10)||i||et||Ne===t)Le.isActive&&Ne!==t&&G.restart(!0);else{var s=(t-u)/v,a=n&&!Qt?n.totalProgress():s,c=e?0:(a-z)/(Et()-Q)*1e3||0,h=U.utils.clamp(-s,1-s,Kt(c/2)*c/.185),f=s+(!1===Dt.inertia?0:h),p=K(0,1,o(f,Le)),d=Math.round(u+p*v),m=Dt,g=m.onStart,y=m.onInterrupt,_=m.onComplete;if(t<=l&&t>=u&&d!==t){if(i&&!i._initted&&i.data<=Kt(d-t))return;!1===Dt.inertia&&(h=p-s),r(d,{duration:X(Kt(.185*Math.max(Kt(f-a),Kt(p-a))/c/.05||0)),ease:Dt.ease||"power3",data:Kt(d-t),onInterrupt:function(){return G.restart(!0)&&y&&y(Le)},onComplete:function(){Le.update(),Ne=$e(),I=z=n&&!Qt?n.totalProgress():Le.progress,Pt&&Pt(Le),_&&_(Le)}},t,h*v,d-t-h*v),g&&g(Le,r.tween)}}})).pause()),ht&&(Re[ht]=Le),(ot=(mt=Le.trigger=L(mt||!0!==vt&&vt))&&mt._gsap&&mt._gsap.stRevert)&&(ot=ot(Le)),vt=!0===vt?mt:L(vt),Yt(ct)&&(ct={targets:mt,className:ct}),vt&&(!1===gt||gt===le||(gt=!(!gt&&vt.parentNode&&vt.parentNode.style&&"flex"===pe(vt.parentNode).display)&&ue),Le.pin=vt,(i=U.core.getCache(vt)).spacer?g=i.pinState:(jt&&((jt=L(jt))&&!jt.nodeType&&(jt=jt.current||jt.nativeElement),i.spacerIsNative=!!jt,jt&&(i.spacerState=sn(jt))),i.spacer=w=jt||Y.createElement("div"),w.classList.add("pin-spacer"),ht&&w.classList.add("pin-spacer-"+ht),i.pinState=g=sn(vt)),!1!==e.force3D&&U.set(vt,{force3D:!0}),Le.spacer=w=i.spacer,F=pe(vt),C=F[gt+$t.os2],E=U.getProperty(vt),P=U.quickSetter(vt,$t.a,fe),nn(vt,w,F),b=sn(vt)),Ae){d=Xt(Ae)?me(Ae,Pe):Pe,f=Me("scroller-start",ht,Jt,$t,d,0),p=Me("scroller-end",ht,Jt,$t,d,0,f),T=f["offset"+$t.op.d2];var Ye=L(k(Jt,"content")||Jt);c=this.markerStart=Me("start",ht,Ye,$t,d,T,0,Bt),h=this.markerEnd=Me("end",ht,Ye,$t,d,T,0,Bt),Bt&&(it=U.quickSetter([c,h],$t.a,fe)),ye||x.length&&!0===k(Jt,"fixedMarkers")||(de(ee?q:Jt),U.set([f,p],{force3D:!0}),O=U.quickSetter(f,$t.a,fe),B=U.quickSetter(p,$t.a,fe))}if(Bt){var He=Bt.vars.onUpdate,Xe=Bt.vars.onUpdateParams;Bt.eventCallback("onUpdate",(function(){Le.update(0,0,1),He&&He.apply(Bt,Xe||[])}))}if(Le.previous=function(){return De[De.indexOf(Le)-1]},Le.next=function(){return De[De.indexOf(Le)+1]},Le.revert=function(t,e){if(!e)return Le.kill(!0);var r=!1!==t||!Le.enabled,i=tt;r!==Le.isReverted&&(r&&(J=Math.max($e(),Le.scroll.rec||0),We=Le.progress,nt=n&&n.progress()),c&&[c,h,f,p].forEach((function(t){return t.style.display=r?"none":"block"})),r&&(tt=Le,Le.update(r)),!vt||Rt&&Le.isActive||(r?en(vt,w,g):nn(vt,w,pe(vt),M)),r||Le.update(r),tt=i,Le.isReverted=r)},Le.refresh=function(i,o,d,_){if(!tt&&Le.enabled||o)if(vt&&i&&St)Te(t,"scrollEnd",ze);else{!bt&&je&&je(Le),tt=Le,r.tween&&!d&&(r.tween.kill(),r.tween=0),N&&N.pause(),yt&&n&&n.revert({kill:!1}).invalidate(),Le.isReverted||Le.revert(!0,!0),Le._subPinOffset=!1;var x,T,k,P,C,O,B,F,I,z,W,$,X,Z=Fe(),K=Ie(),Q=Bt?Bt.duration():Wt(Jt,$t),et=v<=.01,rt=0,it=_||0,ot=Xt(d)?d.end:e.end,st=e.endTrigger||mt,at=Xt(d)?d.start:e.start||(0!==e.start&&mt?vt?"0 0":"0 100%":0),lt=Le.pinnedContainer=e.pinnedContainer&&L(e.pinnedContainer,Le),ct=mt&&Math.max(0,De.indexOf(Le))||0,ht=ct;for(Ae&&Xt(d)&&($=U.getProperty(f,$t.p),X=U.getProperty(p,$t.p));ht--;)(O=De[ht]).end||O.refresh(0,1)||(tt=Le),!(B=O.pin)||B!==mt&&B!==vt&&B!==lt||O.isReverted||(z||(z=[]),z.unshift(O),O.revert(!0,!0)),O!==De[ht]&&(ct--,ht--);for(Ht(at)&&(at=at(Le)),at=Ct(at,"start",Le),u=ln(at,mt,Z,$t,$e(),c,f,Le,K,Oe,ye,Q,Bt,Le._startClamp&&"_startClamp")||(vt?-.001:0),Ht(ot)&&(ot=ot(Le)),Yt(ot)&&!ot.indexOf("+=")&&(~ot.indexOf(" ")?ot=(Yt(at)?at.split(" ")[0]:"")+ot:(rt=Ce(ot.substr(2),Z),ot=Yt(at)?at:(Bt?U.utils.mapRange(0,Bt.duration(),Bt.scrollTrigger.start,Bt.scrollTrigger.end,u):u)+rt,st=mt)),ot=Ct(ot,"end",Le),l=Math.max(u,ln(ot||(st?"100% 0":Q),st,Z,$t,$e()+rt,h,p,Le,K,Oe,ye,Q,Bt,Le._endClamp&&"_endClamp"))||-.001,rt=0,ht=ct;ht--;)(B=(O=De[ht]).pin)&&O.start-O._pinPush<=u&&!Bt&&O.end>0&&(x=O.end-(Le._startClamp?Math.max(0,O.start):O.start),(B===mt&&O.start-O._pinPush<u||B===lt)&&isNaN(at)&&(rt+=x*(1-O.progress)),B===vt&&(it+=x));if(u+=rt,l+=rt,Le._startClamp&&(Le._startClamp+=rt),Le._endClamp&&!bt&&(Le._endClamp=l||-.001,l=Math.min(l,Wt(Jt,$t))),v=l-u||(u-=.01)&&.001,et&&(We=U.utils.clamp(0,1,U.utils.normalize(u,l,J))),Le._pinPush=it,c&&rt&&((x={})[$t.a]="+="+rt,lt&&(x[$t.p]="-="+$e()),U.set([c,h],x)),vt)x=pe(vt),P=$t===R,k=$e(),S=parseFloat(E($t.a))+it,!Q&&l>1&&(W={style:W=(ee?Y.scrollingElement||H:Jt).style,value:W["overflow"+$t.a.toUpperCase()]},ee&&"scroll"!==pe(q)["overflow"+$t.a.toUpperCase()]&&(W.style["overflow"+$t.a.toUpperCase()]="scroll")),nn(vt,w,x),b=sn(vt),T=ve(vt,!0),F=ye&&V(Jt,P?D:R)(),gt&&((M=[gt+$t.os2,v+it+fe]).t=w,(ht=gt===ue?ge(vt,$t)+v+it:0)&&M.push($t.d,ht+fe),on(M),lt&&De.forEach((function(t){t.pin===lt&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),ye&&$e(J)),ye&&((C={top:T.top+(P?k-u:F)+fe,left:T.left+(P?F:k-u)+fe,boxSizing:"border-box",position:"fixed"})[ne]=C["max"+ce]=Math.ceil(T.width)+fe,C[re]=C["max"+he]=Math.ceil(T.height)+fe,C[le]=C[le+se]=C[le+ie]=C[le+ae]=C[le+oe]="0",C[ue]=x[ue],C[ue+se]=x[ue+se],C[ue+ie]=x[ue+ie],C[ue+ae]=x[ue+ae],C[ue+oe]=x[ue+oe],y=an(g,C,Rt),bt&&$e(0)),n?(I=n._initted,ut(1),n.render(n.duration(),!0,!0),A=E($t.a)-S+v+it,j=Math.abs(v-A)>1,ye&&j&&y.splice(y.length-2,2),n.render(0,!0,!0),I||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),ut(0)):A=v,W&&(W.value?W.style["overflow"+$t.a.toUpperCase()]=W.value:W.style.removeProperty("overflow-"+$t.a));else if(mt&&$e()&&!Bt)for(T=mt.parentNode;T&&T!==q;)T._pinOffset&&(u-=T._pinOffset,l-=T._pinOffset),T=T.parentNode;z&&z.forEach((function(t){return t.revert(!1,!0)})),Le.start=u,Le.end=l,s=a=bt?J:$e(),Bt||bt||(s<J&&$e(J),Le.scroll.rec=0),Le.revert(!1,!0),Ue=Et(),G&&(Ne=-1,G.restart(!0)),tt=0,n&&Qt&&(n._initted||nt)&&n.progress()!==nt&&n.progress(nt||0,!0).render(n.time(),!0,!0),(et||We!==Le.progress||Bt)&&(n&&!Qt&&n.totalProgress(Bt&&u<-.001&&!We?U.utils.normalize(u,l,0):We,!0),Le.progress=et||(s-u)/v===We?0:We),vt&>&&(w._pinOffset=Math.round(Le.progress*A)),N&&N.invalidate(),isNaN($)||($-=U.getProperty(f,$t.p),X-=U.getProperty(p,$t.p),pn(f,$t,$),pn(c,$t,$-(_||0)),pn(p,$t,X),pn(h,$t,X-(_||0))),et&&!bt&&Le.update(),!pt||bt||m||(m=!0,pt(Le),m=!1)}},Le.getVelocity=function(){return($e()-a)/(Et()-Q)*1e3||0},Le.endAnimation=function(){Gt(Le.callbackAnimation),n&&(N?N.progress(1):n.paused()?Qt||Gt(n,Le.direction<0,1):Gt(n,n.reversed()))},Le.labelToScroll=function(t){return n&&n.labels&&(u||Le.refresh()||u)+n.labels[t]/n.duration()*v||0},Le.getTrailing=function(t){var e=De.indexOf(Le),n=Le.direction>0?De.slice(0,e).reverse():De.slice(e+1);return(Yt(t)?n.filter((function(e){return e.vars.preventOverlaps===t})):n).filter((function(t){return Le.direction>0?t.end<=u:t.start>=l}))},Le.update=function(t,e,i){if(!Bt||i||t){var o,c,h,p,d,m,g,_=!0===bt?J:Le.scroll(),x=t?0:(_-u)/v,T=x<0?0:x>1?1:x||0,k=Le.progress;if(e&&(a=s,s=Bt?$e():_,Dt&&(z=I,I=n&&!Qt?n.totalProgress():T)),xt&&!T&&vt&&!tt&&!kt&&St&&u<_+(_-a)/(Et()-Q)*xt&&(T=1e-4),T!==k&&Le.enabled){if(p=(d=(o=Le.isActive=!!T&&T<1)!=(!!k&&k<1))||!!T!=!!k,Le.direction=T>k?1:-1,Le.progress=T,p&&!tt&&(c=T&&!k?0:1===T?1:1===k?2:3,Qt&&(h=!d&&"none"!==Ee[c+1]&&Ee[c+1]||Ee[c],g=n&&("complete"===h||"reset"===h||h in n))),zt&&(d||g)&&(g||dt||!n)&&(Ht(zt)?zt(Le):Le.getTrailing(zt).forEach((function(t){return t.endAnimation()}))),Qt||(!N||tt||kt?n&&n.totalProgress(T,!(!tt||!Ue&&!t)):(N._dp._time-N._start!==N._time&&N.render(N._dp._time-N._start),N.resetTo?N.resetTo("totalProgress",T,n._tTime/n._tDur):(N.vars.totalProgress=T,N.invalidate().restart()))),vt)if(t&>&&(w.style[gt+$t.os2]=C),ye){if(p){if(m=!t&&T>k&&l+1>_&&_+1>=Wt(Jt,$t),Rt)if(t||!o&&!m)hn(vt,w);else{var E=ve(vt,!0),M=_-u;hn(vt,q,E.top+($t===R?M:0)+fe,E.left+($t===R?0:M)+fe)}on(o||m?y:b),j&&T<1&&o||P(S+(1!==T||m?0:A))}}else P(Vt(S+A*T));Dt&&!r.tween&&!tt&&!kt&&G.restart(!0),ct&&(d||Ot&&T&&(T<1||!_t))&&Z(ct.targets).forEach((function(t){return t.classList[o||Ot?"add":"remove"](ct.className)})),lt&&!Qt&&!t&<(Le),p&&!tt?(Qt&&(g&&("complete"===h?n.pause().totalProgress(1):"reset"===h?n.restart(!0).pause():"restart"===h?n.restart(!0):n[h]()),lt&<(Le)),!d&&_t||(ft&&d&&Zt(Le,ft),we[c]&&Zt(Le,we[c]),Ot&&(1===T?Le.kill(!1,1):we[c]=0),d||we[c=1===T?1:3]&&Zt(Le,we[c])),It&&!o&&Math.abs(Le.getVelocity())>(qt(It)?It:2500)&&(Gt(Le.callbackAnimation),N?N.progress(1):Gt(n,"reverse"===h?1:!T,1))):Qt&<&&!tt&<(Le)}if(B){var D=Bt?_/Bt.duration()*(Bt._caScrollDist||0):_;O(D+(f._isFlipped?1:0)),B(D)}it&&it(-_/Bt.duration()*(Bt._caScrollDist||0))}},Le.enable=function(e,n){Le.enabled||(Le.enabled=!0,Te(Jt,"resize",Be),ee||Te(Jt,"scroll",Ve),je&&Te(t,"refreshInit",je),!1!==e&&(Le.progress=We=0,s=a=Ne=$e()),!1!==n&&Le.refresh())},Le.getTween=function(t){return t&&r?r.tween:N},Le.setPositions=function(t,e,n,r){if(Bt){var i=Bt.scrollTrigger,o=Bt.duration(),s=i.end-i.start;t=i.start+s*t/o,e=i.start+s*e/o}Le.refresh(!1,!1,{start:Mt(t,n&&!!Le._startClamp),end:Mt(e,n&&!!Le._endClamp)},r),Le.update()},Le.adjustPinSpacing=function(t){if(M&&t){var e=M.indexOf($t.d)+1;M[e]=parseFloat(M[e])+t+fe,M[1]=parseFloat(M[1])+t+fe,on(M)}},Le.disable=function(e,n){if(Le.enabled&&(!1!==e&&Le.revert(!0,!0),Le.enabled=Le.isActive=!1,n||N&&N.pause(),J=0,i&&(i.uncache=1),je&&ke(t,"refreshInit",je),G&&(G.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!ee)){for(var o=De.length;o--;)if(De[o].scroller===Jt&&De[o]!==Le)return;ke(Jt,"resize",Be),ee||ke(Jt,"scroll",Ve)}},Le.kill=function(t,r){Le.disable(t,r),N&&!r&&N.kill(),ht&&delete Re[ht];var o=De.indexOf(Le);o>=0&&De.splice(o,1),o===rt&&Ke>0&&rt--,o=0,De.forEach((function(t){return t.scroller===Le.scroller&&(o=1)})),o||bt||(Le.scroll.rec=0),n&&(n.scrollTrigger=null,t&&n.revert({kill:!1}),r||n.kill()),c&&[c,h,f,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Tt===Le&&(Tt=0),vt&&(i&&(i.uncache=1),o=0,De.forEach((function(t){return t.pin===vt&&o++})),o||(i.spacer=0)),e.onKill&&e.onKill(Le)},De.push(Le),Le.enable(!1,!1),ot&&ot(Le),n&&n.add&&!v){var Ge=Le.update;Le.update=function(){Le.update=Ge,u||l||Le.refresh()},U.delayedCall(.01,Le.update),v=.01,u=l=0}else Le.refresh();vt&&qe()}else this.update=this.refresh=this.kill=Lt},t.register=function(e){return W||(U=e||Bt(),jt()&&window.document&&t.enable(),W=At),W},t.defaults=function(t){if(t)for(var e in t)Se[e]=t[e];return Se},t.disable=function(t,e){At=0,De.forEach((function(n){return n[e?"kill":"disable"](t)})),ke($,"wheel",Ve),ke(Y,"scroll",Ve),clearInterval(J),ke(Y,"touchcancel",Lt),ke(q,"touchstart",Lt),we(ke,Y,"pointerdown,touchstart,mousedown",Dt),we(ke,Y,"pointerup,touchend,mouseup",Rt),G.kill(),$t(ke);for(var n=0;n<_.length;n+=3)Ee(ke,_[n],_[n+1]),Ee(ke,_[n],_[n+2])},t.enable=function(){if($=window,Y=document,H=Y.documentElement,q=Y.body,U&&(Z=U.utils.toArray,K=U.utils.clamp,mt=U.core.context||Lt,ut=U.core.suppressOverwrites||Lt,vt=$.history.scrollRestoration||"auto",Ze=$.pageYOffset,U.core.globals("ScrollTrigger",t),q)){At=1,(gt=document.createElement("div")).style.height="100vh",gt.style.position="absolute",Xe(),Ot(),N.register(U),t.isTouch=N.isTouch,dt=N.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Te($,"wheel",Ve),X=[$,Y,H,q],U.matchMedia?(t.matchMedia=function(t){var e,n=U.matchMedia();for(e in t)n.add(e,t[e]);return n},U.addEventListener("matchMediaInit",(function(){return $e()})),U.addEventListener("matchMediaRevert",(function(){return We()})),U.addEventListener("matchMedia",(function(){Ge(0,1),Ne("matchMedia")})),U.matchMedia("(orientation: portrait)",(function(){return je(),je}))):console.warn("Requires GSAP 3.11.0 or later"),je(),Te(Y,"scroll",Ve);var e,n,r=q.style,i=r.borderTopStyle,o=U.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=ve(q),R.m=Math.round(e.top+R.sc())||0,D.m=Math.round(e.left+D.sc())||0,i?r.borderTopStyle=i:r.removeProperty("border-top-style"),J=setInterval(Le,250),U.delayedCall(.5,(function(){return kt=0})),Te(Y,"touchcancel",Lt),Te(q,"touchstart",Lt),we(Te,Y,"pointerdown,touchstart,mousedown",Dt),we(Te,Y,"pointerup,touchend,mouseup",Rt),nt=U.utils.checkPrefix("transform"),tn.push(nt),W=Et(),G=U.delayedCall(.2,Ge).pause(),st=[Y,"visibilitychange",function(){var t=$.innerWidth,e=$.innerHeight;Y.hidden?(it=t,ot=e):it===t&&ot===e||Be()},Y,"DOMContentLoaded",Ge,$,"load",Ge,$,"resize",Be],$t(Te),De.forEach((function(t){return t.enable(0,1)})),n=0;n<_.length;n+=3)Ee(ke,_[n],_[n+1]),Ee(ke,_[n],_[n+2])}},t.config=function(e){"limitCallbacks"in e&&(_t=!!e.limitCallbacks);var n=e.syncInterval;n&&clearInterval(J)||(J=n)&&setInterval(Le,n),"ignoreMobileResize"in e&&(ht=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&($t(ke)||$t(Te,e.autoRefreshEvents||"none"),lt=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var n=L(t),r=_.indexOf(n),i=Ft(n);~r&&_.splice(r,i?6:2),e&&(i?x.unshift($,e,q,e,H,e):x.unshift(n,e))},t.clearMatchMedia=function(t){De.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,n){var r=(Yt(t)?L(t):t).getBoundingClientRect(),i=r[n?ne:re]*e||0;return n?r.right-i>0&&r.left+i<$.innerWidth:r.bottom-i>0&&r.top+i<$.innerHeight},t.positionInViewport=function(t,e,n){Yt(t)&&(t=L(t));var r=t.getBoundingClientRect(),i=r[n?ne:re],o=null==e?i/2:e in Ae?Ae[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return n?(r.left+o)/$.innerWidth:(r.top+o)/$.innerHeight},t.killAll=function(t){if(De.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=Fe.killAll||[];Fe={},e.forEach((function(t){return t()}))}},t}();mn.version="3.12.2",mn.saveStyles=function(t){return t?Z(t).forEach((function(t){if(t&&t.style){var e=Ue.indexOf(t);e>=0&&Ue.splice(e,5),Ue.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),U.core.getCache(t),mt())}})):Ue},mn.revert=function(t,e){return $e(!t,e)},mn.create=function(t,e){return new mn(t,e)},mn.refresh=function(t){return t?Be():(W||mn.register())&&Ge(!0)},mn.update=function(t){return++_.cache&&Qe(!0===t?2:0)},mn.clearScrollMemory=Ye,mn.maxScroll=function(t,e){return Wt(t,e?D:R)},mn.getScrollFunc=function(t,e){return V(L(t),e?D:R)},mn.getById=function(t){return Re[t]},mn.getAll=function(){return De.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},mn.isScrolling=function(){return!!St},mn.snapDirectional=xe,mn.addEventListener=function(t,e){var n=Fe[t]||(Fe[t]=[]);~n.indexOf(e)||n.push(e)},mn.removeEventListener=function(t,e){var n=Fe[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},mn.batch=function(t,e){var n,r=[],i={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var n=[],r=[],i=U.delayedCall(o,(function(){e(n,r),n=[],r=[]})).pause();return function(t){n.length||i.restart(!0),n.push(t.trigger),r.push(t),s<=n.length&&i.progress(1)}};for(n in e)i[n]="on"===n.substr(0,2)&&Ht(e[n])&&"onRefreshInit"!==n?a(n,e[n]):e[n];return Ht(s)&&(s=s(),Te(mn,"refresh",(function(){return s=e.batchMax()}))),Z(t).forEach((function(t){var e={};for(n in i)e[n]=i[n];e.trigger=t,r.push(mn.create(e))})),r};var vn,gn=function(t,e,n,r){return e>r?t(r):e<0&&t(0),n>r?(r-e)/(n-e):n<0?e/(e-n):1},yn=function t(e,n){!0===n?e.style.removeProperty("touch-action"):e.style.touchAction=!0===n?"auto":n?"pan-"+n+(N.isTouch?" pinch-zoom":""):"none",e===H&&t(q,n)},_n={auto:1,scroll:1},xn=function(t){var e,n=t.event,r=t.target,i=t.axis,o=(n.changedTouches?n.changedTouches[0]:n).target,s=o._gsap||U.core.getCache(o),a=Et();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==q&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!_n[(e=pe(o)).overflowY]&&!_n[e.overflowX]);)o=o.parentNode;s._isScroll=o&&o!==r&&!Ft(o)&&(_n[(e=pe(o)).overflowY]||_n[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===i)&&(n.stopPropagation(),n._gsapAllow=!0)},bn=function(t,e,n,r){return N.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:r=r&&xn,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&Te(Y,N.eventTypes[0],Tn,!1,!0)},onDisable:function(){return ke(Y,N.eventTypes[0],Tn,!0)}})},wn=/(input|label|select|textarea)/i,Tn=function(t){var e=wn.test(t.target.tagName);(e||vn)&&(t._gsapAllow=!0,vn=e)},kn=function(t){Xt(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,n,r,i,o,s,a,u,l=t,c=l.normalizeScrollX,h=l.momentum,f=l.allowNestedScroll,p=l.onRelease,d=L(t.target)||H,m=U.core.globals().ScrollSmoother,v=m&&m.get(),g=dt&&(t.content&&L(t.content)||v&&!1!==t.content&&!v.smooth()&&v.content()),y=V(d,R),x=V(d,D),b=1,w=(N.isTouch&&$.visualViewport?$.visualViewport.scale*$.visualViewport.width:$.outerWidth)/$.innerWidth,T=0,k=Ht(h)?function(){return h(e)}:function(){return h||2.8},E=bn(d,t.type,!0,f),P=function(){return i=!1},S=Lt,A=Lt,C=function(){n=Wt(d,R),A=K(dt?1:0,n),c&&(S=K(0,Wt(d,D))),r=He},M=function(){g._gsap.y=Vt(parseFloat(g._gsap.y)+y.offset)+"px",g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(g._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},O=function(){if(i){requestAnimationFrame(P);var t=Vt(e.deltaY/2),n=A(y.v-t);if(g&&n!==y.v+y.offset){y.offset=n-y.v;var r=Vt((parseFloat(g&&g._gsap.y)||0)-y.offset);g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",g._gsap.y=r+"px",y.cacheID=_.cache,Qe()}return!0}y.offset&&M(),i=!0},j=function(){C(),o.isActive()&&o.vars.scrollY>n&&(y()>n?o.progress(1)&&y(n):o.resetTo("scrollY",n))};return g&&U.set(g,{y:"+=0"}),t.ignoreCheck=function(t){return dt&&"touchmove"===t.type&&O()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=b;b=Vt(($.visualViewport&&$.visualViewport.scale||1)/w),o.pause(),t!==b&&yn(d,b>1.01||!c&&"x"),s=x(),a=y(),C(),r=He},t.onRelease=t.onGestureStart=function(t,e){if(y.offset&&M(),e){_.cache++;var r,i,s=k();c&&(i=(r=x())+.05*s*-t.velocityX/.227,s*=gn(x,r,i,Wt(d,D)),o.vars.scrollX=S(i)),i=(r=y())+.05*s*-t.velocityY/.227,s*=gn(y,r,i,Wt(d,R)),o.vars.scrollY=A(i),o.invalidate().duration(s).play(.01),(dt&&o.vars.scrollY>=n||r>=n-1)&&U.to({},{onUpdate:j,duration:s})}else u.restart(!0);p&&p(t)},t.onWheel=function(){o._ts&&o.pause(),Et()-T>1e3&&(r=0,T=Et())},t.onChange=function(t,e,n,i,o){if(He!==r&&C(),e&&c&&x(S(i[2]===e?s+(t.startX-t.x):x()+e-i[1])),n){y.offset&&M();var u=o[2]===n,l=u?a+t.startY-t.y:y()+n-o[1],h=A(l);u&&l!==h&&(a+=h-l),y(h)}(n||e)&&Qe()},t.onEnable=function(){yn(d,!c&&"x"),mn.addEventListener("refresh",j),Te($,"resize",j),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),E.enable()},t.onDisable=function(){yn(d,!0),ke($,"resize",j),mn.removeEventListener("refresh",j),E.kill()},t.lockAxis=!1!==t.lockAxis,(e=new N(t)).iOS=dt,dt&&!y()&&y(1),dt&&U.ticker.add(Lt),u=e._dc,o=U.to(e,{ease:"power4",paused:!0,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:fn(y,y(),(function(){return o.pause()}))},onUpdate:Qe,onComplete:u.vars.onComplete}),e};mn.sort=function(t){return De.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},mn.observe=function(t){return new N(t)},mn.normalizeScroll=function(t){if(void 0===t)return ct;if(!0===t&&ct)return ct.enable();if(!1===t)return ct&&ct.kill();var e=t instanceof N?t:kn(t);return ct&&ct.target===e.target&&ct.kill(),Ft(e.target)&&(ct=e),e},mn.core={_getVelocityProp:j,_inputObserver:bn,_scrollers:_,_proxies:x,bridge:{ss:function(){St||Ne("scrollStart"),St=Et()},ref:function(){return tt}}},Bt()&&U.registerPlugin(mn),t.ScrollTrigger=mn,t.default=mn,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}(wh.exports),(()=>{function t(...t){const e=t.length;for(let n=0;n<e;n++){const e=t[n];1===e.nodeType||11===e.nodeType?this.appendChild(e):this.appendChild(document.createTextNode(String(e)))}}function e(...t){for(;this.lastChild;)this.removeChild(this.lastChild);t.length&&this.append(...t)}function n(...t){const e=this.parentNode;let n=t.length;if(e)for(n||e.removeChild(this);n--;){let r=t[n];"object"!=typeof r?r=this.ownerDocument.createTextNode(r):r.parentNode&&r.parentNode.removeChild(r),n?e.insertBefore(this.previousSibling,r):e.replaceChild(r,this)}}"undefined"!=typeof Element&&(Element.prototype.append||(Element.prototype.append=t,DocumentFragment.prototype.append=t),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=e,DocumentFragment.prototype.replaceChildren=e),Element.prototype.replaceWith||(Element.prototype.replaceWith=n,DocumentFragment.prototype.replaceWith=n))})();const{entries:Dh,keys:Rh,values:Lh}=Object,Vh="_splittype",jh={};let Bh=0;function Fh(t,e,n){if(!Ah(t))return console.warn("[data.set] owner is not an object"),null;const r=t[Vh]||(t[Vh]=++Bh),i=jh[r]||(jh[r]={});return void 0===n?e&&Object.getPrototypeOf(e)===Object.prototype&&(jh[r]={...i,...e}):void 0!==e&&(i[e]=n),n}function Ih(t,e){const n=Ah(t)?t[Vh]:null,r=n&&jh[n]||{};return void 0===e?r:r[e]}function zh(t){const e=t&&t[Vh];e&&(delete t[e],delete jh[e])}const Nh="\\ud800-\\udfff",Uh="\\u0300-\\u036f\\ufe20-\\ufe23",Wh="\\u20d0-\\u20f0",$h="\\ufe0e\\ufe0f",Yh=`[${Nh}]`,Hh=`[${Uh}${Wh}]`,qh="\\ud83c[\\udffb-\\udfff]",Xh=`[^${Nh}]`,Gh="(?:\\ud83c[\\udde6-\\uddff]){2}",Zh="[\\ud800-\\udbff][\\udc00-\\udfff]",Kh="\\u200d",Qh=`${`(?:${Hh}|${qh})`}?`,Jh=`[${$h}]?`,tf=Jh+Qh+("(?:"+Kh+"(?:"+[Xh,Gh,Zh].join("|")+")"+Jh+Qh+")*"),ef=`(?:${[`${Xh}${Hh}?`,Hh,Gh,Zh,Yh].join("|")}\n)`,nf=RegExp(`${qh}(?=${qh})|${ef}${tf}`,"g"),rf=RegExp(`[${[Kh,Nh,Uh,Wh,$h].join("")}]`);function of(t){return rf.test(t)}function sf(t){return of(t)?function(t){return t.match(nf)||[]}(t):function(t){return t.split("")}(t)}function af(t,e=""){var n;return(t=null==(n=t)?"":String(n))&&kh(t)&&!e&&of(t)?sf(t):t.split(e)}function uf(t,e){const n=document.createElement(t);return e?(Object.keys(e).forEach((t=>{const r=e[t],i=kh(r)?r.trim():r;null!==i&&""!==i&&("children"===t?n.append(...Mh(i)):n.setAttribute(t,i))})),n):n}var lf={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",types:["lines","words","chars"],absolute:!1,tagName:"div"};function cf(t,e){const n=Sh((e=Th(lf,e)).types),r=e.tagName,i=t.nodeValue,o=document.createDocumentFragment();let s=[],a=[];return/^\s/.test(i)&&o.append(" "),s=function(t,e=" "){return(t?String(t):"").trim().replace(/\s+/g," ").split(e)}(i).reduce(((t,i,s,u)=>{let l,c;return n.chars&&(c=af(i).map((t=>{const n=uf(r,{class:`${e.splitClass} ${e.charClass}`,style:"display: inline-block;",children:t});return Fh(n,"isChar",!0),a=[...a,n],n}))),n.words||n.lines?(l=uf(r,{class:`${e.wordClass} ${e.splitClass}`,style:"display: inline-block; "+(n.words&&e.absolute?"position: relative;":""),children:n.chars?c:i}),Fh(l,{isWord:!0,isWordStart:!0,isWordEnd:!0}),o.appendChild(l)):c.forEach((t=>{o.appendChild(t)})),s<u.length-1&&o.append(" "),n.words?t.concat(l):t}),[]),/\s$/.test(i)&&o.append(" "),t.replaceWith(o),{words:s,chars:a}}function hf(t,e){const n=t.nodeType,r={words:[],chars:[]};if(!/(1|3|11)/.test(n))return r;if(3===n&&/\S/.test(t.nodeValue))return cf(t,e);const i=Mh(t.childNodes);if(i.length&&(Fh(t,"isSplit",!0),!Ih(t).isRoot)){t.style.display="inline-block",t.style.position="relative";const e=t.nextSibling,n=t.previousSibling,r=t.textContent||"",i=e?e.textContent:" ",o=n?n.textContent:" ";Fh(t,{isWordEnd:/\s$/.test(r)||/^\s/.test(i),isWordStart:/^\s/.test(r)||/\s$/.test(o)})}return i.reduce(((t,n)=>{const{words:r,chars:i}=hf(n,e);return{words:[...t.words,...r],chars:[...t.chars,...i]}}),r)}function ff(t){Ih(t).isWord?(zh(t),t.replaceWith(...t.childNodes)):Mh(t.children).forEach((t=>ff(t)))}function pf(t,e,n){const r=Sh(e.types),i=e.tagName,o=t.getElementsByTagName("*"),s=[];let a,u,l,c=[],h=null,f=[];const p=t.parentElement,d=t.nextElementSibling,m=document.createDocumentFragment(),v=window.getComputedStyle(t),g=v.textAlign,y=.2*parseFloat(v.fontSize);return e.absolute&&(l={left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth},u=t.offsetWidth,a=t.offsetHeight,Fh(t,{cssWidth:t.style.width,cssHeight:t.style.height})),Mh(o).forEach((i=>{const o=i.parentElement===t,{width:a,height:u,top:l,left:f}=function(t,e,n,r){if(!n.absolute)return{top:e?t.offsetTop:null};const i=t.offsetParent,[o,s]=r;let a=0,u=0;if(i&&i!==document.body){const t=i.getBoundingClientRect();a=t.x+o,u=t.y+s}const{width:l,height:c,x:h,y:f}=t.getBoundingClientRect();return{width:l,height:c,top:f+s-u,left:h+o-a}}(i,o,e,n);/^br$/i.test(i.nodeName)||(r.lines&&o&&((null===h||l-h>=y)&&(h=l,s.push(c=[])),c.push(i)),e.absolute&&Fh(i,{top:l,left:f,width:a,height:u}))})),p&&p.removeChild(t),r.lines&&(f=s.map((t=>{const n=uf(i,{class:`${e.splitClass} ${e.lineClass}`,style:`display: block; text-align: ${g}; width: 100%;`});Fh(n,"isLine",!0);const r={height:0,top:1e4};return m.appendChild(n),t.forEach(((t,e,i)=>{const{isWordEnd:o,top:s,height:a}=Ih(t),u=i[e+1];r.height=Math.max(r.height,a),r.top=Math.min(r.top,s),n.appendChild(t),o&&Ih(u).isWordStart&&n.append(" ")})),e.absolute&&Fh(n,{height:r.height,top:r.top}),n})),r.words||ff(m),t.replaceChildren(m)),e.absolute&&(t.style.width=`${t.style.width||u}px`,t.style.height=`${a}px`,Mh(o).forEach((t=>{const{isLine:e,top:n,left:r,width:i,height:o}=Ih(t),s=Ih(t.parentElement),a=!e&&s.isLine;t.style.top=`${a?n-s.top:n}px`,t.style.left=e?`${l.left}px`:r-(a?l.left:0)+"px",t.style.height=`${o}px`,t.style.width=e?`${l.width}px`:`${i}px`,t.style.position="absolute"}))),p&&(d?p.insertBefore(t,d):p.appendChild(t)),f}let df=Th(lf,{});class mf{static get data(){return jh}static get defaults(){return df}static set defaults(t){df=Th(df,Ph(t))}static setDefaults(t){return df=Th(df,Ph(t)),lf}static revert(t){Oh(t).forEach((t=>{const{isSplit:e,html:n,cssWidth:r,cssHeight:i}=Ih(t);e&&(t.innerHTML=n,t.style.width=r||"",t.style.height=i||"",zh(t))}))}static create(t,e){return new mf(t,e)}constructor(t,e){this.isSplit=!1,this.settings=Th(df,Ph(e)),this.elements=Oh(t),this.split()}split(t){this.revert(),this.elements.forEach((t=>{Fh(t,"html",t.innerHTML)})),this.lines=[],this.words=[],this.chars=[];const e=[window.pageXOffset,window.pageYOffset];void 0!==t&&(this.settings=Th(this.settings,Ph(t)));const n=Sh(this.settings.types);n.none||(this.elements.forEach((t=>{Fh(t,"isRoot",!0);const{words:e,chars:n}=hf(t,this.settings);this.words=[...this.words,...e],this.chars=[...this.chars,...n]})),this.elements.forEach((t=>{if(n.lines||this.settings.absolute){const n=pf(t,this.settings,e);this.lines=[...this.lines,...n]}})),this.isSplit=!0,window.scrollTo(e[0],e[1]),Dh(jh).forEach((([t,{isRoot:e,isSplit:n}])=>{e&&n||(jh[t]=null,delete jh[t])})))}revert(){this.isSplit&&(this.lines=null,this.words=null,this.chars=null,this.isSplit=!1),mf.revert(this.elements)}}_(".spark-text-reveal {\n opacity: 0; }\n .spark-text-reveal__container {\n overflow: hidden; }\n .spark-text-reveal__content {\n transform: translate(0, 100%) rotate(10deg);\n transform-origin: left; }\n");var vf="undefined"!=typeof window?o:s;function gf(t){var e=p(!1),n=e[0],r=e[1];return s((function(){var e=window.matchMedia(t);function n(){r(e.matches)}return e.addEventListener("change",n,!1),n(),function(){return e.removeEventListener("change",n,!1)}}),[t]),n}var yf,_f,xf={exports:{}};
|
|
40
|
-
/**
|
|
41
|
-
* @license
|
|
42
|
-
* Lodash <https://lodash.com/>
|
|
43
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
44
|
-
* Released under MIT license <https://lodash.com/license>
|
|
45
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
46
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
47
|
-
*/yf=xf,_f=xf.exports,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",i=16,o=32,s=64,a=128,u=256,l=1/0,c=9007199254740991,h=NaN,f=4294967295,p=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",o],["partialRight",s],["rearg",u]],d="[object Arguments]",m="[object Array]",v="[object Boolean]",g="[object Date]",y="[object Error]",_="[object Function]",x="[object GeneratorFunction]",b="[object Map]",w="[object Number]",T="[object Object]",k="[object Promise]",E="[object RegExp]",P="[object Set]",S="[object String]",A="[object Symbol]",C="[object WeakMap]",M="[object ArrayBuffer]",O="[object DataView]",D="[object Float32Array]",R="[object Float64Array]",L="[object Int8Array]",V="[object Int16Array]",j="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",I="[object Uint16Array]",z="[object Uint32Array]",N=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,H=RegExp($.source),q=RegExp(Y.source),X=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),nt=/^\s+/,rt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,dt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",bt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",wt="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",kt="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",St="['’]",At="["+xt+"]",Ct="["+Pt+"]",Mt="["+bt+"]",Ot="\\d+",Dt="["+wt+"]",Rt="["+Tt+"]",Lt="[^"+xt+Pt+Ot+wt+Tt+kt+"]",Vt="\\ud83c[\\udffb-\\udfff]",jt="[^"+xt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+kt+"]",zt="\\u200d",Nt="(?:"+Rt+"|"+Lt+")",Ut="(?:"+It+"|"+Lt+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yt="(?:"+Mt+"|"+Vt+")?",Ht="["+Et+"]?",qt=Ht+Yt+"(?:"+zt+"(?:"+[jt,Bt,Ft].join("|")+")"+Ht+Yt+")*",Xt="(?:"+[Dt,Bt,Ft].join("|")+")"+qt,Gt="(?:"+[jt+Mt+"?",Mt,Bt,Ft,At].join("|")+")",Zt=RegExp(St,"g"),Kt=RegExp(Mt,"g"),Qt=RegExp(Vt+"(?="+Vt+")|"+Gt+qt,"g"),Jt=RegExp([It+"?"+Rt+"+"+Wt+"(?="+[Ct,It,"$"].join("|")+")",Ut+"+"+$t+"(?="+[Ct,It+Nt,"$"].join("|")+")",It+"?"+Nt+"+"+Wt,It+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Xt].join("|"),"g"),te=RegExp("["+zt+xt+bt+Et+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[D]=ie[R]=ie[L]=ie[V]=ie[j]=ie[B]=ie[F]=ie[I]=ie[z]=!0,ie[d]=ie[m]=ie[M]=ie[v]=ie[O]=ie[g]=ie[y]=ie[_]=ie[b]=ie[w]=ie[T]=ie[E]=ie[P]=ie[S]=ie[C]=!1;var oe={};oe[d]=oe[m]=oe[M]=oe[O]=oe[v]=oe[g]=oe[D]=oe[R]=oe[L]=oe[V]=oe[j]=oe[b]=oe[w]=oe[T]=oe[E]=oe[P]=oe[S]=oe[A]=oe[B]=oe[F]=oe[I]=oe[z]=!0,oe[y]=oe[_]=oe[C]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,ue=parseInt,le="object"==typeof bh&&bh&&bh.Object===Object&&bh,ce="object"==typeof self&&self&&self.Object===Object&&self,he=le||ce||Function("return this")(),fe=_f&&!_f.nodeType&&_f,pe=fe&&yf&&!yf.nodeType&&yf,de=pe&&pe.exports===fe,me=de&&le.process,ve=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||me&&me.binding&&me.binding("util")}catch(t){}}(),ge=ve&&ve.isArrayBuffer,ye=ve&&ve.isDate,_e=ve&&ve.isMap,xe=ve&&ve.isRegExp,be=ve&&ve.isSet,we=ve&&ve.isTypedArray;function Te(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function Ee(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ae(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function Ce(t,e){return!(null==t||!t.length)&&Ie(t,e,0)>-1}function Me(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function De(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Re(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Le(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Ve(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var je=We("length");function Be(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Fe(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ie(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Fe(t,Ne,n)}function ze(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ne(t){return t!=t}function Ue(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:h}function We(e){return function(n){return null==n?t:n[e]}}function $e(e){return function(n){return null==e?t:e[n]}}function Ye(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function He(e,n){for(var r,i=-1,o=e.length;++i<o;){var s=n(e[i]);s!==t&&(r=r===t?s:r+s)}return r}function qe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Xe(t){return t?t.slice(0,fn(t)+1).replace(nt,""):t}function Ge(t){return function(e){return t(e)}}function Ze(t,e){return Oe(e,(function(e){return t[e]}))}function Ke(t,e){return t.has(e)}function Qe(t,e){for(var n=-1,r=t.length;++n<r&&Ie(e,t[n],0)>-1;);return n}function Je(t,e){for(var n=t.length;n--&&Ie(e,t[n],0)>-1;);return n}var tn=$e({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),en=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+se[t]}function rn(t){return te.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,i=t.length,o=0,s=[];++n<i;){var a=t[n];a!==e&&a!==r||(t[n]=r,s[o++]=n)}return s}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function cn(t){return rn(t)?function(t){for(var e=Qt.lastIndex=0;Qt.test(t);)++e;return e}(t):je(t)}function hn(t){return rn(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&rt.test(t.charAt(e)););return e}var pn=$e({"&":"&","<":"<",">":">",""":'"',"'":"'"}),dn=function rt(xt){var bt=(xt=null==xt?he:dn.defaults(he.Object(),xt,dn.pick(he,ne))).Array,wt=xt.Date,Tt=xt.Error,kt=xt.Function,Et=xt.Math,Pt=xt.Object,St=xt.RegExp,At=xt.String,Ct=xt.TypeError,Mt=bt.prototype,Ot=kt.prototype,Dt=Pt.prototype,Rt=xt["__core-js_shared__"],Lt=Ot.toString,Vt=Dt.hasOwnProperty,jt=0,Bt=function(){var t=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ft=Dt.toString,It=Lt.call(Pt),zt=he._,Nt=St("^"+Lt.call(Vt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=de?xt.Buffer:t,Wt=xt.Symbol,$t=xt.Uint8Array,Yt=Ut?Ut.allocUnsafe:t,Ht=sn(Pt.getPrototypeOf,Pt),qt=Pt.create,Xt=Dt.propertyIsEnumerable,Gt=Mt.splice,Qt=Wt?Wt.isConcatSpreadable:t,te=Wt?Wt.iterator:t,se=Wt?Wt.toStringTag:t,le=function(){try{var t=ho(Pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ce=xt.clearTimeout!==he.clearTimeout&&xt.clearTimeout,fe=wt&&wt.now!==he.Date.now&&wt.now,pe=xt.setTimeout!==he.setTimeout&&xt.setTimeout,me=Et.ceil,ve=Et.floor,je=Pt.getOwnPropertySymbols,$e=Ut?Ut.isBuffer:t,mn=xt.isFinite,vn=Mt.join,gn=sn(Pt.keys,Pt),yn=Et.max,_n=Et.min,xn=wt.now,bn=xt.parseInt,wn=Et.random,Tn=Mt.reverse,kn=ho(xt,"DataView"),En=ho(xt,"Map"),Pn=ho(xt,"Promise"),Sn=ho(xt,"Set"),An=ho(xt,"WeakMap"),Cn=ho(Pt,"create"),Mn=An&&new An,On={},Dn=Fo(kn),Rn=Fo(En),Ln=Fo(Pn),Vn=Fo(Sn),jn=Fo(An),Bn=Wt?Wt.prototype:t,Fn=Bn?Bn.valueOf:t,In=Bn?Bn.toString:t;function zn(t){if(ea(t)&&!$s(t)&&!(t instanceof $n)){if(t instanceof Wn)return t;if(Vt.call(t,"__wrapped__"))return Io(t)}return new Wn(t)}var Nn=function(){function e(){}return function(n){if(!ta(n))return{};if(qt)return qt(n);e.prototype=n;var r=new e;return e.prototype=t,r}}();function Un(){}function Wn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function $n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new qn;++e<n;)this.add(t[e])}function Gn(t){var e=this.__data__=new Hn(t);this.size=e.size}function Zn(t,e){var n=$s(t),r=!n&&Ws(t),i=!n&&!r&&Xs(t),o=!n&&!r&&!i&&la(t),s=n||r||i||o,a=s?qe(t.length,At):[],u=a.length;for(var l in t)!e&&!Vt.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_o(l,u))||a.push(l);return a}function Kn(e){var n=e.length;return n?e[Xr(0,n-1)]:t}function Qn(t,e){return Vo(Ci(t),ar(e,0,t.length))}function Jn(t){return Vo(Ci(t))}function tr(e,n,r){(r!==t&&!zs(e[n],r)||r===t&&!(n in e))&&or(e,n,r)}function er(e,n,r){var i=e[n];Vt.call(e,n)&&zs(i,r)&&(r!==t||n in e)||or(e,n,r)}function nr(t,e){for(var n=t.length;n--;)if(zs(t[n][0],e))return n;return-1}function rr(t,e,n,r){return fr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ir(t,e){return t&&Mi(e,Oa(e),t)}function or(t,e,n){"__proto__"==e&&le?le(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function sr(e,n){for(var r=-1,i=n.length,o=bt(i),s=null==e;++r<i;)o[r]=s?t:Pa(e,n[r]);return o}function ar(e,n,r){return e==e&&(r!==t&&(e=e<=r?e:r),n!==t&&(e=e>=n?e:n)),e}function ur(e,n,r,i,o,s){var a,u=1&n,l=2&n,c=4&n;if(r&&(a=o?r(e,i,o,s):r(e)),a!==t)return a;if(!ta(e))return e;var h=$s(e);if(h){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Vt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!u)return Ci(e,a)}else{var f=mo(e),p=f==_||f==x;if(Xs(e))return Ti(e,u);if(f==T||f==d||p&&!o){if(a=l||p?{}:go(e),!u)return l?function(t,e){return Mi(t,po(t),e)}(e,function(t,e){return t&&Mi(e,Da(e),t)}(a,e)):function(t,e){return Mi(t,fo(t),e)}(e,ir(a,e))}else{if(!oe[f])return o?e:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case M:return ki(t);case v:case g:return new i(+t);case O:return function(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case D:case R:case L:case V:case j:case B:case F:case I:case z:return Ei(t,n);case b:return new i;case w:case S:return new i(t);case E:return function(t){var e=new t.constructor(t.source,ht.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new i;case A:return r=t,Fn?Pt(Fn.call(r)):{}}}(e,f,u)}}s||(s=new Gn);var m=s.get(e);if(m)return m;s.set(e,a),sa(e)?e.forEach((function(t){a.add(ur(t,n,r,t,e,s))})):na(e)&&e.forEach((function(t,i){a.set(i,ur(t,n,r,i,e,s))}));var y=h?t:(c?l?io:ro:l?Da:Oa)(e);return Ee(y||e,(function(t,i){y&&(t=e[i=t]),er(a,i,ur(t,n,r,i,e,s))})),a}function lr(e,n,r){var i=r.length;if(null==e)return!i;for(e=Pt(e);i--;){var o=r[i],s=n[o],a=e[o];if(a===t&&!(o in e)||!s(a))return!1}return!0}function cr(n,r,i){if("function"!=typeof n)throw new Ct(e);return Oo((function(){n.apply(t,i)}),r)}function hr(t,e,n,r){var i=-1,o=Ce,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=Oe(e,Ge(n))),r?(o=Me,s=!1):e.length>=200&&(o=Ke,s=!1,e=new Xn(e));t:for(;++i<a;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,s&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}return u}zn.templateSettings={escape:X,evaluate:G,interpolate:Z,variable:"",imports:{_:zn}},zn.prototype=Un.prototype,zn.prototype.constructor=zn,Wn.prototype=Nn(Un.prototype),Wn.prototype.constructor=Wn,$n.prototype=Nn(Un.prototype),$n.prototype.constructor=$n,Yn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Yn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Yn.prototype.get=function(e){var r=this.__data__;if(Cn){var i=r[e];return i===n?t:i}return Vt.call(r,e)?r[e]:t},Yn.prototype.has=function(e){var n=this.__data__;return Cn?n[e]!==t:Vt.call(n,e)},Yn.prototype.set=function(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Cn&&r===t?n:r,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(t){var e=this.__data__,n=nr(e,t);return!(n<0||(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,0))},Hn.prototype.get=function(e){var n=this.__data__,r=nr(n,e);return r<0?t:n[r][1]},Hn.prototype.has=function(t){return nr(this.__data__,t)>-1},Hn.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(En||Hn),string:new Yn}},qn.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},qn.prototype.get=function(t){return lo(this,t).get(t)},qn.prototype.has=function(t){return lo(this,t).has(t)},qn.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,n),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Gn.prototype.get=function(t){return this.__data__.get(t)},Gn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!En||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(t,e),this.size=n.size,this};var fr=Ri(xr),pr=Ri(br,!0);function dr(t,e){var n=!0;return fr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function mr(e,n,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=n(s);if(null!=a&&(u===t?a==a&&!ua(a):r(a,u)))var u=a,l=s}return l}function vr(t,e){var n=[];return fr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function gr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=yo),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?gr(a,e-1,n,r,i):De(i,a):r||(i[i.length]=a)}return i}var yr=Li(),_r=Li(!0);function xr(t,e){return t&&yr(t,e,Oa)}function br(t,e){return t&&_r(t,e,Oa)}function wr(t,e){return Ae(e,(function(e){return Ks(t[e])}))}function Tr(e,n){for(var r=0,i=(n=_i(n,e)).length;null!=e&&r<i;)e=e[Bo(n[r++])];return r&&r==i?e:t}function kr(t,e,n){var r=e(t);return $s(t)?r:De(r,n(t))}function Er(e){return null==e?e===t?"[object Undefined]":"[object Null]":se&&se in Pt(e)?function(e){var n=Vt.call(e,se),r=e[se];try{e[se]=t;var i=!0}catch(t){}var o=Ft.call(e);return i&&(n?e[se]=r:delete e[se]),o}(e):function(t){return Ft.call(t)}(e)}function Pr(t,e){return t>e}function Sr(t,e){return null!=t&&Vt.call(t,e)}function Ar(t,e){return null!=t&&e in Pt(t)}function Cr(e,n,r){for(var i=r?Me:Ce,o=e[0].length,s=e.length,a=s,u=bt(s),l=1/0,c=[];a--;){var h=e[a];a&&n&&(h=Oe(h,Ge(n))),l=_n(h.length,l),u[a]=!r&&(n||o>=120&&h.length>=120)?new Xn(a&&h):t}h=e[0];var f=-1,p=u[0];t:for(;++f<o&&c.length<l;){var d=h[f],m=n?n(d):d;if(d=r||0!==d?d:0,!(p?Ke(p,m):i(c,m,r))){for(a=s;--a;){var v=u[a];if(!(v?Ke(v,m):i(e[a],m,r)))continue t}p&&p.push(m),c.push(d)}}return c}function Mr(e,n,r){var i=null==(e=Ao(e,n=_i(n,e)))?e:e[Bo(Zo(n))];return null==i?t:Te(i,e,r)}function Or(t){return ea(t)&&Er(t)==d}function Dr(e,n,r,i,o){return e===n||(null==e||null==n||!ea(e)&&!ea(n)?e!=e&&n!=n:function(e,n,r,i,o,s){var a=$s(e),u=$s(n),l=a?m:mo(e),c=u?m:mo(n),h=(l=l==d?T:l)==T,f=(c=c==d?T:c)==T,p=l==c;if(p&&Xs(e)){if(!Xs(n))return!1;a=!0,h=!1}if(p&&!h)return s||(s=new Gn),a||la(e)?eo(e,n,r,i,o,s):function(t,e,n,r,i,o,s){switch(n){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case M:return!(t.byteLength!=e.byteLength||!o(new $t(t),new $t(e)));case v:case g:case w:return zs(+t,+e);case y:return t.name==e.name&&t.message==e.message;case E:case S:return t==e+"";case b:var a=on;case P:var u=1&r;if(a||(a=un),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=eo(a(t),a(e),r,i,o,s);return s.delete(t),c;case A:if(Fn)return Fn.call(t)==Fn.call(e)}return!1}(e,n,l,r,i,o,s);if(!(1&r)){var _=h&&Vt.call(e,"__wrapped__"),x=f&&Vt.call(n,"__wrapped__");if(_||x){var k=_?e.value():e,C=x?n.value():n;return s||(s=new Gn),o(k,C,r,i,s)}}return!!p&&(s||(s=new Gn),function(e,n,r,i,o,s){var a=1&r,u=ro(e),l=u.length,c=ro(n),h=c.length;if(l!=h&&!a)return!1;for(var f=l;f--;){var p=u[f];if(!(a?p in n:Vt.call(n,p)))return!1}var d=s.get(e),m=s.get(n);if(d&&m)return d==n&&m==e;var v=!0;s.set(e,n),s.set(n,e);for(var g=a;++f<l;){var y=e[p=u[f]],_=n[p];if(i)var x=a?i(_,y,p,n,e,s):i(y,_,p,e,n,s);if(!(x===t?y===_||o(y,_,r,i,s):x)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var b=e.constructor,w=n.constructor;b==w||!("constructor"in e)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(v=!1)}return s.delete(e),s.delete(n),v}(e,n,r,i,o,s))}(e,n,r,i,Dr,o))}function Rr(e,n,r,i){var o=r.length,s=o,a=!i;if(null==e)return!s;for(e=Pt(e);o--;){var u=r[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var l=(u=r[o])[0],c=e[l],h=u[1];if(a&&u[2]){if(c===t&&!(l in e))return!1}else{var f=new Gn;if(i)var p=i(c,h,l,e,n,f);if(!(p===t?Dr(h,c,3,i,f):p))return!1}}return!0}function Lr(t){return!(!ta(t)||(e=t,Bt&&Bt in e))&&(Ks(t)?Nt:dt).test(Fo(t));var e}function Vr(t){return"function"==typeof t?t:null==t?ru:"object"==typeof t?$s(t)?Nr(t[0],t[1]):zr(t):fu(t)}function jr(t){if(!ko(t))return gn(t);var e=[];for(var n in Pt(t))Vt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Br(t){if(!ta(t))return function(t){var e=[];if(null!=t)for(var n in Pt(t))e.push(n);return e}(t);var e=ko(t),n=[];for(var r in t)("constructor"!=r||!e&&Vt.call(t,r))&&n.push(r);return n}function Fr(t,e){return t<e}function Ir(t,e){var n=-1,r=Hs(t)?bt(t.length):[];return fr(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function zr(t){var e=co(t);return 1==e.length&&e[0][2]?Po(e[0][0],e[0][1]):function(n){return n===t||Rr(n,t,e)}}function Nr(e,n){return bo(e)&&Eo(n)?Po(Bo(e),n):function(r){var i=Pa(r,e);return i===t&&i===n?Sa(r,e):Dr(n,i,3)}}function Ur(e,n,r,i,o){e!==n&&yr(n,(function(s,a){if(o||(o=new Gn),ta(s))!function(e,n,r,i,o,s,a){var u=Co(e,r),l=Co(n,r),c=a.get(l);if(c)tr(e,r,c);else{var h=s?s(u,l,r+"",e,n,a):t,f=h===t;if(f){var p=$s(l),d=!p&&Xs(l),m=!p&&!d&&la(l);h=l,p||d||m?$s(u)?h=u:qs(u)?h=Ci(u):d?(f=!1,h=Ti(l,!0)):m?(f=!1,h=Ei(l,!0)):h=[]:ia(l)||Ws(l)?(h=u,Ws(u)?h=ga(u):ta(u)&&!Ks(u)||(h=go(l))):f=!1}f&&(a.set(l,h),o(h,l,i,s,a),a.delete(l)),tr(e,r,h)}}(e,n,a,r,Ur,i,o);else{var u=i?i(Co(e,a),s,a+"",e,n,o):t;u===t&&(u=s),tr(e,a,u)}}),Da)}function Wr(e,n){var r=e.length;if(r)return _o(n+=n<0?r:0,r)?e[n]:t}function $r(t,e,n){e=e.length?Oe(e,(function(t){return $s(t)?function(e){return Tr(e,1===t.length?t[0]:t)}:t})):[ru];var r=-1;e=Oe(e,Ge(uo()));var i=Ir(t,(function(t,n,i){var o=Oe(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;++r<s;){var u=Pi(i[r],o[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Yr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=Tr(t,s);n(a,s)&&Jr(o,_i(s,t),a)}return o}function Hr(t,e,n,r){var i=r?ze:Ie,o=-1,s=e.length,a=t;for(t===e&&(e=Ci(e)),n&&(a=Oe(t,Ge(n)));++o<s;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(a,c,u,r))>-1;)a!==t&&Gt.call(a,u,1),Gt.call(t,u,1);return t}function qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;_o(i)?Gt.call(t,i,1):hi(t,i)}}return t}function Xr(t,e){return t+ve(wn()*(e-t+1))}function Gr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=ve(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return Do(So(t,e,ru),t+"")}function Kr(t){return Kn(za(t))}function Qr(t,e){var n=za(t);return Vo(n,ar(e,0,n.length))}function Jr(e,n,r,i){if(!ta(e))return e;for(var o=-1,s=(n=_i(n,e)).length,a=s-1,u=e;null!=u&&++o<s;){var l=Bo(n[o]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var h=u[l];(c=i?i(h,l,u):t)===t&&(c=ta(h)?h:_o(n[o+1])?[]:{})}er(u,l,c),u=u[l]}return e}var ti=Mn?function(t,e){return Mn.set(t,e),t}:ru,ei=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:tu(e),writable:!0})}:ru;function ni(t){return Vo(za(t))}function ri(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=bt(i);++r<i;)o[r]=t[r+e];return o}function ii(t,e){var n;return fr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function oi(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!ua(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return si(t,e,ru,n)}function si(e,n,r,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(n=r(n))!=n,u=null===n,l=ua(n),c=n===t;o<s;){var h=ve((o+s)/2),f=r(e[h]),p=f!==t,d=null===f,m=f==f,v=ua(f);if(a)var g=i||m;else g=c?m&&(i||p):u?m&&p&&(i||!d):l?m&&p&&!d&&(i||!v):!d&&!v&&(i?f<=n:f<n);g?o=h+1:s=h}return _n(s,4294967294)}function ai(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!zs(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function ui(t){return"number"==typeof t?t:ua(t)?h:+t}function li(t){if("string"==typeof t)return t;if($s(t))return Oe(t,li)+"";if(ua(t))return In?In.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ci(t,e,n){var r=-1,i=Ce,o=t.length,s=!0,a=[],u=a;if(n)s=!1,i=Me;else if(o>=200){var l=e?null:Gi(t);if(l)return un(l);s=!1,i=Ke,u=new Xn}else u=e?[]:a;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,s&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),a.push(c)}else i(u,h,n)||(u!==a&&u.push(h),a.push(c))}return a}function hi(t,e){return null==(t=Ao(t,e=_i(e,t)))||delete t[Bo(Zo(e))]}function fi(t,e,n,r){return Jr(t,e,n(Tr(t,e)),r)}function pi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ri(t,r?0:o,r?o+1:i):ri(t,r?o+1:0,r?i:o)}function di(t,e){var n=t;return n instanceof $n&&(n=n.value()),Re(e,(function(t,e){return e.func.apply(e.thisArg,De([t],e.args))}),n)}function mi(t,e,n){var r=t.length;if(r<2)return r?ci(t[0]):[];for(var i=-1,o=bt(r);++i<r;)for(var s=t[i],a=-1;++a<r;)a!=i&&(o[i]=hr(o[i]||s,t[a],e,n));return ci(gr(o,1),e,n)}function vi(e,n,r){for(var i=-1,o=e.length,s=n.length,a={};++i<o;){var u=i<s?n[i]:t;r(a,e[i],u)}return a}function gi(t){return qs(t)?t:[]}function yi(t){return"function"==typeof t?t:ru}function _i(t,e){return $s(t)?t:bo(t,e)?[t]:jo(ya(t))}var xi=Zr;function bi(e,n,r){var i=e.length;return r=r===t?i:r,!n&&r>=i?e:ri(e,n,r)}var wi=ce||function(t){return he.clearTimeout(t)};function Ti(t,e){if(e)return t.slice();var n=t.length,r=Yt?Yt(n):new t.constructor(n);return t.copy(r),r}function ki(t){var e=new t.constructor(t.byteLength);return new $t(e).set(new $t(t)),e}function Ei(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Pi(e,n){if(e!==n){var r=e!==t,i=null===e,o=e==e,s=ua(e),a=n!==t,u=null===n,l=n==n,c=ua(n);if(!u&&!c&&!s&&e>n||s&&a&&l&&!u&&!c||i&&a&&l||!r&&l||!o)return 1;if(!i&&!s&&!c&&e<n||c&&r&&o&&!i&&!s||u&&r&&o||!a&&o||!l)return-1}return 0}function Si(t,e,n,r){for(var i=-1,o=t.length,s=n.length,a=-1,u=e.length,l=yn(o-s,0),c=bt(u+l),h=!r;++a<u;)c[a]=e[a];for(;++i<s;)(h||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[a++]=t[i++];return c}function Ai(t,e,n,r){for(var i=-1,o=t.length,s=-1,a=n.length,u=-1,l=e.length,c=yn(o-a,0),h=bt(c+l),f=!r;++i<c;)h[i]=t[i];for(var p=i;++u<l;)h[p+u]=e[u];for(;++s<a;)(f||i<o)&&(h[p+n[s]]=t[i++]);return h}function Ci(t,e){var n=-1,r=t.length;for(e||(e=bt(r));++n<r;)e[n]=t[n];return e}function Mi(e,n,r,i){var o=!r;r||(r={});for(var s=-1,a=n.length;++s<a;){var u=n[s],l=i?i(r[u],e[u],u,r,e):t;l===t&&(l=e[u]),o?or(r,u,l):er(r,u,l)}return r}function Oi(t,e){return function(n,r){var i=$s(n)?ke:rr,o=e?e():{};return i(n,t,uo(r,2),o)}}function Di(e){return Zr((function(n,r){var i=-1,o=r.length,s=o>1?r[o-1]:t,a=o>2?r[2]:t;for(s=e.length>3&&"function"==typeof s?(o--,s):t,a&&xo(r[0],r[1],a)&&(s=o<3?t:s,o=1),n=Pt(n);++i<o;){var u=r[i];u&&e(n,u,i,s)}return n}))}function Ri(t,e){return function(n,r){if(null==n)return n;if(!Hs(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=Pt(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Li(t){return function(e,n,r){for(var i=-1,o=Pt(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}function Vi(e){return function(n){var r=rn(n=ya(n))?hn(n):t,i=r?r[0]:n.charAt(0),o=r?bi(r,1).join(""):n.slice(1);return i[e]()+o}}function ji(t){return function(e){return Re(Ka(Wa(e).replace(Zt,"")),t,"")}}function Bi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Nn(t.prototype),r=t.apply(n,e);return ta(r)?r:n}}function Fi(e){return function(n,r,i){var o=Pt(n);if(!Hs(n)){var s=uo(r,3);n=Oa(n),r=function(t){return s(o[t],t,o)}}var a=e(n,r,i);return a>-1?o[s?n[a]:a]:t}}function Ii(n){return no((function(r){var i=r.length,o=i,s=Wn.prototype.thru;for(n&&r.reverse();o--;){var a=r[o];if("function"!=typeof a)throw new Ct(e);if(s&&!u&&"wrapper"==so(a))var u=new Wn([],!0)}for(o=u?o:i;++o<i;){var l=so(a=r[o]),c="wrapper"==l?oo(a):t;u=c&&wo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[so(c[0])].apply(u,c[3]):1==a.length&&wo(a)?u[l]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&$s(e))return u.plant(e).value();for(var n=0,o=i?r[n].apply(this,t):e;++n<i;)o=r[n].call(this,o);return o}}))}function zi(e,n,r,i,o,s,u,l,c,h){var f=n&a,p=1&n,d=2&n,m=24&n,v=512&n,g=d?t:Bi(e);return function a(){for(var y=arguments.length,_=bt(y),x=y;x--;)_[x]=arguments[x];if(m)var b=ao(a),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(i&&(_=Si(_,i,o,m)),s&&(_=Ai(_,s,u,m)),y-=w,m&&y<h){var T=an(_,b);return qi(e,n,zi,a.placeholder,r,_,T,l,c,h-y)}var k=p?r:this,E=d?k[e]:e;return y=_.length,l?_=function(e,n){for(var r=e.length,i=_n(n.length,r),o=Ci(e);i--;){var s=n[i];e[i]=_o(s,r)?o[s]:t}return e}(_,l):v&&y>1&&_.reverse(),f&&c<y&&(_.length=c),this&&this!==he&&this instanceof a&&(E=g||Bi(E)),E.apply(k,_)}}function Ni(t,e){return function(n,r){return function(t,e,n,r){return xr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Ui(e,n){return function(r,i){var o;if(r===t&&i===t)return n;if(r!==t&&(o=r),i!==t){if(o===t)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ui(r),i=ui(i)),o=e(r,i)}return o}}function Wi(t){return no((function(e){return e=Oe(e,Ge(uo())),Zr((function(n){var r=this;return t(e,(function(t){return Te(t,r,n)}))}))}))}function $i(e,n){var r=(n=n===t?" ":li(n)).length;if(r<2)return r?Gr(n,e):n;var i=Gr(n,me(e/cn(n)));return rn(n)?bi(hn(i),0,e).join(""):i.slice(0,e)}function Yi(e){return function(n,r,i){return i&&"number"!=typeof i&&xo(n,r,i)&&(r=i=t),n=pa(n),r===t?(r=n,n=0):r=pa(r),function(t,e,n,r){for(var i=-1,o=yn(me((e-t)/(n||1)),0),s=bt(o);o--;)s[r?o:++i]=t,t+=n;return s}(n,r,i=i===t?n<r?1:-1:pa(i),e)}}function Hi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=va(e),n=va(n)),t(e,n)}}function qi(e,n,r,i,a,u,l,c,h,f){var p=8&n;n|=p?o:s,4&(n&=~(p?s:o))||(n&=-4);var d=[e,n,a,p?u:t,p?l:t,p?t:u,p?t:l,c,h,f],m=r.apply(t,d);return wo(e)&&Mo(m,d),m.placeholder=i,Ro(m,e,n)}function Xi(t){var e=Et[t];return function(t,n){if(t=va(t),(n=null==n?0:_n(da(n),292))&&mn(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Gi=Sn&&1/un(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:uu;function Zi(t){return function(e){var n=mo(e);return n==b?on(e):n==P?ln(e):function(t,e){return Oe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Ki(n,l,c,h,f,p,d,m){var v=2&l;if(!v&&"function"!=typeof n)throw new Ct(e);var g=h?h.length:0;if(g||(l&=-97,h=f=t),d=d===t?d:yn(da(d),0),m=m===t?m:da(m),g-=f?f.length:0,l&s){var y=h,_=f;h=f=t}var x=v?t:oo(n),b=[n,l,c,h,f,y,_,p,d,m];if(x&&function(t,e){var n=t[1],i=e[1],o=n|i,s=o<131,l=i==a&&8==n||i==a&&n==u&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!s&&!l)return t;1&i&&(t[2]=e[2],o|=1&n?0:4);var c=e[3];if(c){var h=t[3];t[3]=h?Si(h,c,e[4]):c,t[4]=h?an(t[3],r):e[4]}(c=e[5])&&(h=t[5],t[5]=h?Ai(h,c,e[6]):c,t[6]=h?an(t[5],r):e[6]),(c=e[7])&&(t[7]=c),i&a&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(b,x),n=b[0],l=b[1],c=b[2],h=b[3],f=b[4],!(m=b[9]=b[9]===t?v?0:n.length:yn(b[9]-g,0))&&24&l&&(l&=-25),l&&1!=l)w=8==l||l==i?function(e,n,r){var i=Bi(e);return function o(){for(var s=arguments.length,a=bt(s),u=s,l=ao(o);u--;)a[u]=arguments[u];var c=s<3&&a[0]!==l&&a[s-1]!==l?[]:an(a,l);return(s-=c.length)<r?qi(e,n,zi,o.placeholder,t,a,c,t,t,r-s):Te(this&&this!==he&&this instanceof o?i:e,this,a)}}(n,l,m):l!=o&&33!=l||f.length?zi.apply(t,b):function(t,e,n,r){var i=1&e,o=Bi(t);return function e(){for(var s=-1,a=arguments.length,u=-1,l=r.length,c=bt(l+a),h=this&&this!==he&&this instanceof e?o:t;++u<l;)c[u]=r[u];for(;a--;)c[u++]=arguments[++s];return Te(h,i?n:this,c)}}(n,l,c,h);else var w=function(t,e,n){var r=1&e,i=Bi(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(n,l,c);return Ro((x?ti:Mo)(w,b),n,l)}function Qi(e,n,r,i){return e===t||zs(e,Dt[r])&&!Vt.call(i,r)?n:e}function Ji(e,n,r,i,o,s){return ta(e)&&ta(n)&&(s.set(n,e),Ur(e,n,t,Ji,s),s.delete(n)),e}function to(e){return ia(e)?t:e}function eo(e,n,r,i,o,s){var a=1&r,u=e.length,l=n.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(e),h=s.get(n);if(c&&h)return c==n&&h==e;var f=-1,p=!0,d=2&r?new Xn:t;for(s.set(e,n),s.set(n,e);++f<u;){var m=e[f],v=n[f];if(i)var g=a?i(v,m,f,n,e,s):i(m,v,f,e,n,s);if(g!==t){if(g)continue;p=!1;break}if(d){if(!Ve(n,(function(t,e){if(!Ke(d,e)&&(m===t||o(m,t,r,i,s)))return d.push(e)}))){p=!1;break}}else if(m!==v&&!o(m,v,r,i,s)){p=!1;break}}return s.delete(e),s.delete(n),p}function no(e){return Do(So(e,t,Yo),e+"")}function ro(t){return kr(t,Oa,fo)}function io(t){return kr(t,Da,po)}var oo=Mn?function(t){return Mn.get(t)}:uu;function so(t){for(var e=t.name+"",n=On[e],r=Vt.call(On,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ao(t){return(Vt.call(zn,"placeholder")?zn:t).placeholder}function uo(){var t=zn.iteratee||iu;return t=t===iu?Vr:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function co(t){for(var e=Oa(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Eo(i)]}return e}function ho(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return Lr(r)?r:t}var fo=je?function(t){return null==t?[]:(t=Pt(t),Ae(je(t),(function(e){return Xt.call(t,e)})))}:mu,po=je?function(t){for(var e=[];t;)De(e,fo(t)),t=Ht(t);return e}:mu,mo=Er;function vo(t,e,n){for(var r=-1,i=(e=_i(e,t)).length,o=!1;++r<i;){var s=Bo(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Js(i)&&_o(s,i)&&($s(t)||Ws(t))}function go(t){return"function"!=typeof t.constructor||ko(t)?{}:Nn(Ht(t))}function yo(t){return $s(t)||Ws(t)||!!(Qt&&t&&t[Qt])}function _o(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function xo(t,e,n){if(!ta(n))return!1;var r=typeof e;return!!("number"==r?Hs(n)&&_o(e,n.length):"string"==r&&e in n)&&zs(n[e],t)}function bo(t,e){if($s(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ua(t))||Q.test(t)||!K.test(t)||null!=e&&t in Pt(e)}function wo(t){var e=so(t),n=zn[e];if("function"!=typeof n||!(e in $n.prototype))return!1;if(t===n)return!0;var r=oo(n);return!!r&&t===r[0]}(kn&&mo(new kn(new ArrayBuffer(1)))!=O||En&&mo(new En)!=b||Pn&&mo(Pn.resolve())!=k||Sn&&mo(new Sn)!=P||An&&mo(new An)!=C)&&(mo=function(e){var n=Er(e),r=n==T?e.constructor:t,i=r?Fo(r):"";if(i)switch(i){case Dn:return O;case Rn:return b;case Ln:return k;case Vn:return P;case jn:return C}return n});var To=Rt?Ks:vu;function ko(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Dt)}function Eo(t){return t==t&&!ta(t)}function Po(e,n){return function(r){return null!=r&&r[e]===n&&(n!==t||e in Pt(r))}}function So(e,n,r){return n=yn(n===t?e.length-1:n,0),function(){for(var t=arguments,i=-1,o=yn(t.length-n,0),s=bt(o);++i<o;)s[i]=t[n+i];i=-1;for(var a=bt(n+1);++i<n;)a[i]=t[i];return a[n]=r(s),Te(e,this,a)}}function Ao(t,e){return e.length<2?t:Tr(t,ri(e,0,-1))}function Co(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Mo=Lo(ti),Oo=pe||function(t,e){return he.setTimeout(t,e)},Do=Lo(ei);function Ro(t,e,n){var r=e+"";return Do(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ee(p,(function(n){var r="_."+n[0];e&n[1]&&!Ce(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(st):[]}(r),n)))}function Lo(e){var n=0,r=0;return function(){var i=xn(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Vo(e,n){var r=-1,i=e.length,o=i-1;for(n=n===t?i:n;++r<n;){var s=Xr(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=n,e}var jo=function(t){var e=Ls(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(J,(function(t,n,r,i){e.push(r?i.replace(lt,"$1"):n||t)})),e}));function Bo(t){if("string"==typeof t||ua(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Io(t){if(t instanceof $n)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=Ci(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var zo=Zr((function(t,e){return qs(t)?hr(t,gr(e,1,qs,!0)):[]})),No=Zr((function(e,n){var r=Zo(n);return qs(r)&&(r=t),qs(e)?hr(e,gr(n,1,qs,!0),uo(r,2)):[]})),Uo=Zr((function(e,n){var r=Zo(n);return qs(r)&&(r=t),qs(e)?hr(e,gr(n,1,qs,!0),t,r):[]}));function Wo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=yn(r+i,0)),Fe(t,uo(e,3),i)}function $o(e,n,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==t&&(o=da(r),o=r<0?yn(i+o,0):_n(o,i-1)),Fe(e,uo(n,3),o,!0)}function Yo(t){return null!=t&&t.length?gr(t,1):[]}function Ho(e){return e&&e.length?e[0]:t}var qo=Zr((function(t){var e=Oe(t,gi);return e.length&&e[0]===t[0]?Cr(e):[]})),Xo=Zr((function(e){var n=Zo(e),r=Oe(e,gi);return n===Zo(r)?n=t:r.pop(),r.length&&r[0]===e[0]?Cr(r,uo(n,2)):[]})),Go=Zr((function(e){var n=Zo(e),r=Oe(e,gi);return(n="function"==typeof n?n:t)&&r.pop(),r.length&&r[0]===e[0]?Cr(r,t,n):[]}));function Zo(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Ko=Zr(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Hr(t,e):t}var Jo=no((function(t,e){var n=null==t?0:t.length,r=sr(t,e);return qr(t,Oe(e,(function(t){return _o(t,n)?+t:t})).sort(Pi)),r}));function ts(t){return null==t?t:Tn.call(t)}var es=Zr((function(t){return ci(gr(t,1,qs,!0))})),ns=Zr((function(e){var n=Zo(e);return qs(n)&&(n=t),ci(gr(e,1,qs,!0),uo(n,2))})),rs=Zr((function(e){var n=Zo(e);return n="function"==typeof n?n:t,ci(gr(e,1,qs,!0),t,n)}));function is(t){if(!t||!t.length)return[];var e=0;return t=Ae(t,(function(t){if(qs(t))return e=yn(t.length,e),!0})),qe(e,(function(e){return Oe(t,We(e))}))}function os(e,n){if(!e||!e.length)return[];var r=is(e);return null==n?r:Oe(r,(function(e){return Te(n,t,e)}))}var ss=Zr((function(t,e){return qs(t)?hr(t,e):[]})),as=Zr((function(t){return mi(Ae(t,qs))})),us=Zr((function(e){var n=Zo(e);return qs(n)&&(n=t),mi(Ae(e,qs),uo(n,2))})),ls=Zr((function(e){var n=Zo(e);return n="function"==typeof n?n:t,mi(Ae(e,qs),t,n)})),cs=Zr(is),hs=Zr((function(e){var n=e.length,r=n>1?e[n-1]:t;return r="function"==typeof r?(e.pop(),r):t,os(e,r)}));function fs(t){var e=zn(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var ds=no((function(e){var n=e.length,r=n?e[0]:0,i=this.__wrapped__,o=function(t){return sr(t,e)};return!(n>1||this.__actions__.length)&&i instanceof $n&&_o(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:ps,args:[o],thisArg:t}),new Wn(i,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(o)})),ms=Oi((function(t,e,n){Vt.call(t,n)?++t[n]:or(t,n,1)})),vs=Fi(Wo),gs=Fi($o);function ys(t,e){return($s(t)?Ee:fr)(t,uo(e,3))}function _s(t,e){return($s(t)?Pe:pr)(t,uo(e,3))}var xs=Oi((function(t,e,n){Vt.call(t,n)?t[n].push(e):or(t,n,[e])})),bs=Zr((function(t,e,n){var r=-1,i="function"==typeof e,o=Hs(t)?bt(t.length):[];return fr(t,(function(t){o[++r]=i?Te(e,t,n):Mr(t,e,n)})),o})),ws=Oi((function(t,e,n){or(t,n,e)}));function Ts(t,e){return($s(t)?Oe:Ir)(t,uo(e,3))}var ks=Oi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Es=Zr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&xo(t,e[0],e[1])?e=[]:n>2&&xo(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,gr(e,1),[])})),Ps=fe||function(){return he.Date.now()};function Ss(e,n,r){return n=r?t:n,n=e&&null==n?e.length:n,Ki(e,a,t,t,t,t,n)}function As(n,r){var i;if("function"!=typeof r)throw new Ct(e);return n=da(n),function(){return--n>0&&(i=r.apply(this,arguments)),n<=1&&(r=t),i}}var Cs=Zr((function(t,e,n){var r=1;if(n.length){var i=an(n,ao(Cs));r|=o}return Ki(t,r,e,n,i)})),Ms=Zr((function(t,e,n){var r=3;if(n.length){var i=an(n,ao(Ms));r|=o}return Ki(e,r,t,n,i)}));function Os(n,r,i){var o,s,a,u,l,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof n)throw new Ct(e);function m(e){var r=o,i=s;return o=s=t,h=e,u=n.apply(i,r)}function v(e){var n=e-c;return c===t||n>=r||n<0||p&&e-h>=a}function g(){var t=Ps();if(v(t))return y(t);l=Oo(g,function(t){var e=r-(t-c);return p?_n(e,a-(t-h)):e}(t))}function y(e){return l=t,d&&o?m(e):(o=s=t,u)}function _(){var e=Ps(),n=v(e);if(o=arguments,s=this,c=e,n){if(l===t)return function(t){return h=t,l=Oo(g,r),f?m(t):u}(c);if(p)return wi(l),l=Oo(g,r),m(c)}return l===t&&(l=Oo(g,r)),u}return r=va(r)||0,ta(i)&&(f=!!i.leading,a=(p="maxWait"in i)?yn(va(i.maxWait)||0,r):a,d="trailing"in i?!!i.trailing:d),_.cancel=function(){l!==t&&wi(l),h=0,o=c=s=l=t},_.flush=function(){return l===t?u:y(Ps())},_}var Ds=Zr((function(t,e){return cr(t,1,e)})),Rs=Zr((function(t,e,n){return cr(t,va(e)||0,n)}));function Ls(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Ct(e);var r=function(){var e=arguments,i=n?n.apply(this,e):e[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,e);return r.cache=o.set(i,s)||o,s};return r.cache=new(Ls.Cache||qn),r}function Vs(t){if("function"!=typeof t)throw new Ct(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ls.Cache=qn;var js=xi((function(t,e){var n=(e=1==e.length&&$s(e[0])?Oe(e[0],Ge(uo())):Oe(gr(e,1),Ge(uo()))).length;return Zr((function(r){for(var i=-1,o=_n(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Te(t,this,r)}))})),Bs=Zr((function(e,n){var r=an(n,ao(Bs));return Ki(e,o,t,n,r)})),Fs=Zr((function(e,n){var r=an(n,ao(Fs));return Ki(e,s,t,n,r)})),Is=no((function(e,n){return Ki(e,u,t,t,t,n)}));function zs(t,e){return t===e||t!=t&&e!=e}var Ns=Hi(Pr),Us=Hi((function(t,e){return t>=e})),Ws=Or(function(){return arguments}())?Or:function(t){return ea(t)&&Vt.call(t,"callee")&&!Xt.call(t,"callee")},$s=bt.isArray,Ys=ge?Ge(ge):function(t){return ea(t)&&Er(t)==M};function Hs(t){return null!=t&&Js(t.length)&&!Ks(t)}function qs(t){return ea(t)&&Hs(t)}var Xs=$e||vu,Gs=ye?Ge(ye):function(t){return ea(t)&&Er(t)==g};function Zs(t){if(!ea(t))return!1;var e=Er(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Ks(t){if(!ta(t))return!1;var e=Er(t);return e==_||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qs(t){return"number"==typeof t&&t==da(t)}function Js(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var na=_e?Ge(_e):function(t){return ea(t)&&mo(t)==b};function ra(t){return"number"==typeof t||ea(t)&&Er(t)==w}function ia(t){if(!ea(t)||Er(t)!=T)return!1;var e=Ht(t);if(null===e)return!0;var n=Vt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==It}var oa=xe?Ge(xe):function(t){return ea(t)&&Er(t)==E},sa=be?Ge(be):function(t){return ea(t)&&mo(t)==P};function aa(t){return"string"==typeof t||!$s(t)&&ea(t)&&Er(t)==S}function ua(t){return"symbol"==typeof t||ea(t)&&Er(t)==A}var la=we?Ge(we):function(t){return ea(t)&&Js(t.length)&&!!ie[Er(t)]},ca=Hi(Fr),ha=Hi((function(t,e){return t<=e}));function fa(t){if(!t)return[];if(Hs(t))return aa(t)?hn(t):Ci(t);if(te&&t[te])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[te]());var e=mo(t);return(e==b?on:e==P?un:za)(t)}function pa(t){return t?(t=va(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=pa(t),n=e%1;return e==e?n?e-n:e:0}function ma(t){return t?ar(da(t),0,f):0}function va(t){if("number"==typeof t)return t;if(ua(t))return h;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Xe(t);var n=pt.test(t);return n||mt.test(t)?ue(t.slice(2),n?2:8):ft.test(t)?h:+t}function ga(t){return Mi(t,Da(t))}function ya(t){return null==t?"":li(t)}var _a=Di((function(t,e){if(ko(e)||Hs(e))Mi(e,Oa(e),t);else for(var n in e)Vt.call(e,n)&&er(t,n,e[n])})),xa=Di((function(t,e){Mi(e,Da(e),t)})),ba=Di((function(t,e,n,r){Mi(e,Da(e),t,r)})),wa=Di((function(t,e,n,r){Mi(e,Oa(e),t,r)})),Ta=no(sr),ka=Zr((function(e,n){e=Pt(e);var r=-1,i=n.length,o=i>2?n[2]:t;for(o&&xo(n[0],n[1],o)&&(i=1);++r<i;)for(var s=n[r],a=Da(s),u=-1,l=a.length;++u<l;){var c=a[u],h=e[c];(h===t||zs(h,Dt[c])&&!Vt.call(e,c))&&(e[c]=s[c])}return e})),Ea=Zr((function(e){return e.push(t,Ji),Te(La,t,e)}));function Pa(e,n,r){var i=null==e?t:Tr(e,n);return i===t?r:i}function Sa(t,e){return null!=t&&vo(t,e,Ar)}var Aa=Ni((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=n}),tu(ru)),Ca=Ni((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Vt.call(t,e)?t[e].push(n):t[e]=[n]}),uo),Ma=Zr(Mr);function Oa(t){return Hs(t)?Zn(t):jr(t)}function Da(t){return Hs(t)?Zn(t,!0):Br(t)}var Ra=Di((function(t,e,n){Ur(t,e,n)})),La=Di((function(t,e,n,r){Ur(t,e,n,r)})),Va=no((function(t,e){var n={};if(null==t)return n;var r=!1;e=Oe(e,(function(e){return e=_i(e,t),r||(r=e.length>1),e})),Mi(t,io(t),n),r&&(n=ur(n,7,to));for(var i=e.length;i--;)hi(n,e[i]);return n})),ja=no((function(t,e){return null==t?{}:function(t,e){return Yr(t,e,(function(e,n){return Sa(t,n)}))}(t,e)}));function Ba(t,e){if(null==t)return{};var n=Oe(io(t),(function(t){return[t]}));return e=uo(e),Yr(t,n,(function(t,n){return e(t,n[0])}))}var Fa=Zi(Oa),Ia=Zi(Da);function za(t){return null==t?[]:Ze(t,Oa(t))}var Na=ji((function(t,e,n){return e=e.toLowerCase(),t+(n?Ua(e):e)}));function Ua(t){return Za(ya(t).toLowerCase())}function Wa(t){return(t=ya(t))&&t.replace(gt,tn).replace(Kt,"")}var $a=ji((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ya=ji((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ha=Vi("toLowerCase"),qa=ji((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Xa=ji((function(t,e,n){return t+(n?" ":"")+Za(e)})),Ga=ji((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Za=Vi("toUpperCase");function Ka(e,n,r){return e=ya(e),(n=r?t:n)===t?function(t){return ee.test(t)}(e)?function(t){return t.match(Jt)||[]}(e):function(t){return t.match(at)||[]}(e):e.match(n)||[]}var Qa=Zr((function(e,n){try{return Te(e,t,n)}catch(t){return Zs(t)?t:new Tt(t)}})),Ja=no((function(t,e){return Ee(e,(function(e){e=Bo(e),or(t,e,Cs(t[e],t))})),t}));function tu(t){return function(){return t}}var eu=Ii(),nu=Ii(!0);function ru(t){return t}function iu(t){return Vr("function"==typeof t?t:ur(t,1))}var ou=Zr((function(t,e){return function(n){return Mr(n,t,e)}})),su=Zr((function(t,e){return function(n){return Mr(t,n,e)}}));function au(t,e,n){var r=Oa(e),i=wr(e,r);null!=n||ta(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=wr(e,Oa(e)));var o=!(ta(n)&&"chain"in n&&!n.chain),s=Ks(t);return Ee(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,De([this.value()],arguments))})})),t}function uu(){}var lu=Wi(Oe),cu=Wi(Se),hu=Wi(Ve);function fu(t){return bo(t)?We(Bo(t)):function(t){return function(e){return Tr(e,t)}}(t)}var pu=Yi(),du=Yi(!0);function mu(){return[]}function vu(){return!1}var gu,yu=Ui((function(t,e){return t+e}),0),_u=Xi("ceil"),xu=Ui((function(t,e){return t/e}),1),bu=Xi("floor"),wu=Ui((function(t,e){return t*e}),1),Tu=Xi("round"),ku=Ui((function(t,e){return t-e}),0);return zn.after=function(t,n){if("function"!=typeof n)throw new Ct(e);return t=da(t),function(){if(--t<1)return n.apply(this,arguments)}},zn.ary=Ss,zn.assign=_a,zn.assignIn=xa,zn.assignInWith=ba,zn.assignWith=wa,zn.at=Ta,zn.before=As,zn.bind=Cs,zn.bindAll=Ja,zn.bindKey=Ms,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return $s(t)?t:[t]},zn.chain=fs,zn.chunk=function(e,n,r){n=(r?xo(e,n,r):n===t)?1:yn(da(n),0);var i=null==e?0:e.length;if(!i||n<1)return[];for(var o=0,s=0,a=bt(me(i/n));o<i;)a[s++]=ri(e,o,o+=n);return a},zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=bt(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return De($s(n)?Ci(n):[n],gr(e,1))},zn.cond=function(t){var n=null==t?0:t.length,r=uo();return t=n?Oe(t,(function(t){if("function"!=typeof t[1])throw new Ct(e);return[r(t[0]),t[1]]})):[],Zr((function(e){for(var r=-1;++r<n;){var i=t[r];if(Te(i[0],this,e))return Te(i[1],this,e)}}))},zn.conforms=function(t){return function(t){var e=Oa(t);return function(n){return lr(n,t,e)}}(ur(t,1))},zn.constant=tu,zn.countBy=ms,zn.create=function(t,e){var n=Nn(t);return null==e?n:ir(n,e)},zn.curry=function e(n,r,i){var o=Ki(n,8,t,t,t,t,t,r=i?t:r);return o.placeholder=e.placeholder,o},zn.curryRight=function e(n,r,o){var s=Ki(n,i,t,t,t,t,t,r=o?t:r);return s.placeholder=e.placeholder,s},zn.debounce=Os,zn.defaults=ka,zn.defaultsDeep=Ea,zn.defer=Ds,zn.delay=Rs,zn.difference=zo,zn.differenceBy=No,zn.differenceWith=Uo,zn.drop=function(e,n,r){var i=null==e?0:e.length;return i?ri(e,(n=r||n===t?1:da(n))<0?0:n,i):[]},zn.dropRight=function(e,n,r){var i=null==e?0:e.length;return i?ri(e,0,(n=i-(n=r||n===t?1:da(n)))<0?0:n):[]},zn.dropRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0,!0):[]},zn.dropWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0):[]},zn.fill=function(e,n,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&xo(e,n,r)&&(r=0,i=o),function(e,n,r,i){var o=e.length;for((r=da(r))<0&&(r=-r>o?0:o+r),(i=i===t||i>o?o:da(i))<0&&(i+=o),i=r>i?0:ma(i);r<i;)e[r++]=n;return e}(e,n,r,i)):[]},zn.filter=function(t,e){return($s(t)?Ae:vr)(t,uo(e,3))},zn.flatMap=function(t,e){return gr(Ts(t,e),1)},zn.flatMapDeep=function(t,e){return gr(Ts(t,e),l)},zn.flatMapDepth=function(e,n,r){return r=r===t?1:da(r),gr(Ts(e,n),r)},zn.flatten=Yo,zn.flattenDeep=function(t){return null!=t&&t.length?gr(t,l):[]},zn.flattenDepth=function(e,n){return null!=e&&e.length?gr(e,n=n===t?1:da(n)):[]},zn.flip=function(t){return Ki(t,512)},zn.flow=eu,zn.flowRight=nu,zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},zn.functions=function(t){return null==t?[]:wr(t,Oa(t))},zn.functionsIn=function(t){return null==t?[]:wr(t,Da(t))},zn.groupBy=xs,zn.initial=function(t){return null!=t&&t.length?ri(t,0,-1):[]},zn.intersection=qo,zn.intersectionBy=Xo,zn.intersectionWith=Go,zn.invert=Aa,zn.invertBy=Ca,zn.invokeMap=bs,zn.iteratee=iu,zn.keyBy=ws,zn.keys=Oa,zn.keysIn=Da,zn.map=Ts,zn.mapKeys=function(t,e){var n={};return e=uo(e,3),xr(t,(function(t,r,i){or(n,e(t,r,i),t)})),n},zn.mapValues=function(t,e){var n={};return e=uo(e,3),xr(t,(function(t,r,i){or(n,r,e(t,r,i))})),n},zn.matches=function(t){return zr(ur(t,1))},zn.matchesProperty=function(t,e){return Nr(t,ur(e,1))},zn.memoize=Ls,zn.merge=Ra,zn.mergeWith=La,zn.method=ou,zn.methodOf=su,zn.mixin=au,zn.negate=Vs,zn.nthArg=function(t){return t=da(t),Zr((function(e){return Wr(e,t)}))},zn.omit=Va,zn.omitBy=function(t,e){return Ba(t,Vs(uo(e)))},zn.once=function(t){return As(2,t)},zn.orderBy=function(e,n,r,i){return null==e?[]:($s(n)||(n=null==n?[]:[n]),$s(r=i?t:r)||(r=null==r?[]:[r]),$r(e,n,r))},zn.over=lu,zn.overArgs=js,zn.overEvery=cu,zn.overSome=hu,zn.partial=Bs,zn.partialRight=Fs,zn.partition=ks,zn.pick=ja,zn.pickBy=Ba,zn.property=fu,zn.propertyOf=function(e){return function(n){return null==e?t:Tr(e,n)}},zn.pull=Ko,zn.pullAll=Qo,zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Hr(t,e,uo(n,2)):t},zn.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Hr(e,n,t,r):e},zn.pullAt=Jo,zn.range=pu,zn.rangeRight=du,zn.rearg=Is,zn.reject=function(t,e){return($s(t)?Ae:vr)(t,Vs(uo(e,3)))},zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=uo(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return qr(t,i),n},zn.rest=function(n,r){if("function"!=typeof n)throw new Ct(e);return Zr(n,r=r===t?r:da(r))},zn.reverse=ts,zn.sampleSize=function(e,n,r){return n=(r?xo(e,n,r):n===t)?1:da(n),($s(e)?Qn:Qr)(e,n)},zn.set=function(t,e,n){return null==t?t:Jr(t,e,n)},zn.setWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:Jr(e,n,r,i)},zn.shuffle=function(t){return($s(t)?Jn:ni)(t)},zn.slice=function(e,n,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&xo(e,n,r)?(n=0,r=i):(n=null==n?0:da(n),r=r===t?i:da(r)),ri(e,n,r)):[]},zn.sortBy=Es,zn.sortedUniq=function(t){return t&&t.length?ai(t):[]},zn.sortedUniqBy=function(t,e){return t&&t.length?ai(t,uo(e,2)):[]},zn.split=function(e,n,r){return r&&"number"!=typeof r&&xo(e,n,r)&&(n=r=t),(r=r===t?f:r>>>0)?(e=ya(e))&&("string"==typeof n||null!=n&&!oa(n))&&!(n=li(n))&&rn(e)?bi(hn(e),0,r):e.split(n,r):[]},zn.spread=function(t,n){if("function"!=typeof t)throw new Ct(e);return n=null==n?0:yn(da(n),0),Zr((function(e){var r=e[n],i=bi(e,0,n);return r&&De(i,r),Te(t,this,i)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},zn.take=function(e,n,r){return e&&e.length?ri(e,0,(n=r||n===t?1:da(n))<0?0:n):[]},zn.takeRight=function(e,n,r){var i=null==e?0:e.length;return i?ri(e,(n=i-(n=r||n===t?1:da(n)))<0?0:n,i):[]},zn.takeRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?pi(t,uo(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,n,r){var i=!0,o=!0;if("function"!=typeof t)throw new Ct(e);return ta(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Os(t,n,{leading:i,maxWait:n,trailing:o})},zn.thru=ps,zn.toArray=fa,zn.toPairs=Fa,zn.toPairsIn=Ia,zn.toPath=function(t){return $s(t)?Oe(t,Bo):ua(t)?[t]:Ci(jo(ya(t)))},zn.toPlainObject=ga,zn.transform=function(t,e,n){var r=$s(t),i=r||Xs(t)||la(t);if(e=uo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ta(t)&&Ks(o)?Nn(Ht(t)):{}}return(i?Ee:xr)(t,(function(t,r,i){return e(n,t,r,i)})),n},zn.unary=function(t){return Ss(t,1)},zn.union=es,zn.unionBy=ns,zn.unionWith=rs,zn.uniq=function(t){return t&&t.length?ci(t):[]},zn.uniqBy=function(t,e){return t&&t.length?ci(t,uo(e,2)):[]},zn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?ci(e,t,n):[]},zn.unset=function(t,e){return null==t||hi(t,e)},zn.unzip=is,zn.unzipWith=os,zn.update=function(t,e,n){return null==t?t:fi(t,e,yi(n))},zn.updateWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:fi(e,n,yi(r),i)},zn.values=za,zn.valuesIn=function(t){return null==t?[]:Ze(t,Da(t))},zn.without=ss,zn.words=Ka,zn.wrap=function(t,e){return Bs(yi(e),t)},zn.xor=as,zn.xorBy=us,zn.xorWith=ls,zn.zip=cs,zn.zipObject=function(t,e){return vi(t||[],e||[],er)},zn.zipObjectDeep=function(t,e){return vi(t||[],e||[],Jr)},zn.zipWith=hs,zn.entries=Fa,zn.entriesIn=Ia,zn.extend=xa,zn.extendWith=ba,au(zn,zn),zn.add=yu,zn.attempt=Qa,zn.camelCase=Na,zn.capitalize=Ua,zn.ceil=_u,zn.clamp=function(e,n,r){return r===t&&(r=n,n=t),r!==t&&(r=(r=va(r))==r?r:0),n!==t&&(n=(n=va(n))==n?n:0),ar(va(e),n,r)},zn.clone=function(t){return ur(t,4)},zn.cloneDeep=function(t){return ur(t,5)},zn.cloneDeepWith=function(e,n){return ur(e,5,n="function"==typeof n?n:t)},zn.cloneWith=function(e,n){return ur(e,4,n="function"==typeof n?n:t)},zn.conformsTo=function(t,e){return null==e||lr(t,e,Oa(e))},zn.deburr=Wa,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=xu,zn.endsWith=function(e,n,r){e=ya(e),n=li(n);var i=e.length,o=r=r===t?i:ar(da(r),0,i);return(r-=n.length)>=0&&e.slice(r,o)==n},zn.eq=zs,zn.escape=function(t){return(t=ya(t))&&q.test(t)?t.replace(Y,en):t},zn.escapeRegExp=function(t){return(t=ya(t))&&et.test(t)?t.replace(tt,"\\$&"):t},zn.every=function(e,n,r){var i=$s(e)?Se:dr;return r&&xo(e,n,r)&&(n=t),i(e,uo(n,3))},zn.find=vs,zn.findIndex=Wo,zn.findKey=function(t,e){return Be(t,uo(e,3),xr)},zn.findLast=gs,zn.findLastIndex=$o,zn.findLastKey=function(t,e){return Be(t,uo(e,3),br)},zn.floor=bu,zn.forEach=ys,zn.forEachRight=_s,zn.forIn=function(t,e){return null==t?t:yr(t,uo(e,3),Da)},zn.forInRight=function(t,e){return null==t?t:_r(t,uo(e,3),Da)},zn.forOwn=function(t,e){return t&&xr(t,uo(e,3))},zn.forOwnRight=function(t,e){return t&&br(t,uo(e,3))},zn.get=Pa,zn.gt=Ns,zn.gte=Us,zn.has=function(t,e){return null!=t&&vo(t,e,Sr)},zn.hasIn=Sa,zn.head=Ho,zn.identity=ru,zn.includes=function(t,e,n,r){t=Hs(t)?t:za(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=yn(i+n,0)),aa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ie(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=yn(r+i,0)),Ie(t,e,i)},zn.inRange=function(e,n,r){return n=pa(n),r===t?(r=n,n=0):r=pa(r),function(t,e,n){return t>=_n(e,n)&&t<yn(e,n)}(e=va(e),n,r)},zn.invoke=Ma,zn.isArguments=Ws,zn.isArray=$s,zn.isArrayBuffer=Ys,zn.isArrayLike=Hs,zn.isArrayLikeObject=qs,zn.isBoolean=function(t){return!0===t||!1===t||ea(t)&&Er(t)==v},zn.isBuffer=Xs,zn.isDate=Gs,zn.isElement=function(t){return ea(t)&&1===t.nodeType&&!ia(t)},zn.isEmpty=function(t){if(null==t)return!0;if(Hs(t)&&($s(t)||"string"==typeof t||"function"==typeof t.splice||Xs(t)||la(t)||Ws(t)))return!t.length;var e=mo(t);if(e==b||e==P)return!t.size;if(ko(t))return!jr(t).length;for(var n in t)if(Vt.call(t,n))return!1;return!0},zn.isEqual=function(t,e){return Dr(t,e)},zn.isEqualWith=function(e,n,r){var i=(r="function"==typeof r?r:t)?r(e,n):t;return i===t?Dr(e,n,t,r):!!i},zn.isError=Zs,zn.isFinite=function(t){return"number"==typeof t&&mn(t)},zn.isFunction=Ks,zn.isInteger=Qs,zn.isLength=Js,zn.isMap=na,zn.isMatch=function(t,e){return t===e||Rr(t,e,co(e))},zn.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Rr(e,n,co(n),r)},zn.isNaN=function(t){return ra(t)&&t!=+t},zn.isNative=function(t){if(To(t))throw new Tt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},zn.isNil=function(t){return null==t},zn.isNull=function(t){return null===t},zn.isNumber=ra,zn.isObject=ta,zn.isObjectLike=ea,zn.isPlainObject=ia,zn.isRegExp=oa,zn.isSafeInteger=function(t){return Qs(t)&&t>=-9007199254740991&&t<=c},zn.isSet=sa,zn.isString=aa,zn.isSymbol=ua,zn.isTypedArray=la,zn.isUndefined=function(e){return e===t},zn.isWeakMap=function(t){return ea(t)&&mo(t)==C},zn.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==Er(t)},zn.join=function(t,e){return null==t?"":vn.call(t,e)},zn.kebabCase=$a,zn.last=Zo,zn.lastIndexOf=function(e,n,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==t&&(o=(o=da(r))<0?yn(i+o,0):_n(o,i-1)),n==n?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(e,n,o):Fe(e,Ne,o,!0)},zn.lowerCase=Ya,zn.lowerFirst=Ha,zn.lt=ca,zn.lte=ha,zn.max=function(e){return e&&e.length?mr(e,ru,Pr):t},zn.maxBy=function(e,n){return e&&e.length?mr(e,uo(n,2),Pr):t},zn.mean=function(t){return Ue(t,ru)},zn.meanBy=function(t,e){return Ue(t,uo(e,2))},zn.min=function(e){return e&&e.length?mr(e,ru,Fr):t},zn.minBy=function(e,n){return e&&e.length?mr(e,uo(n,2),Fr):t},zn.stubArray=mu,zn.stubFalse=vu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=wu,zn.nth=function(e,n){return e&&e.length?Wr(e,da(n)):t},zn.noConflict=function(){return he._===this&&(he._=zt),this},zn.noop=uu,zn.now=Ps,zn.pad=function(t,e,n){t=ya(t);var r=(e=da(e))?cn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return $i(ve(i),n)+t+$i(me(i),n)},zn.padEnd=function(t,e,n){t=ya(t);var r=(e=da(e))?cn(t):0;return e&&r<e?t+$i(e-r,n):t},zn.padStart=function(t,e,n){t=ya(t);var r=(e=da(e))?cn(t):0;return e&&r<e?$i(e-r,n)+t:t},zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),bn(ya(t).replace(nt,""),e||0)},zn.random=function(e,n,r){if(r&&"boolean"!=typeof r&&xo(e,n,r)&&(n=r=t),r===t&&("boolean"==typeof n?(r=n,n=t):"boolean"==typeof e&&(r=e,e=t)),e===t&&n===t?(e=0,n=1):(e=pa(e),n===t?(n=e,e=0):n=pa(n)),e>n){var i=e;e=n,n=i}if(r||e%1||n%1){var o=wn();return _n(e+o*(n-e+ae("1e-"+((o+"").length-1))),n)}return Xr(e,n)},zn.reduce=function(t,e,n){var r=$s(t)?Re:Ye,i=arguments.length<3;return r(t,uo(e,4),n,i,fr)},zn.reduceRight=function(t,e,n){var r=$s(t)?Le:Ye,i=arguments.length<3;return r(t,uo(e,4),n,i,pr)},zn.repeat=function(e,n,r){return n=(r?xo(e,n,r):n===t)?1:da(n),Gr(ya(e),n)},zn.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(e,n,r){var i=-1,o=(n=_i(n,e)).length;for(o||(o=1,e=t);++i<o;){var s=null==e?t:e[Bo(n[i])];s===t&&(i=o,s=r),e=Ks(s)?s.call(e):s}return e},zn.round=Tu,zn.runInContext=rt,zn.sample=function(t){return($s(t)?Kn:Kr)(t)},zn.size=function(t){if(null==t)return 0;if(Hs(t))return aa(t)?cn(t):t.length;var e=mo(t);return e==b||e==P?t.size:jr(t).length},zn.snakeCase=qa,zn.some=function(e,n,r){var i=$s(e)?Ve:ii;return r&&xo(e,n,r)&&(n=t),i(e,uo(n,3))},zn.sortedIndex=function(t,e){return oi(t,e)},zn.sortedIndexBy=function(t,e,n){return si(t,e,uo(n,2))},zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=oi(t,e);if(r<n&&zs(t[r],e))return r}return-1},zn.sortedLastIndex=function(t,e){return oi(t,e,!0)},zn.sortedLastIndexBy=function(t,e,n){return si(t,e,uo(n,2),!0)},zn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=oi(t,e,!0)-1;if(zs(t[n],e))return n}return-1},zn.startCase=Xa,zn.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:ar(da(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},zn.subtract=ku,zn.sum=function(t){return t&&t.length?He(t,ru):0},zn.sumBy=function(t,e){return t&&t.length?He(t,uo(e,2)):0},zn.template=function(e,n,r){var i=zn.templateSettings;r&&xo(e,n,r)&&(n=t),e=ya(e),n=ba({},n,i,Qi);var o,s,a=ba({},n.imports,i.imports,Qi),u=Oa(a),l=Ze(a,u),c=0,h=n.interpolate||yt,f="__p += '",p=St((n.escape||yt).source+"|"+h.source+"|"+(h===Z?ct:yt).source+"|"+(n.evaluate||yt).source+"|$","g"),d="//# sourceURL="+(Vt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";e.replace(p,(function(t,n,r,i,a,u){return r||(r=i),f+=e.slice(c,u).replace(_t,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var m=Vt.call(n,"variable")&&n.variable;if(m){if(ut.test(m))throw new Tt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(N,""):f).replace(U,"$1").replace(W,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Qa((function(){return kt(u,d+"return "+f).apply(t,l)}));if(v.source=f,Zs(v))throw v;return v},zn.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=f,r=_n(t,f);e=uo(e),t-=f;for(var i=qe(r,e);++n<t;)e(n);return i},zn.toFinite=pa,zn.toInteger=da,zn.toLength=ma,zn.toLower=function(t){return ya(t).toLowerCase()},zn.toNumber=va,zn.toSafeInteger=function(t){return t?ar(da(t),-9007199254740991,c):0===t?t:0},zn.toString=ya,zn.toUpper=function(t){return ya(t).toUpperCase()},zn.trim=function(e,n,r){if((e=ya(e))&&(r||n===t))return Xe(e);if(!e||!(n=li(n)))return e;var i=hn(e),o=hn(n);return bi(i,Qe(i,o),Je(i,o)+1).join("")},zn.trimEnd=function(e,n,r){if((e=ya(e))&&(r||n===t))return e.slice(0,fn(e)+1);if(!e||!(n=li(n)))return e;var i=hn(e);return bi(i,0,Je(i,hn(n))+1).join("")},zn.trimStart=function(e,n,r){if((e=ya(e))&&(r||n===t))return e.replace(nt,"");if(!e||!(n=li(n)))return e;var i=hn(e);return bi(i,Qe(i,hn(n))).join("")},zn.truncate=function(e,n){var r=30,i="...";if(ta(n)){var o="separator"in n?n.separator:o;r="length"in n?da(n.length):r,i="omission"in n?li(n.omission):i}var s=(e=ya(e)).length;if(rn(e)){var a=hn(e);s=a.length}if(r>=s)return e;var u=r-cn(i);if(u<1)return i;var l=a?bi(a,0,u).join(""):e.slice(0,u);if(o===t)return l+i;if(a&&(u+=l.length-u),oa(o)){if(e.slice(u).search(o)){var c,h=l;for(o.global||(o=St(o.source,ya(ht.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var f=c.index;l=l.slice(0,f===t?u:f)}}else if(e.indexOf(li(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+i},zn.unescape=function(t){return(t=ya(t))&&H.test(t)?t.replace($,pn):t},zn.uniqueId=function(t){var e=++jt;return ya(t)+e},zn.upperCase=Ga,zn.upperFirst=Za,zn.each=ys,zn.eachRight=_s,zn.first=Ho,au(zn,(gu={},xr(zn,(function(t,e){Vt.call(zn.prototype,e)||(gu[e]=t)})),gu),{chain:!1}),zn.VERSION="4.17.21",Ee(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),Ee(["drop","take"],(function(e,n){$n.prototype[e]=function(r){r=r===t?1:yn(da(r),0);var i=this.__filtered__&&!n?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=_n(r,i.__takeCount__):i.__views__.push({size:_n(r,f),type:e+(i.__dir__<0?"Right":"")}),i},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ee(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;$n.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:uo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ee(["head","last"],(function(t,e){var n="take"+(e?"Right":"");$n.prototype[t]=function(){return this[n](1).value()[0]}})),Ee(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");$n.prototype[t]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(ru)},$n.prototype.find=function(t){return this.filter(t).head()},$n.prototype.findLast=function(t){return this.reverse().find(t)},$n.prototype.invokeMap=Zr((function(t,e){return"function"==typeof t?new $n(this):this.map((function(n){return Mr(n,t,e)}))})),$n.prototype.reject=function(t){return this.filter(Vs(uo(t)))},$n.prototype.slice=function(e,n){e=da(e);var r=this;return r.__filtered__&&(e>0||n<0)?new $n(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(n=da(n))<0?r.dropRight(-n):r.take(n-e)),r)},$n.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$n.prototype.toArray=function(){return this.take(f)},xr($n.prototype,(function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=zn[i?"take"+("last"==n?"Right":""):n],s=i||/^find/.test(n);o&&(zn.prototype[n]=function(){var n=this.__wrapped__,a=i?[1]:arguments,u=n instanceof $n,l=a[0],c=u||$s(n),h=function(t){var e=o.apply(zn,De([t],a));return i&&f?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=s&&!f,m=u&&!p;if(!s&&c){n=m?n:new $n(this);var v=e.apply(n,a);return v.__actions__.push({func:ps,args:[h],thisArg:t}),new Wn(v,f)}return d&&m?e.apply(this,a):(v=this.thru(h),d?i?v.value()[0]:v.value():v)})})),Ee(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply($s(i)?i:[],t)}return this[n]((function(n){return e.apply($s(n)?n:[],t)}))}})),xr($n.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";Vt.call(On,r)||(On[r]=[]),On[r].push({name:e,func:n})}})),On[zi(t,2).name]=[{name:"wrapper",func:t}],$n.prototype.clone=function(){var t=new $n(this.__wrapped__);return t.__actions__=Ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ci(this.__views__),t},$n.prototype.reverse=function(){if(this.__filtered__){var t=new $n(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$n.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=$s(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=_n(e,t+s);break;case"takeRight":t=yn(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,l=r?a:s-1,c=this.__iteratees__,h=c.length,f=0,p=_n(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return di(t,this.__actions__);var d=[];t:for(;u--&&f<p;){for(var m=-1,v=t[l+=e];++m<h;){var g=c[m],y=g.iteratee,_=g.type,x=y(v);if(2==_)v=x;else if(!x){if(1==_)continue t;break t}}d[f++]=v}return d},zn.prototype.at=ds,zn.prototype.chain=function(){return fs(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===t&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var n,r=this;r instanceof Un;){var i=Io(r);i.__index__=0,i.__values__=t,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,n},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var n=e;return this.__actions__.length&&(n=new $n(this)),(n=n.reverse()).__actions__.push({func:ps,args:[ts],thisArg:t}),new Wn(n,this.__chain__)}return this.thru(ts)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,te&&(zn.prototype[te]=function(){return this}),zn}();pe?((pe.exports=dn)._=dn,fe._=dn):he._=dn}.call(bh);var bf=function(){var t=p(0),e=t[0],n=t[1],r=p(0),i=r[0],o=r[1];return vf((function(){var t=xf.exports.throttle((function(){n(window.innerWidth),o(window.innerHeight)}),50);return window.addEventListener("resize",t),window.addEventListener("change",t),t(),function(){window.removeEventListener("resize",t),window.removeEventListener("change",t)}}),[]),{windowWidth:e,windowHeight:i}},wf=function(){var t=p(0),e=t[0],n=t[1];return vf((function(){var t=document.documentElement,e=function(){n(t.offsetHeight)},r=xf.exports.throttle(e,50),i=new ResizeObserver((function(t){return e()}));return i.observe(t),t.addEventListener("resize",r),t.addEventListener("change",r),r(),function(){t.addEventListener("resize",r),t.addEventListener("change",r),i.disconnect()}}),[]),e},Tf=992;function kf(t){var n=t.children,i=t.duration,o=void 0===i?3:i,s=t.start,a=void 0===s?"top 90%":s,u=t.scrub,l=void 0!==u&&u,c=t.toggleActions,h=void 0===c?"play none none none":c,f=t.delay,p=void 0===f?0:f,d=r(null),m=bf().windowWidth,v=gf("(min-width: ".concat(Tf,"px)"));return vf((function(){var t=null,e=null;return ui.registerPlugin(wh.exports.ScrollTrigger),t=ui.context((function(){e=setTimeout((function(){var t;!function(){var t;mf.create(null!==(t=d.current)&&void 0!==t?t:"",{types:"lines",tagName:"div"})}();var e=null===(t=d.current)||void 0===t?void 0:t.querySelectorAll(".line"),n=ui.timeline();n.to(d.current,{opacity:1,duration:0,delay:p}),wh.exports.ScrollTrigger.create({trigger:d.current,start:a,toggleActions:h,scrub:l,animation:n}),e&&e.forEach((function(t){var e,r=document.createElement("div");r.classList.add("spark-text-reveal__container"),r.append(t),null===(e=null==d?void 0:d.current)||void 0===e||e.append(r),t.classList.add("spark-text-reveal__content"),n.to(t,{duration:o,y:0,rotate:0,ease:"expo.out"},">-90%")}))}),500)}),d),function(){wh.exports.ScrollTrigger.killAll(),t&&(t.revert(),t=null),e&&(clearTimeout(e),e=null)}}),[m,v]),e.createElement("div",{className:"spark-text-reveal",ref:d},n)}function Ef(t){var n=t.text,i=t.textColor,o=void 0===i?"black":i,s=t.textColorIdle,a=void 0===s?"rgba(0, 0, 0, 0.5)":s,u=t.pin,l=void 0===u||u,c=t.pinRef,h=t.start,f=void 0===h?"top 30%":h,p=t.end,d=void 0===p?"bottom top":p,m=t.responsive,v=void 0===m||m,g=t.withMask,y=void 0!==g&&g,_=t.highlight,x=void 0!==_&&_,b=t.highlightColor,w=void 0===b?"":b,T=t.onComplete,k=r(null),E=gf("(min-width: ".concat(Tf,"px)")),P=bf().windowWidth;return vf((function(){var t=null;return k.current&&(k.current.style.opacity="1"),ui.registerPlugin(wh.exports.ScrollTrigger),(E||v)&&(!function(){var t,e,n;if(y){var r=mf.create(null!==(t=k.current)&&void 0!==t?t:"",{types:"lines",tagName:"span",lineClass:"line ".concat(x?"highlight":"")});(E||v)&&(null===(e=r.lines)||void 0===e||e.forEach((function(t){t.style.backgroundImage="linear-gradient(to right, ".concat(x?w:o," 0%, \n ").concat(x?w:o," 50%, ").concat(a," 50%, ").concat(a," 100%)")})))}else mf.create(null!==(n=k.current)&&void 0!==n?n:"",{types:"words",tagName:"span"})}(),t=ui.context((function(){var t,e;if(y){var n=null===(t=k.current)||void 0===t?void 0:t.querySelectorAll(".line"),r=ui.timeline();null==n||n.forEach((function(t){x&&(t.style.display="inline-block",t.style.width="auto",t.style.color=o),r.to(t,{backgroundPosition:"0% 0%"})})),r.to(k.current,{z:0,duration:1}),wh.exports.ScrollTrigger.create({trigger:c.current,start:f,end:d,pin:!!l&&(!c.current||c.current),scrub:1,animation:r,invalidateOnRefresh:!0,onUpdate:function(t){var e=t.progress,n=t.direction;T&&T(e>=1&&1===n)}})}else{var i=null===(e=k.current)||void 0===e?void 0:e.querySelectorAll(".word"),s=ui.timeline();null==i||i.forEach((function(t){s.to(t,{opacity:1})})),s.to(k.current,{z:0,duration:1}),wh.exports.ScrollTrigger.create({trigger:c.current,start:f,end:d,pin:!!l&&(!c.current||c.current),scrub:1,animation:s,invalidateOnRefresh:!0,onUpdate:function(t){var e=t.progress,n=t.direction;T&&T(e>=1&&1===n)}})}}),k)),function(){t&&t.revert()}}),[E,c.current,P]),e.createElement("p",{className:"spark-text-reader ".concat(v?void 0:"showOnMobile"),ref:k},n)}_("/* Breakpoints */\n.spark-text-reader {\n opacity: 0;\n overflow: hidden; }\n .spark-text-reader .word {\n opacity: 0; }\n .spark-text-reader .line {\n background-size: 200% 100%;\n background-position: 100% 0%; }\n .spark-text-reader .line:not(.highlight) {\n background-clip: text;\n -webkit-text-fill-color: transparent; }\n @media (max-width: 992px) {\n .spark-text-reader.showOnMobile .word {\n opacity: 1; } }\n @media (max-width: 992px) {\n .spark-text-reader.showOnMobile .line:not(.highlight) {\n -webkit-text-fill-color: currentColor; } }\n");function Pf(t){var n=t.children,i=t.triggerRef,o=t.pin,s=void 0===o||o,a=t.scrub,u=void 0===a?.3:a,l=t.start,c=void 0===l?"center center":l,h=t.end,f=void 0===h?"bottom top":h,p=t.markers,d=void 0!==p&&p,m=t.spacing,v=void 0===m?"1rem":m,g=t.sideSpacing,y=void 0===g?"0":g,_=t.startPos,x=void 0===_?"20%":_,b=t.endPos,w=void 0===b?1.1:b,T=r(null),k=gf("(min-width: ".concat(Tf,"px)")),E=bf().windowWidth,P=wf();return vf((function(){if(ui.registerPlugin(wh.exports.ScrollTrigger),k){var t=ui.context((function(){var t,e,n=ui.timeline(),r=null!==(e=null===(t=T.current)||void 0===t?void 0:t.scrollWidth)&&void 0!==e?e:"90%",o=E-Number(r)*w;n.fromTo(T.current,{x:x},{x:o}),wh.exports.ScrollTrigger.create({trigger:(null==i?void 0:i.current)?i.current:T.current,start:c,end:f,pin:s,scrub:u,animation:n,markers:d})}),T);return function(){t&&t.revert()}}}),[k,E,P]),e.createElement("div",{className:"spark-hpin",ref:T,style:{gap:v,margin:"0 calc(".concat(k?0:y," * -1)"),padding:"0 ".concat(k?0:y)}},n)}_("/* Breakpoints */\n.spark-hpin {\n display: flex;\n gap: 1rem;\n white-space: nowrap;\n overflow-x: auto;\n margin: 0;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar; }\n .spark-hpin::-webkit-scrollbar {\n display: none; }\n @media (min-width: 992px) {\n .spark-hpin {\n white-space: normal;\n overflow-x: visible; } }\n");function Sf(t){var n=t.children,r=t.items,i=t.itemsSpacing,o=void 0===i?"1rem":i,s=t.contentGap,a=void 0===s?"2rem":s,u=t.topGap,l=void 0===u?"6.25rem":u,c=y(t,["children","items","itemsSpacing","contentGap","topGap"]);return e.createElement("div",g({className:"spark-vpin",style:{gap:a}},c),e.createElement("div",{className:"spark-vpin__pin",style:{top:l}},n),e.createElement("div",{className:"spark-vpin__items",style:{gap:o}},r))}_("/* Breakpoints */\n.spark-vpin {\n display: flex;\n flex-direction: column;\n justify-content: space-between; }\n @media (min-width: 992px) {\n .spark-vpin {\n flex-direction: row; } }\n .spark-vpin__pin {\n height: 100%; }\n @media (min-width: 992px) {\n .spark-vpin__pin {\n position: sticky; } }\n .spark-vpin__items {\n display: flex;\n flex-direction: column; }\n");function Af(t){var n=t.images,i=t.content,o=t.imagesWrapperClass,a=void 0===o?"spark-voverlap-img-wrapper":o,u=t.contentImgClass,l=void 0===u?"voverlap-content-img":u,c=t.start,h=void 0===c?"top 70%":c,f=t.gap,d=void 0===f?[288,80]:f,m=r(null),v=r(null),g=p(0),y=g[0],_=g[1],x=bf().windowWidth,b=gf("(min-width: ".concat(Tf,"px)"));return vf((function(){var t=null,e=null;if(ui.registerPlugin(wh.exports.ScrollTrigger),b){var n=v.current;n&&(n.style.top="calc((100% - ".concat(n.clientHeight,"px) / 2)")),t=ui.context((function(){var t,n=document.documentElement;(e=new ResizeObserver((function(){_(n.scrollHeight)}))).observe(n);var r=null===(t=null==m?void 0:m.current)||void 0===t?void 0:t.querySelectorAll(".voverlap-content-item");null==r||r.forEach((function(t,e){var n,i=null===(n=null==m?void 0:m.current)||void 0===n?void 0:n.querySelectorAll(".spark-voverlap-img")[e];wh.exports.ScrollTrigger.create({trigger:t,id:"slide-".concat(e+1),start:h,end:function(){return"+=".concat(t.clientHeight+d[0])},toggleActions:"play reverse none reverse",toggleClass:{targets:t,className:"active"},invalidateOnRefresh:!0,onLeave:function(){e+1!==r.length&&i.classList.add("active")},onEnterBack:function(){i.classList.remove("active")}})}))}),m)}return function(){t&&(t.revert(),null==e||e.disconnect())}}),[b,x,y]),s((function(){var t=document.querySelectorAll(".".concat(l));b?t.forEach((function(t){t.style.display="none"})):t.forEach((function(t){t.style.display="block"}))}),[b]),e.createElement("div",{className:"spark-voverlap",ref:m},b&&e.createElement("div",{className:"spark-voverlap__aside",ref:v},n.length&&e.createElement("div",{className:"spark-voverlap__img-wrapper ".concat(a)},n.map((function(t,r){return e.createElement("img",{className:"spark-voverlap__img spark-voverlap-img",src:t.url,alt:t.alt?t.alt:"",key:r,style:{zIndex:n.length-r}})})))),i&&e.createElement("div",{className:"spark-voverlap__content",style:{gap:"".concat(b?d[0]:d[1],"px")}},i.map((function(t,n){return e.createElement("div",{className:"voverlap-content-item",key:n},t)}))))}_("/* Breakpoints */\n.spark-voverlap {\n display: flex;\n flex-direction: row;\n gap: 6.25rem; }\n @media (max-width: 992px) {\n .spark-voverlap {\n flex-direction: column; } }\n .spark-voverlap__aside {\n max-width: 31.25rem;\n position: sticky;\n top: 0;\n height: 100%;\n width: 100%; }\n .spark-voverlap__img-wrapper {\n height: 21.875rem; }\n .spark-voverlap__img {\n border-radius: 1.5rem;\n clip-path: inset(0 0 0 0);\n object-fit: cover;\n transition: 0.6s clip-path;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%; }\n .spark-voverlap__img.active {\n clip-path: inset(0 0 100% 0); }\n .spark-voverlap__content {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n padding-top: 7%;\n padding-bottom: 7%;\n width: 100%; }\n .spark-voverlap__content .voverlap-content-item {\n transition: 0.4s opacity; }\n @media (min-width: 992px) {\n .spark-voverlap__content .voverlap-content-item {\n opacity: 0.2; } }\n .spark-voverlap__content .voverlap-content-item.active {\n opacity: 1; }\n");function Cf(t){var n=t.button,r=t.children,i=t.isOpen,o=void 0!==i&&i,s=t.withOverlay,a=void 0!==s&&s,u=t.closeOnOverlayClick,l=void 0===u||u,c=t.menuClass,h=void 0===c?"":c,f=t.bodyClass,p=void 0===f?"":f,d=t.overlayClass,m=void 0===d?"":d,v=t.alignment,g=void 0===v?"left":v,y=t.onClose,_=n?e.cloneElement(n,{className:"spark-menu__btn"}):null;return e.createElement("div",{className:"spark-menu ".concat("right"===g?"is-right":""," ").concat(o?"is-open":""," ").concat(h)},_,e.createElement(_h,null,o&&e.createElement(e.Fragment,null,e.createElement(fh.div,{className:"spark-menu__body ".concat(p),initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:{ease:"anticipate",scale:{duration:.3,delay:.2},opacity:{duration:.25,delay:.2}}},exit:{scale:0,opacity:0,transition:{scale:{duration:.3},opacity:{duration:.25}}},key:"body"},e.createElement(fh.div,{initial:{opacity:0,y:"50%"},animate:{opacity:1,y:0,transition:{ease:"easeInOut",duration:.5,delay:.6}},exit:{opacity:0,transition:{duration:.1,delay:0}}},r)),a&&e.createElement(fh.div,{className:"spark-menu__overlay ".concat(m),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{opacity:{delay:.4}}},onClick:l?function(){return y(!1)}:void 0,style:{cursor:l?"pointer":"default"}}))))}_("/* Breakpoints */\n.spark-menu {\n position: relative;\n z-index: 1; }\n .spark-menu.is-open {\n z-index: 900; }\n .spark-menu.is-right .spark-menu__body {\n left: auto;\n right: calc(2rem * -1);\n transform-origin: right top; }\n .spark-menu__btn {\n position: relative;\n z-index: 3; }\n .spark-menu__body {\n border-radius: 2.625rem;\n background: rgba(245, 245, 245, 0.8);\n -webkit-backdrop-filter: blur(0.4rem);\n backdrop-filter: blur(0.4rem);\n box-sizing: border-box;\n transform: translateZ(0);\n transform-origin: left top;\n overflow: hidden;\n position: absolute;\n left: calc(2rem * -1);\n top: calc(2rem * -1);\n padding: 6rem 2rem 2rem;\n width: 30.25rem;\n z-index: 2; }\n @media (max-width: 992px) {\n .spark-menu__body {\n left: calc((2rem / 4) * -1);\n right: calc((2rem / 4) * -1);\n width: auto; } }\n .spark-menu__overlay {\n background-color: rgba(0, 0, 0, 0.2);\n transform: translateZ(0);\n position: fixed;\n left: 0;\n top: 0;\n inset: 0;\n z-index: 1; }\n");var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});var Of=e;function Df(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Rf=Df(Of);!function(t){if(!t||"undefined"==typeof window)return;const e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), transparent);\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');const Lf=Of.forwardRef((function({style:t={},className:e="",autoFill:n=!1,play:r=!0,pauseOnHover:i=!1,pauseOnClick:o=!1,direction:s="left",speed:a=50,delay:u=0,loop:l=0,gradient:c=!1,gradientColor:h="white",gradientWidth:f=200,onFinish:p,onCycleComplete:d,onMount:m,children:v},g){const[y,_]=Of.useState(0),[x,b]=Of.useState(0),[w,T]=Of.useState(1),[k,E]=Of.useState(!1),P=Of.useRef(null),S=g||P,A=Of.useRef(null),C=Of.useCallback((()=>{if(A.current&&S.current){const t=S.current.getBoundingClientRect(),e=A.current.getBoundingClientRect();let r=t.width,i=e.width;"up"!==s&&"down"!==s||(r=t.height,i=e.height),T(n&&r&&i&&i<r?Math.ceil(r/i):1),_(r),b(i)}}),[n,S,s]);Of.useEffect((()=>{if(k&&(C(),A.current&&S.current)){const t=new ResizeObserver((()=>C()));return t.observe(S.current),t.observe(A.current),()=>{t&&t.disconnect()}}}),[C,S,k]),Of.useEffect((()=>{C()}),[C,v]),Of.useEffect((()=>{E(!0)}),[]),Of.useEffect((()=>{"function"==typeof m&&m()}),[]);const M=Of.useMemo((()=>n?x*w/a:x<y?y/a:x/a),[n,y,x,w,a]),O=Of.useMemo((()=>Object.assign(Object.assign({},t),{"--pause-on-hover":!r||i?"paused":"running","--pause-on-click":!r||i&&!o||o?"paused":"running","--width":"up"===s||"down"===s?"100vh":"100%","--transform":"up"===s?"rotate(-90deg)":"down"===s?"rotate(90deg)":"none"})),[t,r,i,o,s]),D=Of.useMemo((()=>({"--gradient-color":h,"--gradient-width":"number"==typeof f?`${f}px`:f})),[h,f]),R=Of.useMemo((()=>({"--play":r?"running":"paused","--direction":"left"===s?"normal":"reverse","--duration":`${M}s`,"--delay":`${u}s`,"--iteration-count":l?`${l}`:"infinite","--min-width":n?"auto":"100%"})),[r,s,M,u,l,n]),L=Of.useMemo((()=>({"--transform":"up"===s?"rotate(90deg)":"down"===s?"rotate(-90deg)":"none"})),[s]),V=Of.useCallback((t=>[...Array(Number.isFinite(t)&&t>=0?t:0)].map(((t,e)=>Rf.default.createElement(Of.Fragment,{key:e},Of.Children.map(v,(t=>Rf.default.createElement("div",{style:L,className:"rfm-child"},t))))))),[L,v]);return k?Rf.default.createElement("div",{ref:S,style:O,className:"rfm-marquee-container "+e},c&&Rf.default.createElement("div",{style:D,className:"rfm-overlay"}),Rf.default.createElement("div",{className:"rfm-marquee",style:R,onAnimationIteration:d,onAnimationEnd:p},Rf.default.createElement("div",{className:"rfm-initial-child-container",ref:A},Of.Children.map(v,(t=>Rf.default.createElement("div",{style:L,className:"rfm-child"},t)))),V(w-1)),Rf.default.createElement("div",{className:"rfm-marquee",style:R},V(w))):null}));var Vf=Mf.default=Lf;function jf(t){var n=t.children,i=t.bottomDirection,o=void 0===i?"left":i,a=t.topDirection,u=void 0===a?"right":a,l=t.speed,c=void 0===l?50:l,h=t.pauseOnHover,f=void 0!==h&&h,d=t.containerClass,m=void 0===d?"":d,v=t.ribbonClass,g=void 0===v?"":v,y=r(null),_=r(null),x=p(0),b=x[0],w=x[1],T=bf(),k=T.windowHeight,E=T.windowWidth;return s((function(){var t=new ResizeObserver((function(){var t,e;w(null!==(e=null===(t=_.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:0)}));return t.observe(null==_?void 0:_.current),y.current&&function(){var t,e=null===(t=_.current)||void 0===t?void 0:t.getBoundingClientRect();y.current&&(y.current.style.height=(null==e?void 0:e.height)+"px")}(),function(){t.disconnect()}}),[b,k,E]),e.createElement("div",{className:"spark-ribbons ".concat(m),ref:y},e.createElement("div",{className:"spark-ribbon ".concat(g),ref:_},e.createElement(Vf,{direction:o,speed:c,pauseOnHover:f,gradient:!1,autoFill:!0},n)),e.createElement("div",{className:"spark-ribbon ".concat(g&&g)},e.createElement(Vf,{direction:u,speed:c,pauseOnHover:f,gradient:!1,autoFill:!0},n)))}_("/* Breakpoints */\n.spark-ribbons {\n position: relative;\n overflow: hidden;\n width: 100%; }\n\n.spark-ribbon {\n background: rgba(255, 255, 255, 0.5);\n backdrop-filter: blur(0.5rem);\n padding: 1.5rem 0;\n position: absolute;\n left: 50%;\n top: 50%;\n width: 105%;\n will-change: transform; }\n @media (max-width: 992px) {\n .spark-ribbon {\n width: 108%; } }\n .spark-ribbon:nth-child(1) {\n transform: translate(-50%, -50%) translateZ(0) rotate(11deg);\n z-index: 1; }\n .spark-ribbon:nth-child(2) {\n transform: translate(-50%, -50%) translateZ(0) rotate(-11deg);\n z-index: 2; }\n .spark-ribbon .rfm-marquee-container,\n .spark-ribbon .rfm-marquee {\n will-change: transform;\n transform: translateZ(0); }\n .spark-ribbon .rfm-marquee {\n overflow: hidden; }\n");export{x as Button,xh as ElasticButton,Pf as HPin,li as MagneticButton,Cf as Menu,jf as Ribbons,Ef as TextReader,kf as TextReveal,Af as VOverlap,Sf as VPin,wf as useDocumentHeight,vf as useIsomorphicLayoutEffect,gf as useMediaQuery,bf as useWindowSize};
|
|
1
|
+
import n,{forwardRef as e,useRef as t,useState as r,useLayoutEffect as i,useEffect as a}from"react";import o,{gsap as l}from"gsap";import{AnimatePresence as c,motion as s}from"framer-motion";import{ScrollTrigger as d}from"gsap/dist/ScrollTrigger";import p from"split-type";import{throttle as u}from"lodash";import v from"react-fast-marquee";var m=function(){return m=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},m.apply(this,arguments)};function f(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]])}return t}function g(n,e){void 0===e&&(e={});var t=e.insertAt;if(n&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}"function"==typeof SuppressedError&&SuppressedError;g(".spark-button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-align: center;\n text-decoration: none;\n transition: 0.3s color, 0.3s background-color;\n}\n.spark-button:hover {\n background-color: black;\n color: white;\n}");var h=e((function(e,t){var r=e.children,i=e.className,a=void 0===i?"":i,o=e.as,l=void 0===o?"button":o,c=f(e,["children","className","as"]);return n.createElement(l,m({ref:t,className:"spark-button ".concat(a)},c),r)}));g(".spark-magnetic {\n display: inline-block;\n position: relative;\n}");var k=e((function(e,r){var i=e.children,a=e.className,l=void 0===a?"":a,c=e.button,s=e.movement,d=void 0===s?.5:s,p=f(e,["children","className","button","movement"]),u=t(null),v=t(null),g=c?n.cloneElement(c,m({ref:v},p)):n.createElement(h,m({ref:v},p),i);return n.createElement("div",{className:"spark-magnetic ".concat(l),ref:u,onMouseMove:function(n){var e=u.current;if(e){var t=e.getBoundingClientRect(),r=n.pageX-t.left,i=n.pageY-t.top,a=window.scrollY||document.documentElement.scrollTop;o.to(v.current,{duration:.3,x:(r-t.width/2)*d,y:(i-t.height/2-a)*d,ease:"expo.out"})}},onMouseOut:function(){o.to(v.current,{duration:.4,x:0,y:0,ease:"elastic.out(1, 0.5)"})}},g)}));g(".spark-elastic {\n background-color: transparent;\n border: 0 none;\n margin: 0;\n padding: 0;\n}\n.spark-elastic > div {\n height: 100%;\n}\n.spark-elastic__stack {\n display: flex;\n}\n.spark-elastic__button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-decoration: none;\n}\n.spark-elastic__icon {\n border-radius: 100%;\n box-shadow: 0 0 0 1px inset black;\n height: 100%;\n width: 3.35rem;\n}");var b=e((function(e,t){var i=e.children,a=e.className,o=void 0===a?"":a,l=e.as,d=void 0===l?"button":l,p=e.button,u=e.icon,v=void 0===u?n.createElement("div",{className:"spark-elastic__icon"}):u,g=f(e,["children","className","as","button","icon"]),h=r(!1),k=h[0],b=h[1],y=function(){return v},w=p?n.cloneElement(p):n.createElement("div",{className:"spark-elastic__button"},i);return n.createElement(d,m({ref:t,className:"spark-elastic ".concat(o)},g),n.createElement("div",{className:"spark-elastic__stack",onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},n.createElement(c,{mode:"wait"},n.createElement(s.div,{key:k?"hover":"idle",initial:{x:20},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},k&&n.createElement(y,null))),n.createElement(c,{mode:"wait"},n.createElement(s.div,{key:k?"hover":"idle",initial:{x:20},animate:{x:0},transition:{duration:.3,ease:"circOut"}},w)),n.createElement(c,{mode:"wait"},n.createElement(s.div,{key:k?"hover":"idle",initial:{x:10},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},!k&&n.createElement(y,null)))))}));g(".spark-text-reveal {\n opacity: 0;\n}\n.spark-text-reveal__container {\n overflow: hidden;\n}\n.spark-text-reveal__content {\n transform: translate(0, 100%) rotate(10deg);\n transform-origin: left;\n}");var y="undefined"!=typeof window?i:a;function w(n){var e=r(!1),t=e[0],i=e[1];return a((function(){var e=window.matchMedia(n);function t(){i(e.matches)}return e.addEventListener("change",t,!1),t(),function(){return e.removeEventListener("change",t,!1)}}),[n]),t}var x=function(){var n=r(0),e=n[0],t=n[1],i=r(0),a=i[0],o=i[1];return y((function(){var n=u((function(){t(window.innerWidth),o(window.innerHeight)}),50);return window.addEventListener("resize",n),window.addEventListener("change",n),n(),function(){window.removeEventListener("resize",n),window.removeEventListener("change",n)}}),[]),{windowWidth:e,windowHeight:a}},_=function(){var n=r(0),e=n[0],t=n[1];return y((function(){var n=document.documentElement,e=function(){t(n.offsetHeight)},r=u(e,50),i=new ResizeObserver((function(n){return e()}));return i.observe(n),n.addEventListener("resize",r),n.addEventListener("change",r),r(),function(){n.addEventListener("resize",r),n.addEventListener("change",r),i.disconnect()}}),[]),e},E=992;function N(e){var r=e.children,i=e.duration,a=void 0===i?3:i,o=e.start,c=void 0===o?"top 90%":o,s=e.scrub,u=void 0!==s&&s,v=e.toggleActions,m=void 0===v?"play none none none":v,f=e.delay,g=void 0===f?0:f,h=t(null),k=x().windowWidth,b=w("(min-width: ".concat(E,"px)"));return y((function(){var n=null,e=null;return l.registerPlugin(d),n=l.context((function(){e=setTimeout((function(){var n;!function(){var n;p.create(null!==(n=h.current)&&void 0!==n?n:"",{types:"lines",tagName:"div"})}();var e=null===(n=h.current)||void 0===n?void 0:n.querySelectorAll(".line"),t=l.timeline();t.to(h.current,{opacity:1,duration:0,delay:g}),d.create({trigger:h.current,start:c,toggleActions:m,scrub:u,animation:t}),e&&e.forEach((function(n){var e,r=document.createElement("div");r.classList.add("spark-text-reveal__container"),r.append(n),null===(e=null==h?void 0:h.current)||void 0===e||e.append(r),n.classList.add("spark-text-reveal__content"),t.to(n,{duration:a,y:0,rotate:0,ease:"expo.out"},">-90%")}))}),500)}),h),function(){d.killAll(),n&&(n.revert(),n=null),e&&(clearTimeout(e),e=null)}}),[k,b]),n.createElement("div",{className:"spark-text-reveal",ref:h},r)}function O(e){var r=e.text,i=e.textColor,a=void 0===i?"black":i,o=e.textColorIdle,c=void 0===o?"rgba(0, 0, 0, 0.5)":o,s=e.pin,u=void 0===s||s,v=e.pinRef,m=e.start,f=void 0===m?"top 30%":m,g=e.end,h=void 0===g?"bottom top":g,k=e.responsive,b=void 0===k||k,_=e.withMask,N=void 0!==_&&_,O=e.highlight,C=void 0!==O&&O,z=e.highlightColor,L=void 0===z?"":z,S=e.onComplete,A=t(null),B=w("(min-width: ".concat(E,"px)")),H=x().windowWidth;return y((function(){var n=null;return A.current&&(A.current.style.opacity="1"),l.registerPlugin(d),(B||b)&&(!function(){var n,e,t;if(N){var r=p.create(null!==(n=A.current)&&void 0!==n?n:"",{types:"lines",tagName:"span",lineClass:"line ".concat(C?"highlight":"")});(B||b)&&(null===(e=r.lines)||void 0===e||e.forEach((function(n){n.style.backgroundImage="linear-gradient(to right, ".concat(C?L:a," 0%, \n ").concat(C?L:a," 50%, ").concat(c," 50%, ").concat(c," 100%)")})))}else p.create(null!==(t=A.current)&&void 0!==t?t:"",{types:"words",tagName:"span"})}(),n=l.context((function(){var n,e;if(N){var t=null===(n=A.current)||void 0===n?void 0:n.querySelectorAll(".line"),r=l.timeline();null==t||t.forEach((function(n){C&&(n.style.display="inline-block",n.style.width="auto",n.style.color=a),r.to(n,{backgroundPosition:"0% 0%"})})),r.to(A.current,{z:0,duration:1}),d.create({trigger:v.current,start:f,end:h,pin:!!u&&(!v.current||v.current),scrub:1,animation:r,invalidateOnRefresh:!0,onUpdate:function(n){var e=n.progress,t=n.direction;S&&S(e>=1&&1===t)}})}else{var i=null===(e=A.current)||void 0===e?void 0:e.querySelectorAll(".word"),o=l.timeline();null==i||i.forEach((function(n){o.to(n,{opacity:1})})),o.to(A.current,{z:0,duration:1}),d.create({trigger:v.current,start:f,end:h,pin:!!u&&(!v.current||v.current),scrub:1,animation:o,invalidateOnRefresh:!0,onUpdate:function(n){var e=n.progress,t=n.direction;S&&S(e>=1&&1===t)}})}}),A)),function(){n&&n.revert()}}),[B,v.current,H]),n.createElement("p",{className:"spark-text-reader ".concat(b?void 0:"showOnMobile"),ref:A},r)}g("/* Breakpoints */\n.spark-text-reader {\n opacity: 0;\n overflow: hidden;\n}\n.spark-text-reader .word {\n opacity: 0;\n}\n.spark-text-reader .line {\n background-size: 200% 100%;\n background-position: 100% 0%;\n}\n.spark-text-reader .line:not(.highlight) {\n background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n@media (max-width: 992px) {\n .spark-text-reader.showOnMobile .word {\n opacity: 1;\n }\n}\n@media (max-width: 992px) {\n .spark-text-reader.showOnMobile .line:not(.highlight) {\n -webkit-text-fill-color: currentColor;\n }\n}");function C(e){var r=e.children,i=e.triggerRef,a=e.pin,o=void 0===a||a,c=e.scrub,s=void 0===c?.3:c,p=e.start,u=void 0===p?"center center":p,v=e.end,m=void 0===v?"bottom top":v,f=e.markers,g=void 0!==f&&f,h=e.spacing,k=void 0===h?"1rem":h,b=e.sideSpacing,N=void 0===b?"0":b,O=e.startPos,C=void 0===O?"20%":O,z=e.endPos,L=void 0===z?1.1:z,S=t(null),A=w("(min-width: ".concat(E,"px)")),B=x().windowWidth,H=_();return y((function(){if(l.registerPlugin(d),A){var n=l.context((function(){var n,e,t=l.timeline(),r=null!==(e=null===(n=S.current)||void 0===n?void 0:n.scrollWidth)&&void 0!==e?e:"90%",a=B-Number(r)*L;t.fromTo(S.current,{x:C},{x:a}),d.create({trigger:(null==i?void 0:i.current)?i.current:S.current,start:u,end:m,pin:o,scrub:s,animation:t,markers:g})}),S);return function(){n&&n.revert()}}}),[A,B,H]),n.createElement("div",{className:"spark-hpin",ref:S,style:{gap:k,margin:"0 calc(".concat(A?0:N," * -1)"),padding:"0 ".concat(A?0:N)}},r)}g("/* Breakpoints */\n.spark-hpin {\n display: flex;\n gap: 1rem;\n white-space: nowrap;\n overflow-x: auto;\n margin: 0;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n.spark-hpin::-webkit-scrollbar {\n display: none;\n}\n@media (min-width: 992px) {\n .spark-hpin {\n white-space: normal;\n overflow-x: visible;\n }\n}");function z(e){var t=e.children,r=e.items,i=e.itemsSpacing,a=void 0===i?"1rem":i,o=e.contentGap,l=void 0===o?"2rem":o,c=e.topGap,s=void 0===c?"6.25rem":c,d=f(e,["children","items","itemsSpacing","contentGap","topGap"]);return n.createElement("div",m({className:"spark-vpin",style:{gap:l}},d),n.createElement("div",{className:"spark-vpin__pin",style:{top:s}},t),n.createElement("div",{className:"spark-vpin__items",style:{gap:a}},r))}g("/* Breakpoints */\n.spark-vpin {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n@media (min-width: 992px) {\n .spark-vpin {\n flex-direction: row;\n }\n}\n.spark-vpin__pin {\n height: 100%;\n}\n@media (min-width: 992px) {\n .spark-vpin__pin {\n position: sticky;\n }\n}\n.spark-vpin__items {\n display: flex;\n flex-direction: column;\n}");function L(e){var i=e.images,o=e.content,c=e.imagesWrapperClass,s=void 0===c?"spark-voverlap-img-wrapper":c,p=e.contentImgClass,u=void 0===p?"voverlap-content-img":p,v=e.start,m=void 0===v?"top 70%":v,f=e.gap,g=void 0===f?[288,80]:f,h=t(null),k=t(null),b=r(0),_=b[0],N=b[1],O=x().windowWidth,C=w("(min-width: ".concat(E,"px)"));return y((function(){var n=null,e=null;if(l.registerPlugin(d),C){var t=k.current;t&&(t.style.top="calc((100% - ".concat(t.clientHeight,"px) / 2)")),n=l.context((function(){var n,t=document.documentElement;(e=new ResizeObserver((function(){N(t.scrollHeight)}))).observe(t);var r=null===(n=null==h?void 0:h.current)||void 0===n?void 0:n.querySelectorAll(".voverlap-content-item");null==r||r.forEach((function(n,e){var t,i=null===(t=null==h?void 0:h.current)||void 0===t?void 0:t.querySelectorAll(".spark-voverlap-img")[e];d.create({trigger:n,id:"slide-".concat(e+1),start:m,end:function(){return"+=".concat(n.clientHeight+g[0])},toggleActions:"play reverse none reverse",toggleClass:{targets:n,className:"active"},invalidateOnRefresh:!0,onLeave:function(){e+1!==r.length&&i.classList.add("active")},onEnterBack:function(){i.classList.remove("active")}})}))}),h)}return function(){n&&(n.revert(),null==e||e.disconnect())}}),[C,O,_]),a((function(){var n=document.querySelectorAll(".".concat(u));C?n.forEach((function(n){n.style.display="none"})):n.forEach((function(n){n.style.display="block"}))}),[C]),n.createElement("div",{className:"spark-voverlap",ref:h},C&&n.createElement("div",{className:"spark-voverlap__aside",ref:k},i.length&&n.createElement("div",{className:"spark-voverlap__img-wrapper ".concat(s)},i.map((function(e,t){return n.createElement("img",{className:"spark-voverlap__img spark-voverlap-img",src:e.url,alt:e.alt?e.alt:"",key:t,style:{zIndex:i.length-t}})})))),o&&n.createElement("div",{className:"spark-voverlap__content",style:{gap:"".concat(C?g[0]:g[1],"px")}},o.map((function(e,t){return n.createElement("div",{className:"voverlap-content-item",key:t},e)}))))}g("/* Breakpoints */\n.spark-voverlap {\n display: flex;\n flex-direction: row;\n gap: 6.25rem;\n}\n@media (max-width: 992px) {\n .spark-voverlap {\n flex-direction: column;\n }\n}\n.spark-voverlap__aside {\n max-width: 31.25rem;\n position: sticky;\n top: 0;\n height: 100%;\n width: 100%;\n}\n.spark-voverlap__img-wrapper {\n height: 21.875rem;\n}\n.spark-voverlap__img {\n border-radius: 1.5rem;\n clip-path: inset(0 0 0 0);\n object-fit: cover;\n transition: 0.6s clip-path;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n}\n.spark-voverlap__img.active {\n clip-path: inset(0 0 100% 0);\n}\n.spark-voverlap__content {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n padding-top: 7%;\n padding-bottom: 7%;\n width: 100%;\n}\n.spark-voverlap__content .voverlap-content-item {\n transition: 0.4s opacity;\n}\n@media (min-width: 992px) {\n .spark-voverlap__content .voverlap-content-item {\n opacity: 0.2;\n }\n}\n.spark-voverlap__content .voverlap-content-item.active {\n opacity: 1;\n}");function S(e){var t=e.button,r=e.children,i=e.isOpen,a=void 0!==i&&i,o=e.withOverlay,l=void 0!==o&&o,d=e.closeOnOverlayClick,p=void 0===d||d,u=e.menuClass,v=void 0===u?"":u,m=e.bodyClass,f=void 0===m?"":m,g=e.overlayClass,h=void 0===g?"":g,k=e.alignment,b=void 0===k?"left":k,y=e.onClose,w=t?n.cloneElement(t,{className:"spark-menu__btn"}):null;return n.createElement("div",{className:"spark-menu ".concat("right"===b?"is-right":""," ").concat(a?"is-open":""," ").concat(v)},w,n.createElement(c,null,a&&n.createElement(n.Fragment,null,n.createElement(s.div,{className:"spark-menu__body ".concat(f),initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:{ease:"anticipate",scale:{duration:.3,delay:.2},opacity:{duration:.25,delay:.2}}},exit:{scale:0,opacity:0,transition:{scale:{duration:.3},opacity:{duration:.25}}},key:"body"},n.createElement(s.div,{initial:{opacity:0,y:"50%"},animate:{opacity:1,y:0,transition:{ease:"easeInOut",duration:.5,delay:.6}},exit:{opacity:0,transition:{duration:.1,delay:0}}},r)),l&&n.createElement(s.div,{className:"spark-menu__overlay ".concat(h),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{opacity:{delay:.4}}},onClick:p?function(){return y(!1)}:void 0,style:{cursor:p?"pointer":"default"}}))))}g("/* Breakpoints */\n.spark-menu {\n position: relative;\n z-index: 1;\n}\n.spark-menu.is-open {\n z-index: 900;\n}\n.spark-menu.is-right .spark-menu__body {\n left: auto;\n right: calc(2rem * -1);\n transform-origin: right top;\n}\n.spark-menu__btn {\n position: relative;\n z-index: 3;\n}\n.spark-menu__body {\n border-radius: 2.625rem;\n background: rgba(245, 245, 245, 0.8);\n -webkit-backdrop-filter: blur(0.4rem);\n backdrop-filter: blur(0.4rem);\n box-sizing: border-box;\n transform: translateZ(0);\n transform-origin: left top;\n overflow: hidden;\n position: absolute;\n left: calc(2rem * -1);\n top: calc(2rem * -1);\n padding: 6rem 2rem 2rem;\n width: 30.25rem;\n z-index: 2;\n}\n@media (max-width: 992px) {\n .spark-menu__body {\n left: calc(2rem / 4 * -1);\n right: calc(2rem / 4 * -1);\n width: auto;\n }\n}\n.spark-menu__overlay {\n background-color: rgba(0, 0, 0, 0.2);\n transform: translateZ(0);\n position: fixed;\n left: 0;\n top: 0;\n inset: 0;\n z-index: 1;\n}");function A(e){var i=e.children,o=e.bottomDirection,l=void 0===o?"left":o,c=e.topDirection,s=void 0===c?"right":c,d=e.speed,p=void 0===d?50:d,u=e.pauseOnHover,m=void 0!==u&&u,f=e.containerClass,g=void 0===f?"":f,h=e.ribbonClass,k=void 0===h?"":h,b=t(null),y=t(null),w=r(0),_=w[0],E=w[1],N=x(),O=N.windowHeight,C=N.windowWidth;return a((function(){var n=new ResizeObserver((function(){var n,e;E(null!==(e=null===(n=y.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:0)}));return n.observe(null==y?void 0:y.current),b.current&&function(){var n,e=null===(n=y.current)||void 0===n?void 0:n.getBoundingClientRect();b.current&&(b.current.style.height=(null==e?void 0:e.height)+"px")}(),function(){n.disconnect()}}),[_,O,C]),n.createElement("div",{className:"spark-ribbons ".concat(g),ref:b},n.createElement("div",{className:"spark-ribbon ".concat(k),ref:y},n.createElement(v,{direction:l,speed:p,pauseOnHover:m,gradient:!1,autoFill:!0},i)),n.createElement("div",{className:"spark-ribbon ".concat(k&&k)},n.createElement(v,{direction:s,speed:p,pauseOnHover:m,gradient:!1,autoFill:!0},i)))}g("/* Breakpoints */\n.spark-ribbons {\n position: relative;\n overflow: hidden;\n width: 100%;\n}\n\n.spark-ribbon {\n background: rgba(255, 255, 255, 0.5);\n backdrop-filter: blur(0.5rem);\n padding: 1.5rem 0;\n position: absolute;\n left: 50%;\n top: 50%;\n width: 105%;\n will-change: transform;\n}\n@media (max-width: 992px) {\n .spark-ribbon {\n width: 108%;\n }\n}\n.spark-ribbon:nth-child(1) {\n transform: translate(-50%, -50%) translateZ(0) rotate(11deg);\n z-index: 1;\n}\n.spark-ribbon:nth-child(2) {\n transform: translate(-50%, -50%) translateZ(0) rotate(-11deg);\n z-index: 2;\n}\n.spark-ribbon .rfm-marquee-container,\n.spark-ribbon .rfm-marquee {\n will-change: transform;\n transform: translateZ(0);\n}\n.spark-ribbon .rfm-marquee {\n overflow: hidden;\n}");export{h as Button,b as ElasticButton,C as HPin,k as MagneticButton,S as Menu,A as Ribbons,O as TextReader,N as TextReveal,L as VOverlap,z as VPin,_ as useDocumentHeight,y as useIsomorphicLayoutEffect,w as useMediaQuery,x as useWindowSize};
|
|
48
2
|
//# sourceMappingURL=index.js.map
|