@julien-wiegandt/open-ui 0.3.0 → 0.3.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/README.md +514 -0
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/utils/use-auto-contrast-color.d.ts +2 -0
- package/dist/open-ui.js +3225 -3327
- package/dist/open-ui.umd.cjs +74 -74
- package/package.json +1 -1
package/dist/open-ui.umd.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(z,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],k):(z=typeof globalThis<"u"?globalThis:z||self,k(z["open-ui"]={},z.jsxRuntime,z.React,z.ReactDOM))})(this,(function(z,k,x,Xi){"use strict";function $t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Os(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*!
|
|
2
2
|
* GSAP 3.13.0
|
|
3
3
|
* https://gsap.com
|
|
4
4
|
*
|
|
5
5
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
6
|
* Subject to the terms at https://gsap.com/standard-license
|
|
7
7
|
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
-
*/var Qe={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Nr={duration:.5,overwrite:!1,delay:0},Hi,De,pe,lt=1e8,le=1/lt,Vi=Math.PI*2,su=Vi/4,au=0,As=Math.sqrt,lu=Math.cos,cu=Math.sin,Me=function(e){return typeof e=="string"},_e=function(e){return typeof e=="function"},Nt=function(e){return typeof e=="number"},ji=function(e){return typeof e>"u"},Et=function(e){return typeof e=="object"},je=function(e){return e!==!1},Ui=function(){return typeof window<"u"},qn=function(e){return _e(e)||Me(e)},Ds=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ne=Array.isArray,Gi=/(?:-?\.?\d|\.)+/gi,Rs=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,zr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,qi=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,$s=/[+-]=-?[.\d]+/,Ls=/[^,'"\[\]\s]+/gi,uu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ge,Mt,Ki,Qi,Ze={},Kn={},Is,Ns=function(e){return(Kn=Br(e,Ze))&&qe},Zi=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},gn=function(e,t){return!t&&console.warn(e)},zs=function(e,t){return e&&(Ze[e]=t)&&Kn&&(Kn[e]=t)||Ze},mn=function(){return 0},fu={suppressEvents:!0,isStart:!0,kill:!1},Qn={suppressEvents:!0,kill:!1},du={suppressEvents:!0},Ji={},Ut=[],eo={},Fs,Je={},to={},Bs=30,Zn=[],ro="",no=function(e){var t=e[0],r,i;if(Et(t)||_e(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=Zn.length;i--&&!Zn[i].targetTest(t););r=Zn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new ga(e[i],r)))||e.splice(i,1);return e},cr=function(e){return e._gsap||no(ut(e))[0]._gsap},Ys=function(e,t,r){return(r=e[t])&&_e(r)?e[t]():ji(r)&&e.getAttribute&&e.getAttribute(t)||r},Ue=function(e,t){return(e=e.split(",")).forEach(t)||e},ye=function(e){return Math.round(e*1e5)/1e5||0},Se=function(e){return Math.round(e*1e7)/1e7||0},Fr=function(e,t){var r=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},hu=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++i<r;);return i<r},Jn=function(){var e=Ut.length,t=Ut.slice(0),r,i;for(eo={},Ut.length=0,r=0;r<e;r++)i=t[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},io=function(e){return!!(e._initted||e._startAt||e.add)},Ws=function(e,t,r,i){Ut.length&&!De&&Jn(),e.render(t,r,!!(De&&t<0&&io(e))),Ut.length&&!De&&Jn()},Xs=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(Ls).length<2?t:Me(e)?e.trim():e},Hs=function(e){return e},et=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},pu=function(e){return function(t,r){for(var i in r)i in t||i==="duration"&&e||i==="ease"||(t[i]=r[i])}},Br=function(e,t){for(var r in t)e[r]=t[r];return e},Vs=function n(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Et(t[r])?n(e[r]||(e[r]={}),t[r]):t[r]);return e},ei=function(e,t){var r={},i;for(i in e)i in t||(r[i]=e[i]);return r},_n=function(e){var t=e.parent||ge,r=e.keyframes?pu(Ne(e.keyframes)):et;if(je(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},gu=function(e,t){for(var r=e.length,i=r===t.length;i&&r--&&e[r]===t[r];);return r<0},js=function(e,t,r,i,o){var s=e[i],a;if(o)for(a=t[o];s&&s[o]>a;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[i]=t,t._prev=s,t.parent=t._dp=e,t},ti=function(e,t,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var o=t._prev,s=t._next;o?o._next=s:e[r]===t&&(e[r]=s),s?s._prev=o:e[i]===t&&(e[i]=o),t._next=t._prev=t.parent=null},Gt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ur=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},mu=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},oo=function(e,t,r,i){return e._startAt&&(De?e._startAt.revert(Qn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},_u=function n(e){return!e||e._ts&&n(e.parent)},Us=function(e){return e._repeat?Yr(e._tTime,e=e.duration()+e._rDelay)*e:0},Yr=function(e,t){var r=Math.floor(e=Se(e/t));return e&&r===e?r-1:r},ri=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},ni=function(e){return e._end=Se(e._start+(e._tDur/Math.abs(e._ts||e._rts||le)||0))},ii=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Se(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),ni(e),r._dirty||ur(r,e)),e},Gs=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=ri(e.rawTime(),t),(!t._dur||xn(0,t.totalDuration(),r)-t._tTime>le)&&t.render(r,!0)),ur(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-le}},Ot=function(e,t,r,i){return t.parent&&Gt(t),t._start=Se((Nt(r)?r:r||e!==ge?ct(e,r,t):e._time)+t._delay),t._end=Se(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),js(e,t,"_first","_last",e._sort?"_start":0),so(t)||(e._recent=t),i||Gs(e,t),e._ts<0&&ii(e,e._tTime),e},qs=function(e,t){return(Ze.ScrollTrigger||Zi("scrollTrigger",t))&&Ze.ScrollTrigger.create(t,e)},Ks=function(e,t,r,i,o){if(mo(e,t,o),!e._initted)return 1;if(!r&&e._pt&&!De&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Fs!==rt.frame)return Ut.push(e),e._lazy=[o,i],1},yu=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},so=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},xu=function(e,t,r,i){var o=e.ratio,s=t<0||!t&&(!e._start&&yu(e)&&!(!e._initted&&so(e))||(e._ts<0||e._dp._ts<0)&&!so(e))?0:1,a=e._rDelay,c=0,u,f,d;if(a&&e._repeat&&(c=xn(0,e._tDur,t),f=Yr(c,a),e._yoyo&&f&1&&(s=1-s),f!==Yr(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||De||i||e._zTime===le||!t&&e._zTime){if(!e._initted&&Ks(e,t,i,r,c))return;for(d=e._zTime,e._zTime=t||(r?le:0),r||(r=t&&!d),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=c,u=e._pt;u;)u.r(s,u.d),u=u._next;t<0&&oo(e,t,r,!0),e._onUpdate&&!r&&tt(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&tt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&Gt(e,1),!r&&!De&&(tt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},vu=function(e,t,r){var i;if(r>t)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<t)return i;i=i._prev}},Wr=function(e,t,r,i){var o=e._repeat,s=Se(t)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=o?o<0?1e10:Se(s*(o+1)+e._rDelay*o):s,a>0&&!i&&ii(e,e._tTime=e._tDur*a),e.parent&&ni(e),r||ur(e.parent,e),e},Qs=function(e){return e instanceof Xe?ur(e):Wr(e,e._dur)},wu={_start:0,endTime:mn,totalDuration:mn},ct=function n(e,t,r){var i=e.labels,o=e._recent||wu,s=e.duration()>=lt?o.endTime(!1):e._dur,a,c,u;return Me(t)&&(isNaN(t)||t in i)?(c=t.charAt(0),u=t.substr(-1)==="%",a=t.indexOf("="),c==="<"||c===">"?(a>=0&&(t=t.replace(/=/,"")),(c==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(a<0?o:r).totalDuration()/100:1)):a<0?(t in i||(i[t]=s),i[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),u&&r&&(c=c/100*(Ne(r)?r[0]:r).totalDuration()),a>1?n(e,t.substr(0,a-1),r)+c:s+c)):t==null?s:+t},yn=function(e,t,r){var i=Nt(t[1]),o=(i?2:1)+(e<2?0:1),s=t[o],a,c;if(i&&(s.duration=t[1]),s.parent=r,e){for(a=s,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=je(c.vars.inherit)&&c.parent;s.immediateRender=je(a.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new Ce(t[0],s,t[o+1])},qt=function(e,t){return e||e===0?t(e):t},xn=function(e,t,r){return r<e?e:r>t?t:r},ze=function(e,t){return!Me(e)||!(t=uu.exec(e))?"":t[1]},bu=function(e,t,r){return qt(r,function(i){return xn(e,t,i)})},ao=[].slice,Zs=function(e,t){return e&&Et(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Et(e[0]))&&!e.nodeType&&e!==Mt},Su=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return Me(i)&&!t||Zs(i,1)?(o=r).push.apply(o,ut(i)):r.push(i)})||r},ut=function(e,t,r){return pe&&!t&&pe.selector?pe.selector(e):Me(e)&&!r&&(Ki||!Hr())?ao.call((t||Qi).querySelectorAll(e),0):Ne(e)?Su(e,r):Zs(e)?ao.call(e,0):e?[e]:[]},lo=function(e){return e=ut(e)[0]||gn("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return ut(t,r.querySelectorAll?r:r===e?gn("Invalid scope")||Qi.createElement("div"):e)}},Js=function(e){return e.sort(function(){return .5-Math.random()})},ea=function(e){if(_e(e))return e;var t=Et(e)?e:{each:e},r=fr(t.ease),i=t.from||0,o=parseFloat(t.base)||0,s={},a=i>0&&i<1,c=isNaN(i)||a,u=t.axis,f=i,d=i;return Me(i)?f=d={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(f=i[0],d=i[1]),function(g,l,p){var h=(p||t).length,m=s[h],v,b,S,P,_,w,C,T,M;if(!m){if(M=t.grid==="auto"?0:(t.grid||[1,lt])[1],!M){for(C=-lt;C<(C=p[M++].getBoundingClientRect().left)&&M<h;);M<h&&M--}for(m=s[h]=[],v=c?Math.min(M,h)*f-.5:i%M,b=M===lt?0:c?h*d/M-.5:i/M|0,C=0,T=lt,w=0;w<h;w++)S=w%M-v,P=b-(w/M|0),m[w]=_=u?Math.abs(u==="y"?P:S):As(S*S+P*P),_>C&&(C=_),_<T&&(T=_);i==="random"&&Js(m),m.max=C-T,m.min=T,m.v=h=(parseFloat(t.amount)||parseFloat(t.each)*(M>h?h-1:u?u==="y"?h/M:M:Math.max(M,h/M))||0)*(i==="edges"?-1:1),m.b=h<0?o-h:o,m.u=ze(t.amount||t.each)||0,r=r&&h<0?da(r):r}return h=(m[g]-m.min)/m.max||0,Se(m.b+(r?r(h):h)*m.v)+m.u}},co=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Se(Math.round(parseFloat(r)/e)*e*t);return(i-i%1)/t+(Nt(r)?0:ze(r))}},ta=function(e,t){var r=Ne(e),i,o;return!r&&Et(e)&&(i=r=e.radius||lt,e.values?(e=ut(e.values),(o=!Nt(e[0]))&&(i*=i)):e=co(e.increment)),qt(t,r?_e(e)?function(s){return o=e(s),Math.abs(o-s)<=i?o:s}:function(s){for(var a=parseFloat(o?s.x:s),c=parseFloat(o?s.y:0),u=lt,f=0,d=e.length,g,l;d--;)o?(g=e[d].x-a,l=e[d].y-c,g=g*g+l*l):g=Math.abs(e[d]-a),g<u&&(u=g,f=d);return f=!i||u<=i?e[f]:s,o||f===s||Nt(s)?f:f+ze(s)}:co(e))},ra=function(e,t,r,i){return qt(Ne(e)?!t:r===!0?!!(r=0):!i,function(){return Ne(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*i)/i})},Cu=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduce(function(o,s){return s(o)},i)}},Tu=function(e,t){return function(r){return e(parseFloat(r))+(t||ze(r))}},ku=function(e,t,r){return ia(e,t,0,1,r)},na=function(e,t,r){return qt(r,function(i){return e[~~t(i)]})},Pu=function n(e,t,r){var i=t-e;return Ne(e)?na(e,n(0,e.length),t):qt(r,function(o){return(i+(o-e)%i)%i+e})},Eu=function n(e,t,r){var i=t-e,o=i*2;return Ne(e)?na(e,n(0,e.length-1),t):qt(r,function(s){return s=(o+(s-e)%o)%o||0,e+(s>i?o-s:s)})},vn=function(e){for(var t=0,r="",i,o,s,a;~(i=e.indexOf("random(",t));)s=e.indexOf(")",i),a=e.charAt(i+7)==="[",o=e.substr(i+7,s-i-7).match(a?Ls:Gi),r+=e.substr(t,i-t)+ra(a?o:+o[0],a?0:+o[1],+o[2]||1e-5),t=s+1;return r+e.substr(t,e.length-t)},ia=function(e,t,r,i,o){var s=t-e,a=i-r;return qt(o,function(c){return r+((c-e)/s*a||0)})},Mu=function n(e,t,r,i){var o=isNaN(e+t)?0:function(l){return(1-l)*e+l*t};if(!o){var s=Me(e),a={},c,u,f,d,g;if(r===!0&&(i=1)&&(r=null),s)e={p:e},t={p:t};else if(Ne(e)&&!Ne(t)){for(f=[],d=e.length,g=d-2,u=1;u<d;u++)f.push(n(e[u-1],e[u]));d--,o=function(p){p*=d;var h=Math.min(g,~~p);return f[h](p-h)},r=t}else i||(e=Br(Ne(e)?[]:{},e));if(!f){for(c in t)po.call(a,e,c,"get",t[c]);o=function(p){return xo(p,a)||(s?e.p:e)}}}return qt(r,o)},oa=function(e,t,r){var i=e.labels,o=lt,s,a,c;for(s in i)a=i[s]-t,a<0==!!r&&a&&o>(a=Math.abs(a))&&(c=s,o=a);return c},tt=function(e,t,r){var i=e.vars,o=i[t],s=pe,a=e._ctx,c,u,f;if(o)return c=i[t+"Params"],u=i.callbackScope||e,r&&Ut.length&&Jn(),a&&(pe=a),f=c?o.apply(u,c):o.call(u),pe=s,f},wn=function(e){return Gt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!De),e.progress()<1&&tt(e,"onInterrupt"),e},Xr,sa=[],aa=function(e){if(e)if(e=!e.name&&e.default||e,Ui()||e.headless){var t=e.name,r=_e(e),i=t&&!r&&e.init?function(){this._props=[]}:e,o={init:mn,render:xo,add:po,kill:Vu,modifier:Hu,rawVars:0},s={targetTest:0,get:0,getSetter:yo,aliases:{},register:0};if(Hr(),e!==i){if(Je[t])return;et(i,et(ei(e,o),s)),Br(i.prototype,Br(o,ei(e,s))),Je[i.prop=t]=i,e.targetTest&&(Zn.push(i),Ji[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}zs(t,i),e.register&&e.register(qe,i,Ge)}else sa.push(e)},ce=255,bn={aqua:[0,ce,ce],lime:[0,ce,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ce],navy:[0,0,128],white:[ce,ce,ce],olive:[128,128,0],yellow:[ce,ce,0],orange:[ce,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ce,0,0],pink:[ce,192,203],cyan:[0,ce,ce],transparent:[ce,ce,ce,0]},uo=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*ce+.5|0},la=function(e,t,r){var i=e?Nt(e)?[e>>16,e>>8&ce,e&ce]:0:bn.black,o,s,a,c,u,f,d,g,l,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),bn[e])i=bn[e];else if(e.charAt(0)==="#"){if(e.length<6&&(o=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+o+o+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ce,i&ce,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ce,e&ce]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(Gi),!t)c=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,o=f*2-s,i.length>3&&(i[3]*=1),i[0]=uo(c+1/3,o,s),i[1]=uo(c,o,s),i[2]=uo(c-1/3,o,s);else if(~e.indexOf("="))return i=e.match(Rs),r&&i.length<4&&(i[3]=1),i}else i=e.match(Gi)||bn.transparent;i=i.map(Number)}return t&&!p&&(o=i[0]/ce,s=i[1]/ce,a=i[2]/ce,d=Math.max(o,s,a),g=Math.min(o,s,a),f=(d+g)/2,d===g?c=u=0:(l=d-g,u=f>.5?l/(2-d-g):l/(d+g),c=d===o?(s-a)/l+(s<a?6:0):d===s?(a-o)/l+2:(o-s)/l+4,c*=60),i[0]=~~(c+.5),i[1]=~~(u*100+.5),i[2]=~~(f*100+.5)),r&&i.length<4&&(i[3]=1),i},ca=function(e){var t=[],r=[],i=-1;return e.split(Kt).forEach(function(o){var s=o.match(zr)||[];t.push.apply(t,s),r.push(i+=s.length+1)}),t.c=r,t},ua=function(e,t,r){var i="",o=(e+i).match(Kt),s=t?"hsla(":"rgba(",a=0,c,u,f,d;if(!o)return e;if(o=o.map(function(g){return(g=la(g,t,1))&&s+(t?g[0]+","+g[1]+"%,"+g[2]+"%,"+g[3]:g.join(","))+")"}),r&&(f=ca(e),c=r.c,c.join(i)!==f.c.join(i)))for(u=e.replace(Kt,"1").split(zr),d=u.length-1;a<d;a++)i+=u[a]+(~c.indexOf(a)?o.shift()||s+"0,0,0,0)":(f.length?f:o.length?o:r).shift());if(!u)for(u=e.split(Kt),d=u.length-1;a<d;a++)i+=u[a]+o[a];return i+u[d]},Kt=(function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in bn)n+="|"+e+"\\b";return new RegExp(n+")","gi")})(),Ou=/hsl[a]?\(/,fa=function(e){var t=e.join(" "),r;if(Kt.lastIndex=0,Kt.test(t))return r=Ou.test(t),e[1]=ua(e[1],r),e[0]=ua(e[0],r,ca(e[1])),!0},Sn,rt=(function(){var n=Date.now,e=500,t=33,r=n(),i=r,o=1e3/240,s=o,a=[],c,u,f,d,g,l,p=function h(m){var v=n()-i,b=m===!0,S,P,_,w;if((v>e||v<0)&&(r+=v-t),i+=v,_=i-r,S=_-s,(S>0||b)&&(w=++d.frame,g=_-d.time*1e3,d.time=_=_/1e3,s+=S+(S>=o?4:o-S),P=1),b||(c=u(h)),P)for(l=0;l<a.length;l++)a[l](_,g,w,m)};return d={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return g/(1e3/(m||60))},wake:function(){Is&&(!Ki&&Ui()&&(Mt=Ki=window,Qi=Mt.document||{},Ze.gsap=qe,(Mt.gsapVersions||(Mt.gsapVersions=[])).push(qe.version),Ns(Kn||Mt.GreenSockGlobals||!Mt.gsap&&Mt||{}),sa.forEach(aa)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&d.sleep(),u=f||function(m){return setTimeout(m,s-d.time*1e3+1|0)},Sn=1,p(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(c),Sn=0,u=mn},lagSmoothing:function(m,v){e=m||1/0,t=Math.min(v||33,e)},fps:function(m){o=1e3/(m||240),s=d.time*1e3+o},add:function(m,v,b){var S=v?function(P,_,w,C){m(P,_,w,C),d.remove(S)}:m;return d.remove(m),a[b?"unshift":"push"](S),Hr(),S},remove:function(m,v){~(v=a.indexOf(m))&&a.splice(v,1)&&l>=v&&l--},_listeners:a},d})(),Hr=function(){return!Sn&&rt.wake()},J={},Au=/^[\d.\-M][\d.\-,\s]/,Du=/["']/g,Ru=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),i=r[0],o=1,s=r.length,a,c,u;o<s;o++)c=r[o],a=o!==s-1?c.lastIndexOf(","):c.length,u=c.substr(0,a),t[i]=isNaN(u)?u.replace(Du,"").trim():+u,i=c.substr(a+1).trim();return t},$u=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",t);return e.substring(t,~i&&i<r?e.indexOf(")",r+1):r)},Lu=function(e){var t=(e+"").split("("),r=J[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Ru(t[1])]:$u(e).split(",").map(Xs)):J._CE&&Au.test(e)?J._CE("",e):r},da=function(e){return function(t){return 1-e(1-t)}},ha=function n(e,t){for(var r=e._first,i;r;)r instanceof Xe?n(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?n(r.timeline,t):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=t)),r=r._next},fr=function(e,t){return e&&(_e(e)?e:J[e]||Lu(e))||t},dr=function(e,t,r,i){r===void 0&&(r=function(c){return 1-t(1-c)}),i===void 0&&(i=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var o={easeIn:t,easeOut:r,easeInOut:i},s;return Ue(e,function(a){J[a]=Ze[a]=o,J[s=a.toLowerCase()]=r;for(var c in o)J[s+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=J[a+"."+c]=o[c]}),o},pa=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},fo=function n(e,t,r){var i=t>=1?t:1,o=(r||(e?.3:.45))/(t<1?t:1),s=o/Vi*(Math.asin(1/i)||0),a=function(f){return f===1?1:i*Math.pow(2,-10*f)*cu((f-s)*o)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:pa(a);return o=Vi/o,c.config=function(u,f){return n(e,u,f)},c},ho=function n(e,t){t===void 0&&(t=1.70158);var r=function(s){return s?--s*s*((t+1)*s+t)+1:0},i=e==="out"?r:e==="in"?function(o){return 1-r(1-o)}:pa(r);return i.config=function(o){return n(e,o)},i};Ue("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;dr(n+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),J.Linear.easeNone=J.none=J.Linear.easeIn,dr("Elastic",fo("in"),fo("out"),fo()),(function(n,e){var t=1/e,r=2*t,i=2.5*t,o=function(a){return a<t?n*a*a:a<r?n*Math.pow(a-1.5/e,2)+.75:a<i?n*(a-=2.25/e)*a+.9375:n*Math.pow(a-2.625/e,2)+.984375};dr("Bounce",function(s){return 1-o(1-s)},o)})(7.5625,2.75),dr("Expo",function(n){return Math.pow(2,10*(n-1))*n+n*n*n*n*n*n*(1-n)}),dr("Circ",function(n){return-(As(1-n*n)-1)}),dr("Sine",function(n){return n===1?1:-lu(n*su)+1}),dr("Back",ho("in"),ho("out"),ho()),J.SteppedEase=J.steps=Ze.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,i=e+(t?0:1),o=t?1:0,s=1-le;return function(a){return((i*xn(0,s,a)|0)+o)*r}}},Nr.ease=J["quad.out"],Ue("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return ro+=n+","+n+"Params,"});var ga=function(e,t){this.id=au++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Ys,this.set=t?t.getSetter:yo},Cn=(function(){function n(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,Wr(this,+t.duration,1,1),this.data=t.data,pe&&(this._ctx=pe,pe.data.push(this)),Sn||rt.wake()}var e=n.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Wr(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Hr(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(ii(this,r),!o._dp||o.parent||Gs(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Ot(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===le||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Ws(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Us(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Us(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*o,i):this._repeat?Yr(this._tTime,o)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-le?0:this._rts;if(this._rts===r)return this;var o=this.parent&&this._ts?ri(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-le?0:this._rts,this.totalTime(xn(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),ni(this),mu(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Hr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==le&&(this._tTime-=le)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Ot(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(je(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ri(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=du);var i=De;return De=r,io(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),De=i,this},e.globalTime=function(r){for(var i=this,o=arguments.length?r:i.rawTime();i;)o=i._start+o/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):o},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Qs(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,Qs(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(ct(this,r),je(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,je(i)),this._dur||(this._zTime=-le),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-le:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-le,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,o;return!!(!r||this._ts&&this._initted&&r.isActive()&&(o=r.rawTime(!0))>=i&&o<this.endTime(!0)-le)},e.eventCallback=function(r,i,o){var s=this.vars;return arguments.length>1?(i?(s[r]=i,o&&(s[r+"Params"]=o),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this;return new Promise(function(o){var s=_e(r)?r:Hs,a=function(){var u=i.then;i.then=null,_e(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=u),o(s),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){wn(this)},n})();et(Cn.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:-le,_prom:0,_ps:!1,_rts:1});var Xe=(function(n){Os(e,n);function e(r,i){var o;return r===void 0&&(r={}),o=n.call(this,r)||this,o.labels={},o.smoothChildTiming=!!r.smoothChildTiming,o.autoRemoveChildren=!!r.autoRemoveChildren,o._sort=je(r.sortChildren),ge&&Ot(r.parent||ge,It(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&qs(It(o),r.scrollTrigger),o}var t=e.prototype;return t.to=function(i,o,s){return yn(0,arguments,this),this},t.from=function(i,o,s){return yn(1,arguments,this),this},t.fromTo=function(i,o,s,a){return yn(2,arguments,this),this},t.set=function(i,o,s){return o.duration=0,o.parent=this,_n(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new Ce(i,o,ct(this,s),1),this},t.call=function(i,o,s){return Ot(this,Ce.delayedCall(0,i,o),s)},t.staggerTo=function(i,o,s,a,c,u,f){return s.duration=o,s.stagger=s.stagger||a,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Ce(i,s,ct(this,c)),this},t.staggerFrom=function(i,o,s,a,c,u,f){return s.runBackwards=1,_n(s).immediateRender=je(s.immediateRender),this.staggerTo(i,o,s,a,c,u,f)},t.staggerFromTo=function(i,o,s,a,c,u,f,d){return a.startAt=s,_n(a).immediateRender=je(a.immediateRender),this.staggerTo(i,o,a,c,u,f,d)},t.render=function(i,o,s){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Se(i),d=this._zTime<0!=i<0&&(this._initted||!u),g,l,p,h,m,v,b,S,P,_,w,C;if(this!==ge&&f>c&&i>=0&&(f=c),f!==this._tTime||s||d){if(a!==this._time&&u&&(f+=this._time-a,i+=this._time-a),g=f,P=this._start,S=this._ts,v=!S,d&&(u||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,m=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,o,s);if(g=Se(f%m),f===c?(h=this._repeat,g=u):(_=Se(f/m),h=~~_,h&&h===_&&(g=u,h--),g>u&&(g=u)),_=Yr(this._tTime,m),!a&&this._tTime&&_!==h&&this._tTime-_*m-this._dur<=0&&(_=h),w&&h&1&&(g=u-g,C=1),h!==_&&!this._lock){var T=w&&_&1,M=T===(w&&h&1);if(h<_&&(T=!T),a=T?0:f%u?u:f,this._lock=1,this.render(a||(C?0:Se(h*m)),o,!u)._lock=0,this._tTime=f,!o&&this.parent&&tt(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(this.invalidate()._lock=1),a&&a!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,M&&(this._lock=2,a=T?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;ha(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=vu(this,Se(a),Se(g)),b&&(f-=g-(g=b._start))),this._tTime=f,this._time=g,this._act=!S,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&f&&!o&&!_&&(tt(this,"onStart"),this._tTime!==f))return this;if(g>=a&&i>=0)for(l=this._first;l;){if(p=l._next,(l._act||g>=l._start)&&l._ts&&b!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(g-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(g-l._start)*l._ts,o,s),g!==this._time||!this._ts&&!v){b=0,p&&(f+=this._zTime=-le);break}}l=p}else{l=this._last;for(var z=i<0?i:g;l;){if(p=l._prev,(l._act||z<=l._end)&&l._ts&&b!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(z-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(z-l._start)*l._ts,o,s||De&&io(l)),g!==this._time||!this._ts&&!v){b=0,p&&(f+=this._zTime=z?-le:le);break}}l=p}}if(b&&!o&&(this.pause(),b.render(g>=a?0:-le)._zTime=g>=a?1:-1,this._ts))return this._start=P,ni(this),this.render(i,o,s);this._onUpdate&&!o&&tt(this,"onUpdate",!0),(f===c&&this._tTime>=this.totalDuration()||!f&&a)&&(P===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===c&&this._ts>0||!f&&this._ts<0)&&Gt(this,1),!o&&!(i<0&&!a)&&(f||a||!c)&&(tt(this,f===c&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<c&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(i,o){var s=this;if(Nt(o)||(o=ct(this,o,i)),!(i instanceof Cn)){if(Ne(i))return i.forEach(function(a){return s.add(a,o)}),this;if(Me(i))return this.addLabel(i,o);if(_e(i))i=Ce.delayedCall(0,i);else return this}return this!==i?Ot(this,i,o):this},t.getChildren=function(i,o,s,a){i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=!0),a===void 0&&(a=-lt);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof Ce?o&&c.push(u):(s&&c.push(u),i&&c.push.apply(c,u.getChildren(!0,o,s)))),u=u._next;return c},t.getById=function(i){for(var o=this.getChildren(1,1,1),s=o.length;s--;)if(o[s].vars.id===i)return o[s]},t.remove=function(i){return Me(i)?this.removeLabel(i):_e(i)?this.killTweensOf(i):(i.parent===this&&ti(this,i),i===this._recent&&(this._recent=this._last),ur(this))},t.totalTime=function(i,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Se(rt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),n.prototype.totalTime.call(this,i,o),this._forcing=0,this):this._tTime},t.addLabel=function(i,o){return this.labels[i]=ct(this,o),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,o,s){var a=Ce.delayedCall(0,o||mn,s);return a.data="isPause",this._hasPause=1,Ot(this,a,ct(this,i))},t.removePause=function(i){var o=this._first;for(i=ct(this,i);o;)o._start===i&&o.data==="isPause"&&Gt(o),o=o._next},t.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),c=a.length;c--;)Qt!==a[c]&&a[c].kill(i,o);return this},t.getTweensOf=function(i,o){for(var s=[],a=ut(i),c=this._first,u=Nt(o),f;c;)c instanceof Ce?hu(c._targets,a)&&(u?(!Qt||c._initted&&c._ts)&&c.globalTime(0)<=o&&c.globalTime(c.totalDuration())>o:!o||c.isActive())&&s.push(c):(f=c.getTweensOf(a,o)).length&&s.push.apply(s,f),c=c._next;return s},t.tweenTo=function(i,o){o=o||{};var s=this,a=ct(s,i),c=o,u=c.startAt,f=c.onStart,d=c.onStartParams,g=c.immediateRender,l,p=Ce.to(s,et({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:o.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale())||le,onStart:function(){if(s.pause(),!l){var m=o.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());p._dur!==m&&Wr(p,m,0,1).render(p._time,!0,!0),l=1}f&&f.apply(p,d||[])}},o));return g?p.render(0):p},t.tweenFromTo=function(i,o,s){return this.tweenTo(o,et({startAt:{time:ct(this,i)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),oa(this,ct(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),oa(this,ct(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+le)},t.shiftChildren=function(i,o,s){s===void 0&&(s=0);for(var a=this._first,c=this.labels,u;a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(o)for(u in c)c[u]>=s&&(c[u]+=i);return ur(this)},t.invalidate=function(i){var o=this._first;for(this._lock=0;o;)o.invalidate(i),o=o._next;return n.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var o=this._first,s;o;)s=o._next,this.remove(o),o=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),ur(this)},t.totalDuration=function(i){var o=0,s=this,a=s._last,c=lt,u,f,d;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(d=s.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),f=a._start,f>c&&s._sort&&a._ts&&!s._lock?(s._lock=1,Ot(s,a,f-a._delay,1)._lock=0):c=f,f<0&&a._ts&&(o-=f,(!d&&!s._dp||d&&d.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),c=0),a._end>o&&a._ts&&(o=a._end),a=u;Wr(s,s===ge&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(ge._ts&&(Ws(ge,ri(i,ge)),Fs=rt.frame),rt.frame>=Bs){Bs+=Qe.autoSleep||120;var o=ge._first;if((!o||!o._ts)&&Qe.autoSleep&&rt._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||rt.sleep()}}},e})(Cn);et(Xe.prototype,{_lock:0,_hasPause:0,_forcing:0});var Iu=function(e,t,r,i,o,s,a){var c=new Ge(this._pt,e,t,0,1,wa,null,o),u=0,f=0,d,g,l,p,h,m,v,b;for(c.b=r,c.e=i,r+="",i+="",(v=~i.indexOf("random("))&&(i=vn(i)),s&&(b=[r,i],s(b,e,t),r=b[0],i=b[1]),g=r.match(qi)||[];d=qi.exec(i);)p=d[0],h=i.substring(u,d.index),l?l=(l+1)%5:h.substr(-5)==="rgba("&&(l=1),p!==g[f++]&&(m=parseFloat(g[f-1])||0,c._pt={_next:c._pt,p:h||f===1?h:",",s:m,c:p.charAt(1)==="="?Fr(m,p)-m:parseFloat(p)-m,m:l&&l<4?Math.round:0},u=qi.lastIndex);return c.c=u<i.length?i.substring(u,i.length):"",c.fp=a,($s.test(i)||v)&&(c.e=0),this._pt=c,c},po=function(e,t,r,i,o,s,a,c,u,f){_e(i)&&(i=i(o||0,e,s));var d=e[t],g=r!=="get"?r:_e(d)?u?e[t.indexOf("set")||!_e(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():d,l=_e(d)?u?Yu:xa:_o,p;if(Me(i)&&(~i.indexOf("random(")&&(i=vn(i)),i.charAt(1)==="="&&(p=Fr(g,i)+(ze(g)||0),(p||p===0)&&(i=p))),!f||g!==i||go)return!isNaN(g*i)&&i!==""?(p=new Ge(this._pt,e,t,+g||0,i-(g||0),typeof d=="boolean"?Xu:va,0,l),u&&(p.fp=u),a&&p.modifier(a,this,e),this._pt=p):(!d&&!(t in e)&&Zi(t,i),Iu.call(this,e,t,g,i,l,c||Qe.stringFilter,u))},Nu=function(e,t,r,i,o){if(_e(e)&&(e=Tn(e,o,t,r,i)),!Et(e)||e.style&&e.nodeType||Ne(e)||Ds(e))return Me(e)?Tn(e,o,t,r,i):e;var s={},a;for(a in e)s[a]=Tn(e[a],o,t,r,i);return s},ma=function(e,t,r,i,o,s){var a,c,u,f;if(Je[e]&&(a=new Je[e]).init(o,a.rawVars?t[e]:Nu(t[e],i,o,s,r),r,i,s)!==!1&&(r._pt=c=new Ge(r._pt,o,e,0,1,a.render,a,0,a.priority),r!==Xr))for(u=r._ptLookup[r._targets.indexOf(o)],f=a._props.length;f--;)u[a._props[f]]=c;return a},Qt,go,mo=function n(e,t,r){var i=e.vars,o=i.ease,s=i.startAt,a=i.immediateRender,c=i.lazy,u=i.onUpdate,f=i.runBackwards,d=i.yoyoEase,g=i.keyframes,l=i.autoRevert,p=e._dur,h=e._startAt,m=e._targets,v=e.parent,b=v&&v.data==="nested"?v.vars.targets:m,S=e._overwrite==="auto"&&!Hi,P=e.timeline,_,w,C,T,M,z,R,L,O,N,Y,B,X;if(P&&(!g||!o)&&(o="none"),e._ease=fr(o,Nr.ease),e._yEase=d?da(fr(d===!0?o:d,Nr.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!P&&!!i.runBackwards,!P||g&&!i.stagger){if(L=m[0]?cr(m[0]).harness:0,B=L&&i[L.prop],_=ei(i,Ji),h&&(h._zTime<0&&h.progress(1),t<0&&f&&a&&!l?h.render(-1,!0):h.revert(f&&p?Qn:fu),h._lazy=0),s){if(Gt(e._startAt=Ce.set(m,et({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!h&&je(c),startAt:null,delay:0,onUpdate:u&&function(){return tt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(De||!a&&!l)&&e._startAt.revert(Qn),a&&p&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(f&&p&&!h){if(t&&(a=!1),C=et({overwrite:!1,data:"isFromStart",lazy:a&&!h&&je(c),immediateRender:a,stagger:0,parent:v},_),B&&(C[L.prop]=B),Gt(e._startAt=Ce.set(m,C)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(De?e._startAt.revert(Qn):e._startAt.render(-1,!0)),e._zTime=t,!a)n(e._startAt,le,le);else if(!t)return}for(e._pt=e._ptCache=0,c=p&&je(c)||c&&!p,w=0;w<m.length;w++){if(M=m[w],R=M._gsap||no(m)[w]._gsap,e._ptLookup[w]=N={},eo[R.id]&&Ut.length&&Jn(),Y=b===m?w:b.indexOf(M),L&&(O=new L).init(M,B||_,e,Y,b)!==!1&&(e._pt=T=new Ge(e._pt,M,O.name,0,1,O.render,O,0,O.priority),O._props.forEach(function(ne){N[ne]=T}),O.priority&&(z=1)),!L||B)for(C in _)Je[C]&&(O=ma(C,_,e,Y,M,b))?O.priority&&(z=1):N[C]=T=po.call(e,M,C,"get",_[C],Y,b,0,i.stringFilter);e._op&&e._op[w]&&e.kill(M,e._op[w]),S&&e._pt&&(Qt=e,ge.killTweensOf(M,N,e.globalTime(t)),X=!e.parent,Qt=0),e._pt&&c&&(eo[R.id]=1)}z&&ba(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!X,g&&t<=0&&P.render(lt,!0,!0)},zu=function(e,t,r,i,o,s,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],f,d,g,l;if(!u)for(u=e._ptCache[t]=[],g=e._ptLookup,l=e._targets.length;l--;){if(f=g[l][t],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==t&&f.fp!==t;)f=f._next;if(!f)return go=1,e.vars[t]="+=0",mo(e,a),go=0,c?gn(t+" not eligible for reset"):1;u.push(f)}for(l=u.length;l--;)d=u[l],f=d._pt||d,f.s=(i||i===0)&&!o?i:f.s+(i||0)+s*f.c,f.c=r-f.s,d.e&&(d.e=ye(r)+ze(d.e)),d.b&&(d.b=f.s+ze(d.b))},Fu=function(e,t){var r=e[0]?cr(e[0]).harness:0,i=r&&r.aliases,o,s,a,c;if(!i)return t;o=Br({},t);for(s in i)if(s in o)for(c=i[s].split(","),a=c.length;a--;)o[c[a]]=o[s];return o},Bu=function(e,t,r,i){var o=t.ease||i||"power1.inOut",s,a;if(Ne(t))a=r[e]||(r[e]=[]),t.forEach(function(c,u){return a.push({t:u/(t.length-1)*100,v:c,e:o})});else for(s in t)a=r[s]||(r[s]=[]),s==="ease"||a.push({t:parseFloat(e),v:t[s],e:o})},Tn=function(e,t,r,i,o){return _e(e)?e.call(t,r,i,o):Me(e)&&~e.indexOf("random(")?vn(e):e},_a=ro+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ya={};Ue(_a+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return ya[n]=1});var Ce=(function(n){Os(e,n);function e(r,i,o,s){var a;typeof i=="number"&&(o.duration=i,i=o,o=null),a=n.call(this,s?i:_n(i))||this;var c=a.vars,u=c.duration,f=c.delay,d=c.immediateRender,g=c.stagger,l=c.overwrite,p=c.keyframes,h=c.defaults,m=c.scrollTrigger,v=c.yoyoEase,b=i.parent||ge,S=(Ne(r)||Ds(r)?Nt(r[0]):"length"in i)?[r]:ut(r),P,_,w,C,T,M,z,R;if(a._targets=S.length?no(S):gn("GSAP target "+r+" not found. https://gsap.com",!Qe.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=l,p||g||qn(u)||qn(f)){if(i=a.vars,P=a.timeline=new Xe({data:"nested",defaults:h||{},targets:b&&b.data==="nested"?b.vars.targets:S}),P.kill(),P.parent=P._dp=It(a),P._start=0,g||qn(u)||qn(f)){if(C=S.length,z=g&&ea(g),Et(g))for(T in g)~_a.indexOf(T)&&(R||(R={}),R[T]=g[T]);for(_=0;_<C;_++)w=ei(i,ya),w.stagger=0,v&&(w.yoyoEase=v),R&&Br(w,R),M=S[_],w.duration=+Tn(u,It(a),_,M,S),w.delay=(+Tn(f,It(a),_,M,S)||0)-a._delay,!g&&C===1&&w.delay&&(a._delay=f=w.delay,a._start+=f,w.delay=0),P.to(M,w,z?z(_,M,S):0),P._ease=J.none;P.duration()?u=f=0:a.timeline=0}else if(p){_n(et(P.vars.defaults,{ease:"none"})),P._ease=fr(p.ease||i.ease||"none");var L=0,O,N,Y;if(Ne(p))p.forEach(function(B){return P.to(S,B,">")}),P.duration();else{w={};for(T in p)T==="ease"||T==="easeEach"||Bu(T,p[T],w,p.easeEach);for(T in w)for(O=w[T].sort(function(B,X){return B.t-X.t}),L=0,_=0;_<O.length;_++)N=O[_],Y={ease:N.e,duration:(N.t-(_?O[_-1].t:0))/100*u},Y[T]=N.v,P.to(S,Y,L),L+=Y.duration;P.duration()<u&&P.to({},{duration:u-P.duration()})}}u||a.duration(u=P.duration())}else a.timeline=0;return l===!0&&!Hi&&(Qt=It(a),ge.killTweensOf(S),Qt=0),Ot(b,It(a),o),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(d||!u&&!p&&a._start===Se(b._time)&&je(d)&&_u(It(a))&&b.data!=="nested")&&(a._tTime=-le,a.render(Math.max(0,-f)||0)),m&&qs(It(a),m),a}var t=e.prototype;return t.render=function(i,o,s){var a=this._time,c=this._tDur,u=this._dur,f=i<0,d=i>c-le&&!f?c:i<le?0:i,g,l,p,h,m,v,b,S,P;if(!u)xu(this,i,o,s);else if(d!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(g=d,S=this.timeline,this._repeat){if(h=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+i,o,s);if(g=Se(d%h),d===c?(p=this._repeat,g=u):(m=Se(d/h),p=~~m,p&&p===m?(g=u,p--):g>u&&(g=u)),v=this._yoyo&&p&1,v&&(P=this._yEase,g=u-g),m=Yr(this._tTime,h),g===a&&!s&&this._initted&&p===m)return this._tTime=d,this;p!==m&&(S&&this._yEase&&ha(S,v),this.vars.repeatRefresh&&!v&&!this._lock&&g!==h&&this._initted&&(this._lock=s=1,this.render(Se(h*p),!0).invalidate()._lock=0))}if(!this._initted){if(Ks(this,f?i:g,s,o,d))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(u!==this._dur)return this.render(i,o,s)}if(this._tTime=d,this._time=g,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(P||this._ease)(g/u),this._from&&(this.ratio=b=1-b),!a&&d&&!o&&!m&&(tt(this,"onStart"),this._tTime!==d))return this;for(l=this._pt;l;)l.r(b,l.d),l=l._next;S&&S.render(i<0?i:S._dur*S._ease(g/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(f&&oo(this,i,o,s),tt(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!o&&this.parent&&tt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(f&&!this._onUpdate&&oo(this,i,!0,!0),(i||!u)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Gt(this,1),!o&&!(f&&!a)&&(d||a||v)&&(tt(this,d===c?"onComplete":"onReverseComplete",!0),this._prom&&!(d<c&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),n.prototype.invalidate.call(this,i)},t.resetTo=function(i,o,s,a,c){Sn||rt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||mo(this,u),f=this._ease(u/this._dur),zu(this,i,o,s,a,f,u,c)?this.resetTo(i,o,s,a,1):(ii(this,0),this.parent||js(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,o){if(o===void 0&&(o="all"),!i&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?wn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!De),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,Qt&&Qt.vars.overwrite!==!0)._first||wn(this),this.parent&&s!==this.timeline.totalDuration()&&Wr(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,c=i?ut(i):a,u=this._ptLookup,f=this._pt,d,g,l,p,h,m,v;if((!o||o==="all")&&gu(a,c))return o==="all"&&(this._pt=0),wn(this);for(d=this._op=this._op||[],o!=="all"&&(Me(o)&&(h={},Ue(o,function(b){return h[b]=1}),o=h),o=Fu(a,o)),v=a.length;v--;)if(~c.indexOf(a[v])){g=u[v],o==="all"?(d[v]=o,p=g,l={}):(l=d[v]=d[v]||{},p=o);for(h in p)m=g&&g[h],m&&((!("kill"in m.d)||m.d.kill(h)===!0)&&ti(this,m,"_pt"),delete g[h]),l!=="all"&&(l[h]=1)}return this._initted&&!this._pt&&f&&wn(this),this},e.to=function(i,o){return new e(i,o,arguments[2])},e.from=function(i,o){return yn(1,arguments)},e.delayedCall=function(i,o,s,a){return new e(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:o,onReverseComplete:o,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(i,o,s){return yn(2,arguments)},e.set=function(i,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new e(i,o)},e.killTweensOf=function(i,o,s){return ge.killTweensOf(i,o,s)},e})(Cn);et(Ce.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ue("staggerTo,staggerFrom,staggerFromTo",function(n){Ce[n]=function(){var e=new Xe,t=ao.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var _o=function(e,t,r){return e[t]=r},xa=function(e,t,r){return e[t](r)},Yu=function(e,t,r,i){return e[t](i.fp,r)},Wu=function(e,t,r){return e.setAttribute(t,r)},yo=function(e,t){return _e(e[t])?xa:ji(e[t])&&e.setAttribute?Wu:_o},va=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Xu=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},wa=function(e,t){var r=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=t.c}t.set(t.t,t.p,i,t)},xo=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Hu=function(e,t,r,i){for(var o=this._pt,s;o;)s=o._next,o.p===i&&o.modifier(e,t,r),o=s},Vu=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?ti(this,t,"_pt"):t.dep||(r=1),t=i;return!r},ju=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},ba=function(e){for(var t=e._pt,r,i,o,s;t;){for(r=t._next,i=o;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:s)?t._prev._next=t:o=t,(t._next=i)?i._prev=t:s=t,t=r}e._pt=o},Ge=(function(){function n(t,r,i,o,s,a,c,u,f){this.t=r,this.s=o,this.c=s,this.p=i,this.r=a||va,this.d=c||this,this.set=u||_o,this.pr=f||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(r,i,o){this.mSet=this.mSet||this.set,this.set=ju,this.m=r,this.mt=o,this.tween=i},n})();Ue(ro+"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(n){return Ji[n]=1}),Ze.TweenMax=Ze.TweenLite=Ce,Ze.TimelineLite=Ze.TimelineMax=Xe,ge=new Xe({sortChildren:!1,defaults:Nr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Qe.stringFilter=fa;var hr=[],oi={},Uu=[],Sa=0,Gu=0,vo=function(e){return(oi[e]||Uu).map(function(t){return t()})},wo=function(){var e=Date.now(),t=[];e-Sa>2&&(vo("matchMediaInit"),hr.forEach(function(r){var i=r.queries,o=r.conditions,s,a,c,u;for(a in i)s=Mt.matchMedia(i[a]).matches,s&&(c=1),s!==o[a]&&(o[a]=s,u=1);u&&(r.revert(),c&&t.push(r))}),vo("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Sa=e,vo("matchMedia"))},Ca=(function(){function n(t,r){this.selector=r&&lo(r),this.data=[],this._r=[],this.isReverted=!1,this.id=Gu++,t&&this.add(t)}var e=n.prototype;return e.add=function(r,i,o){_e(r)&&(o=i,i=r,r=_e);var s=this,a=function(){var u=pe,f=s.selector,d;return u&&u!==s&&u.data.push(s),o&&(s.selector=lo(o)),pe=s,d=i.apply(s,arguments),_e(d)&&s._r.push(d),pe=u,s.selector=f,s.isReverted=!1,d};return s.last=a,r===_e?a(s,function(c){return s.add(null,c)}):r?s[r]=a:a},e.ignore=function(r){var i=pe;pe=null,r(this),pe=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof n?r.push.apply(r,i.getTweens()):i instanceof Ce&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var o=this;if(r?(function(){for(var a=o.getTweens(),c=o.data.length,u;c--;)u=o.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return a.splice(a.indexOf(f),1)}));for(a.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,d){return d.g-f.g||-1/0}).forEach(function(f){return f.t.revert(r)}),c=o.data.length;c--;)u=o.data[c],u instanceof Xe?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Ce)&&u.revert&&u.revert(r);o._r.forEach(function(f){return f(r,o)}),o.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=hr.length;s--;)hr[s].id===this.id&&hr.splice(s,1)},e.revert=function(r){this.kill(r||{})},n})(),qu=(function(){function n(t){this.contexts=[],this.scope=t,pe&&pe.data.push(this)}var e=n.prototype;return e.add=function(r,i,o){Et(r)||(r={matches:r});var s=new Ca(0,o||this.scope),a=s.conditions={},c,u,f;pe&&!s.selector&&(s.selector=pe.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(u in r)u==="all"?f=1:(c=Mt.matchMedia(r[u]),c&&(hr.indexOf(s)<0&&hr.push(s),(a[u]=c.matches)&&(f=1),c.addListener?c.addListener(wo):c.addEventListener("change",wo)));return f&&i(s,function(d){return s.add(null,d)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},n})(),si={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(i){return aa(i)})},timeline:function(e){return new Xe(e)},getTweensOf:function(e,t){return ge.getTweensOf(e,t)},getProperty:function(e,t,r,i){Me(e)&&(e=ut(e)[0]);var o=cr(e||{}).get,s=r?Hs:Xs;return r==="native"&&(r=""),e&&(t?s((Je[t]&&Je[t].get||o)(e,t,r,i)):function(a,c,u){return s((Je[a]&&Je[a].get||o)(e,a,c,u))})},quickSetter:function(e,t,r){if(e=ut(e),e.length>1){var i=e.map(function(f){return qe.quickSetter(f,t,r)}),o=i.length;return function(f){for(var d=o;d--;)i[d](f)}}e=e[0]||{};var s=Je[t],a=cr(e),c=a.harness&&(a.harness.aliases||{})[t]||t,u=s?function(f){var d=new s;Xr._pt=0,d.init(e,r?f+r:f,Xr,0,[e]),d.render(1,d),Xr._pt&&xo(1,Xr)}:a.set(e,c);return s?u:function(f){return u(e,c,r?f+r:f,a,1)}},quickTo:function(e,t,r){var i,o=qe.to(e,et((i={},i[t]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(c,u,f){return o.resetTo(t,c,u,f)};return s.tween=o,s},isTweening:function(e){return ge.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fr(e.ease,Nr.ease)),Vs(Nr,e||{})},config:function(e){return Vs(Qe,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,i=e.plugins,o=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Je[a]&&!Ze[a]&&gn(t+" effect requires "+a+" plugin.")}),to[t]=function(a,c,u){return r(ut(a),et(c||{},o),u)},s&&(Xe.prototype[t]=function(a,c,u){return this.add(to[t](a,Et(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,t){J[e]=fr(t)},parseEase:function(e,t){return arguments.length?fr(e,t):J},getById:function(e){return ge.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new Xe(e),i,o;for(r.smoothChildTiming=je(e.smoothChildTiming),ge.remove(r),r._dp=0,r._time=r._tTime=ge._time,i=ge._first;i;)o=i._next,(t||!(!i._dur&&i instanceof Ce&&i.vars.onComplete===i._targets[0]))&&Ot(r,i,i._start-i._delay),i=o;return Ot(ge,r,0),r},context:function(e,t){return e?new Ca(e,t):pe},matchMedia:function(e){return new qu(e)},matchMediaRefresh:function(){return hr.forEach(function(e){var t=e.conditions,r,i;for(i in t)t[i]&&(t[i]=!1,r=1);r&&e.revert()})||wo()},addEventListener:function(e,t){var r=oi[e]||(oi[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=oi[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:Pu,wrapYoyo:Eu,distribute:ea,random:ra,snap:ta,normalize:ku,getUnit:ze,clamp:bu,splitColor:la,toArray:ut,selector:lo,mapRange:ia,pipe:Cu,unitize:Tu,interpolate:Mu,shuffle:Js},install:Ns,effects:to,ticker:rt,updateRoot:Xe.updateRoot,plugins:Je,globalTimeline:ge,core:{PropTween:Ge,globals:zs,Tween:Ce,Timeline:Xe,Animation:Cn,getCache:cr,_removeLinkedListItem:ti,reverting:function(){return De},context:function(e){return e&&pe&&(pe.data.push(e),e._ctx=pe),pe},suppressOverwrites:function(e){return Hi=e}}};Ue("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return si[n]=Ce[n]}),rt.add(Xe.updateRoot),Xr=si.to({},{duration:0});var Ku=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},Qu=function(e,t){var r=e._targets,i,o,s;for(i in t)for(o=r.length;o--;)s=e._ptLookup[o][i],s&&(s=s.d)&&(s._pt&&(s=Ku(s,i)),s&&s.modifier&&s.modifier(t[i],e,r[o],i))},bo=function(e,t){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var c,u;if(Me(o)&&(c={},Ue(o,function(f){return c[f]=1}),o=c),t){c={};for(u in o)c[u]=t(o[u]);o=c}Qu(a,o)}}}},qe=si.registerPlugin({name:"attr",init:function(e,t,r,i,o){var s,a,c;this.tween=r;for(s in t)c=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(c||0)+"",t[s],i,o,0,0,s),a.op=s,a.b=c,this._props.push(s)},render:function(e,t){for(var r=t._pt;r;)De?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},bo("roundProps",co),bo("modifiers"),bo("snap",ta))||si;Ce.version=Xe.version=qe.version="3.13.0",Is=1,Ui()&&Hr(),J.Power0,J.Power1,J.Power2,J.Power3,J.Power4,J.Linear,J.Quad,J.Cubic,J.Quart,J.Quint,J.Strong,J.Elastic,J.Back,J.SteppedEase,J.Bounce,J.Sine,J.Expo,J.Circ;/*!
|
|
8
|
+
*/var qe={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Lr={duration:.5,overwrite:!1,delay:0},Hi,Ae,pe,ot=1e8,le=1/ot,Vi=Math.PI*2,au=Vi/4,lu=0,Ds=Math.sqrt,cu=Math.cos,uu=Math.sin,Me=function(e){return typeof e=="string"},_e=function(e){return typeof e=="function"},Lt=function(e){return typeof e=="number"},ji=function(e){return typeof e>"u"},kt=function(e){return typeof e=="object"},He=function(e){return e!==!1},Ui=function(){return typeof window<"u"},Un=function(e){return _e(e)||Me(e)},As=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ne=Array.isArray,Gi=/(?:-?\.?\d|\.)+/gi,Rs=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ir=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,qi=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,$s=/[+-]=-?[.\d]+/,Ls=/[^,'"\[\]\s]+/gi,fu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ge,Pt,Ki,Qi,Ke={},Gn={},Is,Ns=function(e){return(Gn=zr(e,Ke))&&Ue},Zi=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},hn=function(e,t){return!t&&console.warn(e)},zs=function(e,t){return e&&(Ke[e]=t)&&Gn&&(Gn[e]=t)||Ke},pn=function(){return 0},du={suppressEvents:!0,isStart:!0,kill:!1},qn={suppressEvents:!0,kill:!1},hu={suppressEvents:!0},Ji={},Vt=[],eo={},Fs,Qe={},to={},Bs=30,Kn=[],ro="",no=function(e){var t=e[0],r,i;if(kt(t)||_e(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=Kn.length;i--&&!Kn[i].targetTest(t););r=Kn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new ga(e[i],r)))||e.splice(i,1);return e},ar=function(e){return e._gsap||no(at(e))[0]._gsap},Ys=function(e,t,r){return(r=e[t])&&_e(r)?e[t]():ji(r)&&e.getAttribute&&e.getAttribute(t)||r},Ve=function(e,t){return(e=e.split(",")).forEach(t)||e},ye=function(e){return Math.round(e*1e5)/1e5||0},Se=function(e){return Math.round(e*1e7)/1e7||0},Nr=function(e,t){var r=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},pu=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++i<r;);return i<r},Qn=function(){var e=Vt.length,t=Vt.slice(0),r,i;for(eo={},Vt.length=0,r=0;r<e;r++)i=t[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},io=function(e){return!!(e._initted||e._startAt||e.add)},Ws=function(e,t,r,i){Vt.length&&!Ae&&Qn(),e.render(t,r,!!(Ae&&t<0&&io(e))),Vt.length&&!Ae&&Qn()},Xs=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(Ls).length<2?t:Me(e)?e.trim():e},Hs=function(e){return e},Ze=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},gu=function(e){return function(t,r){for(var i in r)i in t||i==="duration"&&e||i==="ease"||(t[i]=r[i])}},zr=function(e,t){for(var r in t)e[r]=t[r];return e},Vs=function n(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=kt(t[r])?n(e[r]||(e[r]={}),t[r]):t[r]);return e},Zn=function(e,t){var r={},i;for(i in e)i in t||(r[i]=e[i]);return r},gn=function(e){var t=e.parent||ge,r=e.keyframes?gu(Ne(e.keyframes)):Ze;if(He(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},mu=function(e,t){for(var r=e.length,i=r===t.length;i&&r--&&e[r]===t[r];);return r<0},js=function(e,t,r,i,o){var s=e[i],a;if(o)for(a=t[o];s&&s[o]>a;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[i]=t,t._prev=s,t.parent=t._dp=e,t},Jn=function(e,t,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var o=t._prev,s=t._next;o?o._next=s:e[r]===t&&(e[r]=s),s?s._prev=o:e[i]===t&&(e[i]=o),t._next=t._prev=t.parent=null},jt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},lr=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},_u=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},oo=function(e,t,r,i){return e._startAt&&(Ae?e._startAt.revert(qn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},yu=function n(e){return!e||e._ts&&n(e.parent)},Us=function(e){return e._repeat?Fr(e._tTime,e=e.duration()+e._rDelay)*e:0},Fr=function(e,t){var r=Math.floor(e=Se(e/t));return e&&r===e?r-1:r},ei=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},ti=function(e){return e._end=Se(e._start+(e._tDur/Math.abs(e._ts||e._rts||le)||0))},ri=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Se(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),ti(e),r._dirty||lr(r,e)),e},Gs=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=ei(e.rawTime(),t),(!t._dur||_n(0,t.totalDuration(),r)-t._tTime>le)&&t.render(r,!0)),lr(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-le}},Et=function(e,t,r,i){return t.parent&&jt(t),t._start=Se((Lt(r)?r:r||e!==ge?st(e,r,t):e._time)+t._delay),t._end=Se(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),js(e,t,"_first","_last",e._sort?"_start":0),so(t)||(e._recent=t),i||Gs(e,t),e._ts<0&&ri(e,e._tTime),e},qs=function(e,t){return(Ke.ScrollTrigger||Zi("scrollTrigger",t))&&Ke.ScrollTrigger.create(t,e)},Ks=function(e,t,r,i,o){if(mo(e,t,o),!e._initted)return 1;if(!r&&e._pt&&!Ae&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Fs!==et.frame)return Vt.push(e),e._lazy=[o,i],1},xu=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},so=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},vu=function(e,t,r,i){var o=e.ratio,s=t<0||!t&&(!e._start&&xu(e)&&!(!e._initted&&so(e))||(e._ts<0||e._dp._ts<0)&&!so(e))?0:1,a=e._rDelay,c=0,u,f,d;if(a&&e._repeat&&(c=_n(0,e._tDur,t),f=Fr(c,a),e._yoyo&&f&1&&(s=1-s),f!==Fr(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||Ae||i||e._zTime===le||!t&&e._zTime){if(!e._initted&&Ks(e,t,i,r,c))return;for(d=e._zTime,e._zTime=t||(r?le:0),r||(r=t&&!d),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=c,u=e._pt;u;)u.r(s,u.d),u=u._next;t<0&&oo(e,t,r,!0),e._onUpdate&&!r&&Je(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&Je(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&jt(e,1),!r&&!Ae&&(Je(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},wu=function(e,t,r){var i;if(r>t)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<t)return i;i=i._prev}},Br=function(e,t,r,i){var o=e._repeat,s=Se(t)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=o?o<0?1e10:Se(s*(o+1)+e._rDelay*o):s,a>0&&!i&&ri(e,e._tTime=e._tDur*a),e.parent&&ti(e),r||lr(e.parent,e),e},Qs=function(e){return e instanceof Xe?lr(e):Br(e,e._dur)},bu={_start:0,endTime:pn,totalDuration:pn},st=function n(e,t,r){var i=e.labels,o=e._recent||bu,s=e.duration()>=ot?o.endTime(!1):e._dur,a,c,u;return Me(t)&&(isNaN(t)||t in i)?(c=t.charAt(0),u=t.substr(-1)==="%",a=t.indexOf("="),c==="<"||c===">"?(a>=0&&(t=t.replace(/=/,"")),(c==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(a<0?o:r).totalDuration()/100:1)):a<0?(t in i||(i[t]=s),i[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),u&&r&&(c=c/100*(Ne(r)?r[0]:r).totalDuration()),a>1?n(e,t.substr(0,a-1),r)+c:s+c)):t==null?s:+t},mn=function(e,t,r){var i=Lt(t[1]),o=(i?2:1)+(e<2?0:1),s=t[o],a,c;if(i&&(s.duration=t[1]),s.parent=r,e){for(a=s,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=He(c.vars.inherit)&&c.parent;s.immediateRender=He(a.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new Te(t[0],s,t[o+1])},Ut=function(e,t){return e||e===0?t(e):t},_n=function(e,t,r){return r<e?e:r>t?t:r},ze=function(e,t){return!Me(e)||!(t=fu.exec(e))?"":t[1]},Su=function(e,t,r){return Ut(r,function(i){return _n(e,t,i)})},ao=[].slice,Zs=function(e,t){return e&&kt(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&kt(e[0]))&&!e.nodeType&&e!==Pt},Tu=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return Me(i)&&!t||Zs(i,1)?(o=r).push.apply(o,at(i)):r.push(i)})||r},at=function(e,t,r){return pe&&!t&&pe.selector?pe.selector(e):Me(e)&&!r&&(Ki||!Wr())?ao.call((t||Qi).querySelectorAll(e),0):Ne(e)?Tu(e,r):Zs(e)?ao.call(e,0):e?[e]:[]},lo=function(e){return e=at(e)[0]||hn("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return at(t,r.querySelectorAll?r:r===e?hn("Invalid scope")||Qi.createElement("div"):e)}},Js=function(e){return e.sort(function(){return .5-Math.random()})},ea=function(e){if(_e(e))return e;var t=kt(e)?e:{each:e},r=cr(t.ease),i=t.from||0,o=parseFloat(t.base)||0,s={},a=i>0&&i<1,c=isNaN(i)||a,u=t.axis,f=i,d=i;return Me(i)?f=d={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(f=i[0],d=i[1]),function(p,l,g){var h=(g||t).length,_=s[h],v,b,S,P,m,w,T,C,M;if(!_){if(M=t.grid==="auto"?0:(t.grid||[1,ot])[1],!M){for(T=-ot;T<(T=g[M++].getBoundingClientRect().left)&&M<h;);M<h&&M--}for(_=s[h]=[],v=c?Math.min(M,h)*f-.5:i%M,b=M===ot?0:c?h*d/M-.5:i/M|0,T=0,C=ot,w=0;w<h;w++)S=w%M-v,P=b-(w/M|0),_[w]=m=u?Math.abs(u==="y"?P:S):Ds(S*S+P*P),m>T&&(T=m),m<C&&(C=m);i==="random"&&Js(_),_.max=T-C,_.min=C,_.v=h=(parseFloat(t.amount)||parseFloat(t.each)*(M>h?h-1:u?u==="y"?h/M:M:Math.max(M,h/M))||0)*(i==="edges"?-1:1),_.b=h<0?o-h:o,_.u=ze(t.amount||t.each)||0,r=r&&h<0?da(r):r}return h=(_[p]-_.min)/_.max||0,Se(_.b+(r?r(h):h)*_.v)+_.u}},co=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Se(Math.round(parseFloat(r)/e)*e*t);return(i-i%1)/t+(Lt(r)?0:ze(r))}},ta=function(e,t){var r=Ne(e),i,o;return!r&&kt(e)&&(i=r=e.radius||ot,e.values?(e=at(e.values),(o=!Lt(e[0]))&&(i*=i)):e=co(e.increment)),Ut(t,r?_e(e)?function(s){return o=e(s),Math.abs(o-s)<=i?o:s}:function(s){for(var a=parseFloat(o?s.x:s),c=parseFloat(o?s.y:0),u=ot,f=0,d=e.length,p,l;d--;)o?(p=e[d].x-a,l=e[d].y-c,p=p*p+l*l):p=Math.abs(e[d]-a),p<u&&(u=p,f=d);return f=!i||u<=i?e[f]:s,o||f===s||Lt(s)?f:f+ze(s)}:co(e))},ra=function(e,t,r,i){return Ut(Ne(e)?!t:r===!0?!!(r=0):!i,function(){return Ne(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*i)/i})},Cu=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduce(function(o,s){return s(o)},i)}},ku=function(e,t){return function(r){return e(parseFloat(r))+(t||ze(r))}},Pu=function(e,t,r){return ia(e,t,0,1,r)},na=function(e,t,r){return Ut(r,function(i){return e[~~t(i)]})},Eu=function n(e,t,r){var i=t-e;return Ne(e)?na(e,n(0,e.length),t):Ut(r,function(o){return(i+(o-e)%i)%i+e})},Mu=function n(e,t,r){var i=t-e,o=i*2;return Ne(e)?na(e,n(0,e.length-1),t):Ut(r,function(s){return s=(o+(s-e)%o)%o||0,e+(s>i?o-s:s)})},yn=function(e){for(var t=0,r="",i,o,s,a;~(i=e.indexOf("random(",t));)s=e.indexOf(")",i),a=e.charAt(i+7)==="[",o=e.substr(i+7,s-i-7).match(a?Ls:Gi),r+=e.substr(t,i-t)+ra(a?o:+o[0],a?0:+o[1],+o[2]||1e-5),t=s+1;return r+e.substr(t,e.length-t)},ia=function(e,t,r,i,o){var s=t-e,a=i-r;return Ut(o,function(c){return r+((c-e)/s*a||0)})},Ou=function n(e,t,r,i){var o=isNaN(e+t)?0:function(l){return(1-l)*e+l*t};if(!o){var s=Me(e),a={},c,u,f,d,p;if(r===!0&&(i=1)&&(r=null),s)e={p:e},t={p:t};else if(Ne(e)&&!Ne(t)){for(f=[],d=e.length,p=d-2,u=1;u<d;u++)f.push(n(e[u-1],e[u]));d--,o=function(g){g*=d;var h=Math.min(p,~~g);return f[h](g-h)},r=t}else i||(e=zr(Ne(e)?[]:{},e));if(!f){for(c in t)po.call(a,e,c,"get",t[c]);o=function(g){return xo(g,a)||(s?e.p:e)}}}return Ut(r,o)},oa=function(e,t,r){var i=e.labels,o=ot,s,a,c;for(s in i)a=i[s]-t,a<0==!!r&&a&&o>(a=Math.abs(a))&&(c=s,o=a);return c},Je=function(e,t,r){var i=e.vars,o=i[t],s=pe,a=e._ctx,c,u,f;if(o)return c=i[t+"Params"],u=i.callbackScope||e,r&&Vt.length&&Qn(),a&&(pe=a),f=c?o.apply(u,c):o.call(u),pe=s,f},xn=function(e){return jt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ae),e.progress()<1&&Je(e,"onInterrupt"),e},Yr,sa=[],aa=function(e){if(e)if(e=!e.name&&e.default||e,Ui()||e.headless){var t=e.name,r=_e(e),i=t&&!r&&e.init?function(){this._props=[]}:e,o={init:pn,render:xo,add:po,kill:ju,modifier:Vu,rawVars:0},s={targetTest:0,get:0,getSetter:yo,aliases:{},register:0};if(Wr(),e!==i){if(Qe[t])return;Ze(i,Ze(Zn(e,o),s)),zr(i.prototype,zr(o,Zn(e,s))),Qe[i.prop=t]=i,e.targetTest&&(Kn.push(i),Ji[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}zs(t,i),e.register&&e.register(Ue,i,je)}else sa.push(e)},ce=255,vn={aqua:[0,ce,ce],lime:[0,ce,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ce],navy:[0,0,128],white:[ce,ce,ce],olive:[128,128,0],yellow:[ce,ce,0],orange:[ce,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ce,0,0],pink:[ce,192,203],cyan:[0,ce,ce],transparent:[ce,ce,ce,0]},uo=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*ce+.5|0},la=function(e,t,r){var i=e?Lt(e)?[e>>16,e>>8&ce,e&ce]:0:vn.black,o,s,a,c,u,f,d,p,l,g;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),vn[e])i=vn[e];else if(e.charAt(0)==="#"){if(e.length<6&&(o=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+o+o+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ce,i&ce,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ce,e&ce]}else if(e.substr(0,3)==="hsl"){if(i=g=e.match(Gi),!t)c=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,o=f*2-s,i.length>3&&(i[3]*=1),i[0]=uo(c+1/3,o,s),i[1]=uo(c,o,s),i[2]=uo(c-1/3,o,s);else if(~e.indexOf("="))return i=e.match(Rs),r&&i.length<4&&(i[3]=1),i}else i=e.match(Gi)||vn.transparent;i=i.map(Number)}return t&&!g&&(o=i[0]/ce,s=i[1]/ce,a=i[2]/ce,d=Math.max(o,s,a),p=Math.min(o,s,a),f=(d+p)/2,d===p?c=u=0:(l=d-p,u=f>.5?l/(2-d-p):l/(d+p),c=d===o?(s-a)/l+(s<a?6:0):d===s?(a-o)/l+2:(o-s)/l+4,c*=60),i[0]=~~(c+.5),i[1]=~~(u*100+.5),i[2]=~~(f*100+.5)),r&&i.length<4&&(i[3]=1),i},ca=function(e){var t=[],r=[],i=-1;return e.split(Gt).forEach(function(o){var s=o.match(Ir)||[];t.push.apply(t,s),r.push(i+=s.length+1)}),t.c=r,t},ua=function(e,t,r){var i="",o=(e+i).match(Gt),s=t?"hsla(":"rgba(",a=0,c,u,f,d;if(!o)return e;if(o=o.map(function(p){return(p=la(p,t,1))&&s+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),r&&(f=ca(e),c=r.c,c.join(i)!==f.c.join(i)))for(u=e.replace(Gt,"1").split(Ir),d=u.length-1;a<d;a++)i+=u[a]+(~c.indexOf(a)?o.shift()||s+"0,0,0,0)":(f.length?f:o.length?o:r).shift());if(!u)for(u=e.split(Gt),d=u.length-1;a<d;a++)i+=u[a]+o[a];return i+u[d]},Gt=(function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in vn)n+="|"+e+"\\b";return new RegExp(n+")","gi")})(),Du=/hsl[a]?\(/,fa=function(e){var t=e.join(" "),r;if(Gt.lastIndex=0,Gt.test(t))return r=Du.test(t),e[1]=ua(e[1],r),e[0]=ua(e[0],r,ca(e[1])),!0},wn,et=(function(){var n=Date.now,e=500,t=33,r=n(),i=r,o=1e3/240,s=o,a=[],c,u,f,d,p,l,g=function h(_){var v=n()-i,b=_===!0,S,P,m,w;if((v>e||v<0)&&(r+=v-t),i+=v,m=i-r,S=m-s,(S>0||b)&&(w=++d.frame,p=m-d.time*1e3,d.time=m=m/1e3,s+=S+(S>=o?4:o-S),P=1),b||(c=u(h)),P)for(l=0;l<a.length;l++)a[l](m,p,w,_)};return d={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(_){return p/(1e3/(_||60))},wake:function(){Is&&(!Ki&&Ui()&&(Pt=Ki=window,Qi=Pt.document||{},Ke.gsap=Ue,(Pt.gsapVersions||(Pt.gsapVersions=[])).push(Ue.version),Ns(Gn||Pt.GreenSockGlobals||!Pt.gsap&&Pt||{}),sa.forEach(aa)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&d.sleep(),u=f||function(_){return setTimeout(_,s-d.time*1e3+1|0)},wn=1,g(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(c),wn=0,u=pn},lagSmoothing:function(_,v){e=_||1/0,t=Math.min(v||33,e)},fps:function(_){o=1e3/(_||240),s=d.time*1e3+o},add:function(_,v,b){var S=v?function(P,m,w,T){_(P,m,w,T),d.remove(S)}:_;return d.remove(_),a[b?"unshift":"push"](S),Wr(),S},remove:function(_,v){~(v=a.indexOf(_))&&a.splice(v,1)&&l>=v&&l--},_listeners:a},d})(),Wr=function(){return!wn&&et.wake()},Z={},Au=/^[\d.\-M][\d.\-,\s]/,Ru=/["']/g,$u=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),i=r[0],o=1,s=r.length,a,c,u;o<s;o++)c=r[o],a=o!==s-1?c.lastIndexOf(","):c.length,u=c.substr(0,a),t[i]=isNaN(u)?u.replace(Ru,"").trim():+u,i=c.substr(a+1).trim();return t},Lu=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",t);return e.substring(t,~i&&i<r?e.indexOf(")",r+1):r)},Iu=function(e){var t=(e+"").split("("),r=Z[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[$u(t[1])]:Lu(e).split(",").map(Xs)):Z._CE&&Au.test(e)?Z._CE("",e):r},da=function(e){return function(t){return 1-e(1-t)}},ha=function n(e,t){for(var r=e._first,i;r;)r instanceof Xe?n(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?n(r.timeline,t):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=t)),r=r._next},cr=function(e,t){return e&&(_e(e)?e:Z[e]||Iu(e))||t},ur=function(e,t,r,i){r===void 0&&(r=function(c){return 1-t(1-c)}),i===void 0&&(i=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var o={easeIn:t,easeOut:r,easeInOut:i},s;return Ve(e,function(a){Z[a]=Ke[a]=o,Z[s=a.toLowerCase()]=r;for(var c in o)Z[s+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=Z[a+"."+c]=o[c]}),o},pa=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},fo=function n(e,t,r){var i=t>=1?t:1,o=(r||(e?.3:.45))/(t<1?t:1),s=o/Vi*(Math.asin(1/i)||0),a=function(f){return f===1?1:i*Math.pow(2,-10*f)*uu((f-s)*o)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:pa(a);return o=Vi/o,c.config=function(u,f){return n(e,u,f)},c},ho=function n(e,t){t===void 0&&(t=1.70158);var r=function(s){return s?--s*s*((t+1)*s+t)+1:0},i=e==="out"?r:e==="in"?function(o){return 1-r(1-o)}:pa(r);return i.config=function(o){return n(e,o)},i};Ve("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;ur(n+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),Z.Linear.easeNone=Z.none=Z.Linear.easeIn,ur("Elastic",fo("in"),fo("out"),fo()),(function(n,e){var t=1/e,r=2*t,i=2.5*t,o=function(a){return a<t?n*a*a:a<r?n*Math.pow(a-1.5/e,2)+.75:a<i?n*(a-=2.25/e)*a+.9375:n*Math.pow(a-2.625/e,2)+.984375};ur("Bounce",function(s){return 1-o(1-s)},o)})(7.5625,2.75),ur("Expo",function(n){return Math.pow(2,10*(n-1))*n+n*n*n*n*n*n*(1-n)}),ur("Circ",function(n){return-(Ds(1-n*n)-1)}),ur("Sine",function(n){return n===1?1:-cu(n*au)+1}),ur("Back",ho("in"),ho("out"),ho()),Z.SteppedEase=Z.steps=Ke.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,i=e+(t?0:1),o=t?1:0,s=1-le;return function(a){return((i*_n(0,s,a)|0)+o)*r}}},Lr.ease=Z["quad.out"],Ve("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return ro+=n+","+n+"Params,"});var ga=function(e,t){this.id=lu++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Ys,this.set=t?t.getSetter:yo},bn=(function(){function n(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,Br(this,+t.duration,1,1),this.data=t.data,pe&&(this._ctx=pe,pe.data.push(this)),wn||et.wake()}var e=n.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Br(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Wr(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(ri(this,r),!o._dp||o.parent||Gs(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Et(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===le||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Ws(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Us(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Us(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*o,i):this._repeat?Fr(this._tTime,o)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-le?0:this._rts;if(this._rts===r)return this;var o=this.parent&&this._ts?ei(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-le?0:this._rts,this.totalTime(_n(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),ti(this),_u(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Wr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==le&&(this._tTime-=le)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Et(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(He(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ei(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=hu);var i=Ae;return Ae=r,io(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Ae=i,this},e.globalTime=function(r){for(var i=this,o=arguments.length?r:i.rawTime();i;)o=i._start+o/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):o},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Qs(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,Qs(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(st(this,r),He(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,He(i)),this._dur||(this._zTime=-le),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-le:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-le,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,o;return!!(!r||this._ts&&this._initted&&r.isActive()&&(o=r.rawTime(!0))>=i&&o<this.endTime(!0)-le)},e.eventCallback=function(r,i,o){var s=this.vars;return arguments.length>1?(i?(s[r]=i,o&&(s[r+"Params"]=o),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this;return new Promise(function(o){var s=_e(r)?r:Hs,a=function(){var u=i.then;i.then=null,_e(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=u),o(s),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){xn(this)},n})();Ze(bn.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:-le,_prom:0,_ps:!1,_rts:1});var Xe=(function(n){Os(e,n);function e(r,i){var o;return r===void 0&&(r={}),o=n.call(this,r)||this,o.labels={},o.smoothChildTiming=!!r.smoothChildTiming,o.autoRemoveChildren=!!r.autoRemoveChildren,o._sort=He(r.sortChildren),ge&&Et(r.parent||ge,$t(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&qs($t(o),r.scrollTrigger),o}var t=e.prototype;return t.to=function(i,o,s){return mn(0,arguments,this),this},t.from=function(i,o,s){return mn(1,arguments,this),this},t.fromTo=function(i,o,s,a){return mn(2,arguments,this),this},t.set=function(i,o,s){return o.duration=0,o.parent=this,gn(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new Te(i,o,st(this,s),1),this},t.call=function(i,o,s){return Et(this,Te.delayedCall(0,i,o),s)},t.staggerTo=function(i,o,s,a,c,u,f){return s.duration=o,s.stagger=s.stagger||a,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Te(i,s,st(this,c)),this},t.staggerFrom=function(i,o,s,a,c,u,f){return s.runBackwards=1,gn(s).immediateRender=He(s.immediateRender),this.staggerTo(i,o,s,a,c,u,f)},t.staggerFromTo=function(i,o,s,a,c,u,f,d){return a.startAt=s,gn(a).immediateRender=He(a.immediateRender),this.staggerTo(i,o,a,c,u,f,d)},t.render=function(i,o,s){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Se(i),d=this._zTime<0!=i<0&&(this._initted||!u),p,l,g,h,_,v,b,S,P,m,w,T;if(this!==ge&&f>c&&i>=0&&(f=c),f!==this._tTime||s||d){if(a!==this._time&&u&&(f+=this._time-a,i+=this._time-a),p=f,P=this._start,S=this._ts,v=!S,d&&(u||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,_=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(_*100+i,o,s);if(p=Se(f%_),f===c?(h=this._repeat,p=u):(m=Se(f/_),h=~~m,h&&h===m&&(p=u,h--),p>u&&(p=u)),m=Fr(this._tTime,_),!a&&this._tTime&&m!==h&&this._tTime-m*_-this._dur<=0&&(m=h),w&&h&1&&(p=u-p,T=1),h!==m&&!this._lock){var C=w&&m&1,M=C===(w&&h&1);if(h<m&&(C=!C),a=C?0:f%u?u:f,this._lock=1,this.render(a||(T?0:Se(h*_)),o,!u)._lock=0,this._tTime=f,!o&&this.parent&&Je(this,"onRepeat"),this.vars.repeatRefresh&&!T&&(this.invalidate()._lock=1),a&&a!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,M&&(this._lock=2,a=C?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!T&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;ha(this,T)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=wu(this,Se(a),Se(p)),b&&(f-=p-(p=b._start))),this._tTime=f,this._time=p,this._act=!S,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&f&&!o&&!m&&(Je(this,"onStart"),this._tTime!==f))return this;if(p>=a&&i>=0)for(l=this._first;l;){if(g=l._next,(l._act||p>=l._start)&&l._ts&&b!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(p-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(p-l._start)*l._ts,o,s),p!==this._time||!this._ts&&!v){b=0,g&&(f+=this._zTime=-le);break}}l=g}else{l=this._last;for(var N=i<0?i:p;l;){if(g=l._prev,(l._act||N<=l._end)&&l._ts&&b!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(N-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(N-l._start)*l._ts,o,s||Ae&&io(l)),p!==this._time||!this._ts&&!v){b=0,g&&(f+=this._zTime=N?-le:le);break}}l=g}}if(b&&!o&&(this.pause(),b.render(p>=a?0:-le)._zTime=p>=a?1:-1,this._ts))return this._start=P,ti(this),this.render(i,o,s);this._onUpdate&&!o&&Je(this,"onUpdate",!0),(f===c&&this._tTime>=this.totalDuration()||!f&&a)&&(P===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===c&&this._ts>0||!f&&this._ts<0)&&jt(this,1),!o&&!(i<0&&!a)&&(f||a||!c)&&(Je(this,f===c&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<c&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(i,o){var s=this;if(Lt(o)||(o=st(this,o,i)),!(i instanceof bn)){if(Ne(i))return i.forEach(function(a){return s.add(a,o)}),this;if(Me(i))return this.addLabel(i,o);if(_e(i))i=Te.delayedCall(0,i);else return this}return this!==i?Et(this,i,o):this},t.getChildren=function(i,o,s,a){i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=!0),a===void 0&&(a=-ot);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof Te?o&&c.push(u):(s&&c.push(u),i&&c.push.apply(c,u.getChildren(!0,o,s)))),u=u._next;return c},t.getById=function(i){for(var o=this.getChildren(1,1,1),s=o.length;s--;)if(o[s].vars.id===i)return o[s]},t.remove=function(i){return Me(i)?this.removeLabel(i):_e(i)?this.killTweensOf(i):(i.parent===this&&Jn(this,i),i===this._recent&&(this._recent=this._last),lr(this))},t.totalTime=function(i,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Se(et.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),n.prototype.totalTime.call(this,i,o),this._forcing=0,this):this._tTime},t.addLabel=function(i,o){return this.labels[i]=st(this,o),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,o,s){var a=Te.delayedCall(0,o||pn,s);return a.data="isPause",this._hasPause=1,Et(this,a,st(this,i))},t.removePause=function(i){var o=this._first;for(i=st(this,i);o;)o._start===i&&o.data==="isPause"&&jt(o),o=o._next},t.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),c=a.length;c--;)qt!==a[c]&&a[c].kill(i,o);return this},t.getTweensOf=function(i,o){for(var s=[],a=at(i),c=this._first,u=Lt(o),f;c;)c instanceof Te?pu(c._targets,a)&&(u?(!qt||c._initted&&c._ts)&&c.globalTime(0)<=o&&c.globalTime(c.totalDuration())>o:!o||c.isActive())&&s.push(c):(f=c.getTweensOf(a,o)).length&&s.push.apply(s,f),c=c._next;return s},t.tweenTo=function(i,o){o=o||{};var s=this,a=st(s,i),c=o,u=c.startAt,f=c.onStart,d=c.onStartParams,p=c.immediateRender,l,g=Te.to(s,Ze({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:o.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale())||le,onStart:function(){if(s.pause(),!l){var _=o.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());g._dur!==_&&Br(g,_,0,1).render(g._time,!0,!0),l=1}f&&f.apply(g,d||[])}},o));return p?g.render(0):g},t.tweenFromTo=function(i,o,s){return this.tweenTo(o,Ze({startAt:{time:st(this,i)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),oa(this,st(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),oa(this,st(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+le)},t.shiftChildren=function(i,o,s){s===void 0&&(s=0);for(var a=this._first,c=this.labels,u;a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(o)for(u in c)c[u]>=s&&(c[u]+=i);return lr(this)},t.invalidate=function(i){var o=this._first;for(this._lock=0;o;)o.invalidate(i),o=o._next;return n.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var o=this._first,s;o;)s=o._next,this.remove(o),o=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),lr(this)},t.totalDuration=function(i){var o=0,s=this,a=s._last,c=ot,u,f,d;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(d=s.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),f=a._start,f>c&&s._sort&&a._ts&&!s._lock?(s._lock=1,Et(s,a,f-a._delay,1)._lock=0):c=f,f<0&&a._ts&&(o-=f,(!d&&!s._dp||d&&d.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),c=0),a._end>o&&a._ts&&(o=a._end),a=u;Br(s,s===ge&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(ge._ts&&(Ws(ge,ei(i,ge)),Fs=et.frame),et.frame>=Bs){Bs+=qe.autoSleep||120;var o=ge._first;if((!o||!o._ts)&&qe.autoSleep&&et._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||et.sleep()}}},e})(bn);Ze(Xe.prototype,{_lock:0,_hasPause:0,_forcing:0});var Nu=function(e,t,r,i,o,s,a){var c=new je(this._pt,e,t,0,1,wa,null,o),u=0,f=0,d,p,l,g,h,_,v,b;for(c.b=r,c.e=i,r+="",i+="",(v=~i.indexOf("random("))&&(i=yn(i)),s&&(b=[r,i],s(b,e,t),r=b[0],i=b[1]),p=r.match(qi)||[];d=qi.exec(i);)g=d[0],h=i.substring(u,d.index),l?l=(l+1)%5:h.substr(-5)==="rgba("&&(l=1),g!==p[f++]&&(_=parseFloat(p[f-1])||0,c._pt={_next:c._pt,p:h||f===1?h:",",s:_,c:g.charAt(1)==="="?Nr(_,g)-_:parseFloat(g)-_,m:l&&l<4?Math.round:0},u=qi.lastIndex);return c.c=u<i.length?i.substring(u,i.length):"",c.fp=a,($s.test(i)||v)&&(c.e=0),this._pt=c,c},po=function(e,t,r,i,o,s,a,c,u,f){_e(i)&&(i=i(o||0,e,s));var d=e[t],p=r!=="get"?r:_e(d)?u?e[t.indexOf("set")||!_e(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():d,l=_e(d)?u?Wu:xa:_o,g;if(Me(i)&&(~i.indexOf("random(")&&(i=yn(i)),i.charAt(1)==="="&&(g=Nr(p,i)+(ze(p)||0),(g||g===0)&&(i=g))),!f||p!==i||go)return!isNaN(p*i)&&i!==""?(g=new je(this._pt,e,t,+p||0,i-(p||0),typeof d=="boolean"?Hu:va,0,l),u&&(g.fp=u),a&&g.modifier(a,this,e),this._pt=g):(!d&&!(t in e)&&Zi(t,i),Nu.call(this,e,t,p,i,l,c||qe.stringFilter,u))},zu=function(e,t,r,i,o){if(_e(e)&&(e=Sn(e,o,t,r,i)),!kt(e)||e.style&&e.nodeType||Ne(e)||As(e))return Me(e)?Sn(e,o,t,r,i):e;var s={},a;for(a in e)s[a]=Sn(e[a],o,t,r,i);return s},ma=function(e,t,r,i,o,s){var a,c,u,f;if(Qe[e]&&(a=new Qe[e]).init(o,a.rawVars?t[e]:zu(t[e],i,o,s,r),r,i,s)!==!1&&(r._pt=c=new je(r._pt,o,e,0,1,a.render,a,0,a.priority),r!==Yr))for(u=r._ptLookup[r._targets.indexOf(o)],f=a._props.length;f--;)u[a._props[f]]=c;return a},qt,go,mo=function n(e,t,r){var i=e.vars,o=i.ease,s=i.startAt,a=i.immediateRender,c=i.lazy,u=i.onUpdate,f=i.runBackwards,d=i.yoyoEase,p=i.keyframes,l=i.autoRevert,g=e._dur,h=e._startAt,_=e._targets,v=e.parent,b=v&&v.data==="nested"?v.vars.targets:_,S=e._overwrite==="auto"&&!Hi,P=e.timeline,m,w,T,C,M,N,R,$,O,V,j,F,H;if(P&&(!p||!o)&&(o="none"),e._ease=cr(o,Lr.ease),e._yEase=d?da(cr(d===!0?o:d,Lr.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!P&&!!i.runBackwards,!P||p&&!i.stagger){if($=_[0]?ar(_[0]).harness:0,F=$&&i[$.prop],m=Zn(i,Ji),h&&(h._zTime<0&&h.progress(1),t<0&&f&&a&&!l?h.render(-1,!0):h.revert(f&&g?qn:du),h._lazy=0),s){if(jt(e._startAt=Te.set(_,Ze({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!h&&He(c),startAt:null,delay:0,onUpdate:u&&function(){return Je(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Ae||!a&&!l)&&e._startAt.revert(qn),a&&g&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(f&&g&&!h){if(t&&(a=!1),T=Ze({overwrite:!1,data:"isFromStart",lazy:a&&!h&&He(c),immediateRender:a,stagger:0,parent:v},m),F&&(T[$.prop]=F),jt(e._startAt=Te.set(_,T)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Ae?e._startAt.revert(qn):e._startAt.render(-1,!0)),e._zTime=t,!a)n(e._startAt,le,le);else if(!t)return}for(e._pt=e._ptCache=0,c=g&&He(c)||c&&!g,w=0;w<_.length;w++){if(M=_[w],R=M._gsap||no(_)[w]._gsap,e._ptLookup[w]=V={},eo[R.id]&&Vt.length&&Qn(),j=b===_?w:b.indexOf(M),$&&(O=new $).init(M,F||m,e,j,b)!==!1&&(e._pt=C=new je(e._pt,M,O.name,0,1,O.render,O,0,O.priority),O._props.forEach(function(ie){V[ie]=C}),O.priority&&(N=1)),!$||F)for(T in m)Qe[T]&&(O=ma(T,m,e,j,M,b))?O.priority&&(N=1):V[T]=C=po.call(e,M,T,"get",m[T],j,b,0,i.stringFilter);e._op&&e._op[w]&&e.kill(M,e._op[w]),S&&e._pt&&(qt=e,ge.killTweensOf(M,V,e.globalTime(t)),H=!e.parent,qt=0),e._pt&&c&&(eo[R.id]=1)}N&&ba(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!H,p&&t<=0&&P.render(ot,!0,!0)},Fu=function(e,t,r,i,o,s,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],f,d,p,l;if(!u)for(u=e._ptCache[t]=[],p=e._ptLookup,l=e._targets.length;l--;){if(f=p[l][t],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==t&&f.fp!==t;)f=f._next;if(!f)return go=1,e.vars[t]="+=0",mo(e,a),go=0,c?hn(t+" not eligible for reset"):1;u.push(f)}for(l=u.length;l--;)d=u[l],f=d._pt||d,f.s=(i||i===0)&&!o?i:f.s+(i||0)+s*f.c,f.c=r-f.s,d.e&&(d.e=ye(r)+ze(d.e)),d.b&&(d.b=f.s+ze(d.b))},Bu=function(e,t){var r=e[0]?ar(e[0]).harness:0,i=r&&r.aliases,o,s,a,c;if(!i)return t;o=zr({},t);for(s in i)if(s in o)for(c=i[s].split(","),a=c.length;a--;)o[c[a]]=o[s];return o},Yu=function(e,t,r,i){var o=t.ease||i||"power1.inOut",s,a;if(Ne(t))a=r[e]||(r[e]=[]),t.forEach(function(c,u){return a.push({t:u/(t.length-1)*100,v:c,e:o})});else for(s in t)a=r[s]||(r[s]=[]),s==="ease"||a.push({t:parseFloat(e),v:t[s],e:o})},Sn=function(e,t,r,i,o){return _e(e)?e.call(t,r,i,o):Me(e)&&~e.indexOf("random(")?yn(e):e},_a=ro+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ya={};Ve(_a+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return ya[n]=1});var Te=(function(n){Os(e,n);function e(r,i,o,s){var a;typeof i=="number"&&(o.duration=i,i=o,o=null),a=n.call(this,s?i:gn(i))||this;var c=a.vars,u=c.duration,f=c.delay,d=c.immediateRender,p=c.stagger,l=c.overwrite,g=c.keyframes,h=c.defaults,_=c.scrollTrigger,v=c.yoyoEase,b=i.parent||ge,S=(Ne(r)||As(r)?Lt(r[0]):"length"in i)?[r]:at(r),P,m,w,T,C,M,N,R;if(a._targets=S.length?no(S):hn("GSAP target "+r+" not found. https://gsap.com",!qe.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=l,g||p||Un(u)||Un(f)){if(i=a.vars,P=a.timeline=new Xe({data:"nested",defaults:h||{},targets:b&&b.data==="nested"?b.vars.targets:S}),P.kill(),P.parent=P._dp=$t(a),P._start=0,p||Un(u)||Un(f)){if(T=S.length,N=p&&ea(p),kt(p))for(C in p)~_a.indexOf(C)&&(R||(R={}),R[C]=p[C]);for(m=0;m<T;m++)w=Zn(i,ya),w.stagger=0,v&&(w.yoyoEase=v),R&&zr(w,R),M=S[m],w.duration=+Sn(u,$t(a),m,M,S),w.delay=(+Sn(f,$t(a),m,M,S)||0)-a._delay,!p&&T===1&&w.delay&&(a._delay=f=w.delay,a._start+=f,w.delay=0),P.to(M,w,N?N(m,M,S):0),P._ease=Z.none;P.duration()?u=f=0:a.timeline=0}else if(g){gn(Ze(P.vars.defaults,{ease:"none"})),P._ease=cr(g.ease||i.ease||"none");var $=0,O,V,j;if(Ne(g))g.forEach(function(F){return P.to(S,F,">")}),P.duration();else{w={};for(C in g)C==="ease"||C==="easeEach"||Yu(C,g[C],w,g.easeEach);for(C in w)for(O=w[C].sort(function(F,H){return F.t-H.t}),$=0,m=0;m<O.length;m++)V=O[m],j={ease:V.e,duration:(V.t-(m?O[m-1].t:0))/100*u},j[C]=V.v,P.to(S,j,$),$+=j.duration;P.duration()<u&&P.to({},{duration:u-P.duration()})}}u||a.duration(u=P.duration())}else a.timeline=0;return l===!0&&!Hi&&(qt=$t(a),ge.killTweensOf(S),qt=0),Et(b,$t(a),o),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(d||!u&&!g&&a._start===Se(b._time)&&He(d)&&yu($t(a))&&b.data!=="nested")&&(a._tTime=-le,a.render(Math.max(0,-f)||0)),_&&qs($t(a),_),a}var t=e.prototype;return t.render=function(i,o,s){var a=this._time,c=this._tDur,u=this._dur,f=i<0,d=i>c-le&&!f?c:i<le?0:i,p,l,g,h,_,v,b,S,P;if(!u)vu(this,i,o,s);else if(d!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(p=d,S=this.timeline,this._repeat){if(h=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+i,o,s);if(p=Se(d%h),d===c?(g=this._repeat,p=u):(_=Se(d/h),g=~~_,g&&g===_?(p=u,g--):p>u&&(p=u)),v=this._yoyo&&g&1,v&&(P=this._yEase,p=u-p),_=Fr(this._tTime,h),p===a&&!s&&this._initted&&g===_)return this._tTime=d,this;g!==_&&(S&&this._yEase&&ha(S,v),this.vars.repeatRefresh&&!v&&!this._lock&&p!==h&&this._initted&&(this._lock=s=1,this.render(Se(h*g),!0).invalidate()._lock=0))}if(!this._initted){if(Ks(this,f?i:p,s,o,d))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&g!==_))return this;if(u!==this._dur)return this.render(i,o,s)}if(this._tTime=d,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(P||this._ease)(p/u),this._from&&(this.ratio=b=1-b),!a&&d&&!o&&!_&&(Je(this,"onStart"),this._tTime!==d))return this;for(l=this._pt;l;)l.r(b,l.d),l=l._next;S&&S.render(i<0?i:S._dur*S._ease(p/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(f&&oo(this,i,o,s),Je(this,"onUpdate")),this._repeat&&g!==_&&this.vars.onRepeat&&!o&&this.parent&&Je(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(f&&!this._onUpdate&&oo(this,i,!0,!0),(i||!u)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&jt(this,1),!o&&!(f&&!a)&&(d||a||v)&&(Je(this,d===c?"onComplete":"onReverseComplete",!0),this._prom&&!(d<c&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),n.prototype.invalidate.call(this,i)},t.resetTo=function(i,o,s,a,c){wn||et.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||mo(this,u),f=this._ease(u/this._dur),Fu(this,i,o,s,a,f,u,c)?this.resetTo(i,o,s,a,1):(ri(this,0),this.parent||js(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,o){if(o===void 0&&(o="all"),!i&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?xn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ae),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,qt&&qt.vars.overwrite!==!0)._first||xn(this),this.parent&&s!==this.timeline.totalDuration()&&Br(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,c=i?at(i):a,u=this._ptLookup,f=this._pt,d,p,l,g,h,_,v;if((!o||o==="all")&&mu(a,c))return o==="all"&&(this._pt=0),xn(this);for(d=this._op=this._op||[],o!=="all"&&(Me(o)&&(h={},Ve(o,function(b){return h[b]=1}),o=h),o=Bu(a,o)),v=a.length;v--;)if(~c.indexOf(a[v])){p=u[v],o==="all"?(d[v]=o,g=p,l={}):(l=d[v]=d[v]||{},g=o);for(h in g)_=p&&p[h],_&&((!("kill"in _.d)||_.d.kill(h)===!0)&&Jn(this,_,"_pt"),delete p[h]),l!=="all"&&(l[h]=1)}return this._initted&&!this._pt&&f&&xn(this),this},e.to=function(i,o){return new e(i,o,arguments[2])},e.from=function(i,o){return mn(1,arguments)},e.delayedCall=function(i,o,s,a){return new e(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:o,onReverseComplete:o,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(i,o,s){return mn(2,arguments)},e.set=function(i,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new e(i,o)},e.killTweensOf=function(i,o,s){return ge.killTweensOf(i,o,s)},e})(bn);Ze(Te.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ve("staggerTo,staggerFrom,staggerFromTo",function(n){Te[n]=function(){var e=new Xe,t=ao.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var _o=function(e,t,r){return e[t]=r},xa=function(e,t,r){return e[t](r)},Wu=function(e,t,r,i){return e[t](i.fp,r)},Xu=function(e,t,r){return e.setAttribute(t,r)},yo=function(e,t){return _e(e[t])?xa:ji(e[t])&&e.setAttribute?Xu:_o},va=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Hu=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},wa=function(e,t){var r=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=t.c}t.set(t.t,t.p,i,t)},xo=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Vu=function(e,t,r,i){for(var o=this._pt,s;o;)s=o._next,o.p===i&&o.modifier(e,t,r),o=s},ju=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?Jn(this,t,"_pt"):t.dep||(r=1),t=i;return!r},Uu=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},ba=function(e){for(var t=e._pt,r,i,o,s;t;){for(r=t._next,i=o;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:s)?t._prev._next=t:o=t,(t._next=i)?i._prev=t:s=t,t=r}e._pt=o},je=(function(){function n(t,r,i,o,s,a,c,u,f){this.t=r,this.s=o,this.c=s,this.p=i,this.r=a||va,this.d=c||this,this.set=u||_o,this.pr=f||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(r,i,o){this.mSet=this.mSet||this.set,this.set=Uu,this.m=r,this.mt=o,this.tween=i},n})();Ve(ro+"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(n){return Ji[n]=1}),Ke.TweenMax=Ke.TweenLite=Te,Ke.TimelineLite=Ke.TimelineMax=Xe,ge=new Xe({sortChildren:!1,defaults:Lr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),qe.stringFilter=fa;var fr=[],ni={},Gu=[],Sa=0,qu=0,vo=function(e){return(ni[e]||Gu).map(function(t){return t()})},wo=function(){var e=Date.now(),t=[];e-Sa>2&&(vo("matchMediaInit"),fr.forEach(function(r){var i=r.queries,o=r.conditions,s,a,c,u;for(a in i)s=Pt.matchMedia(i[a]).matches,s&&(c=1),s!==o[a]&&(o[a]=s,u=1);u&&(r.revert(),c&&t.push(r))}),vo("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Sa=e,vo("matchMedia"))},Ta=(function(){function n(t,r){this.selector=r&&lo(r),this.data=[],this._r=[],this.isReverted=!1,this.id=qu++,t&&this.add(t)}var e=n.prototype;return e.add=function(r,i,o){_e(r)&&(o=i,i=r,r=_e);var s=this,a=function(){var u=pe,f=s.selector,d;return u&&u!==s&&u.data.push(s),o&&(s.selector=lo(o)),pe=s,d=i.apply(s,arguments),_e(d)&&s._r.push(d),pe=u,s.selector=f,s.isReverted=!1,d};return s.last=a,r===_e?a(s,function(c){return s.add(null,c)}):r?s[r]=a:a},e.ignore=function(r){var i=pe;pe=null,r(this),pe=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof n?r.push.apply(r,i.getTweens()):i instanceof Te&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var o=this;if(r?(function(){for(var a=o.getTweens(),c=o.data.length,u;c--;)u=o.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return a.splice(a.indexOf(f),1)}));for(a.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,d){return d.g-f.g||-1/0}).forEach(function(f){return f.t.revert(r)}),c=o.data.length;c--;)u=o.data[c],u instanceof Xe?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Te)&&u.revert&&u.revert(r);o._r.forEach(function(f){return f(r,o)}),o.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=fr.length;s--;)fr[s].id===this.id&&fr.splice(s,1)},e.revert=function(r){this.kill(r||{})},n})(),Ku=(function(){function n(t){this.contexts=[],this.scope=t,pe&&pe.data.push(this)}var e=n.prototype;return e.add=function(r,i,o){kt(r)||(r={matches:r});var s=new Ta(0,o||this.scope),a=s.conditions={},c,u,f;pe&&!s.selector&&(s.selector=pe.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(u in r)u==="all"?f=1:(c=Pt.matchMedia(r[u]),c&&(fr.indexOf(s)<0&&fr.push(s),(a[u]=c.matches)&&(f=1),c.addListener?c.addListener(wo):c.addEventListener("change",wo)));return f&&i(s,function(d){return s.add(null,d)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},n})(),ii={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(i){return aa(i)})},timeline:function(e){return new Xe(e)},getTweensOf:function(e,t){return ge.getTweensOf(e,t)},getProperty:function(e,t,r,i){Me(e)&&(e=at(e)[0]);var o=ar(e||{}).get,s=r?Hs:Xs;return r==="native"&&(r=""),e&&(t?s((Qe[t]&&Qe[t].get||o)(e,t,r,i)):function(a,c,u){return s((Qe[a]&&Qe[a].get||o)(e,a,c,u))})},quickSetter:function(e,t,r){if(e=at(e),e.length>1){var i=e.map(function(f){return Ue.quickSetter(f,t,r)}),o=i.length;return function(f){for(var d=o;d--;)i[d](f)}}e=e[0]||{};var s=Qe[t],a=ar(e),c=a.harness&&(a.harness.aliases||{})[t]||t,u=s?function(f){var d=new s;Yr._pt=0,d.init(e,r?f+r:f,Yr,0,[e]),d.render(1,d),Yr._pt&&xo(1,Yr)}:a.set(e,c);return s?u:function(f){return u(e,c,r?f+r:f,a,1)}},quickTo:function(e,t,r){var i,o=Ue.to(e,Ze((i={},i[t]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(c,u,f){return o.resetTo(t,c,u,f)};return s.tween=o,s},isTweening:function(e){return ge.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=cr(e.ease,Lr.ease)),Vs(Lr,e||{})},config:function(e){return Vs(qe,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,i=e.plugins,o=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Qe[a]&&!Ke[a]&&hn(t+" effect requires "+a+" plugin.")}),to[t]=function(a,c,u){return r(at(a),Ze(c||{},o),u)},s&&(Xe.prototype[t]=function(a,c,u){return this.add(to[t](a,kt(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,t){Z[e]=cr(t)},parseEase:function(e,t){return arguments.length?cr(e,t):Z},getById:function(e){return ge.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new Xe(e),i,o;for(r.smoothChildTiming=He(e.smoothChildTiming),ge.remove(r),r._dp=0,r._time=r._tTime=ge._time,i=ge._first;i;)o=i._next,(t||!(!i._dur&&i instanceof Te&&i.vars.onComplete===i._targets[0]))&&Et(r,i,i._start-i._delay),i=o;return Et(ge,r,0),r},context:function(e,t){return e?new Ta(e,t):pe},matchMedia:function(e){return new Ku(e)},matchMediaRefresh:function(){return fr.forEach(function(e){var t=e.conditions,r,i;for(i in t)t[i]&&(t[i]=!1,r=1);r&&e.revert()})||wo()},addEventListener:function(e,t){var r=ni[e]||(ni[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=ni[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:Eu,wrapYoyo:Mu,distribute:ea,random:ra,snap:ta,normalize:Pu,getUnit:ze,clamp:Su,splitColor:la,toArray:at,selector:lo,mapRange:ia,pipe:Cu,unitize:ku,interpolate:Ou,shuffle:Js},install:Ns,effects:to,ticker:et,updateRoot:Xe.updateRoot,plugins:Qe,globalTimeline:ge,core:{PropTween:je,globals:zs,Tween:Te,Timeline:Xe,Animation:bn,getCache:ar,_removeLinkedListItem:Jn,reverting:function(){return Ae},context:function(e){return e&&pe&&(pe.data.push(e),e._ctx=pe),pe},suppressOverwrites:function(e){return Hi=e}}};Ve("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return ii[n]=Te[n]}),et.add(Xe.updateRoot),Yr=ii.to({},{duration:0});var Qu=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},Zu=function(e,t){var r=e._targets,i,o,s;for(i in t)for(o=r.length;o--;)s=e._ptLookup[o][i],s&&(s=s.d)&&(s._pt&&(s=Qu(s,i)),s&&s.modifier&&s.modifier(t[i],e,r[o],i))},bo=function(e,t){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var c,u;if(Me(o)&&(c={},Ve(o,function(f){return c[f]=1}),o=c),t){c={};for(u in o)c[u]=t(o[u]);o=c}Zu(a,o)}}}},Ue=ii.registerPlugin({name:"attr",init:function(e,t,r,i,o){var s,a,c;this.tween=r;for(s in t)c=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(c||0)+"",t[s],i,o,0,0,s),a.op=s,a.b=c,this._props.push(s)},render:function(e,t){for(var r=t._pt;r;)Ae?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},bo("roundProps",co),bo("modifiers"),bo("snap",ta))||ii;Te.version=Xe.version=Ue.version="3.13.0",Is=1,Ui()&&Wr(),Z.Power0,Z.Power1,Z.Power2,Z.Power3,Z.Power4,Z.Linear,Z.Quad,Z.Cubic,Z.Quart,Z.Quint,Z.Strong,Z.Elastic,Z.Back,Z.SteppedEase,Z.Bounce,Z.Sine,Z.Expo,Z.Circ;/*!
|
|
9
9
|
* CSSPlugin 3.13.0
|
|
10
10
|
* https://gsap.com
|
|
11
11
|
*
|
|
12
12
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
13
13
|
* Subject to the terms at https://gsap.com/standard-license
|
|
14
14
|
* @author: Jack Doyle, jack@greensock.com
|
|
15
|
-
*/var Ta,Zt,Vr,So,pr,ka,Co,Zu=function(){return typeof window<"u"},zt={},gr=180/Math.PI,jr=Math.PI/180,Ur=Math.atan2,Pa=1e8,To=/([A-Z])/g,Ju=/(left|right|width|margin|padding|x)/i,ef=/[\s,\(]\S/,At={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ko=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},tf=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rf=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},nf=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Ea=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Ma=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},of=function(e,t,r){return e.style[t]=r},sf=function(e,t,r){return e.style.setProperty(t,r)},af=function(e,t,r){return e._gsap[t]=r},lf=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},cf=function(e,t,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},uf=function(e,t,r,i,o){var s=e._gsap;s[t]=r,s.renderTransform(o,s)},me="transform",Ke=me+"Origin",ff=function n(e,t){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in zt&&o){if(this.tfm=this.tfm||{},e!=="transform")e=At[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Ft(i,a)}):this.tfm[e]=s.x?s[e]:Ft(i,e),e===Ke&&(this.tfm.zOrigin=s.zOrigin);else return At.transform.split(",").forEach(function(a){return n.call(r,a,t)});if(this.props.indexOf(me)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ke,t,"")),e=me}(o||t)&&this.props.push(e,t,o[e])},Oa=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},df=function(){var e=this.props,t=this.target,r=t.style,i=t._gsap,o,s;for(o=0;o<e.length;o+=3)e[o+1]?e[o+1]===2?t[e[o]](e[o+2]):t[e[o]]=e[o+2]:e[o+2]?r[e[o]]=e[o+2]:r.removeProperty(e[o].substr(0,2)==="--"?e[o]:e[o].replace(To,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),o=Co(),(!o||!o.isStart)&&!r[me]&&(Oa(r),i.zOrigin&&r[Ke]&&(r[Ke]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Aa=function(e,t){var r={target:e,props:[],revert:df,save:ff};return e._gsap||qe.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(i){return r.save(i)}),r},Da,Po=function(e,t){var r=Zt.createElementNS?Zt.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Zt.createElement(e);return r&&r.style?r:Zt.createElement(e)},ft=function n(e,t,r){var i=getComputedStyle(e);return i[t]||i.getPropertyValue(t.replace(To,"-$1").toLowerCase())||i.getPropertyValue(t)||!r&&n(e,Gr(t)||t,1)||""},Ra="O,Moz,ms,Ms,Webkit".split(","),Gr=function(e,t,r){var i=t||pr,o=i.style,s=5;if(e in o&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Ra[s]+e in o););return s<0?null:(s===3?"ms":s>=0?Ra[s]:"")+e},Eo=function(){Zu()&&window.document&&(Ta=window,Zt=Ta.document,Vr=Zt.documentElement,pr=Po("div")||{style:{}},Po("div"),me=Gr(me),Ke=me+"Origin",pr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Da=!!Gr("perspective"),Co=qe.core.reverting,So=1)},$a=function(e){var t=e.ownerSVGElement,r=Po("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),Vr.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),Vr.removeChild(r),o},La=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Ia=function(e){var t,r;try{t=e.getBBox()}catch{t=$a(e),r=1}return t&&(t.width||t.height)||r||(t=$a(e)),t&&!t.width&&!t.x&&!t.y?{x:+La(e,["x","cx","x1"])||0,y:+La(e,["y","cy","y1"])||0,width:0,height:0}:t},Na=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ia(e))},mr=function(e,t){if(t){var r=e.style,i;t in zt&&t!==Ke&&(t=me),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace(To,"-$1").toLowerCase())):r.removeAttribute(t)}},Jt=function(e,t,r,i,o,s){var a=new Ge(e._pt,t,r,0,1,s?Ma:Ea);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},za={deg:1,rad:1,turn:1},hf={grid:1,flex:1},er=function n(e,t,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=pr.style,c=Ju.test(t),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(c?"Width":"Height"),d=100,g=i==="px",l=i==="%",p,h,m,v;if(i===s||!o||za[i]||za[s])return o;if(s!=="px"&&!g&&(o=n(e,t,r,"px")),v=e.getCTM&&Na(e),(l||s==="%")&&(zt[t]||~t.indexOf("adius")))return p=v?e.getBBox()[c?"width":"height"]:e[f],ye(l?o/p*d:o/100*p);if(a[c?"width":"height"]=d+(g?s:i),h=i!=="rem"&&~t.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,v&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Zt||!h.appendChild)&&(h=Zt.body),m=h._gsap,m&&l&&m.width&&c&&m.time===rt.time&&!m.uncache)return ye(o/m.width*d);if(l&&(t==="height"||t==="width")){var b=e.style[t];e.style[t]=d+i,p=e[f],b?e.style[t]=b:mr(e,t)}else(l||s==="%")&&!hf[ft(h,"display")]&&(a.position=ft(e,"position")),h===e&&(a.position="static"),h.appendChild(pr),p=pr[f],h.removeChild(pr),a.position="absolute";return c&&l&&(m=cr(h),m.time=rt.time,m.width=h[f]),ye(g?p*o/d:p&&o?d/p*o:0)},Ft=function(e,t,r,i){var o;return So||Eo(),t in At&&t!=="transform"&&(t=At[t],~t.indexOf(",")&&(t=t.split(",")[0])),zt[t]&&t!=="transform"?(o=Pn(e,i),o=t!=="transformOrigin"?o[t]:o.svg?o.origin:li(ft(e,Ke))+" "+o.zOrigin+"px"):(o=e.style[t],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=ai[t]&&ai[t](e,t,r)||ft(e,t)||Ys(e,t)||(t==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?er(e,t,o,r)+r:o},pf=function(e,t,r,i){if(!r||r==="none"){var o=Gr(t,e,1),s=o&&ft(e,o,1);s&&s!==r?(t=o,r=s):t==="borderColor"&&(r=ft(e,"borderTopColor"))}var a=new Ge(this._pt,e.style,t,0,1,wa),c=0,u=0,f,d,g,l,p,h,m,v,b,S,P,_;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=ft(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[t],e.style[t]=i,i=ft(e,t)||i,h?e.style[t]=h:mr(e,t)),f=[r,i],fa(f),r=f[0],i=f[1],g=r.match(zr)||[],_=i.match(zr)||[],_.length){for(;d=zr.exec(i);)m=d[0],b=i.substring(c,d.index),p?p=(p+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(p=1),m!==(h=g[u++]||"")&&(l=parseFloat(h)||0,P=h.substr((l+"").length),m.charAt(1)==="="&&(m=Fr(l,m)+P),v=parseFloat(m),S=m.substr((v+"").length),c=zr.lastIndex-S.length,S||(S=S||Qe.units[t]||P,c===i.length&&(i+=S,a.e+=S)),P!==S&&(l=er(e,t,h,S)||0),a._pt={_next:a._pt,p:b||u===1?b:",",s:l,c:v-l,m:p&&p<4||t==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=t==="display"&&i==="none"?Ma:Ea;return $s.test(i)&&(a.e=0),this._pt=a,a},Fa={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},gf=function(e){var t=e.split(" "),r=t[0],i=t[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),t[0]=Fa[r]||r,t[1]=Fa[i]||i,t.join(" ")},mf=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,i=r.style,o=t.u,s=r._gsap,a,c,u;if(o==="all"||o===!0)i.cssText="",c=1;else for(o=o.split(","),u=o.length;--u>-1;)a=o[u],zt[a]&&(c=1,a=a==="transformOrigin"?Ke:me),mr(r,a);c&&(mr(r,me),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Pn(r,1),s.uncache=1,Oa(i)))}},ai={clearProps:function(e,t,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new Ge(e._pt,t,r,0,0,mf);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},kn=[1,0,0,1,0,0],Ba={},Ya=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Wa=function(e){var t=ft(e,me);return Ya(t)?kn:t.substr(7).match(Rs).map(ye)},Mo=function(e,t){var r=e._gsap||cr(e),i=e.style,o=Wa(e),s,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,o=[c.a,c.b,c.c,c.d,c.e,c.f],o.join(",")==="1,0,0,1,0,0"?kn:o):(o===kn&&!e.offsetParent&&e!==Vr&&!r.svg&&(c=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,Vr.appendChild(e)),o=Wa(e),c?i.display=c:mr(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):Vr.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},Oo=function(e,t,r,i,o,s){var a=e._gsap,c=o||Mo(e,!0),u=a.xOrigin||0,f=a.yOrigin||0,d=a.xOffset||0,g=a.yOffset||0,l=c[0],p=c[1],h=c[2],m=c[3],v=c[4],b=c[5],S=t.split(" "),P=parseFloat(S[0])||0,_=parseFloat(S[1])||0,w,C,T,M;r?c!==kn&&(C=l*m-p*h)&&(T=P*(m/C)+_*(-h/C)+(h*b-m*v)/C,M=P*(-p/C)+_*(l/C)-(l*b-p*v)/C,P=T,_=M):(w=Ia(e),P=w.x+(~S[0].indexOf("%")?P/100*w.width:P),_=w.y+(~(S[1]||S[0]).indexOf("%")?_/100*w.height:_)),i||i!==!1&&a.smooth?(v=P-u,b=_-f,a.xOffset=d+(v*l+b*h)-v,a.yOffset=g+(v*p+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=P,a.yOrigin=_,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!r,e.style[Ke]="0px 0px",s&&(Jt(s,a,"xOrigin",u,P),Jt(s,a,"yOrigin",f,_),Jt(s,a,"xOffset",d,a.xOffset),Jt(s,a,"yOffset",g,a.yOffset)),e.setAttribute("data-svg-origin",P+" "+_)},Pn=function(e,t){var r=e._gsap||new ga(e);if("x"in r&&!t&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",c=getComputedStyle(e),u=ft(e,Ke)||"0",f,d,g,l,p,h,m,v,b,S,P,_,w,C,T,M,z,R,L,O,N,Y,B,X,ne,Q,Z,U,H,te,K,$e;return f=d=g=h=m=v=b=S=P=0,l=p=1,r.svg=!!(e.getCTM&&Na(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[me]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[me]!=="none"?c[me]:"")),i.scale=i.rotate=i.translate="none"),C=Mo(e,r.svg),r.svg&&(r.uncache?(ne=e.getBBox(),u=r.xOrigin-ne.x+"px "+(r.yOrigin-ne.y)+"px",X=""):X=!t&&e.getAttribute("data-svg-origin"),Oo(e,X||u,!!X||r.originIsAbsolute,r.smooth!==!1,C)),_=r.xOrigin||0,w=r.yOrigin||0,C!==kn&&(R=C[0],L=C[1],O=C[2],N=C[3],f=Y=C[4],d=B=C[5],C.length===6?(l=Math.sqrt(R*R+L*L),p=Math.sqrt(N*N+O*O),h=R||L?Ur(L,R)*gr:0,b=O||N?Ur(O,N)*gr+h:0,b&&(p*=Math.abs(Math.cos(b*jr))),r.svg&&(f-=_-(_*R+w*O),d-=w-(_*L+w*N))):($e=C[6],te=C[7],Z=C[8],U=C[9],H=C[10],K=C[11],f=C[12],d=C[13],g=C[14],T=Ur($e,H),m=T*gr,T&&(M=Math.cos(-T),z=Math.sin(-T),X=Y*M+Z*z,ne=B*M+U*z,Q=$e*M+H*z,Z=Y*-z+Z*M,U=B*-z+U*M,H=$e*-z+H*M,K=te*-z+K*M,Y=X,B=ne,$e=Q),T=Ur(-O,H),v=T*gr,T&&(M=Math.cos(-T),z=Math.sin(-T),X=R*M-Z*z,ne=L*M-U*z,Q=O*M-H*z,K=N*z+K*M,R=X,L=ne,O=Q),T=Ur(L,R),h=T*gr,T&&(M=Math.cos(T),z=Math.sin(T),X=R*M+L*z,ne=Y*M+B*z,L=L*M-R*z,B=B*M-Y*z,R=X,Y=ne),m&&Math.abs(m)+Math.abs(h)>359.9&&(m=h=0,v=180-v),l=ye(Math.sqrt(R*R+L*L+O*O)),p=ye(Math.sqrt(B*B+$e*$e)),T=Ur(Y,B),b=Math.abs(T)>2e-4?T*gr:0,P=K?1/(K<0?-K:K):0),r.svg&&(X=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Ya(ft(e,me)),X&&e.setAttribute("transform",X))),Math.abs(b)>90&&Math.abs(b)<270&&(o?(l*=-1,b+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,b+=b<=0?180:-180)),t=t||r.uncache,r.x=f-((r.xPercent=f&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=d-((r.yPercent=d&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=g+s,r.scaleX=ye(l),r.scaleY=ye(p),r.rotation=ye(h)+a,r.rotationX=ye(m)+a,r.rotationY=ye(v)+a,r.skewX=b+a,r.skewY=S+a,r.transformPerspective=P+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(i[Ke]=li(u)),r.xOffset=r.yOffset=0,r.force3D=Qe.force3D,r.renderTransform=r.svg?yf:Da?Xa:_f,r.uncache=0,r},li=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ao=function(e,t,r){var i=ze(t);return ye(parseFloat(t)+parseFloat(er(e,"x",r+"px",i)))+i},_f=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Xa(e,t)},_r="0deg",En="0px",yr=") ",Xa=function(e,t){var r=t||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,c=r.z,u=r.rotation,f=r.rotationY,d=r.rotationX,g=r.skewX,l=r.skewY,p=r.scaleX,h=r.scaleY,m=r.transformPerspective,v=r.force3D,b=r.target,S=r.zOrigin,P="",_=v==="auto"&&e&&e!==1||v===!0;if(S&&(d!==_r||f!==_r)){var w=parseFloat(f)*jr,C=Math.sin(w),T=Math.cos(w),M;w=parseFloat(d)*jr,M=Math.cos(w),s=Ao(b,s,C*M*-S),a=Ao(b,a,-Math.sin(w)*-S),c=Ao(b,c,T*M*-S+S)}m!==En&&(P+="perspective("+m+yr),(i||o)&&(P+="translate("+i+"%, "+o+"%) "),(_||s!==En||a!==En||c!==En)&&(P+=c!==En||_?"translate3d("+s+", "+a+", "+c+") ":"translate("+s+", "+a+yr),u!==_r&&(P+="rotate("+u+yr),f!==_r&&(P+="rotateY("+f+yr),d!==_r&&(P+="rotateX("+d+yr),(g!==_r||l!==_r)&&(P+="skew("+g+", "+l+yr),(p!==1||h!==1)&&(P+="scale("+p+", "+h+yr),b.style[me]=P||"translate(0, 0)"},yf=function(e,t){var r=t||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,c=r.rotation,u=r.skewX,f=r.skewY,d=r.scaleX,g=r.scaleY,l=r.target,p=r.xOrigin,h=r.yOrigin,m=r.xOffset,v=r.yOffset,b=r.forceCSS,S=parseFloat(s),P=parseFloat(a),_,w,C,T,M;c=parseFloat(c),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,c+=f),c||u?(c*=jr,u*=jr,_=Math.cos(c)*d,w=Math.sin(c)*d,C=Math.sin(c-u)*-g,T=Math.cos(c-u)*g,u&&(f*=jr,M=Math.tan(u-f),M=Math.sqrt(1+M*M),C*=M,T*=M,f&&(M=Math.tan(f),M=Math.sqrt(1+M*M),_*=M,w*=M)),_=ye(_),w=ye(w),C=ye(C),T=ye(T)):(_=d,T=g,w=C=0),(S&&!~(s+"").indexOf("px")||P&&!~(a+"").indexOf("px"))&&(S=er(l,"x",s,"px"),P=er(l,"y",a,"px")),(p||h||m||v)&&(S=ye(S+p-(p*_+h*C)+m),P=ye(P+h-(p*w+h*T)+v)),(i||o)&&(M=l.getBBox(),S=ye(S+i/100*M.width),P=ye(P+o/100*M.height)),M="matrix("+_+","+w+","+C+","+T+","+S+","+P+")",l.setAttribute("transform",M),b&&(l.style[me]=M)},xf=function(e,t,r,i,o){var s=360,a=Me(o),c=parseFloat(o)*(a&&~o.indexOf("rad")?gr:1),u=c-i,f=i+u+"deg",d,g;return a&&(d=o.split("_")[1],d==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),d==="cw"&&u<0?u=(u+s*Pa)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Pa)%s-~~(u/s)*s)),e._pt=g=new Ge(e._pt,t,r,i,u,tf),g.e=f,g.u="deg",e._props.push(r),g},Ha=function(e,t){for(var r in t)e[r]=t[r];return e},vf=function(e,t,r){var i=Ha({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,f,d,g,l,p;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[me]=t,a=Pn(r,1),mr(r,me),r.setAttribute("transform",u)):(u=getComputedStyle(r)[me],s[me]=t,a=Pn(r,1),s[me]=u);for(c in zt)u=i[c],f=a[c],u!==f&&o.indexOf(c)<0&&(l=ze(u),p=ze(f),d=l!==p?er(r,c,u,p):parseFloat(u),g=parseFloat(f),e._pt=new Ge(e._pt,a,c,d,g-d,ko),e._pt.u=p||0,e._props.push(c));Ha(a,i)};Ue("padding,margin,Width,Radius",function(n,e){var t="Top",r="Right",i="Bottom",o="Left",s=(e<3?[t,r,i,o]:[t+o,t+r,i+r,i+o]).map(function(a){return e<2?n+a:"border"+a+n});ai[e>1?"border"+n:n]=function(a,c,u,f,d){var g,l;if(arguments.length<4)return g=s.map(function(p){return Ft(a,p,u)}),l=g.join(" "),l.split(g[0]).length===5?g[0]:l;g=(f+"").split(" "),l={},s.forEach(function(p,h){return l[p]=g[h]=g[h]||g[(h-1)/2|0]}),a.init(c,l,d)}});var Va={name:"css",register:Eo,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,o){var s=this._props,a=e.style,c=r.vars.startAt,u,f,d,g,l,p,h,m,v,b,S,P,_,w,C,T;So||Eo(),this.styles=this.styles||Aa(e),T=this.styles.props,this.tween=r;for(h in t)if(h!=="autoRound"&&(f=t[h],!(Je[h]&&ma(h,t,r,i,e,o)))){if(l=typeof f,p=ai[h],l==="function"&&(f=f.call(r,i,e,o),l=typeof f),l==="string"&&~f.indexOf("random(")&&(f=vn(f)),p)p(this,e,h,f,r)&&(C=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),f+="",Kt.lastIndex=0,Kt.test(u)||(m=ze(u),v=ze(f)),v?m!==v&&(u=er(e,h,u,v)+v):m&&(f+=m),this.add(a,"setProperty",u,f,i,o,0,0,h),s.push(h),T.push(h,0,a[h]);else if(l!=="undefined"){if(c&&h in c?(u=typeof c[h]=="function"?c[h].call(r,i,e,o):c[h],Me(u)&&~u.indexOf("random(")&&(u=vn(u)),ze(u+"")||u==="auto"||(u+=Qe.units[h]||ze(Ft(e,h))||""),(u+"").charAt(1)==="="&&(u=Ft(e,h))):u=Ft(e,h),g=parseFloat(u),b=l==="string"&&f.charAt(1)==="="&&f.substr(0,2),b&&(f=f.substr(2)),d=parseFloat(f),h in At&&(h==="autoAlpha"&&(g===1&&Ft(e,"visibility")==="hidden"&&d&&(g=0),T.push("visibility",0,a.visibility),Jt(this,a,"visibility",g?"inherit":"hidden",d?"inherit":"hidden",!d)),h!=="scale"&&h!=="transform"&&(h=At[h],~h.indexOf(",")&&(h=h.split(",")[0]))),S=h in zt,S){if(this.styles.save(h),l==="string"&&f.substring(0,6)==="var(--"&&(f=ft(e,f.substring(4,f.indexOf(")"))),d=parseFloat(f)),P||(_=e._gsap,_.renderTransform&&!t.parseTransform||Pn(e,t.parseTransform),w=t.smoothOrigin!==!1&&_.smooth,P=this._pt=new Ge(this._pt,a,me,0,1,_.renderTransform,_,0,-1),P.dep=1),h==="scale")this._pt=new Ge(this._pt,_,"scaleY",_.scaleY,(b?Fr(_.scaleY,b+d):d)-_.scaleY||0,ko),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){T.push(Ke,0,a[Ke]),f=gf(f),_.svg?Oo(e,f,0,w,0,this):(v=parseFloat(f.split(" ")[2])||0,v!==_.zOrigin&&Jt(this,_,"zOrigin",_.zOrigin,v),Jt(this,a,h,li(u),li(f)));continue}else if(h==="svgOrigin"){Oo(e,f,1,w,0,this);continue}else if(h in Ba){xf(this,_,h,g,b?Fr(g,b+f):f);continue}else if(h==="smoothOrigin"){Jt(this,_,"smooth",_.smooth,f);continue}else if(h==="force3D"){_[h]=f;continue}else if(h==="transform"){vf(this,f,e);continue}}else h in a||(h=Gr(h)||h);if(S||(d||d===0)&&(g||g===0)&&!ef.test(f)&&h in a)m=(u+"").substr((g+"").length),d||(d=0),v=ze(f)||(h in Qe.units?Qe.units[h]:m),m!==v&&(g=er(e,h,u,v)),this._pt=new Ge(this._pt,S?_:a,h,g,(b?Fr(g,b+d):d)-g,!S&&(v==="px"||h==="zIndex")&&t.autoRound!==!1?nf:ko),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=rf);else if(h in a)pf.call(this,e,h,u,b?b+f:f);else if(h in e)this.add(e,h,u||e[h],b?b+f:f,i,o);else if(h!=="parseTransform"){Zi(h,f);continue}S||(h in a?T.push(h,0,a[h]):typeof e[h]=="function"?T.push(h,2,e[h]()):T.push(h,1,u||e[h])),s.push(h)}}C&&ba(this)},render:function(e,t){if(t.tween._time||!Co())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Ft,aliases:At,getSetter:function(e,t,r){var i=At[t];return i&&i.indexOf(",")<0&&(t=i),t in zt&&t!==Ke&&(e._gsap.x||Ft(e,"x"))?r&&ka===r?t==="scale"?lf:af:(ka=r||{})&&(t==="scale"?cf:uf):e.style&&!ji(e.style[t])?of:~t.indexOf("-")?sf:yo(e,t)},core:{_removeProperty:mr,_getMatrix:Mo}};qe.utils.checkPrefix=Gr,qe.core.getStyleSaver=Aa,(function(n,e,t,r){var i=Ue(n+","+e+","+t,function(o){zt[o]=1});Ue(e,function(o){Qe.units[o]="deg",Ba[o]=1}),At[i[13]]=n+","+e,Ue(r,function(o){var s=o.split(":");At[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ue("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Qe.units[n]="px"}),qe.registerPlugin(Va);var W=qe.registerPlugin(Va)||qe;W.core.Tween;/*!
|
|
15
|
+
*/var Ca,Kt,Xr,So,dr,ka,To,Ju=function(){return typeof window<"u"},It={},hr=180/Math.PI,Hr=Math.PI/180,Vr=Math.atan2,Pa=1e8,Co=/([A-Z])/g,ef=/(left|right|width|margin|padding|x)/i,tf=/[\s,\(]\S/,Mt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ko=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rf=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},nf=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},of=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Ea=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Ma=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},sf=function(e,t,r){return e.style[t]=r},af=function(e,t,r){return e.style.setProperty(t,r)},lf=function(e,t,r){return e._gsap[t]=r},cf=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},uf=function(e,t,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},ff=function(e,t,r,i,o){var s=e._gsap;s[t]=r,s.renderTransform(o,s)},me="transform",Ge=me+"Origin",df=function n(e,t){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in It&&o){if(this.tfm=this.tfm||{},e!=="transform")e=Mt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Nt(i,a)}):this.tfm[e]=s.x?s[e]:Nt(i,e),e===Ge&&(this.tfm.zOrigin=s.zOrigin);else return Mt.transform.split(",").forEach(function(a){return n.call(r,a,t)});if(this.props.indexOf(me)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ge,t,"")),e=me}(o||t)&&this.props.push(e,t,o[e])},Oa=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},hf=function(){var e=this.props,t=this.target,r=t.style,i=t._gsap,o,s;for(o=0;o<e.length;o+=3)e[o+1]?e[o+1]===2?t[e[o]](e[o+2]):t[e[o]]=e[o+2]:e[o+2]?r[e[o]]=e[o+2]:r.removeProperty(e[o].substr(0,2)==="--"?e[o]:e[o].replace(Co,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),o=To(),(!o||!o.isStart)&&!r[me]&&(Oa(r),i.zOrigin&&r[Ge]&&(r[Ge]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Da=function(e,t){var r={target:e,props:[],revert:hf,save:df};return e._gsap||Ue.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(i){return r.save(i)}),r},Aa,Po=function(e,t){var r=Kt.createElementNS?Kt.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Kt.createElement(e);return r&&r.style?r:Kt.createElement(e)},lt=function n(e,t,r){var i=getComputedStyle(e);return i[t]||i.getPropertyValue(t.replace(Co,"-$1").toLowerCase())||i.getPropertyValue(t)||!r&&n(e,jr(t)||t,1)||""},Ra="O,Moz,ms,Ms,Webkit".split(","),jr=function(e,t,r){var i=t||dr,o=i.style,s=5;if(e in o&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Ra[s]+e in o););return s<0?null:(s===3?"ms":s>=0?Ra[s]:"")+e},Eo=function(){Ju()&&window.document&&(Ca=window,Kt=Ca.document,Xr=Kt.documentElement,dr=Po("div")||{style:{}},Po("div"),me=jr(me),Ge=me+"Origin",dr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Aa=!!jr("perspective"),To=Ue.core.reverting,So=1)},$a=function(e){var t=e.ownerSVGElement,r=Po("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),Xr.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),Xr.removeChild(r),o},La=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Ia=function(e){var t,r;try{t=e.getBBox()}catch{t=$a(e),r=1}return t&&(t.width||t.height)||r||(t=$a(e)),t&&!t.width&&!t.x&&!t.y?{x:+La(e,["x","cx","x1"])||0,y:+La(e,["y","cy","y1"])||0,width:0,height:0}:t},Na=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ia(e))},pr=function(e,t){if(t){var r=e.style,i;t in It&&t!==Ge&&(t=me),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace(Co,"-$1").toLowerCase())):r.removeAttribute(t)}},Qt=function(e,t,r,i,o,s){var a=new je(e._pt,t,r,0,1,s?Ma:Ea);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},za={deg:1,rad:1,turn:1},pf={grid:1,flex:1},Zt=function n(e,t,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=dr.style,c=ef.test(t),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(c?"Width":"Height"),d=100,p=i==="px",l=i==="%",g,h,_,v;if(i===s||!o||za[i]||za[s])return o;if(s!=="px"&&!p&&(o=n(e,t,r,"px")),v=e.getCTM&&Na(e),(l||s==="%")&&(It[t]||~t.indexOf("adius")))return g=v?e.getBBox()[c?"width":"height"]:e[f],ye(l?o/g*d:o/100*g);if(a[c?"width":"height"]=d+(p?s:i),h=i!=="rem"&&~t.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,v&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Kt||!h.appendChild)&&(h=Kt.body),_=h._gsap,_&&l&&_.width&&c&&_.time===et.time&&!_.uncache)return ye(o/_.width*d);if(l&&(t==="height"||t==="width")){var b=e.style[t];e.style[t]=d+i,g=e[f],b?e.style[t]=b:pr(e,t)}else(l||s==="%")&&!pf[lt(h,"display")]&&(a.position=lt(e,"position")),h===e&&(a.position="static"),h.appendChild(dr),g=dr[f],h.removeChild(dr),a.position="absolute";return c&&l&&(_=ar(h),_.time=et.time,_.width=h[f]),ye(p?g*o/d:g&&o?d/g*o:0)},Nt=function(e,t,r,i){var o;return So||Eo(),t in Mt&&t!=="transform"&&(t=Mt[t],~t.indexOf(",")&&(t=t.split(",")[0])),It[t]&&t!=="transform"?(o=Cn(e,i),o=t!=="transformOrigin"?o[t]:o.svg?o.origin:si(lt(e,Ge))+" "+o.zOrigin+"px"):(o=e.style[t],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=oi[t]&&oi[t](e,t,r)||lt(e,t)||Ys(e,t)||(t==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Zt(e,t,o,r)+r:o},gf=function(e,t,r,i){if(!r||r==="none"){var o=jr(t,e,1),s=o&<(e,o,1);s&&s!==r?(t=o,r=s):t==="borderColor"&&(r=lt(e,"borderTopColor"))}var a=new je(this._pt,e.style,t,0,1,wa),c=0,u=0,f,d,p,l,g,h,_,v,b,S,P,m;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=lt(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[t],e.style[t]=i,i=lt(e,t)||i,h?e.style[t]=h:pr(e,t)),f=[r,i],fa(f),r=f[0],i=f[1],p=r.match(Ir)||[],m=i.match(Ir)||[],m.length){for(;d=Ir.exec(i);)_=d[0],b=i.substring(c,d.index),g?g=(g+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(g=1),_!==(h=p[u++]||"")&&(l=parseFloat(h)||0,P=h.substr((l+"").length),_.charAt(1)==="="&&(_=Nr(l,_)+P),v=parseFloat(_),S=_.substr((v+"").length),c=Ir.lastIndex-S.length,S||(S=S||qe.units[t]||P,c===i.length&&(i+=S,a.e+=S)),P!==S&&(l=Zt(e,t,h,S)||0),a._pt={_next:a._pt,p:b||u===1?b:",",s:l,c:v-l,m:g&&g<4||t==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=t==="display"&&i==="none"?Ma:Ea;return $s.test(i)&&(a.e=0),this._pt=a,a},Fa={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},mf=function(e){var t=e.split(" "),r=t[0],i=t[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),t[0]=Fa[r]||r,t[1]=Fa[i]||i,t.join(" ")},_f=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,i=r.style,o=t.u,s=r._gsap,a,c,u;if(o==="all"||o===!0)i.cssText="",c=1;else for(o=o.split(","),u=o.length;--u>-1;)a=o[u],It[a]&&(c=1,a=a==="transformOrigin"?Ge:me),pr(r,a);c&&(pr(r,me),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Cn(r,1),s.uncache=1,Oa(i)))}},oi={clearProps:function(e,t,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new je(e._pt,t,r,0,0,_f);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},Tn=[1,0,0,1,0,0],Ba={},Ya=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Wa=function(e){var t=lt(e,me);return Ya(t)?Tn:t.substr(7).match(Rs).map(ye)},Mo=function(e,t){var r=e._gsap||ar(e),i=e.style,o=Wa(e),s,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,o=[c.a,c.b,c.c,c.d,c.e,c.f],o.join(",")==="1,0,0,1,0,0"?Tn:o):(o===Tn&&!e.offsetParent&&e!==Xr&&!r.svg&&(c=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,Xr.appendChild(e)),o=Wa(e),c?i.display=c:pr(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):Xr.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},Oo=function(e,t,r,i,o,s){var a=e._gsap,c=o||Mo(e,!0),u=a.xOrigin||0,f=a.yOrigin||0,d=a.xOffset||0,p=a.yOffset||0,l=c[0],g=c[1],h=c[2],_=c[3],v=c[4],b=c[5],S=t.split(" "),P=parseFloat(S[0])||0,m=parseFloat(S[1])||0,w,T,C,M;r?c!==Tn&&(T=l*_-g*h)&&(C=P*(_/T)+m*(-h/T)+(h*b-_*v)/T,M=P*(-g/T)+m*(l/T)-(l*b-g*v)/T,P=C,m=M):(w=Ia(e),P=w.x+(~S[0].indexOf("%")?P/100*w.width:P),m=w.y+(~(S[1]||S[0]).indexOf("%")?m/100*w.height:m)),i||i!==!1&&a.smooth?(v=P-u,b=m-f,a.xOffset=d+(v*l+b*h)-v,a.yOffset=p+(v*g+b*_)-b):a.xOffset=a.yOffset=0,a.xOrigin=P,a.yOrigin=m,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!r,e.style[Ge]="0px 0px",s&&(Qt(s,a,"xOrigin",u,P),Qt(s,a,"yOrigin",f,m),Qt(s,a,"xOffset",d,a.xOffset),Qt(s,a,"yOffset",p,a.yOffset)),e.setAttribute("data-svg-origin",P+" "+m)},Cn=function(e,t){var r=e._gsap||new ga(e);if("x"in r&&!t&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",c=getComputedStyle(e),u=lt(e,Ge)||"0",f,d,p,l,g,h,_,v,b,S,P,m,w,T,C,M,N,R,$,O,V,j,F,H,ie,ee,Q,U,Y,te,K,$e;return f=d=p=h=_=v=b=S=P=0,l=g=1,r.svg=!!(e.getCTM&&Na(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[me]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[me]!=="none"?c[me]:"")),i.scale=i.rotate=i.translate="none"),T=Mo(e,r.svg),r.svg&&(r.uncache?(ie=e.getBBox(),u=r.xOrigin-ie.x+"px "+(r.yOrigin-ie.y)+"px",H=""):H=!t&&e.getAttribute("data-svg-origin"),Oo(e,H||u,!!H||r.originIsAbsolute,r.smooth!==!1,T)),m=r.xOrigin||0,w=r.yOrigin||0,T!==Tn&&(R=T[0],$=T[1],O=T[2],V=T[3],f=j=T[4],d=F=T[5],T.length===6?(l=Math.sqrt(R*R+$*$),g=Math.sqrt(V*V+O*O),h=R||$?Vr($,R)*hr:0,b=O||V?Vr(O,V)*hr+h:0,b&&(g*=Math.abs(Math.cos(b*Hr))),r.svg&&(f-=m-(m*R+w*O),d-=w-(m*$+w*V))):($e=T[6],te=T[7],Q=T[8],U=T[9],Y=T[10],K=T[11],f=T[12],d=T[13],p=T[14],C=Vr($e,Y),_=C*hr,C&&(M=Math.cos(-C),N=Math.sin(-C),H=j*M+Q*N,ie=F*M+U*N,ee=$e*M+Y*N,Q=j*-N+Q*M,U=F*-N+U*M,Y=$e*-N+Y*M,K=te*-N+K*M,j=H,F=ie,$e=ee),C=Vr(-O,Y),v=C*hr,C&&(M=Math.cos(-C),N=Math.sin(-C),H=R*M-Q*N,ie=$*M-U*N,ee=O*M-Y*N,K=V*N+K*M,R=H,$=ie,O=ee),C=Vr($,R),h=C*hr,C&&(M=Math.cos(C),N=Math.sin(C),H=R*M+$*N,ie=j*M+F*N,$=$*M-R*N,F=F*M-j*N,R=H,j=ie),_&&Math.abs(_)+Math.abs(h)>359.9&&(_=h=0,v=180-v),l=ye(Math.sqrt(R*R+$*$+O*O)),g=ye(Math.sqrt(F*F+$e*$e)),C=Vr(j,F),b=Math.abs(C)>2e-4?C*hr:0,P=K?1/(K<0?-K:K):0),r.svg&&(H=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Ya(lt(e,me)),H&&e.setAttribute("transform",H))),Math.abs(b)>90&&Math.abs(b)<270&&(o?(l*=-1,b+=h<=0?180:-180,h+=h<=0?180:-180):(g*=-1,b+=b<=0?180:-180)),t=t||r.uncache,r.x=f-((r.xPercent=f&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=d-((r.yPercent=d&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=p+s,r.scaleX=ye(l),r.scaleY=ye(g),r.rotation=ye(h)+a,r.rotationX=ye(_)+a,r.rotationY=ye(v)+a,r.skewX=b+a,r.skewY=S+a,r.transformPerspective=P+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(i[Ge]=si(u)),r.xOffset=r.yOffset=0,r.force3D=qe.force3D,r.renderTransform=r.svg?xf:Aa?Xa:yf,r.uncache=0,r},si=function(e){return(e=e.split(" "))[0]+" "+e[1]},Do=function(e,t,r){var i=ze(t);return ye(parseFloat(t)+parseFloat(Zt(e,"x",r+"px",i)))+i},yf=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Xa(e,t)},gr="0deg",kn="0px",mr=") ",Xa=function(e,t){var r=t||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,c=r.z,u=r.rotation,f=r.rotationY,d=r.rotationX,p=r.skewX,l=r.skewY,g=r.scaleX,h=r.scaleY,_=r.transformPerspective,v=r.force3D,b=r.target,S=r.zOrigin,P="",m=v==="auto"&&e&&e!==1||v===!0;if(S&&(d!==gr||f!==gr)){var w=parseFloat(f)*Hr,T=Math.sin(w),C=Math.cos(w),M;w=parseFloat(d)*Hr,M=Math.cos(w),s=Do(b,s,T*M*-S),a=Do(b,a,-Math.sin(w)*-S),c=Do(b,c,C*M*-S+S)}_!==kn&&(P+="perspective("+_+mr),(i||o)&&(P+="translate("+i+"%, "+o+"%) "),(m||s!==kn||a!==kn||c!==kn)&&(P+=c!==kn||m?"translate3d("+s+", "+a+", "+c+") ":"translate("+s+", "+a+mr),u!==gr&&(P+="rotate("+u+mr),f!==gr&&(P+="rotateY("+f+mr),d!==gr&&(P+="rotateX("+d+mr),(p!==gr||l!==gr)&&(P+="skew("+p+", "+l+mr),(g!==1||h!==1)&&(P+="scale("+g+", "+h+mr),b.style[me]=P||"translate(0, 0)"},xf=function(e,t){var r=t||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,c=r.rotation,u=r.skewX,f=r.skewY,d=r.scaleX,p=r.scaleY,l=r.target,g=r.xOrigin,h=r.yOrigin,_=r.xOffset,v=r.yOffset,b=r.forceCSS,S=parseFloat(s),P=parseFloat(a),m,w,T,C,M;c=parseFloat(c),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,c+=f),c||u?(c*=Hr,u*=Hr,m=Math.cos(c)*d,w=Math.sin(c)*d,T=Math.sin(c-u)*-p,C=Math.cos(c-u)*p,u&&(f*=Hr,M=Math.tan(u-f),M=Math.sqrt(1+M*M),T*=M,C*=M,f&&(M=Math.tan(f),M=Math.sqrt(1+M*M),m*=M,w*=M)),m=ye(m),w=ye(w),T=ye(T),C=ye(C)):(m=d,C=p,w=T=0),(S&&!~(s+"").indexOf("px")||P&&!~(a+"").indexOf("px"))&&(S=Zt(l,"x",s,"px"),P=Zt(l,"y",a,"px")),(g||h||_||v)&&(S=ye(S+g-(g*m+h*T)+_),P=ye(P+h-(g*w+h*C)+v)),(i||o)&&(M=l.getBBox(),S=ye(S+i/100*M.width),P=ye(P+o/100*M.height)),M="matrix("+m+","+w+","+T+","+C+","+S+","+P+")",l.setAttribute("transform",M),b&&(l.style[me]=M)},vf=function(e,t,r,i,o){var s=360,a=Me(o),c=parseFloat(o)*(a&&~o.indexOf("rad")?hr:1),u=c-i,f=i+u+"deg",d,p;return a&&(d=o.split("_")[1],d==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),d==="cw"&&u<0?u=(u+s*Pa)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Pa)%s-~~(u/s)*s)),e._pt=p=new je(e._pt,t,r,i,u,rf),p.e=f,p.u="deg",e._props.push(r),p},Ha=function(e,t){for(var r in t)e[r]=t[r];return e},wf=function(e,t,r){var i=Ha({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,f,d,p,l,g;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[me]=t,a=Cn(r,1),pr(r,me),r.setAttribute("transform",u)):(u=getComputedStyle(r)[me],s[me]=t,a=Cn(r,1),s[me]=u);for(c in It)u=i[c],f=a[c],u!==f&&o.indexOf(c)<0&&(l=ze(u),g=ze(f),d=l!==g?Zt(r,c,u,g):parseFloat(u),p=parseFloat(f),e._pt=new je(e._pt,a,c,d,p-d,ko),e._pt.u=g||0,e._props.push(c));Ha(a,i)};Ve("padding,margin,Width,Radius",function(n,e){var t="Top",r="Right",i="Bottom",o="Left",s=(e<3?[t,r,i,o]:[t+o,t+r,i+r,i+o]).map(function(a){return e<2?n+a:"border"+a+n});oi[e>1?"border"+n:n]=function(a,c,u,f,d){var p,l;if(arguments.length<4)return p=s.map(function(g){return Nt(a,g,u)}),l=p.join(" "),l.split(p[0]).length===5?p[0]:l;p=(f+"").split(" "),l={},s.forEach(function(g,h){return l[g]=p[h]=p[h]||p[(h-1)/2|0]}),a.init(c,l,d)}});var Va={name:"css",register:Eo,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,o){var s=this._props,a=e.style,c=r.vars.startAt,u,f,d,p,l,g,h,_,v,b,S,P,m,w,T,C;So||Eo(),this.styles=this.styles||Da(e),C=this.styles.props,this.tween=r;for(h in t)if(h!=="autoRound"&&(f=t[h],!(Qe[h]&&ma(h,t,r,i,e,o)))){if(l=typeof f,g=oi[h],l==="function"&&(f=f.call(r,i,e,o),l=typeof f),l==="string"&&~f.indexOf("random(")&&(f=yn(f)),g)g(this,e,h,f,r)&&(T=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),f+="",Gt.lastIndex=0,Gt.test(u)||(_=ze(u),v=ze(f)),v?_!==v&&(u=Zt(e,h,u,v)+v):_&&(f+=_),this.add(a,"setProperty",u,f,i,o,0,0,h),s.push(h),C.push(h,0,a[h]);else if(l!=="undefined"){if(c&&h in c?(u=typeof c[h]=="function"?c[h].call(r,i,e,o):c[h],Me(u)&&~u.indexOf("random(")&&(u=yn(u)),ze(u+"")||u==="auto"||(u+=qe.units[h]||ze(Nt(e,h))||""),(u+"").charAt(1)==="="&&(u=Nt(e,h))):u=Nt(e,h),p=parseFloat(u),b=l==="string"&&f.charAt(1)==="="&&f.substr(0,2),b&&(f=f.substr(2)),d=parseFloat(f),h in Mt&&(h==="autoAlpha"&&(p===1&&Nt(e,"visibility")==="hidden"&&d&&(p=0),C.push("visibility",0,a.visibility),Qt(this,a,"visibility",p?"inherit":"hidden",d?"inherit":"hidden",!d)),h!=="scale"&&h!=="transform"&&(h=Mt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),S=h in It,S){if(this.styles.save(h),l==="string"&&f.substring(0,6)==="var(--"&&(f=lt(e,f.substring(4,f.indexOf(")"))),d=parseFloat(f)),P||(m=e._gsap,m.renderTransform&&!t.parseTransform||Cn(e,t.parseTransform),w=t.smoothOrigin!==!1&&m.smooth,P=this._pt=new je(this._pt,a,me,0,1,m.renderTransform,m,0,-1),P.dep=1),h==="scale")this._pt=new je(this._pt,m,"scaleY",m.scaleY,(b?Nr(m.scaleY,b+d):d)-m.scaleY||0,ko),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){C.push(Ge,0,a[Ge]),f=mf(f),m.svg?Oo(e,f,0,w,0,this):(v=parseFloat(f.split(" ")[2])||0,v!==m.zOrigin&&Qt(this,m,"zOrigin",m.zOrigin,v),Qt(this,a,h,si(u),si(f)));continue}else if(h==="svgOrigin"){Oo(e,f,1,w,0,this);continue}else if(h in Ba){vf(this,m,h,p,b?Nr(p,b+f):f);continue}else if(h==="smoothOrigin"){Qt(this,m,"smooth",m.smooth,f);continue}else if(h==="force3D"){m[h]=f;continue}else if(h==="transform"){wf(this,f,e);continue}}else h in a||(h=jr(h)||h);if(S||(d||d===0)&&(p||p===0)&&!tf.test(f)&&h in a)_=(u+"").substr((p+"").length),d||(d=0),v=ze(f)||(h in qe.units?qe.units[h]:_),_!==v&&(p=Zt(e,h,u,v)),this._pt=new je(this._pt,S?m:a,h,p,(b?Nr(p,b+d):d)-p,!S&&(v==="px"||h==="zIndex")&&t.autoRound!==!1?of:ko),this._pt.u=v||0,_!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=nf);else if(h in a)gf.call(this,e,h,u,b?b+f:f);else if(h in e)this.add(e,h,u||e[h],b?b+f:f,i,o);else if(h!=="parseTransform"){Zi(h,f);continue}S||(h in a?C.push(h,0,a[h]):typeof e[h]=="function"?C.push(h,2,e[h]()):C.push(h,1,u||e[h])),s.push(h)}}T&&ba(this)},render:function(e,t){if(t.tween._time||!To())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Nt,aliases:Mt,getSetter:function(e,t,r){var i=Mt[t];return i&&i.indexOf(",")<0&&(t=i),t in It&&t!==Ge&&(e._gsap.x||Nt(e,"x"))?r&&ka===r?t==="scale"?cf:lf:(ka=r||{})&&(t==="scale"?uf:ff):e.style&&!ji(e.style[t])?sf:~t.indexOf("-")?af:yo(e,t)},core:{_removeProperty:pr,_getMatrix:Mo}};Ue.utils.checkPrefix=jr,Ue.core.getStyleSaver=Da,(function(n,e,t,r){var i=Ve(n+","+e+","+t,function(o){It[o]=1});Ve(e,function(o){qe.units[o]="deg",Ba[o]=1}),Mt[i[13]]=n+","+e,Ve(r,function(o){var s=o.split(":");Mt[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ve("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){qe.units[n]="px"}),Ue.registerPlugin(Va);var B=Ue.registerPlugin(Va)||Ue;B.core.Tween;/*!
|
|
16
16
|
* SplitText 3.13.0
|
|
17
17
|
* https://gsap.com
|
|
18
18
|
*
|
|
19
19
|
* @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
|
|
20
20
|
* @author: Jack Doyle
|
|
21
|
-
*/let
|
|
22
|
-
`)),h&&(
|
|
23
|
-
`&&((f=T.previousSibling)==null||f.remove(),Kr(document.createElement("br"),n,T),Z=Z.slice(1)),!p&&Z==="")Kr(w,n,T);else if(Z===" ")n.insertBefore(document.createTextNode(" "),T);else{if(_&&Z.charAt(0)===" "&&Kr(" ",n,T),S&&O===1&&!R&&P.indexOf(S.parentNode)>-1?(z=P[P.length-1],z.appendChild(document.createTextNode(r?"":Z))):(z=t(r?"":Z),Kr(z,n,T),S&&O===1&&!R&&z.insertBefore(S,z.firstChild)),r)for(Y=ja?Ka([...ja.segment(Z)].map(te=>te.segment),c):Z.match(a)||Ro,H=0;H<Y.length;H++)z.appendChild(Y[H]===" "?document.createTextNode(" "):r(Y[H]));if(o&&u){if(Q=T.textContent=Q.substring(Z.length+1,Q.length),N=z.getBoundingClientRect(),N.top>v.top&&N.left<=v.left){for(B=n.cloneNode(),X=n.childNodes[0];X&&X!==z;)ne=X,X=X.nextSibling,B.appendChild(ne);n.parentNode.insertBefore(B,n),i&&Qa(B)}v=N}(O<M.length||L)&&Kr(O>=M.length?" ":_&&Z.slice(-1)===" "?" "+w:w,n,T)}n.removeChild(T),S=0}else T.nodeType===1&&(s&&s.indexOf(T)>-1?(P.indexOf(T.previousSibling)>-1&&P[P.length-1].appendChild(T),S=T):(Za(T,e,t,r,i,o,s,a,c,!0),S=0),i&&Qa(T))};const Ja=class ou{constructor(e,t){this.isSplit=!1,wf(),this.elements=Ua(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this._split=()=>this.isSplit&&this.split(this.vars);let r=[],i,o=()=>{let s=r.length,a;for(;s--;){a=r[s];let c=a.element.offsetWidth;if(c!==a.width){a.width=c,this._split();return}}};this._data={orig:r,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(i),i=setTimeout(o,200)})},$o(this),this.split(t)}split(e){this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t="chars,words,lines",aria:r="auto",deepSlice:i=!0,smartWrap:o,onSplit:s,autoSplit:a=!1,specialChars:c,mask:u}=this.vars,f=t.indexOf("lines")>-1,d=t.indexOf("chars")>-1,g=t.indexOf("words")>-1,l=d&&!g&&!f,p=c&&("push"in c?new RegExp("(?:"+c.join("|")+")","gu"):c),h=p?new RegExp(p.source+"|"+Ga.source,"gu"):Ga,m=!!e.ignore&&Ua(e.ignore),{orig:v,animTime:b,obs:S}=this._data,P;return(d||g||f)&&(this.elements.forEach((_,w)=>{v[w]={element:_,html:_.innerHTML,ariaL:_.getAttribute("aria-label"),ariaH:_.getAttribute("aria-hidden")},r==="auto"?_.setAttribute("aria-label",(_.textContent||"").trim()):r==="hidden"&&_.setAttribute("aria-hidden","true");let C=[],T=[],M=[],z=d?Lo("char",e,C):null,R=Lo("word",e,T),L,O,N,Y;if(Za(_,e,R,z,l,i&&(f||l),m,h,p,!1),f){let B=ci(_.childNodes),X=Sf(_,B,e,M),ne,Q=[],Z=0,U=B.map(te=>te.nodeType===1?te.getBoundingClientRect():qa),H=qa;for(L=0;L<B.length;L++)ne=B[L],ne.nodeType===1&&(ne.nodeName==="BR"?(Q.push(ne),X(Z,L+1),Z=L+1,H=U[Z]):(L&&U[L].top>H.top&&U[L].left<=H.left&&(X(Z,L),Z=L),H=U[L]));Z<L&&X(Z,L),Q.forEach(te=>{var K;return(K=te.parentNode)==null?void 0:K.removeChild(te)})}if(!g){for(L=0;L<T.length;L++)if(O=T[L],d||!O.nextSibling||O.nextSibling.nodeType!==3)if(o&&!f){for(N=document.createElement("span"),N.style.whiteSpace="nowrap";O.firstChild;)N.appendChild(O.firstChild);O.replaceWith(N)}else O.replaceWith(...O.childNodes);else Y=O.nextSibling,Y&&Y.nodeType===3&&(Y.textContent=(O.textContent||"")+(Y.textContent||""),O.remove());T.length=0,_.normalize()}this.lines.push(...M),this.words.push(...T),this.chars.push(...C)}),u&&this[u]&&this.masks.push(...this[u].map(_=>{let w=_.cloneNode();return _.replaceWith(w),w.appendChild(_),_.className&&(w.className=_.className.replace(/(\b\w+\b)/g,"$1-mask")),w.style.overflow="clip",w}))),this.isSplit=!0,qr&&(a?qr.addEventListener("loadingdone",this._split):qr.status==="loading"&&console.warn("SplitText called before fonts loaded")),(P=s&&s(this))&&P.totalTime&&(this._data.anim=b?P.totalTime(b):P),f&&a&&this.elements.forEach((_,w)=>{v[w].width=_.offsetWidth,S&&S.observe(_)}),this}revert(){var e,t;let{orig:r,anim:i,obs:o}=this._data;return o&&o.disconnect(),r.forEach(({element:s,html:a,ariaL:c,ariaH:u})=>{s.innerHTML=a,c?s.setAttribute("aria-label",c):s.removeAttribute("aria-label"),u?s.setAttribute("aria-hidden",u):s.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,qr?.removeEventListener("loadingdone",this._split),i&&(this._data.animTime=i.totalTime(),i.revert()),(t=(e=this.vars).onRevert)==null||t.call(e,this),this}static create(e,t){return new ou(e,t)}static register(e){Mn=Mn||e||window.gsap,Mn&&(ci=Mn.utils.toArray,$o=Mn.core.context||$o),!Do&&window.innerWidth>0&&(qr=document.fonts,Do=!0)}};Ja.version="3.13.0";let Io=Ja;const el=n=>typeof n=="object"&&n!==null&&"main"in n&&"dark"in n&&"light"in n;function tl({r:n,g:e,b:t}){n/=255,e/=255,t/=255;const r=Math.max(n,e,t),i=Math.min(n,e,t);let o=0,s=0,a=(r+i)/2;if(r!==i){const c=r-i;switch(s=a>.5?c/(2-r-i):c/(r+i),r){case n:o=(e-t)/c+(e<t?6:0);break;case e:o=(t-n)/c+2;break;case t:o=(n-e)/c+4;break}o/=6}return{h:o,s,l:a}}function No({h:n,s:e,l:t}){let r,i,o;if(e===0)r=i=o=t;else{const s=(u,f,d)=>(d<0&&(d+=1),d>1&&(d-=1),d<.16666666666666666?u+(f-u)*6*d:d<.5?f:d<.6666666666666666?u+(f-u)*(.6666666666666666-d)*6:u),a=t<.5?t*(1+e):t+e-t*e,c=2*t-a;r=s(c,a,n+1/3),i=s(c,a,n),o=s(c,a,n-1/3)}return{r:Math.round(r*255),g:Math.round(i*255),b:Math.round(o*255)}}function zo({r:n,g:e,b:t}){const r=i=>("0"+i.toString(16)).slice(-2);return`#${r(n)}${r(e)}${r(t)}`}function rl(n){const e=n.replace(/^#/,""),t=e.length===3?e.split("").map(i=>i+i).join(""):e,r=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(!r)throw new Error(`Invalid HEX color: "${n}"`);return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16),a:r[4]!==void 0?parseInt(r[4],16)/255:1}}function nl(n){const e=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)$/i.exec(n.trim());if(!e)throw new Error(`Invalid RGB/RGBA color: "${n}"`);return{r:Math.round(Number(e[1])),g:Math.round(Number(e[2])),b:Math.round(Number(e[3])),a:e[4]!==void 0?Number(e[4]):1}}function il(n){const e=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i.exec(n.trim());if(!e)throw new Error(`Invalid HSL/HSLA color: "${n}"`);const t={h:Number(e[1])/360,s:Number(e[2])/100,l:Number(e[3])/100};return{...No(t),a:e[4]!==void 0?Number(e[4]):1}}function ol(n){const e=n.trim();if(/^#|^[0-9a-f]{3}([0-9a-f]{3}([0-9a-f]{2})?)?$/i.test(e))return rl(e);if(/^rgba?\s*\(/i.test(e))return nl(e);if(/^hsla?\s*\(/i.test(e))return il(e);throw new Error(`Unsupported color format: "${n}". Expected hex (#rgb, #rrggbb, #rrggbbaa), rgb(), rgba(), hsl(), or hsla().`)}function sl(n,e=600){const t={50:.95,100:.89,200:.78,300:.67,400:.56,500:.45,600:.35,700:.29,800:.23,900:.18,950:.1},r=ol(n),i=tl(r),o={};for(const s in t){const a=s,c={h:i.h,s:i.s,l:t[a]};o[s]=zo(No(c))}return o[e.toString()]=zo(r),o}const xr=n=>{if(el(n))return n;const e=sl(n,500);return{darker:e[950],dark:e[900],main:e[500],light:e[100],lighter:e[50]}},al=n=>{const e=xr(n.primary),t=xr(n.secondary??"#000000"),r=xr(n.default??"#000000"),i=xr(n.error??"#e74c3c");return{radius:n.radius,title:{fontFamily:n.titleFontFamily??"Poppins"},text:{fontFamily:n.textFontFamily??"Poppins, sans-serif"},palette:{primary:e,secondary:t,default:r,error:i},components:n.components}},dt={none:"0px",sm:"8px",md:"12px",lg:"14px",full:"42px"},ll=al({radius:"none",titleFontFamily:"Inter Variable",textFontFamily:"Space Mono",primary:"#6090fa"}),cl=ll,Cf=()=>k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}),k.jsx("path",{d:"m9 12 2 2 4-4"})]});var Fe=function(){return Fe=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fe.apply(this,arguments)};function Qr(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;function Tf(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var kf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pf=Tf(function(n){return kf.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),fe="-ms-",On="-moz-",ie="-webkit-",ul="comm",ui="rule",Fo="decl",Ef="@import",fl="@keyframes",Mf="@layer",dl=Math.abs,Bo=String.fromCharCode,Yo=Object.assign;function Of(n,e){return Oe(n,0)^45?(((e<<2^Oe(n,0))<<2^Oe(n,1))<<2^Oe(n,2))<<2^Oe(n,3):0}function hl(n){return n.trim()}function Bt(n,e){return(n=e.exec(n))?n[0]:n}function G(n,e,t){return n.replace(e,t)}function fi(n,e,t){return n.indexOf(e,t)}function Oe(n,e){return n.charCodeAt(e)|0}function Zr(n,e,t){return n.slice(e,t)}function Dt(n){return n.length}function pl(n){return n.length}function An(n,e){return e.push(n),n}function Af(n,e){return n.map(e).join("")}function gl(n,e){return n.filter(function(t){return!Bt(t,e)})}var di=1,Jr=1,ml=0,ht=0,Te=0,en="";function hi(n,e,t,r,i,o,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:o,line:di,column:Jr,length:s,return:"",siblings:a}}function tr(n,e){return Yo(hi("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function tn(n){for(;n.root;)n=tr(n.root,{children:[n]});An(n,n.siblings)}function Df(){return Te}function Rf(){return Te=ht>0?Oe(en,--ht):0,Jr--,Te===10&&(Jr=1,di--),Te}function xt(){return Te=ht<ml?Oe(en,ht++):0,Jr++,Te===10&&(Jr=1,di++),Te}function vr(){return Oe(en,ht)}function pi(){return ht}function gi(n,e){return Zr(en,n,e)}function Wo(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $f(n){return di=Jr=1,ml=Dt(en=n),ht=0,[]}function Lf(n){return en="",n}function Xo(n){return hl(gi(ht-1,Ho(n===91?n+2:n===40?n+1:n)))}function If(n){for(;(Te=vr())&&Te<33;)xt();return Wo(n)>2||Wo(Te)>3?"":" "}function Nf(n,e){for(;--e&&xt()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return gi(n,pi()+(e<6&&vr()==32&&xt()==32))}function Ho(n){for(;xt();)switch(Te){case n:return ht;case 34:case 39:n!==34&&n!==39&&Ho(Te);break;case 40:n===41&&Ho(n);break;case 92:xt();break}return ht}function zf(n,e){for(;xt()&&n+Te!==57;)if(n+Te===84&&vr()===47)break;return"/*"+gi(e,ht-1)+"*"+Bo(n===47?n:xt())}function Ff(n){for(;!Wo(vr());)xt();return gi(n,ht)}function Bf(n){return Lf(mi("",null,null,null,[""],n=$f(n),0,[0],n))}function mi(n,e,t,r,i,o,s,a,c){for(var u=0,f=0,d=s,g=0,l=0,p=0,h=1,m=1,v=1,b=0,S="",P=i,_=o,w=r,C=S;m;)switch(p=b,b=xt()){case 40:if(p!=108&&Oe(C,d-1)==58){fi(C+=G(Xo(b),"&","&\f"),"&\f",dl(u?a[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:C+=Xo(b);break;case 9:case 10:case 13:case 32:C+=If(p);break;case 92:C+=Nf(pi()-1,7);continue;case 47:switch(vr()){case 42:case 47:An(Yf(zf(xt(),pi()),e,t,c),c);break;default:C+="/"}break;case 123*h:a[u++]=Dt(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+f:v==-1&&(C=G(C,/\f/g,"")),l>0&&Dt(C)-d&&An(l>32?yl(C+";",r,t,d-1,c):yl(G(C," ","")+";",r,t,d-2,c),c);break;case 59:C+=";";default:if(An(w=_l(C,e,t,u,f,i,a,S,P=[],_=[],d,o),o),b===123)if(f===0)mi(C,e,w,w,P,o,d,a,_);else switch(g===99&&Oe(C,3)===110?100:g){case 100:case 108:case 109:case 115:mi(n,w,w,r&&An(_l(n,w,w,0,0,i,a,S,i,P=[],d,_),_),i,_,d,a,r?P:_);break;default:mi(C,w,w,w,[""],_,0,a,_)}}u=f=l=0,h=v=1,S=C="",d=s;break;case 58:d=1+Dt(C),l=p;default:if(h<1){if(b==123)--h;else if(b==125&&h++==0&&Rf()==125)continue}switch(C+=Bo(b),b*h){case 38:v=f>0?1:(C+="\f",-1);break;case 44:a[u++]=(Dt(C)-1)*v,v=1;break;case 64:vr()===45&&(C+=Xo(xt())),g=vr(),f=d=Dt(S=C+=Ff(pi())),b++;break;case 45:p===45&&Dt(C)==2&&(h=0)}}return o}function _l(n,e,t,r,i,o,s,a,c,u,f,d){for(var g=i-1,l=i===0?o:[""],p=pl(l),h=0,m=0,v=0;h<r;++h)for(var b=0,S=Zr(n,g+1,g=dl(m=s[h])),P=n;b<p;++b)(P=hl(m>0?l[b]+" "+S:G(S,/&\f/g,l[b])))&&(c[v++]=P);return hi(n,e,t,i===0?ui:a,c,u,f,d)}function Yf(n,e,t,r){return hi(n,e,t,ul,Bo(Df()),Zr(n,2,-2),0,r)}function yl(n,e,t,r,i){return hi(n,e,t,Fo,Zr(n,0,r),Zr(n,r+1,-1),r,i)}function xl(n,e,t){switch(Of(n,e)){case 5103:return ie+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+n+n;case 4789:return On+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+n+On+n+fe+n+n;case 5936:switch(Oe(n,e+11)){case 114:return ie+n+fe+G(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return ie+n+fe+G(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return ie+n+fe+G(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return ie+n+fe+n+n;case 6165:return ie+n+fe+"flex-"+n+n;case 5187:return ie+n+G(n,/(\w+).+(:[^]+)/,ie+"box-$1$2"+fe+"flex-$1$2")+n;case 5443:return ie+n+fe+"flex-item-"+G(n,/flex-|-self/g,"")+(Bt(n,/flex-|baseline/)?"":fe+"grid-row-"+G(n,/flex-|-self/g,""))+n;case 4675:return ie+n+fe+"flex-line-pack"+G(n,/align-content|flex-|-self/g,"")+n;case 5548:return ie+n+fe+G(n,"shrink","negative")+n;case 5292:return ie+n+fe+G(n,"basis","preferred-size")+n;case 6060:return ie+"box-"+G(n,"-grow","")+ie+n+fe+G(n,"grow","positive")+n;case 4554:return ie+G(n,/([^-])(transform)/g,"$1"+ie+"$2")+n;case 6187:return G(G(G(n,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),n,"")+n;case 5495:case 3959:return G(n,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return G(G(n,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+n+n;case 4200:if(!Bt(n,/flex-|baseline/))return fe+"grid-column-align"+Zr(n,e)+n;break;case 2592:case 3360:return fe+G(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,i){return e=i,Bt(r.props,/grid-\w+-end/)})?~fi(n+(t=t[e].value),"span",0)?n:fe+G(n,"-start","")+n+fe+"grid-row-span:"+(~fi(t,"span",0)?Bt(t,/\d+/):+Bt(t,/\d+/)-+Bt(n,/\d+/))+";":fe+G(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return Bt(r.props,/grid-\w+-start/)})?n:fe+G(G(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return G(n,/(.+)-inline(.+)/,ie+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dt(n)-1-e>6)switch(Oe(n,e+1)){case 109:if(Oe(n,e+4)!==45)break;case 102:return G(n,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+On+(Oe(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~fi(n,"stretch",0)?xl(G(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return G(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,a,c,u){return fe+i+":"+o+u+(s?fe+i+"-span:"+(a?c:+c-+o)+u:"")+n});case 4949:if(Oe(n,e+6)===121)return G(n,":",":"+ie)+n;break;case 6444:switch(Oe(n,Oe(n,14)===45?18:11)){case 120:return G(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ie+(Oe(n,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+fe+"$2box$3")+n;case 100:return G(n,":",":"+fe)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return G(n,"scroll-","scroll-snap-")+n}return n}function _i(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function Wf(n,e,t,r){switch(n.type){case Mf:if(n.children.length)break;case Ef:case Fo:return n.return=n.return||n.value;case ul:return"";case fl:return n.return=n.value+"{"+_i(n.children,r)+"}";case ui:if(!Dt(n.value=n.props.join(",")))return""}return Dt(t=_i(n.children,r))?n.return=n.value+"{"+t+"}":""}function Xf(n){var e=pl(n);return function(t,r,i,o){for(var s="",a=0;a<e;a++)s+=n[a](t,r,i,o)||"";return s}}function Hf(n){return function(e){e.root||(e=e.return)&&n(e)}}function Vf(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case Fo:n.return=xl(n.value,n.length,t);return;case fl:return _i([tr(n,{value:G(n.value,"@","@"+ie)})],r);case ui:if(n.length)return Af(t=n.props,function(i){switch(Bt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":tn(tr(n,{props:[G(i,/:(read-\w+)/,":"+On+"$1")]})),tn(tr(n,{props:[i]})),Yo(n,{props:gl(t,r)});break;case"::placeholder":tn(tr(n,{props:[G(i,/:(plac\w+)/,":"+ie+"input-$1")]})),tn(tr(n,{props:[G(i,/:(plac\w+)/,":"+On+"$1")]})),tn(tr(n,{props:[G(i,/:(plac\w+)/,fe+"input-$1")]})),tn(tr(n,{props:[i]})),Yo(n,{props:gl(t,r)});break}return""})}}var jf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wr=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",vl="active",wl="data-styled-version",yi="6.1.19",Vo=`/*!sc*/
|
|
24
|
-
`,
|
|
21
|
+
*/let Pn,Ur,Ao,bf=()=>Ao||Io.register(window.gsap),ja=typeof Intl<"u"?new Intl.Segmenter:0,ai=n=>typeof n=="string"?ai(document.querySelectorAll(n)):"length"in n?Array.from(n):[n],Ua=n=>ai(n).filter(e=>e instanceof HTMLElement),Ro=[],$o=function(){},Sf=/\s+/g,Ga=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),qa={left:0,top:0,width:0,height:0},Ka=(n,e)=>{if(e){let t=new Set(n.join("").match(e)||Ro),r=n.length,i,o,s,a;if(t.size)for(;--r>-1;){o=n[r];for(s of t)if(s.startsWith(o)&&s.length>o.length){for(i=0,a=o;s.startsWith(a+=n[r+ ++i])&&a.length<s.length;);if(i&&a.length===s.length){n[r]=s,n.splice(r+1,i);break}}}}return n},Qa=n=>window.getComputedStyle(n).display==="inline"&&(n.style.display="inline-block"),Gr=(n,e,t)=>e.insertBefore(typeof n=="string"?document.createTextNode(n):n,t),Lo=(n,e,t)=>{let r=e[n+"sClass"]||"",{tag:i="div",aria:o="auto",propIndex:s=!1}=e,a=n==="line"?"block":"inline-block",c=r.indexOf("++")>-1,u=f=>{let d=document.createElement(i),p=t.length+1;return r&&(d.className=r+(c?" "+r+p:"")),s&&d.style.setProperty("--"+n,p+""),o!=="none"&&d.setAttribute("aria-hidden","true"),i!=="span"&&(d.style.position="relative",d.style.display=a),d.textContent=f,t.push(d),d};return c&&(r=r.replace("++","")),u.collection=t,u},Tf=(n,e,t,r)=>{let i=Lo("line",t,r),o=window.getComputedStyle(n).textAlign||"left";return(s,a)=>{let c=i("");for(c.style.textAlign=o,n.insertBefore(c,e[s]);s<a;s++)c.appendChild(e[s]);c.normalize()}},Za=(n,e,t,r,i,o,s,a,c,u)=>{var f;let d=Array.from(n.childNodes),p=0,{wordDelimiter:l,reduceWhiteSpace:g=!0,prepareText:h}=e,_=n.getBoundingClientRect(),v=_,b=!g&&window.getComputedStyle(n).whiteSpace.substring(0,3)==="pre",S=0,P=t.collection,m,w,T,C,M,N,R,$,O,V,j,F,H,ie,ee,Q,U,Y;for(typeof l=="object"?(T=l.delimiter||l,w=l.replaceWith||""):w=l===""?"":l||" ",m=w!==" ";p<d.length;p++)if(C=d[p],C.nodeType===3){for(ee=C.textContent||"",g?ee=ee.replace(Sf," "):b&&(ee=ee.replace(/\n/g,w+`
|
|
22
|
+
`)),h&&(ee=h(ee,n)),C.textContent=ee,M=w||T?ee.split(T||w):ee.match(a)||Ro,U=M[M.length-1],$=m?U.slice(-1)===" ":!U,U||M.pop(),v=_,R=m?M[0].charAt(0)===" ":!M[0],R&&Gr(" ",n,C),M[0]||M.shift(),Ka(M,c),o&&u||(C.textContent=""),O=1;O<=M.length;O++)if(Q=M[O-1],!g&&b&&Q.charAt(0)===`
|
|
23
|
+
`&&((f=C.previousSibling)==null||f.remove(),Gr(document.createElement("br"),n,C),Q=Q.slice(1)),!g&&Q==="")Gr(w,n,C);else if(Q===" ")n.insertBefore(document.createTextNode(" "),C);else{if(m&&Q.charAt(0)===" "&&Gr(" ",n,C),S&&O===1&&!R&&P.indexOf(S.parentNode)>-1?(N=P[P.length-1],N.appendChild(document.createTextNode(r?"":Q))):(N=t(r?"":Q),Gr(N,n,C),S&&O===1&&!R&&N.insertBefore(S,N.firstChild)),r)for(j=ja?Ka([...ja.segment(Q)].map(te=>te.segment),c):Q.match(a)||Ro,Y=0;Y<j.length;Y++)N.appendChild(j[Y]===" "?document.createTextNode(" "):r(j[Y]));if(o&&u){if(ee=C.textContent=ee.substring(Q.length+1,ee.length),V=N.getBoundingClientRect(),V.top>v.top&&V.left<=v.left){for(F=n.cloneNode(),H=n.childNodes[0];H&&H!==N;)ie=H,H=H.nextSibling,F.appendChild(ie);n.parentNode.insertBefore(F,n),i&&Qa(F)}v=V}(O<M.length||$)&&Gr(O>=M.length?" ":m&&Q.slice(-1)===" "?" "+w:w,n,C)}n.removeChild(C),S=0}else C.nodeType===1&&(s&&s.indexOf(C)>-1?(P.indexOf(C.previousSibling)>-1&&P[P.length-1].appendChild(C),S=C):(Za(C,e,t,r,i,o,s,a,c,!0),S=0),i&&Qa(C))};const Ja=class su{constructor(e,t){this.isSplit=!1,bf(),this.elements=Ua(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this._split=()=>this.isSplit&&this.split(this.vars);let r=[],i,o=()=>{let s=r.length,a;for(;s--;){a=r[s];let c=a.element.offsetWidth;if(c!==a.width){a.width=c,this._split();return}}};this._data={orig:r,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(i),i=setTimeout(o,200)})},$o(this),this.split(t)}split(e){this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t="chars,words,lines",aria:r="auto",deepSlice:i=!0,smartWrap:o,onSplit:s,autoSplit:a=!1,specialChars:c,mask:u}=this.vars,f=t.indexOf("lines")>-1,d=t.indexOf("chars")>-1,p=t.indexOf("words")>-1,l=d&&!p&&!f,g=c&&("push"in c?new RegExp("(?:"+c.join("|")+")","gu"):c),h=g?new RegExp(g.source+"|"+Ga.source,"gu"):Ga,_=!!e.ignore&&Ua(e.ignore),{orig:v,animTime:b,obs:S}=this._data,P;return(d||p||f)&&(this.elements.forEach((m,w)=>{v[w]={element:m,html:m.innerHTML,ariaL:m.getAttribute("aria-label"),ariaH:m.getAttribute("aria-hidden")},r==="auto"?m.setAttribute("aria-label",(m.textContent||"").trim()):r==="hidden"&&m.setAttribute("aria-hidden","true");let T=[],C=[],M=[],N=d?Lo("char",e,T):null,R=Lo("word",e,C),$,O,V,j;if(Za(m,e,R,N,l,i&&(f||l),_,h,g,!1),f){let F=ai(m.childNodes),H=Tf(m,F,e,M),ie,ee=[],Q=0,U=F.map(te=>te.nodeType===1?te.getBoundingClientRect():qa),Y=qa;for($=0;$<F.length;$++)ie=F[$],ie.nodeType===1&&(ie.nodeName==="BR"?(ee.push(ie),H(Q,$+1),Q=$+1,Y=U[Q]):($&&U[$].top>Y.top&&U[$].left<=Y.left&&(H(Q,$),Q=$),Y=U[$]));Q<$&&H(Q,$),ee.forEach(te=>{var K;return(K=te.parentNode)==null?void 0:K.removeChild(te)})}if(!p){for($=0;$<C.length;$++)if(O=C[$],d||!O.nextSibling||O.nextSibling.nodeType!==3)if(o&&!f){for(V=document.createElement("span"),V.style.whiteSpace="nowrap";O.firstChild;)V.appendChild(O.firstChild);O.replaceWith(V)}else O.replaceWith(...O.childNodes);else j=O.nextSibling,j&&j.nodeType===3&&(j.textContent=(O.textContent||"")+(j.textContent||""),O.remove());C.length=0,m.normalize()}this.lines.push(...M),this.words.push(...C),this.chars.push(...T)}),u&&this[u]&&this.masks.push(...this[u].map(m=>{let w=m.cloneNode();return m.replaceWith(w),w.appendChild(m),m.className&&(w.className=m.className.replace(/(\b\w+\b)/g,"$1-mask")),w.style.overflow="clip",w}))),this.isSplit=!0,Ur&&(a?Ur.addEventListener("loadingdone",this._split):Ur.status==="loading"&&console.warn("SplitText called before fonts loaded")),(P=s&&s(this))&&P.totalTime&&(this._data.anim=b?P.totalTime(b):P),f&&a&&this.elements.forEach((m,w)=>{v[w].width=m.offsetWidth,S&&S.observe(m)}),this}revert(){var e,t;let{orig:r,anim:i,obs:o}=this._data;return o&&o.disconnect(),r.forEach(({element:s,html:a,ariaL:c,ariaH:u})=>{s.innerHTML=a,c?s.setAttribute("aria-label",c):s.removeAttribute("aria-label"),u?s.setAttribute("aria-hidden",u):s.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,Ur?.removeEventListener("loadingdone",this._split),i&&(this._data.animTime=i.totalTime(),i.revert()),(t=(e=this.vars).onRevert)==null||t.call(e,this),this}static create(e,t){return new su(e,t)}static register(e){Pn=Pn||e||window.gsap,Pn&&(ai=Pn.utils.toArray,$o=Pn.core.context||$o),!Ao&&window.innerWidth>0&&(Ur=document.fonts,Ao=!0)}};Ja.version="3.13.0";let Io=Ja;const el=n=>typeof n=="object"&&n!==null&&"main"in n&&"dark"in n&&"light"in n;function tl({r:n,g:e,b:t}){n/=255,e/=255,t/=255;const r=Math.max(n,e,t),i=Math.min(n,e,t);let o=0,s=0,a=(r+i)/2;if(r!==i){const c=r-i;switch(s=a>.5?c/(2-r-i):c/(r+i),r){case n:o=(e-t)/c+(e<t?6:0);break;case e:o=(t-n)/c+2;break;case t:o=(n-e)/c+4;break}o/=6}return{h:o,s,l:a}}function No({h:n,s:e,l:t}){let r,i,o;if(e===0)r=i=o=t;else{const s=(u,f,d)=>(d<0&&(d+=1),d>1&&(d-=1),d<.16666666666666666?u+(f-u)*6*d:d<.5?f:d<.6666666666666666?u+(f-u)*(.6666666666666666-d)*6:u),a=t<.5?t*(1+e):t+e-t*e,c=2*t-a;r=s(c,a,n+1/3),i=s(c,a,n),o=s(c,a,n-1/3)}return{r:Math.round(r*255),g:Math.round(i*255),b:Math.round(o*255)}}function zo({r:n,g:e,b:t}){const r=i=>("0"+i.toString(16)).slice(-2);return`#${r(n)}${r(e)}${r(t)}`}function rl(n){const e=n.replace(/^#/,""),t=e.length===3?e.split("").map(i=>i+i).join(""):e,r=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(!r)throw new Error(`Invalid HEX color: "${n}"`);return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16),a:r[4]!==void 0?parseInt(r[4],16)/255:1}}function nl(n){const e=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)$/i.exec(n.trim());if(!e)throw new Error(`Invalid RGB/RGBA color: "${n}"`);return{r:Math.round(Number(e[1])),g:Math.round(Number(e[2])),b:Math.round(Number(e[3])),a:e[4]!==void 0?Number(e[4]):1}}function il(n){const e=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i.exec(n.trim());if(!e)throw new Error(`Invalid HSL/HSLA color: "${n}"`);const t={h:Number(e[1])/360,s:Number(e[2])/100,l:Number(e[3])/100};return{...No(t),a:e[4]!==void 0?Number(e[4]):1}}function ol(n){const e=n.trim();if(/^#|^[0-9a-f]{3}([0-9a-f]{3}([0-9a-f]{2})?)?$/i.test(e))return rl(e);if(/^rgba?\s*\(/i.test(e))return nl(e);if(/^hsla?\s*\(/i.test(e))return il(e);throw new Error(`Unsupported color format: "${n}". Expected hex (#rgb, #rrggbb, #rrggbbaa), rgb(), rgba(), hsl(), or hsla().`)}function sl(n,e=600){const t={50:.95,100:.89,200:.78,300:.67,400:.56,500:.45,600:.35,700:.29,800:.23,900:.18,950:.1},r=ol(n),i=tl(r),o={};for(const s in t){const a=s,c={h:i.h,s:i.s,l:t[a]};o[s]=zo(No(c))}return o[e.toString()]=zo(r),o}const _r=n=>{if(el(n))return n;const e=sl(n,500);return{darker:e[950],dark:e[900],main:e[500],light:e[100],lighter:e[50]}},al=n=>{const e=_r(n.primary),t=_r(n.secondary??"#000000"),r=_r(n.default??"#000000"),i=_r(n.error??"#e74c3c");return{radius:n.radius,title:{fontFamily:n.titleFontFamily??"Poppins"},text:{fontFamily:n.textFontFamily??"Poppins, sans-serif"},palette:{primary:e,secondary:t,default:r,error:i},components:n.components}},ct={none:"0px",sm:"8px",md:"12px",lg:"14px",full:"42px"},ll=al({radius:"none",titleFontFamily:"Inter Variable",textFontFamily:"Space Mono",primary:"#6090fa"}),cl=ll,Cf=()=>k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}),k.jsx("path",{d:"m9 12 2 2 4-4"})]});var Fe=function(){return Fe=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fe.apply(this,arguments)};function qr(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;function kf(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var Pf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ef=kf(function(n){return Pf.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),fe="-ms-",En="-moz-",ne="-webkit-",ul="comm",li="rule",Fo="decl",Mf="@import",fl="@keyframes",Of="@layer",dl=Math.abs,Bo=String.fromCharCode,Yo=Object.assign;function Df(n,e){return Oe(n,0)^45?(((e<<2^Oe(n,0))<<2^Oe(n,1))<<2^Oe(n,2))<<2^Oe(n,3):0}function hl(n){return n.trim()}function zt(n,e){return(n=e.exec(n))?n[0]:n}function G(n,e,t){return n.replace(e,t)}function ci(n,e,t){return n.indexOf(e,t)}function Oe(n,e){return n.charCodeAt(e)|0}function Kr(n,e,t){return n.slice(e,t)}function Ot(n){return n.length}function pl(n){return n.length}function Mn(n,e){return e.push(n),n}function Af(n,e){return n.map(e).join("")}function gl(n,e){return n.filter(function(t){return!zt(t,e)})}var ui=1,Qr=1,ml=0,ut=0,Ce=0,Zr="";function fi(n,e,t,r,i,o,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:o,line:ui,column:Qr,length:s,return:"",siblings:a}}function Jt(n,e){return Yo(fi("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function Jr(n){for(;n.root;)n=Jt(n.root,{children:[n]});Mn(n,n.siblings)}function Rf(){return Ce}function $f(){return Ce=ut>0?Oe(Zr,--ut):0,Qr--,Ce===10&&(Qr=1,ui--),Ce}function _t(){return Ce=ut<ml?Oe(Zr,ut++):0,Qr++,Ce===10&&(Qr=1,ui++),Ce}function yr(){return Oe(Zr,ut)}function di(){return ut}function hi(n,e){return Kr(Zr,n,e)}function Wo(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Lf(n){return ui=Qr=1,ml=Ot(Zr=n),ut=0,[]}function If(n){return Zr="",n}function Xo(n){return hl(hi(ut-1,Ho(n===91?n+2:n===40?n+1:n)))}function Nf(n){for(;(Ce=yr())&&Ce<33;)_t();return Wo(n)>2||Wo(Ce)>3?"":" "}function zf(n,e){for(;--e&&_t()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return hi(n,di()+(e<6&&yr()==32&&_t()==32))}function Ho(n){for(;_t();)switch(Ce){case n:return ut;case 34:case 39:n!==34&&n!==39&&Ho(Ce);break;case 40:n===41&&Ho(n);break;case 92:_t();break}return ut}function Ff(n,e){for(;_t()&&n+Ce!==57;)if(n+Ce===84&&yr()===47)break;return"/*"+hi(e,ut-1)+"*"+Bo(n===47?n:_t())}function Bf(n){for(;!Wo(yr());)_t();return hi(n,ut)}function Yf(n){return If(pi("",null,null,null,[""],n=Lf(n),0,[0],n))}function pi(n,e,t,r,i,o,s,a,c){for(var u=0,f=0,d=s,p=0,l=0,g=0,h=1,_=1,v=1,b=0,S="",P=i,m=o,w=r,T=S;_;)switch(g=b,b=_t()){case 40:if(g!=108&&Oe(T,d-1)==58){ci(T+=G(Xo(b),"&","&\f"),"&\f",dl(u?a[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Xo(b);break;case 9:case 10:case 13:case 32:T+=Nf(g);break;case 92:T+=zf(di()-1,7);continue;case 47:switch(yr()){case 42:case 47:Mn(Wf(Ff(_t(),di()),e,t,c),c);break;default:T+="/"}break;case 123*h:a[u++]=Ot(T)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+f:v==-1&&(T=G(T,/\f/g,"")),l>0&&Ot(T)-d&&Mn(l>32?yl(T+";",r,t,d-1,c):yl(G(T," ","")+";",r,t,d-2,c),c);break;case 59:T+=";";default:if(Mn(w=_l(T,e,t,u,f,i,a,S,P=[],m=[],d,o),o),b===123)if(f===0)pi(T,e,w,w,P,o,d,a,m);else switch(p===99&&Oe(T,3)===110?100:p){case 100:case 108:case 109:case 115:pi(n,w,w,r&&Mn(_l(n,w,w,0,0,i,a,S,i,P=[],d,m),m),i,m,d,a,r?P:m);break;default:pi(T,w,w,w,[""],m,0,a,m)}}u=f=l=0,h=v=1,S=T="",d=s;break;case 58:d=1+Ot(T),l=g;default:if(h<1){if(b==123)--h;else if(b==125&&h++==0&&$f()==125)continue}switch(T+=Bo(b),b*h){case 38:v=f>0?1:(T+="\f",-1);break;case 44:a[u++]=(Ot(T)-1)*v,v=1;break;case 64:yr()===45&&(T+=Xo(_t())),p=yr(),f=d=Ot(S=T+=Bf(di())),b++;break;case 45:g===45&&Ot(T)==2&&(h=0)}}return o}function _l(n,e,t,r,i,o,s,a,c,u,f,d){for(var p=i-1,l=i===0?o:[""],g=pl(l),h=0,_=0,v=0;h<r;++h)for(var b=0,S=Kr(n,p+1,p=dl(_=s[h])),P=n;b<g;++b)(P=hl(_>0?l[b]+" "+S:G(S,/&\f/g,l[b])))&&(c[v++]=P);return fi(n,e,t,i===0?li:a,c,u,f,d)}function Wf(n,e,t,r){return fi(n,e,t,ul,Bo(Rf()),Kr(n,2,-2),0,r)}function yl(n,e,t,r,i){return fi(n,e,t,Fo,Kr(n,0,r),Kr(n,r+1,-1),r,i)}function xl(n,e,t){switch(Df(n,e)){case 5103:return ne+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+n+n;case 4789:return En+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+n+En+n+fe+n+n;case 5936:switch(Oe(n,e+11)){case 114:return ne+n+fe+G(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return ne+n+fe+G(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return ne+n+fe+G(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return ne+n+fe+n+n;case 6165:return ne+n+fe+"flex-"+n+n;case 5187:return ne+n+G(n,/(\w+).+(:[^]+)/,ne+"box-$1$2"+fe+"flex-$1$2")+n;case 5443:return ne+n+fe+"flex-item-"+G(n,/flex-|-self/g,"")+(zt(n,/flex-|baseline/)?"":fe+"grid-row-"+G(n,/flex-|-self/g,""))+n;case 4675:return ne+n+fe+"flex-line-pack"+G(n,/align-content|flex-|-self/g,"")+n;case 5548:return ne+n+fe+G(n,"shrink","negative")+n;case 5292:return ne+n+fe+G(n,"basis","preferred-size")+n;case 6060:return ne+"box-"+G(n,"-grow","")+ne+n+fe+G(n,"grow","positive")+n;case 4554:return ne+G(n,/([^-])(transform)/g,"$1"+ne+"$2")+n;case 6187:return G(G(G(n,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),n,"")+n;case 5495:case 3959:return G(n,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return G(G(n,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+n+n;case 4200:if(!zt(n,/flex-|baseline/))return fe+"grid-column-align"+Kr(n,e)+n;break;case 2592:case 3360:return fe+G(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,i){return e=i,zt(r.props,/grid-\w+-end/)})?~ci(n+(t=t[e].value),"span",0)?n:fe+G(n,"-start","")+n+fe+"grid-row-span:"+(~ci(t,"span",0)?zt(t,/\d+/):+zt(t,/\d+/)-+zt(n,/\d+/))+";":fe+G(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return zt(r.props,/grid-\w+-start/)})?n:fe+G(G(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return G(n,/(.+)-inline(.+)/,ne+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ot(n)-1-e>6)switch(Oe(n,e+1)){case 109:if(Oe(n,e+4)!==45)break;case 102:return G(n,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+En+(Oe(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~ci(n,"stretch",0)?xl(G(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return G(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,a,c,u){return fe+i+":"+o+u+(s?fe+i+"-span:"+(a?c:+c-+o)+u:"")+n});case 4949:if(Oe(n,e+6)===121)return G(n,":",":"+ne)+n;break;case 6444:switch(Oe(n,Oe(n,14)===45?18:11)){case 120:return G(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ne+(Oe(n,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+fe+"$2box$3")+n;case 100:return G(n,":",":"+fe)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return G(n,"scroll-","scroll-snap-")+n}return n}function gi(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function Xf(n,e,t,r){switch(n.type){case Of:if(n.children.length)break;case Mf:case Fo:return n.return=n.return||n.value;case ul:return"";case fl:return n.return=n.value+"{"+gi(n.children,r)+"}";case li:if(!Ot(n.value=n.props.join(",")))return""}return Ot(t=gi(n.children,r))?n.return=n.value+"{"+t+"}":""}function Hf(n){var e=pl(n);return function(t,r,i,o){for(var s="",a=0;a<e;a++)s+=n[a](t,r,i,o)||"";return s}}function Vf(n){return function(e){e.root||(e=e.return)&&n(e)}}function jf(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case Fo:n.return=xl(n.value,n.length,t);return;case fl:return gi([Jt(n,{value:G(n.value,"@","@"+ne)})],r);case li:if(n.length)return Af(t=n.props,function(i){switch(zt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Jr(Jt(n,{props:[G(i,/:(read-\w+)/,":"+En+"$1")]})),Jr(Jt(n,{props:[i]})),Yo(n,{props:gl(t,r)});break;case"::placeholder":Jr(Jt(n,{props:[G(i,/:(plac\w+)/,":"+ne+"input-$1")]})),Jr(Jt(n,{props:[G(i,/:(plac\w+)/,":"+En+"$1")]})),Jr(Jt(n,{props:[G(i,/:(plac\w+)/,fe+"input-$1")]})),Jr(Jt(n,{props:[i]})),Yo(n,{props:gl(t,r)});break}return""})}}var Uf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xr=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",vl="active",wl="data-styled-version",mi="6.1.19",Vo=`/*!sc*/
|
|
24
|
+
`,_i=typeof window<"u"&&typeof document<"u",Gf=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),bl=/invalid hook call/i,yi=new Set,qf=function(n,e){if(process.env.NODE_ENV!=="production"){var t=e?' with the id of "'.concat(e,'"'):"",r="The component ".concat(n).concat(t,` has been created dynamically.
|
|
25
25
|
`)+`You may see this warning because you've called styled inside another component.
|
|
26
26
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
27
27
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
28
|
-
`,i=console.error;try{var o=!0;console.error=function(s){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];bl.test(s)?(o=!1,
|
|
28
|
+
`,i=console.error;try{var o=!0;console.error=function(s){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];bl.test(s)?(o=!1,yi.delete(r)):i.apply(void 0,qr([s],a,!1))},x.useRef(),o&&!yi.has(r)&&(console.warn(r),yi.add(r))}catch(s){bl.test(s.message)&&yi.delete(r)}finally{console.error=i}}},xi=Object.freeze([]),en=Object.freeze({});function Kf(n,e,t){return t===void 0&&(t=en),n.theme!==t.theme&&n.theme||e||t.theme}var jo=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Qf=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Zf=/(^-|-$)/g;function Sl(n){return n.replace(Qf,"-").replace(Zf,"")}var Jf=/(a)(d)/gi,vi=52,Tl=function(n){return String.fromCharCode(n+(n>25?39:97))};function Uo(n){var e,t="";for(e=Math.abs(n);e>vi;e=e/vi|0)t=Tl(e%vi)+t;return(Tl(e%vi)+t).replace(Jf,"$1-$2")}var Go,Cl=5381,vr=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},kl=function(n){return vr(Cl,n)};function ed(n){return Uo(kl(n)>>>0)}function Pl(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function qo(n){return typeof n=="string"&&(process.env.NODE_ENV==="production"||n.charAt(0)===n.charAt(0).toLowerCase())}var El=typeof Symbol=="function"&&Symbol.for,Ml=El?Symbol.for("react.memo"):60115,td=El?Symbol.for("react.forward_ref"):60112,rd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},nd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ol={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},id=((Go={})[td]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Go[Ml]=Ol,Go);function Dl(n){return("type"in(e=n)&&e.type.$$typeof)===Ml?Ol:"$$typeof"in n?id[n.$$typeof]:rd;var e}var od=Object.defineProperty,sd=Object.getOwnPropertyNames,Al=Object.getOwnPropertySymbols,ad=Object.getOwnPropertyDescriptor,ld=Object.getPrototypeOf,Rl=Object.prototype;function $l(n,e,t){if(typeof e!="string"){if(Rl){var r=ld(e);r&&r!==Rl&&$l(n,r,t)}var i=sd(e);Al&&(i=i.concat(Al(e)));for(var o=Dl(n),s=Dl(e),a=0;a<i.length;++a){var c=i[a];if(!(c in nd||t&&t[c]||s&&c in s||o&&c in o)){var u=ad(e,c);try{od(n,c,u)}catch{}}}}return n}function wr(n){return typeof n=="function"}function Ko(n){return typeof n=="object"&&"styledComponentId"in n}function br(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function Ll(n,e){if(n.length===0)return"";for(var t=n[0],r=1;r<n.length;r++)t+=n[r];return t}function tn(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Qo(n,e,t){if(t===void 0&&(t=!1),!t&&!tn(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Qo(n[r],e[r]);else if(tn(e))for(var r in e)n[r]=Qo(n[r],e[r]);return n}function Zo(n,e){Object.defineProperty(n,"toString",{value:e})}var cd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
29
29
|
|
|
30
30
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
31
31
|
|
|
@@ -66,7 +66,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
66
66
|
|
|
67
67
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
68
68
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
69
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function cd(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],i=1,o=n.length;i<o;i+=1)r.push(n[i]);return r.forEach(function(s){t=t.replace(/%[a-z]/,s)}),t}function Rt(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(cd.apply(void 0,Qr([ld[n]],e,!1)).trim())}var ud=(function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return n.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},n.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;e>=o;)if((o<<=1)<0)throw Rt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),c=(s=0,t.length);s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},n.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),i=r+t;this.groupSizes[e]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},n.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var r=this.groupSizes[e],i=this.indexOfGroup(e),o=i+r,s=i;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(Vo);return t},n})(),fd=1<<30,Si=new Map,Ci=new Map,Ti=1,ki=function(n){if(Si.has(n))return Si.get(n);for(;Ci.has(Ti);)Ti++;var e=Ti++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>fd))throw Rt(16,"".concat(e));return Si.set(n,e),Ci.set(e,n),e},dd=function(n,e){Ti=e+1,Si.set(n,e),Ci.set(e,n)},hd="style[".concat(wr,"][").concat(wl,'="').concat(yi,'"]'),pd=new RegExp("^".concat(wr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),gd=function(n,e,t){for(var r,i=t.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&n.registerName(e,r)},md=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(Vo),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var c=a.match(pd);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(dd(f,u),gd(n,f,c[3]),n.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},Il=function(n){for(var e=document.querySelectorAll(hd),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(wr)!==vl&&(md(n,i),i.parentNode&&i.parentNode.removeChild(i))}};function _d(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Nl=function(n){var e=document.head,t=n||e,r=document.createElement("style"),i=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(wr,"]")));return c[c.length-1]})(t),o=i!==void 0?i.nextSibling:null;r.setAttribute(wr,vl),r.setAttribute(wl,yi);var s=_d();return s&&r.setAttribute("nonce",s),t.insertBefore(r,o),r},yd=(function(){function n(e){this.element=Nl(e),this.element.appendChild(document.createTextNode("")),this.sheet=(function(t){if(t.sheet)return t.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var s=r[i];if(s.ownerNode===t)return s}throw Rt(17)})(this.element),this.length=0}return n.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},n.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},n})(),xd=(function(){function n(e){this.element=Nl(e),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},n})(),vd=(function(){function n(e){this.rules=[],this.length=0}return n.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},n.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},n})(),zl=xi,wd={isServer:!xi,useCSSOMInjection:!Uf},Fl=(function(){function n(e,t,r){e===void 0&&(e=rn),t===void 0&&(t={});var i=this;this.options=Fe(Fe({},wd),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&xi&&zl&&(zl=!1,Il(this)),Zo(this,function(){return(function(o){for(var s=o.getTag(),a=s.length,c="",u=function(d){var g=(function(v){return Ci.get(v)})(d);if(g===void 0)return"continue";var l=o.names.get(g),p=s.getGroup(d);if(l===void 0||!l.size||p.length===0)return"continue";var h="".concat(wr,".g").concat(d,'[id="').concat(g,'"]'),m="";l!==void 0&&l.forEach(function(v){v.length>0&&(m+="".concat(v,","))}),c+="".concat(p).concat(h,'{content:"').concat(m,'"}').concat(Vo)},f=0;f<a;f++)u(f);return c})(i)})}return n.registerId=function(e){return ki(e)},n.prototype.rehydrate=function(){!this.server&&xi&&Il(this)},n.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new n(Fe(Fe({},this.options),e),this.gs,t&&this.names||void 0)},n.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(e=(function(t){var r=t.useCSSOMInjection,i=t.target;return t.isServer?new vd(i):r?new yd(i):new xd(i)})(this.options),new ud(e)));var e},n.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},n.prototype.registerName=function(e,t){if(ki(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},n.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(ki(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(ki(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n})(),bd=/&/g,Sd=/^\s*\/\/.*$/gm;function Bl(n,e){return n.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=Bl(t.children,e)),t})}function Cd(n){var e,t,r,i=rn,o=i.options,s=o===void 0?rn:o,a=i.plugins,c=a===void 0?wi:a,u=function(g,l,p){return p.startsWith(t)&&p.endsWith(t)&&p.replaceAll(t,"").length>0?".".concat(e):g},f=c.slice();f.push(function(g){g.type===ui&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(bd,t).replace(r,u))}),s.prefix&&f.push(Vf),f.push(Wf);var d=function(g,l,p,h){l===void 0&&(l=""),p===void 0&&(p=""),h===void 0&&(h="&"),e=h,t=l,r=new RegExp("\\".concat(t,"\\b"),"g");var m=g.replace(Sd,""),v=Bf(p||l?"".concat(p," ").concat(l," { ").concat(m," }"):m);s.namespace&&(v=Bl(v,s.namespace));var b=[];return _i(v,Xf(f.concat(Hf(function(S){return b.push(S)})))),b};return d.hash=c.length?c.reduce(function(g,l){return l.name||Rt(15),br(g,l.name)},Tl).toString():"",d}var Td=new Fl,Jo=Cd(),Yl=y.createContext({shouldForwardProp:void 0,styleSheet:Td,stylis:Jo});Yl.Consumer,y.createContext(void 0);function Wl(){return y.useContext(Yl)}var Xl=(function(){function n(e,t){var r=this;this.inject=function(i,o){o===void 0&&(o=Jo);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Zo(this,function(){throw Rt(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=Jo),this.name+e.hash},n})(),kd=function(n){return n>="A"&&n<="Z"};function Hl(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;kd(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Vl=function(n){return n==null||n===!1||n===""},jl=function(n){var e,t,r=[];for(var i in n){var o=n[i];n.hasOwnProperty(i)&&!Vl(o)&&(Array.isArray(o)&&o.isCss||Sr(o)?r.push("".concat(Hl(i),":"),o,";"):nn(o)?r.push.apply(r,Qr(Qr(["".concat(i," {")],jl(o),!1),["}"],!1)):r.push("".concat(Hl(i),": ").concat((e=i,(t=o)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in jf||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function Tr(n,e,t,r){if(Vl(n))return[];if(Ko(n))return[".".concat(n.styledComponentId)];if(Sr(n)){if(!Sr(o=n)||o.prototype&&o.prototype.isReactComponent||!e)return[n];var i=n(e);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Xl||nn(i)||i===null||console.error("".concat(Pl(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Tr(i,e,t,r)}var o;return n instanceof Xl?t?(n.inject(t,r),[n.getName(r)]):[n]:nn(n)?jl(n):Array.isArray(n)?Array.prototype.concat.apply(wi,n.map(function(s){return Tr(s,e,t,r)})):[n.toString()]}function Pd(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(Sr(t)&&!Ko(t))return!1}return!0}var Ed=kl(yi),Md=(function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Pd(e),this.componentId=t,this.baseHash=br(Ed,t),this.baseStyle=r,Fl.registerId(t)}return n.prototype.generateAndInjectStyles=function(e,t,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Cr(i,this.staticRulesId);else{var o=Ll(Tr(this.rules,e,t,r)),s=Uo(br(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}i=Cr(i,s),this.staticRulesId=s}else{for(var c=br(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var d=this.rules[f];if(typeof d=="string")u+=d,process.env.NODE_ENV!=="production"&&(c=br(c,d));else if(d){var g=Ll(Tr(d,e,t,r));c=br(c,g+f),u+=g}}if(u){var l=Uo(c>>>0);t.hasNameForId(this.componentId,l)||t.insertRules(this.componentId,l,r(u,".".concat(l),void 0,this.componentId)),i=Cr(i,l)}}return i},n})(),Dn=y.createContext(void 0);Dn.Consumer;function nt(){var n=y.useContext(Dn);if(!n)throw Rt(18);return n}function Od(n){var e=y.useContext(Dn),t=y.useMemo(function(){return(function(r,i){if(!r)throw Rt(14);if(Sr(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw Rt(7);return o}if(Array.isArray(r)||typeof r!="object")throw Rt(8);return i?Fe(Fe({},i),r):r})(n.theme,e)},[n.theme,e]);return n.children?y.createElement(Dn.Provider,{value:t},n.children):null}var es={},Ul=new Set;function Ad(n,e,t){var r=Ko(n),i=n,o=!qo(n),s=e.attrs,a=s===void 0?wi:s,c=e.componentId,u=c===void 0?(function(P,_){var w=typeof P!="string"?"sc":Sl(P);es[w]=(es[w]||0)+1;var C="".concat(w,"-").concat(Jf(yi+w+es[w]));return _?"".concat(_,"-").concat(C):C})(e.displayName,e.parentComponentId):c,f=e.displayName,d=f===void 0?(function(P){return qo(P)?"styled.".concat(P):"Styled(".concat(Pl(P),")")})(n):f,g=e.displayName&&e.componentId?"".concat(Sl(e.displayName),"-").concat(e.componentId):e.componentId||u,l=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,p=e.shouldForwardProp;if(r&&i.shouldForwardProp){var h=i.shouldForwardProp;if(e.shouldForwardProp){var m=e.shouldForwardProp;p=function(P,_){return h(P,_)&&m(P,_)}}else p=h}var v=new Md(t,g,r?i.componentStyle:void 0);function b(P,_){return(function(w,C,T){var M=w.attrs,z=w.componentStyle,R=w.defaultProps,L=w.foldedComponentIds,O=w.styledComponentId,N=w.target,Y=y.useContext(Dn),B=Wl(),X=w.shouldForwardProp||B.shouldForwardProp;process.env.NODE_ENV!=="production"&&y.useDebugValue(O);var ne=qf(C,Y,R)||rn,Q=(function($e,Ae,$t){for(var he,Ct=Fe(Fe({},Ae),{className:void 0,theme:$t}),mt=0;mt<$e.length;mt+=1){var st=Sr(he=$e[mt])?he(Ct):he;for(var Ye in st)Ct[Ye]=Ye==="className"?Cr(Ct[Ye],st[Ye]):Ye==="style"?Fe(Fe({},Ct[Ye]),st[Ye]):st[Ye]}return Ae.className&&(Ct.className=Cr(Ct.className,Ae.className)),Ct})(M,C,ne),Z=Q.as||N,U={};for(var H in Q)Q[H]===void 0||H[0]==="$"||H==="as"||H==="theme"&&Q.theme===ne||(H==="forwardedAs"?U.as=Q.forwardedAs:X&&!X(H,Z)||(U[H]=Q[H],X||process.env.NODE_ENV!=="development"||Pf(H)||Ul.has(H)||!jo.has(Z)||(Ul.add(H),console.warn('styled-components: it looks like an unknown prop "'.concat(H,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var te=(function($e,Ae){var $t=Wl(),he=$e.generateAndInjectStyles(Ae,$t.styleSheet,$t.stylis);return process.env.NODE_ENV!=="production"&&y.useDebugValue(he),he})(z,Q);process.env.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(te);var K=Cr(L,O);return te&&(K+=" "+te),Q.className&&(K+=" "+Q.className),U[qo(Z)&&!jo.has(Z)?"class":"className"]=K,T&&(U.ref=T),y.createElement(Z,U)})(S,P,_)}b.displayName=d;var S=y.forwardRef(b);return S.attrs=l,S.componentStyle=v,S.displayName=d,S.shouldForwardProp=p,S.foldedComponentIds=r?Cr(i.foldedComponentIds,i.styledComponentId):"",S.styledComponentId=g,S.target=r?i.target:n,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?(function(_){for(var w=[],C=1;C<arguments.length;C++)w[C-1]=arguments[C];for(var T=0,M=w;T<M.length;T++)Qo(_,M[T],!0);return _})({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(Gf(d,g),S.warnTooManyClasses=(function(P,_){var w={},C=!1;return function(T){if(!C&&(w[T]=!0,Object.keys(w).length>=200)){var M=_?' with the id of "'.concat(_,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(P).concat(M,`.
|
|
69
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ud(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],i=1,o=n.length;i<o;i+=1)r.push(n[i]);return r.forEach(function(s){t=t.replace(/%[a-z]/,s)}),t}function Dt(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(ud.apply(void 0,qr([cd[n]],e,!1)).trim())}var fd=(function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return n.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},n.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;e>=o;)if((o<<=1)<0)throw Dt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),c=(s=0,t.length);s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},n.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),i=r+t;this.groupSizes[e]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},n.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var r=this.groupSizes[e],i=this.indexOfGroup(e),o=i+r,s=i;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(Vo);return t},n})(),dd=1<<30,wi=new Map,bi=new Map,Si=1,Ti=function(n){if(wi.has(n))return wi.get(n);for(;bi.has(Si);)Si++;var e=Si++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>dd))throw Dt(16,"".concat(e));return wi.set(n,e),bi.set(e,n),e},hd=function(n,e){Si=e+1,wi.set(n,e),bi.set(e,n)},pd="style[".concat(xr,"][").concat(wl,'="').concat(mi,'"]'),gd=new RegExp("^".concat(xr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),md=function(n,e,t){for(var r,i=t.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&n.registerName(e,r)},_d=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(Vo),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var c=a.match(gd);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(hd(f,u),md(n,f,c[3]),n.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},Il=function(n){for(var e=document.querySelectorAll(pd),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(xr)!==vl&&(_d(n,i),i.parentNode&&i.parentNode.removeChild(i))}};function yd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Nl=function(n){var e=document.head,t=n||e,r=document.createElement("style"),i=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(xr,"]")));return c[c.length-1]})(t),o=i!==void 0?i.nextSibling:null;r.setAttribute(xr,vl),r.setAttribute(wl,mi);var s=yd();return s&&r.setAttribute("nonce",s),t.insertBefore(r,o),r},xd=(function(){function n(e){this.element=Nl(e),this.element.appendChild(document.createTextNode("")),this.sheet=(function(t){if(t.sheet)return t.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var s=r[i];if(s.ownerNode===t)return s}throw Dt(17)})(this.element),this.length=0}return n.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},n.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},n})(),vd=(function(){function n(e){this.element=Nl(e),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},n})(),wd=(function(){function n(e){this.rules=[],this.length=0}return n.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},n.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},n})(),zl=_i,bd={isServer:!_i,useCSSOMInjection:!Gf},Fl=(function(){function n(e,t,r){e===void 0&&(e=en),t===void 0&&(t={});var i=this;this.options=Fe(Fe({},bd),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&_i&&zl&&(zl=!1,Il(this)),Zo(this,function(){return(function(o){for(var s=o.getTag(),a=s.length,c="",u=function(d){var p=(function(v){return bi.get(v)})(d);if(p===void 0)return"continue";var l=o.names.get(p),g=s.getGroup(d);if(l===void 0||!l.size||g.length===0)return"continue";var h="".concat(xr,".g").concat(d,'[id="').concat(p,'"]'),_="";l!==void 0&&l.forEach(function(v){v.length>0&&(_+="".concat(v,","))}),c+="".concat(g).concat(h,'{content:"').concat(_,'"}').concat(Vo)},f=0;f<a;f++)u(f);return c})(i)})}return n.registerId=function(e){return Ti(e)},n.prototype.rehydrate=function(){!this.server&&_i&&Il(this)},n.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new n(Fe(Fe({},this.options),e),this.gs,t&&this.names||void 0)},n.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(e=(function(t){var r=t.useCSSOMInjection,i=t.target;return t.isServer?new wd(i):r?new xd(i):new vd(i)})(this.options),new fd(e)));var e},n.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},n.prototype.registerName=function(e,t){if(Ti(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},n.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Ti(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(Ti(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n})(),Sd=/&/g,Td=/^\s*\/\/.*$/gm;function Bl(n,e){return n.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=Bl(t.children,e)),t})}function Cd(n){var e,t,r,i=en,o=i.options,s=o===void 0?en:o,a=i.plugins,c=a===void 0?xi:a,u=function(p,l,g){return g.startsWith(t)&&g.endsWith(t)&&g.replaceAll(t,"").length>0?".".concat(e):p},f=c.slice();f.push(function(p){p.type===li&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(Sd,t).replace(r,u))}),s.prefix&&f.push(jf),f.push(Xf);var d=function(p,l,g,h){l===void 0&&(l=""),g===void 0&&(g=""),h===void 0&&(h="&"),e=h,t=l,r=new RegExp("\\".concat(t,"\\b"),"g");var _=p.replace(Td,""),v=Yf(g||l?"".concat(g," ").concat(l," { ").concat(_," }"):_);s.namespace&&(v=Bl(v,s.namespace));var b=[];return gi(v,Hf(f.concat(Vf(function(S){return b.push(S)})))),b};return d.hash=c.length?c.reduce(function(p,l){return l.name||Dt(15),vr(p,l.name)},Cl).toString():"",d}var kd=new Fl,Jo=Cd(),Yl=x.createContext({shouldForwardProp:void 0,styleSheet:kd,stylis:Jo});Yl.Consumer,x.createContext(void 0);function Wl(){return x.useContext(Yl)}var Xl=(function(){function n(e,t){var r=this;this.inject=function(i,o){o===void 0&&(o=Jo);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Zo(this,function(){throw Dt(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=Jo),this.name+e.hash},n})(),Pd=function(n){return n>="A"&&n<="Z"};function Hl(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;Pd(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Vl=function(n){return n==null||n===!1||n===""},jl=function(n){var e,t,r=[];for(var i in n){var o=n[i];n.hasOwnProperty(i)&&!Vl(o)&&(Array.isArray(o)&&o.isCss||wr(o)?r.push("".concat(Hl(i),":"),o,";"):tn(o)?r.push.apply(r,qr(qr(["".concat(i," {")],jl(o),!1),["}"],!1)):r.push("".concat(Hl(i),": ").concat((e=i,(t=o)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Uf||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function Sr(n,e,t,r){if(Vl(n))return[];if(Ko(n))return[".".concat(n.styledComponentId)];if(wr(n)){if(!wr(o=n)||o.prototype&&o.prototype.isReactComponent||!e)return[n];var i=n(e);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Xl||tn(i)||i===null||console.error("".concat(Pl(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Sr(i,e,t,r)}var o;return n instanceof Xl?t?(n.inject(t,r),[n.getName(r)]):[n]:tn(n)?jl(n):Array.isArray(n)?Array.prototype.concat.apply(xi,n.map(function(s){return Sr(s,e,t,r)})):[n.toString()]}function Ed(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(wr(t)&&!Ko(t))return!1}return!0}var Md=kl(mi),Od=(function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Ed(e),this.componentId=t,this.baseHash=vr(Md,t),this.baseStyle=r,Fl.registerId(t)}return n.prototype.generateAndInjectStyles=function(e,t,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=br(i,this.staticRulesId);else{var o=Ll(Sr(this.rules,e,t,r)),s=Uo(vr(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}i=br(i,s),this.staticRulesId=s}else{for(var c=vr(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var d=this.rules[f];if(typeof d=="string")u+=d,process.env.NODE_ENV!=="production"&&(c=vr(c,d));else if(d){var p=Ll(Sr(d,e,t,r));c=vr(c,p+f),u+=p}}if(u){var l=Uo(c>>>0);t.hasNameForId(this.componentId,l)||t.insertRules(this.componentId,l,r(u,".".concat(l),void 0,this.componentId)),i=br(i,l)}}return i},n})(),On=x.createContext(void 0);On.Consumer;function tt(){var n=x.useContext(On);if(!n)throw Dt(18);return n}function Dd(n){var e=x.useContext(On),t=x.useMemo(function(){return(function(r,i){if(!r)throw Dt(14);if(wr(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw Dt(7);return o}if(Array.isArray(r)||typeof r!="object")throw Dt(8);return i?Fe(Fe({},i),r):r})(n.theme,e)},[n.theme,e]);return n.children?x.createElement(On.Provider,{value:t},n.children):null}var es={},Ul=new Set;function Ad(n,e,t){var r=Ko(n),i=n,o=!qo(n),s=e.attrs,a=s===void 0?xi:s,c=e.componentId,u=c===void 0?(function(P,m){var w=typeof P!="string"?"sc":Sl(P);es[w]=(es[w]||0)+1;var T="".concat(w,"-").concat(ed(mi+w+es[w]));return m?"".concat(m,"-").concat(T):T})(e.displayName,e.parentComponentId):c,f=e.displayName,d=f===void 0?(function(P){return qo(P)?"styled.".concat(P):"Styled(".concat(Pl(P),")")})(n):f,p=e.displayName&&e.componentId?"".concat(Sl(e.displayName),"-").concat(e.componentId):e.componentId||u,l=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,g=e.shouldForwardProp;if(r&&i.shouldForwardProp){var h=i.shouldForwardProp;if(e.shouldForwardProp){var _=e.shouldForwardProp;g=function(P,m){return h(P,m)&&_(P,m)}}else g=h}var v=new Od(t,p,r?i.componentStyle:void 0);function b(P,m){return(function(w,T,C){var M=w.attrs,N=w.componentStyle,R=w.defaultProps,$=w.foldedComponentIds,O=w.styledComponentId,V=w.target,j=x.useContext(On),F=Wl(),H=w.shouldForwardProp||F.shouldForwardProp;process.env.NODE_ENV!=="production"&&x.useDebugValue(O);var ie=Kf(T,j,R)||en,ee=(function($e,De,At){for(var he,bt=Fe(Fe({},De),{className:void 0,theme:At}),pt=0;pt<$e.length;pt+=1){var nt=wr(he=$e[pt])?he(bt):he;for(var Ye in nt)bt[Ye]=Ye==="className"?br(bt[Ye],nt[Ye]):Ye==="style"?Fe(Fe({},bt[Ye]),nt[Ye]):nt[Ye]}return De.className&&(bt.className=br(bt.className,De.className)),bt})(M,T,ie),Q=ee.as||V,U={};for(var Y in ee)ee[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&ee.theme===ie||(Y==="forwardedAs"?U.as=ee.forwardedAs:H&&!H(Y,Q)||(U[Y]=ee[Y],H||process.env.NODE_ENV!=="development"||Ef(Y)||Ul.has(Y)||!jo.has(Q)||(Ul.add(Y),console.warn('styled-components: it looks like an unknown prop "'.concat(Y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var te=(function($e,De){var At=Wl(),he=$e.generateAndInjectStyles(De,At.styleSheet,At.stylis);return process.env.NODE_ENV!=="production"&&x.useDebugValue(he),he})(N,ee);process.env.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(te);var K=br($,O);return te&&(K+=" "+te),ee.className&&(K+=" "+ee.className),U[qo(Q)&&!jo.has(Q)?"class":"className"]=K,C&&(U.ref=C),x.createElement(Q,U)})(S,P,m)}b.displayName=d;var S=x.forwardRef(b);return S.attrs=l,S.componentStyle=v,S.displayName=d,S.shouldForwardProp=g,S.foldedComponentIds=r?br(i.foldedComponentIds,i.styledComponentId):"",S.styledComponentId=p,S.target=r?i.target:n,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?(function(m){for(var w=[],T=1;T<arguments.length;T++)w[T-1]=arguments[T];for(var C=0,M=w;C<M.length;C++)Qo(m,M[C],!0);return m})({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(qf(d,p),S.warnTooManyClasses=(function(P,m){var w={},T=!1;return function(C){if(!T&&(w[C]=!0,Object.keys(w).length>=200)){var M=m?' with the id of "'.concat(m,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(P).concat(M,`.
|
|
70
70
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
71
71
|
Example:
|
|
72
72
|
const Component = styled.div.attrs(props => ({
|
|
@@ -75,11 +75,11 @@ Example:
|
|
|
75
75
|
},
|
|
76
76
|
}))\`width: 100%;\`
|
|
77
77
|
|
|
78
|
-
<Component />`),
|
|
78
|
+
<Component />`),T=!0,w={}}}})(d,p)),Zo(S,function(){return".".concat(S.styledComponentId)}),o&&$l(S,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Gl(n,e){for(var t=[n[0]],r=0,i=e.length;r<i;r+=1)t.push(e[r],n[r+1]);return t}var ql=function(n){return Object.assign(n,{isCss:!0})};function Tr(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(wr(n)||tn(n))return ql(Sr(Gl(xi,qr([n],e,!0))));var r=n;return e.length===0&&r.length===1&&typeof r[0]=="string"?Sr(r):ql(Sr(Gl(r,e)))}function ts(n,e,t){if(t===void 0&&(t=en),!e)throw Dt(1,e);var r=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return n(e,t,Tr.apply(void 0,qr([i],o,!1)))};return r.attrs=function(i){return ts(n,e,Fe(Fe({},t),{attrs:Array.prototype.concat(t.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return ts(n,e,Fe(Fe({},t),i))},r}var Kl=function(n){return ts(Ad,n)},Be=Kl;jo.forEach(function(n){Be[n]=Kl(n)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
79
79
|
Perhaps you're looking to import 'styled-components/native'?
|
|
80
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
80
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ci="__sc-".concat(xr,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ci]||(window[Ci]=0),window[Ci]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
81
81
|
|
|
82
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
82
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Ci]+=1);const xe=n=>typeof n=="number"?`${n/2}rem`:n,er=n=>{const{m:e,mt:t,mr:r,mb:i,ml:o,mx:s,my:a}=n;return[e&&`margin: ${xe(e)};`,t&&`margin-top: ${xe(t)};`,r&&`margin-right: ${xe(r)};`,i&&`margin-bottom: ${xe(i)};`,o&&`margin-left: ${xe(o)};`,s&&`margin-left: ${xe(s)};`,s&&`margin-right: ${xe(s)};`,a&&`margin-top: ${xe(a)};`,a&&`margin-bottom: ${xe(a)};`].filter(Boolean).join(" ")},Cr=n=>{const{p:e,pt:t,pr:r,pb:i,pl:o,px:s,py:a}=n;return[e&&`padding: ${xe(e)};`,t&&`padding-top: ${xe(t)};`,r&&`padding-right: ${xe(r)};`,i&&`padding-bottom: ${xe(i)};`,o&&`padding-left: ${xe(o)};`,s&&`padding-left: ${xe(s)};`,s&&`padding-right: ${xe(s)};`,a&&`padding-top: ${xe(a)};`,a&&`padding-bottom: ${xe(a)};`].filter(Boolean).join(" ")},Ql=()=>`
|
|
83
83
|
&::-webkit-scrollbar {
|
|
84
84
|
width: 4px;
|
|
85
85
|
height: 4px;
|
|
@@ -97,41 +97,41 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
97
97
|
&::-webkit-scrollbar-thumb:hover {
|
|
98
98
|
background: #555;
|
|
99
99
|
}
|
|
100
|
-
`,
|
|
100
|
+
`,Rd={normal:"normal",center:"center",start:"flex-start",end:"flex-end",stretch:"stretch"},$d={center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},Zl={0:"none",1:"0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)",2:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",3:"0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12)",4:"0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)",6:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",8:"0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)"},Ld=Be.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: ${({direction:n})=>n};
|
|
103
103
|
gap: ${({gap:n})=>n&&xe(n)};
|
|
104
|
-
align-items: ${({align:n})=>n&&
|
|
105
|
-
justify-content: ${({justify:n})=>n
|
|
104
|
+
align-items: ${({align:n})=>n&&Rd[n]};
|
|
105
|
+
justify-content: ${({justify:n})=>n&&$d[n]};
|
|
106
106
|
flex-wrap: ${({wrap:n})=>n};
|
|
107
107
|
box-sizing: border-box;
|
|
108
108
|
width: ${({width:n})=>n};
|
|
109
109
|
height: ${({height:n})=>n};
|
|
110
|
-
border-radius: min(16px, ${({theme:n})=>
|
|
110
|
+
border-radius: min(16px, ${({theme:n})=>ct[n.radius]});
|
|
111
111
|
min-width: ${({minWidth:n})=>n};
|
|
112
112
|
min-height: ${({minheight:n})=>n};
|
|
113
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
114
|
-
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>
|
|
113
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
114
|
+
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Cr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
|
|
115
115
|
box-shadow: ${({elevation:n})=>Zl[n??0]};
|
|
116
116
|
&:hover {
|
|
117
|
-
${n=>n.hoverstyle&&
|
|
117
|
+
${n=>n.hoverstyle&&Tr(n.hoverstyle)}
|
|
118
118
|
}
|
|
119
|
-
`,de=y.forwardRef(({children:n,...e},t)=>{const r=y.useMemo(()=>({...{display:"flex",direction:"column"},...e}),[e]);return k.jsx($d,{ref:t,...r,children:n})});de.displayName="Flex";const on=y.createContext({theme:cl,setTheme:()=>{},autoContrast:!0}),He=()=>{const{autoContrast:n}=y.useContext(on);return n},Jl=n=>{if(n.themes.length===0)throw new Error("No themes provided");const[e,t]=y.useState(n.themes[0]),r=({index:s,theme:a})=>{const c=s!==void 0?n.themes[s]:a;if(!c)throw new Error("Theme not found");t(c)},i=n.autoContrast!==!1,o=y.useMemo(()=>({theme:e,setTheme:r,autoContrast:i}),[e,i]);return k.jsx(on.Provider,{value:o,children:n.children})},Ve=n=>{const e=n.trim().toLowerCase();if(e==="transparent")return"#000000";let t=0,r=0,i=0;if(e.startsWith("#")){let s=e.slice(1);if(s.length===3||s.length===4?s=s.slice(0,3).split("").map(a=>a+a).join(""):s.length===8&&(s=s.slice(0,6)),s.length!==6)throw new Error("Invalid hexadecimal color format.");t=parseInt(s.substring(0,2),16),r=parseInt(s.substring(2,4),16),i=parseInt(s.substring(4,6),16)}else if(e.startsWith("rgb")){const s=e.match(/-?\d+(\.\d+)?/g)?.map(Number);if(!s||s.length<3)throw new Error("Invalid RGB color format.");[t,r,i]=s}else if(e.startsWith("hsl")){const s=e.match(/-?\d+(\.\d+)?/g)?.map(Number);if(!s||s.length<3)throw new Error("Invalid HSL color format.");let[a,c,u]=s;c/=100,u/=100;const f=(1-Math.abs(2*u-1))*c,d=f*(1-Math.abs(a/60%2-1)),g=u-f/2;let l=0,p=0,h=0;0<=a&&a<60?(l=f,p=d,h=0):60<=a&&a<120?(l=d,p=f,h=0):120<=a&&a<180?(l=0,p=f,h=d):180<=a&&a<240?(l=0,p=d,h=f):240<=a&&a<300?(l=d,p=0,h=f):300<=a&&a<360&&(l=f,p=0,h=d),t=Math.round((l+g)*255),r=Math.round((p+g)*255),i=Math.round((h+g)*255)}else throw new Error("Unsupported color format.");if(isNaN(t)||isNaN(r)||isNaN(i))throw new Error("Invalid color values.");return(t*299+r*587+i*114)/1e3>=128?"#000000":"#FFFFFF"},it=n=>{const t=window.getComputedStyle(n).backgroundColor;return t==="rgba(0, 0, 0, 0)"||t==="transparent"?n.parentElement?it(n.parentElement):"#ffffff":t},ec=y.forwardRef(({hasNotification:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=He(),c=y.useRef(null),u=y.useRef(null),[f,d]=y.useState("currentColor");y.useEffect(()=>{if(!a||i)return;const p=c.current?.parentElement;if(p)try{const h=it(p);d(Ve(h))}catch{}});const g=i??f,l=y.useRef(n);return y.useLayoutEffect(()=>{r&&n&&!l.current&&W.fromTo(u.current,{rotation:-15},{rotation:15,duration:.1,repeat:5,yoyo:!0,ease:"power2.inOut",transformOrigin:"50% 20%",onComplete:()=>{W.to(u.current,{rotation:0,duration:.2})}}),l.current=n},[n,r]),k.jsx("svg",{ref:p=>{c.current=p,typeof s=="function"?s(p):s&&(s.current=p)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,style:{overflow:"visible",...o.style},children:k.jsx("g",{ref:u,children:k.jsx("path",{d:"M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9M13.73 21a2 2 0 01-3.46 0",stroke:g,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"})})})}),Ei=y.forwardRef(({isVisible:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=He(),c=y.useRef(null),u=y.useRef(null),[f,d]=y.useState("currentColor");y.useEffect(()=>{if(!a||i)return;const l=c.current?.parentElement;if(l)try{const p=it(l);d(Ve(p))}catch{}});const g=i??f;return y.useLayoutEffect(()=>{if(r&&u.current){const l=u.current,p=l.getTotalLength();n?W.fromTo(l,{strokeDasharray:p,strokeDashoffset:p,opacity:0},{strokeDashoffset:0,opacity:1,duration:.6,ease:"power3.out",delay:.2}):W.to(l,{strokeDashoffset:p,opacity:0,duration:.3,ease:"power2.in"})}},[n,r]),k.jsx("svg",{ref:l=>{c.current=l,typeof s=="function"?s(l):s&&(s.current=l)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:k.jsx("path",{ref:u,d:"M5 13L9 17L19 7",stroke:g,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",style:r?{opacity:n?void 0:0}:void 0})})}),tc=y.forwardRef(({isCopied:n,size:e=24,strokeWidth:t=2,animated:r=!0,color:i,...o},s)=>{const a=He(),c=y.useRef(null),u=y.useRef(null),f=y.useRef(null),d=y.useRef(n),[g,l]=y.useState("currentColor");y.useEffect(()=>{if(!a||i)return;const h=c.current?.parentElement;if(h)try{const m=it(h);l(Ve(m))}catch{}});const p=i??g;return y.useLayoutEffect(()=>{if(!r){W.set([u.current,f.current],{x:0,y:0,scale:1,opacity:1});return}const h=W.context(()=>{n||W.to(u.current,{x:1,y:1,duration:1.5,repeat:-1,yoyo:!0,ease:"sine.inOut"})});return n&&!d.current&&W.timeline().to(u.current,{scale:1.1,x:2,y:2,duration:.2,ease:"power2.out"}).to(u.current,{scale:1,x:0,y:0,duration:.4,ease:"bounce.out"}),d.current=n,()=>h.revert()},[n,r]),k.jsxs("svg",{ref:h=>{c.current=h,typeof s=="function"?s(h):s&&(s.current=h)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:p,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...o,style:{overflow:"visible",...o.style},children:[k.jsx("path",{ref:f,d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}),k.jsx("rect",{ref:u,width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",fill:"none"})]})}),rc=y.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=He(),a=y.useRef(null),c=y.useRef(null),u=y.useRef(null),f=y.useRef(null),[d,g]=y.useState("currentColor");y.useEffect(()=>{if(!s||r)return;const p=a.current?.parentElement;if(p)try{const h=it(p);g(Ve(h))}catch{}});const l=r??d;return y.useLayoutEffect(()=>{if(!t){W.set([c.current,u.current,f.current],{y:0,opacity:1,scale:1});return}const p=W.context(()=>{const h=[c.current,u.current,f.current];W.to(h,{y:-4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"}),W.to(h,{opacity:.4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"})});return()=>p.revert()},[t]),k.jsxs("svg",{ref:p=>{a.current=p,typeof o=="function"?o(p):o&&(o.current=p)},width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:l,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i,style:{overflow:"visible",...i.style},children:[k.jsx("circle",{ref:c,cx:"5",cy:"12",r:"1",fill:l}),k.jsx("circle",{ref:u,cx:"12",cy:"12",r:"1",fill:l}),k.jsx("circle",{ref:f,cx:"19",cy:"12",r:"1",fill:l})]})}),nc=y.forwardRef(({isOpen:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=He(),c=y.useRef(null),u=y.useRef(null),f=y.useRef(null),d=y.useRef(null),[g,l]=y.useState("currentColor");y.useEffect(()=>{if(!a||i)return;const h=c.current?.parentElement;if(h)try{const m=it(h);l(Ve(m))}catch{}});const p=i??g;return y.useLayoutEffect(()=>{if(!r)return;const h=W.timeline({defaults:{duration:.2,ease:"power2.inOut"}});n?h.to(u.current,{attr:{d:"M6 18L18 6"}},0).to(f.current,{autoAlpha:0},0).to(d.current,{attr:{d:"M6 6L18 18"}},0):h.to(u.current,{attr:{d:"M4 6L20 6"}},0).to(f.current,{autoAlpha:1},0).to(d.current,{attr:{d:"M4 18L20 18"}},0)},[n,r]),k.jsxs("svg",{ref:h=>{c.current=h,typeof s=="function"?s(h):s&&(s.current=h)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[k.jsx("path",{ref:u,d:"M4 6L20 6",stroke:p,strokeWidth:t,strokeLinecap:"round"}),k.jsx("path",{ref:f,d:"M4 12L20 12",stroke:p,strokeWidth:t,strokeLinecap:"round"}),k.jsx("path",{ref:d,d:"M4 18L20 18",stroke:p,strokeWidth:t,strokeLinecap:"round"})]})}),ic=y.forwardRef(({isLiked:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=He(),c=y.useRef(null),u=y.useRef(null),[f,d]=y.useState("#FF4500");y.useEffect(()=>{if(!a||i)return;const l=c.current?.parentElement;if(l)try{const p=it(l);d(Ve(p))}catch{}});const g=i??f;return y.useLayoutEffect(()=>{if(!r){W.set(u.current,{fill:n?g:"none",stroke:g});return}const l=W.timeline({defaults:{duration:.2,ease:"power3.inOut"}});n?l.to(u.current,{fill:g,scale:1.2,transformOrigin:"center center"}).to(u.current,{scale:1}):l.to(u.current,{fill:"none"})},[n,r,g]),k.jsx("svg",{ref:l=>{c.current=l,typeof s=="function"?s(l):s&&(s.current=l)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,style:{overflow:"visible",...o.style},children:k.jsx("path",{ref:u,d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:g,strokeWidth:t,strokeLinejoin:"round",fill:"none"})})}),oc=y.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=He(),a=y.useRef(null),c=y.useRef(null),u=y.useRef(null),[f,d]=y.useState("currentColor");y.useEffect(()=>{if(!s||r)return;const l=a.current?.parentElement;if(l)try{const p=it(l);d(Ve(p))}catch{}});const g=r??f;return y.useLayoutEffect(()=>{if(!t){W.set([c.current,u.current],{x:0,y:0,scale:1,opacity:1});return}const l=W.context(()=>{W.timeline({repeat:-1,defaults:{ease:"power2.inOut"}}).to([c.current,u.current],{x:25,opacity:0,duration:.8,ease:"power2.in"}).set([c.current,u.current],{x:-25}).to([c.current,u.current],{x:0,opacity:1,duration:.8,ease:"power2.out"}).to({},{duration:.4})});return()=>l.revert()},[t]),k.jsxs("svg",{ref:l=>{a.current=l,typeof o=="function"?o(l):o&&(o.current=l)},width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:g,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i,style:{overflow:"visible",...i.style},children:[k.jsx("path",{ref:c,d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z"}),k.jsx("path",{ref:u,d:"M6 12h16"})]})}),sc=y.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=He(),a=y.useRef(null),c=y.useRef(null),u=y.useRef(null),f=y.useRef(null),[d,g]=y.useState("currentColor");y.useEffect(()=>{if(!s||r)return;const p=a.current?.parentElement;if(p)try{const h=it(p);g(Ve(h))}catch{}});const l=r??d;return y.useLayoutEffect(()=>{if(!t){W.set([c.current,u.current,f.current],{scale:1,opacity:1,rotation:0});return}const p=W.context(()=>{W.to(c.current,{scale:1.1,rotation:5,duration:.8,repeat:-1,yoyo:!0,ease:"sine.inOut",transformOrigin:"center center"}),W.to(u.current,{opacity:.3,scale:.7,duration:.6,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.2,transformOrigin:"center center"}),W.to(f.current,{opacity:.3,scale:.7,duration:.7,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.4,transformOrigin:"center center"})});return()=>p.revert()},[t]),k.jsxs("svg",{ref:p=>{a.current=p,typeof o=="function"?o(p):o&&(o.current=p)},width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:l,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i,style:{overflow:"visible",...i.style},children:[k.jsx("path",{ref:c,d:"M9.937 15.5A2 2 0 0 0 8.5 14.063L2 12l6.5-2.063A2 2 0 0 0 9.937 8.5L12 2l2.063 6.5a2 2 0 0 0 1.437 1.437L22 12l-6.5 2.063a2 2 0 0 0-1.437 1.437L12 22l-2.063-6.5Z"}),k.jsxs("g",{ref:u,children:[k.jsx("path",{d:"M20 3v4"}),k.jsx("path",{d:"M19 5h4"})]}),k.jsxs("g",{ref:f,children:[k.jsx("path",{d:"M5 17v4"}),k.jsx("path",{d:"M4 19h4"})]})]})}),ac=y.forwardRef(({isSyncing:n=!1,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=He(),c=y.useRef(null),u=y.useRef(null),f=y.useRef(n),[d,g]=y.useState("currentColor");y.useEffect(()=>{if(!a||i)return;const p=c.current?.parentElement;if(p)try{const h=it(p);g(Ve(h))}catch{}});const l=i??d;return y.useLayoutEffect(()=>{if(!r)return;const p=u.current,h=f.current;return p&&(!h&&n?W.to(p,{rotation:360,repeat:-1,ease:"linear",duration:1,transformOrigin:"50% 50%"}):n||(W.killTweensOf(p),W.set(p,{rotation:0}))),f.current=n,()=>{u.current&&W.killTweensOf(u.current)}},[n,r]),k.jsx("svg",{ref:p=>{c.current=p,typeof s=="function"?s(p):s&&(s.current=p)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:k.jsx("g",{ref:u,children:k.jsx("path",{d:"M23 4v6h-6M1 20v-6h6M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15",stroke:l,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"})})})}),Mi={sm:768,md:1024,lg:1280,xl:1280},lc=()=>typeof window<"u"?window.innerWidth:0,sn=()=>{const[n,e]=y.useState(lc());y.useEffect(()=>{const a=()=>{e(lc())};return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[]);const{breakpoint:t,isMobile:r,isTablet:i,isLaptop:o,isDesktop:s}=y.useMemo(()=>{let a="sm";return n>=Mi.lg?a="xl":n>=Mi.md?a="lg":n>=Mi.sm?a="md":a="sm",{breakpoint:a,isMobile:a==="sm",isTablet:a==="md",isLaptop:a==="lg",isDesktop:a==="xl"}},[n]);return{width:n,breakpoint:t,isMobile:r,isTablet:i,isLaptop:o,isDesktop:s}},Ld=["default","primary","secondary","error"];function ve(n,e){return typeof n=="string"&&!Ld.includes(n)?xr(n):e.palette[n]}function Rn(...n){return y.useCallback(e=>{n.forEach(t=>{t&&(typeof t=="function"?t(e):t.current=e)})},[...n])}const Id=(n,e)=>e==="sm"?`${Number(n)/(8/7)}px`:`${n}px`,cc=n=>{switch(n){case"regular":return"400";case"medium":return"500";case"semibold":return"600";case"bold":return"700";default:return"400"}},Nd=Be.p`
|
|
119
|
+
`,de=x.forwardRef(({children:n,...e},t)=>{const r=x.useMemo(()=>({...{display:"flex",direction:"column"},...e}),[e]);return k.jsx(Ld,{ref:t,...r,children:n})});de.displayName="Flex";const rn=x.createContext({theme:cl,setTheme:()=>{},autoContrast:!0}),ki=()=>{const{autoContrast:n}=x.useContext(rn);return n},Jl=n=>{if(n.themes.length===0)throw new Error("No themes provided");const[e,t]=x.useState(n.themes[0]),r=({index:s,theme:a})=>{const c=s!==void 0?n.themes[s]:a;if(!c)throw new Error("Theme not found");t(c)},i=n.autoContrast!==!1,o=x.useMemo(()=>({theme:e,setTheme:r,autoContrast:i}),[e,i]);return k.jsx(rn.Provider,{value:o,children:n.children})},Pi=n=>{const e=n.trim().toLowerCase();if(e==="transparent")return"#000000";let t=0,r=0,i=0;if(e.startsWith("#")){let s=e.slice(1);if(s.length===3||s.length===4?s=s.slice(0,3).split("").map(a=>a+a).join(""):s.length===8&&(s=s.slice(0,6)),s.length!==6)throw new Error("Invalid hexadecimal color format.");t=parseInt(s.substring(0,2),16),r=parseInt(s.substring(2,4),16),i=parseInt(s.substring(4,6),16)}else if(e.startsWith("rgb")){const s=e.match(/-?\d+(\.\d+)?/g)?.map(Number);if(!s||s.length<3)throw new Error("Invalid RGB color format.");[t,r,i]=s}else if(e.startsWith("hsl")){const s=e.match(/-?\d+(\.\d+)?/g)?.map(Number);if(!s||s.length<3)throw new Error("Invalid HSL color format.");let[a,c,u]=s;c/=100,u/=100;const f=(1-Math.abs(2*u-1))*c,d=f*(1-Math.abs(a/60%2-1)),p=u-f/2;let l=0,g=0,h=0;0<=a&&a<60?(l=f,g=d,h=0):60<=a&&a<120?(l=d,g=f,h=0):120<=a&&a<180?(l=0,g=f,h=d):180<=a&&a<240?(l=0,g=d,h=f):240<=a&&a<300?(l=d,g=0,h=f):300<=a&&a<360&&(l=f,g=0,h=d),t=Math.round((l+p)*255),r=Math.round((g+p)*255),i=Math.round((h+p)*255)}else throw new Error("Unsupported color format.");if(isNaN(t)||isNaN(r)||isNaN(i))throw new Error("Invalid color values.");return(t*299+r*587+i*114)/1e3>=128?"#000000":"#FFFFFF"},ec=n=>{const t=window.getComputedStyle(n).backgroundColor;return t==="rgba(0, 0, 0, 0)"||t==="transparent"?n.parentElement?ec(n.parentElement):"#ffffff":t};function ft(n,e){const r=!ki()||!!e,[i,o]=x.useState(void 0);return x.useLayoutEffect(()=>{if(r)return;const s=n.current;if(!s)return;const a=()=>{try{const f=ec(s);o(Pi(f))}catch{}};a();const c=new MutationObserver(a);let u=s;for(;u;)c.observe(u,{attributes:!0,attributeFilter:["style","class"]}),u=u.parentElement;return()=>c.disconnect()},[r]),r?void 0:i}const tc=x.forwardRef(({hasNotification:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=x.useRef(null),c=x.useRef(null),u=ft(a,!!i),f=i??u??"currentColor",d=x.useRef(n);return x.useLayoutEffect(()=>{r&&n&&!d.current&&B.fromTo(c.current,{rotation:-15},{rotation:15,duration:.1,repeat:5,yoyo:!0,ease:"power2.inOut",transformOrigin:"50% 20%",onComplete:()=>{B.to(c.current,{rotation:0,duration:.2})}}),d.current=n},[n,r]),k.jsx("svg",{ref:p=>{a.current=p,typeof s=="function"?s(p):s&&(s.current=p)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,style:{overflow:"visible",...o.style},children:k.jsx("g",{ref:c,children:k.jsx("path",{d:"M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9M13.73 21a2 2 0 01-3.46 0",stroke:f,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"})})})}),Ei=x.forwardRef(({isVisible:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=x.useRef(null),c=x.useRef(null),u=ft(a,!!i),f=i??u??"currentColor";return x.useLayoutEffect(()=>{if(r&&c.current){const d=c.current,p=d.getTotalLength();n?B.fromTo(d,{strokeDasharray:p,strokeDashoffset:p,opacity:0},{strokeDashoffset:0,opacity:1,duration:.6,ease:"power3.out",delay:.2}):B.to(d,{strokeDashoffset:p,opacity:0,duration:.3,ease:"power2.in"})}},[n,r]),k.jsx("svg",{ref:d=>{a.current=d,typeof s=="function"?s(d):s&&(s.current=d)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:k.jsx("path",{ref:c,d:"M5 13L9 17L19 7",stroke:f,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",style:r?{opacity:n?void 0:0}:void 0})})}),rc=x.forwardRef(({isCopied:n,size:e=24,strokeWidth:t=2,animated:r=!0,color:i,...o},s)=>{const a=x.useRef(null),c=x.useRef(null),u=x.useRef(null),f=x.useRef(n),d=ft(a,!!i),p=i??d??"currentColor";return x.useLayoutEffect(()=>{if(!r){B.set([c.current,u.current],{x:0,y:0,scale:1,opacity:1});return}const l=B.context(()=>{n||B.to(c.current,{x:1,y:1,duration:1.5,repeat:-1,yoyo:!0,ease:"sine.inOut"})});return n&&!f.current&&B.timeline().to(c.current,{scale:1.1,x:2,y:2,duration:.2,ease:"power2.out"}).to(c.current,{scale:1,x:0,y:0,duration:.4,ease:"bounce.out"}),f.current=n,()=>l.revert()},[n,r]),k.jsxs("svg",{ref:l=>{a.current=l,typeof s=="function"?s(l):s&&(s.current=l)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:p,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...o,style:{overflow:"visible",...o.style},children:[k.jsx("path",{ref:u,d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}),k.jsx("rect",{ref:c,width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",fill:"none"})]})}),nc=x.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=x.useRef(null),a=x.useRef(null),c=x.useRef(null),u=x.useRef(null),f=ft(s,!!r),d=r??f??"currentColor";return x.useLayoutEffect(()=>{if(!t){B.set([a.current,c.current,u.current],{y:0,opacity:1,scale:1});return}const p=B.context(()=>{const l=[a.current,c.current,u.current];B.to(l,{y:-4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"}),B.to(l,{opacity:.4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"})});return()=>p.revert()},[t]),k.jsxs("svg",{ref:p=>{s.current=p,typeof o=="function"?o(p):o&&(o.current=p)},width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:d,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i,style:{overflow:"visible",...i.style},children:[k.jsx("circle",{ref:a,cx:"5",cy:"12",r:"1",fill:d}),k.jsx("circle",{ref:c,cx:"12",cy:"12",r:"1",fill:d}),k.jsx("circle",{ref:u,cx:"19",cy:"12",r:"1",fill:d})]})}),ic=x.forwardRef(({isOpen:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=x.useRef(null),c=x.useRef(null),u=x.useRef(null),f=x.useRef(null),d=ft(a,!!i),p=i??d??"currentColor";return x.useLayoutEffect(()=>{if(!r)return;const l=B.timeline({defaults:{duration:.2,ease:"power2.inOut"}});n?l.to(c.current,{attr:{d:"M6 18L18 6"}},0).to(u.current,{autoAlpha:0},0).to(f.current,{attr:{d:"M6 6L18 18"}},0):l.to(c.current,{attr:{d:"M4 6L20 6"}},0).to(u.current,{autoAlpha:1},0).to(f.current,{attr:{d:"M4 18L20 18"}},0)},[n,r]),k.jsxs("svg",{ref:l=>{a.current=l,typeof s=="function"?s(l):s&&(s.current=l)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[k.jsx("path",{ref:c,d:"M4 6L20 6",stroke:p,strokeWidth:t,strokeLinecap:"round"}),k.jsx("path",{ref:u,d:"M4 12L20 12",stroke:p,strokeWidth:t,strokeLinecap:"round"}),k.jsx("path",{ref:f,d:"M4 18L20 18",stroke:p,strokeWidth:t,strokeLinecap:"round"})]})}),oc=x.forwardRef(({isLiked:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=x.useRef(null),c=x.useRef(null),u=ft(a,!!i),f=i??u??"#FF4500";return x.useLayoutEffect(()=>{if(!r){B.set(c.current,{fill:n?f:"none",stroke:f});return}const d=B.timeline({defaults:{duration:.2,ease:"power3.inOut"}});n?d.to(c.current,{fill:f,scale:1.2,transformOrigin:"center center"}).to(c.current,{scale:1}):d.to(c.current,{fill:"none"})},[n,r,f]),k.jsx("svg",{ref:d=>{a.current=d,typeof s=="function"?s(d):s&&(s.current=d)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,style:{overflow:"visible",...o.style},children:k.jsx("path",{ref:c,d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:f,strokeWidth:t,strokeLinejoin:"round",fill:"none"})})}),sc=x.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=x.useRef(null),a=x.useRef(null),c=x.useRef(null),u=ft(s,!!r),f=r??u??"currentColor";return x.useLayoutEffect(()=>{if(!t){B.set([a.current,c.current],{x:0,y:0,scale:1,opacity:1});return}const d=B.context(()=>{B.timeline({repeat:-1,defaults:{ease:"power2.inOut"}}).to([a.current,c.current],{x:25,opacity:0,duration:.8,ease:"power2.in"}).set([a.current,c.current],{x:-25}).to([a.current,c.current],{x:0,opacity:1,duration:.8,ease:"power2.out"}).to({},{duration:.4})});return()=>d.revert()},[t]),k.jsxs("svg",{ref:d=>{s.current=d,typeof o=="function"?o(d):o&&(o.current=d)},width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:f,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i,style:{overflow:"visible",...i.style},children:[k.jsx("path",{ref:a,d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z"}),k.jsx("path",{ref:c,d:"M6 12h16"})]})}),ac=x.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=x.useRef(null),a=x.useRef(null),c=x.useRef(null),u=x.useRef(null),f=ft(s,!!r),d=r??f??"currentColor";return x.useLayoutEffect(()=>{if(!t){B.set([a.current,c.current,u.current],{scale:1,opacity:1,rotation:0});return}const p=B.context(()=>{B.to(a.current,{scale:1.1,rotation:5,duration:.8,repeat:-1,yoyo:!0,ease:"sine.inOut",transformOrigin:"center center"}),B.to(c.current,{opacity:.3,scale:.7,duration:.6,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.2,transformOrigin:"center center"}),B.to(u.current,{opacity:.3,scale:.7,duration:.7,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.4,transformOrigin:"center center"})});return()=>p.revert()},[t]),k.jsxs("svg",{ref:p=>{s.current=p,typeof o=="function"?o(p):o&&(o.current=p)},width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:d,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i,style:{overflow:"visible",...i.style},children:[k.jsx("path",{ref:a,d:"M9.937 15.5A2 2 0 0 0 8.5 14.063L2 12l6.5-2.063A2 2 0 0 0 9.937 8.5L12 2l2.063 6.5a2 2 0 0 0 1.437 1.437L22 12l-6.5 2.063a2 2 0 0 0-1.437 1.437L12 22l-2.063-6.5Z"}),k.jsxs("g",{ref:c,children:[k.jsx("path",{d:"M20 3v4"}),k.jsx("path",{d:"M19 5h4"})]}),k.jsxs("g",{ref:u,children:[k.jsx("path",{d:"M5 17v4"}),k.jsx("path",{d:"M4 19h4"})]})]})}),lc=x.forwardRef(({isSyncing:n=!1,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=x.useRef(null),c=x.useRef(null),u=x.useRef(n),f=ft(a,!!i),d=i??f??"currentColor";return x.useLayoutEffect(()=>{if(!r)return;const p=c.current,l=u.current;return p&&(!l&&n?B.to(p,{rotation:360,repeat:-1,ease:"linear",duration:1,transformOrigin:"50% 50%"}):n||(B.killTweensOf(p),B.set(p,{rotation:0}))),u.current=n,()=>{c.current&&B.killTweensOf(c.current)}},[n,r]),k.jsx("svg",{ref:p=>{a.current=p,typeof s=="function"?s(p):s&&(s.current=p)},width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:k.jsx("g",{ref:c,children:k.jsx("path",{d:"M23 4v6h-6M1 20v-6h6M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15",stroke:d,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"})})})}),Mi={sm:768,md:1024,lg:1280,xl:1280},cc=()=>typeof window<"u"?window.innerWidth:0,nn=()=>{const[n,e]=x.useState(cc());x.useEffect(()=>{const a=()=>{e(cc())};return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[]);const{breakpoint:t,isMobile:r,isTablet:i,isLaptop:o,isDesktop:s}=x.useMemo(()=>{let a="sm";return n>=Mi.lg?a="xl":n>=Mi.md?a="lg":n>=Mi.sm?a="md":a="sm",{breakpoint:a,isMobile:a==="sm",isTablet:a==="md",isLaptop:a==="lg",isDesktop:a==="xl"}},[n]);return{width:n,breakpoint:t,isMobile:r,isTablet:i,isLaptop:o,isDesktop:s}},Id=["default","primary","secondary","error"];function ve(n,e){return typeof n=="string"&&!Id.includes(n)?_r(n):e.palette[n]}function Dn(...n){return x.useCallback(e=>{n.forEach(t=>{t&&(typeof t=="function"?t(e):t.current=e)})},[...n])}const Nd=(n,e)=>e==="sm"?`${Number(n)/(8/7)}px`:`${n}px`,uc=n=>{switch(n){case"regular":return"400";case"medium":return"500";case"semibold":return"600";case"bold":return"700";default:return"400"}},zd=Be.p`
|
|
120
120
|
font-family: ${({theme:n})=>n.text.fontFamily};
|
|
121
121
|
margin: 0;
|
|
122
122
|
color: ${({color:n})=>n};
|
|
123
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
124
|
-
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>
|
|
125
|
-
font-weight: ${({weight:n})=>
|
|
126
|
-
font-size: ${({size:n,breakpoint:e})=>n&&
|
|
123
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
124
|
+
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Cr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
|
|
125
|
+
font-weight: ${({weight:n})=>uc(n)};
|
|
126
|
+
font-size: ${({size:n,breakpoint:e})=>n&&Nd(n,e)};
|
|
127
127
|
width: ${({width:n})=>n};
|
|
128
128
|
height: ${({height:n})=>n};
|
|
129
129
|
text-align: ${({align:n})=>n??"left"};
|
|
130
|
-
`,
|
|
130
|
+
`,Fd=["default","primary","secondary","error"],Re=x.forwardRef(({children:n,onSizeChange:e,color:t,...r},i)=>{const o=tt(),{breakpoint:s}=nn(),a=x.useRef(null),c=ft(a,!!t),u=t?Fd.includes(t)?ve(t,o).main:t:c;x.useEffect(()=>{const d=a.current;if(!d||!e)return;const p=new ResizeObserver(l=>{const g=l[0];if(g){const{width:h,height:_}=g.contentRect;e({width:h,height:_})}});return p.observe(d),()=>{p.unobserve(d)}},[e]);const f=Dn(i,a);return k.jsx(zd,{ref:f,...r,color:u,breakpoint:s,children:n})});Re.displayName="Text";const An=({color:n,theme:e})=>{const r=typeof n=="string"&&!["default","primary","secondary","error"].includes(n)?_r(n):e.palette[n];return{contained:{bgColor:r.main,border:"2px solid transparent",onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},outlined:{bgColor:"transparent",border:`2px solid ${r.main}`,onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},text:{bgColor:"transparent",border:"2px solid transparent",onActive:{transform:"scale(0.95)"},onHover:{backgroundColor:`${r.main}22`}},soft:{bgColor:`${r.main}22`,border:"2px solid transparent",onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}}}},tr={sm:{padding:"4px 0.5rem",fontSize:"12",height:18},md:{padding:"5px 0.75rem",fontSize:"14",height:21},lg:{padding:"6px 1rem",fontSize:"16",height:24}},Bd={sm:{padding:"6px",fontSize:"12"},md:{padding:"8px",fontSize:"14"},lg:{padding:"10px",fontSize:"16"}},Yd=Be.button`
|
|
131
131
|
all: unset;
|
|
132
132
|
|
|
133
133
|
cursor: ${({disabled:n})=>n?"default":"pointer"};
|
|
134
|
-
padding: ${({size:n,label:e,starticon:t,endicon:r})=>!e&&(t||r)?
|
|
134
|
+
padding: ${({size:n,label:e,starticon:t,endicon:r})=>!e&&(t||r)?Bd[n??"md"].padding:tr[n??"md"].padding};
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: center;
|
|
137
137
|
justify-content: center;
|
|
@@ -141,38 +141,38 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
141
141
|
|
|
142
142
|
width: ${({w:n})=>n??"auto"};
|
|
143
143
|
|
|
144
|
-
height: ${({h:n,size:e})=>n??
|
|
144
|
+
height: ${({h:n,size:e})=>n??tr[e??"md"].height?`${tr[e??"md"].height}px`:void 0};
|
|
145
145
|
overflow: hidden;
|
|
146
146
|
|
|
147
|
-
background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>n
|
|
148
|
-
border: ${({variant:n,color:e,theme:t})
|
|
149
|
-
border-radius: ${({theme:n,radius:e})=>e?
|
|
150
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
151
|
-
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>
|
|
147
|
+
background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>n??An({color:t??"default",theme:r})[e??"contained"].bgColor};
|
|
148
|
+
border: ${({variant:n,color:e,theme:t})=>An({color:e??"default",theme:t})[n??"contained"].border};
|
|
149
|
+
border-radius: ${({theme:n,radius:e})=>e?ct[e]:ct[n.radius]};
|
|
150
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
151
|
+
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Cr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
|
|
152
152
|
opacity: ${({disabled:n})=>n?.6:1};
|
|
153
153
|
position: relative;
|
|
154
154
|
|
|
155
|
-
${({variant:n,color:e,theme:t,active:r,activeStyle:i})=>r&&(i||{
|
|
155
|
+
${({variant:n,color:e,theme:t,active:r,activeStyle:i})=>r&&(i||{...An({color:e??"default",theme:t})[n??"contained"].onHover})}
|
|
156
156
|
|
|
157
157
|
@media (hover: hover) {
|
|
158
158
|
&:hover {
|
|
159
|
-
${({variant:n,color:e,theme:t})
|
|
159
|
+
${({variant:n,color:e,theme:t})=>An({color:e??"default",theme:t})[n??"contained"].onHover}
|
|
160
160
|
opacity: ${({disabled:n})=>n&&.6};
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
&:active {
|
|
165
|
-
${({variant:n,color:e,theme:t})
|
|
165
|
+
${({variant:n,color:e,theme:t})=>An({color:e??"default",theme:t})[n??"contained"].onActive}
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
167
|
+
`,on=(n,e)=>{const{theme:t}=x.useContext(rn);return{...t.components?.[n]||{},...e}};B.registerPlugin(Io);const fc=x.forwardRef(({icon:n,animation:e,size:t},r)=>n&&k.jsxs(de,{ref:r,align:"center",justify:"center",children:[typeof n!="string"&&n,n==="bell"&&k.jsx(tc,{hasNotification:e,size:t,animated:!0}),n==="check"&&k.jsx(Ei,{isVisible:e,size:t,animated:e}),n==="hamburger"&&k.jsx(ic,{isOpen:e,size:t,animated:!0}),n==="heart"&&k.jsx(oc,{isLiked:e,size:t,animated:!0}),n==="sync"&&k.jsx(lc,{isSyncing:e,size:t,animated:!0}),n==="sparkles"&&k.jsx(ac,{size:t,animated:e}),n==="dots"&&k.jsx(nc,{size:t,animated:e}),n==="send"&&k.jsx(sc,{size:t,animated:e}),n==="copy"&&k.jsx(rc,{isCopied:e,size:t,animated:!0})]})),Oi=x.forwardRef((n,e)=>{const{onClick:t,loading:r,labelProps:i,...o}=on("button",n),{color:s="default",variant:a="contained",...c}=o,u=x.useRef(null),f=x.useRef(null),d=x.useRef(null),p=x.useRef(null),[l,g]=x.useState(!1),[h,_]=x.useState(!1),[v,b]=x.useState(!1),[S,P]=x.useState(void 0),m=r!==void 0,w=m?r:l,T=typeof c.starticon=="string"&&["heart","hamburger"].includes(c.starticon)||typeof c.endicon=="string"&&["heart","hamburger"].includes(c.endicon),C=Dn(e,u),M=ft(u,!!n.color||!!i?.color);x.useEffect(()=>{if(f.current){const $=new Io(f.current,{type:"chars"});return w&&(B.set(f.current,{opacity:1}),B.to($.chars,{opacity:.6,stagger:{each:.05,from:"start",repeat:-1},ease:"power1.inOut"})),()=>{B.killTweensOf($.chars),$.revert(),B.set(f.current,{opacity:1,y:0})}}},[w,c.label]),x.useEffect(()=>{d.current&&c.starticon&&!c.endicon&&P(d.current.getBoundingClientRect().width)},[c.starticon,c.endicon]),x.useEffect(()=>{p.current&&c.endicon&&P(p.current.getBoundingClientRect().width)},[c.endicon]);const N=async $=>{m||g(!0);try{t&&await t($)}finally{m||g(!1),c.endanimation&&_(!0),b(T?!v:!0),await new Promise(O=>setTimeout(O,1e3)),c.endanimation&&_(!1),T||b(!1)}},R=x.useCallback($=>{!c.starticon&&!c.endicon&&!h&&P($.width)},[c.starticon,c.endicon,h]);return k.jsxs(Yd,{ref:C,onClick:N,variant:a,color:s,...c,disabled:c.disabled??w,children:[!h&&k.jsx(fc,{ref:d,icon:c.starticon,animation:v,size:tr[c.size??"md"].height??24}),c.label&&(!h||h&&c.starticon||h&&c.endicon)&&k.jsx(Re,{ref:f,onSizeChange:R,width:"100%",align:c.align??"center",size:tr[c.size??"md"].fontSize,color:M,...i,children:c.label},c.label),h&&k.jsx(de,{align:"center",justify:"center",width:`${S}px`,children:k.jsx(Ei,{isVisible:h,size:tr[c.size??"md"].height??24,animated:!0})}),!h&&k.jsx(fc,{ref:p,icon:c.endicon,animation:v,size:tr[c.size??"md"].height??24})]})});Oi.displayName="Button";const rs=({color:n,theme:e})=>{const t=ve(n,e);return{borderColor:t.main,bgColor:t.main,checkColor:Pi(t.main)}},dc={none:"0px",sm:"4px",md:"6px",lg:"10px",full:"42px"},ns={sm:{size:16,fontSize:"12",iconSize:14,gap:"8px"},md:{size:20,fontSize:"14",iconSize:18,gap:"10px"},lg:{size:24,fontSize:"16",iconSize:22,gap:"12px"}},is=Be.label`
|
|
168
168
|
display: flex;
|
|
169
169
|
align-items: center;
|
|
170
170
|
gap: ${({gap:n})=>n??"10px"};
|
|
171
171
|
cursor: ${({disabled:n})=>n?"not-allowed":"pointer"};
|
|
172
172
|
opacity: ${({disabled:n})=>n?.5:1};
|
|
173
173
|
user-select: none;
|
|
174
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
175
|
-
`,
|
|
174
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
175
|
+
`,Wd=Be.div`
|
|
176
176
|
display: flex;
|
|
177
177
|
align-items: center;
|
|
178
178
|
justify-content: center;
|
|
@@ -186,7 +186,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
186
186
|
border: 2px solid
|
|
187
187
|
${({color:n,theme:e})=>rs({color:n??"default",theme:e}).borderColor};
|
|
188
188
|
|
|
189
|
-
border-radius: ${({theme:n,radius:e})=>e?
|
|
189
|
+
border-radius: ${({theme:n,radius:e})=>e?dc[e]:dc[n.radius]};
|
|
190
190
|
|
|
191
191
|
transition: all 0.2s ease;
|
|
192
192
|
|
|
@@ -199,9 +199,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
199
199
|
${is}:active & {
|
|
200
200
|
transform: ${({disabled:n})=>!n&&"scale(0.95)"};
|
|
201
201
|
}
|
|
202
|
-
`,
|
|
202
|
+
`,hc=x.forwardRef((n,e)=>{const t=tt(),r=ki(),i=on("checkbox",n),{checked:o,defaultChecked:s=!1,onChange:a,label:c,labelProps:u,labelPosition:f="right",size:d="md",color:p="default",...l}=i,g=x.useRef(null),h=Dn(e,g),_=o!==void 0,[v,b]=x.useState(s),S=_?o:v,P=w=>{const T=w.target.checked;_||b(T),a&&a(T)},m=ns[d];return k.jsxs(is,{gap:m.gap,disabled:l.disabled,m:l.m,mb:l.mb,ml:l.ml,mr:l.mr,mt:l.mt,mx:l.mx,my:l.my,children:[c&&f==="left"&&k.jsx(Re,{size:m.fontSize,...u,children:c}),k.jsxs(Wd,{color:p,size:d,radius:l.radius,checked:S,disabled:l.disabled,children:[k.jsx("input",{ref:h,type:"checkbox",checked:S,onChange:P,disabled:l.disabled,style:{display:"none"}}),k.jsx(de,{align:"center",justify:"center",children:k.jsx(Ei,{isVisible:S,color:r?rs({color:p,theme:t}).checkColor:void 0,size:m.iconSize,animated:!0})})]}),c&&f==="right"&&k.jsx(Re,{size:m.fontSize,...u,children:c})]})});hc.displayName="Checkbox";const os=({color:n,theme:e})=>{const t=ve(n,e);return{contained:{bgColor:t.main,color:"#FFFFFF"},outlined:{bgColor:"#FFFFFF",border:`2px solid ${t.main}`,color:t.main},text:{bgColor:"transparent",color:t.main},soft:{bgColor:`${t.main}22`,border:"2px solid transparent",color:t.main}}},Xd={sm:{padding:"3px 0.25rem"},md:{padding:"3.5px 0.25rem"},lg:{padding:"4px 0.5rem"}},Hd=Be.div`
|
|
203
203
|
all: unset;
|
|
204
|
-
padding: ${({size:n})=>
|
|
204
|
+
padding: ${({size:n})=>Xd[n??"md"].padding};
|
|
205
205
|
display: flex;
|
|
206
206
|
align-items: center;
|
|
207
207
|
gap: ${({gap:n})=>n?xe(n):"0px"};
|
|
@@ -210,21 +210,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
210
210
|
height: fit-content;
|
|
211
211
|
background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>n??os({color:t??"default",theme:r})[e??"contained"].bgColor};
|
|
212
212
|
border: ${({variant:n,color:e,theme:t})=>os({color:e??"default",theme:t})[n??"contained"].border};
|
|
213
|
-
border-radius: ${({radius:n,theme:e})=>n?
|
|
214
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
215
|
-
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>
|
|
213
|
+
border-radius: ${({radius:n,theme:e})=>n?ct[n]:ct[e.radius]};
|
|
214
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
215
|
+
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Cr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
|
|
216
216
|
opacity: ${({disabled:n})=>n?.6:1};
|
|
217
217
|
position: relative;
|
|
218
218
|
color: ${({fontColor:n,color:e,variant:t,theme:r})=>n??os({color:e??"default",theme:r})[t??"contained"].color};
|
|
219
|
-
`,
|
|
220
|
-
${n=>n.initstyle&&
|
|
219
|
+
`,pc=x.forwardRef((n,e)=>{const t=on("chip",n),{label:r,startIcon:i,endIcon:o,size:s="md",color:a="default",variant:c="contained",...u}=t;return k.jsxs(Hd,{ref:e,size:s,color:a,variant:c,...u,children:[i,r&&k.jsx(Re,{size:tr[s].fontSize,mx:.75,children:r}),o]})});pc.displayName="Chip";const gc={sm:1,md:2,lg:3},mc=x.forwardRef(({style:n,orientation:e="horizontal",...t},r)=>k.jsx("div",{ref:r,style:{height:e==="horizontal"?"1px":"100%",width:e==="horizontal"?"100%":"1px",borderTop:e==="horizontal"?`${gc[t.size??"sm"]}px ${t.type??"solid"} ${t.color??"black"}`:"none",borderLeft:e==="horizontal"?"none":`${gc[t.size??"sm"]}px ${t.type??"solid"} ${t.color??"black"}`,...n},...t}));mc.displayName="Divider";const Vd=Be.img`
|
|
220
|
+
${n=>n.initstyle&&Tr(n.initstyle)}
|
|
221
221
|
&:hover {
|
|
222
|
-
${n=>n.hoverstyle&&
|
|
222
|
+
${n=>n.hoverstyle&&Tr(n.hoverstyle)}
|
|
223
223
|
}
|
|
224
224
|
&:active {
|
|
225
|
-
${n=>n.pressstyle&&
|
|
225
|
+
${n=>n.pressstyle&&Tr(n.pressstyle)}
|
|
226
226
|
}
|
|
227
|
-
`,
|
|
227
|
+
`,_c=x.forwardRef(({src:n,alt:e,width:t,height:r,style:i,...o},s)=>k.jsx(Vd,{ref:s,src:n,alt:e,width:t,height:r,initstyle:i,...o}));_c.displayName="Image";const jd=Be.input`
|
|
228
228
|
all: unset;
|
|
229
229
|
box-sizing: border-box;
|
|
230
230
|
font-family: ${({theme:n})=>n.text.fontFamily};
|
|
@@ -236,14 +236,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
236
236
|
color: ${({theme:n,color:e})=>ve(e??"default",n).main};
|
|
237
237
|
|
|
238
238
|
background-color: white;
|
|
239
|
-
border-radius: ${({theme:n})=>
|
|
239
|
+
border-radius: ${({theme:n})=>ct[n.radius]};
|
|
240
240
|
padding: ${({type:n})=>n==="color"?"0":"8px 12px"};
|
|
241
241
|
${Ql()};
|
|
242
242
|
|
|
243
243
|
border: 1px solid
|
|
244
244
|
${({error:n,type:e})=>e==="color"?"transparent":n?({theme:t})=>t.palette.error.main:({theme:t,color:r})=>ve(r??"default",t).main};
|
|
245
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
246
|
-
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>
|
|
245
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
246
|
+
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Cr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
|
|
247
247
|
|
|
248
248
|
width: ${({w:n})=>n??"100%"};
|
|
249
249
|
height: ${({h:n})=>n};
|
|
@@ -261,23 +261,23 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
261
261
|
|
|
262
262
|
&::-webkit-color-swatch-wrapper {
|
|
263
263
|
padding: 0;
|
|
264
|
-
border-radius: ${({theme:n})=>
|
|
264
|
+
border-radius: ${({theme:n})=>ct[n.radius]};
|
|
265
265
|
cursor: pointer;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
&::-webkit-color-swatch {
|
|
269
269
|
border: none;
|
|
270
|
-
border-radius: ${({theme:n})=>
|
|
270
|
+
border-radius: ${({theme:n})=>ct[n.radius]};
|
|
271
271
|
}
|
|
272
|
-
`,
|
|
272
|
+
`,yc=x.forwardRef((n,e)=>{const t=tt(),r=on("input",n),{label:i,required:o,labelProps:s,containerStyle:a,error:c,errorStyle:u,color:f="default",...d}=r;return k.jsxs(de,{direction:"column",style:a,children:[(i||o)&&k.jsxs(de,{direction:"row",gap:.5,align:"center",mb:d.type==="color"?"0px":"4px",style:{minHeight:"1.2em"},children:[i&&k.jsx(Re,{color:c?t.palette.error.main:ve(f??"default",t).main,size:"12",...s,children:i},i),o&&k.jsx(Re,{color:t.palette.error.main,size:"12",children:"*"})]}),k.jsx(jd,{ref:e,error:c,color:f,...d}),c&&k.jsx(Re,{color:t.palette.error.main,size:"10",mt:d.type==="color"?"0px":"4px",style:{minHeight:"1.2em",...u},children:c})]})});yc.displayName="Input";const Ud=(n,e)=>{switch(n){case 1:return e==="sm"?"28px":"32px";case 2:return e==="sm"?"22px":"24px";case 3:return"20px";case 4:return"18px";case 5:return"16px";case 6:return"14px";default:return"1rem"}},Gd=Be.h1`
|
|
273
273
|
font-family: ${({theme:n})=>n.title.fontFamily};
|
|
274
274
|
margin: 0;
|
|
275
275
|
color: ${({color:n})=>n};
|
|
276
|
-
font-size: ${({level:n,breakpoint:e})=>
|
|
277
|
-
font-weight: ${({weight:n})=>
|
|
278
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
279
|
-
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>
|
|
280
|
-
`,
|
|
276
|
+
font-size: ${({level:n,breakpoint:e})=>Ud(n,e)};
|
|
277
|
+
font-weight: ${({weight:n})=>uc(n)};
|
|
278
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
279
|
+
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Cr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
|
|
280
|
+
`,qd=["default","primary","secondary","error"],xc=({children:n,color:e,...t})=>{const r=tt(),{breakpoint:i}=nn(),o=x.useRef(null),s=ft(o,!!e),a=e?qd.includes(e)?ve(e,r).main:e:s,c=x.useMemo(()=>({...{level:1},...t}),[t]);return k.jsx(Gd,{ref:o,...c,color:a,breakpoint:i,children:n})};/*!
|
|
281
281
|
* @gsap/react 2.1.2
|
|
282
282
|
* https://gsap.com
|
|
283
283
|
*
|
|
@@ -285,9 +285,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
285
285
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
286
286
|
* Club GSAP members, the agreement issued with that membership.
|
|
287
287
|
* @author: Jack Doyle, jack@greensock.com
|
|
288
|
-
*/let
|
|
288
|
+
*/let vc=typeof document<"u"?x.useLayoutEffect:x.useEffect,wc=n=>n&&!Array.isArray(n)&&typeof n=="object",Di=[],Kd={},bc=B;const kr=(n,e=Di)=>{let t=Kd;wc(n)?(t=n,n=null,e="dependencies"in t?t.dependencies:Di):wc(e)&&(t=e,e="dependencies"in t?t.dependencies:Di),n&&typeof n!="function"&&console.warn("First parameter must be a function or config object");const{scope:r,revertOnUpdate:i}=t,o=x.useRef(!1),s=x.useRef(bc.context(()=>{},r)),a=x.useRef(u=>s.current.add(null,u)),c=e&&e.length&&!i;return c&&vc(()=>(o.current=!0,()=>s.current.revert()),Di),vc(()=>{if(n&&s.current.add(n,r),!c||!o.current)return()=>s.current.revert()},e),{context:s.current,contextSafe:a.current}};kr.register=n=>{bc=n},kr.headless=!0,B.registerPlugin(kr);const Ft={xs:{minWidth:{sm:"75%",md:"320px",lg:"320px",xl:"320px"},maxHeight:"50vh",width:"30vw",headerPy:1,headerPx:2.5,bodyPy:.5,bodyPx:2.5,footerPy:1,footerPx:2.5},s:{minWidth:{sm:"82%",md:"380px",lg:"380px",xl:"380px"},maxHeight:"60vh",width:"40vw",headerPy:1.5,headerPx:3,bodyPy:1,bodyPx:3,footerPy:1.5,footerPx:3},m:{minWidth:{sm:"90%",md:"400px",lg:"400px",xl:"400px"},maxHeight:"70vh",width:"50vw",headerPy:2,headerPx:3,bodyPy:1,bodyPx:3,footerPy:1.5,footerPx:3},l:{minWidth:{sm:"96%",md:"500px",lg:"500px",xl:"500px"},maxHeight:"80vh",width:"60vw",headerPy:2,headerPx:3,bodyPy:1,bodyPx:3,footerPy:1.5,footerPx:3},xl:{minWidth:{sm:"98%",md:"600px",lg:"600px",xl:"600px"},maxHeight:"90vh",width:"70vw",headerPy:2.5,headerPx:3.5,bodyPy:1.5,bodyPx:3.5,footerPy:2,footerPx:3.5}},Sc=x.forwardRef(({isOpen:n,fullScreen:e,children:t,style:r,closeOnClickOutside:i=!0,...o},s)=>{const a=tt(),c=ki(),{breakpoint:u}=nn(),[f,d]=x.useState(null),[p,l]=x.useState(!1),g=x.useRef(null);x.useEffect(()=>{d(document.getElementById("modal"))},[]),x.useEffect(()=>{n&&l(!0)},[n]),kr(()=>{p&&(n?B.timeline().fromTo(g.current,{autoAlpha:0},{autoAlpha:1,duration:.3,ease:"power2.inOut"}).fromTo(".modal-content",{autoAlpha:0,scale:.95,y:-20},{autoAlpha:1,scale:1,y:0,duration:.3,ease:"power2.out"},"-=0.2"):B.timeline({onComplete:()=>l(!1)}).to(".modal-content",{autoAlpha:0,scale:.95,y:-20,duration:.2,ease:"power2.in"}).to(g.current,{autoAlpha:0,duration:.2,ease:"power2.inOut"},"-=0.1"))},{dependencies:[n,p],scope:g});const h={zIndex:999999,width:e?"100vw":Ft[o.size??"m"].width,height:e?"100vh":"fit-content",minWidth:e?"100vw":Ft[o.size??"m"].minWidth[u],maxHeight:e?"100vh":Ft[o.size??"m"].maxHeight,borderRadius:e?"0px":`min(24px, ${ct[a.radius]})`,backgroundColor:"#FFFFFF",position:"relative",...r},_=k.jsx(de,{ref:g,onClick:()=>i&&o.onClose&&o.onClose(),style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:99999,display:"flex",justifyContent:"center",alignItems:"center",backdropFilter:"blur(4px)",visibility:"hidden"},children:k.jsxs(de,{ref:s,className:"modal-content",onClick:v=>{v.stopPropagation()},direction:"column",elevation:3,style:h,children:[o.onClose&&!o.close&&k.jsx(Oi,{variant:"text",color:"default",starticon:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:c?Pi(h.backgroundColor??"#FFFFFF"):"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("path",{d:"M18 6 6 18"}),k.jsx("path",{d:"m6 6 12 12"})]}),onClick:o.onClose,style:{position:"absolute",top:"0px",right:"0px",cursor:"pointer",zIndex:1e6,...o.closeStyle}}),o.onClose&&o.close,o.title&&k.jsx(de,{direction:"row",width:"100%",py:Ft[o.size??"m"].headerPy,px:Ft[o.size??"m"].headerPx,align:"center",justify:"between",children:x.isValidElement(o.title)?o.title:k.jsx(xc,{level:4,...o.titleProps,children:o.title})}),k.jsx(de,{py:Ft[o.size??"m"].bodyPy,px:Ft[o.size??"m"].bodyPx,style:{overflowY:"auto",...o.bodyStyle},children:t}),o.footer&&k.jsx(de,{direction:"row",gap:2,width:"100%",mt:"auto",py:Ft[o.size??"m"].footerPy,px:Ft[o.size??"m"].footerPx,align:"center",justify:"end",children:o.footer})]})});return f?Xi.createPortal(_,f):null});Sc.displayName="Modal";const Qd=Be(de)`
|
|
289
289
|
background-color: ${({bgcolor:n,color:e,theme:t})=>n??ve(e,t).light};
|
|
290
|
-
`,
|
|
290
|
+
`,Tc=x.forwardRef(({children:n,content:e,...t},r)=>{const i=tt(),o=x.useRef(null),s=x.useRef(null),[a,c]=x.useState({height:0,width:0}),[u,f]=x.useState({height:0,width:0}),[d,p]=x.useState({top:0,left:0}),[l,g]=x.useState({top:0,left:0}),h=x.useMemo(()=>({...{placement:"top",zIndex:9},...t}),[t]);x.useEffect(()=>{if(s?.current&&t.visible){const{clientHeight:b,clientWidth:S}=s.current;f({height:b,width:S})}},[s?.current,t.visible]),x.useEffect(()=>{if(o?.current&&t.visible){const{clientHeight:b,clientWidth:S}=o.current;c({height:b,width:S})}},[o?.current,t.visible,e]),x.useLayoutEffect(()=>{const b=()=>{if(!t.visible||!s.current||!o.current||a.height===0||u.height===0)return;const S=s.current.getBoundingClientRect(),P=window.scrollY,m=window.scrollX,{height:w,width:T}=a,{height:C,width:M}=u,N=t.gap??8,R=8,$=N-R/2;let O={top:0,left:0},V={top:0,left:0};const j=S.left+m+M/2,F=S.top+P+C/2;switch(h.placement){case"bottom":O={top:S.top+P+C+N,left:j-T/2},V={top:S.top+P+C+$,left:j-R/2};break;case"left":O={top:F-w/2,left:S.left+m-T-N},V={top:F-R/2,left:S.left+m-R-$};break;case"right":O={top:F-w/2,left:S.left+m+M+N},V={top:F-R/2,left:S.left+m+M+$};break;case"top":default:O={top:S.top+P-w-N,left:j-T/2},V={top:S.top+P-R-$,left:j-R/2};break}p(O),g(V)};return b(),window.addEventListener("scroll",b,!0),window.addEventListener("resize",b),()=>{window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",b)}},[t.visible,h.placement,a,u]),x.useEffect(()=>{t.visible||(c({height:0,width:0}),f({height:0,width:0}),p({top:0,left:0}),g({top:0,left:0}))},[t.visible]);const _=b=>{if(s.current=b,x.isValidElement(n)){const S=n.ref;typeof S=="function"?S(b):S!=null&&typeof S=="object"&&(S.current=b)}};if(!x.isValidElement(n))return console.error("Popover children must be a single valid React element."),k.jsx(k.Fragment,{children:n});const v=k.jsxs(k.Fragment,{children:[k.jsx(Qd,{ref:o,...h,style:{position:"absolute",top:`${d.top}px`,left:`${d.left}px`,zIndex:h.zIndex,opacity:`${t.visible&&a.height!==0&&a.width!==0?1:0}`,transition:"opacity 0.25s ease"},children:e}),k.jsx("span",{style:{width:"8px",height:"8px",display:`${t.visible?"block":"none"}`,opacity:`${t.visible&&a.height!==0&&a.width!==0?1:0}`,transition:"opacity 0.25s ease",zIndex:`${(h.zIndex??9)-1}`,backgroundColor:`${t.arrowcolor??t.bgcolor??ve(t.color,i).light}`,rotate:"45deg",position:"absolute",top:`${l.top}px`,left:`${l.left}px`}})]});return k.jsxs(k.Fragment,{children:[x.cloneElement(n,{ref:_}),t.visible&&Xi.createPortal(v,document.body)]})});Tc.displayName="Popover";const Zd=({color:n,value:e,h:t,w:r,animationDurationInSeconds:i})=>{const o=tt(),s=x.useRef(null);x.useEffect(()=>{s.current&&B.to(s.current,{width:`${e>100?100:e}%`,duration:i??1,ease:"power2.out"})},[e,i]);const a=ve(n,o);return k.jsx("div",{style:{width:r??"100%",position:"relative",backgroundColor:a.light,borderRadius:"8px",height:t??"8px",border:`2px solid ${a.light}`},children:k.jsx("div",{ref:s,style:{position:"absolute",top:"0",left:"0",height:"100%",width:"0%",backgroundColor:a.main,borderRadius:"8px"}})})},Cc=({option:n,handleChange:e})=>{const t=tt();return k.jsx(de,{onClick:()=>e&&n&&e(n),px:1.5,py:1,justify:"center",height:"37px",hoverstyle:{backgroundColor:t.palette.primary.light},children:n?.label&&k.jsx(Re,{size:"14",align:"left",children:n.label})},n?.key)},kc=x.forwardRef((n,e)=>{const t=tt(),[r,i]=x.useState(n.value??n.initialValue??(n.placeholder?{key:n.placeholder,label:n.placeholder}:void 0));x.useEffect(()=>{n.value&&i(n.value)},[n.value]);const[o,s]=x.useState(!1),[a,c]=x.useState(void 0),u=x.useRef(null),f=Dn(e,u),d=x.useRef(null),p=x.useRef(null);x.useEffect(()=>{const g=h=>{u.current&&!u.current.contains(h.target)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),x.useLayoutEffect(()=>{o?B.to(p.current,{autoAlpha:1,y:0,duration:.3,ease:"power2.out"}):B.to(p.current,{autoAlpha:0,y:-10,duration:.2,ease:"power2.in"})},[o]),x.useEffect(()=>{d.current&&c(d.current.clientHeight)},[d.current]);const l=g=>{i(g),n.onChange&&n.onChange(g),s(!1)};return k.jsxs(de,{ref:f,direction:"column",width:"100%",justify:"start",children:[(n.label||n.required)&&k.jsxs(de,{direction:"row",gap:.5,align:"center",mb:"4px",style:{minHeight:"1.2em"},children:[n.label&&k.jsx(Re,{size:"12",...n.labelProps,children:n.label}),n.required&&k.jsx(Re,{color:t.palette.error.main,size:"12",children:"*"})]}),k.jsxs(de,{ref:d,elevation:1,onClick:()=>s(!o),style:{position:"relative",cursor:"pointer",...n.triggerStyle},children:[n.CustomOption?k.jsx(n.CustomOption,{option:r}):k.jsx(Cc,{option:r}),k.jsx(de,{ref:p,elevation:1,width:"100%",gap:.5,style:{position:"absolute",left:"0",...!n.orientation||n.orientation==="down"?{top:a?`${a+1}px`:"37px"}:{bottom:a?`${a+1}px`:"37px"},visibility:"hidden",zIndex:1,backdropFilter:"blur(6px)",maxHeight:"200px",overflowY:"auto",...n.hideScrollbar&&{scrollbarWidth:"none",msOverflowStyle:"none"},...n.dropdownStyle},children:n.options.map(g=>n.CustomOption?k.jsx(n.CustomOption,{option:g,handleChange:l}):k.jsx(Cc,{option:g,handleChange:l}))})]})]})});kc.displayName="Select";const Jd=Be.div`
|
|
291
291
|
display: inline-block;
|
|
292
292
|
position: relative;
|
|
293
293
|
overflow: hidden;
|
|
@@ -295,9 +295,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
295
295
|
|
|
296
296
|
width: ${({width:n})=>n||"100%"};
|
|
297
297
|
height: ${({height:n})=>n||"20px"};
|
|
298
|
-
border-radius: ${({radius:n,theme:e})=>n??
|
|
299
|
-
${({style:n})=>n&&
|
|
300
|
-
`,
|
|
298
|
+
border-radius: ${({radius:n,theme:e})=>n??ct[e.radius]};
|
|
299
|
+
${({style:n})=>n&&Tr(n)}
|
|
300
|
+
`,eh=Be.div`
|
|
301
301
|
position: absolute;
|
|
302
302
|
top: 0;
|
|
303
303
|
left: 0;
|
|
@@ -312,8 +312,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
312
312
|
);
|
|
313
313
|
|
|
314
314
|
transform: translateX(-100%);
|
|
315
|
-
${({style:n})=>n&&
|
|
316
|
-
`,
|
|
315
|
+
${({style:n})=>n&&Tr(n)}
|
|
316
|
+
`,th=x.forwardRef(({width:n,height:e,radius:t,color:r,wrapperStyle:i,shimmerStyle:o},s)=>{const a=tt(),c=x.useRef(null),u=r?ve(r,a).main:void 0;return x.useEffect(()=>{const f=c.current;B.to(f,{xPercent:180,duration:1.5,repeat:-1,ease:"power1.inOut"})},[]),k.jsx(Jd,{ref:s,width:n,height:e,radius:t,color:u,style:i,children:k.jsx(eh,{ref:c,color:u,style:o})})}),rh=x.forwardRef(({value:n,size:e=48,color:t,onChange:r,...i},o)=>{const s=tt(),[a,c]=x.useState(n??!1),u=x.useRef(null),f=x.useRef(null),d=x.useRef(null),p=Dn(o,d),l=e,g=e/1.75,h=ve(t??"default",s);x.useLayoutEffect(()=>{const b=B.timeline({defaults:{duration:.5,ease:"elastic.out(1, 0.5)"}});a?b.to(u.current,{cx:l-g/2}).to(f.current,{fill:h.main},"<").to(d.current,{filter:`drop-shadow(0px 1px 4px ${h.main}88)`,duration:.3,ease:"power2.out"},"<"):b.to(u.current,{cx:g/2}).to(f.current,{fill:h.light},"<").to(d.current,{filter:"drop-shadow(0px 1px 2px rgba(0,0,0,0.15))",duration:.3,ease:"power2.out"},"<")},[a,t,l,g,s]);const _=()=>{B.to(u.current,{scaleX:1.2,scaleY:.8,duration:.1,transformOrigin:"center center"})},v=()=>{B.to(u.current,{scaleX:1,scaleY:1,duration:.4,ease:"elastic.out(1, 0.5)",transformOrigin:"center center"})};return k.jsxs("svg",{ref:p,width:l,height:g,viewBox:`0 0 ${l} ${g}`,onClick:()=>{r?.(!a),c(!a)},onMouseDown:_,onMouseUp:v,onMouseLeave:v,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,style:{cursor:"pointer",overflow:"visible",filter:a?`drop-shadow(0px 1px 4px ${h.main}88)`:"drop-shadow(0px 1px 2px rgba(0,0,0,0.15))",...i.style},children:[k.jsx("rect",{ref:f,width:l,height:g,rx:g/2,fill:a?h.main:h.light}),k.jsx("circle",{ref:u,cx:a?l-g/2:g/2,cy:g/2,r:g/2-3,fill:"white"})]})}),nh=Be.textarea`
|
|
317
317
|
all: unset;
|
|
318
318
|
box-sizing: border-box;
|
|
319
319
|
font-family: ${({theme:n})=>n.text.fontFamily};
|
|
@@ -324,19 +324,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
324
324
|
|
|
325
325
|
color: ${({theme:n,color:e})=>ve(e??"default",n).main};
|
|
326
326
|
background-color: white;
|
|
327
|
-
border-radius: min(16px, ${({theme:n})=>
|
|
327
|
+
border-radius: min(16px, ${({theme:n})=>ct[n.radius]});
|
|
328
328
|
padding: 8px 12px;
|
|
329
329
|
width: 100%;
|
|
330
330
|
${Ql()};
|
|
331
331
|
|
|
332
332
|
border: 1px solid
|
|
333
333
|
${({error:n,theme:e,color:t})=>n?e.palette.error.main:ve(t??"default",e).main};
|
|
334
|
-
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>
|
|
335
|
-
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>
|
|
334
|
+
${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>er({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
|
|
335
|
+
${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Cr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
|
|
336
336
|
|
|
337
337
|
width: ${({w:n})=>n};
|
|
338
338
|
height: ${({h:n})=>n};
|
|
339
|
-
`,
|
|
339
|
+
`,Pc=x.forwardRef((n,e)=>{const t=tt(),r=on("textarea",n),{label:i,required:o,labelProps:s,containerStyle:a,error:c,errorStyle:u,color:f="default",...d}=r;return k.jsxs(de,{direction:"column",style:a,children:[(i||o)&&k.jsxs(de,{direction:"row",gap:.5,align:"center",mb:"4px",style:{minHeight:"1.2em"},children:[i&&k.jsx(Re,{color:c?t.palette.error.main:ve(f??"default",t).main,size:"12",...s,children:i}),o&&k.jsx(Re,{color:t.palette.error.main,size:"12",children:"*"})]}),k.jsx(nh,{ref:e,error:c,...d}),c&&k.jsx(Re,{color:t.palette.error.main,size:"10",mt:"4px",style:{minHeight:"1.2em",...u},children:c})]})});Pc.displayName="TextArea";const ih=Be(de)`
|
|
340
340
|
box-shadow: ${()=>Zl[2]};
|
|
341
341
|
z-index: 99999;
|
|
342
342
|
background-color: white;
|
|
@@ -348,7 +348,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
348
348
|
svg {
|
|
349
349
|
stroke: ${({theme:n,color:e})=>ve(e??"default",n).main};
|
|
350
350
|
}
|
|
351
|
-
`,ss=
|
|
351
|
+
`,ss=x.forwardRef(({children:n,style:e,...t},r)=>{const i=tt(),{isMobile:o}=nn();return k.jsxs(ih,{ref:r,p:.5,elevation:3,...t,style:{...e},children:[t.onClose&&k.jsx(Oi,{size:"sm",variant:"text",color:"default",starticon:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("path",{d:"M18 6 6 18"}),k.jsx("path",{d:"m6 6 12 12"})]}),onClick:t.onClose,style:{position:"absolute",top:"0px",right:"0px",cursor:"pointer"}}),n,!n&&k.jsxs(de,{direction:"row",align:"center",style:{minWidth:"300px",width:o?"calc(100vw - 40px)":"auto"},children:[t.icon&&k.jsx(de,{p:1.5,style:{backgroundColor:`${ve(t.color??"default",i).light}44`},children:t.icon}),t.title&&k.jsx(Re,{size:"14",px:1.5,py:t.icon?0:1.5,children:t.title})]})]})});ss.displayName="Toast";const oh=Be(de)`
|
|
352
352
|
background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>{if(n)return n;const i=ve(t,r);switch(e){case"outlined":case"text":return"transparent";case"soft":return`${i.main}22`;case"contained":default:return i.main}}};
|
|
353
353
|
color: ${({variant:n,color:e,theme:t})=>{const r=ve(e,t);switch(n){case"outlined":case"text":case"soft":return r.main;case"contained":default:return"white"}}};
|
|
354
354
|
border: ${({variant:n,color:e,theme:t})=>n==="outlined"?`1px solid ${ve(e,t).main}`:"1px solid transparent"};
|
|
@@ -357,11 +357,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pi]+=1);const xe=n=>typeof n=
|
|
|
357
357
|
box-shadow: ${({variant:n})=>n==="contained"?"0 2px 4px rgba(0, 0, 0, 0.2)":"none"};
|
|
358
358
|
pointer-events: none;
|
|
359
359
|
white-space: nowrap;
|
|
360
|
-
`,
|
|
360
|
+
`,Ec=x.forwardRef((n,e)=>{const{children:t,label:r,...i}=n,[o,s]=x.useState(!1),a=x.useRef(null),c=x.useRef(null),[u,f]=x.useState({height:0,width:0}),[d,p]=x.useState({height:0,width:0}),[l,g]=x.useState({top:0,left:0}),h=on("tooltip",i),_=x.useMemo(()=>({...{placement:"top",zIndex:100,color:"primary",variant:"contained"},...h}),[h]);x.useEffect(()=>{if(c?.current&&o){const{clientHeight:m,clientWidth:w}=c.current;p({height:m,width:w})}},[c?.current,o]),x.useEffect(()=>{if(a?.current&&o){const{clientHeight:m,clientWidth:w}=a.current;f({height:m,width:w})}},[a?.current,o,r]),x.useLayoutEffect(()=>{const m=()=>{if(!o||!c.current||!a.current||u.height===0||u.width===0||d.height===0)return;const w=c.current.getBoundingClientRect(),T=window.scrollY,C=window.scrollX,{height:M,width:N}=u,{height:R,width:$}=d,O=i.gap??8;let V={top:0,left:0};const j=w.left+C+$/2,F=w.top+T+R/2;switch(_.placement){case"bottom":V={top:w.top+T+R+O,left:j-N/2};break;case"left":V={top:F-M/2,left:w.left+C-N-O};break;case"right":V={top:F-M/2,left:w.left+C+$+O};break;case"top":default:V={top:w.top+T-M-O,left:j-N/2};break}g(V)};return m(),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),()=>{window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",m)}},[o,_.placement,u,d]);const v=m=>{if(c.current=m,x.isValidElement(t)){const w=t.ref;typeof w=="function"?w(m):w!=null&&typeof w=="object"&&(w.current=m)}},b=()=>s(!0),S=()=>s(!1);if(!x.isValidElement(t))return k.jsx(k.Fragment,{children:t});const P=k.jsx(oh,{ref:a,color:_.color,variant:_.variant,bgcolor:_.bgcolor,radius:_.radius,style:{position:"absolute",top:`${l.top}px`,left:`${l.left}px`,zIndex:_.zIndex,opacity:`${o&&u.height!==0&&u.width!==0?1:0}`,transition:"opacity 0.2s ease"},children:typeof r=="string"?k.jsx(Re,{size:"12",weight:"medium",color:"inherit",children:r}):r});return k.jsxs(k.Fragment,{children:[x.cloneElement(t,{ref:v,onMouseEnter:b,onMouseLeave:S}),o&&Xi.createPortal(P,document.body)]})});Ec.displayName="Tooltip";/*!
|
|
361
361
|
* matrix 3.13.0
|
|
362
362
|
* https://gsap.com
|
|
363
363
|
*
|
|
364
364
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
365
365
|
* Subject to the terms at https://gsap.com/standard-license
|
|
366
366
|
* @author: Jack Doyle, jack@greensock.com
|
|
367
|
-
*/var Wt,Mr,as,Di,Ln,Ri,$i,In,vt="transform",ls=vt+"Origin",Ec,Mc=function(e){var t=e.ownerDocument||e;for(!(vt in e.style)&&("msTransform"in e.style)&&(vt="msTransform",ls=vt+"Origin");t.parentNode&&(t=t.parentNode););if(Mr=window,$i=new Or,t){Wt=t,as=t.documentElement,Di=t.body,In=Wt.createElementNS("http://www.w3.org/2000/svg","g"),In.style.transform="none";var r=t.createElement("div"),i=t.createElement("div"),o=t&&(t.body||t.firstElementChild);o&&o.appendChild&&(o.appendChild(r),r.appendChild(i),r.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),Ec=i.offsetParent!==r,o.removeChild(r))}return t},oh=function(e){for(var t,r;e&&e!==Di;)r=e._gsap,r&&r.uncache&&r.get(e,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),t?t.push(r):t=[r]),e=e.parentNode;return t},Oc=[],Ac=[],sh=function(){return Mr.pageYOffset||Wt.scrollTop||as.scrollTop||Di.scrollTop||0},ah=function(){return Mr.pageXOffset||Wt.scrollLeft||as.scrollLeft||Di.scrollLeft||0},cs=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},lh=function n(e){if(Mr.getComputedStyle(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},us=function n(e,t){if(e.parentNode&&(Wt||Mc(e))){var r=cs(e),i=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o=r?t?"rect":"g":"div",s=t!==2?0:100,a=t===3?100:0,c="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=Wt.createElementNS?Wt.createElementNS(i.replace(/^https/,"http"),o):Wt.createElement(o);return t&&(r?(Ri||(Ri=n(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+s+","+a+")"),Ri.appendChild(u)):(Ln||(Ln=n(e),Ln.style.cssText=c),u.style.cssText=c+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px",Ln.appendChild(u))),u}throw"Need document and parent."},ch=function(e){for(var t=new Or,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},uh=function(e){var t=e.getCTM(),r;return t||(r=e.style[vt],e.style[vt]="none",e.appendChild(In),t=In.getCTM(),e.removeChild(In),r?e.style[vt]=r:e.style.removeProperty(vt.replace(/([A-Z])/g,"-$1").toLowerCase())),t||$i.clone()},fh=function(e,t){var r=cs(e),i=e===r,o=r?Oc:Ac,s=e.parentNode,a=s&&!r&&s.shadowRoot&&s.shadowRoot.appendChild?s.shadowRoot:s,c,u,f,d,g,l;if(e===Mr)return e;if(o.length||o.push(us(e,1),us(e,2),us(e,3)),c=r?Ri:Ln,r)i?(f=uh(e),d=-f.e/f.a,g=-f.f/f.d,u=$i):e.getBBox?(f=e.getBBox(),u=e.transform?e.transform.baseVal:{},u=u.numberOfItems?u.numberOfItems>1?ch(u):u.getItem(0).matrix:$i,d=u.a*f.x+u.c*f.y,g=u.b*f.x+u.d*f.y):(u=new Or,d=g=0),(i?r:s).appendChild(c),c.setAttribute("transform","matrix("+u.a+","+u.b+","+u.c+","+u.d+","+(u.e+d)+","+(u.f+g)+")");else{if(d=g=0,Ec)for(u=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==u&&f.parentNode;)(Mr.getComputedStyle(f)[vt]+"").length>4&&(d=f.offsetLeft,g=f.offsetTop,f=0);if(l=Mr.getComputedStyle(e),l.position!=="absolute"&&l.position!=="fixed")for(u=e.offsetParent;s&&s!==u;)d+=s.scrollLeft||0,g+=s.scrollTop||0,s=s.parentNode;f=c.style,f.top=e.offsetTop-g+"px",f.left=e.offsetLeft-d+"px",f[vt]=l[vt],f[ls]=l[ls],f.position=l.position==="fixed"?"fixed":"absolute",a.appendChild(c)}return c},fs=function(e,t,r,i,o,s,a){return e.a=t,e.b=r,e.c=i,e.d=o,e.e=s,e.f=a,e},Or=(function(){function n(t,r,i,o,s,a){t===void 0&&(t=1),r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=1),s===void 0&&(s=0),a===void 0&&(a=0),fs(this,t,r,i,o,s,a)}var e=n.prototype;return e.inverse=function(){var r=this.a,i=this.b,o=this.c,s=this.d,a=this.e,c=this.f,u=r*s-i*o||1e-10;return fs(this,s/u,-i/u,-o/u,r/u,(o*c-s*a)/u,-(r*c-i*a)/u)},e.multiply=function(r){var i=this.a,o=this.b,s=this.c,a=this.d,c=this.e,u=this.f,f=r.a,d=r.c,g=r.b,l=r.d,p=r.e,h=r.f;return fs(this,f*i+g*s,f*o+g*a,d*i+l*s,d*o+l*a,c+p*i+h*s,u+p*o+h*a)},e.clone=function(){return new n(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(r){var i=this.a,o=this.b,s=this.c,a=this.d,c=this.e,u=this.f;return i===r.a&&o===r.b&&s===r.c&&a===r.d&&c===r.e&&u===r.f},e.apply=function(r,i){i===void 0&&(i={});var o=r.x,s=r.y,a=this.a,c=this.b,u=this.c,f=this.d,d=this.e,g=this.f;return i.x=o*a+s*u+d||0,i.y=o*c+s*f+g||0,i},n})();function Ar(n,e,t,r){if(!n||!n.parentNode||(Wt||Mc(n)).documentElement===n)return new Or;var i=oh(n),o=cs(n),s=o?Oc:Ac,a=fh(n),c=s[0].getBoundingClientRect(),u=s[1].getBoundingClientRect(),f=s[2].getBoundingClientRect(),d=a.parentNode,g=lh(n),l=new Or((u.left-c.left)/100,(u.top-c.top)/100,(f.left-c.left)/100,(f.top-c.top)/100,c.left+(g?0:ah()),c.top+(g?0:sh()));if(d.removeChild(a),i)for(c=i.length;c--;)u=i[c],u.scaleX=u.scaleY=0,u.renderTransform(1,u);return e?l.inverse():l}function Dc(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function dh(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var ee,ue,ot,wt,Xt,ds,Ht,hs,Nn,ir,Rc,ps,zn,gs,Fn,bt,Bn,Li,$c,ms,Ii=0,Lc=function(){return typeof window<"u"},Ic=function(){return ee||Lc()&&(ee=window.gsap)&&ee.registerPlugin&&ee},or=function(e){return typeof e=="function"},Yn=function(e){return typeof e=="object"},St=function(e){return typeof e>"u"},Ni=function(){return!1},Wn="transform",_s="transformOrigin",sr=function(e){return Math.round(e*1e4)/1e4},Xn=Array.isArray,zi=function(e,t){var r=ot.createElementNS?ot.createElementNS("http://www.w3.org/1999/xhtml".replace(/^https/,"http"),e):ot.createElement(e);return r.style?r:ot.createElement(e)},Nc=180/Math.PI,Dr=1e20,hh=new Or,ar=Date.now||function(){return new Date().getTime()},Rr=[],ln={},ph=0,gh=/^(?:a|input|textarea|button|select)$/i,zc=0,cn={},Vt={},Fc=function(e,t){var r={},i;for(i in e)r[i]=t?e[i]*t:e[i];return r},mh=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Bc=function n(e,t){for(var r=e.length,i;r--;)t?e[r].style.touchAction=t:e[r].style.removeProperty("touch-action"),i=e[r].children,i&&i.length&&n(i,t)},Yc=function(){return Rr.forEach(function(e){return e()})},_h=function(e){Rr.push(e),Rr.length===1&&ee.ticker.add(Yc)},Wc=function(){return!Rr.length&&ee.ticker.remove(Yc)},Xc=function(e){for(var t=Rr.length;t--;)Rr[t]===e&&Rr.splice(t,1);ee.to(Wc,{overwrite:!0,delay:15,duration:0,onComplete:Wc,data:"_draggable"})},yh=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Ee=function(e,t,r,i){if(e.addEventListener){var o=zn[t];i=i||(Rc?{passive:!1}:null),e.addEventListener(o||t,r,i),o&&t!==o&&e.addEventListener(t,r,i)}},ke=function(e,t,r,i){if(e.removeEventListener){var o=zn[t];e.removeEventListener(o||t,r,i),o&&t!==o&&e.removeEventListener(t,r,i)}},pt=function(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()},xh=function(e,t){for(var r=e.length;r--;)if(e[r].identifier===t)return!0},vh=function n(e){gs=e.touches&&Ii<e.touches.length,ke(e.target,"touchend",n)},Hc=function(e){gs=e.touches&&Ii<e.touches.length,Ee(e.target,"touchend",vh)},un=function(e){return ue.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0},fn=function(e){return ue.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0},Vc=function n(e,t){Ee(e,"scroll",t),dn(e.parentNode)||n(e.parentNode,t)},jc=function n(e,t){ke(e,"scroll",t),dn(e.parentNode)||n(e.parentNode,t)},dn=function(e){return!e||e===wt||e.nodeType===9||e===ot.body||e===ue||!e.nodeType||!e.parentNode},Uc=function(e,t){var r=t==="x"?"Width":"Height",i="scroll"+r,o="client"+r;return Math.max(0,dn(e)?Math.max(wt[i],Xt[i])-(ue["inner"+r]||wt[o]||Xt[o]):e[i]-e[o])},ys=function n(e,t){var r=Uc(e,"x"),i=Uc(e,"y");dn(e)?e=Vt:n(e.parentNode,t),e._gsMaxScrollX=r,e._gsMaxScrollY=i,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},xs=function(e,t,r){var i=e.style;i&&(St(i[t])&&(t=Nn(t,e)||t),r==null?i.removeProperty&&i.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):i[t]=r)},Hn=function(e){return ue.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)},$r={},hn=function(e){if(e===ue)return $r.left=$r.top=0,$r.width=$r.right=wt.clientWidth||e.innerWidth||Xt.clientWidth||0,$r.height=$r.bottom=(e.innerHeight||0)-20<wt.clientHeight?wt.clientHeight:e.innerHeight||Xt.clientHeight||0,$r;var t=e.ownerDocument||ot,r=St(e.pageX)?!e.nodeType&&!St(e.left)&&!St(e.top)?e:ir(e)[0].getBoundingClientRect():{left:e.pageX-fn(t),top:e.pageY-un(t),right:e.pageX-fn(t)+1,bottom:e.pageY-un(t)+1};return St(r.right)&&!St(r.width)?(r.right=r.left+r.width,r.bottom=r.top+r.height):St(r.width)&&(r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}),r},we=function(e,t,r){var i=e.vars,o=i[r],s=e._listeners[t],a;return or(o)&&(a=o.apply(i.callbackScope||e,i[r+"Params"]||[e.pointerEvent])),s&&e.dispatchEvent(t)===!1&&(a=!1),a},Gc=function(e,t){var r=ir(e)[0],i,o,s;return!r.nodeType&&r!==ue?St(e.left)?(o=e.min||e.minX||e.minRotation||0,i=e.min||e.minY||0,{left:o,top:i,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-i}):(s={x:0,y:0},{left:e.left-s.x,top:e.top-s.y,width:e.width,height:e.height}):wh(r,t)},gt={},wh=function(e,t){t=ir(t)[0];var r=e.getBBox&&e.ownerSVGElement,i=e.ownerDocument||ot,o,s,a,c,u,f,d,g,l,p,h,m,v;if(e===ue)a=un(i),o=fn(i),s=o+(i.documentElement.clientWidth||e.innerWidth||i.body.clientWidth||0),c=a+((e.innerHeight||0)-20<i.documentElement.clientHeight?i.documentElement.clientHeight:e.innerHeight||i.body.clientHeight||0);else{if(t===ue||St(t))return e.getBoundingClientRect();o=a=0,r?(p=e.getBBox(),h=p.width,m=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(o=p.x||0,a=p.y||0,h=p.width,m=p.height),h||(v=Hn(e),p=v.boxSizing==="border-box",h=(parseFloat(v.width)||e.clientWidth||0)+(p?0:parseFloat(v.borderLeftWidth)+parseFloat(v.borderRightWidth)),m=(parseFloat(v.height)||e.clientHeight||0)+(p?0:parseFloat(v.borderTopWidth)+parseFloat(v.borderBottomWidth)))),s=h,c=m}return e===t?{left:o,top:a,width:s-o,height:c-a}:(u=Ar(t,!0).multiply(Ar(e)),f=u.apply({x:o,y:a}),d=u.apply({x:s,y:a}),g=u.apply({x:s,y:c}),l=u.apply({x:o,y:c}),o=Math.min(f.x,d.x,g.x,l.x),a=Math.min(f.y,d.y,g.y,l.y),{left:o,top:a,width:Math.max(f.x,d.x,g.x,l.x)-o,height:Math.max(f.y,d.y,g.y,l.y)-a})},vs=function(e,t,r,i,o,s){var a={},c,u,f;if(t)if(o!==1&&t instanceof Array){if(a.end=c=[],f=t.length,Yn(t[0]))for(u=0;u<f;u++)c[u]=Fc(t[u],o);else for(u=0;u<f;u++)c[u]=t[u]*o;r+=1.1,i-=1.1}else or(t)?a.end=function(d){var g=t.call(e,d),l,p;if(o!==1)if(Yn(g)){l={};for(p in g)l[p]=g[p]*o;g=l}else g*=o;return g}:a.end=t;return(r||r===0)&&(a.max=r),(i||i===0)&&(a.min=i),s&&(a.velocity=0),a},bh=function n(e){var t;return!e||!e.getAttribute||e===Xt?!1:(t=e.getAttribute("data-clickable"))==="true"||t!=="false"&&(gh.test(e.nodeName+"")||e.getAttribute("contentEditable")==="true")?!0:n(e.parentNode)},Fi=function(e,t){for(var r=e.length,i;r--;)i=e[r],i.ondragstart=i.onselectstart=t?null:Ni,ee.set(i,{lazy:!0,userSelect:t?"text":"none"})},Sh=function n(e){if(Hn(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},qc,ws,Ch=function(e,t){e=ee.utils.toArray(e)[0],t=t||{};var r=document.createElement("div"),i=r.style,o=e.firstChild,s=0,a=0,c=e.scrollTop,u=e.scrollLeft,f=e.scrollWidth,d=e.scrollHeight,g=0,l=0,p=0,h,m,v,b,S,P;qc&&t.force3D!==!1?(S="translate3d(",P="px,0px)"):Wn&&(S="translate(",P="px)"),this.scrollTop=function(_,w){if(!arguments.length)return-this.top();this.top(-_,w)},this.scrollLeft=function(_,w){if(!arguments.length)return-this.left();this.left(-_,w)},this.left=function(_,w){if(!arguments.length)return-(e.scrollLeft+a);var C=e.scrollLeft-u,T=a;if((C>2||C<-2)&&!w){u=e.scrollLeft,ee.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-u),t.onKill&&t.onKill();return}_=-_,_<0?(a=_-.5|0,_=0):_>l?(a=_-l|0,_=l):a=0,(a||T)&&(this._skip||(i[Wn]=S+-a+"px,"+-s+P),a+g>=0&&(i.paddingRight=a+g+"px")),e.scrollLeft=_|0,u=e.scrollLeft},this.top=function(_,w){if(!arguments.length)return-(e.scrollTop+s);var C=e.scrollTop-c,T=s;if((C>2||C<-2)&&!w){c=e.scrollTop,ee.killTweensOf(this,{top:1,scrollTop:1}),this.top(-c),t.onKill&&t.onKill();return}_=-_,_<0?(s=_-.5|0,_=0):_>p?(s=_-p|0,_=p):s=0,(s||T)&&(this._skip||(i[Wn]=S+-a+"px,"+-s+P)),e.scrollTop=_|0,c=e.scrollTop},this.maxScrollTop=function(){return p},this.maxScrollLeft=function(){return l},this.disable=function(){for(o=r.firstChild;o;)b=o.nextSibling,e.appendChild(o),o=b;e===r.parentNode&&e.removeChild(r)},this.enable=function(){if(o=e.firstChild,o!==r){for(;o;)b=o.nextSibling,r.appendChild(o),o=b;e.appendChild(r),this.calibrate()}},this.calibrate=function(_){var w=e.clientWidth===h,C,T,M;c=e.scrollTop,u=e.scrollLeft,!(w&&e.clientHeight===m&&r.offsetHeight===v&&f===e.scrollWidth&&d===e.scrollHeight&&!_)&&((s||a)&&(T=this.left(),M=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),C=Hn(e),(!w||_)&&(i.display="block",i.width="auto",i.paddingRight="0px",g=Math.max(0,e.scrollWidth-e.clientWidth),g&&(g+=parseFloat(C.paddingLeft)+(ws?parseFloat(C.paddingRight):0))),i.display="inline-block",i.position="relative",i.overflow="visible",i.verticalAlign="top",i.boxSizing="content-box",i.width="100%",i.paddingRight=g+"px",ws&&(i.paddingBottom=C.paddingBottom),h=e.clientWidth,m=e.clientHeight,f=e.scrollWidth,d=e.scrollHeight,l=e.scrollWidth-h,p=e.scrollHeight-m,v=r.offsetHeight,i.display="block",(T||M)&&(this.left(T),this.top(M)))},this.content=r,this.element=e,this._skip=!1,this.enable()},bs=function(e){if(Lc()&&document.body){var t=window&&window.navigator;ue=window,ot=document,wt=ot.documentElement,Xt=ot.body,ds=zi("div"),Li=!!window.PointerEvent,Ht=zi("div"),Ht.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Bn=Ht.style.cursor==="grab"?"grab":"move",Fn=t&&t.userAgent.toLowerCase().indexOf("android")!==-1,ps="ontouchstart"in wt&&"orientation"in ue||t&&(t.MaxTouchPoints>0||t.msMaxTouchPoints>0),ws=(function(){var r=zi("div"),i=zi("div"),o=i.style,s=Xt,a;return o.display="inline-block",o.position="relative",r.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",r.appendChild(i),s.appendChild(r),a=i.offsetHeight+18>r.scrollHeight,s.removeChild(r),a})(),zn=(function(r){for(var i=r.split(","),o=("onpointerdown"in ds?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in ds?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":r).split(","),s={},a=4;--a>-1;)s[i[a]]=o[a],s[o[a]]=i[a];try{wt.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){Rc=1}}))}catch{}return s})("touchstart,touchmove,touchend,touchcancel"),Ee(ot,"touchcancel",Ni),Ee(ue,"touchmove",Ni),Xt&&Xt.addEventListener("touchstart",Ni),Ee(ot,"contextmenu",function(){for(var r in ln)ln[r].isPressed&&ln[r].endDrag()}),ee=hs=Ic()}ee?(bt=ee.plugins.inertia,$c=ee.core.context||function(){},Nn=ee.utils.checkPrefix,Wn=Nn(Wn),_s=Nn(_s),ir=ee.utils.toArray,ms=ee.core.getStyleSaver,qc=!!Nn("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")},Th=(function(){function n(t){this._listeners={},this.target=t||this}var e=n.prototype;return e.addEventListener=function(r,i){var o=this._listeners[r]||(this._listeners[r]=[]);~o.indexOf(i)||o.push(i)},e.removeEventListener=function(r,i){var o=this._listeners[r],s=o&&o.indexOf(i);s>=0&&o.splice(s,1)},e.dispatchEvent=function(r){var i=this,o;return(this._listeners[r]||[]).forEach(function(s){return s.call(i,{type:r,target:i.target})===!1&&(o=!1)}),o},n})(),pn=(function(n){dh(e,n);function e(t,r){var i;i=n.call(this)||this,hs||bs(1),t=ir(t)[0],i.styles=ms&&ms(t,"transform,left,top"),bt||(bt=ee.plugins.inertia),i.vars=r=Fc(r||{}),i.target=t,i.x=i.y=i.rotation=0,i.dragResistance=parseFloat(r.dragResistance)||0,i.edgeResistance=isNaN(r.edgeResistance)?1:parseFloat(r.edgeResistance)||0,i.lockAxis=r.lockAxis,i.autoScroll=r.autoScroll||0,i.lockedAxis=null,i.allowEventDefault=!!r.allowEventDefault,ee.getProperty(t,"x");var o=(r.type||"x,y").toLowerCase(),s=~o.indexOf("x")||~o.indexOf("y"),a=o.indexOf("rotation")!==-1,c=a?"rotation":s?"x":"left",u=s?"y":"top",f=!!(~o.indexOf("x")||~o.indexOf("left")||o==="scroll"),d=!!(~o.indexOf("y")||~o.indexOf("top")||o==="scroll"),g=r.minimumMovement||2,l=Dc(i),p=ir(r.trigger||r.handle||t),h={},m=0,v=!1,b=r.autoScrollMarginTop||40,S=r.autoScrollMarginRight||40,P=r.autoScrollMarginBottom||40,_=r.autoScrollMarginLeft||40,w=r.clickableTest||bh,C=0,T=t._gsap||ee.core.getCache(t),M=Sh(t),z=function(x,A){return parseFloat(T.get(t,x,A))},R=t.ownerDocument||ot,L,O,N,Y,B,X,ne,Q,Z,U,H,te,K,$e,Ae,$t,he,Ct,mt,st,Ye,Vn,Le,oe,Zc,_t,Tt,Cs,Ts,Jc,at,eu,Bi,tu=function(x){return pt(x),x.stopImmediatePropagation&&x.stopImmediatePropagation(),!1},Lt=function j(x){if(l.autoScroll&&l.isDragging&&(v||he)){var A=t,E=l.autoScroll*15,D,$,I,q,V,se,re,ae;for(v=!1,Vt.scrollTop=ue.pageYOffset!=null?ue.pageYOffset:R.documentElement.scrollTop!=null?R.documentElement.scrollTop:R.body.scrollTop,Vt.scrollLeft=ue.pageXOffset!=null?ue.pageXOffset:R.documentElement.scrollLeft!=null?R.documentElement.scrollLeft:R.body.scrollLeft,q=l.pointerX-Vt.scrollLeft,V=l.pointerY-Vt.scrollTop;A&&!$;)$=dn(A.parentNode),D=$?Vt:A.parentNode,I=$?{bottom:Math.max(wt.clientHeight,ue.innerHeight||0),right:Math.max(wt.clientWidth,ue.innerWidth||0),left:0,top:0}:D.getBoundingClientRect(),se=re=0,d&&(ae=D._gsMaxScrollY-D.scrollTop,ae<0?re=ae:V>I.bottom-P&&ae?(v=!0,re=Math.min(ae,E*(1-Math.max(0,I.bottom-V)/P)|0)):V<I.top+b&&D.scrollTop&&(v=!0,re=-Math.min(D.scrollTop,E*(1-Math.max(0,V-I.top)/b)|0)),re&&(D.scrollTop+=re)),f&&(ae=D._gsMaxScrollX-D.scrollLeft,ae<0?se=ae:q>I.right-S&&ae?(v=!0,se=Math.min(ae,E*(1-Math.max(0,I.right-q)/S)|0)):q<I.left+_&&D.scrollLeft&&(v=!0,se=-Math.min(D.scrollLeft,E*(1-Math.max(0,q-I.left)/_)|0)),se&&(D.scrollLeft+=se)),$&&(se||re)&&(ue.scrollTo(D.scrollLeft,D.scrollTop),Gn(l.pointerX+se,l.pointerY+re)),A=D}if(he){var be=l.x,We=l.y;a?(l.deltaX=be-parseFloat(T.rotation),l.rotation=be,T.rotation=be+"deg",T.renderTransform(1,T)):O?(d&&(l.deltaY=We-O.top(),O.top(We)),f&&(l.deltaX=be-O.left(),O.left(be))):s?(d&&(l.deltaY=We-parseFloat(T.y),T.y=We+"px"),f&&(l.deltaX=be-parseFloat(T.x),T.x=be+"px"),T.renderTransform(1,T)):(d&&(l.deltaY=We-parseFloat(t.style.top||0),t.style.top=We+"px"),f&&(l.deltaX=be-parseFloat(t.style.left||0),t.style.left=be+"px")),Q&&!x&&!Cs&&(Cs=!0,we(l,"drag","onDrag")===!1&&(f&&(l.x-=l.deltaX),d&&(l.y-=l.deltaY),j(!0)),Cs=!1)}he=!1},Lr=function(x,A){var E=l.x,D=l.y,$,I;t._gsap||(T=ee.core.getCache(t)),T.uncache&&ee.getProperty(t,"x"),s?(l.x=parseFloat(T.x),l.y=parseFloat(T.y)):a?l.x=l.rotation=parseFloat(T.rotation):O?(l.y=O.top(),l.x=O.left()):(l.y=parseFloat(t.style.top||(I=Hn(t))&&I.top)||0,l.x=parseFloat(t.style.left||(I||{}).left)||0),(mt||st||Ye)&&!A&&(l.isDragging||l.isThrowing)&&(Ye&&(cn.x=l.x,cn.y=l.y,$=Ye(cn),$.x!==l.x&&(l.x=$.x,he=!0),$.y!==l.y&&(l.y=$.y,he=!0)),mt&&($=mt(l.x),$!==l.x&&(l.x=$,a&&(l.rotation=$),he=!0)),st&&($=st(l.y),$!==l.y&&(l.y=$),he=!0)),he&&Lt(!0),x||(l.deltaX=l.x-E,l.deltaY=l.y-D,we(l,"throwupdate","onThrowUpdate"))},ks=function(x,A,E,D){return A==null&&(A=-Dr),E==null&&(E=Dr),or(x)?function($){var I=l.isPressed?1-l.edgeResistance:1;return x.call(l,($>E?E+($-E)*I:$<A?A+($-A)*I:$)*D)*D}:Xn(x)?function($){for(var I=x.length,q=0,V=Dr,se,re;--I>-1;)se=x[I],re=se-$,re<0&&(re=-re),re<V&&se>=A&&se<=E&&(q=I,V=re);return x[q]}:isNaN(x)?function($){return $}:function(){return x*D}},Oh=function(x,A,E,D,$,I,q){return I=I&&I<Dr?I*I:Dr,or(x)?function(V){var se=l.isPressed?1-l.edgeResistance:1,re=V.x,ae=V.y,be,We,jt;return V.x=re=re>E?E+(re-E)*se:re<A?A+(re-A)*se:re,V.y=ae=ae>$?$+(ae-$)*se:ae<D?D+(ae-D)*se:ae,be=x.call(l,V),be!==V&&(V.x=be.x,V.y=be.y),q!==1&&(V.x*=q,V.y*=q),I<Dr&&(We=V.x-re,jt=V.y-ae,We*We+jt*jt>I&&(V.x=re,V.y=ae)),V}:Xn(x)?function(V){for(var se=x.length,re=0,ae=Dr,be,We,jt,yt;--se>-1;)jt=x[se],be=jt.x-V.x,We=jt.y-V.y,yt=be*be+We*We,yt<ae&&(re=se,ae=yt);return ae<=I?x[re]:V}:function(V){return V}},Ps=function(){var x,A,E,D;ne=!1,O?(O.calibrate(),l.minX=H=-O.maxScrollLeft(),l.minY=K=-O.maxScrollTop(),l.maxX=U=l.maxY=te=0,ne=!0):r.bounds&&(x=Gc(r.bounds,t.parentNode),a?(l.minX=H=x.left,l.maxX=U=x.left+x.width,l.minY=K=l.maxY=te=0):!St(r.bounds.maxX)||!St(r.bounds.maxY)?(x=r.bounds,l.minX=H=x.minX,l.minY=K=x.minY,l.maxX=U=x.maxX,l.maxY=te=x.maxY):(A=Gc(t,t.parentNode),l.minX=H=Math.round(z(c,"px")+x.left-A.left),l.minY=K=Math.round(z(u,"px")+x.top-A.top),l.maxX=U=Math.round(H+(x.width-A.width)),l.maxY=te=Math.round(K+(x.height-A.height))),H>U&&(l.minX=U,l.maxX=U=H,H=l.minX),K>te&&(l.minY=te,l.maxY=te=K,K=l.minY),a&&(l.minRotation=H,l.maxRotation=U),ne=!0),r.liveSnap&&(E=r.liveSnap===!0?r.snap||{}:r.liveSnap,D=Xn(E)||or(E),a?(mt=ks(D?E:E.rotation,H,U,1),st=null):E.points?Ye=Oh(D?E:E.points,H,U,K,te,E.radius,O?-1:1):(f&&(mt=ks(D?E:E.x||E.left||E.scrollLeft,H,U,O?-1:1)),d&&(st=ks(D?E:E.y||E.top||E.scrollTop,K,te,O?-1:1))))},Ah=function(){l.isThrowing=!1,we(l,"throwcomplete","onThrowComplete")},Dh=function(){l.isThrowing=!1},Es=function(x,A){var E,D,$,I;x&&bt?(x===!0&&(E=r.snap||r.liveSnap||{},D=Xn(E)||or(E),x={resistance:(r.throwResistance||r.resistance||1e3)/(a?10:1)},a?x.rotation=vs(l,D?E:E.rotation,U,H,1,A):(f&&(x[c]=vs(l,D?E:E.points||E.x||E.left,U,H,O?-1:1,A||l.lockedAxis==="x")),d&&(x[u]=vs(l,D?E:E.points||E.y||E.top,te,K,O?-1:1,A||l.lockedAxis==="y")),(E.points||Xn(E)&&Yn(E[0]))&&(x.linkedProps=c+","+u,x.radius=E.radius))),l.isThrowing=!0,I=isNaN(r.overshootTolerance)?r.edgeResistance===1?0:1-l.edgeResistance+.2:r.overshootTolerance,x.duration||(x.duration={max:Math.max(r.minDuration||0,"maxDuration"in r?r.maxDuration:2),min:isNaN(r.minDuration)?I===0||Yn(x)&&x.resistance>1e3?0:.5:r.minDuration,overshoot:I}),l.tween=$=ee.to(O||t,{inertia:x,data:"_draggable",inherit:!1,onComplete:Ah,onInterrupt:Dh,onUpdate:r.fastMode?we:Lr,onUpdateParams:r.fastMode?[l,"onthrowupdate","onThrowUpdate"]:E&&E.radius?[!1,!0]:[]}),r.fastMode||(O&&(O._skip=!0),$.render(1e9,!0,!0),Lr(!0,!0),l.endX=l.x,l.endY=l.y,a&&(l.endRotation=l.x),$.play(0),Lr(!0,!0),O&&(O._skip=!1))):ne&&l.applyBounds()},ru=function(x){var A=oe,E;oe=Ar(t.parentNode,!0),x&&l.isPressed&&!oe.equals(A||new Or)&&(E=A.inverse().apply({x:N,y:Y}),oe.apply(E,E),N=E.x,Y=E.y),oe.equals(hh)&&(oe=null)},Yi=function(){var x=1-l.edgeResistance,A=M?fn(R):0,E=M?un(R):0,D,$,I;s&&(T.x=z(c,"px")+"px",T.y=z(u,"px")+"px",T.renderTransform()),ru(!1),gt.x=l.pointerX-A,gt.y=l.pointerY-E,oe&&oe.apply(gt,gt),N=gt.x,Y=gt.y,he&&(Gn(l.pointerX,l.pointerY),Lt(!0)),eu=Ar(t),O?(Ps(),X=O.top(),B=O.left()):(jn()?(Lr(!0,!0),Ps()):l.applyBounds(),a?(D=t.ownerSVGElement?[T.xOrigin-t.getBBox().x,T.yOrigin-t.getBBox().y]:(Hn(t)[_s]||"0 0").split(" "),$t=l.rotationOrigin=Ar(t).apply({x:parseFloat(D[0])||0,y:parseFloat(D[1])||0}),Lr(!0,!0),$=l.pointerX-$t.x-A,I=$t.y-l.pointerY+E,B=l.x,X=l.y=Math.atan2(I,$)*Nc):(X=z(u,"px"),B=z(c,"px"))),ne&&x&&(B>U?B=U+(B-U)/x:B<H&&(B=H-(H-B)/x),a||(X>te?X=te+(X-te)/x:X<K&&(X=K-(K-X)/x))),l.startX=B=sr(B),l.startY=X=sr(X)},jn=function(){return l.tween&&l.tween.isActive()},Rh=function(){Ht.parentNode&&!jn()&&!l.isDragging&&Ht.parentNode.removeChild(Ht)},Un=function(x,A){var E;if(!L||l.isPressed||!x||(x.type==="mousedown"||x.type==="pointerdown")&&!A&&ar()-C<30&&zn[l.pointerEvent.type]){at&&x&&L&&pt(x);return}if(Zc=jn(),Bi=!1,l.pointerEvent=x,zn[x.type]?(Le=~x.type.indexOf("touch")?x.currentTarget||x.target:R,Ee(Le,"touchend",kt),Ee(Le,"touchmove",Ir),Ee(Le,"touchcancel",kt),Ee(R,"touchstart",Hc)):(Le=null,Ee(R,"mousemove",Ir)),Tt=null,(!Li||!Le)&&(Ee(R,"mouseup",kt),x&&x.target&&Ee(x.target,"mouseup",kt)),Vn=w.call(l,x.target)&&r.dragClickables===!1&&!A,Vn){Ee(x.target,"change",kt),we(l,"pressInit","onPressInit"),we(l,"press","onPress"),Fi(p,!0),at=!1;return}if(_t=!Le||f===d||l.vars.allowNativeTouchScrolling===!1||l.vars.allowContextMenu&&x&&(x.ctrlKey||x.which>2)?!1:f?"y":"x",at=!_t&&!l.allowEventDefault,at&&(pt(x),Ee(ue,"touchforcechange",pt)),x.changedTouches?(x=$e=x.changedTouches[0],Ae=x.identifier):x.pointerId?Ae=x.pointerId:$e=Ae=null,Ii++,_h(Lt),Y=l.pointerY=x.pageY,N=l.pointerX=x.pageX,we(l,"pressInit","onPressInit"),(_t||l.autoScroll)&&ys(t.parentNode),t.parentNode&&l.autoScroll&&!O&&!a&&t.parentNode._gsMaxScrollX&&!Ht.parentNode&&!t.getBBox&&(Ht.style.width=t.parentNode.scrollWidth+"px",t.parentNode.appendChild(Ht)),Yi(),l.tween&&l.tween.kill(),l.isThrowing=!1,ee.killTweensOf(O||t,h,!0),O&&ee.killTweensOf(t,{scrollTo:1},!0),l.tween=l.lockedAxis=null,(r.zIndexBoost||!a&&!O&&r.zIndexBoost!==!1)&&(t.style.zIndex=e.zIndex++),l.isPressed=!0,Q=!!(r.onDrag||l._listeners.drag),Z=!!(r.onMove||l._listeners.move),r.cursor!==!1||r.activeCursor)for(E=p.length;--E>-1;)ee.set(p[E],{cursor:r.activeCursor||r.cursor||(Bn==="grab"?"grabbing":Bn)});we(l,"press","onPress")},Ir=function(x){var A=x,E,D,$,I,q,V;if(!L||gs||!l.isPressed||!x){at&&x&&L&&pt(x);return}if(l.pointerEvent=x,E=x.changedTouches,E){if(x=E[0],x!==$e&&x.identifier!==Ae){for(I=E.length;--I>-1&&(x=E[I]).identifier!==Ae&&x.target!==t;);if(I<0)return}}else if(x.pointerId&&Ae&&x.pointerId!==Ae)return;if(Le&&_t&&!Tt&&(gt.x=x.pageX-(M?fn(R):0),gt.y=x.pageY-(M?un(R):0),oe&&oe.apply(gt,gt),D=gt.x,$=gt.y,q=Math.abs(D-N),V=Math.abs($-Y),(q!==V&&(q>g||V>g)||Fn&&_t===Tt)&&(Tt=q>V&&f?"x":"y",_t&&Tt!==_t&&Ee(ue,"touchforcechange",pt),l.vars.lockAxisOnTouchScroll!==!1&&f&&d&&(l.lockedAxis=Tt==="x"?"y":"x",or(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,A)),Fn&&_t===Tt))){kt(A);return}!l.allowEventDefault&&(!_t||Tt&&_t!==Tt)&&A.cancelable!==!1?(pt(A),at=!0):at&&(at=!1),l.autoScroll&&(v=!0),Gn(x.pageX,x.pageY,Z)},Gn=function(x,A,E){var D=1-l.dragResistance,$=1-l.edgeResistance,I=l.pointerX,q=l.pointerY,V=X,se=l.x,re=l.y,ae=l.endX,be=l.endY,We=l.endRotation,jt=he,yt,lr,Ie,Pe,Ms,Pt;l.pointerX=x,l.pointerY=A,M&&(x-=fn(R),A-=un(R)),a?(Pe=Math.atan2($t.y-A,x-$t.x)*Nc,Ms=l.y-Pe,Ms>180?(X-=360,l.y=Pe):Ms<-180&&(X+=360,l.y=Pe),l.x!==B||Math.max(Math.abs(N-x),Math.abs(Y-A))>g?(l.y=Pe,Ie=B+(X-Pe)*D):Ie=B):(oe&&(Pt=x*oe.a+A*oe.c+oe.e,A=x*oe.b+A*oe.d+oe.f,x=Pt),lr=A-Y,yt=x-N,lr<g&&lr>-g&&(lr=0),yt<g&&yt>-g&&(yt=0),(l.lockAxis||l.lockedAxis)&&(yt||lr)&&(Pt=l.lockedAxis,Pt||(l.lockedAxis=Pt=f&&Math.abs(yt)>Math.abs(lr)?"y":d?"x":null,Pt&&or(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,l.pointerEvent)),Pt==="y"?lr=0:Pt==="x"&&(yt=0)),Ie=sr(B+yt*D),Pe=sr(X+lr*D)),(mt||st||Ye)&&(l.x!==Ie||l.y!==Pe&&!a)&&(Ye&&(cn.x=Ie,cn.y=Pe,Pt=Ye(cn),Ie=sr(Pt.x),Pe=sr(Pt.y)),mt&&(Ie=sr(mt(Ie))),st&&(Pe=sr(st(Pe)))),ne&&(Ie>U?Ie=U+Math.round((Ie-U)*$):Ie<H&&(Ie=H+Math.round((Ie-H)*$)),a||(Pe>te?Pe=Math.round(te+(Pe-te)*$):Pe<K&&(Pe=Math.round(K+(Pe-K)*$)))),(l.x!==Ie||l.y!==Pe&&!a)&&(a?(l.endRotation=l.x=l.endX=Ie,he=!0):(d&&(l.y=l.endY=Pe,he=!0),f&&(l.x=l.endX=Ie,he=!0)),!E||we(l,"move","onMove")!==!1?!l.isDragging&&l.isPressed&&(l.isDragging=Bi=!0,we(l,"dragstart","onDragStart")):(l.pointerX=I,l.pointerY=q,X=V,l.x=se,l.y=re,l.endX=ae,l.endY=be,l.endRotation=We,he=jt))},kt=function j(x,A){if(!L||!l.isPressed||x&&Ae!=null&&!A&&(x.pointerId&&x.pointerId!==Ae&&x.target!==t||x.changedTouches&&!xh(x.changedTouches,Ae))){at&&x&&L&&pt(x);return}l.isPressed=!1;var E=x,D=l.isDragging,$=l.vars.allowContextMenu&&x&&(x.ctrlKey||x.which>2),I=ee.delayedCall(.001,Rh),q,V,se,re,ae;if(Le?(ke(Le,"touchend",j),ke(Le,"touchmove",Ir),ke(Le,"touchcancel",j),ke(R,"touchstart",Hc)):ke(R,"mousemove",Ir),ke(ue,"touchforcechange",pt),(!Li||!Le)&&(ke(R,"mouseup",j),x&&x.target&&ke(x.target,"mouseup",j)),he=!1,D&&(m=zc=ar(),l.isDragging=!1),Xc(Lt),Vn&&!$){x&&(ke(x.target,"change",j),l.pointerEvent=E),Fi(p,!1),we(l,"release","onRelease"),we(l,"click","onClick"),Vn=!1;return}for(V=p.length;--V>-1;)xs(p[V],"cursor",r.cursor||(r.cursor!==!1?Bn:null));if(Ii--,x){if(q=x.changedTouches,q&&(x=q[0],x!==$e&&x.identifier!==Ae)){for(V=q.length;--V>-1&&(x=q[V]).identifier!==Ae&&x.target!==t;);if(V<0&&!A)return}l.pointerEvent=E,l.pointerX=x.pageX,l.pointerY=x.pageY}return $&&E?(pt(E),at=!0,we(l,"release","onRelease")):E&&!D?(at=!1,Zc&&(r.snap||r.bounds)&&Es(r.inertia||r.throwProps),we(l,"release","onRelease"),(!Fn||E.type!=="touchmove")&&E.type.indexOf("cancel")===-1&&(we(l,"click","onClick"),ar()-C<300&&we(l,"doubleclick","onDoubleClick"),re=E.target||t,C=ar(),ae=function(){C!==Ts&&l.enabled()&&!l.isPressed&&!E.defaultPrevented&&(re.click?re.click():R.createEvent&&(se=R.createEvent("MouseEvents"),se.initMouseEvent("click",!0,!0,ue,1,l.pointerEvent.screenX,l.pointerEvent.screenY,l.pointerX,l.pointerY,!1,!1,!1,!1,0,null),re.dispatchEvent(se)))},!Fn&&!E.defaultPrevented&&ee.delayedCall(.05,ae))):(Es(r.inertia||r.throwProps),!l.allowEventDefault&&E&&(r.dragClickables!==!1||!w.call(l,E.target))&&D&&(!_t||Tt&&_t===Tt)&&E.cancelable!==!1?(at=!0,pt(E)):at=!1,we(l,"release","onRelease")),jn()&&I.duration(l.tween.duration()),D&&we(l,"dragend","onDragEnd"),!0},Wi=function(x){if(x&&l.isDragging&&!O){var A=x.target||t.parentNode,E=A.scrollLeft-A._gsScrollX,D=A.scrollTop-A._gsScrollY;(E||D)&&(oe?(N-=E*oe.a+D*oe.c,Y-=D*oe.d+E*oe.b):(N-=E,Y-=D),A._gsScrollX+=E,A._gsScrollY+=D,Gn(l.pointerX,l.pointerY))}},nu=function(x){var A=ar(),E=A-C<100,D=A-m<50,$=E&&Ts===C,I=l.pointerEvent&&l.pointerEvent.defaultPrevented,q=E&&Jc===C,V=x.isTrusted||x.isTrusted==null&&E&&$;if(($||D&&l.vars.suppressClickOnDrag!==!1)&&x.stopImmediatePropagation&&x.stopImmediatePropagation(),E&&!(l.pointerEvent&&l.pointerEvent.defaultPrevented)&&(!$||V&&!q)){V&&$&&(Jc=C),Ts=C;return}(l.isPressed||D||E)&&(!V||!x.detail||!E||I)&&pt(x),!E&&!D&&!Bi&&(x&&x.target&&(l.pointerEvent=x),we(l,"click","onClick"))},iu=function(x){return oe?{x:x.x*oe.a+x.y*oe.c+oe.e,y:x.x*oe.b+x.y*oe.d+oe.f}:{x:x.x,y:x.y}};return Ct=e.get(t),Ct&&Ct.kill(),i.startDrag=function(j,x){var A,E,D,$;Un(j||l.pointerEvent,!0),x&&!l.hitTest(j||l.pointerEvent)&&(A=hn(j||l.pointerEvent),E=hn(t),D=iu({x:A.left+A.width/2,y:A.top+A.height/2}),$=iu({x:E.left+E.width/2,y:E.top+E.height/2}),N-=D.x-$.x,Y-=D.y-$.y),l.isDragging||(l.isDragging=Bi=!0,we(l,"dragstart","onDragStart"))},i.drag=Ir,i.endDrag=function(j){return kt(j||l.pointerEvent,!0)},i.timeSinceDrag=function(){return l.isDragging?0:(ar()-m)/1e3},i.timeSinceClick=function(){return(ar()-C)/1e3},i.hitTest=function(j,x){return e.hitTest(l.target,j,x)},i.getDirection=function(j,x){var A=j==="velocity"&&bt?j:Yn(j)&&!a?"element":"start",E,D,$,I,q,V;return A==="element"&&(q=hn(l.target),V=hn(j)),E=A==="start"?l.x-B:A==="velocity"?bt.getVelocity(t,c):q.left+q.width/2-(V.left+V.width/2),a?E<0?"counter-clockwise":"clockwise":(x=x||2,D=A==="start"?l.y-X:A==="velocity"?bt.getVelocity(t,u):q.top+q.height/2-(V.top+V.height/2),$=Math.abs(E/D),I=$<1/x?"":E<0?"left":"right",$<x&&(I!==""&&(I+="-"),I+=D<0?"up":"down"),I)},i.applyBounds=function(j,x){var A,E,D,$,I,q;if(j&&r.bounds!==j)return r.bounds=j,l.update(!0,x);if(Lr(!0),Ps(),ne&&!jn()){if(A=l.x,E=l.y,A>U?A=U:A<H&&(A=H),E>te?E=te:E<K&&(E=K),(l.x!==A||l.y!==E)&&(D=!0,l.x=l.endX=A,a?l.endRotation=A:l.y=l.endY=E,he=!0,Lt(!0),l.autoScroll&&!l.isDragging))for(ys(t.parentNode),$=t,Vt.scrollTop=ue.pageYOffset!=null?ue.pageYOffset:R.documentElement.scrollTop!=null?R.documentElement.scrollTop:R.body.scrollTop,Vt.scrollLeft=ue.pageXOffset!=null?ue.pageXOffset:R.documentElement.scrollLeft!=null?R.documentElement.scrollLeft:R.body.scrollLeft;$&&!q;)q=dn($.parentNode),I=q?Vt:$.parentNode,d&&I.scrollTop>I._gsMaxScrollY&&(I.scrollTop=I._gsMaxScrollY),f&&I.scrollLeft>I._gsMaxScrollX&&(I.scrollLeft=I._gsMaxScrollX),$=I;l.isThrowing&&(D||l.endX>U||l.endX<H||l.endY>te||l.endY<K)&&Es(r.inertia||r.throwProps,D)}return l},i.update=function(j,x,A){if(x&&l.isPressed){var E=Ar(t),D=eu.apply({x:l.x-B,y:l.y-X}),$=Ar(t.parentNode,!0);$.apply({x:E.e-D.x,y:E.f-D.y},D),l.x-=D.x-$.e,l.y-=D.y-$.f,Lt(!0),Yi()}var I=l.x,q=l.y;return ru(!x),j?l.applyBounds():(he&&A&&Lt(!0),Lr(!0)),x&&(Gn(l.pointerX,l.pointerY),he&&Lt(!0)),l.isPressed&&!x&&(f&&Math.abs(I-l.x)>.01||d&&Math.abs(q-l.y)>.01&&!a)&&Yi(),l.autoScroll&&(ys(t.parentNode,l.isDragging),v=l.isDragging,Lt(!0),jc(t,Wi),Vc(t,Wi)),l},i.enable=function(j){var x={lazy:!0},A,E,D;if(r.cursor!==!1&&(x.cursor=r.cursor||Bn),ee.utils.checkPrefix("touchCallout")&&(x.touchCallout="none"),j!=="soft"){for(Bc(p,f===d?"none":r.allowNativeTouchScrolling&&t.scrollHeight===t.clientHeight==(t.scrollWidth===t.clientHeight)||r.allowEventDefault?"manipulation":f?"pan-y":"pan-x"),E=p.length;--E>-1;)D=p[E],Li||Ee(D,"mousedown",Un),Ee(D,"touchstart",Un),Ee(D,"click",nu,!0),ee.set(D,x),D.getBBox&&D.ownerSVGElement&&f!==d&&ee.set(D.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":f?"pan-y":"pan-x"}),r.allowContextMenu||Ee(D,"contextmenu",tu);Fi(p,!1)}return Vc(t,Wi),L=!0,bt&&j!=="soft"&&bt.track(O||t,s?"x,y":a?"rotation":"top,left"),t._gsDragID=A=t._gsDragID||"d"+ph++,ln[A]=l,O&&(O.enable(),O.element._gsDragID=A),(r.bounds||a)&&Yi(),r.bounds&&l.applyBounds(),l},i.disable=function(j){for(var x=l.isDragging,A=p.length,E;--A>-1;)xs(p[A],"cursor",null);if(j!=="soft"){for(Bc(p,null),A=p.length;--A>-1;)E=p[A],xs(E,"touchCallout",null),ke(E,"mousedown",Un),ke(E,"touchstart",Un),ke(E,"click",nu,!0),ke(E,"contextmenu",tu);Fi(p,!0),Le&&(ke(Le,"touchcancel",kt),ke(Le,"touchend",kt),ke(Le,"touchmove",Ir)),ke(R,"mouseup",kt),ke(R,"mousemove",Ir)}return jc(t,Wi),L=!1,bt&&j!=="soft"&&(bt.untrack(O||t,s?"x,y":a?"rotation":"top,left"),l.tween&&l.tween.kill()),O&&O.disable(),Xc(Lt),l.isDragging=l.isPressed=Vn=!1,x&&we(l,"dragend","onDragEnd"),l},i.enabled=function(j,x){return arguments.length?j?l.enable(x):l.disable(x):L},i.kill=function(){return l.isThrowing=!1,l.tween&&l.tween.kill(),l.disable(),ee.set(p,{clearProps:"userSelect"}),delete ln[t._gsDragID],l},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~o.indexOf("scroll")&&(O=i.scrollProxy=new Ch(t,mh({onKill:function(){l.isPressed&&kt(null)}},r)),t.style.overflowY=d&&!ps?"auto":"hidden",t.style.overflowX=f&&!ps?"auto":"hidden",t=O.content),a?h.rotation=1:(f&&(h[c]=1),d&&(h[u]=1)),T.force3D="force3D"in r?r.force3D:!0,$c(Dc(i)),i.enable(),i}return e.register=function(r){ee=r,bs()},e.create=function(r,i){return hs||bs(!0),ir(r).map(function(o){return new e(o,i)})},e.get=function(r){return ln[(ir(r)[0]||{})._gsDragID]},e.timeSinceDrag=function(){return(ar()-zc)/1e3},e.hitTest=function(r,i,o){if(r===i)return!1;var s=hn(r),a=hn(i),c=s.top,u=s.left,f=s.right,d=s.bottom,g=s.width,l=s.height,p=a.left>f||a.right<u||a.top>d||a.bottom<c,h,m,v;return p||!o?!p:(v=(o+"").indexOf("%")!==-1,o=parseFloat(o)||0,h={left:Math.max(u,a.left),top:Math.max(c,a.top)},h.width=Math.min(f,a.right)-h.left,h.height=Math.min(d,a.bottom)-h.top,h.width<0||h.height<0?!1:v?(o*=.01,m=h.width*h.height,m>=g*l*o||m>=a.width*a.height*o):h.width>o&&h.height>o)},e})(Th);yh(pn.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),pn.zIndex=1e3,pn.version="3.13.0",Ic()&&ee.registerPlugin(pn),W.registerPlugin(Er),W.registerPlugin(pn);const Ss=y.createContext({toasts:[],addToast:()=>{}}),Kc=({children:n,...e})=>{const t=y.useMemo(()=>({maxToastDisplay:3,durationInSeconds:5,closable:!0,placement:"top-right",Custom:void 0,...e.settings}),[e.settings]),[r,i]=y.useState([]),o=y.useCallback(a=>{i(c=>c.filter(u=>u.id!==a))},[]),s=y.useMemo(()=>({toasts:r,addToast:a=>{const c={id:`toast-${Date.now()}-${Math.random()}`,...a};i(u=>[...u,c])}}),[r]);return k.jsxs(Ss.Provider,{value:s,children:[n," ",k.jsx(Qc,{toasts:r,removeToast:o,settings:t})]})},Qc=({toasts:n,removeToast:e,settings:t})=>{const r=y.useRef(new Map),i=y.useRef(null),[o,s]=y.useState(!1),{isMobile:a}=sn(),c=y.useCallback(l=>{const p=r.current.get(l);if(p){W.killTweensOf(p);const h=t.placement.includes("left");W.to(p,{x:h?"-100%":"100%",opacity:0,duration:.4,ease:"power2.in",onComplete:()=>{e(l)}})}},[e,t.placement]);y.useEffect(()=>{const l=t.placement.includes("top"),p=t.placement.includes("left");n.forEach(h=>{const m=r.current.get(h.id);m&&!m.dataset.animatedIn&&(m.dataset.animatedIn="true",W.fromTo(m,{opacity:0,y:l?-100:100,x:p?-50:50},{opacity:1,y:0,x:0,duration:.5,ease:"power2.out",onComplete:()=>{const v=W.timeline({delay:h.duration||t.durationInSeconds,onComplete:()=>{W.to(m,{opacity:0,y:l?-50:50,duration:.3,ease:"power2.in",onComplete:()=>{e(h.id),r.current.delete(h.id)}})}});m.timeline=v}}))})},[n,e,t.durationInSeconds,t.placement]);const u=n.slice(-t.maxToastDisplay);Er(()=>{W.to(".toast-item",{marginBottom:l=>o||l===0?0:-48,transform:l=>l<Math.min(5,u.length-1)&&!o?`scale(${1-(Math.min(5,u.length-1)-l)*.05})`:"scale(1)",duration:.3,ease:"power2.out",stagger:.05})},{dependencies:[o,u],scope:i}),Er(()=>{const l=[],p=t.placement.includes("left");return u.forEach(h=>{const m=r.current.get(h.id);if(!m)return;const v=pn.create(m,{type:"x",edgeResistance:.9,bounds:p?{minX:-window.innerWidth,maxX:0}:{minX:0,maxX:window.innerWidth},onPress:function(){this.target.timeline&&this.target.timeline.pause()},onDrag:function(){W.set(this.target,{opacity:1-Math.abs(this.x)/Math.abs(p?this.minX:this.maxX)})},onDragEnd:function(){const b=m.offsetWidth*.1;(p?this.x<-b:this.x>b)?W.to(this.target,{x:p?"-100%":"100%",opacity:0,duration:.3,ease:"power2.in",onComplete:()=>{e(h.id)}}):(W.to(this.target,{x:0,opacity:1,duration:.4,ease:"elastic.out(1, 0.75)"}),this.target.timeline&&this.target.timeline.resume())}});l.push(v[0])}),()=>{l.forEach(h=>h.kill())}},{dependencies:[n,t.placement],scope:i}),y.useEffect(()=>{u.length===0&&o&&s(!1)},[u,o]);const f=t.placement.includes("top"),d=t.placement.includes("left"),g={position:"fixed",...f?{top:a?"16px":"8px"}:{bottom:a?"16px":"8px"},...d?{left:a?"16px":"8px"}:{right:a?"16px":"8px"},zIndex:99999};return k.jsx(de,{ref:i,gap:.5,direction:"column-reverse",style:g,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:u.map((l,p)=>{const{id:h,...m}=l;return t.Custom?k.jsx("div",{className:"toast-item",ref:v=>{v&&r.current.set(h,v)},style:{position:"relative",zIndex:p,marginBottom:p>0?"-48px":"0",transform:p<Math.min(5,u.length-1)?`scale(${1-(Math.min(5,u.length-1)-p)*.05})`:"scale(1)"},children:k.jsx(t.Custom,{onClose:t.closable?()=>c(h):void 0,...m})},h):k.jsx(ss,{className:"toast-item",onClose:t.closable?()=>c(h):void 0,ref:v=>{v&&r.current.set(h,v)},...m,style:{position:"relative",zIndex:p,marginBottom:p>0?"-48px":"0",transform:p<Math.min(5,u.length-1)?`scale(${1-(Math.min(5,u.length-1)-p)*.05})`:"scale(1)"}},h)})})},kh=()=>y.useContext(on),Ph=()=>{const{addToast:n}=y.useContext(Ss);return{addToast:n}},Eh=({children:n})=>{const{theme:e}=y.useContext(on);return k.jsx(Od,{theme:e,children:n})},Mh=({children:n,themes:e,settings:t})=>k.jsx(Jl,{themes:e,autoContrast:t?.autoContrast,children:k.jsx(Eh,{children:k.jsxs(Kc,{settings:t?.toasts,children:[k.jsx("div",{id:"modal"}),n]})})});F.BellIcon=ec,F.Button=Oi,F.CheckIcon=Ei,F.Checkbox=dc,F.Chip=hc,F.CopyIcon=tc,F.Divider=gc,F.DotsIcon=rc,F.ExampleIcon=Cf,F.Flex=de,F.HamburgerIcon=nc,F.HeartIcon=ic,F.Image=mc,F.Input=_c,F.KEYPOP=ll,F.Modal=bc,F.OpenUIProvider=Mh,F.Popover=Sc,F.ProgressBar=Qd,F.Select=Tc,F.SendHorizontalIcon=oc,F.Skeleton=eh,F.SparklesIcon=sc,F.Switch=th,F.SyncIcon=ac,F.THEME=cl,F.Text=Re,F.TextArea=kc,F.ThemeContext=on,F.ThemeContextProvider=Jl,F.Title=yc,F.Toast=ss,F.ToastContext=Ss,F.ToastContextProvider=Kc,F.ToastProvider=Qc,F.Tooltip=Pc,F.breakpoints=Mi,F.createTheme=al,F.generateColorPalette=sl,F.getColorBasedOnBackground=Ve,F.getPalette=xr,F.hexToRgb=rl,F.hslToRgb=No,F.isColorPalette=el,F.parseColorToRgb=ol,F.parseHslString=il,F.parseRgbString=nl,F.radiusMap=dt,F.rgbToHex=zo,F.rgbToHsl=tl,F.useAutoContrast=He,F.useResponsive=sn,F.useTheme=kh,F.useToast=Ph,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})}));
|
|
367
|
+
*/var Bt,Pr,as,Ai,Rn,Ri,$i,$n,yt="transform",ls=yt+"Origin",Mc,Oc=function(e){var t=e.ownerDocument||e;for(!(yt in e.style)&&("msTransform"in e.style)&&(yt="msTransform",ls=yt+"Origin");t.parentNode&&(t=t.parentNode););if(Pr=window,$i=new Er,t){Bt=t,as=t.documentElement,Ai=t.body,$n=Bt.createElementNS("http://www.w3.org/2000/svg","g"),$n.style.transform="none";var r=t.createElement("div"),i=t.createElement("div"),o=t&&(t.body||t.firstElementChild);o&&o.appendChild&&(o.appendChild(r),r.appendChild(i),r.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),Mc=i.offsetParent!==r,o.removeChild(r))}return t},sh=function(e){for(var t,r;e&&e!==Ai;)r=e._gsap,r&&r.uncache&&r.get(e,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),t?t.push(r):t=[r]),e=e.parentNode;return t},Dc=[],Ac=[],ah=function(){return Pr.pageYOffset||Bt.scrollTop||as.scrollTop||Ai.scrollTop||0},lh=function(){return Pr.pageXOffset||Bt.scrollLeft||as.scrollLeft||Ai.scrollLeft||0},cs=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},ch=function n(e){if(Pr.getComputedStyle(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},us=function n(e,t){if(e.parentNode&&(Bt||Oc(e))){var r=cs(e),i=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o=r?t?"rect":"g":"div",s=t!==2?0:100,a=t===3?100:0,c="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=Bt.createElementNS?Bt.createElementNS(i.replace(/^https/,"http"),o):Bt.createElement(o);return t&&(r?(Ri||(Ri=n(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+s+","+a+")"),Ri.appendChild(u)):(Rn||(Rn=n(e),Rn.style.cssText=c),u.style.cssText=c+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px",Rn.appendChild(u))),u}throw"Need document and parent."},uh=function(e){for(var t=new Er,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},fh=function(e){var t=e.getCTM(),r;return t||(r=e.style[yt],e.style[yt]="none",e.appendChild($n),t=$n.getCTM(),e.removeChild($n),r?e.style[yt]=r:e.style.removeProperty(yt.replace(/([A-Z])/g,"-$1").toLowerCase())),t||$i.clone()},dh=function(e,t){var r=cs(e),i=e===r,o=r?Dc:Ac,s=e.parentNode,a=s&&!r&&s.shadowRoot&&s.shadowRoot.appendChild?s.shadowRoot:s,c,u,f,d,p,l;if(e===Pr)return e;if(o.length||o.push(us(e,1),us(e,2),us(e,3)),c=r?Ri:Rn,r)i?(f=fh(e),d=-f.e/f.a,p=-f.f/f.d,u=$i):e.getBBox?(f=e.getBBox(),u=e.transform?e.transform.baseVal:{},u=u.numberOfItems?u.numberOfItems>1?uh(u):u.getItem(0).matrix:$i,d=u.a*f.x+u.c*f.y,p=u.b*f.x+u.d*f.y):(u=new Er,d=p=0),(i?r:s).appendChild(c),c.setAttribute("transform","matrix("+u.a+","+u.b+","+u.c+","+u.d+","+(u.e+d)+","+(u.f+p)+")");else{if(d=p=0,Mc)for(u=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==u&&f.parentNode;)(Pr.getComputedStyle(f)[yt]+"").length>4&&(d=f.offsetLeft,p=f.offsetTop,f=0);if(l=Pr.getComputedStyle(e),l.position!=="absolute"&&l.position!=="fixed")for(u=e.offsetParent;s&&s!==u;)d+=s.scrollLeft||0,p+=s.scrollTop||0,s=s.parentNode;f=c.style,f.top=e.offsetTop-p+"px",f.left=e.offsetLeft-d+"px",f[yt]=l[yt],f[ls]=l[ls],f.position=l.position==="fixed"?"fixed":"absolute",a.appendChild(c)}return c},fs=function(e,t,r,i,o,s,a){return e.a=t,e.b=r,e.c=i,e.d=o,e.e=s,e.f=a,e},Er=(function(){function n(t,r,i,o,s,a){t===void 0&&(t=1),r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=1),s===void 0&&(s=0),a===void 0&&(a=0),fs(this,t,r,i,o,s,a)}var e=n.prototype;return e.inverse=function(){var r=this.a,i=this.b,o=this.c,s=this.d,a=this.e,c=this.f,u=r*s-i*o||1e-10;return fs(this,s/u,-i/u,-o/u,r/u,(o*c-s*a)/u,-(r*c-i*a)/u)},e.multiply=function(r){var i=this.a,o=this.b,s=this.c,a=this.d,c=this.e,u=this.f,f=r.a,d=r.c,p=r.b,l=r.d,g=r.e,h=r.f;return fs(this,f*i+p*s,f*o+p*a,d*i+l*s,d*o+l*a,c+g*i+h*s,u+g*o+h*a)},e.clone=function(){return new n(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(r){var i=this.a,o=this.b,s=this.c,a=this.d,c=this.e,u=this.f;return i===r.a&&o===r.b&&s===r.c&&a===r.d&&c===r.e&&u===r.f},e.apply=function(r,i){i===void 0&&(i={});var o=r.x,s=r.y,a=this.a,c=this.b,u=this.c,f=this.d,d=this.e,p=this.f;return i.x=o*a+s*u+d||0,i.y=o*c+s*f+p||0,i},n})();function Mr(n,e,t,r){if(!n||!n.parentNode||(Bt||Oc(n)).documentElement===n)return new Er;var i=sh(n),o=cs(n),s=o?Dc:Ac,a=dh(n),c=s[0].getBoundingClientRect(),u=s[1].getBoundingClientRect(),f=s[2].getBoundingClientRect(),d=a.parentNode,p=ch(n),l=new Er((u.left-c.left)/100,(u.top-c.top)/100,(f.left-c.left)/100,(f.top-c.top)/100,c.left+(p?0:lh()),c.top+(p?0:ah()));if(d.removeChild(a),i)for(c=i.length;c--;)u=i[c],u.scaleX=u.scaleY=0,u.renderTransform(1,u);return e?l.inverse():l}function Rc(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function hh(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var J,ue,rt,xt,Yt,ds,Wt,hs,Ln,rr,$c,ps,In,gs,Nn,vt,zn,Li,Lc,ms,Ii=0,Ic=function(){return typeof window<"u"},Nc=function(){return J||Ic()&&(J=window.gsap)&&J.registerPlugin&&J},nr=function(e){return typeof e=="function"},Fn=function(e){return typeof e=="object"},wt=function(e){return typeof e>"u"},Ni=function(){return!1},Bn="transform",_s="transformOrigin",ir=function(e){return Math.round(e*1e4)/1e4},Yn=Array.isArray,zi=function(e,t){var r=rt.createElementNS?rt.createElementNS("http://www.w3.org/1999/xhtml".replace(/^https/,"http"),e):rt.createElement(e);return r.style?r:rt.createElement(e)},zc=180/Math.PI,Or=1e20,ph=new Er,or=Date.now||function(){return new Date().getTime()},Dr=[],sn={},gh=0,mh=/^(?:a|input|textarea|button|select)$/i,Fc=0,an={},Xt={},Bc=function(e,t){var r={},i;for(i in e)r[i]=t?e[i]*t:e[i];return r},_h=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Yc=function n(e,t){for(var r=e.length,i;r--;)t?e[r].style.touchAction=t:e[r].style.removeProperty("touch-action"),i=e[r].children,i&&i.length&&n(i,t)},Wc=function(){return Dr.forEach(function(e){return e()})},yh=function(e){Dr.push(e),Dr.length===1&&J.ticker.add(Wc)},Xc=function(){return!Dr.length&&J.ticker.remove(Wc)},Hc=function(e){for(var t=Dr.length;t--;)Dr[t]===e&&Dr.splice(t,1);J.to(Xc,{overwrite:!0,delay:15,duration:0,onComplete:Xc,data:"_draggable"})},xh=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Ee=function(e,t,r,i){if(e.addEventListener){var o=In[t];i=i||($c?{passive:!1}:null),e.addEventListener(o||t,r,i),o&&t!==o&&e.addEventListener(t,r,i)}},ke=function(e,t,r,i){if(e.removeEventListener){var o=In[t];e.removeEventListener(o||t,r,i),o&&t!==o&&e.removeEventListener(t,r,i)}},dt=function(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()},vh=function(e,t){for(var r=e.length;r--;)if(e[r].identifier===t)return!0},wh=function n(e){gs=e.touches&&Ii<e.touches.length,ke(e.target,"touchend",n)},Vc=function(e){gs=e.touches&&Ii<e.touches.length,Ee(e.target,"touchend",wh)},ln=function(e){return ue.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0},cn=function(e){return ue.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0},jc=function n(e,t){Ee(e,"scroll",t),un(e.parentNode)||n(e.parentNode,t)},Uc=function n(e,t){ke(e,"scroll",t),un(e.parentNode)||n(e.parentNode,t)},un=function(e){return!e||e===xt||e.nodeType===9||e===rt.body||e===ue||!e.nodeType||!e.parentNode},Gc=function(e,t){var r=t==="x"?"Width":"Height",i="scroll"+r,o="client"+r;return Math.max(0,un(e)?Math.max(xt[i],Yt[i])-(ue["inner"+r]||xt[o]||Yt[o]):e[i]-e[o])},ys=function n(e,t){var r=Gc(e,"x"),i=Gc(e,"y");un(e)?e=Xt:n(e.parentNode,t),e._gsMaxScrollX=r,e._gsMaxScrollY=i,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},xs=function(e,t,r){var i=e.style;i&&(wt(i[t])&&(t=Ln(t,e)||t),r==null?i.removeProperty&&i.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):i[t]=r)},Wn=function(e){return ue.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)},Ar={},fn=function(e){if(e===ue)return Ar.left=Ar.top=0,Ar.width=Ar.right=xt.clientWidth||e.innerWidth||Yt.clientWidth||0,Ar.height=Ar.bottom=(e.innerHeight||0)-20<xt.clientHeight?xt.clientHeight:e.innerHeight||Yt.clientHeight||0,Ar;var t=e.ownerDocument||rt,r=wt(e.pageX)?!e.nodeType&&!wt(e.left)&&!wt(e.top)?e:rr(e)[0].getBoundingClientRect():{left:e.pageX-cn(t),top:e.pageY-ln(t),right:e.pageX-cn(t)+1,bottom:e.pageY-ln(t)+1};return wt(r.right)&&!wt(r.width)?(r.right=r.left+r.width,r.bottom=r.top+r.height):wt(r.width)&&(r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}),r},we=function(e,t,r){var i=e.vars,o=i[r],s=e._listeners[t],a;return nr(o)&&(a=o.apply(i.callbackScope||e,i[r+"Params"]||[e.pointerEvent])),s&&e.dispatchEvent(t)===!1&&(a=!1),a},qc=function(e,t){var r=rr(e)[0],i,o,s;return!r.nodeType&&r!==ue?wt(e.left)?(o=e.min||e.minX||e.minRotation||0,i=e.min||e.minY||0,{left:o,top:i,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-i}):(s={x:0,y:0},{left:e.left-s.x,top:e.top-s.y,width:e.width,height:e.height}):bh(r,t)},ht={},bh=function(e,t){t=rr(t)[0];var r=e.getBBox&&e.ownerSVGElement,i=e.ownerDocument||rt,o,s,a,c,u,f,d,p,l,g,h,_,v;if(e===ue)a=ln(i),o=cn(i),s=o+(i.documentElement.clientWidth||e.innerWidth||i.body.clientWidth||0),c=a+((e.innerHeight||0)-20<i.documentElement.clientHeight?i.documentElement.clientHeight:e.innerHeight||i.body.clientHeight||0);else{if(t===ue||wt(t))return e.getBoundingClientRect();o=a=0,r?(g=e.getBBox(),h=g.width,_=g.height):(e.viewBox&&(g=e.viewBox.baseVal)&&(o=g.x||0,a=g.y||0,h=g.width,_=g.height),h||(v=Wn(e),g=v.boxSizing==="border-box",h=(parseFloat(v.width)||e.clientWidth||0)+(g?0:parseFloat(v.borderLeftWidth)+parseFloat(v.borderRightWidth)),_=(parseFloat(v.height)||e.clientHeight||0)+(g?0:parseFloat(v.borderTopWidth)+parseFloat(v.borderBottomWidth)))),s=h,c=_}return e===t?{left:o,top:a,width:s-o,height:c-a}:(u=Mr(t,!0).multiply(Mr(e)),f=u.apply({x:o,y:a}),d=u.apply({x:s,y:a}),p=u.apply({x:s,y:c}),l=u.apply({x:o,y:c}),o=Math.min(f.x,d.x,p.x,l.x),a=Math.min(f.y,d.y,p.y,l.y),{left:o,top:a,width:Math.max(f.x,d.x,p.x,l.x)-o,height:Math.max(f.y,d.y,p.y,l.y)-a})},vs=function(e,t,r,i,o,s){var a={},c,u,f;if(t)if(o!==1&&t instanceof Array){if(a.end=c=[],f=t.length,Fn(t[0]))for(u=0;u<f;u++)c[u]=Bc(t[u],o);else for(u=0;u<f;u++)c[u]=t[u]*o;r+=1.1,i-=1.1}else nr(t)?a.end=function(d){var p=t.call(e,d),l,g;if(o!==1)if(Fn(p)){l={};for(g in p)l[g]=p[g]*o;p=l}else p*=o;return p}:a.end=t;return(r||r===0)&&(a.max=r),(i||i===0)&&(a.min=i),s&&(a.velocity=0),a},Sh=function n(e){var t;return!e||!e.getAttribute||e===Yt?!1:(t=e.getAttribute("data-clickable"))==="true"||t!=="false"&&(mh.test(e.nodeName+"")||e.getAttribute("contentEditable")==="true")?!0:n(e.parentNode)},Fi=function(e,t){for(var r=e.length,i;r--;)i=e[r],i.ondragstart=i.onselectstart=t?null:Ni,J.set(i,{lazy:!0,userSelect:t?"text":"none"})},Th=function n(e){if(Wn(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},Kc,ws,Ch=function(e,t){e=J.utils.toArray(e)[0],t=t||{};var r=document.createElement("div"),i=r.style,o=e.firstChild,s=0,a=0,c=e.scrollTop,u=e.scrollLeft,f=e.scrollWidth,d=e.scrollHeight,p=0,l=0,g=0,h,_,v,b,S,P;Kc&&t.force3D!==!1?(S="translate3d(",P="px,0px)"):Bn&&(S="translate(",P="px)"),this.scrollTop=function(m,w){if(!arguments.length)return-this.top();this.top(-m,w)},this.scrollLeft=function(m,w){if(!arguments.length)return-this.left();this.left(-m,w)},this.left=function(m,w){if(!arguments.length)return-(e.scrollLeft+a);var T=e.scrollLeft-u,C=a;if((T>2||T<-2)&&!w){u=e.scrollLeft,J.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-u),t.onKill&&t.onKill();return}m=-m,m<0?(a=m-.5|0,m=0):m>l?(a=m-l|0,m=l):a=0,(a||C)&&(this._skip||(i[Bn]=S+-a+"px,"+-s+P),a+p>=0&&(i.paddingRight=a+p+"px")),e.scrollLeft=m|0,u=e.scrollLeft},this.top=function(m,w){if(!arguments.length)return-(e.scrollTop+s);var T=e.scrollTop-c,C=s;if((T>2||T<-2)&&!w){c=e.scrollTop,J.killTweensOf(this,{top:1,scrollTop:1}),this.top(-c),t.onKill&&t.onKill();return}m=-m,m<0?(s=m-.5|0,m=0):m>g?(s=m-g|0,m=g):s=0,(s||C)&&(this._skip||(i[Bn]=S+-a+"px,"+-s+P)),e.scrollTop=m|0,c=e.scrollTop},this.maxScrollTop=function(){return g},this.maxScrollLeft=function(){return l},this.disable=function(){for(o=r.firstChild;o;)b=o.nextSibling,e.appendChild(o),o=b;e===r.parentNode&&e.removeChild(r)},this.enable=function(){if(o=e.firstChild,o!==r){for(;o;)b=o.nextSibling,r.appendChild(o),o=b;e.appendChild(r),this.calibrate()}},this.calibrate=function(m){var w=e.clientWidth===h,T,C,M;c=e.scrollTop,u=e.scrollLeft,!(w&&e.clientHeight===_&&r.offsetHeight===v&&f===e.scrollWidth&&d===e.scrollHeight&&!m)&&((s||a)&&(C=this.left(),M=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),T=Wn(e),(!w||m)&&(i.display="block",i.width="auto",i.paddingRight="0px",p=Math.max(0,e.scrollWidth-e.clientWidth),p&&(p+=parseFloat(T.paddingLeft)+(ws?parseFloat(T.paddingRight):0))),i.display="inline-block",i.position="relative",i.overflow="visible",i.verticalAlign="top",i.boxSizing="content-box",i.width="100%",i.paddingRight=p+"px",ws&&(i.paddingBottom=T.paddingBottom),h=e.clientWidth,_=e.clientHeight,f=e.scrollWidth,d=e.scrollHeight,l=e.scrollWidth-h,g=e.scrollHeight-_,v=r.offsetHeight,i.display="block",(C||M)&&(this.left(C),this.top(M)))},this.content=r,this.element=e,this._skip=!1,this.enable()},bs=function(e){if(Ic()&&document.body){var t=window&&window.navigator;ue=window,rt=document,xt=rt.documentElement,Yt=rt.body,ds=zi("div"),Li=!!window.PointerEvent,Wt=zi("div"),Wt.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",zn=Wt.style.cursor==="grab"?"grab":"move",Nn=t&&t.userAgent.toLowerCase().indexOf("android")!==-1,ps="ontouchstart"in xt&&"orientation"in ue||t&&(t.MaxTouchPoints>0||t.msMaxTouchPoints>0),ws=(function(){var r=zi("div"),i=zi("div"),o=i.style,s=Yt,a;return o.display="inline-block",o.position="relative",r.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",r.appendChild(i),s.appendChild(r),a=i.offsetHeight+18>r.scrollHeight,s.removeChild(r),a})(),In=(function(r){for(var i=r.split(","),o=("onpointerdown"in ds?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in ds?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":r).split(","),s={},a=4;--a>-1;)s[i[a]]=o[a],s[o[a]]=i[a];try{xt.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){$c=1}}))}catch{}return s})("touchstart,touchmove,touchend,touchcancel"),Ee(rt,"touchcancel",Ni),Ee(ue,"touchmove",Ni),Yt&&Yt.addEventListener("touchstart",Ni),Ee(rt,"contextmenu",function(){for(var r in sn)sn[r].isPressed&&sn[r].endDrag()}),J=hs=Nc()}J?(vt=J.plugins.inertia,Lc=J.core.context||function(){},Ln=J.utils.checkPrefix,Bn=Ln(Bn),_s=Ln(_s),rr=J.utils.toArray,ms=J.core.getStyleSaver,Kc=!!Ln("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")},kh=(function(){function n(t){this._listeners={},this.target=t||this}var e=n.prototype;return e.addEventListener=function(r,i){var o=this._listeners[r]||(this._listeners[r]=[]);~o.indexOf(i)||o.push(i)},e.removeEventListener=function(r,i){var o=this._listeners[r],s=o&&o.indexOf(i);s>=0&&o.splice(s,1)},e.dispatchEvent=function(r){var i=this,o;return(this._listeners[r]||[]).forEach(function(s){return s.call(i,{type:r,target:i.target})===!1&&(o=!1)}),o},n})(),dn=(function(n){hh(e,n);function e(t,r){var i;i=n.call(this)||this,hs||bs(1),t=rr(t)[0],i.styles=ms&&ms(t,"transform,left,top"),vt||(vt=J.plugins.inertia),i.vars=r=Bc(r||{}),i.target=t,i.x=i.y=i.rotation=0,i.dragResistance=parseFloat(r.dragResistance)||0,i.edgeResistance=isNaN(r.edgeResistance)?1:parseFloat(r.edgeResistance)||0,i.lockAxis=r.lockAxis,i.autoScroll=r.autoScroll||0,i.lockedAxis=null,i.allowEventDefault=!!r.allowEventDefault,J.getProperty(t,"x");var o=(r.type||"x,y").toLowerCase(),s=~o.indexOf("x")||~o.indexOf("y"),a=o.indexOf("rotation")!==-1,c=a?"rotation":s?"x":"left",u=s?"y":"top",f=!!(~o.indexOf("x")||~o.indexOf("left")||o==="scroll"),d=!!(~o.indexOf("y")||~o.indexOf("top")||o==="scroll"),p=r.minimumMovement||2,l=Rc(i),g=rr(r.trigger||r.handle||t),h={},_=0,v=!1,b=r.autoScrollMarginTop||40,S=r.autoScrollMarginRight||40,P=r.autoScrollMarginBottom||40,m=r.autoScrollMarginLeft||40,w=r.clickableTest||Sh,T=0,C=t._gsap||J.core.getCache(t),M=Th(t),N=function(y,D){return parseFloat(C.get(t,y,D))},R=t.ownerDocument||rt,$,O,V,j,F,H,ie,ee,Q,U,Y,te,K,$e,De,At,he,bt,pt,nt,Ye,Xn,Le,oe,Jc,gt,St,Ts,Cs,eu,it,tu,Bi,ru=function(y){return dt(y),y.stopImmediatePropagation&&y.stopImmediatePropagation(),!1},Rt=function X(y){if(l.autoScroll&&l.isDragging&&(v||he)){var D=t,E=l.autoScroll*15,A,L,I,q,W,se,re,ae;for(v=!1,Xt.scrollTop=ue.pageYOffset!=null?ue.pageYOffset:R.documentElement.scrollTop!=null?R.documentElement.scrollTop:R.body.scrollTop,Xt.scrollLeft=ue.pageXOffset!=null?ue.pageXOffset:R.documentElement.scrollLeft!=null?R.documentElement.scrollLeft:R.body.scrollLeft,q=l.pointerX-Xt.scrollLeft,W=l.pointerY-Xt.scrollTop;D&&!L;)L=un(D.parentNode),A=L?Xt:D.parentNode,I=L?{bottom:Math.max(xt.clientHeight,ue.innerHeight||0),right:Math.max(xt.clientWidth,ue.innerWidth||0),left:0,top:0}:A.getBoundingClientRect(),se=re=0,d&&(ae=A._gsMaxScrollY-A.scrollTop,ae<0?re=ae:W>I.bottom-P&&ae?(v=!0,re=Math.min(ae,E*(1-Math.max(0,I.bottom-W)/P)|0)):W<I.top+b&&A.scrollTop&&(v=!0,re=-Math.min(A.scrollTop,E*(1-Math.max(0,W-I.top)/b)|0)),re&&(A.scrollTop+=re)),f&&(ae=A._gsMaxScrollX-A.scrollLeft,ae<0?se=ae:q>I.right-S&&ae?(v=!0,se=Math.min(ae,E*(1-Math.max(0,I.right-q)/S)|0)):q<I.left+m&&A.scrollLeft&&(v=!0,se=-Math.min(A.scrollLeft,E*(1-Math.max(0,q-I.left)/m)|0)),se&&(A.scrollLeft+=se)),L&&(se||re)&&(ue.scrollTo(A.scrollLeft,A.scrollTop),jn(l.pointerX+se,l.pointerY+re)),D=A}if(he){var be=l.x,We=l.y;a?(l.deltaX=be-parseFloat(C.rotation),l.rotation=be,C.rotation=be+"deg",C.renderTransform(1,C)):O?(d&&(l.deltaY=We-O.top(),O.top(We)),f&&(l.deltaX=be-O.left(),O.left(be))):s?(d&&(l.deltaY=We-parseFloat(C.y),C.y=We+"px"),f&&(l.deltaX=be-parseFloat(C.x),C.x=be+"px"),C.renderTransform(1,C)):(d&&(l.deltaY=We-parseFloat(t.style.top||0),t.style.top=We+"px"),f&&(l.deltaX=be-parseFloat(t.style.left||0),t.style.left=be+"px")),ee&&!y&&!Ts&&(Ts=!0,we(l,"drag","onDrag")===!1&&(f&&(l.x-=l.deltaX),d&&(l.y-=l.deltaY),X(!0)),Ts=!1)}he=!1},Rr=function(y,D){var E=l.x,A=l.y,L,I;t._gsap||(C=J.core.getCache(t)),C.uncache&&J.getProperty(t,"x"),s?(l.x=parseFloat(C.x),l.y=parseFloat(C.y)):a?l.x=l.rotation=parseFloat(C.rotation):O?(l.y=O.top(),l.x=O.left()):(l.y=parseFloat(t.style.top||(I=Wn(t))&&I.top)||0,l.x=parseFloat(t.style.left||(I||{}).left)||0),(pt||nt||Ye)&&!D&&(l.isDragging||l.isThrowing)&&(Ye&&(an.x=l.x,an.y=l.y,L=Ye(an),L.x!==l.x&&(l.x=L.x,he=!0),L.y!==l.y&&(l.y=L.y,he=!0)),pt&&(L=pt(l.x),L!==l.x&&(l.x=L,a&&(l.rotation=L),he=!0)),nt&&(L=nt(l.y),L!==l.y&&(l.y=L),he=!0)),he&&Rt(!0),y||(l.deltaX=l.x-E,l.deltaY=l.y-A,we(l,"throwupdate","onThrowUpdate"))},ks=function(y,D,E,A){return D==null&&(D=-Or),E==null&&(E=Or),nr(y)?function(L){var I=l.isPressed?1-l.edgeResistance:1;return y.call(l,(L>E?E+(L-E)*I:L<D?D+(L-D)*I:L)*A)*A}:Yn(y)?function(L){for(var I=y.length,q=0,W=Or,se,re;--I>-1;)se=y[I],re=se-L,re<0&&(re=-re),re<W&&se>=D&&se<=E&&(q=I,W=re);return y[q]}:isNaN(y)?function(L){return L}:function(){return y*A}},Dh=function(y,D,E,A,L,I,q){return I=I&&I<Or?I*I:Or,nr(y)?function(W){var se=l.isPressed?1-l.edgeResistance:1,re=W.x,ae=W.y,be,We,Ht;return W.x=re=re>E?E+(re-E)*se:re<D?D+(re-D)*se:re,W.y=ae=ae>L?L+(ae-L)*se:ae<A?A+(ae-A)*se:ae,be=y.call(l,W),be!==W&&(W.x=be.x,W.y=be.y),q!==1&&(W.x*=q,W.y*=q),I<Or&&(We=W.x-re,Ht=W.y-ae,We*We+Ht*Ht>I&&(W.x=re,W.y=ae)),W}:Yn(y)?function(W){for(var se=y.length,re=0,ae=Or,be,We,Ht,mt;--se>-1;)Ht=y[se],be=Ht.x-W.x,We=Ht.y-W.y,mt=be*be+We*We,mt<ae&&(re=se,ae=mt);return ae<=I?y[re]:W}:function(W){return W}},Ps=function(){var y,D,E,A;ie=!1,O?(O.calibrate(),l.minX=Y=-O.maxScrollLeft(),l.minY=K=-O.maxScrollTop(),l.maxX=U=l.maxY=te=0,ie=!0):r.bounds&&(y=qc(r.bounds,t.parentNode),a?(l.minX=Y=y.left,l.maxX=U=y.left+y.width,l.minY=K=l.maxY=te=0):!wt(r.bounds.maxX)||!wt(r.bounds.maxY)?(y=r.bounds,l.minX=Y=y.minX,l.minY=K=y.minY,l.maxX=U=y.maxX,l.maxY=te=y.maxY):(D=qc(t,t.parentNode),l.minX=Y=Math.round(N(c,"px")+y.left-D.left),l.minY=K=Math.round(N(u,"px")+y.top-D.top),l.maxX=U=Math.round(Y+(y.width-D.width)),l.maxY=te=Math.round(K+(y.height-D.height))),Y>U&&(l.minX=U,l.maxX=U=Y,Y=l.minX),K>te&&(l.minY=te,l.maxY=te=K,K=l.minY),a&&(l.minRotation=Y,l.maxRotation=U),ie=!0),r.liveSnap&&(E=r.liveSnap===!0?r.snap||{}:r.liveSnap,A=Yn(E)||nr(E),a?(pt=ks(A?E:E.rotation,Y,U,1),nt=null):E.points?Ye=Dh(A?E:E.points,Y,U,K,te,E.radius,O?-1:1):(f&&(pt=ks(A?E:E.x||E.left||E.scrollLeft,Y,U,O?-1:1)),d&&(nt=ks(A?E:E.y||E.top||E.scrollTop,K,te,O?-1:1))))},Ah=function(){l.isThrowing=!1,we(l,"throwcomplete","onThrowComplete")},Rh=function(){l.isThrowing=!1},Es=function(y,D){var E,A,L,I;y&&vt?(y===!0&&(E=r.snap||r.liveSnap||{},A=Yn(E)||nr(E),y={resistance:(r.throwResistance||r.resistance||1e3)/(a?10:1)},a?y.rotation=vs(l,A?E:E.rotation,U,Y,1,D):(f&&(y[c]=vs(l,A?E:E.points||E.x||E.left,U,Y,O?-1:1,D||l.lockedAxis==="x")),d&&(y[u]=vs(l,A?E:E.points||E.y||E.top,te,K,O?-1:1,D||l.lockedAxis==="y")),(E.points||Yn(E)&&Fn(E[0]))&&(y.linkedProps=c+","+u,y.radius=E.radius))),l.isThrowing=!0,I=isNaN(r.overshootTolerance)?r.edgeResistance===1?0:1-l.edgeResistance+.2:r.overshootTolerance,y.duration||(y.duration={max:Math.max(r.minDuration||0,"maxDuration"in r?r.maxDuration:2),min:isNaN(r.minDuration)?I===0||Fn(y)&&y.resistance>1e3?0:.5:r.minDuration,overshoot:I}),l.tween=L=J.to(O||t,{inertia:y,data:"_draggable",inherit:!1,onComplete:Ah,onInterrupt:Rh,onUpdate:r.fastMode?we:Rr,onUpdateParams:r.fastMode?[l,"onthrowupdate","onThrowUpdate"]:E&&E.radius?[!1,!0]:[]}),r.fastMode||(O&&(O._skip=!0),L.render(1e9,!0,!0),Rr(!0,!0),l.endX=l.x,l.endY=l.y,a&&(l.endRotation=l.x),L.play(0),Rr(!0,!0),O&&(O._skip=!1))):ie&&l.applyBounds()},nu=function(y){var D=oe,E;oe=Mr(t.parentNode,!0),y&&l.isPressed&&!oe.equals(D||new Er)&&(E=D.inverse().apply({x:V,y:j}),oe.apply(E,E),V=E.x,j=E.y),oe.equals(ph)&&(oe=null)},Yi=function(){var y=1-l.edgeResistance,D=M?cn(R):0,E=M?ln(R):0,A,L,I;s&&(C.x=N(c,"px")+"px",C.y=N(u,"px")+"px",C.renderTransform()),nu(!1),ht.x=l.pointerX-D,ht.y=l.pointerY-E,oe&&oe.apply(ht,ht),V=ht.x,j=ht.y,he&&(jn(l.pointerX,l.pointerY),Rt(!0)),tu=Mr(t),O?(Ps(),H=O.top(),F=O.left()):(Hn()?(Rr(!0,!0),Ps()):l.applyBounds(),a?(A=t.ownerSVGElement?[C.xOrigin-t.getBBox().x,C.yOrigin-t.getBBox().y]:(Wn(t)[_s]||"0 0").split(" "),At=l.rotationOrigin=Mr(t).apply({x:parseFloat(A[0])||0,y:parseFloat(A[1])||0}),Rr(!0,!0),L=l.pointerX-At.x-D,I=At.y-l.pointerY+E,F=l.x,H=l.y=Math.atan2(I,L)*zc):(H=N(u,"px"),F=N(c,"px"))),ie&&y&&(F>U?F=U+(F-U)/y:F<Y&&(F=Y-(Y-F)/y),a||(H>te?H=te+(H-te)/y:H<K&&(H=K-(K-H)/y))),l.startX=F=ir(F),l.startY=H=ir(H)},Hn=function(){return l.tween&&l.tween.isActive()},$h=function(){Wt.parentNode&&!Hn()&&!l.isDragging&&Wt.parentNode.removeChild(Wt)},Vn=function(y,D){var E;if(!$||l.isPressed||!y||(y.type==="mousedown"||y.type==="pointerdown")&&!D&&or()-T<30&&In[l.pointerEvent.type]){it&&y&&$&&dt(y);return}if(Jc=Hn(),Bi=!1,l.pointerEvent=y,In[y.type]?(Le=~y.type.indexOf("touch")?y.currentTarget||y.target:R,Ee(Le,"touchend",Tt),Ee(Le,"touchmove",$r),Ee(Le,"touchcancel",Tt),Ee(R,"touchstart",Vc)):(Le=null,Ee(R,"mousemove",$r)),St=null,(!Li||!Le)&&(Ee(R,"mouseup",Tt),y&&y.target&&Ee(y.target,"mouseup",Tt)),Xn=w.call(l,y.target)&&r.dragClickables===!1&&!D,Xn){Ee(y.target,"change",Tt),we(l,"pressInit","onPressInit"),we(l,"press","onPress"),Fi(g,!0),it=!1;return}if(gt=!Le||f===d||l.vars.allowNativeTouchScrolling===!1||l.vars.allowContextMenu&&y&&(y.ctrlKey||y.which>2)?!1:f?"y":"x",it=!gt&&!l.allowEventDefault,it&&(dt(y),Ee(ue,"touchforcechange",dt)),y.changedTouches?(y=$e=y.changedTouches[0],De=y.identifier):y.pointerId?De=y.pointerId:$e=De=null,Ii++,yh(Rt),j=l.pointerY=y.pageY,V=l.pointerX=y.pageX,we(l,"pressInit","onPressInit"),(gt||l.autoScroll)&&ys(t.parentNode),t.parentNode&&l.autoScroll&&!O&&!a&&t.parentNode._gsMaxScrollX&&!Wt.parentNode&&!t.getBBox&&(Wt.style.width=t.parentNode.scrollWidth+"px",t.parentNode.appendChild(Wt)),Yi(),l.tween&&l.tween.kill(),l.isThrowing=!1,J.killTweensOf(O||t,h,!0),O&&J.killTweensOf(t,{scrollTo:1},!0),l.tween=l.lockedAxis=null,(r.zIndexBoost||!a&&!O&&r.zIndexBoost!==!1)&&(t.style.zIndex=e.zIndex++),l.isPressed=!0,ee=!!(r.onDrag||l._listeners.drag),Q=!!(r.onMove||l._listeners.move),r.cursor!==!1||r.activeCursor)for(E=g.length;--E>-1;)J.set(g[E],{cursor:r.activeCursor||r.cursor||(zn==="grab"?"grabbing":zn)});we(l,"press","onPress")},$r=function(y){var D=y,E,A,L,I,q,W;if(!$||gs||!l.isPressed||!y){it&&y&&$&&dt(y);return}if(l.pointerEvent=y,E=y.changedTouches,E){if(y=E[0],y!==$e&&y.identifier!==De){for(I=E.length;--I>-1&&(y=E[I]).identifier!==De&&y.target!==t;);if(I<0)return}}else if(y.pointerId&&De&&y.pointerId!==De)return;if(Le&>&&!St&&(ht.x=y.pageX-(M?cn(R):0),ht.y=y.pageY-(M?ln(R):0),oe&&oe.apply(ht,ht),A=ht.x,L=ht.y,q=Math.abs(A-V),W=Math.abs(L-j),(q!==W&&(q>p||W>p)||Nn&>===St)&&(St=q>W&&f?"x":"y",gt&&St!==gt&&Ee(ue,"touchforcechange",dt),l.vars.lockAxisOnTouchScroll!==!1&&f&&d&&(l.lockedAxis=St==="x"?"y":"x",nr(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,D)),Nn&>===St))){Tt(D);return}!l.allowEventDefault&&(!gt||St&>!==St)&&D.cancelable!==!1?(dt(D),it=!0):it&&(it=!1),l.autoScroll&&(v=!0),jn(y.pageX,y.pageY,Q)},jn=function(y,D,E){var A=1-l.dragResistance,L=1-l.edgeResistance,I=l.pointerX,q=l.pointerY,W=H,se=l.x,re=l.y,ae=l.endX,be=l.endY,We=l.endRotation,Ht=he,mt,sr,Ie,Pe,Ms,Ct;l.pointerX=y,l.pointerY=D,M&&(y-=cn(R),D-=ln(R)),a?(Pe=Math.atan2(At.y-D,y-At.x)*zc,Ms=l.y-Pe,Ms>180?(H-=360,l.y=Pe):Ms<-180&&(H+=360,l.y=Pe),l.x!==F||Math.max(Math.abs(V-y),Math.abs(j-D))>p?(l.y=Pe,Ie=F+(H-Pe)*A):Ie=F):(oe&&(Ct=y*oe.a+D*oe.c+oe.e,D=y*oe.b+D*oe.d+oe.f,y=Ct),sr=D-j,mt=y-V,sr<p&&sr>-p&&(sr=0),mt<p&&mt>-p&&(mt=0),(l.lockAxis||l.lockedAxis)&&(mt||sr)&&(Ct=l.lockedAxis,Ct||(l.lockedAxis=Ct=f&&Math.abs(mt)>Math.abs(sr)?"y":d?"x":null,Ct&&nr(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,l.pointerEvent)),Ct==="y"?sr=0:Ct==="x"&&(mt=0)),Ie=ir(F+mt*A),Pe=ir(H+sr*A)),(pt||nt||Ye)&&(l.x!==Ie||l.y!==Pe&&!a)&&(Ye&&(an.x=Ie,an.y=Pe,Ct=Ye(an),Ie=ir(Ct.x),Pe=ir(Ct.y)),pt&&(Ie=ir(pt(Ie))),nt&&(Pe=ir(nt(Pe)))),ie&&(Ie>U?Ie=U+Math.round((Ie-U)*L):Ie<Y&&(Ie=Y+Math.round((Ie-Y)*L)),a||(Pe>te?Pe=Math.round(te+(Pe-te)*L):Pe<K&&(Pe=Math.round(K+(Pe-K)*L)))),(l.x!==Ie||l.y!==Pe&&!a)&&(a?(l.endRotation=l.x=l.endX=Ie,he=!0):(d&&(l.y=l.endY=Pe,he=!0),f&&(l.x=l.endX=Ie,he=!0)),!E||we(l,"move","onMove")!==!1?!l.isDragging&&l.isPressed&&(l.isDragging=Bi=!0,we(l,"dragstart","onDragStart")):(l.pointerX=I,l.pointerY=q,H=W,l.x=se,l.y=re,l.endX=ae,l.endY=be,l.endRotation=We,he=Ht))},Tt=function X(y,D){if(!$||!l.isPressed||y&&De!=null&&!D&&(y.pointerId&&y.pointerId!==De&&y.target!==t||y.changedTouches&&!vh(y.changedTouches,De))){it&&y&&$&&dt(y);return}l.isPressed=!1;var E=y,A=l.isDragging,L=l.vars.allowContextMenu&&y&&(y.ctrlKey||y.which>2),I=J.delayedCall(.001,$h),q,W,se,re,ae;if(Le?(ke(Le,"touchend",X),ke(Le,"touchmove",$r),ke(Le,"touchcancel",X),ke(R,"touchstart",Vc)):ke(R,"mousemove",$r),ke(ue,"touchforcechange",dt),(!Li||!Le)&&(ke(R,"mouseup",X),y&&y.target&&ke(y.target,"mouseup",X)),he=!1,A&&(_=Fc=or(),l.isDragging=!1),Hc(Rt),Xn&&!L){y&&(ke(y.target,"change",X),l.pointerEvent=E),Fi(g,!1),we(l,"release","onRelease"),we(l,"click","onClick"),Xn=!1;return}for(W=g.length;--W>-1;)xs(g[W],"cursor",r.cursor||(r.cursor!==!1?zn:null));if(Ii--,y){if(q=y.changedTouches,q&&(y=q[0],y!==$e&&y.identifier!==De)){for(W=q.length;--W>-1&&(y=q[W]).identifier!==De&&y.target!==t;);if(W<0&&!D)return}l.pointerEvent=E,l.pointerX=y.pageX,l.pointerY=y.pageY}return L&&E?(dt(E),it=!0,we(l,"release","onRelease")):E&&!A?(it=!1,Jc&&(r.snap||r.bounds)&&Es(r.inertia||r.throwProps),we(l,"release","onRelease"),(!Nn||E.type!=="touchmove")&&E.type.indexOf("cancel")===-1&&(we(l,"click","onClick"),or()-T<300&&we(l,"doubleclick","onDoubleClick"),re=E.target||t,T=or(),ae=function(){T!==Cs&&l.enabled()&&!l.isPressed&&!E.defaultPrevented&&(re.click?re.click():R.createEvent&&(se=R.createEvent("MouseEvents"),se.initMouseEvent("click",!0,!0,ue,1,l.pointerEvent.screenX,l.pointerEvent.screenY,l.pointerX,l.pointerY,!1,!1,!1,!1,0,null),re.dispatchEvent(se)))},!Nn&&!E.defaultPrevented&&J.delayedCall(.05,ae))):(Es(r.inertia||r.throwProps),!l.allowEventDefault&&E&&(r.dragClickables!==!1||!w.call(l,E.target))&&A&&(!gt||St&>===St)&&E.cancelable!==!1?(it=!0,dt(E)):it=!1,we(l,"release","onRelease")),Hn()&&I.duration(l.tween.duration()),A&&we(l,"dragend","onDragEnd"),!0},Wi=function(y){if(y&&l.isDragging&&!O){var D=y.target||t.parentNode,E=D.scrollLeft-D._gsScrollX,A=D.scrollTop-D._gsScrollY;(E||A)&&(oe?(V-=E*oe.a+A*oe.c,j-=A*oe.d+E*oe.b):(V-=E,j-=A),D._gsScrollX+=E,D._gsScrollY+=A,jn(l.pointerX,l.pointerY))}},iu=function(y){var D=or(),E=D-T<100,A=D-_<50,L=E&&Cs===T,I=l.pointerEvent&&l.pointerEvent.defaultPrevented,q=E&&eu===T,W=y.isTrusted||y.isTrusted==null&&E&&L;if((L||A&&l.vars.suppressClickOnDrag!==!1)&&y.stopImmediatePropagation&&y.stopImmediatePropagation(),E&&!(l.pointerEvent&&l.pointerEvent.defaultPrevented)&&(!L||W&&!q)){W&&L&&(eu=T),Cs=T;return}(l.isPressed||A||E)&&(!W||!y.detail||!E||I)&&dt(y),!E&&!A&&!Bi&&(y&&y.target&&(l.pointerEvent=y),we(l,"click","onClick"))},ou=function(y){return oe?{x:y.x*oe.a+y.y*oe.c+oe.e,y:y.x*oe.b+y.y*oe.d+oe.f}:{x:y.x,y:y.y}};return bt=e.get(t),bt&&bt.kill(),i.startDrag=function(X,y){var D,E,A,L;Vn(X||l.pointerEvent,!0),y&&!l.hitTest(X||l.pointerEvent)&&(D=fn(X||l.pointerEvent),E=fn(t),A=ou({x:D.left+D.width/2,y:D.top+D.height/2}),L=ou({x:E.left+E.width/2,y:E.top+E.height/2}),V-=A.x-L.x,j-=A.y-L.y),l.isDragging||(l.isDragging=Bi=!0,we(l,"dragstart","onDragStart"))},i.drag=$r,i.endDrag=function(X){return Tt(X||l.pointerEvent,!0)},i.timeSinceDrag=function(){return l.isDragging?0:(or()-_)/1e3},i.timeSinceClick=function(){return(or()-T)/1e3},i.hitTest=function(X,y){return e.hitTest(l.target,X,y)},i.getDirection=function(X,y){var D=X==="velocity"&&vt?X:Fn(X)&&!a?"element":"start",E,A,L,I,q,W;return D==="element"&&(q=fn(l.target),W=fn(X)),E=D==="start"?l.x-F:D==="velocity"?vt.getVelocity(t,c):q.left+q.width/2-(W.left+W.width/2),a?E<0?"counter-clockwise":"clockwise":(y=y||2,A=D==="start"?l.y-H:D==="velocity"?vt.getVelocity(t,u):q.top+q.height/2-(W.top+W.height/2),L=Math.abs(E/A),I=L<1/y?"":E<0?"left":"right",L<y&&(I!==""&&(I+="-"),I+=A<0?"up":"down"),I)},i.applyBounds=function(X,y){var D,E,A,L,I,q;if(X&&r.bounds!==X)return r.bounds=X,l.update(!0,y);if(Rr(!0),Ps(),ie&&!Hn()){if(D=l.x,E=l.y,D>U?D=U:D<Y&&(D=Y),E>te?E=te:E<K&&(E=K),(l.x!==D||l.y!==E)&&(A=!0,l.x=l.endX=D,a?l.endRotation=D:l.y=l.endY=E,he=!0,Rt(!0),l.autoScroll&&!l.isDragging))for(ys(t.parentNode),L=t,Xt.scrollTop=ue.pageYOffset!=null?ue.pageYOffset:R.documentElement.scrollTop!=null?R.documentElement.scrollTop:R.body.scrollTop,Xt.scrollLeft=ue.pageXOffset!=null?ue.pageXOffset:R.documentElement.scrollLeft!=null?R.documentElement.scrollLeft:R.body.scrollLeft;L&&!q;)q=un(L.parentNode),I=q?Xt:L.parentNode,d&&I.scrollTop>I._gsMaxScrollY&&(I.scrollTop=I._gsMaxScrollY),f&&I.scrollLeft>I._gsMaxScrollX&&(I.scrollLeft=I._gsMaxScrollX),L=I;l.isThrowing&&(A||l.endX>U||l.endX<Y||l.endY>te||l.endY<K)&&Es(r.inertia||r.throwProps,A)}return l},i.update=function(X,y,D){if(y&&l.isPressed){var E=Mr(t),A=tu.apply({x:l.x-F,y:l.y-H}),L=Mr(t.parentNode,!0);L.apply({x:E.e-A.x,y:E.f-A.y},A),l.x-=A.x-L.e,l.y-=A.y-L.f,Rt(!0),Yi()}var I=l.x,q=l.y;return nu(!y),X?l.applyBounds():(he&&D&&Rt(!0),Rr(!0)),y&&(jn(l.pointerX,l.pointerY),he&&Rt(!0)),l.isPressed&&!y&&(f&&Math.abs(I-l.x)>.01||d&&Math.abs(q-l.y)>.01&&!a)&&Yi(),l.autoScroll&&(ys(t.parentNode,l.isDragging),v=l.isDragging,Rt(!0),Uc(t,Wi),jc(t,Wi)),l},i.enable=function(X){var y={lazy:!0},D,E,A;if(r.cursor!==!1&&(y.cursor=r.cursor||zn),J.utils.checkPrefix("touchCallout")&&(y.touchCallout="none"),X!=="soft"){for(Yc(g,f===d?"none":r.allowNativeTouchScrolling&&t.scrollHeight===t.clientHeight==(t.scrollWidth===t.clientHeight)||r.allowEventDefault?"manipulation":f?"pan-y":"pan-x"),E=g.length;--E>-1;)A=g[E],Li||Ee(A,"mousedown",Vn),Ee(A,"touchstart",Vn),Ee(A,"click",iu,!0),J.set(A,y),A.getBBox&&A.ownerSVGElement&&f!==d&&J.set(A.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":f?"pan-y":"pan-x"}),r.allowContextMenu||Ee(A,"contextmenu",ru);Fi(g,!1)}return jc(t,Wi),$=!0,vt&&X!=="soft"&&vt.track(O||t,s?"x,y":a?"rotation":"top,left"),t._gsDragID=D=t._gsDragID||"d"+gh++,sn[D]=l,O&&(O.enable(),O.element._gsDragID=D),(r.bounds||a)&&Yi(),r.bounds&&l.applyBounds(),l},i.disable=function(X){for(var y=l.isDragging,D=g.length,E;--D>-1;)xs(g[D],"cursor",null);if(X!=="soft"){for(Yc(g,null),D=g.length;--D>-1;)E=g[D],xs(E,"touchCallout",null),ke(E,"mousedown",Vn),ke(E,"touchstart",Vn),ke(E,"click",iu,!0),ke(E,"contextmenu",ru);Fi(g,!0),Le&&(ke(Le,"touchcancel",Tt),ke(Le,"touchend",Tt),ke(Le,"touchmove",$r)),ke(R,"mouseup",Tt),ke(R,"mousemove",$r)}return Uc(t,Wi),$=!1,vt&&X!=="soft"&&(vt.untrack(O||t,s?"x,y":a?"rotation":"top,left"),l.tween&&l.tween.kill()),O&&O.disable(),Hc(Rt),l.isDragging=l.isPressed=Xn=!1,y&&we(l,"dragend","onDragEnd"),l},i.enabled=function(X,y){return arguments.length?X?l.enable(y):l.disable(y):$},i.kill=function(){return l.isThrowing=!1,l.tween&&l.tween.kill(),l.disable(),J.set(g,{clearProps:"userSelect"}),delete sn[t._gsDragID],l},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~o.indexOf("scroll")&&(O=i.scrollProxy=new Ch(t,_h({onKill:function(){l.isPressed&&Tt(null)}},r)),t.style.overflowY=d&&!ps?"auto":"hidden",t.style.overflowX=f&&!ps?"auto":"hidden",t=O.content),a?h.rotation=1:(f&&(h[c]=1),d&&(h[u]=1)),C.force3D="force3D"in r?r.force3D:!0,Lc(Rc(i)),i.enable(),i}return e.register=function(r){J=r,bs()},e.create=function(r,i){return hs||bs(!0),rr(r).map(function(o){return new e(o,i)})},e.get=function(r){return sn[(rr(r)[0]||{})._gsDragID]},e.timeSinceDrag=function(){return(or()-Fc)/1e3},e.hitTest=function(r,i,o){if(r===i)return!1;var s=fn(r),a=fn(i),c=s.top,u=s.left,f=s.right,d=s.bottom,p=s.width,l=s.height,g=a.left>f||a.right<u||a.top>d||a.bottom<c,h,_,v;return g||!o?!g:(v=(o+"").indexOf("%")!==-1,o=parseFloat(o)||0,h={left:Math.max(u,a.left),top:Math.max(c,a.top)},h.width=Math.min(f,a.right)-h.left,h.height=Math.min(d,a.bottom)-h.top,h.width<0||h.height<0?!1:v?(o*=.01,_=h.width*h.height,_>=p*l*o||_>=a.width*a.height*o):h.width>o&&h.height>o)},e})(kh);xh(dn.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),dn.zIndex=1e3,dn.version="3.13.0",Nc()&&J.registerPlugin(dn),B.registerPlugin(kr),B.registerPlugin(dn);const Ss=x.createContext({toasts:[],addToast:()=>{}}),Qc=({children:n,...e})=>{const t=x.useMemo(()=>({maxToastDisplay:3,durationInSeconds:5,closable:!0,placement:"top-right",Custom:void 0,...e.settings}),[e.settings]),[r,i]=x.useState([]),o=x.useCallback(a=>{i(c=>c.filter(u=>u.id!==a))},[]),s=x.useMemo(()=>({toasts:r,addToast:a=>{const c={id:`toast-${Date.now()}-${Math.random()}`,...a};i(u=>[...u,c])}}),[r]);return k.jsxs(Ss.Provider,{value:s,children:[n," ",k.jsx(Zc,{toasts:r,removeToast:o,settings:t})]})},Zc=({toasts:n,removeToast:e,settings:t})=>{const r=x.useRef(new Map),i=x.useRef(null),[o,s]=x.useState(!1),{isMobile:a}=nn(),c=x.useCallback(l=>{const g=r.current.get(l);if(g){B.killTweensOf(g);const h=t.placement.includes("left");B.to(g,{x:h?"-100%":"100%",opacity:0,duration:.4,ease:"power2.in",onComplete:()=>{e(l)}})}},[e,t.placement]);x.useEffect(()=>{const l=t.placement.includes("top"),g=t.placement.includes("left");n.forEach(h=>{const _=r.current.get(h.id);_&&!_.dataset.animatedIn&&(_.dataset.animatedIn="true",B.fromTo(_,{opacity:0,y:l?-100:100,x:g?-50:50},{opacity:1,y:0,x:0,duration:.5,ease:"power2.out",onComplete:()=>{const v=B.timeline({delay:h.duration||t.durationInSeconds,onComplete:()=>{B.to(_,{opacity:0,y:l?-50:50,duration:.3,ease:"power2.in",onComplete:()=>{e(h.id),r.current.delete(h.id)}})}});_.timeline=v}}))})},[n,e,t.durationInSeconds,t.placement]);const u=n.slice(-t.maxToastDisplay);kr(()=>{B.to(".toast-item",{marginBottom:l=>o||l===0?0:-48,transform:l=>l<Math.min(5,u.length-1)&&!o?`scale(${1-(Math.min(5,u.length-1)-l)*.05})`:"scale(1)",duration:.3,ease:"power2.out",stagger:.05})},{dependencies:[o,u],scope:i}),kr(()=>{const l=[],g=t.placement.includes("left");return u.forEach(h=>{const _=r.current.get(h.id);if(!_)return;const v=dn.create(_,{type:"x",edgeResistance:.9,bounds:g?{minX:-window.innerWidth,maxX:0}:{minX:0,maxX:window.innerWidth},onPress:function(){this.target.timeline&&this.target.timeline.pause()},onDrag:function(){B.set(this.target,{opacity:1-Math.abs(this.x)/Math.abs(g?this.minX:this.maxX)})},onDragEnd:function(){const b=_.offsetWidth*.1;(g?this.x<-b:this.x>b)?B.to(this.target,{x:g?"-100%":"100%",opacity:0,duration:.3,ease:"power2.in",onComplete:()=>{e(h.id)}}):(B.to(this.target,{x:0,opacity:1,duration:.4,ease:"elastic.out(1, 0.75)"}),this.target.timeline&&this.target.timeline.resume())}});l.push(v[0])}),()=>{l.forEach(h=>h.kill())}},{dependencies:[n,t.placement],scope:i}),x.useEffect(()=>{u.length===0&&o&&s(!1)},[u,o]);const f=t.placement.includes("top"),d=t.placement.includes("left"),p={position:"fixed",...f?{top:a?"16px":"8px"}:{bottom:a?"16px":"8px"},...d?{left:a?"16px":"8px"}:{right:a?"16px":"8px"},zIndex:99999};return k.jsx(de,{ref:i,gap:.5,direction:"column-reverse",style:p,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:u.map((l,g)=>{const{id:h,..._}=l;return t.Custom?k.jsx("div",{className:"toast-item",ref:v=>{v&&r.current.set(h,v)},style:{position:"relative",zIndex:g,marginBottom:g>0?"-48px":"0",transform:g<Math.min(5,u.length-1)?`scale(${1-(Math.min(5,u.length-1)-g)*.05})`:"scale(1)"},children:k.jsx(t.Custom,{onClose:t.closable?()=>c(h):void 0,..._})},h):k.jsx(ss,{className:"toast-item",onClose:t.closable?()=>c(h):void 0,ref:v=>{v&&r.current.set(h,v)},..._,style:{position:"relative",zIndex:g,marginBottom:g>0?"-48px":"0",transform:g<Math.min(5,u.length-1)?`scale(${1-(Math.min(5,u.length-1)-g)*.05})`:"scale(1)"}},h)})})},Ph=()=>x.useContext(rn),Eh=()=>{const{addToast:n}=x.useContext(Ss);return{addToast:n}},Mh=({children:n})=>{const{theme:e}=x.useContext(rn);return k.jsx(Dd,{theme:e,children:n})},Oh=({children:n,themes:e,settings:t})=>k.jsx(Jl,{themes:e,autoContrast:t?.autoContrast,children:k.jsx(Mh,{children:k.jsxs(Qc,{settings:t?.toasts,children:[k.jsx("div",{id:"modal"}),n]})})});z.BellIcon=tc,z.Button=Oi,z.CheckIcon=Ei,z.Checkbox=hc,z.Chip=pc,z.CopyIcon=rc,z.Divider=mc,z.DotsIcon=nc,z.ExampleIcon=Cf,z.Flex=de,z.HamburgerIcon=ic,z.HeartIcon=oc,z.Image=_c,z.Input=yc,z.KEYPOP=ll,z.Modal=Sc,z.OpenUIProvider=Oh,z.Popover=Tc,z.ProgressBar=Zd,z.Select=kc,z.SendHorizontalIcon=sc,z.Skeleton=th,z.SparklesIcon=ac,z.Switch=rh,z.SyncIcon=lc,z.THEME=cl,z.Text=Re,z.TextArea=Pc,z.ThemeContext=rn,z.ThemeContextProvider=Jl,z.Title=xc,z.Toast=ss,z.ToastContext=Ss,z.ToastContextProvider=Qc,z.ToastProvider=Zc,z.Tooltip=Ec,z.breakpoints=Mi,z.createTheme=al,z.generateColorPalette=sl,z.getColorBasedOnBackground=Pi,z.getPalette=_r,z.hexToRgb=rl,z.hslToRgb=No,z.isColorPalette=el,z.parseColorToRgb=ol,z.parseHslString=il,z.parseRgbString=nl,z.radiusMap=ct,z.rgbToHex=zo,z.rgbToHsl=tl,z.useAutoContrast=ki,z.useResponsive=nn,z.useTheme=Ph,z.useToast=Eh,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
|