@julien-wiegandt/open-ui 0.3.9 → 0.3.11

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.
@@ -1,31 +1,31 @@
1
- (function(B,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):(B=typeof globalThis<"u"?globalThis:B||self,k(B["open-ui"]={},B.jsxRuntime,B.React,B.ReactDOM))})(this,(function(B,k,y,Kn){"use strict";function Rt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Is(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*!
1
+ (function(B,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],T):(B=typeof globalThis<"u"?globalThis:B||self,T(B["open-ui"]={},B.jsxRuntime,B.React,B.ReactDOM))})(this,(function(B,T,_,Kn){"use strict";function It(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Is(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:""}},zr={duration:.5,overwrite:!1,delay:0},qi,Le,ge,st=1e8,le=1/st,Gi=Math.PI*2,du=Gi/4,hu=0,Ls=Math.sqrt,pu=Math.cos,gu=Math.sin,Oe=function(e){return typeof e=="string"},ye=function(e){return typeof e=="function"},It=function(e){return typeof e=="number"},Ki=function(e){return typeof e>"u"},kt=function(e){return typeof e=="object"},Ve=function(e){return e!==!1},Qi=function(){return typeof window<"u"},Qn=function(e){return ye(e)||Oe(e)},zs=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Fe=Array.isArray,Zi=/(?:-?\.?\d|\.)+/gi,Ns=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Nr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ji=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Fs=/[+-]=-?[.\d]+/,Bs=/[^,'"\[\]\s]+/gi,mu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,me,Pt,eo,to,Ze={},Zn={},Ws,Ys=function(e){return(Zn=Br(e,Ze))&&Ge},ro=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},pn=function(e,t){return!t&&console.warn(e)},Hs=function(e,t){return e&&(Ze[e]=t)&&Zn&&(Zn[e]=t)||Ze},gn=function(){return 0},_u={suppressEvents:!0,isStart:!0,kill:!1},Jn={suppressEvents:!0,kill:!1},yu={suppressEvents:!0},no={},Xt=[],io={},js,Je={},oo={},Xs=30,ei=[],so="",ao=function(e){var t=e[0],r,i;if(kt(t)||ye(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=ei.length;i--&&!ei[i].targetTest(t););r=ei[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new wa(e[i],r)))||e.splice(i,1);return e},ar=function(e){return e._gsap||ao(lt(e))[0]._gsap},Vs=function(e,t,r){return(r=e[t])&&ye(r)?e[t]():Ki(r)&&e.getAttribute&&e.getAttribute(t)||r},Ue=function(e,t){return(e=e.split(",")).forEach(t)||e},xe=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},xu=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++i<r;);return i<r},ti=function(){var e=Xt.length,t=Xt.slice(0),r,i;for(io={},Xt.length=0,r=0;r<e;r++)i=t[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},lo=function(e){return!!(e._initted||e._startAt||e.add)},Us=function(e,t,r,i){Xt.length&&!Le&&ti(),e.render(t,r,!!(Le&&t<0&&lo(e))),Xt.length&&!Le&&ti()},qs=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(Bs).length<2?t:Oe(e)?e.trim():e},Gs=function(e){return e},et=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},wu=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},Ks=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},ri=function(e,t){var r={},i;for(i in e)i in t||(r[i]=e[i]);return r},mn=function(e){var t=e.parent||me,r=e.keyframes?wu(Fe(e.keyframes)):et;if(Ve(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},vu=function(e,t){for(var r=e.length,i=r===t.length;i&&r--&&e[r]===t[r];);return r<0},Qs=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},ni=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},Vt=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},bu=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},co=function(e,t,r,i){return e._startAt&&(Le?e._startAt.revert(Jn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},Su=function n(e){return!e||e._ts&&n(e.parent)},Zs=function(e){return e._repeat?Wr(e._tTime,e=e.duration()+e._rDelay)*e:0},Wr=function(e,t){var r=Math.floor(e=Se(e/t));return e&&r===e?r-1:r},ii=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},oi=function(e){return e._end=Se(e._start+(e._tDur/Math.abs(e._ts||e._rts||le)||0))},si=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)),oi(e),r._dirty||lr(r,e)),e},Js=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=ii(e.rawTime(),t),(!t._dur||yn(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&&Vt(t),t._start=Se((It(r)?r:r||e!==me?at(e,r,t):e._time)+t._delay),t._end=Se(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Qs(e,t,"_first","_last",e._sort?"_start":0),uo(t)||(e._recent=t),i||Js(e,t),e._ts<0&&si(e,e._tTime),e},ea=function(e,t){return(Ze.ScrollTrigger||ro("scrollTrigger",t))&&Ze.ScrollTrigger.create(t,e)},ta=function(e,t,r,i,o){if(wo(e,t,o),!e._initted)return 1;if(!r&&e._pt&&!Le&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&js!==rt.frame)return Xt.push(e),e._lazy=[o,i],1},Cu=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},uo=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Tu=function(e,t,r,i){var o=e.ratio,s=t<0||!t&&(!e._start&&Cu(e)&&!(!e._initted&&uo(e))||(e._ts<0||e._dp._ts<0)&&!uo(e))?0:1,a=e._rDelay,c=0,u,f,d;if(a&&e._repeat&&(c=yn(0,e._tDur,t),f=Wr(c,a),e._yoyo&&f&1&&(s=1-s),f!==Wr(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||Le||i||e._zTime===le||!t&&e._zTime){if(!e._initted&&ta(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&&co(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&&Vt(e,1),!r&&!Le&&(tt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},ku=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}},Yr=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&&si(e,e._tTime=e._tDur*a),e.parent&&oi(e),r||lr(e.parent,e),e},ra=function(e){return e instanceof je?lr(e):Yr(e,e._dur)},Pu={_start:0,endTime:gn,totalDuration:gn},at=function n(e,t,r){var i=e.labels,o=e._recent||Pu,s=e.duration()>=st?o.endTime(!1):e._dur,a,c,u;return Oe(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*(Fe(r)?r[0]:r).totalDuration()),a>1?n(e,t.substr(0,a-1),r)+c:s+c)):t==null?s:+t},_n=function(e,t,r){var i=It(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=Ve(c.vars.inherit)&&c.parent;s.immediateRender=Ve(a.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new Ce(t[0],s,t[o+1])},Ut=function(e,t){return e||e===0?t(e):t},yn=function(e,t,r){return r<e?e:r>t?t:r},Be=function(e,t){return!Oe(e)||!(t=mu.exec(e))?"":t[1]},Eu=function(e,t,r){return Ut(r,function(i){return yn(e,t,i)})},fo=[].slice,na=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},Mu=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return Oe(i)&&!t||na(i,1)?(o=r).push.apply(o,lt(i)):r.push(i)})||r},lt=function(e,t,r){return ge&&!t&&ge.selector?ge.selector(e):Oe(e)&&!r&&(eo||!jr())?fo.call((t||to).querySelectorAll(e),0):Fe(e)?Mu(e,r):na(e)?fo.call(e,0):e?[e]:[]},ho=function(e){return e=lt(e)[0]||pn("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return lt(t,r.querySelectorAll?r:r===e?pn("Invalid scope")||to.createElement("div"):e)}},ia=function(e){return e.sort(function(){return .5-Math.random()})},oa=function(e){if(ye(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 Oe(i)?f=d={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(f=i[0],d=i[1]),function(h,l,g){var p=(g||t).length,_=s[p],w,S,b,P,m,v,C,T,M;if(!_){if(M=t.grid==="auto"?0:(t.grid||[1,st])[1],!M){for(C=-st;C<(C=g[M++].getBoundingClientRect().left)&&M<p;);M<p&&M--}for(_=s[p]=[],w=c?Math.min(M,p)*f-.5:i%M,S=M===st?0:c?p*d/M-.5:i/M|0,C=0,T=st,v=0;v<p;v++)b=v%M-w,P=S-(v/M|0),_[v]=m=u?Math.abs(u==="y"?P:b):Ls(b*b+P*P),m>C&&(C=m),m<T&&(T=m);i==="random"&&ia(_),_.max=C-T,_.min=T,_.v=p=(parseFloat(t.amount)||parseFloat(t.each)*(M>p?p-1:u?u==="y"?p/M:M:Math.max(M,p/M))||0)*(i==="edges"?-1:1),_.b=p<0?o-p:o,_.u=Be(t.amount||t.each)||0,r=r&&p<0?_a(r):r}return p=(_[h]-_.min)/_.max||0,Se(_.b+(r?r(p):p)*_.v)+_.u}},po=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+(It(r)?0:Be(r))}},sa=function(e,t){var r=Fe(e),i,o;return!r&&kt(e)&&(i=r=e.radius||st,e.values?(e=lt(e.values),(o=!It(e[0]))&&(i*=i)):e=po(e.increment)),Ut(t,r?ye(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=st,f=0,d=e.length,h,l;d--;)o?(h=e[d].x-a,l=e[d].y-c,h=h*h+l*l):h=Math.abs(e[d]-a),h<u&&(u=h,f=d);return f=!i||u<=i?e[f]:s,o||f===s||It(s)?f:f+Be(s)}:po(e))},aa=function(e,t,r,i){return Ut(Fe(e)?!t:r===!0?!!(r=0):!i,function(){return Fe(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})},Ou=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)}},Du=function(e,t){return function(r){return e(parseFloat(r))+(t||Be(r))}},Au=function(e,t,r){return ca(e,t,0,1,r)},la=function(e,t,r){return Ut(r,function(i){return e[~~t(i)]})},$u=function n(e,t,r){var i=t-e;return Fe(e)?la(e,n(0,e.length),t):Ut(r,function(o){return(i+(o-e)%i)%i+e})},Ru=function n(e,t,r){var i=t-e,o=i*2;return Fe(e)?la(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)})},xn=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?Bs:Zi),r+=e.substr(t,i-t)+aa(a?o:+o[0],a?0:+o[1],+o[2]||1e-5),t=s+1;return r+e.substr(t,e.length-t)},ca=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)})},Iu=function n(e,t,r,i){var o=isNaN(e+t)?0:function(l){return(1-l)*e+l*t};if(!o){var s=Oe(e),a={},c,u,f,d,h;if(r===!0&&(i=1)&&(r=null),s)e={p:e},t={p:t};else if(Fe(e)&&!Fe(t)){for(f=[],d=e.length,h=d-2,u=1;u<d;u++)f.push(n(e[u-1],e[u]));d--,o=function(g){g*=d;var p=Math.min(h,~~g);return f[p](g-p)},r=t}else i||(e=Br(Fe(e)?[]:{},e));if(!f){for(c in t)yo.call(a,e,c,"get",t[c]);o=function(g){return So(g,a)||(s?e.p:e)}}}return Ut(r,o)},ua=function(e,t,r){var i=e.labels,o=st,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=ge,a=e._ctx,c,u,f;if(o)return c=i[t+"Params"],u=i.callbackScope||e,r&&Xt.length&&ti(),a&&(ge=a),f=c?o.apply(u,c):o.call(u),ge=s,f},wn=function(e){return Vt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Le),e.progress()<1&&tt(e,"onInterrupt"),e},Hr,fa=[],da=function(e){if(e)if(e=!e.name&&e.default||e,Qi()||e.headless){var t=e.name,r=ye(e),i=t&&!r&&e.init?function(){this._props=[]}:e,o={init:gn,render:So,add:yo,kill:Qu,modifier:Ku,rawVars:0},s={targetTest:0,get:0,getSetter:bo,aliases:{},register:0};if(jr(),e!==i){if(Je[t])return;et(i,et(ri(e,o),s)),Br(i.prototype,Br(o,ri(e,s))),Je[i.prop=t]=i,e.targetTest&&(ei.push(i),no[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Hs(t,i),e.register&&e.register(Ge,i,qe)}else fa.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]},go=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},ha=function(e,t,r){var i=e?It(e)?[e>>16,e>>8&ce,e&ce]:0:vn.black,o,s,a,c,u,f,d,h,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(Zi),!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]=go(c+1/3,o,s),i[1]=go(c,o,s),i[2]=go(c-1/3,o,s);else if(~e.indexOf("="))return i=e.match(Ns),r&&i.length<4&&(i[3]=1),i}else i=e.match(Zi)||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),h=Math.min(o,s,a),f=(d+h)/2,d===h?c=u=0:(l=d-h,u=f>.5?l/(2-d-h):l/(d+h),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},pa=function(e){var t=[],r=[],i=-1;return e.split(qt).forEach(function(o){var s=o.match(Nr)||[];t.push.apply(t,s),r.push(i+=s.length+1)}),t.c=r,t},ga=function(e,t,r){var i="",o=(e+i).match(qt),s=t?"hsla(":"rgba(",a=0,c,u,f,d;if(!o)return e;if(o=o.map(function(h){return(h=ha(h,t,1))&&s+(t?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),r&&(f=pa(e),c=r.c,c.join(i)!==f.c.join(i)))for(u=e.replace(qt,"1").split(Nr),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(qt),d=u.length-1;a<d;a++)i+=u[a]+o[a];return i+u[d]},qt=(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")})(),Lu=/hsl[a]?\(/,ma=function(e){var t=e.join(" "),r;if(qt.lastIndex=0,qt.test(t))return r=Lu.test(t),e[1]=ga(e[1],r),e[0]=ga(e[0],r,pa(e[1])),!0},bn,rt=(function(){var n=Date.now,e=500,t=33,r=n(),i=r,o=1e3/240,s=o,a=[],c,u,f,d,h,l,g=function p(_){var w=n()-i,S=_===!0,b,P,m,v;if((w>e||w<0)&&(r+=w-t),i+=w,m=i-r,b=m-s,(b>0||S)&&(v=++d.frame,h=m-d.time*1e3,d.time=m=m/1e3,s+=b+(b>=o?4:o-b),P=1),S||(c=u(p)),P)for(l=0;l<a.length;l++)a[l](m,h,v,_)};return d={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(_){return h/(1e3/(_||60))},wake:function(){Ws&&(!eo&&Qi()&&(Pt=eo=window,to=Pt.document||{},Ze.gsap=Ge,(Pt.gsapVersions||(Pt.gsapVersions=[])).push(Ge.version),Ys(Zn||Pt.GreenSockGlobals||!Pt.gsap&&Pt||{}),fa.forEach(da)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&d.sleep(),u=f||function(_){return setTimeout(_,s-d.time*1e3+1|0)},bn=1,g(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(c),bn=0,u=gn},lagSmoothing:function(_,w){e=_||1/0,t=Math.min(w||33,e)},fps:function(_){o=1e3/(_||240),s=d.time*1e3+o},add:function(_,w,S){var b=w?function(P,m,v,C){_(P,m,v,C),d.remove(b)}:_;return d.remove(_),a[S?"unshift":"push"](b),jr(),b},remove:function(_,w){~(w=a.indexOf(_))&&a.splice(w,1)&&l>=w&&l--},_listeners:a},d})(),jr=function(){return!bn&&rt.wake()},te={},zu=/^[\d.\-M][\d.\-,\s]/,Nu=/["']/g,Fu=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(Nu,"").trim():+u,i=c.substr(a+1).trim();return t},Bu=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)},Wu=function(e){var t=(e+"").split("("),r=te[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Fu(t[1])]:Bu(e).split(",").map(qs)):te._CE&&zu.test(e)?te._CE("",e):r},_a=function(e){return function(t){return 1-e(1-t)}},ya=function n(e,t){for(var r=e._first,i;r;)r instanceof je?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&&(ye(e)?e:te[e]||Wu(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 Ue(e,function(a){te[a]=Ze[a]=o,te[s=a.toLowerCase()]=r;for(var c in o)te[s+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=te[a+"."+c]=o[c]}),o},xa=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},mo=function n(e,t,r){var i=t>=1?t:1,o=(r||(e?.3:.45))/(t<1?t:1),s=o/Gi*(Math.asin(1/i)||0),a=function(f){return f===1?1:i*Math.pow(2,-10*f)*gu((f-s)*o)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:xa(a);return o=Gi/o,c.config=function(u,f){return n(e,u,f)},c},_o=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)}:xa(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;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})}),te.Linear.easeNone=te.none=te.Linear.easeIn,ur("Elastic",mo("in"),mo("out"),mo()),(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-(Ls(1-n*n)-1)}),ur("Sine",function(n){return n===1?1:-pu(n*du)+1}),ur("Back",_o("in"),_o("out"),_o()),te.SteppedEase=te.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*yn(0,s,a)|0)+o)*r}}},zr.ease=te["quad.out"],Ue("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return so+=n+","+n+"Params,"});var wa=function(e,t){this.id=hu++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Vs,this.set=t?t.getSetter:bo},Sn=(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,Yr(this,+t.duration,1,1),this.data=t.data,ge&&(this._ctx=ge,ge.data.push(this)),bn||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,Yr(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(jr(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(si(this,r),!o._dp||o.parent||Js(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),Us(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Zs(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)+Zs(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?Wr(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?ii(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-le?0:this._rts,this.totalTime(yn(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),oi(this),bu(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):(jr(),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+(Ve(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?ii(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=yu);var i=Le;return Le=r,lo(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Le=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,ra(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,ra(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(at(this,r),Ve(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Ve(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=ye(r)?r:Gs,a=function(){var u=i.then;i.then=null,ye(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(Sn.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 je=(function(n){Is(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=Ve(r.sortChildren),me&&Et(r.parent||me,Rt(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&ea(Rt(o),r.scrollTrigger),o}var t=e.prototype;return t.to=function(i,o,s){return _n(0,arguments,this),this},t.from=function(i,o,s){return _n(1,arguments,this),this},t.fromTo=function(i,o,s,a){return _n(2,arguments,this),this},t.set=function(i,o,s){return o.duration=0,o.parent=this,mn(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new Ce(i,o,at(this,s),1),this},t.call=function(i,o,s){return Et(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,at(this,c)),this},t.staggerFrom=function(i,o,s,a,c,u,f){return s.runBackwards=1,mn(s).immediateRender=Ve(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,mn(a).immediateRender=Ve(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),h,l,g,p,_,w,S,b,P,m,v,C;if(this!==me&&f>c&&i>=0&&(f=c),f!==this._tTime||s||d){if(a!==this._time&&u&&(f+=this._time-a,i+=this._time-a),h=f,P=this._start,b=this._ts,w=!b,d&&(u||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(v=this._yoyo,_=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(_*100+i,o,s);if(h=Se(f%_),f===c?(p=this._repeat,h=u):(m=Se(f/_),p=~~m,p&&p===m&&(h=u,p--),h>u&&(h=u)),m=Wr(this._tTime,_),!a&&this._tTime&&m!==p&&this._tTime-m*_-this._dur<=0&&(m=p),v&&p&1&&(h=u-h,C=1),p!==m&&!this._lock){var T=v&&m&1,M=T===(v&&p&1);if(p<m&&(T=!T),a=T?0:f%u?u:f,this._lock=1,this.render(a||(C?0:Se(p*_)),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||w!==!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&&!w)return this;ya(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(S=ku(this,Se(a),Se(h)),S&&(f-=h-(h=S._start))),this._tTime=f,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&f&&!o&&!m&&(tt(this,"onStart"),this._tTime!==f))return this;if(h>=a&&i>=0)for(l=this._first;l;){if(g=l._next,(l._act||h>=l._start)&&l._ts&&S!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(h-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(h-l._start)*l._ts,o,s),h!==this._time||!this._ts&&!w){S=0,g&&(f+=this._zTime=-le);break}}l=g}else{l=this._last;for(var W=i<0?i:h;l;){if(g=l._prev,(l._act||W<=l._end)&&l._ts&&S!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(W-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(W-l._start)*l._ts,o,s||Le&&lo(l)),h!==this._time||!this._ts&&!w){S=0,g&&(f+=this._zTime=W?-le:le);break}}l=g}}if(S&&!o&&(this.pause(),S.render(h>=a?0:-le)._zTime=h>=a?1:-1,this._ts))return this._start=P,oi(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(b)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===c&&this._ts>0||!f&&this._ts<0)&&Vt(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(It(o)||(o=at(this,o,i)),!(i instanceof Sn)){if(Fe(i))return i.forEach(function(a){return s.add(a,o)}),this;if(Oe(i))return this.addLabel(i,o);if(ye(i))i=Ce.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=-st);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 Oe(i)?this.removeLabel(i):ye(i)?this.killTweensOf(i):(i.parent===this&&ni(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(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]=at(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||gn,s);return a.data="isPause",this._hasPause=1,Et(this,a,at(this,i))},t.removePause=function(i){var o=this._first;for(i=at(this,i);o;)o._start===i&&o.data==="isPause"&&Vt(o),o=o._next},t.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),c=a.length;c--;)Gt!==a[c]&&a[c].kill(i,o);return this},t.getTweensOf=function(i,o){for(var s=[],a=lt(i),c=this._first,u=It(o),f;c;)c instanceof Ce?xu(c._targets,a)&&(u?(!Gt||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=at(s,i),c=o,u=c.startAt,f=c.onStart,d=c.onStartParams,h=c.immediateRender,l,g=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 _=o.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());g._dur!==_&&Yr(g,_,0,1).render(g._time,!0,!0),l=1}f&&f.apply(g,d||[])}},o));return h?g.render(0):g},t.tweenFromTo=function(i,o,s){return this.tweenTo(o,et({startAt:{time:at(this,i)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),ua(this,at(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),ua(this,at(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=st,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;Yr(s,s===me&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(me._ts&&(Us(me,ii(i,me)),js=rt.frame),rt.frame>=Xs){Xs+=Qe.autoSleep||120;var o=me._first;if((!o||!o._ts)&&Qe.autoSleep&&rt._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||rt.sleep()}}},e})(Sn);et(je.prototype,{_lock:0,_hasPause:0,_forcing:0});var Yu=function(e,t,r,i,o,s,a){var c=new qe(this._pt,e,t,0,1,ka,null,o),u=0,f=0,d,h,l,g,p,_,w,S;for(c.b=r,c.e=i,r+="",i+="",(w=~i.indexOf("random("))&&(i=xn(i)),s&&(S=[r,i],s(S,e,t),r=S[0],i=S[1]),h=r.match(Ji)||[];d=Ji.exec(i);)g=d[0],p=i.substring(u,d.index),l?l=(l+1)%5:p.substr(-5)==="rgba("&&(l=1),g!==h[f++]&&(_=parseFloat(h[f-1])||0,c._pt={_next:c._pt,p:p||f===1?p:",",s:_,c:g.charAt(1)==="="?Fr(_,g)-_:parseFloat(g)-_,m:l&&l<4?Math.round:0},u=Ji.lastIndex);return c.c=u<i.length?i.substring(u,i.length):"",c.fp=a,(Fs.test(i)||w)&&(c.e=0),this._pt=c,c},yo=function(e,t,r,i,o,s,a,c,u,f){ye(i)&&(i=i(o||0,e,s));var d=e[t],h=r!=="get"?r:ye(d)?u?e[t.indexOf("set")||!ye(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():d,l=ye(d)?u?Uu:Ca:vo,g;if(Oe(i)&&(~i.indexOf("random(")&&(i=xn(i)),i.charAt(1)==="="&&(g=Fr(h,i)+(Be(h)||0),(g||g===0)&&(i=g))),!f||h!==i||xo)return!isNaN(h*i)&&i!==""?(g=new qe(this._pt,e,t,+h||0,i-(h||0),typeof d=="boolean"?Gu:Ta,0,l),u&&(g.fp=u),a&&g.modifier(a,this,e),this._pt=g):(!d&&!(t in e)&&ro(t,i),Yu.call(this,e,t,h,i,l,c||Qe.stringFilter,u))},Hu=function(e,t,r,i,o){if(ye(e)&&(e=Cn(e,o,t,r,i)),!kt(e)||e.style&&e.nodeType||Fe(e)||zs(e))return Oe(e)?Cn(e,o,t,r,i):e;var s={},a;for(a in e)s[a]=Cn(e[a],o,t,r,i);return s},va=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]:Hu(t[e],i,o,s,r),r,i,s)!==!1&&(r._pt=c=new qe(r._pt,o,e,0,1,a.render,a,0,a.priority),r!==Hr))for(u=r._ptLookup[r._targets.indexOf(o)],f=a._props.length;f--;)u[a._props[f]]=c;return a},Gt,xo,wo=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,h=i.keyframes,l=i.autoRevert,g=e._dur,p=e._startAt,_=e._targets,w=e.parent,S=w&&w.data==="nested"?w.vars.targets:_,b=e._overwrite==="auto"&&!qi,P=e.timeline,m,v,C,T,M,W,I,z,O,R,$,N,H;if(P&&(!h||!o)&&(o="none"),e._ease=cr(o,zr.ease),e._yEase=d?_a(cr(d===!0?o:d,zr.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!P&&!!i.runBackwards,!P||h&&!i.stagger){if(z=_[0]?ar(_[0]).harness:0,N=z&&i[z.prop],m=ri(i,no),p&&(p._zTime<0&&p.progress(1),t<0&&f&&a&&!l?p.render(-1,!0):p.revert(f&&g?Jn:_u),p._lazy=0),s){if(Vt(e._startAt=Ce.set(_,et({data:"isStart",overwrite:!1,parent:w,immediateRender:!0,lazy:!p&&Ve(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&&(Le||!a&&!l)&&e._startAt.revert(Jn),a&&g&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(f&&g&&!p){if(t&&(a=!1),C=et({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Ve(c),immediateRender:a,stagger:0,parent:w},m),N&&(C[z.prop]=N),Vt(e._startAt=Ce.set(_,C)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Le?e._startAt.revert(Jn):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&&Ve(c)||c&&!g,v=0;v<_.length;v++){if(M=_[v],I=M._gsap||ao(_)[v]._gsap,e._ptLookup[v]=R={},io[I.id]&&Xt.length&&ti(),$=S===_?v:S.indexOf(M),z&&(O=new z).init(M,N||m,e,$,S)!==!1&&(e._pt=T=new qe(e._pt,M,O.name,0,1,O.render,O,0,O.priority),O._props.forEach(function(ee){R[ee]=T}),O.priority&&(W=1)),!z||N)for(C in m)Je[C]&&(O=va(C,m,e,$,M,S))?O.priority&&(W=1):R[C]=T=yo.call(e,M,C,"get",m[C],$,S,0,i.stringFilter);e._op&&e._op[v]&&e.kill(M,e._op[v]),b&&e._pt&&(Gt=e,me.killTweensOf(M,R,e.globalTime(t)),H=!e.parent,Gt=0),e._pt&&c&&(io[I.id]=1)}W&&Pa(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!H,h&&t<=0&&P.render(st,!0,!0)},ju=function(e,t,r,i,o,s,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],f,d,h,l;if(!u)for(u=e._ptCache[t]=[],h=e._ptLookup,l=e._targets.length;l--;){if(f=h[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 xo=1,e.vars[t]="+=0",wo(e,a),xo=0,c?pn(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=xe(r)+Be(d.e)),d.b&&(d.b=f.s+Be(d.b))},Xu=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=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},Vu=function(e,t,r,i){var o=t.ease||i||"power1.inOut",s,a;if(Fe(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})},Cn=function(e,t,r,i,o){return ye(e)?e.call(t,r,i,o):Oe(e)&&~e.indexOf("random(")?xn(e):e},ba=so+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Sa={};Ue(ba+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return Sa[n]=1});var Ce=(function(n){Is(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:mn(i))||this;var c=a.vars,u=c.duration,f=c.delay,d=c.immediateRender,h=c.stagger,l=c.overwrite,g=c.keyframes,p=c.defaults,_=c.scrollTrigger,w=c.yoyoEase,S=i.parent||me,b=(Fe(r)||zs(r)?It(r[0]):"length"in i)?[r]:lt(r),P,m,v,C,T,M,W,I;if(a._targets=b.length?ao(b):pn("GSAP target "+r+" not found. https://gsap.com",!Qe.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=l,g||h||Qn(u)||Qn(f)){if(i=a.vars,P=a.timeline=new je({data:"nested",defaults:p||{},targets:S&&S.data==="nested"?S.vars.targets:b}),P.kill(),P.parent=P._dp=Rt(a),P._start=0,h||Qn(u)||Qn(f)){if(C=b.length,W=h&&oa(h),kt(h))for(T in h)~ba.indexOf(T)&&(I||(I={}),I[T]=h[T]);for(m=0;m<C;m++)v=ri(i,Sa),v.stagger=0,w&&(v.yoyoEase=w),I&&Br(v,I),M=b[m],v.duration=+Cn(u,Rt(a),m,M,b),v.delay=(+Cn(f,Rt(a),m,M,b)||0)-a._delay,!h&&C===1&&v.delay&&(a._delay=f=v.delay,a._start+=f,v.delay=0),P.to(M,v,W?W(m,M,b):0),P._ease=te.none;P.duration()?u=f=0:a.timeline=0}else if(g){mn(et(P.vars.defaults,{ease:"none"})),P._ease=cr(g.ease||i.ease||"none");var z=0,O,R,$;if(Fe(g))g.forEach(function(N){return P.to(b,N,">")}),P.duration();else{v={};for(T in g)T==="ease"||T==="easeEach"||Vu(T,g[T],v,g.easeEach);for(T in v)for(O=v[T].sort(function(N,H){return N.t-H.t}),z=0,m=0;m<O.length;m++)R=O[m],$={ease:R.e,duration:(R.t-(m?O[m-1].t:0))/100*u},$[T]=R.v,P.to(b,$,z),z+=$.duration;P.duration()<u&&P.to({},{duration:u-P.duration()})}}u||a.duration(u=P.duration())}else a.timeline=0;return l===!0&&!qi&&(Gt=Rt(a),me.killTweensOf(b),Gt=0),Et(S,Rt(a),o),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(d||!u&&!g&&a._start===Se(S._time)&&Ve(d)&&Su(Rt(a))&&S.data!=="nested")&&(a._tTime=-le,a.render(Math.max(0,-f)||0)),_&&ea(Rt(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,h,l,g,p,_,w,S,b,P;if(!u)Tu(this,i,o,s);else if(d!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(h=d,b=this.timeline,this._repeat){if(p=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(p*100+i,o,s);if(h=Se(d%p),d===c?(g=this._repeat,h=u):(_=Se(d/p),g=~~_,g&&g===_?(h=u,g--):h>u&&(h=u)),w=this._yoyo&&g&1,w&&(P=this._yEase,h=u-h),_=Wr(this._tTime,p),h===a&&!s&&this._initted&&g===_)return this._tTime=d,this;g!==_&&(b&&this._yEase&&ya(b,w),this.vars.repeatRefresh&&!w&&!this._lock&&h!==p&&this._initted&&(this._lock=s=1,this.render(Se(p*g),!0).invalidate()._lock=0))}if(!this._initted){if(ta(this,f?i:h,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=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=S=(P||this._ease)(h/u),this._from&&(this.ratio=S=1-S),!a&&d&&!o&&!_&&(tt(this,"onStart"),this._tTime!==d))return this;for(l=this._pt;l;)l.r(S,l.d),l=l._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(f&&co(this,i,o,s),tt(this,"onUpdate")),this._repeat&&g!==_&&this.vars.onRepeat&&!o&&this.parent&&tt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(f&&!this._onUpdate&&co(this,i,!0,!0),(i||!u)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Vt(this,1),!o&&!(f&&!a)&&(d||a||w)&&(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){bn||rt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||wo(this,u),f=this._ease(u/this._dur),ju(this,i,o,s,a,f,u,c)?this.resetTo(i,o,s,a,1):(si(this,0),this.parent||Qs(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(!!Le),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,Gt&&Gt.vars.overwrite!==!0)._first||wn(this),this.parent&&s!==this.timeline.totalDuration()&&Yr(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,c=i?lt(i):a,u=this._ptLookup,f=this._pt,d,h,l,g,p,_,w;if((!o||o==="all")&&vu(a,c))return o==="all"&&(this._pt=0),wn(this);for(d=this._op=this._op||[],o!=="all"&&(Oe(o)&&(p={},Ue(o,function(S){return p[S]=1}),o=p),o=Xu(a,o)),w=a.length;w--;)if(~c.indexOf(a[w])){h=u[w],o==="all"?(d[w]=o,g=h,l={}):(l=d[w]=d[w]||{},g=o);for(p in g)_=h&&h[p],_&&((!("kill"in _.d)||_.d.kill(p)===!0)&&ni(this,_,"_pt"),delete h[p]),l!=="all"&&(l[p]=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 _n(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 _n(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 me.killTweensOf(i,o,s)},e})(Sn);et(Ce.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ue("staggerTo,staggerFrom,staggerFromTo",function(n){Ce[n]=function(){var e=new je,t=fo.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var vo=function(e,t,r){return e[t]=r},Ca=function(e,t,r){return e[t](r)},Uu=function(e,t,r,i){return e[t](i.fp,r)},qu=function(e,t,r){return e.setAttribute(t,r)},bo=function(e,t){return ye(e[t])?Ca:Ki(e[t])&&e.setAttribute?qu:vo},Ta=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Gu=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ka=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)},So=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Ku=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},Qu=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?ni(this,t,"_pt"):t.dep||(r=1),t=i;return!r},Zu=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},Pa=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},qe=(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||Ta,this.d=c||this,this.set=u||vo,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=Zu,this.m=r,this.mt=o,this.tween=i},n})();Ue(so+"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 no[n]=1}),Ze.TweenMax=Ze.TweenLite=Ce,Ze.TimelineLite=Ze.TimelineMax=je,me=new je({sortChildren:!1,defaults:zr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Qe.stringFilter=ma;var fr=[],ai={},Ju=[],Ea=0,ef=0,Co=function(e){return(ai[e]||Ju).map(function(t){return t()})},To=function(){var e=Date.now(),t=[];e-Ea>2&&(Co("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))}),Co("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Ea=e,Co("matchMedia"))},Ma=(function(){function n(t,r){this.selector=r&&ho(r),this.data=[],this._r=[],this.isReverted=!1,this.id=ef++,t&&this.add(t)}var e=n.prototype;return e.add=function(r,i,o){ye(r)&&(o=i,i=r,r=ye);var s=this,a=function(){var u=ge,f=s.selector,d;return u&&u!==s&&u.data.push(s),o&&(s.selector=ho(o)),ge=s,d=i.apply(s,arguments),ye(d)&&s._r.push(d),ge=u,s.selector=f,s.isReverted=!1,d};return s.last=a,r===ye?a(s,function(c){return s.add(null,c)}):r?s[r]=a:a},e.ignore=function(r){var i=ge;ge=null,r(this),ge=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 je?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=fr.length;s--;)fr[s].id===this.id&&fr.splice(s,1)},e.revert=function(r){this.kill(r||{})},n})(),tf=(function(){function n(t){this.contexts=[],this.scope=t,ge&&ge.data.push(this)}var e=n.prototype;return e.add=function(r,i,o){kt(r)||(r={matches:r});var s=new Ma(0,o||this.scope),a=s.conditions={},c,u,f;ge&&!s.selector&&(s.selector=ge.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(To):c.addEventListener("change",To)));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})(),li={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 da(i)})},timeline:function(e){return new je(e)},getTweensOf:function(e,t){return me.getTweensOf(e,t)},getProperty:function(e,t,r,i){Oe(e)&&(e=lt(e)[0]);var o=ar(e||{}).get,s=r?Gs:qs;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=lt(e),e.length>1){var i=e.map(function(f){return Ge.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=ar(e),c=a.harness&&(a.harness.aliases||{})[t]||t,u=s?function(f){var d=new s;Hr._pt=0,d.init(e,r?f+r:f,Hr,0,[e]),d.render(1,d),Hr._pt&&So(1,Hr)}: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=Ge.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 me.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=cr(e.ease,zr.ease)),Ks(zr,e||{})},config:function(e){return Ks(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]&&pn(t+" effect requires "+a+" plugin.")}),oo[t]=function(a,c,u){return r(lt(a),et(c||{},o),u)},s&&(je.prototype[t]=function(a,c,u){return this.add(oo[t](a,kt(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,t){te[e]=cr(t)},parseEase:function(e,t){return arguments.length?cr(e,t):te},getById:function(e){return me.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new je(e),i,o;for(r.smoothChildTiming=Ve(e.smoothChildTiming),me.remove(r),r._dp=0,r._time=r._tTime=me._time,i=me._first;i;)o=i._next,(t||!(!i._dur&&i instanceof Ce&&i.vars.onComplete===i._targets[0]))&&Et(r,i,i._start-i._delay),i=o;return Et(me,r,0),r},context:function(e,t){return e?new Ma(e,t):ge},matchMedia:function(e){return new tf(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()})||To()},addEventListener:function(e,t){var r=ai[e]||(ai[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=ai[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:$u,wrapYoyo:Ru,distribute:oa,random:aa,snap:sa,normalize:Au,getUnit:Be,clamp:Eu,splitColor:ha,toArray:lt,selector:ho,mapRange:ca,pipe:Ou,unitize:Du,interpolate:Iu,shuffle:ia},install:Ys,effects:oo,ticker:rt,updateRoot:je.updateRoot,plugins:Je,globalTimeline:me,core:{PropTween:qe,globals:Hs,Tween:Ce,Timeline:je,Animation:Sn,getCache:ar,_removeLinkedListItem:ni,reverting:function(){return Le},context:function(e){return e&&ge&&(ge.data.push(e),e._ctx=ge),ge},suppressOverwrites:function(e){return qi=e}}};Ue("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return li[n]=Ce[n]}),rt.add(je.updateRoot),Hr=li.to({},{duration:0});var rf=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},nf=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=rf(s,i)),s&&s.modifier&&s.modifier(t[i],e,r[o],i))},ko=function(e,t){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var c,u;if(Oe(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}nf(a,o)}}}},Ge=li.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;)Le?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)}},ko("roundProps",po),ko("modifiers"),ko("snap",sa))||li;Ce.version=je.version=Ge.version="3.13.0",Ws=1,Qi()&&jr(),te.Power0,te.Power1,te.Power2,te.Power3,te.Power4,te.Linear,te.Quad,te.Cubic,te.Quart,te.Quint,te.Strong,te.Elastic,te.Back,te.SteppedEase,te.Bounce,te.Sine,te.Expo,te.Circ;/*!
8
+ */var Ze={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Fr={duration:.5,overwrite:!1,delay:0},qi,ze,pe,at=1e8,le=1/at,Gi=Math.PI*2,du=Gi/4,hu=0,Ls=Math.sqrt,pu=Math.cos,gu=Math.sin,De=function(e){return typeof e=="string"},ye=function(e){return typeof e=="function"},Lt=function(e){return typeof e=="number"},Ki=function(e){return typeof e>"u"},kt=function(e){return typeof e=="object"},Ue=function(e){return e!==!1},Qi=function(){return typeof window<"u"},Qn=function(e){return ye(e)||De(e)},zs=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Be=Array.isArray,Zi=/(?:-?\.?\d|\.)+/gi,Ns=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Br=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ji=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Fs=/[+-]=-?[.\d]+/,Bs=/[^,'"\[\]\s]+/gi,mu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ge,Pt,eo,to,Je={},Zn={},Ws,Ys=function(e){return(Zn=Yr(e,Je))&&Ke},ro=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},mn=function(e,t){return!t&&console.warn(e)},Hs=function(e,t){return e&&(Je[e]=t)&&Zn&&(Zn[e]=t)||Je},_n=function(){return 0},_u={suppressEvents:!0,isStart:!0,kill:!1},Jn={suppressEvents:!0,kill:!1},yu={suppressEvents:!0},no={},Vt=[],io={},js,et={},oo={},Xs=30,ei=[],so="",ao=function(e){var t=e[0],r,i;if(kt(t)||ye(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=ei.length;i--&&!ei[i].targetTest(t););r=ei[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new wa(e[i],r)))||e.splice(i,1);return e},cr=function(e){return e._gsap||ao(ct(e))[0]._gsap},Vs=function(e,t,r){return(r=e[t])&&ye(r)?e[t]():Ki(r)&&e.getAttribute&&e.getAttribute(t)||r},qe=function(e,t){return(e=e.split(",")).forEach(t)||e},xe=function(e){return Math.round(e*1e5)/1e5||0},Se=function(e){return Math.round(e*1e7)/1e7||0},Wr=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},xu=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++i<r;);return i<r},ti=function(){var e=Vt.length,t=Vt.slice(0),r,i;for(io={},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)},lo=function(e){return!!(e._initted||e._startAt||e.add)},Us=function(e,t,r,i){Vt.length&&!ze&&ti(),e.render(t,r,!!(ze&&t<0&&lo(e))),Vt.length&&!ze&&ti()},qs=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(Bs).length<2?t:De(e)?e.trim():e},Gs=function(e){return e},tt=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},wu=function(e){return function(t,r){for(var i in r)i in t||i==="duration"&&e||i==="ease"||(t[i]=r[i])}},Yr=function(e,t){for(var r in t)e[r]=t[r];return e},Ks=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},ri=function(e,t){var r={},i;for(i in e)i in t||(r[i]=e[i]);return r},yn=function(e){var t=e.parent||ge,r=e.keyframes?wu(Be(e.keyframes)):tt;if(Ue(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},vu=function(e,t){for(var r=e.length,i=r===t.length;i&&r--&&e[r]===t[r];);return r<0},Qs=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},ni=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},Ut=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},bu=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},co=function(e,t,r,i){return e._startAt&&(ze?e._startAt.revert(Jn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},Su=function n(e){return!e||e._ts&&n(e.parent)},Zs=function(e){return e._repeat?Hr(e._tTime,e=e.duration()+e._rDelay)*e:0},Hr=function(e,t){var r=Math.floor(e=Se(e/t));return e&&r===e?r-1:r},ii=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},oi=function(e){return e._end=Se(e._start+(e._tDur/Math.abs(e._ts||e._rts||le)||0))},si=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)),oi(e),r._dirty||ur(r,e)),e},Js=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=ii(e.rawTime(),t),(!t._dur||wn(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}},Et=function(e,t,r,i){return t.parent&&Ut(t),t._start=Se((Lt(r)?r:r||e!==ge?lt(e,r,t):e._time)+t._delay),t._end=Se(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Qs(e,t,"_first","_last",e._sort?"_start":0),uo(t)||(e._recent=t),i||Js(e,t),e._ts<0&&si(e,e._tTime),e},ea=function(e,t){return(Je.ScrollTrigger||ro("scrollTrigger",t))&&Je.ScrollTrigger.create(t,e)},ta=function(e,t,r,i,o){if(wo(e,t,o),!e._initted)return 1;if(!r&&e._pt&&!ze&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&js!==nt.frame)return Vt.push(e),e._lazy=[o,i],1},Cu=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},uo=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Tu=function(e,t,r,i){var o=e.ratio,s=t<0||!t&&(!e._start&&Cu(e)&&!(!e._initted&&uo(e))||(e._ts<0||e._dp._ts<0)&&!uo(e))?0:1,a=e._rDelay,c=0,u,f,d;if(a&&e._repeat&&(c=wn(0,e._tDur,t),f=Hr(c,a),e._yoyo&&f&1&&(s=1-s),f!==Hr(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||ze||i||e._zTime===le||!t&&e._zTime){if(!e._initted&&ta(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&&co(e,t,r,!0),e._onUpdate&&!r&&rt(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&rt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&Ut(e,1),!r&&!ze&&(rt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},ku=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}},jr=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&&si(e,e._tTime=e._tDur*a),e.parent&&oi(e),r||ur(e.parent,e),e},ra=function(e){return e instanceof Xe?ur(e):jr(e,e._dur)},Pu={_start:0,endTime:_n,totalDuration:_n},lt=function n(e,t,r){var i=e.labels,o=e._recent||Pu,s=e.duration()>=at?o.endTime(!1):e._dur,a,c,u;return De(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*(Be(r)?r[0]:r).totalDuration()),a>1?n(e,t.substr(0,a-1),r)+c:s+c)):t==null?s:+t},xn=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=Ue(c.vars.inherit)&&c.parent;s.immediateRender=Ue(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},wn=function(e,t,r){return r<e?e:r>t?t:r},We=function(e,t){return!De(e)||!(t=mu.exec(e))?"":t[1]},Eu=function(e,t,r){return qt(r,function(i){return wn(e,t,i)})},fo=[].slice,na=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},Mu=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return De(i)&&!t||na(i,1)?(o=r).push.apply(o,ct(i)):r.push(i)})||r},ct=function(e,t,r){return pe&&!t&&pe.selector?pe.selector(e):De(e)&&!r&&(eo||!Vr())?fo.call((t||to).querySelectorAll(e),0):Be(e)?Mu(e,r):na(e)?fo.call(e,0):e?[e]:[]},ho=function(e){return e=ct(e)[0]||mn("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return ct(t,r.querySelectorAll?r:r===e?mn("Invalid scope")||to.createElement("div"):e)}},ia=function(e){return e.sort(function(){return .5-Math.random()})},oa=function(e){if(ye(e))return e;var t=kt(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 De(i)?f=d={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(f=i[0],d=i[1]),function(h,l,g){var p=(g||t).length,y=s[p],w,S,b,P,m,v,C,k,M;if(!y){if(M=t.grid==="auto"?0:(t.grid||[1,at])[1],!M){for(C=-at;C<(C=g[M++].getBoundingClientRect().left)&&M<p;);M<p&&M--}for(y=s[p]=[],w=c?Math.min(M,p)*f-.5:i%M,S=M===at?0:c?p*d/M-.5:i/M|0,C=0,k=at,v=0;v<p;v++)b=v%M-w,P=S-(v/M|0),y[v]=m=u?Math.abs(u==="y"?P:b):Ls(b*b+P*P),m>C&&(C=m),m<k&&(k=m);i==="random"&&ia(y),y.max=C-k,y.min=k,y.v=p=(parseFloat(t.amount)||parseFloat(t.each)*(M>p?p-1:u?u==="y"?p/M:M:Math.max(M,p/M))||0)*(i==="edges"?-1:1),y.b=p<0?o-p:o,y.u=We(t.amount||t.each)||0,r=r&&p<0?_a(r):r}return p=(y[h]-y.min)/y.max||0,Se(y.b+(r?r(p):p)*y.v)+y.u}},po=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:We(r))}},sa=function(e,t){var r=Be(e),i,o;return!r&&kt(e)&&(i=r=e.radius||at,e.values?(e=ct(e.values),(o=!Lt(e[0]))&&(i*=i)):e=po(e.increment)),qt(t,r?ye(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=at,f=0,d=e.length,h,l;d--;)o?(h=e[d].x-a,l=e[d].y-c,h=h*h+l*l):h=Math.abs(e[d]-a),h<u&&(u=h,f=d);return f=!i||u<=i?e[f]:s,o||f===s||Lt(s)?f:f+We(s)}:po(e))},aa=function(e,t,r,i){return qt(Be(e)?!t:r===!0?!!(r=0):!i,function(){return Be(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})},Ou=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)}},Du=function(e,t){return function(r){return e(parseFloat(r))+(t||We(r))}},Au=function(e,t,r){return ca(e,t,0,1,r)},la=function(e,t,r){return qt(r,function(i){return e[~~t(i)]})},Ru=function n(e,t,r){var i=t-e;return Be(e)?la(e,n(0,e.length),t):qt(r,function(o){return(i+(o-e)%i)%i+e})},$u=function n(e,t,r){var i=t-e,o=i*2;return Be(e)?la(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?Bs:Zi),r+=e.substr(t,i-t)+aa(a?o:+o[0],a?0:+o[1],+o[2]||1e-5),t=s+1;return r+e.substr(t,e.length-t)},ca=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)})},Iu=function n(e,t,r,i){var o=isNaN(e+t)?0:function(l){return(1-l)*e+l*t};if(!o){var s=De(e),a={},c,u,f,d,h;if(r===!0&&(i=1)&&(r=null),s)e={p:e},t={p:t};else if(Be(e)&&!Be(t)){for(f=[],d=e.length,h=d-2,u=1;u<d;u++)f.push(n(e[u-1],e[u]));d--,o=function(g){g*=d;var p=Math.min(h,~~g);return f[p](g-p)},r=t}else i||(e=Yr(Be(e)?[]:{},e));if(!f){for(c in t)yo.call(a,e,c,"get",t[c]);o=function(g){return So(g,a)||(s?e.p:e)}}}return qt(r,o)},ua=function(e,t,r){var i=e.labels,o=at,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},rt=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&&ti(),a&&(pe=a),f=c?o.apply(u,c):o.call(u),pe=s,f},bn=function(e){return Ut(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ze),e.progress()<1&&rt(e,"onInterrupt"),e},Xr,fa=[],da=function(e){if(e)if(e=!e.name&&e.default||e,Qi()||e.headless){var t=e.name,r=ye(e),i=t&&!r&&e.init?function(){this._props=[]}:e,o={init:_n,render:So,add:yo,kill:Qu,modifier:Ku,rawVars:0},s={targetTest:0,get:0,getSetter:bo,aliases:{},register:0};if(Vr(),e!==i){if(et[t])return;tt(i,tt(ri(e,o),s)),Yr(i.prototype,Yr(o,ri(e,s))),et[i.prop=t]=i,e.targetTest&&(ei.push(i),no[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Hs(t,i),e.register&&e.register(Ke,i,Ge)}else fa.push(e)},ce=255,Sn={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]},go=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},ha=function(e,t,r){var i=e?Lt(e)?[e>>16,e>>8&ce,e&ce]:0:Sn.black,o,s,a,c,u,f,d,h,l,g;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Sn[e])i=Sn[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(Zi),!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]=go(c+1/3,o,s),i[1]=go(c,o,s),i[2]=go(c-1/3,o,s);else if(~e.indexOf("="))return i=e.match(Ns),r&&i.length<4&&(i[3]=1),i}else i=e.match(Zi)||Sn.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),h=Math.min(o,s,a),f=(d+h)/2,d===h?c=u=0:(l=d-h,u=f>.5?l/(2-d-h):l/(d+h),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},pa=function(e){var t=[],r=[],i=-1;return e.split(Gt).forEach(function(o){var s=o.match(Br)||[];t.push.apply(t,s),r.push(i+=s.length+1)}),t.c=r,t},ga=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(h){return(h=ha(h,t,1))&&s+(t?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),r&&(f=pa(e),c=r.c,c.join(i)!==f.c.join(i)))for(u=e.replace(Gt,"1").split(Br),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 Sn)n+="|"+e+"\\b";return new RegExp(n+")","gi")})(),Lu=/hsl[a]?\(/,ma=function(e){var t=e.join(" "),r;if(Gt.lastIndex=0,Gt.test(t))return r=Lu.test(t),e[1]=ga(e[1],r),e[0]=ga(e[0],r,pa(e[1])),!0},Cn,nt=(function(){var n=Date.now,e=500,t=33,r=n(),i=r,o=1e3/240,s=o,a=[],c,u,f,d,h,l,g=function p(y){var w=n()-i,S=y===!0,b,P,m,v;if((w>e||w<0)&&(r+=w-t),i+=w,m=i-r,b=m-s,(b>0||S)&&(v=++d.frame,h=m-d.time*1e3,d.time=m=m/1e3,s+=b+(b>=o?4:o-b),P=1),S||(c=u(p)),P)for(l=0;l<a.length;l++)a[l](m,h,v,y)};return d={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(y){return h/(1e3/(y||60))},wake:function(){Ws&&(!eo&&Qi()&&(Pt=eo=window,to=Pt.document||{},Je.gsap=Ke,(Pt.gsapVersions||(Pt.gsapVersions=[])).push(Ke.version),Ys(Zn||Pt.GreenSockGlobals||!Pt.gsap&&Pt||{}),fa.forEach(da)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&d.sleep(),u=f||function(y){return setTimeout(y,s-d.time*1e3+1|0)},Cn=1,g(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(c),Cn=0,u=_n},lagSmoothing:function(y,w){e=y||1/0,t=Math.min(w||33,e)},fps:function(y){o=1e3/(y||240),s=d.time*1e3+o},add:function(y,w,S){var b=w?function(P,m,v,C){y(P,m,v,C),d.remove(b)}:y;return d.remove(y),a[S?"unshift":"push"](b),Vr(),b},remove:function(y,w){~(w=a.indexOf(y))&&a.splice(w,1)&&l>=w&&l--},_listeners:a},d})(),Vr=function(){return!Cn&&nt.wake()},te={},zu=/^[\d.\-M][\d.\-,\s]/,Nu=/["']/g,Fu=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(Nu,"").trim():+u,i=c.substr(a+1).trim();return t},Bu=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)},Wu=function(e){var t=(e+"").split("("),r=te[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Fu(t[1])]:Bu(e).split(",").map(qs)):te._CE&&zu.test(e)?te._CE("",e):r},_a=function(e){return function(t){return 1-e(1-t)}},ya=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&&(ye(e)?e:te[e]||Wu(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 qe(e,function(a){te[a]=Je[a]=o,te[s=a.toLowerCase()]=r;for(var c in o)te[s+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=te[a+"."+c]=o[c]}),o},xa=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},mo=function n(e,t,r){var i=t>=1?t:1,o=(r||(e?.3:.45))/(t<1?t:1),s=o/Gi*(Math.asin(1/i)||0),a=function(f){return f===1?1:i*Math.pow(2,-10*f)*gu((f-s)*o)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:xa(a);return o=Gi/o,c.config=function(u,f){return n(e,u,f)},c},_o=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)}:xa(r);return i.config=function(o){return n(e,o)},i};qe("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})}),te.Linear.easeNone=te.none=te.Linear.easeIn,dr("Elastic",mo("in"),mo("out"),mo()),(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-(Ls(1-n*n)-1)}),dr("Sine",function(n){return n===1?1:-pu(n*du)+1}),dr("Back",_o("in"),_o("out"),_o()),te.SteppedEase=te.steps=Je.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*wn(0,s,a)|0)+o)*r}}},Fr.ease=te["quad.out"],qe("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return so+=n+","+n+"Params,"});var wa=function(e,t){this.id=hu++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Vs,this.set=t?t.getSetter:bo},Tn=(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,jr(this,+t.duration,1,1),this.data=t.data,pe&&(this._ctx=pe,pe.data.push(this)),Cn||nt.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,jr(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Vr(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(si(this,r),!o._dp||o.parent||Js(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),Us(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Zs(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)+Zs(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?Hr(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?ii(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-le?0:this._rts,this.totalTime(wn(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),oi(this),bu(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):(Vr(),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+(Ue(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?ii(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=yu);var i=ze;return ze=r,lo(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),ze=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,ra(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,ra(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(lt(this,r),Ue(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Ue(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=ye(r)?r:Gs,a=function(){var u=i.then;i.then=null,ye(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(){bn(this)},n})();tt(Tn.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){Is(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=Ue(r.sortChildren),ge&&Et(r.parent||ge,It(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&ea(It(o),r.scrollTrigger),o}var t=e.prototype;return t.to=function(i,o,s){return xn(0,arguments,this),this},t.from=function(i,o,s){return xn(1,arguments,this),this},t.fromTo=function(i,o,s,a){return xn(2,arguments,this),this},t.set=function(i,o,s){return o.duration=0,o.parent=this,yn(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new Ce(i,o,lt(this,s),1),this},t.call=function(i,o,s){return Et(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,lt(this,c)),this},t.staggerFrom=function(i,o,s,a,c,u,f){return s.runBackwards=1,yn(s).immediateRender=Ue(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,yn(a).immediateRender=Ue(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),h,l,g,p,y,w,S,b,P,m,v,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),h=f,P=this._start,b=this._ts,w=!b,d&&(u||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(v=this._yoyo,y=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(y*100+i,o,s);if(h=Se(f%y),f===c?(p=this._repeat,h=u):(m=Se(f/y),p=~~m,p&&p===m&&(h=u,p--),h>u&&(h=u)),m=Hr(this._tTime,y),!a&&this._tTime&&m!==p&&this._tTime-m*y-this._dur<=0&&(m=p),v&&p&1&&(h=u-h,C=1),p!==m&&!this._lock){var k=v&&m&1,M=k===(v&&p&1);if(p<m&&(k=!k),a=k?0:f%u?u:f,this._lock=1,this.render(a||(C?0:Se(p*y)),o,!u)._lock=0,this._tTime=f,!o&&this.parent&&rt(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(this.invalidate()._lock=1),a&&a!==this._time||w!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,M&&(this._lock=2,a=k?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!w)return this;ya(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(S=ku(this,Se(a),Se(h)),S&&(f-=h-(h=S._start))),this._tTime=f,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&f&&!o&&!m&&(rt(this,"onStart"),this._tTime!==f))return this;if(h>=a&&i>=0)for(l=this._first;l;){if(g=l._next,(l._act||h>=l._start)&&l._ts&&S!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(h-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(h-l._start)*l._ts,o,s),h!==this._time||!this._ts&&!w){S=0,g&&(f+=this._zTime=-le);break}}l=g}else{l=this._last;for(var W=i<0?i:h;l;){if(g=l._prev,(l._act||W<=l._end)&&l._ts&&S!==l){if(l.parent!==this)return this.render(i,o,s);if(l.render(l._ts>0?(W-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(W-l._start)*l._ts,o,s||ze&&lo(l)),h!==this._time||!this._ts&&!w){S=0,g&&(f+=this._zTime=W?-le:le);break}}l=g}}if(S&&!o&&(this.pause(),S.render(h>=a?0:-le)._zTime=h>=a?1:-1,this._ts))return this._start=P,oi(this),this.render(i,o,s);this._onUpdate&&!o&&rt(this,"onUpdate",!0),(f===c&&this._tTime>=this.totalDuration()||!f&&a)&&(P===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===c&&this._ts>0||!f&&this._ts<0)&&Ut(this,1),!o&&!(i<0&&!a)&&(f||a||!c)&&(rt(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=lt(this,o,i)),!(i instanceof Tn)){if(Be(i))return i.forEach(function(a){return s.add(a,o)}),this;if(De(i))return this.addLabel(i,o);if(ye(i))i=Ce.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=-at);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 De(i)?this.removeLabel(i):ye(i)?this.killTweensOf(i):(i.parent===this&&ni(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(nt.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]=lt(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||_n,s);return a.data="isPause",this._hasPause=1,Et(this,a,lt(this,i))},t.removePause=function(i){var o=this._first;for(i=lt(this,i);o;)o._start===i&&o.data==="isPause"&&Ut(o),o=o._next},t.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),c=a.length;c--;)Kt!==a[c]&&a[c].kill(i,o);return this},t.getTweensOf=function(i,o){for(var s=[],a=ct(i),c=this._first,u=Lt(o),f;c;)c instanceof Ce?xu(c._targets,a)&&(u?(!Kt||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=lt(s,i),c=o,u=c.startAt,f=c.onStart,d=c.onStartParams,h=c.immediateRender,l,g=Ce.to(s,tt({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 y=o.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());g._dur!==y&&jr(g,y,0,1).render(g._time,!0,!0),l=1}f&&f.apply(g,d||[])}},o));return h?g.render(0):g},t.tweenFromTo=function(i,o,s){return this.tweenTo(o,tt({startAt:{time:lt(this,i)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),ua(this,lt(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),ua(this,lt(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=at,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;jr(s,s===ge&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(ge._ts&&(Us(ge,ii(i,ge)),js=nt.frame),nt.frame>=Xs){Xs+=Ze.autoSleep||120;var o=ge._first;if((!o||!o._ts)&&Ze.autoSleep&&nt._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||nt.sleep()}}},e})(Tn);tt(Xe.prototype,{_lock:0,_hasPause:0,_forcing:0});var Yu=function(e,t,r,i,o,s,a){var c=new Ge(this._pt,e,t,0,1,ka,null,o),u=0,f=0,d,h,l,g,p,y,w,S;for(c.b=r,c.e=i,r+="",i+="",(w=~i.indexOf("random("))&&(i=vn(i)),s&&(S=[r,i],s(S,e,t),r=S[0],i=S[1]),h=r.match(Ji)||[];d=Ji.exec(i);)g=d[0],p=i.substring(u,d.index),l?l=(l+1)%5:p.substr(-5)==="rgba("&&(l=1),g!==h[f++]&&(y=parseFloat(h[f-1])||0,c._pt={_next:c._pt,p:p||f===1?p:",",s:y,c:g.charAt(1)==="="?Wr(y,g)-y:parseFloat(g)-y,m:l&&l<4?Math.round:0},u=Ji.lastIndex);return c.c=u<i.length?i.substring(u,i.length):"",c.fp=a,(Fs.test(i)||w)&&(c.e=0),this._pt=c,c},yo=function(e,t,r,i,o,s,a,c,u,f){ye(i)&&(i=i(o||0,e,s));var d=e[t],h=r!=="get"?r:ye(d)?u?e[t.indexOf("set")||!ye(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():d,l=ye(d)?u?Uu:Ca:vo,g;if(De(i)&&(~i.indexOf("random(")&&(i=vn(i)),i.charAt(1)==="="&&(g=Wr(h,i)+(We(h)||0),(g||g===0)&&(i=g))),!f||h!==i||xo)return!isNaN(h*i)&&i!==""?(g=new Ge(this._pt,e,t,+h||0,i-(h||0),typeof d=="boolean"?Gu:Ta,0,l),u&&(g.fp=u),a&&g.modifier(a,this,e),this._pt=g):(!d&&!(t in e)&&ro(t,i),Yu.call(this,e,t,h,i,l,c||Ze.stringFilter,u))},Hu=function(e,t,r,i,o){if(ye(e)&&(e=kn(e,o,t,r,i)),!kt(e)||e.style&&e.nodeType||Be(e)||zs(e))return De(e)?kn(e,o,t,r,i):e;var s={},a;for(a in e)s[a]=kn(e[a],o,t,r,i);return s},va=function(e,t,r,i,o,s){var a,c,u,f;if(et[e]&&(a=new et[e]).init(o,a.rawVars?t[e]:Hu(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},Kt,xo,wo=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,h=i.keyframes,l=i.autoRevert,g=e._dur,p=e._startAt,y=e._targets,w=e.parent,S=w&&w.data==="nested"?w.vars.targets:y,b=e._overwrite==="auto"&&!qi,P=e.timeline,m,v,C,k,M,W,I,z,O,$,R,N,H;if(P&&(!h||!o)&&(o="none"),e._ease=fr(o,Fr.ease),e._yEase=d?_a(fr(d===!0?o:d,Fr.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!P&&!!i.runBackwards,!P||h&&!i.stagger){if(z=y[0]?cr(y[0]).harness:0,N=z&&i[z.prop],m=ri(i,no),p&&(p._zTime<0&&p.progress(1),t<0&&f&&a&&!l?p.render(-1,!0):p.revert(f&&g?Jn:_u),p._lazy=0),s){if(Ut(e._startAt=Ce.set(y,tt({data:"isStart",overwrite:!1,parent:w,immediateRender:!0,lazy:!p&&Ue(c),startAt:null,delay:0,onUpdate:u&&function(){return rt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ze||!a&&!l)&&e._startAt.revert(Jn),a&&g&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(f&&g&&!p){if(t&&(a=!1),C=tt({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Ue(c),immediateRender:a,stagger:0,parent:w},m),N&&(C[z.prop]=N),Ut(e._startAt=Ce.set(y,C)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ze?e._startAt.revert(Jn):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&&Ue(c)||c&&!g,v=0;v<y.length;v++){if(M=y[v],I=M._gsap||ao(y)[v]._gsap,e._ptLookup[v]=$={},io[I.id]&&Vt.length&&ti(),R=S===y?v:S.indexOf(M),z&&(O=new z).init(M,N||m,e,R,S)!==!1&&(e._pt=k=new Ge(e._pt,M,O.name,0,1,O.render,O,0,O.priority),O._props.forEach(function(ee){$[ee]=k}),O.priority&&(W=1)),!z||N)for(C in m)et[C]&&(O=va(C,m,e,R,M,S))?O.priority&&(W=1):$[C]=k=yo.call(e,M,C,"get",m[C],R,S,0,i.stringFilter);e._op&&e._op[v]&&e.kill(M,e._op[v]),b&&e._pt&&(Kt=e,ge.killTweensOf(M,$,e.globalTime(t)),H=!e.parent,Kt=0),e._pt&&c&&(io[I.id]=1)}W&&Pa(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!H,h&&t<=0&&P.render(at,!0,!0)},ju=function(e,t,r,i,o,s,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],f,d,h,l;if(!u)for(u=e._ptCache[t]=[],h=e._ptLookup,l=e._targets.length;l--;){if(f=h[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 xo=1,e.vars[t]="+=0",wo(e,a),xo=0,c?mn(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=xe(r)+We(d.e)),d.b&&(d.b=f.s+We(d.b))},Xu=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=Yr({},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},Vu=function(e,t,r,i){var o=t.ease||i||"power1.inOut",s,a;if(Be(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})},kn=function(e,t,r,i,o){return ye(e)?e.call(t,r,i,o):De(e)&&~e.indexOf("random(")?vn(e):e},ba=so+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Sa={};qe(ba+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return Sa[n]=1});var Ce=(function(n){Is(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:yn(i))||this;var c=a.vars,u=c.duration,f=c.delay,d=c.immediateRender,h=c.stagger,l=c.overwrite,g=c.keyframes,p=c.defaults,y=c.scrollTrigger,w=c.yoyoEase,S=i.parent||ge,b=(Be(r)||zs(r)?Lt(r[0]):"length"in i)?[r]:ct(r),P,m,v,C,k,M,W,I;if(a._targets=b.length?ao(b):mn("GSAP target "+r+" not found. https://gsap.com",!Ze.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=l,g||h||Qn(u)||Qn(f)){if(i=a.vars,P=a.timeline=new Xe({data:"nested",defaults:p||{},targets:S&&S.data==="nested"?S.vars.targets:b}),P.kill(),P.parent=P._dp=It(a),P._start=0,h||Qn(u)||Qn(f)){if(C=b.length,W=h&&oa(h),kt(h))for(k in h)~ba.indexOf(k)&&(I||(I={}),I[k]=h[k]);for(m=0;m<C;m++)v=ri(i,Sa),v.stagger=0,w&&(v.yoyoEase=w),I&&Yr(v,I),M=b[m],v.duration=+kn(u,It(a),m,M,b),v.delay=(+kn(f,It(a),m,M,b)||0)-a._delay,!h&&C===1&&v.delay&&(a._delay=f=v.delay,a._start+=f,v.delay=0),P.to(M,v,W?W(m,M,b):0),P._ease=te.none;P.duration()?u=f=0:a.timeline=0}else if(g){yn(tt(P.vars.defaults,{ease:"none"})),P._ease=fr(g.ease||i.ease||"none");var z=0,O,$,R;if(Be(g))g.forEach(function(N){return P.to(b,N,">")}),P.duration();else{v={};for(k in g)k==="ease"||k==="easeEach"||Vu(k,g[k],v,g.easeEach);for(k in v)for(O=v[k].sort(function(N,H){return N.t-H.t}),z=0,m=0;m<O.length;m++)$=O[m],R={ease:$.e,duration:($.t-(m?O[m-1].t:0))/100*u},R[k]=$.v,P.to(b,R,z),z+=R.duration;P.duration()<u&&P.to({},{duration:u-P.duration()})}}u||a.duration(u=P.duration())}else a.timeline=0;return l===!0&&!qi&&(Kt=It(a),ge.killTweensOf(b),Kt=0),Et(S,It(a),o),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(d||!u&&!g&&a._start===Se(S._time)&&Ue(d)&&Su(It(a))&&S.data!=="nested")&&(a._tTime=-le,a.render(Math.max(0,-f)||0)),y&&ea(It(a),y),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,h,l,g,p,y,w,S,b,P;if(!u)Tu(this,i,o,s);else if(d!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(h=d,b=this.timeline,this._repeat){if(p=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(p*100+i,o,s);if(h=Se(d%p),d===c?(g=this._repeat,h=u):(y=Se(d/p),g=~~y,g&&g===y?(h=u,g--):h>u&&(h=u)),w=this._yoyo&&g&1,w&&(P=this._yEase,h=u-h),y=Hr(this._tTime,p),h===a&&!s&&this._initted&&g===y)return this._tTime=d,this;g!==y&&(b&&this._yEase&&ya(b,w),this.vars.repeatRefresh&&!w&&!this._lock&&h!==p&&this._initted&&(this._lock=s=1,this.render(Se(p*g),!0).invalidate()._lock=0))}if(!this._initted){if(ta(this,f?i:h,s,o,d))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&g!==y))return this;if(u!==this._dur)return this.render(i,o,s)}if(this._tTime=d,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=S=(P||this._ease)(h/u),this._from&&(this.ratio=S=1-S),!a&&d&&!o&&!y&&(rt(this,"onStart"),this._tTime!==d))return this;for(l=this._pt;l;)l.r(S,l.d),l=l._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(f&&co(this,i,o,s),rt(this,"onUpdate")),this._repeat&&g!==y&&this.vars.onRepeat&&!o&&this.parent&&rt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(f&&!this._onUpdate&&co(this,i,!0,!0),(i||!u)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Ut(this,1),!o&&!(f&&!a)&&(d||a||w)&&(rt(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){Cn||nt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||wo(this,u),f=this._ease(u/this._dur),ju(this,i,o,s,a,f,u,c)?this.resetTo(i,o,s,a,1):(si(this,0),this.parent||Qs(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?bn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ze),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,Kt&&Kt.vars.overwrite!==!0)._first||bn(this),this.parent&&s!==this.timeline.totalDuration()&&jr(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,c=i?ct(i):a,u=this._ptLookup,f=this._pt,d,h,l,g,p,y,w;if((!o||o==="all")&&vu(a,c))return o==="all"&&(this._pt=0),bn(this);for(d=this._op=this._op||[],o!=="all"&&(De(o)&&(p={},qe(o,function(S){return p[S]=1}),o=p),o=Xu(a,o)),w=a.length;w--;)if(~c.indexOf(a[w])){h=u[w],o==="all"?(d[w]=o,g=h,l={}):(l=d[w]=d[w]||{},g=o);for(p in g)y=h&&h[p],y&&((!("kill"in y.d)||y.d.kill(p)===!0)&&ni(this,y,"_pt"),delete h[p]),l!=="all"&&(l[p]=1)}return this._initted&&!this._pt&&f&&bn(this),this},e.to=function(i,o){return new e(i,o,arguments[2])},e.from=function(i,o){return xn(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 xn(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})(Tn);tt(Ce.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),qe("staggerTo,staggerFrom,staggerFromTo",function(n){Ce[n]=function(){var e=new Xe,t=fo.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var vo=function(e,t,r){return e[t]=r},Ca=function(e,t,r){return e[t](r)},Uu=function(e,t,r,i){return e[t](i.fp,r)},qu=function(e,t,r){return e.setAttribute(t,r)},bo=function(e,t){return ye(e[t])?Ca:Ki(e[t])&&e.setAttribute?qu:vo},Ta=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Gu=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ka=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)},So=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Ku=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},Qu=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?ni(this,t,"_pt"):t.dep||(r=1),t=i;return!r},Zu=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},Pa=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||Ta,this.d=c||this,this.set=u||vo,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=Zu,this.m=r,this.mt=o,this.tween=i},n})();qe(so+"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 no[n]=1}),Je.TweenMax=Je.TweenLite=Ce,Je.TimelineLite=Je.TimelineMax=Xe,ge=new Xe({sortChildren:!1,defaults:Fr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Ze.stringFilter=ma;var hr=[],ai={},Ju=[],Ea=0,ef=0,Co=function(e){return(ai[e]||Ju).map(function(t){return t()})},To=function(){var e=Date.now(),t=[];e-Ea>2&&(Co("matchMediaInit"),hr.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))}),Co("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Ea=e,Co("matchMedia"))},Ma=(function(){function n(t,r){this.selector=r&&ho(r),this.data=[],this._r=[],this.isReverted=!1,this.id=ef++,t&&this.add(t)}var e=n.prototype;return e.add=function(r,i,o){ye(r)&&(o=i,i=r,r=ye);var s=this,a=function(){var u=pe,f=s.selector,d;return u&&u!==s&&u.data.push(s),o&&(s.selector=ho(o)),pe=s,d=i.apply(s,arguments),ye(d)&&s._r.push(d),pe=u,s.selector=f,s.isReverted=!1,d};return s.last=a,r===ye?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})(),tf=(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 Ma(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&&(hr.indexOf(s)<0&&hr.push(s),(a[u]=c.matches)&&(f=1),c.addListener?c.addListener(To):c.addEventListener("change",To)));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})(),li={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 da(i)})},timeline:function(e){return new Xe(e)},getTweensOf:function(e,t){return ge.getTweensOf(e,t)},getProperty:function(e,t,r,i){De(e)&&(e=ct(e)[0]);var o=cr(e||{}).get,s=r?Gs:qs;return r==="native"&&(r=""),e&&(t?s((et[t]&&et[t].get||o)(e,t,r,i)):function(a,c,u){return s((et[a]&&et[a].get||o)(e,a,c,u))})},quickSetter:function(e,t,r){if(e=ct(e),e.length>1){var i=e.map(function(f){return Ke.quickSetter(f,t,r)}),o=i.length;return function(f){for(var d=o;d--;)i[d](f)}}e=e[0]||{};var s=et[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&&So(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=Ke.to(e,tt((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,Fr.ease)),Ks(Fr,e||{})},config:function(e){return Ks(Ze,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&&!et[a]&&!Je[a]&&mn(t+" effect requires "+a+" plugin.")}),oo[t]=function(a,c,u){return r(ct(a),tt(c||{},o),u)},s&&(Xe.prototype[t]=function(a,c,u){return this.add(oo[t](a,kt(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,t){te[e]=fr(t)},parseEase:function(e,t){return arguments.length?fr(e,t):te},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=Ue(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]))&&Et(r,i,i._start-i._delay),i=o;return Et(ge,r,0),r},context:function(e,t){return e?new Ma(e,t):pe},matchMedia:function(e){return new tf(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()})||To()},addEventListener:function(e,t){var r=ai[e]||(ai[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=ai[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:Ru,wrapYoyo:$u,distribute:oa,random:aa,snap:sa,normalize:Au,getUnit:We,clamp:Eu,splitColor:ha,toArray:ct,selector:ho,mapRange:ca,pipe:Ou,unitize:Du,interpolate:Iu,shuffle:ia},install:Ys,effects:oo,ticker:nt,updateRoot:Xe.updateRoot,plugins:et,globalTimeline:ge,core:{PropTween:Ge,globals:Hs,Tween:Ce,Timeline:Xe,Animation:Tn,getCache:cr,_removeLinkedListItem:ni,reverting:function(){return ze},context:function(e){return e&&pe&&(pe.data.push(e),e._ctx=pe),pe},suppressOverwrites:function(e){return qi=e}}};qe("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return li[n]=Ce[n]}),nt.add(Xe.updateRoot),Xr=li.to({},{duration:0});var rf=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},nf=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=rf(s,i)),s&&s.modifier&&s.modifier(t[i],e,r[o],i))},ko=function(e,t){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var c,u;if(De(o)&&(c={},qe(o,function(f){return c[f]=1}),o=c),t){c={};for(u in o)c[u]=t(o[u]);o=c}nf(a,o)}}}},Ke=li.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;)ze?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)}},ko("roundProps",po),ko("modifiers"),ko("snap",sa))||li;Ce.version=Xe.version=Ke.version="3.13.0",Ws=1,Qi()&&Vr(),te.Power0,te.Power1,te.Power2,te.Power3,te.Power4,te.Linear,te.Quad,te.Cubic,te.Quart,te.Quint,te.Strong,te.Elastic,te.Back,te.SteppedEase,te.Bounce,te.Sine,te.Expo,te.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 Oa,Kt,Xr,Po,dr,Da,Eo,of=function(){return typeof window<"u"},Lt={},hr=180/Math.PI,Vr=Math.PI/180,Ur=Math.atan2,Aa=1e8,Mo=/([A-Z])/g,sf=/(left|right|width|margin|padding|x)/i,af=/[\s,\(]\S/,Mt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Oo=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},lf=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)},cf=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)},uf=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},$a=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Ra=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},ff=function(e,t,r){return e.style[t]=r},df=function(e,t,r){return e.style.setProperty(t,r)},hf=function(e,t,r){return e._gsap[t]=r},pf=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},gf=function(e,t,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},mf=function(e,t,r,i,o){var s=e._gsap;s[t]=r,s.renderTransform(o,s)},_e="transform",Ke=_e+"Origin",_f=function n(e,t){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in Lt&&o){if(this.tfm=this.tfm||{},e!=="transform")e=Mt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=zt(i,a)}):this.tfm[e]=s.x?s[e]:zt(i,e),e===Ke&&(this.tfm.zOrigin=s.zOrigin);else return Mt.transform.split(",").forEach(function(a){return n.call(r,a,t)});if(this.props.indexOf(_e)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ke,t,"")),e=_e}(o||t)&&this.props.push(e,t,o[e])},Ia=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},yf=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(Mo,"-$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=Eo(),(!o||!o.isStart)&&!r[_e]&&(Ia(r),i.zOrigin&&r[Ke]&&(r[Ke]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},La=function(e,t){var r={target:e,props:[],revert:yf,save:_f};return e._gsap||Ge.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(i){return r.save(i)}),r},za,Do=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)},ct=function n(e,t,r){var i=getComputedStyle(e);return i[t]||i.getPropertyValue(t.replace(Mo,"-$1").toLowerCase())||i.getPropertyValue(t)||!r&&n(e,qr(t)||t,1)||""},Na="O,Moz,ms,Ms,Webkit".split(","),qr=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--&&!(Na[s]+e in o););return s<0?null:(s===3?"ms":s>=0?Na[s]:"")+e},Ao=function(){of()&&window.document&&(Oa=window,Kt=Oa.document,Xr=Kt.documentElement,dr=Do("div")||{style:{}},Do("div"),_e=qr(_e),Ke=_e+"Origin",dr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",za=!!qr("perspective"),Eo=Ge.core.reverting,Po=1)},Fa=function(e){var t=e.ownerSVGElement,r=Do("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},Ba=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Wa=function(e){var t,r;try{t=e.getBBox()}catch{t=Fa(e),r=1}return t&&(t.width||t.height)||r||(t=Fa(e)),t&&!t.width&&!t.x&&!t.y?{x:+Ba(e,["x","cx","x1"])||0,y:+Ba(e,["y","cy","y1"])||0,width:0,height:0}:t},Ya=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Wa(e))},pr=function(e,t){if(t){var r=e.style,i;t in Lt&&t!==Ke&&(t=_e),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace(Mo,"-$1").toLowerCase())):r.removeAttribute(t)}},Qt=function(e,t,r,i,o,s){var a=new qe(e._pt,t,r,0,1,s?Ra:$a);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},Ha={deg:1,rad:1,turn:1},xf={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=sf.test(t),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(c?"Width":"Height"),d=100,h=i==="px",l=i==="%",g,p,_,w;if(i===s||!o||Ha[i]||Ha[s])return o;if(s!=="px"&&!h&&(o=n(e,t,r,"px")),w=e.getCTM&&Ya(e),(l||s==="%")&&(Lt[t]||~t.indexOf("adius")))return g=w?e.getBBox()[c?"width":"height"]:e[f],xe(l?o/g*d:o/100*g);if(a[c?"width":"height"]=d+(h?s:i),p=i!=="rem"&&~t.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Kt||!p.appendChild)&&(p=Kt.body),_=p._gsap,_&&l&&_.width&&c&&_.time===rt.time&&!_.uncache)return xe(o/_.width*d);if(l&&(t==="height"||t==="width")){var S=e.style[t];e.style[t]=d+i,g=e[f],S?e.style[t]=S:pr(e,t)}else(l||s==="%")&&!xf[ct(p,"display")]&&(a.position=ct(e,"position")),p===e&&(a.position="static"),p.appendChild(dr),g=dr[f],p.removeChild(dr),a.position="absolute";return c&&l&&(_=ar(p),_.time=rt.time,_.width=p[f]),xe(h?g*o/d:g&&o?d/g*o:0)},zt=function(e,t,r,i){var o;return Po||Ao(),t in Mt&&t!=="transform"&&(t=Mt[t],~t.indexOf(",")&&(t=t.split(",")[0])),Lt[t]&&t!=="transform"?(o=kn(e,i),o=t!=="transformOrigin"?o[t]:o.svg?o.origin:ui(ct(e,Ke))+" "+o.zOrigin+"px"):(o=e.style[t],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=ci[t]&&ci[t](e,t,r)||ct(e,t)||Vs(e,t)||(t==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Zt(e,t,o,r)+r:o},wf=function(e,t,r,i){if(!r||r==="none"){var o=qr(t,e,1),s=o&&ct(e,o,1);s&&s!==r?(t=o,r=s):t==="borderColor"&&(r=ct(e,"borderTopColor"))}var a=new qe(this._pt,e.style,t,0,1,ka),c=0,u=0,f,d,h,l,g,p,_,w,S,b,P,m;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=ct(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(p=e.style[t],e.style[t]=i,i=ct(e,t)||i,p?e.style[t]=p:pr(e,t)),f=[r,i],ma(f),r=f[0],i=f[1],h=r.match(Nr)||[],m=i.match(Nr)||[],m.length){for(;d=Nr.exec(i);)_=d[0],S=i.substring(c,d.index),g?g=(g+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(g=1),_!==(p=h[u++]||"")&&(l=parseFloat(p)||0,P=p.substr((l+"").length),_.charAt(1)==="="&&(_=Fr(l,_)+P),w=parseFloat(_),b=_.substr((w+"").length),c=Nr.lastIndex-b.length,b||(b=b||Qe.units[t]||P,c===i.length&&(i+=b,a.e+=b)),P!==b&&(l=Zt(e,t,p,b)||0),a._pt={_next:a._pt,p:S||u===1?S:",",s:l,c:w-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"?Ra:$a;return Fs.test(i)&&(a.e=0),this._pt=a,a},ja={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},vf=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]=ja[r]||r,t[1]=ja[i]||i,t.join(" ")},bf=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],Lt[a]&&(c=1,a=a==="transformOrigin"?Ke:_e),pr(r,a);c&&(pr(r,_e),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",kn(r,1),s.uncache=1,Ia(i)))}},ci={clearProps:function(e,t,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new qe(e._pt,t,r,0,0,bf);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},Tn=[1,0,0,1,0,0],Xa={},Va=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ua=function(e){var t=ct(e,_e);return Va(t)?Tn:t.substr(7).match(Ns).map(xe)},$o=function(e,t){var r=e._gsap||ar(e),i=e.style,o=Ua(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=Ua(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)},Ro=function(e,t,r,i,o,s){var a=e._gsap,c=o||$o(e,!0),u=a.xOrigin||0,f=a.yOrigin||0,d=a.xOffset||0,h=a.yOffset||0,l=c[0],g=c[1],p=c[2],_=c[3],w=c[4],S=c[5],b=t.split(" "),P=parseFloat(b[0])||0,m=parseFloat(b[1])||0,v,C,T,M;r?c!==Tn&&(C=l*_-g*p)&&(T=P*(_/C)+m*(-p/C)+(p*S-_*w)/C,M=P*(-g/C)+m*(l/C)-(l*S-g*w)/C,P=T,m=M):(v=Wa(e),P=v.x+(~b[0].indexOf("%")?P/100*v.width:P),m=v.y+(~(b[1]||b[0]).indexOf("%")?m/100*v.height:m)),i||i!==!1&&a.smooth?(w=P-u,S=m-f,a.xOffset=d+(w*l+S*p)-w,a.yOffset=h+(w*g+S*_)-S):a.xOffset=a.yOffset=0,a.xOrigin=P,a.yOrigin=m,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!r,e.style[Ke]="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",h,a.yOffset)),e.setAttribute("data-svg-origin",P+" "+m)},kn=function(e,t){var r=e._gsap||new wa(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=ct(e,Ke)||"0",f,d,h,l,g,p,_,w,S,b,P,m,v,C,T,M,W,I,z,O,R,$,N,H,ee,K,G,U,F,q,Z,Pe;return f=d=h=p=_=w=S=b=P=0,l=g=1,r.svg=!!(e.getCTM&&Ya(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[_e]=(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[_e]!=="none"?c[_e]:"")),i.scale=i.rotate=i.translate="none"),C=$o(e,r.svg),r.svg&&(r.uncache?(ee=e.getBBox(),u=r.xOrigin-ee.x+"px "+(r.yOrigin-ee.y)+"px",H=""):H=!t&&e.getAttribute("data-svg-origin"),Ro(e,H||u,!!H||r.originIsAbsolute,r.smooth!==!1,C)),m=r.xOrigin||0,v=r.yOrigin||0,C!==Tn&&(I=C[0],z=C[1],O=C[2],R=C[3],f=$=C[4],d=N=C[5],C.length===6?(l=Math.sqrt(I*I+z*z),g=Math.sqrt(R*R+O*O),p=I||z?Ur(z,I)*hr:0,S=O||R?Ur(O,R)*hr+p:0,S&&(g*=Math.abs(Math.cos(S*Vr))),r.svg&&(f-=m-(m*I+v*O),d-=v-(m*z+v*R))):(Pe=C[6],q=C[7],G=C[8],U=C[9],F=C[10],Z=C[11],f=C[12],d=C[13],h=C[14],T=Ur(Pe,F),_=T*hr,T&&(M=Math.cos(-T),W=Math.sin(-T),H=$*M+G*W,ee=N*M+U*W,K=Pe*M+F*W,G=$*-W+G*M,U=N*-W+U*M,F=Pe*-W+F*M,Z=q*-W+Z*M,$=H,N=ee,Pe=K),T=Ur(-O,F),w=T*hr,T&&(M=Math.cos(-T),W=Math.sin(-T),H=I*M-G*W,ee=z*M-U*W,K=O*M-F*W,Z=R*W+Z*M,I=H,z=ee,O=K),T=Ur(z,I),p=T*hr,T&&(M=Math.cos(T),W=Math.sin(T),H=I*M+z*W,ee=$*M+N*W,z=z*M-I*W,N=N*M-$*W,I=H,$=ee),_&&Math.abs(_)+Math.abs(p)>359.9&&(_=p=0,w=180-w),l=xe(Math.sqrt(I*I+z*z+O*O)),g=xe(Math.sqrt(N*N+Pe*Pe)),T=Ur($,N),S=Math.abs(T)>2e-4?T*hr:0,P=Z?1/(Z<0?-Z:Z):0),r.svg&&(H=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Va(ct(e,_e)),H&&e.setAttribute("transform",H))),Math.abs(S)>90&&Math.abs(S)<270&&(o?(l*=-1,S+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,S+=S<=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=h+s,r.scaleX=xe(l),r.scaleY=xe(g),r.rotation=xe(p)+a,r.rotationX=xe(_)+a,r.rotationY=xe(w)+a,r.skewX=S+a,r.skewY=b+a,r.transformPerspective=P+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(i[Ke]=ui(u)),r.xOffset=r.yOffset=0,r.force3D=Qe.force3D,r.renderTransform=r.svg?Cf:za?qa:Sf,r.uncache=0,r},ui=function(e){return(e=e.split(" "))[0]+" "+e[1]},Io=function(e,t,r){var i=Be(t);return xe(parseFloat(t)+parseFloat(Zt(e,"x",r+"px",i)))+i},Sf=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,qa(e,t)},gr="0deg",Pn="0px",mr=") ",qa=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,h=r.skewX,l=r.skewY,g=r.scaleX,p=r.scaleY,_=r.transformPerspective,w=r.force3D,S=r.target,b=r.zOrigin,P="",m=w==="auto"&&e&&e!==1||w===!0;if(b&&(d!==gr||f!==gr)){var v=parseFloat(f)*Vr,C=Math.sin(v),T=Math.cos(v),M;v=parseFloat(d)*Vr,M=Math.cos(v),s=Io(S,s,C*M*-b),a=Io(S,a,-Math.sin(v)*-b),c=Io(S,c,T*M*-b+b)}_!==Pn&&(P+="perspective("+_+mr),(i||o)&&(P+="translate("+i+"%, "+o+"%) "),(m||s!==Pn||a!==Pn||c!==Pn)&&(P+=c!==Pn||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),(h!==gr||l!==gr)&&(P+="skew("+h+", "+l+mr),(g!==1||p!==1)&&(P+="scale("+g+", "+p+mr),S.style[_e]=P||"translate(0, 0)"},Cf=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,h=r.scaleY,l=r.target,g=r.xOrigin,p=r.yOrigin,_=r.xOffset,w=r.yOffset,S=r.forceCSS,b=parseFloat(s),P=parseFloat(a),m,v,C,T,M;c=parseFloat(c),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,c+=f),c||u?(c*=Vr,u*=Vr,m=Math.cos(c)*d,v=Math.sin(c)*d,C=Math.sin(c-u)*-h,T=Math.cos(c-u)*h,u&&(f*=Vr,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*=M,v*=M)),m=xe(m),v=xe(v),C=xe(C),T=xe(T)):(m=d,T=h,v=C=0),(b&&!~(s+"").indexOf("px")||P&&!~(a+"").indexOf("px"))&&(b=Zt(l,"x",s,"px"),P=Zt(l,"y",a,"px")),(g||p||_||w)&&(b=xe(b+g-(g*m+p*C)+_),P=xe(P+p-(g*v+p*T)+w)),(i||o)&&(M=l.getBBox(),b=xe(b+i/100*M.width),P=xe(P+o/100*M.height)),M="matrix("+m+","+v+","+C+","+T+","+b+","+P+")",l.setAttribute("transform",M),S&&(l.style[_e]=M)},Tf=function(e,t,r,i,o){var s=360,a=Oe(o),c=parseFloat(o)*(a&&~o.indexOf("rad")?hr:1),u=c-i,f=i+u+"deg",d,h;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*Aa)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Aa)%s-~~(u/s)*s)),e._pt=h=new qe(e._pt,t,r,i,u,lf),h.e=f,h.u="deg",e._props.push(r),h},Ga=function(e,t){for(var r in t)e[r]=t[r];return e},kf=function(e,t,r){var i=Ga({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,f,d,h,l,g;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[_e]=t,a=kn(r,1),pr(r,_e),r.setAttribute("transform",u)):(u=getComputedStyle(r)[_e],s[_e]=t,a=kn(r,1),s[_e]=u);for(c in Lt)u=i[c],f=a[c],u!==f&&o.indexOf(c)<0&&(l=Be(u),g=Be(f),d=l!==g?Zt(r,c,u,g):parseFloat(u),h=parseFloat(f),e._pt=new qe(e._pt,a,c,d,h-d,Oo),e._pt.u=g||0,e._props.push(c));Ga(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});ci[e>1?"border"+n:n]=function(a,c,u,f,d){var h,l;if(arguments.length<4)return h=s.map(function(g){return zt(a,g,u)}),l=h.join(" "),l.split(h[0]).length===5?h[0]:l;h=(f+"").split(" "),l={},s.forEach(function(g,p){return l[g]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(c,l,d)}});var Ka={name:"css",register:Ao,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,h,l,g,p,_,w,S,b,P,m,v,C,T;Po||Ao(),this.styles=this.styles||La(e),T=this.styles.props,this.tween=r;for(p in t)if(p!=="autoRound"&&(f=t[p],!(Je[p]&&va(p,t,r,i,e,o)))){if(l=typeof f,g=ci[p],l==="function"&&(f=f.call(r,i,e,o),l=typeof f),l==="string"&&~f.indexOf("random(")&&(f=xn(f)),g)g(this,e,p,f,r)&&(C=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),f+="",qt.lastIndex=0,qt.test(u)||(_=Be(u),w=Be(f)),w?_!==w&&(u=Zt(e,p,u,w)+w):_&&(f+=_),this.add(a,"setProperty",u,f,i,o,0,0,p),s.push(p),T.push(p,0,a[p]);else if(l!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(r,i,e,o):c[p],Oe(u)&&~u.indexOf("random(")&&(u=xn(u)),Be(u+"")||u==="auto"||(u+=Qe.units[p]||Be(zt(e,p))||""),(u+"").charAt(1)==="="&&(u=zt(e,p))):u=zt(e,p),h=parseFloat(u),S=l==="string"&&f.charAt(1)==="="&&f.substr(0,2),S&&(f=f.substr(2)),d=parseFloat(f),p in Mt&&(p==="autoAlpha"&&(h===1&&zt(e,"visibility")==="hidden"&&d&&(h=0),T.push("visibility",0,a.visibility),Qt(this,a,"visibility",h?"inherit":"hidden",d?"inherit":"hidden",!d)),p!=="scale"&&p!=="transform"&&(p=Mt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),b=p in Lt,b){if(this.styles.save(p),l==="string"&&f.substring(0,6)==="var(--"&&(f=ct(e,f.substring(4,f.indexOf(")"))),d=parseFloat(f)),P||(m=e._gsap,m.renderTransform&&!t.parseTransform||kn(e,t.parseTransform),v=t.smoothOrigin!==!1&&m.smooth,P=this._pt=new qe(this._pt,a,_e,0,1,m.renderTransform,m,0,-1),P.dep=1),p==="scale")this._pt=new qe(this._pt,m,"scaleY",m.scaleY,(S?Fr(m.scaleY,S+d):d)-m.scaleY||0,Oo),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){T.push(Ke,0,a[Ke]),f=vf(f),m.svg?Ro(e,f,0,v,0,this):(w=parseFloat(f.split(" ")[2])||0,w!==m.zOrigin&&Qt(this,m,"zOrigin",m.zOrigin,w),Qt(this,a,p,ui(u),ui(f)));continue}else if(p==="svgOrigin"){Ro(e,f,1,v,0,this);continue}else if(p in Xa){Tf(this,m,p,h,S?Fr(h,S+f):f);continue}else if(p==="smoothOrigin"){Qt(this,m,"smooth",m.smooth,f);continue}else if(p==="force3D"){m[p]=f;continue}else if(p==="transform"){kf(this,f,e);continue}}else p in a||(p=qr(p)||p);if(b||(d||d===0)&&(h||h===0)&&!af.test(f)&&p in a)_=(u+"").substr((h+"").length),d||(d=0),w=Be(f)||(p in Qe.units?Qe.units[p]:_),_!==w&&(h=Zt(e,p,u,w)),this._pt=new qe(this._pt,b?m:a,p,h,(S?Fr(h,S+d):d)-h,!b&&(w==="px"||p==="zIndex")&&t.autoRound!==!1?uf:Oo),this._pt.u=w||0,_!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=cf);else if(p in a)wf.call(this,e,p,u,S?S+f:f);else if(p in e)this.add(e,p,u||e[p],S?S+f:f,i,o);else if(p!=="parseTransform"){ro(p,f);continue}b||(p in a?T.push(p,0,a[p]):typeof e[p]=="function"?T.push(p,2,e[p]()):T.push(p,1,u||e[p])),s.push(p)}}C&&Pa(this)},render:function(e,t){if(t.tween._time||!Eo())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:zt,aliases:Mt,getSetter:function(e,t,r){var i=Mt[t];return i&&i.indexOf(",")<0&&(t=i),t in Lt&&t!==Ke&&(e._gsap.x||zt(e,"x"))?r&&Da===r?t==="scale"?pf:hf:(Da=r||{})&&(t==="scale"?gf:mf):e.style&&!Ki(e.style[t])?ff:~t.indexOf("-")?df:bo(e,t)},core:{_removeProperty:pr,_getMatrix:$o}};Ge.utils.checkPrefix=qr,Ge.core.getStyleSaver=La,(function(n,e,t,r){var i=Ue(n+","+e+","+t,function(o){Lt[o]=1});Ue(e,function(o){Qe.units[o]="deg",Xa[o]=1}),Mt[i[13]]=n+","+e,Ue(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"),Ue("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Qe.units[n]="px"}),Ge.registerPlugin(Ka);var j=Ge.registerPlugin(Ka)||Ge;j.core.Tween;/*!
15
+ */var Oa,Qt,Ur,Po,pr,Da,Eo,of=function(){return typeof window<"u"},zt={},gr=180/Math.PI,qr=Math.PI/180,Gr=Math.atan2,Aa=1e8,Mo=/([A-Z])/g,sf=/(left|right|width|margin|padding|x)/i,af=/[\s,\(]\S/,Mt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Oo=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},lf=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)},cf=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)},uf=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Ra=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},$a=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},ff=function(e,t,r){return e.style[t]=r},df=function(e,t,r){return e.style.setProperty(t,r)},hf=function(e,t,r){return e._gsap[t]=r},pf=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},gf=function(e,t,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},mf=function(e,t,r,i,o){var s=e._gsap;s[t]=r,s.renderTransform(o,s)},me="transform",Qe=me+"Origin",_f=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=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===Qe&&(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(Qe,t,"")),e=me}(o||t)&&this.props.push(e,t,o[e])},Ia=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},yf=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(Mo,"-$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=Eo(),(!o||!o.isStart)&&!r[me]&&(Ia(r),i.zOrigin&&r[Qe]&&(r[Qe]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},La=function(e,t){var r={target:e,props:[],revert:yf,save:_f};return e._gsap||Ke.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(i){return r.save(i)}),r},za,Do=function(e,t){var r=Qt.createElementNS?Qt.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Qt.createElement(e);return r&&r.style?r:Qt.createElement(e)},ut=function n(e,t,r){var i=getComputedStyle(e);return i[t]||i.getPropertyValue(t.replace(Mo,"-$1").toLowerCase())||i.getPropertyValue(t)||!r&&n(e,Kr(t)||t,1)||""},Na="O,Moz,ms,Ms,Webkit".split(","),Kr=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--&&!(Na[s]+e in o););return s<0?null:(s===3?"ms":s>=0?Na[s]:"")+e},Ao=function(){of()&&window.document&&(Oa=window,Qt=Oa.document,Ur=Qt.documentElement,pr=Do("div")||{style:{}},Do("div"),me=Kr(me),Qe=me+"Origin",pr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",za=!!Kr("perspective"),Eo=Ke.core.reverting,Po=1)},Fa=function(e){var t=e.ownerSVGElement,r=Do("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),Ur.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),Ur.removeChild(r),o},Ba=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Wa=function(e){var t,r;try{t=e.getBBox()}catch{t=Fa(e),r=1}return t&&(t.width||t.height)||r||(t=Fa(e)),t&&!t.width&&!t.x&&!t.y?{x:+Ba(e,["x","cx","x1"])||0,y:+Ba(e,["y","cy","y1"])||0,width:0,height:0}:t},Ya=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Wa(e))},mr=function(e,t){if(t){var r=e.style,i;t in zt&&t!==Qe&&(t=me),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace(Mo,"-$1").toLowerCase())):r.removeAttribute(t)}},Zt=function(e,t,r,i,o,s){var a=new Ge(e._pt,t,r,0,1,s?$a:Ra);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},Ha={deg:1,rad:1,turn:1},xf={grid:1,flex:1},Jt=function n(e,t,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=pr.style,c=sf.test(t),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(c?"Width":"Height"),d=100,h=i==="px",l=i==="%",g,p,y,w;if(i===s||!o||Ha[i]||Ha[s])return o;if(s!=="px"&&!h&&(o=n(e,t,r,"px")),w=e.getCTM&&Ya(e),(l||s==="%")&&(zt[t]||~t.indexOf("adius")))return g=w?e.getBBox()[c?"width":"height"]:e[f],xe(l?o/g*d:o/100*g);if(a[c?"width":"height"]=d+(h?s:i),p=i!=="rem"&&~t.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Qt||!p.appendChild)&&(p=Qt.body),y=p._gsap,y&&l&&y.width&&c&&y.time===nt.time&&!y.uncache)return xe(o/y.width*d);if(l&&(t==="height"||t==="width")){var S=e.style[t];e.style[t]=d+i,g=e[f],S?e.style[t]=S:mr(e,t)}else(l||s==="%")&&!xf[ut(p,"display")]&&(a.position=ut(e,"position")),p===e&&(a.position="static"),p.appendChild(pr),g=pr[f],p.removeChild(pr),a.position="absolute";return c&&l&&(y=cr(p),y.time=nt.time,y.width=p[f]),xe(h?g*o/d:g&&o?d/g*o:0)},Nt=function(e,t,r,i){var o;return Po||Ao(),t in Mt&&t!=="transform"&&(t=Mt[t],~t.indexOf(",")&&(t=t.split(",")[0])),zt[t]&&t!=="transform"?(o=En(e,i),o=t!=="transformOrigin"?o[t]:o.svg?o.origin:ui(ut(e,Qe))+" "+o.zOrigin+"px"):(o=e.style[t],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=ci[t]&&ci[t](e,t,r)||ut(e,t)||Vs(e,t)||(t==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Jt(e,t,o,r)+r:o},wf=function(e,t,r,i){if(!r||r==="none"){var o=Kr(t,e,1),s=o&&ut(e,o,1);s&&s!==r?(t=o,r=s):t==="borderColor"&&(r=ut(e,"borderTopColor"))}var a=new Ge(this._pt,e.style,t,0,1,ka),c=0,u=0,f,d,h,l,g,p,y,w,S,b,P,m;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=ut(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(p=e.style[t],e.style[t]=i,i=ut(e,t)||i,p?e.style[t]=p:mr(e,t)),f=[r,i],ma(f),r=f[0],i=f[1],h=r.match(Br)||[],m=i.match(Br)||[],m.length){for(;d=Br.exec(i);)y=d[0],S=i.substring(c,d.index),g?g=(g+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(g=1),y!==(p=h[u++]||"")&&(l=parseFloat(p)||0,P=p.substr((l+"").length),y.charAt(1)==="="&&(y=Wr(l,y)+P),w=parseFloat(y),b=y.substr((w+"").length),c=Br.lastIndex-b.length,b||(b=b||Ze.units[t]||P,c===i.length&&(i+=b,a.e+=b)),P!==b&&(l=Jt(e,t,p,b)||0),a._pt={_next:a._pt,p:S||u===1?S:",",s:l,c:w-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"?$a:Ra;return Fs.test(i)&&(a.e=0),this._pt=a,a},ja={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},vf=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]=ja[r]||r,t[1]=ja[i]||i,t.join(" ")},bf=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"?Qe:me),mr(r,a);c&&(mr(r,me),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",En(r,1),s.uncache=1,Ia(i)))}},ci={clearProps:function(e,t,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new Ge(e._pt,t,r,0,0,bf);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},Pn=[1,0,0,1,0,0],Xa={},Va=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ua=function(e){var t=ut(e,me);return Va(t)?Pn:t.substr(7).match(Ns).map(xe)},Ro=function(e,t){var r=e._gsap||cr(e),i=e.style,o=Ua(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"?Pn:o):(o===Pn&&!e.offsetParent&&e!==Ur&&!r.svg&&(c=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,Ur.appendChild(e)),o=Ua(e),c?i.display=c:mr(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):Ur.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},$o=function(e,t,r,i,o,s){var a=e._gsap,c=o||Ro(e,!0),u=a.xOrigin||0,f=a.yOrigin||0,d=a.xOffset||0,h=a.yOffset||0,l=c[0],g=c[1],p=c[2],y=c[3],w=c[4],S=c[5],b=t.split(" "),P=parseFloat(b[0])||0,m=parseFloat(b[1])||0,v,C,k,M;r?c!==Pn&&(C=l*y-g*p)&&(k=P*(y/C)+m*(-p/C)+(p*S-y*w)/C,M=P*(-g/C)+m*(l/C)-(l*S-g*w)/C,P=k,m=M):(v=Wa(e),P=v.x+(~b[0].indexOf("%")?P/100*v.width:P),m=v.y+(~(b[1]||b[0]).indexOf("%")?m/100*v.height:m)),i||i!==!1&&a.smooth?(w=P-u,S=m-f,a.xOffset=d+(w*l+S*p)-w,a.yOffset=h+(w*g+S*y)-S):a.xOffset=a.yOffset=0,a.xOrigin=P,a.yOrigin=m,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!r,e.style[Qe]="0px 0px",s&&(Zt(s,a,"xOrigin",u,P),Zt(s,a,"yOrigin",f,m),Zt(s,a,"xOffset",d,a.xOffset),Zt(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",P+" "+m)},En=function(e,t){var r=e._gsap||new wa(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=ut(e,Qe)||"0",f,d,h,l,g,p,y,w,S,b,P,m,v,C,k,M,W,I,z,O,$,R,N,H,ee,K,G,U,F,q,Z,Pe;return f=d=h=p=y=w=S=b=P=0,l=g=1,r.svg=!!(e.getCTM&&Ya(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=Ro(e,r.svg),r.svg&&(r.uncache?(ee=e.getBBox(),u=r.xOrigin-ee.x+"px "+(r.yOrigin-ee.y)+"px",H=""):H=!t&&e.getAttribute("data-svg-origin"),$o(e,H||u,!!H||r.originIsAbsolute,r.smooth!==!1,C)),m=r.xOrigin||0,v=r.yOrigin||0,C!==Pn&&(I=C[0],z=C[1],O=C[2],$=C[3],f=R=C[4],d=N=C[5],C.length===6?(l=Math.sqrt(I*I+z*z),g=Math.sqrt($*$+O*O),p=I||z?Gr(z,I)*gr:0,S=O||$?Gr(O,$)*gr+p:0,S&&(g*=Math.abs(Math.cos(S*qr))),r.svg&&(f-=m-(m*I+v*O),d-=v-(m*z+v*$))):(Pe=C[6],q=C[7],G=C[8],U=C[9],F=C[10],Z=C[11],f=C[12],d=C[13],h=C[14],k=Gr(Pe,F),y=k*gr,k&&(M=Math.cos(-k),W=Math.sin(-k),H=R*M+G*W,ee=N*M+U*W,K=Pe*M+F*W,G=R*-W+G*M,U=N*-W+U*M,F=Pe*-W+F*M,Z=q*-W+Z*M,R=H,N=ee,Pe=K),k=Gr(-O,F),w=k*gr,k&&(M=Math.cos(-k),W=Math.sin(-k),H=I*M-G*W,ee=z*M-U*W,K=O*M-F*W,Z=$*W+Z*M,I=H,z=ee,O=K),k=Gr(z,I),p=k*gr,k&&(M=Math.cos(k),W=Math.sin(k),H=I*M+z*W,ee=R*M+N*W,z=z*M-I*W,N=N*M-R*W,I=H,R=ee),y&&Math.abs(y)+Math.abs(p)>359.9&&(y=p=0,w=180-w),l=xe(Math.sqrt(I*I+z*z+O*O)),g=xe(Math.sqrt(N*N+Pe*Pe)),k=Gr(R,N),S=Math.abs(k)>2e-4?k*gr:0,P=Z?1/(Z<0?-Z:Z):0),r.svg&&(H=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Va(ut(e,me)),H&&e.setAttribute("transform",H))),Math.abs(S)>90&&Math.abs(S)<270&&(o?(l*=-1,S+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,S+=S<=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=h+s,r.scaleX=xe(l),r.scaleY=xe(g),r.rotation=xe(p)+a,r.rotationX=xe(y)+a,r.rotationY=xe(w)+a,r.skewX=S+a,r.skewY=b+a,r.transformPerspective=P+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(i[Qe]=ui(u)),r.xOffset=r.yOffset=0,r.force3D=Ze.force3D,r.renderTransform=r.svg?Cf:za?qa:Sf,r.uncache=0,r},ui=function(e){return(e=e.split(" "))[0]+" "+e[1]},Io=function(e,t,r){var i=We(t);return xe(parseFloat(t)+parseFloat(Jt(e,"x",r+"px",i)))+i},Sf=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,qa(e,t)},_r="0deg",Mn="0px",yr=") ",qa=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,h=r.skewX,l=r.skewY,g=r.scaleX,p=r.scaleY,y=r.transformPerspective,w=r.force3D,S=r.target,b=r.zOrigin,P="",m=w==="auto"&&e&&e!==1||w===!0;if(b&&(d!==_r||f!==_r)){var v=parseFloat(f)*qr,C=Math.sin(v),k=Math.cos(v),M;v=parseFloat(d)*qr,M=Math.cos(v),s=Io(S,s,C*M*-b),a=Io(S,a,-Math.sin(v)*-b),c=Io(S,c,k*M*-b+b)}y!==Mn&&(P+="perspective("+y+yr),(i||o)&&(P+="translate("+i+"%, "+o+"%) "),(m||s!==Mn||a!==Mn||c!==Mn)&&(P+=c!==Mn||m?"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),(h!==_r||l!==_r)&&(P+="skew("+h+", "+l+yr),(g!==1||p!==1)&&(P+="scale("+g+", "+p+yr),S.style[me]=P||"translate(0, 0)"},Cf=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,h=r.scaleY,l=r.target,g=r.xOrigin,p=r.yOrigin,y=r.xOffset,w=r.yOffset,S=r.forceCSS,b=parseFloat(s),P=parseFloat(a),m,v,C,k,M;c=parseFloat(c),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,c+=f),c||u?(c*=qr,u*=qr,m=Math.cos(c)*d,v=Math.sin(c)*d,C=Math.sin(c-u)*-h,k=Math.cos(c-u)*h,u&&(f*=qr,M=Math.tan(u-f),M=Math.sqrt(1+M*M),C*=M,k*=M,f&&(M=Math.tan(f),M=Math.sqrt(1+M*M),m*=M,v*=M)),m=xe(m),v=xe(v),C=xe(C),k=xe(k)):(m=d,k=h,v=C=0),(b&&!~(s+"").indexOf("px")||P&&!~(a+"").indexOf("px"))&&(b=Jt(l,"x",s,"px"),P=Jt(l,"y",a,"px")),(g||p||y||w)&&(b=xe(b+g-(g*m+p*C)+y),P=xe(P+p-(g*v+p*k)+w)),(i||o)&&(M=l.getBBox(),b=xe(b+i/100*M.width),P=xe(P+o/100*M.height)),M="matrix("+m+","+v+","+C+","+k+","+b+","+P+")",l.setAttribute("transform",M),S&&(l.style[me]=M)},Tf=function(e,t,r,i,o){var s=360,a=De(o),c=parseFloat(o)*(a&&~o.indexOf("rad")?gr:1),u=c-i,f=i+u+"deg",d,h;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*Aa)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Aa)%s-~~(u/s)*s)),e._pt=h=new Ge(e._pt,t,r,i,u,lf),h.e=f,h.u="deg",e._props.push(r),h},Ga=function(e,t){for(var r in t)e[r]=t[r];return e},kf=function(e,t,r){var i=Ga({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,c,u,f,d,h,l,g;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[me]=t,a=En(r,1),mr(r,me),r.setAttribute("transform",u)):(u=getComputedStyle(r)[me],s[me]=t,a=En(r,1),s[me]=u);for(c in zt)u=i[c],f=a[c],u!==f&&o.indexOf(c)<0&&(l=We(u),g=We(f),d=l!==g?Jt(r,c,u,g):parseFloat(u),h=parseFloat(f),e._pt=new Ge(e._pt,a,c,d,h-d,Oo),e._pt.u=g||0,e._props.push(c));Ga(a,i)};qe("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});ci[e>1?"border"+n:n]=function(a,c,u,f,d){var h,l;if(arguments.length<4)return h=s.map(function(g){return Nt(a,g,u)}),l=h.join(" "),l.split(h[0]).length===5?h[0]:l;h=(f+"").split(" "),l={},s.forEach(function(g,p){return l[g]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(c,l,d)}});var Ka={name:"css",register:Ao,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,h,l,g,p,y,w,S,b,P,m,v,C,k;Po||Ao(),this.styles=this.styles||La(e),k=this.styles.props,this.tween=r;for(p in t)if(p!=="autoRound"&&(f=t[p],!(et[p]&&va(p,t,r,i,e,o)))){if(l=typeof f,g=ci[p],l==="function"&&(f=f.call(r,i,e,o),l=typeof f),l==="string"&&~f.indexOf("random(")&&(f=vn(f)),g)g(this,e,p,f,r)&&(C=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),f+="",Gt.lastIndex=0,Gt.test(u)||(y=We(u),w=We(f)),w?y!==w&&(u=Jt(e,p,u,w)+w):y&&(f+=y),this.add(a,"setProperty",u,f,i,o,0,0,p),s.push(p),k.push(p,0,a[p]);else if(l!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(r,i,e,o):c[p],De(u)&&~u.indexOf("random(")&&(u=vn(u)),We(u+"")||u==="auto"||(u+=Ze.units[p]||We(Nt(e,p))||""),(u+"").charAt(1)==="="&&(u=Nt(e,p))):u=Nt(e,p),h=parseFloat(u),S=l==="string"&&f.charAt(1)==="="&&f.substr(0,2),S&&(f=f.substr(2)),d=parseFloat(f),p in Mt&&(p==="autoAlpha"&&(h===1&&Nt(e,"visibility")==="hidden"&&d&&(h=0),k.push("visibility",0,a.visibility),Zt(this,a,"visibility",h?"inherit":"hidden",d?"inherit":"hidden",!d)),p!=="scale"&&p!=="transform"&&(p=Mt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),b=p in zt,b){if(this.styles.save(p),l==="string"&&f.substring(0,6)==="var(--"&&(f=ut(e,f.substring(4,f.indexOf(")"))),d=parseFloat(f)),P||(m=e._gsap,m.renderTransform&&!t.parseTransform||En(e,t.parseTransform),v=t.smoothOrigin!==!1&&m.smooth,P=this._pt=new Ge(this._pt,a,me,0,1,m.renderTransform,m,0,-1),P.dep=1),p==="scale")this._pt=new Ge(this._pt,m,"scaleY",m.scaleY,(S?Wr(m.scaleY,S+d):d)-m.scaleY||0,Oo),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){k.push(Qe,0,a[Qe]),f=vf(f),m.svg?$o(e,f,0,v,0,this):(w=parseFloat(f.split(" ")[2])||0,w!==m.zOrigin&&Zt(this,m,"zOrigin",m.zOrigin,w),Zt(this,a,p,ui(u),ui(f)));continue}else if(p==="svgOrigin"){$o(e,f,1,v,0,this);continue}else if(p in Xa){Tf(this,m,p,h,S?Wr(h,S+f):f);continue}else if(p==="smoothOrigin"){Zt(this,m,"smooth",m.smooth,f);continue}else if(p==="force3D"){m[p]=f;continue}else if(p==="transform"){kf(this,f,e);continue}}else p in a||(p=Kr(p)||p);if(b||(d||d===0)&&(h||h===0)&&!af.test(f)&&p in a)y=(u+"").substr((h+"").length),d||(d=0),w=We(f)||(p in Ze.units?Ze.units[p]:y),y!==w&&(h=Jt(e,p,u,w)),this._pt=new Ge(this._pt,b?m:a,p,h,(S?Wr(h,S+d):d)-h,!b&&(w==="px"||p==="zIndex")&&t.autoRound!==!1?uf:Oo),this._pt.u=w||0,y!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=cf);else if(p in a)wf.call(this,e,p,u,S?S+f:f);else if(p in e)this.add(e,p,u||e[p],S?S+f:f,i,o);else if(p!=="parseTransform"){ro(p,f);continue}b||(p in a?k.push(p,0,a[p]):typeof e[p]=="function"?k.push(p,2,e[p]()):k.push(p,1,u||e[p])),s.push(p)}}C&&Pa(this)},render:function(e,t){if(t.tween._time||!Eo())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 zt&&t!==Qe&&(e._gsap.x||Nt(e,"x"))?r&&Da===r?t==="scale"?pf:hf:(Da=r||{})&&(t==="scale"?gf:mf):e.style&&!Ki(e.style[t])?ff:~t.indexOf("-")?df:bo(e,t)},core:{_removeProperty:mr,_getMatrix:Ro}};Ke.utils.checkPrefix=Kr,Ke.core.getStyleSaver=La,(function(n,e,t,r){var i=qe(n+","+e+","+t,function(o){zt[o]=1});qe(e,function(o){Ze.units[o]="deg",Xa[o]=1}),Mt[i[13]]=n+","+e,qe(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"),qe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Ze.units[n]="px"}),Ke.registerPlugin(Ka);var j=Ke.registerPlugin(Ka)||Ke;j.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 En,Gr,Lo,Pf=()=>Lo||Bo.register(window.gsap),Qa=typeof Intl<"u"?new Intl.Segmenter:0,fi=n=>typeof n=="string"?fi(document.querySelectorAll(n)):"length"in n?Array.from(n):[n],Za=n=>fi(n).filter(e=>e instanceof HTMLElement),zo=[],No=function(){},Ef=/\s+/g,Ja=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"),el={left:0,top:0,width:0,height:0},tl=(n,e)=>{if(e){let t=new Set(n.join("").match(e)||zo),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},rl=n=>window.getComputedStyle(n).display==="inline"&&(n.style.display="inline-block"),Kr=(n,e,t)=>e.insertBefore(typeof n=="string"?document.createTextNode(n):n,t),Fo=(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),h=t.length+1;return r&&(d.className=r+(c?" "+r+h:"")),s&&d.style.setProperty("--"+n,h+""),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},Mf=(n,e,t,r)=>{let i=Fo("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()}},nl=(n,e,t,r,i,o,s,a,c,u)=>{var f;let d=Array.from(n.childNodes),h=0,{wordDelimiter:l,reduceWhiteSpace:g=!0,prepareText:p}=e,_=n.getBoundingClientRect(),w=_,S=!g&&window.getComputedStyle(n).whiteSpace.substring(0,3)==="pre",b=0,P=t.collection,m,v,C,T,M,W,I,z,O,R,$,N,H,ee,K,G,U,F;for(typeof l=="object"?(C=l.delimiter||l,v=l.replaceWith||""):v=l===""?"":l||" ",m=v!==" ";h<d.length;h++)if(T=d[h],T.nodeType===3){for(K=T.textContent||"",g?K=K.replace(Ef," "):S&&(K=K.replace(/\n/g,v+`
22
- `)),p&&(K=p(K,n)),T.textContent=K,M=v||C?K.split(C||v):K.match(a)||zo,U=M[M.length-1],z=m?U.slice(-1)===" ":!U,U||M.pop(),w=_,I=m?M[0].charAt(0)===" ":!M[0],I&&Kr(" ",n,T),M[0]||M.shift(),tl(M,c),o&&u||(T.textContent=""),O=1;O<=M.length;O++)if(G=M[O-1],!g&&S&&G.charAt(0)===`
23
- `&&((f=T.previousSibling)==null||f.remove(),Kr(document.createElement("br"),n,T),G=G.slice(1)),!g&&G==="")Kr(v,n,T);else if(G===" ")n.insertBefore(document.createTextNode(" "),T);else{if(m&&G.charAt(0)===" "&&Kr(" ",n,T),b&&O===1&&!I&&P.indexOf(b.parentNode)>-1?(W=P[P.length-1],W.appendChild(document.createTextNode(r?"":G))):(W=t(r?"":G),Kr(W,n,T),b&&O===1&&!I&&W.insertBefore(b,W.firstChild)),r)for($=Qa?tl([...Qa.segment(G)].map(q=>q.segment),c):G.match(a)||zo,F=0;F<$.length;F++)W.appendChild($[F]===" "?document.createTextNode(" "):r($[F]));if(o&&u){if(K=T.textContent=K.substring(G.length+1,K.length),R=W.getBoundingClientRect(),R.top>w.top&&R.left<=w.left){for(N=n.cloneNode(),H=n.childNodes[0];H&&H!==W;)ee=H,H=H.nextSibling,N.appendChild(ee);n.parentNode.insertBefore(N,n),i&&rl(N)}w=R}(O<M.length||z)&&Kr(O>=M.length?" ":m&&G.slice(-1)===" "?" "+v:v,n,T)}n.removeChild(T),b=0}else T.nodeType===1&&(s&&s.indexOf(T)>-1?(P.indexOf(T.previousSibling)>-1&&P[P.length-1].appendChild(T),b=T):(nl(T,e,t,r,i,o,s,a,c,!0),b=0),i&&rl(T))};const il=class fu{constructor(e,t){this.isSplit=!1,Pf(),this.elements=Za(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)})},No(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,h=t.indexOf("words")>-1,l=d&&!h&&!f,g=c&&("push"in c?new RegExp("(?:"+c.join("|")+")","gu"):c),p=g?new RegExp(g.source+"|"+Ja.source,"gu"):Ja,_=!!e.ignore&&Za(e.ignore),{orig:w,animTime:S,obs:b}=this._data,P;return(d||h||f)&&(this.elements.forEach((m,v)=>{w[v]={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 C=[],T=[],M=[],W=d?Fo("char",e,C):null,I=Fo("word",e,T),z,O,R,$;if(nl(m,e,I,W,l,i&&(f||l),_,p,g,!1),f){let N=fi(m.childNodes),H=Mf(m,N,e,M),ee,K=[],G=0,U=N.map(q=>q.nodeType===1?q.getBoundingClientRect():el),F=el;for(z=0;z<N.length;z++)ee=N[z],ee.nodeType===1&&(ee.nodeName==="BR"?(K.push(ee),H(G,z+1),G=z+1,F=U[G]):(z&&U[z].top>F.top&&U[z].left<=F.left&&(H(G,z),G=z),F=U[z]));G<z&&H(G,z),K.forEach(q=>{var Z;return(Z=q.parentNode)==null?void 0:Z.removeChild(q)})}if(!h){for(z=0;z<T.length;z++)if(O=T[z],d||!O.nextSibling||O.nextSibling.nodeType!==3)if(o&&!f){for(R=document.createElement("span"),R.style.whiteSpace="nowrap";O.firstChild;)R.appendChild(O.firstChild);O.replaceWith(R)}else O.replaceWith(...O.childNodes);else $=O.nextSibling,$&&$.nodeType===3&&($.textContent=(O.textContent||"")+($.textContent||""),O.remove());T.length=0,m.normalize()}this.lines.push(...M),this.words.push(...T),this.chars.push(...C)}),u&&this[u]&&this.masks.push(...this[u].map(m=>{let v=m.cloneNode();return m.replaceWith(v),v.appendChild(m),m.className&&(v.className=m.className.replace(/(\b\w+\b)/g,"$1-mask")),v.style.overflow="clip",v}))),this.isSplit=!0,Gr&&(a?Gr.addEventListener("loadingdone",this._split):Gr.status==="loading"&&console.warn("SplitText called before fonts loaded")),(P=s&&s(this))&&P.totalTime&&(this._data.anim=S?P.totalTime(S):P),f&&a&&this.elements.forEach((m,v)=>{w[v].width=m.offsetWidth,b&&b.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,Gr?.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 fu(e,t)}static register(e){En=En||e||window.gsap,En&&(fi=En.utils.toArray,No=En.core.context||No),!Lo&&window.innerWidth>0&&(Gr=document.fonts,Lo=!0)}};il.version="3.13.0";let Bo=il;var We=function(){return We=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},We.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 Of(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var Df=/^((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)-.*))$/,Af=Of(function(n){return Df.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),de="-ms-",Mn="-moz-",ie="-webkit-",ol="comm",di="rule",Wo="decl",$f="@import",sl="@keyframes",Rf="@layer",al=Math.abs,Yo=String.fromCharCode,Ho=Object.assign;function If(n,e){return De(n,0)^45?(((e<<2^De(n,0))<<2^De(n,1))<<2^De(n,2))<<2^De(n,3):0}function ll(n){return n.trim()}function Nt(n,e){return(n=e.exec(n))?n[0]:n}function Q(n,e,t){return n.replace(e,t)}function hi(n,e,t){return n.indexOf(e,t)}function De(n,e){return n.charCodeAt(e)|0}function Zr(n,e,t){return n.slice(e,t)}function Ot(n){return n.length}function cl(n){return n.length}function On(n,e){return e.push(n),n}function Lf(n,e){return n.map(e).join("")}function ul(n,e){return n.filter(function(t){return!Nt(t,e)})}var pi=1,Jr=1,fl=0,ut=0,Te=0,en="";function gi(n,e,t,r,i,o,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:o,line:pi,column:Jr,length:s,return:"",siblings:a}}function Jt(n,e){return Ho(gi("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function tn(n){for(;n.root;)n=Jt(n.root,{children:[n]});On(n,n.siblings)}function zf(){return Te}function Nf(){return Te=ut>0?De(en,--ut):0,Jr--,Te===10&&(Jr=1,pi--),Te}function _t(){return Te=ut<fl?De(en,ut++):0,Jr++,Te===10&&(Jr=1,pi++),Te}function _r(){return De(en,ut)}function mi(){return ut}function _i(n,e){return Zr(en,n,e)}function jo(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 Ff(n){return pi=Jr=1,fl=Ot(en=n),ut=0,[]}function Bf(n){return en="",n}function Xo(n){return ll(_i(ut-1,Vo(n===91?n+2:n===40?n+1:n)))}function Wf(n){for(;(Te=_r())&&Te<33;)_t();return jo(n)>2||jo(Te)>3?"":" "}function Yf(n,e){for(;--e&&_t()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return _i(n,mi()+(e<6&&_r()==32&&_t()==32))}function Vo(n){for(;_t();)switch(Te){case n:return ut;case 34:case 39:n!==34&&n!==39&&Vo(Te);break;case 40:n===41&&Vo(n);break;case 92:_t();break}return ut}function Hf(n,e){for(;_t()&&n+Te!==57;)if(n+Te===84&&_r()===47)break;return"/*"+_i(e,ut-1)+"*"+Yo(n===47?n:_t())}function jf(n){for(;!jo(_r());)_t();return _i(n,ut)}function Xf(n){return Bf(yi("",null,null,null,[""],n=Ff(n),0,[0],n))}function yi(n,e,t,r,i,o,s,a,c){for(var u=0,f=0,d=s,h=0,l=0,g=0,p=1,_=1,w=1,S=0,b="",P=i,m=o,v=r,C=b;_;)switch(g=S,S=_t()){case 40:if(g!=108&&De(C,d-1)==58){hi(C+=Q(Xo(S),"&","&\f"),"&\f",al(u?a[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:C+=Xo(S);break;case 9:case 10:case 13:case 32:C+=Wf(g);break;case 92:C+=Yf(mi()-1,7);continue;case 47:switch(_r()){case 42:case 47:On(Vf(Hf(_t(),mi()),e,t,c),c);break;default:C+="/"}break;case 123*p:a[u++]=Ot(C)*w;case 125*p:case 59:case 0:switch(S){case 0:case 125:_=0;case 59+f:w==-1&&(C=Q(C,/\f/g,"")),l>0&&Ot(C)-d&&On(l>32?hl(C+";",r,t,d-1,c):hl(Q(C," ","")+";",r,t,d-2,c),c);break;case 59:C+=";";default:if(On(v=dl(C,e,t,u,f,i,a,b,P=[],m=[],d,o),o),S===123)if(f===0)yi(C,e,v,v,P,o,d,a,m);else switch(h===99&&De(C,3)===110?100:h){case 100:case 108:case 109:case 115:yi(n,v,v,r&&On(dl(n,v,v,0,0,i,a,b,i,P=[],d,m),m),i,m,d,a,r?P:m);break;default:yi(C,v,v,v,[""],m,0,a,m)}}u=f=l=0,p=w=1,b=C="",d=s;break;case 58:d=1+Ot(C),l=g;default:if(p<1){if(S==123)--p;else if(S==125&&p++==0&&Nf()==125)continue}switch(C+=Yo(S),S*p){case 38:w=f>0?1:(C+="\f",-1);break;case 44:a[u++]=(Ot(C)-1)*w,w=1;break;case 64:_r()===45&&(C+=Xo(_t())),h=_r(),f=d=Ot(b=C+=jf(mi())),S++;break;case 45:g===45&&Ot(C)==2&&(p=0)}}return o}function dl(n,e,t,r,i,o,s,a,c,u,f,d){for(var h=i-1,l=i===0?o:[""],g=cl(l),p=0,_=0,w=0;p<r;++p)for(var S=0,b=Zr(n,h+1,h=al(_=s[p])),P=n;S<g;++S)(P=ll(_>0?l[S]+" "+b:Q(b,/&\f/g,l[S])))&&(c[w++]=P);return gi(n,e,t,i===0?di:a,c,u,f,d)}function Vf(n,e,t,r){return gi(n,e,t,ol,Yo(zf()),Zr(n,2,-2),0,r)}function hl(n,e,t,r,i){return gi(n,e,t,Wo,Zr(n,0,r),Zr(n,r+1,-1),r,i)}function pl(n,e,t){switch(If(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 Mn+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+n+Mn+n+de+n+n;case 5936:switch(De(n,e+11)){case 114:return ie+n+de+Q(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return ie+n+de+Q(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return ie+n+de+Q(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return ie+n+de+n+n;case 6165:return ie+n+de+"flex-"+n+n;case 5187:return ie+n+Q(n,/(\w+).+(:[^]+)/,ie+"box-$1$2"+de+"flex-$1$2")+n;case 5443:return ie+n+de+"flex-item-"+Q(n,/flex-|-self/g,"")+(Nt(n,/flex-|baseline/)?"":de+"grid-row-"+Q(n,/flex-|-self/g,""))+n;case 4675:return ie+n+de+"flex-line-pack"+Q(n,/align-content|flex-|-self/g,"")+n;case 5548:return ie+n+de+Q(n,"shrink","negative")+n;case 5292:return ie+n+de+Q(n,"basis","preferred-size")+n;case 6060:return ie+"box-"+Q(n,"-grow","")+ie+n+de+Q(n,"grow","positive")+n;case 4554:return ie+Q(n,/([^-])(transform)/g,"$1"+ie+"$2")+n;case 6187:return Q(Q(Q(n,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),n,"")+n;case 5495:case 3959:return Q(n,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return Q(Q(n,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+de+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+n+n;case 4200:if(!Nt(n,/flex-|baseline/))return de+"grid-column-align"+Zr(n,e)+n;break;case 2592:case 3360:return de+Q(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,i){return e=i,Nt(r.props,/grid-\w+-end/)})?~hi(n+(t=t[e].value),"span",0)?n:de+Q(n,"-start","")+n+de+"grid-row-span:"+(~hi(t,"span",0)?Nt(t,/\d+/):+Nt(t,/\d+/)-+Nt(n,/\d+/))+";":de+Q(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return Nt(r.props,/grid-\w+-start/)})?n:de+Q(Q(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return Q(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(Ot(n)-1-e>6)switch(De(n,e+1)){case 109:if(De(n,e+4)!==45)break;case 102:return Q(n,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Mn+(De(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~hi(n,"stretch",0)?pl(Q(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return Q(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,a,c,u){return de+i+":"+o+u+(s?de+i+"-span:"+(a?c:+c-+o)+u:"")+n});case 4949:if(De(n,e+6)===121)return Q(n,":",":"+ie)+n;break;case 6444:switch(De(n,De(n,14)===45?18:11)){case 120:return Q(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ie+(De(n,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+de+"$2box$3")+n;case 100:return Q(n,":",":"+de)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Q(n,"scroll-","scroll-snap-")+n}return n}function xi(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function Uf(n,e,t,r){switch(n.type){case Rf:if(n.children.length)break;case $f:case Wo:return n.return=n.return||n.value;case ol:return"";case sl:return n.return=n.value+"{"+xi(n.children,r)+"}";case di:if(!Ot(n.value=n.props.join(",")))return""}return Ot(t=xi(n.children,r))?n.return=n.value+"{"+t+"}":""}function qf(n){var e=cl(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 Gf(n){return function(e){e.root||(e=e.return)&&n(e)}}function Kf(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case Wo:n.return=pl(n.value,n.length,t);return;case sl:return xi([Jt(n,{value:Q(n.value,"@","@"+ie)})],r);case di:if(n.length)return Lf(t=n.props,function(i){switch(Nt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":tn(Jt(n,{props:[Q(i,/:(read-\w+)/,":"+Mn+"$1")]})),tn(Jt(n,{props:[i]})),Ho(n,{props:ul(t,r)});break;case"::placeholder":tn(Jt(n,{props:[Q(i,/:(plac\w+)/,":"+ie+"input-$1")]})),tn(Jt(n,{props:[Q(i,/:(plac\w+)/,":"+Mn+"$1")]})),tn(Jt(n,{props:[Q(i,/:(plac\w+)/,de+"input-$1")]})),tn(Jt(n,{props:[i]})),Ho(n,{props:ul(t,r)});break}return""})}}var Qf={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},yr=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",gl="active",ml="data-styled-version",wi="6.1.19",Uo=`/*!sc*/
21
+ */let On,Qr,Lo,Pf=()=>Lo||Bo.register(window.gsap),Qa=typeof Intl<"u"?new Intl.Segmenter:0,fi=n=>typeof n=="string"?fi(document.querySelectorAll(n)):"length"in n?Array.from(n):[n],Za=n=>fi(n).filter(e=>e instanceof HTMLElement),zo=[],No=function(){},Ef=/\s+/g,Ja=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"),el={left:0,top:0,width:0,height:0},tl=(n,e)=>{if(e){let t=new Set(n.join("").match(e)||zo),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},rl=n=>window.getComputedStyle(n).display==="inline"&&(n.style.display="inline-block"),Zr=(n,e,t)=>e.insertBefore(typeof n=="string"?document.createTextNode(n):n,t),Fo=(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),h=t.length+1;return r&&(d.className=r+(c?" "+r+h:"")),s&&d.style.setProperty("--"+n,h+""),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},Mf=(n,e,t,r)=>{let i=Fo("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()}},nl=(n,e,t,r,i,o,s,a,c,u)=>{var f;let d=Array.from(n.childNodes),h=0,{wordDelimiter:l,reduceWhiteSpace:g=!0,prepareText:p}=e,y=n.getBoundingClientRect(),w=y,S=!g&&window.getComputedStyle(n).whiteSpace.substring(0,3)==="pre",b=0,P=t.collection,m,v,C,k,M,W,I,z,O,$,R,N,H,ee,K,G,U,F;for(typeof l=="object"?(C=l.delimiter||l,v=l.replaceWith||""):v=l===""?"":l||" ",m=v!==" ";h<d.length;h++)if(k=d[h],k.nodeType===3){for(K=k.textContent||"",g?K=K.replace(Ef," "):S&&(K=K.replace(/\n/g,v+`
22
+ `)),p&&(K=p(K,n)),k.textContent=K,M=v||C?K.split(C||v):K.match(a)||zo,U=M[M.length-1],z=m?U.slice(-1)===" ":!U,U||M.pop(),w=y,I=m?M[0].charAt(0)===" ":!M[0],I&&Zr(" ",n,k),M[0]||M.shift(),tl(M,c),o&&u||(k.textContent=""),O=1;O<=M.length;O++)if(G=M[O-1],!g&&S&&G.charAt(0)===`
23
+ `&&((f=k.previousSibling)==null||f.remove(),Zr(document.createElement("br"),n,k),G=G.slice(1)),!g&&G==="")Zr(v,n,k);else if(G===" ")n.insertBefore(document.createTextNode(" "),k);else{if(m&&G.charAt(0)===" "&&Zr(" ",n,k),b&&O===1&&!I&&P.indexOf(b.parentNode)>-1?(W=P[P.length-1],W.appendChild(document.createTextNode(r?"":G))):(W=t(r?"":G),Zr(W,n,k),b&&O===1&&!I&&W.insertBefore(b,W.firstChild)),r)for(R=Qa?tl([...Qa.segment(G)].map(q=>q.segment),c):G.match(a)||zo,F=0;F<R.length;F++)W.appendChild(R[F]===" "?document.createTextNode(" "):r(R[F]));if(o&&u){if(K=k.textContent=K.substring(G.length+1,K.length),$=W.getBoundingClientRect(),$.top>w.top&&$.left<=w.left){for(N=n.cloneNode(),H=n.childNodes[0];H&&H!==W;)ee=H,H=H.nextSibling,N.appendChild(ee);n.parentNode.insertBefore(N,n),i&&rl(N)}w=$}(O<M.length||z)&&Zr(O>=M.length?" ":m&&G.slice(-1)===" "?" "+v:v,n,k)}n.removeChild(k),b=0}else k.nodeType===1&&(s&&s.indexOf(k)>-1?(P.indexOf(k.previousSibling)>-1&&P[P.length-1].appendChild(k),b=k):(nl(k,e,t,r,i,o,s,a,c,!0),b=0),i&&rl(k))};const il=class fu{constructor(e,t){this.isSplit=!1,Pf(),this.elements=Za(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)})},No(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,h=t.indexOf("words")>-1,l=d&&!h&&!f,g=c&&("push"in c?new RegExp("(?:"+c.join("|")+")","gu"):c),p=g?new RegExp(g.source+"|"+Ja.source,"gu"):Ja,y=!!e.ignore&&Za(e.ignore),{orig:w,animTime:S,obs:b}=this._data,P;return(d||h||f)&&(this.elements.forEach((m,v)=>{w[v]={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 C=[],k=[],M=[],W=d?Fo("char",e,C):null,I=Fo("word",e,k),z,O,$,R;if(nl(m,e,I,W,l,i&&(f||l),y,p,g,!1),f){let N=fi(m.childNodes),H=Mf(m,N,e,M),ee,K=[],G=0,U=N.map(q=>q.nodeType===1?q.getBoundingClientRect():el),F=el;for(z=0;z<N.length;z++)ee=N[z],ee.nodeType===1&&(ee.nodeName==="BR"?(K.push(ee),H(G,z+1),G=z+1,F=U[G]):(z&&U[z].top>F.top&&U[z].left<=F.left&&(H(G,z),G=z),F=U[z]));G<z&&H(G,z),K.forEach(q=>{var Z;return(Z=q.parentNode)==null?void 0:Z.removeChild(q)})}if(!h){for(z=0;z<k.length;z++)if(O=k[z],d||!O.nextSibling||O.nextSibling.nodeType!==3)if(o&&!f){for($=document.createElement("span"),$.style.whiteSpace="nowrap";O.firstChild;)$.appendChild(O.firstChild);O.replaceWith($)}else O.replaceWith(...O.childNodes);else R=O.nextSibling,R&&R.nodeType===3&&(R.textContent=(O.textContent||"")+(R.textContent||""),O.remove());k.length=0,m.normalize()}this.lines.push(...M),this.words.push(...k),this.chars.push(...C)}),u&&this[u]&&this.masks.push(...this[u].map(m=>{let v=m.cloneNode();return m.replaceWith(v),v.appendChild(m),m.className&&(v.className=m.className.replace(/(\b\w+\b)/g,"$1-mask")),v.style.overflow="clip",v}))),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=S?P.totalTime(S):P),f&&a&&this.elements.forEach((m,v)=>{w[v].width=m.offsetWidth,b&&b.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,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 fu(e,t)}static register(e){On=On||e||window.gsap,On&&(fi=On.utils.toArray,No=On.core.context||No),!Lo&&window.innerWidth>0&&(Qr=document.fonts,Lo=!0)}};il.version="3.13.0";let Bo=il;var Ye=function(){return Ye=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},Ye.apply(this,arguments)};function Jr(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 Of(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var Df=/^((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)-.*))$/,Af=Of(function(n){return Df.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),de="-ms-",Dn="-moz-",ie="-webkit-",ol="comm",di="rule",Wo="decl",Rf="@import",sl="@keyframes",$f="@layer",al=Math.abs,Yo=String.fromCharCode,Ho=Object.assign;function If(n,e){return Ae(n,0)^45?(((e<<2^Ae(n,0))<<2^Ae(n,1))<<2^Ae(n,2))<<2^Ae(n,3):0}function ll(n){return n.trim()}function Ft(n,e){return(n=e.exec(n))?n[0]:n}function Q(n,e,t){return n.replace(e,t)}function hi(n,e,t){return n.indexOf(e,t)}function Ae(n,e){return n.charCodeAt(e)|0}function en(n,e,t){return n.slice(e,t)}function Ot(n){return n.length}function cl(n){return n.length}function An(n,e){return e.push(n),n}function Lf(n,e){return n.map(e).join("")}function ul(n,e){return n.filter(function(t){return!Ft(t,e)})}var pi=1,tn=1,fl=0,ft=0,Te=0,rn="";function gi(n,e,t,r,i,o,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:o,line:pi,column:tn,length:s,return:"",siblings:a}}function er(n,e){return Ho(gi("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function nn(n){for(;n.root;)n=er(n.root,{children:[n]});An(n,n.siblings)}function zf(){return Te}function Nf(){return Te=ft>0?Ae(rn,--ft):0,tn--,Te===10&&(tn=1,pi--),Te}function _t(){return Te=ft<fl?Ae(rn,ft++):0,tn++,Te===10&&(tn=1,pi++),Te}function xr(){return Ae(rn,ft)}function mi(){return ft}function _i(n,e){return en(rn,n,e)}function jo(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 Ff(n){return pi=tn=1,fl=Ot(rn=n),ft=0,[]}function Bf(n){return rn="",n}function Xo(n){return ll(_i(ft-1,Vo(n===91?n+2:n===40?n+1:n)))}function Wf(n){for(;(Te=xr())&&Te<33;)_t();return jo(n)>2||jo(Te)>3?"":" "}function Yf(n,e){for(;--e&&_t()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return _i(n,mi()+(e<6&&xr()==32&&_t()==32))}function Vo(n){for(;_t();)switch(Te){case n:return ft;case 34:case 39:n!==34&&n!==39&&Vo(Te);break;case 40:n===41&&Vo(n);break;case 92:_t();break}return ft}function Hf(n,e){for(;_t()&&n+Te!==57;)if(n+Te===84&&xr()===47)break;return"/*"+_i(e,ft-1)+"*"+Yo(n===47?n:_t())}function jf(n){for(;!jo(xr());)_t();return _i(n,ft)}function Xf(n){return Bf(yi("",null,null,null,[""],n=Ff(n),0,[0],n))}function yi(n,e,t,r,i,o,s,a,c){for(var u=0,f=0,d=s,h=0,l=0,g=0,p=1,y=1,w=1,S=0,b="",P=i,m=o,v=r,C=b;y;)switch(g=S,S=_t()){case 40:if(g!=108&&Ae(C,d-1)==58){hi(C+=Q(Xo(S),"&","&\f"),"&\f",al(u?a[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:C+=Xo(S);break;case 9:case 10:case 13:case 32:C+=Wf(g);break;case 92:C+=Yf(mi()-1,7);continue;case 47:switch(xr()){case 42:case 47:An(Vf(Hf(_t(),mi()),e,t,c),c);break;default:C+="/"}break;case 123*p:a[u++]=Ot(C)*w;case 125*p:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+f:w==-1&&(C=Q(C,/\f/g,"")),l>0&&Ot(C)-d&&An(l>32?hl(C+";",r,t,d-1,c):hl(Q(C," ","")+";",r,t,d-2,c),c);break;case 59:C+=";";default:if(An(v=dl(C,e,t,u,f,i,a,b,P=[],m=[],d,o),o),S===123)if(f===0)yi(C,e,v,v,P,o,d,a,m);else switch(h===99&&Ae(C,3)===110?100:h){case 100:case 108:case 109:case 115:yi(n,v,v,r&&An(dl(n,v,v,0,0,i,a,b,i,P=[],d,m),m),i,m,d,a,r?P:m);break;default:yi(C,v,v,v,[""],m,0,a,m)}}u=f=l=0,p=w=1,b=C="",d=s;break;case 58:d=1+Ot(C),l=g;default:if(p<1){if(S==123)--p;else if(S==125&&p++==0&&Nf()==125)continue}switch(C+=Yo(S),S*p){case 38:w=f>0?1:(C+="\f",-1);break;case 44:a[u++]=(Ot(C)-1)*w,w=1;break;case 64:xr()===45&&(C+=Xo(_t())),h=xr(),f=d=Ot(b=C+=jf(mi())),S++;break;case 45:g===45&&Ot(C)==2&&(p=0)}}return o}function dl(n,e,t,r,i,o,s,a,c,u,f,d){for(var h=i-1,l=i===0?o:[""],g=cl(l),p=0,y=0,w=0;p<r;++p)for(var S=0,b=en(n,h+1,h=al(y=s[p])),P=n;S<g;++S)(P=ll(y>0?l[S]+" "+b:Q(b,/&\f/g,l[S])))&&(c[w++]=P);return gi(n,e,t,i===0?di:a,c,u,f,d)}function Vf(n,e,t,r){return gi(n,e,t,ol,Yo(zf()),en(n,2,-2),0,r)}function hl(n,e,t,r,i){return gi(n,e,t,Wo,en(n,0,r),en(n,r+1,-1),r,i)}function pl(n,e,t){switch(If(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 Dn+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+n+Dn+n+de+n+n;case 5936:switch(Ae(n,e+11)){case 114:return ie+n+de+Q(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return ie+n+de+Q(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return ie+n+de+Q(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return ie+n+de+n+n;case 6165:return ie+n+de+"flex-"+n+n;case 5187:return ie+n+Q(n,/(\w+).+(:[^]+)/,ie+"box-$1$2"+de+"flex-$1$2")+n;case 5443:return ie+n+de+"flex-item-"+Q(n,/flex-|-self/g,"")+(Ft(n,/flex-|baseline/)?"":de+"grid-row-"+Q(n,/flex-|-self/g,""))+n;case 4675:return ie+n+de+"flex-line-pack"+Q(n,/align-content|flex-|-self/g,"")+n;case 5548:return ie+n+de+Q(n,"shrink","negative")+n;case 5292:return ie+n+de+Q(n,"basis","preferred-size")+n;case 6060:return ie+"box-"+Q(n,"-grow","")+ie+n+de+Q(n,"grow","positive")+n;case 4554:return ie+Q(n,/([^-])(transform)/g,"$1"+ie+"$2")+n;case 6187:return Q(Q(Q(n,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),n,"")+n;case 5495:case 3959:return Q(n,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return Q(Q(n,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+de+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+n+n;case 4200:if(!Ft(n,/flex-|baseline/))return de+"grid-column-align"+en(n,e)+n;break;case 2592:case 3360:return de+Q(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,i){return e=i,Ft(r.props,/grid-\w+-end/)})?~hi(n+(t=t[e].value),"span",0)?n:de+Q(n,"-start","")+n+de+"grid-row-span:"+(~hi(t,"span",0)?Ft(t,/\d+/):+Ft(t,/\d+/)-+Ft(n,/\d+/))+";":de+Q(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return Ft(r.props,/grid-\w+-start/)})?n:de+Q(Q(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return Q(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(Ot(n)-1-e>6)switch(Ae(n,e+1)){case 109:if(Ae(n,e+4)!==45)break;case 102:return Q(n,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Dn+(Ae(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~hi(n,"stretch",0)?pl(Q(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return Q(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,a,c,u){return de+i+":"+o+u+(s?de+i+"-span:"+(a?c:+c-+o)+u:"")+n});case 4949:if(Ae(n,e+6)===121)return Q(n,":",":"+ie)+n;break;case 6444:switch(Ae(n,Ae(n,14)===45?18:11)){case 120:return Q(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ie+(Ae(n,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+de+"$2box$3")+n;case 100:return Q(n,":",":"+de)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Q(n,"scroll-","scroll-snap-")+n}return n}function xi(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function Uf(n,e,t,r){switch(n.type){case $f:if(n.children.length)break;case Rf:case Wo:return n.return=n.return||n.value;case ol:return"";case sl:return n.return=n.value+"{"+xi(n.children,r)+"}";case di:if(!Ot(n.value=n.props.join(",")))return""}return Ot(t=xi(n.children,r))?n.return=n.value+"{"+t+"}":""}function qf(n){var e=cl(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 Gf(n){return function(e){e.root||(e=e.return)&&n(e)}}function Kf(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case Wo:n.return=pl(n.value,n.length,t);return;case sl:return xi([er(n,{value:Q(n.value,"@","@"+ie)})],r);case di:if(n.length)return Lf(t=n.props,function(i){switch(Ft(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":nn(er(n,{props:[Q(i,/:(read-\w+)/,":"+Dn+"$1")]})),nn(er(n,{props:[i]})),Ho(n,{props:ul(t,r)});break;case"::placeholder":nn(er(n,{props:[Q(i,/:(plac\w+)/,":"+ie+"input-$1")]})),nn(er(n,{props:[Q(i,/:(plac\w+)/,":"+Dn+"$1")]})),nn(er(n,{props:[Q(i,/:(plac\w+)/,de+"input-$1")]})),nn(er(n,{props:[i]})),Ho(n,{props:ul(t,r)});break}return""})}}var Qf={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",gl="active",ml="data-styled-version",wi="6.1.19",Uo=`/*!sc*/
24
24
  `,vi=typeof window<"u"&&typeof document<"u",Zf=!!(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"),_l=/invalid hook call/i,bi=new Set,Jf=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];_l.test(s)?(o=!1,bi.delete(r)):i.apply(void 0,Qr([s],a,!1))},y.useRef(),o&&!bi.has(r)&&(console.warn(r),bi.add(r))}catch(s){_l.test(s.message)&&bi.delete(r)}finally{console.error=i}}},Si=Object.freeze([]),rn=Object.freeze({});function ed(n,e,t){return t===void 0&&(t=rn),n.theme!==t.theme&&n.theme||e||t.theme}var qo=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"]),td=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,rd=/(^-|-$)/g;function yl(n){return n.replace(td,"-").replace(rd,"")}var nd=/(a)(d)/gi,Ci=52,xl=function(n){return String.fromCharCode(n+(n>25?39:97))};function Go(n){var e,t="";for(e=Math.abs(n);e>Ci;e=e/Ci|0)t=xl(e%Ci)+t;return(xl(e%Ci)+t).replace(nd,"$1-$2")}var Ko,wl=5381,xr=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},vl=function(n){return xr(wl,n)};function id(n){return Go(vl(n)>>>0)}function bl(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 Sl=typeof Symbol=="function"&&Symbol.for,Cl=Sl?Symbol.for("react.memo"):60115,od=Sl?Symbol.for("react.forward_ref"):60112,sd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ad={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ld=((Ko={})[od]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ko[Cl]=Tl,Ko);function kl(n){return("type"in(e=n)&&e.type.$$typeof)===Cl?Tl:"$$typeof"in n?ld[n.$$typeof]:sd;var e}var cd=Object.defineProperty,ud=Object.getOwnPropertyNames,Pl=Object.getOwnPropertySymbols,fd=Object.getOwnPropertyDescriptor,dd=Object.getPrototypeOf,El=Object.prototype;function Ml(n,e,t){if(typeof e!="string"){if(El){var r=dd(e);r&&r!==El&&Ml(n,r,t)}var i=ud(e);Pl&&(i=i.concat(Pl(e)));for(var o=kl(n),s=kl(e),a=0;a<i.length;++a){var c=i[a];if(!(c in ad||t&&t[c]||s&&c in s||o&&c in o)){var u=fd(e,c);try{cd(n,c,u)}catch{}}}}return n}function wr(n){return typeof n=="function"}function Zo(n){return typeof n=="object"&&"styledComponentId"in n}function vr(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function Ol(n,e){if(n.length===0)return"";for(var t=n[0],r=1;r<n.length;r++)t+=n[r];return t}function nn(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Jo(n,e,t){if(t===void 0&&(t=!1),!t&&!nn(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Jo(n[r],e[r]);else if(nn(e))for(var r in e)n[r]=Jo(n[r],e[r]);return n}function es(n,e){Object.defineProperty(n,"toString",{value:e})}var hd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
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];_l.test(s)?(o=!1,bi.delete(r)):i.apply(void 0,Jr([s],a,!1))},_.useRef(),o&&!bi.has(r)&&(console.warn(r),bi.add(r))}catch(s){_l.test(s.message)&&bi.delete(r)}finally{console.error=i}}},Si=Object.freeze([]),on=Object.freeze({});function ed(n,e,t){return t===void 0&&(t=on),n.theme!==t.theme&&n.theme||e||t.theme}var qo=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"]),td=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,rd=/(^-|-$)/g;function yl(n){return n.replace(td,"-").replace(rd,"")}var nd=/(a)(d)/gi,Ci=52,xl=function(n){return String.fromCharCode(n+(n>25?39:97))};function Go(n){var e,t="";for(e=Math.abs(n);e>Ci;e=e/Ci|0)t=xl(e%Ci)+t;return(xl(e%Ci)+t).replace(nd,"$1-$2")}var Ko,wl=5381,vr=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},vl=function(n){return vr(wl,n)};function id(n){return Go(vl(n)>>>0)}function bl(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 Sl=typeof Symbol=="function"&&Symbol.for,Cl=Sl?Symbol.for("react.memo"):60115,od=Sl?Symbol.for("react.forward_ref"):60112,sd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ad={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ld=((Ko={})[od]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ko[Cl]=Tl,Ko);function kl(n){return("type"in(e=n)&&e.type.$$typeof)===Cl?Tl:"$$typeof"in n?ld[n.$$typeof]:sd;var e}var cd=Object.defineProperty,ud=Object.getOwnPropertyNames,Pl=Object.getOwnPropertySymbols,fd=Object.getOwnPropertyDescriptor,dd=Object.getPrototypeOf,El=Object.prototype;function Ml(n,e,t){if(typeof e!="string"){if(El){var r=dd(e);r&&r!==El&&Ml(n,r,t)}var i=ud(e);Pl&&(i=i.concat(Pl(e)));for(var o=kl(n),s=kl(e),a=0;a<i.length;++a){var c=i[a];if(!(c in ad||t&&t[c]||s&&c in s||o&&c in o)){var u=fd(e,c);try{cd(n,c,u)}catch{}}}}return n}function br(n){return typeof n=="function"}function Zo(n){return typeof n=="object"&&"styledComponentId"in n}function Sr(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function Ol(n,e){if(n.length===0)return"";for(var t=n[0],r=1;r<n.length;r++)t+=n[r];return t}function sn(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Jo(n,e,t){if(t===void 0&&(t=!1),!t&&!sn(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Jo(n[r],e[r]);else if(sn(e))for(var r in e)n[r]=Jo(n[r],e[r]);return n}function es(n,e){Object.defineProperty(n,"toString",{value:e})}var hd=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 pd(){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(pd.apply(void 0,Qr([hd[n]],e,!1)).trim())}var gd=(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(Uo);return t},n})(),md=1<<30,Ti=new Map,ki=new Map,Pi=1,Ei=function(n){if(Ti.has(n))return Ti.get(n);for(;ki.has(Pi);)Pi++;var e=Pi++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>md))throw Dt(16,"".concat(e));return Ti.set(n,e),ki.set(e,n),e},_d=function(n,e){Pi=e+1,Ti.set(n,e),ki.set(e,n)},yd="style[".concat(yr,"][").concat(ml,'="').concat(wi,'"]'),xd=new RegExp("^".concat(yr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wd=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)},vd=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(Uo),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var c=a.match(xd);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(_d(f,u),wd(n,f,c[3]),n.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},Dl=function(n){for(var e=document.querySelectorAll(yd),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(yr)!==gl&&(vd(n,i),i.parentNode&&i.parentNode.removeChild(i))}};function bd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Al=function(n){var e=document.head,t=n||e,r=document.createElement("style"),i=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(yr,"]")));return c[c.length-1]})(t),o=i!==void 0?i.nextSibling:null;r.setAttribute(yr,gl),r.setAttribute(ml,wi);var s=bd();return s&&r.setAttribute("nonce",s),t.insertBefore(r,o),r},Sd=(function(){function n(e){this.element=Al(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})(),Cd=(function(){function n(e){this.element=Al(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})(),Td=(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})(),$l=vi,kd={isServer:!vi,useCSSOMInjection:!Zf},Rl=(function(){function n(e,t,r){e===void 0&&(e=rn),t===void 0&&(t={});var i=this;this.options=We(We({},kd),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&vi&&$l&&($l=!1,Dl(this)),es(this,function(){return(function(o){for(var s=o.getTag(),a=s.length,c="",u=function(d){var h=(function(w){return ki.get(w)})(d);if(h===void 0)return"continue";var l=o.names.get(h),g=s.getGroup(d);if(l===void 0||!l.size||g.length===0)return"continue";var p="".concat(yr,".g").concat(d,'[id="').concat(h,'"]'),_="";l!==void 0&&l.forEach(function(w){w.length>0&&(_+="".concat(w,","))}),c+="".concat(g).concat(p,'{content:"').concat(_,'"}').concat(Uo)},f=0;f<a;f++)u(f);return c})(i)})}return n.registerId=function(e){return Ei(e)},n.prototype.rehydrate=function(){!this.server&&vi&&Dl(this)},n.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new n(We(We({},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 Td(i):r?new Sd(i):new Cd(i)})(this.options),new gd(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(Ei(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(Ei(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(Ei(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n})(),Pd=/&/g,Ed=/^\s*\/\/.*$/gm;function Il(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=Il(t.children,e)),t})}function Md(n){var e,t,r,i=rn,o=i.options,s=o===void 0?rn:o,a=i.plugins,c=a===void 0?Si:a,u=function(h,l,g){return g.startsWith(t)&&g.endsWith(t)&&g.replaceAll(t,"").length>0?".".concat(e):h},f=c.slice();f.push(function(h){h.type===di&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Pd,t).replace(r,u))}),s.prefix&&f.push(Kf),f.push(Uf);var d=function(h,l,g,p){l===void 0&&(l=""),g===void 0&&(g=""),p===void 0&&(p="&"),e=p,t=l,r=new RegExp("\\".concat(t,"\\b"),"g");var _=h.replace(Ed,""),w=Xf(g||l?"".concat(g," ").concat(l," { ").concat(_," }"):_);s.namespace&&(w=Il(w,s.namespace));var S=[];return xi(w,qf(f.concat(Gf(function(b){return S.push(b)})))),S};return d.hash=c.length?c.reduce(function(h,l){return l.name||Dt(15),xr(h,l.name)},wl).toString():"",d}var Od=new Rl,ts=Md(),Ll=y.createContext({shouldForwardProp:void 0,styleSheet:Od,stylis:ts});Ll.Consumer,y.createContext(void 0);function zl(){return y.useContext(Ll)}var Nl=(function(){function n(e,t){var r=this;this.inject=function(i,o){o===void 0&&(o=ts);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,es(this,function(){throw Dt(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=ts),this.name+e.hash},n})(),Dd=function(n){return n>="A"&&n<="Z"};function Fl(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;Dd(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Bl=function(n){return n==null||n===!1||n===""},Wl=function(n){var e,t,r=[];for(var i in n){var o=n[i];n.hasOwnProperty(i)&&!Bl(o)&&(Array.isArray(o)&&o.isCss||wr(o)?r.push("".concat(Fl(i),":"),o,";"):nn(o)?r.push.apply(r,Qr(Qr(["".concat(i," {")],Wl(o),!1),["}"],!1)):r.push("".concat(Fl(i),": ").concat((e=i,(t=o)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Qf||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function br(n,e,t,r){if(Bl(n))return[];if(Zo(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 Nl||nn(i)||i===null||console.error("".concat(bl(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.")),br(i,e,t,r)}var o;return n instanceof Nl?t?(n.inject(t,r),[n.getName(r)]):[n]:nn(n)?Wl(n):Array.isArray(n)?Array.prototype.concat.apply(Si,n.map(function(s){return br(s,e,t,r)})):[n.toString()]}function Ad(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(wr(t)&&!Zo(t))return!1}return!0}var $d=vl(wi),Rd=(function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Ad(e),this.componentId=t,this.baseHash=xr($d,t),this.baseStyle=r,Rl.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=vr(i,this.staticRulesId);else{var o=Ol(br(this.rules,e,t,r)),s=Go(xr(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=vr(i,s),this.staticRulesId=s}else{for(var c=xr(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=xr(c,d));else if(d){var h=Ol(br(d,e,t,r));c=xr(c,h+f),u+=h}}if(u){var l=Go(c>>>0);t.hasNameForId(this.componentId,l)||t.insertRules(this.componentId,l,r(u,".".concat(l),void 0,this.componentId)),i=vr(i,l)}}return i},n})(),Dn=y.createContext(void 0);Dn.Consumer;function Xe(){var n=y.useContext(Dn);if(!n)throw Dt(18);return n}function Id(n){var e=y.useContext(Dn),t=y.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?We(We({},i),r):r})(n.theme,e)},[n.theme,e]);return n.children?y.createElement(Dn.Provider,{value:t},n.children):null}var rs={},Yl=new Set;function Ld(n,e,t){var r=Zo(n),i=n,o=!Qo(n),s=e.attrs,a=s===void 0?Si:s,c=e.componentId,u=c===void 0?(function(P,m){var v=typeof P!="string"?"sc":yl(P);rs[v]=(rs[v]||0)+1;var C="".concat(v,"-").concat(id(wi+v+rs[v]));return m?"".concat(m,"-").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(bl(P),")")})(n):f,h=e.displayName&&e.componentId?"".concat(yl(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 p=i.shouldForwardProp;if(e.shouldForwardProp){var _=e.shouldForwardProp;g=function(P,m){return p(P,m)&&_(P,m)}}else g=p}var w=new Rd(t,h,r?i.componentStyle:void 0);function S(P,m){return(function(v,C,T){var M=v.attrs,W=v.componentStyle,I=v.defaultProps,z=v.foldedComponentIds,O=v.styledComponentId,R=v.target,$=y.useContext(Dn),N=zl(),H=v.shouldForwardProp||N.shouldForwardProp;process.env.NODE_ENV!=="production"&&y.useDebugValue(O);var ee=ed(C,$,I)||rn,K=(function(Pe,Ie,At){for(var pe,bt=We(We({},Ie),{className:void 0,theme:At}),pt=0;pt<Pe.length;pt+=1){var it=wr(pe=Pe[pt])?pe(bt):pe;for(var Ye in it)bt[Ye]=Ye==="className"?vr(bt[Ye],it[Ye]):Ye==="style"?We(We({},bt[Ye]),it[Ye]):it[Ye]}return Ie.className&&(bt.className=vr(bt.className,Ie.className)),bt})(M,C,ee),G=K.as||R,U={};for(var F in K)K[F]===void 0||F[0]==="$"||F==="as"||F==="theme"&&K.theme===ee||(F==="forwardedAs"?U.as=K.forwardedAs:H&&!H(F,G)||(U[F]=K[F],H||process.env.NODE_ENV!=="development"||Af(F)||Yl.has(F)||!qo.has(G)||(Yl.add(F),console.warn('styled-components: it looks like an unknown prop "'.concat(F,'" 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 q=(function(Pe,Ie){var At=zl(),pe=Pe.generateAndInjectStyles(Ie,At.styleSheet,At.stylis);return process.env.NODE_ENV!=="production"&&y.useDebugValue(pe),pe})(W,K);process.env.NODE_ENV!=="production"&&v.warnTooManyClasses&&v.warnTooManyClasses(q);var Z=vr(z,O);return q&&(Z+=" "+q),K.className&&(Z+=" "+K.className),U[Qo(G)&&!qo.has(G)?"class":"className"]=Z,T&&(U.ref=T),y.createElement(G,U)})(b,P,m)}S.displayName=d;var b=y.forwardRef(S);return b.attrs=l,b.componentStyle=w,b.displayName=d,b.shouldForwardProp=g,b.foldedComponentIds=r?vr(i.foldedComponentIds,i.styledComponentId):"",b.styledComponentId=h,b.target=r?i.target:n,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?(function(m){for(var v=[],C=1;C<arguments.length;C++)v[C-1]=arguments[C];for(var T=0,M=v;T<M.length;T++)Jo(m,M[T],!0);return m})({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(Jf(d,h),b.warnTooManyClasses=(function(P,m){var v={},C=!1;return function(T){if(!C&&(v[T]=!0,Object.keys(v).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,`.
69
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function pd(){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(pd.apply(void 0,Jr([hd[n]],e,!1)).trim())}var gd=(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(Uo);return t},n})(),md=1<<30,Ti=new Map,ki=new Map,Pi=1,Ei=function(n){if(Ti.has(n))return Ti.get(n);for(;ki.has(Pi);)Pi++;var e=Pi++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>md))throw Dt(16,"".concat(e));return Ti.set(n,e),ki.set(e,n),e},_d=function(n,e){Pi=e+1,Ti.set(n,e),ki.set(e,n)},yd="style[".concat(wr,"][").concat(ml,'="').concat(wi,'"]'),xd=new RegExp("^".concat(wr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wd=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)},vd=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(Uo),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var c=a.match(xd);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(_d(f,u),wd(n,f,c[3]),n.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},Dl=function(n){for(var e=document.querySelectorAll(yd),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(wr)!==gl&&(vd(n,i),i.parentNode&&i.parentNode.removeChild(i))}};function bd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Al=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,gl),r.setAttribute(ml,wi);var s=bd();return s&&r.setAttribute("nonce",s),t.insertBefore(r,o),r},Sd=(function(){function n(e){this.element=Al(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})(),Cd=(function(){function n(e){this.element=Al(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})(),Td=(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})(),Rl=vi,kd={isServer:!vi,useCSSOMInjection:!Zf},$l=(function(){function n(e,t,r){e===void 0&&(e=on),t===void 0&&(t={});var i=this;this.options=Ye(Ye({},kd),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&vi&&Rl&&(Rl=!1,Dl(this)),es(this,function(){return(function(o){for(var s=o.getTag(),a=s.length,c="",u=function(d){var h=(function(w){return ki.get(w)})(d);if(h===void 0)return"continue";var l=o.names.get(h),g=s.getGroup(d);if(l===void 0||!l.size||g.length===0)return"continue";var p="".concat(wr,".g").concat(d,'[id="').concat(h,'"]'),y="";l!==void 0&&l.forEach(function(w){w.length>0&&(y+="".concat(w,","))}),c+="".concat(g).concat(p,'{content:"').concat(y,'"}').concat(Uo)},f=0;f<a;f++)u(f);return c})(i)})}return n.registerId=function(e){return Ei(e)},n.prototype.rehydrate=function(){!this.server&&vi&&Dl(this)},n.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new n(Ye(Ye({},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 Td(i):r?new Sd(i):new Cd(i)})(this.options),new gd(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(Ei(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(Ei(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(Ei(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n})(),Pd=/&/g,Ed=/^\s*\/\/.*$/gm;function Il(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=Il(t.children,e)),t})}function Md(n){var e,t,r,i=on,o=i.options,s=o===void 0?on:o,a=i.plugins,c=a===void 0?Si:a,u=function(h,l,g){return g.startsWith(t)&&g.endsWith(t)&&g.replaceAll(t,"").length>0?".".concat(e):h},f=c.slice();f.push(function(h){h.type===di&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Pd,t).replace(r,u))}),s.prefix&&f.push(Kf),f.push(Uf);var d=function(h,l,g,p){l===void 0&&(l=""),g===void 0&&(g=""),p===void 0&&(p="&"),e=p,t=l,r=new RegExp("\\".concat(t,"\\b"),"g");var y=h.replace(Ed,""),w=Xf(g||l?"".concat(g," ").concat(l," { ").concat(y," }"):y);s.namespace&&(w=Il(w,s.namespace));var S=[];return xi(w,qf(f.concat(Gf(function(b){return S.push(b)})))),S};return d.hash=c.length?c.reduce(function(h,l){return l.name||Dt(15),vr(h,l.name)},wl).toString():"",d}var Od=new $l,ts=Md(),Ll=_.createContext({shouldForwardProp:void 0,styleSheet:Od,stylis:ts});Ll.Consumer,_.createContext(void 0);function zl(){return _.useContext(Ll)}var Nl=(function(){function n(e,t){var r=this;this.inject=function(i,o){o===void 0&&(o=ts);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,es(this,function(){throw Dt(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=ts),this.name+e.hash},n})(),Dd=function(n){return n>="A"&&n<="Z"};function Fl(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;Dd(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Bl=function(n){return n==null||n===!1||n===""},Wl=function(n){var e,t,r=[];for(var i in n){var o=n[i];n.hasOwnProperty(i)&&!Bl(o)&&(Array.isArray(o)&&o.isCss||br(o)?r.push("".concat(Fl(i),":"),o,";"):sn(o)?r.push.apply(r,Jr(Jr(["".concat(i," {")],Wl(o),!1),["}"],!1)):r.push("".concat(Fl(i),": ").concat((e=i,(t=o)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Qf||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function Cr(n,e,t,r){if(Bl(n))return[];if(Zo(n))return[".".concat(n.styledComponentId)];if(br(n)){if(!br(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 Nl||sn(i)||i===null||console.error("".concat(bl(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.")),Cr(i,e,t,r)}var o;return n instanceof Nl?t?(n.inject(t,r),[n.getName(r)]):[n]:sn(n)?Wl(n):Array.isArray(n)?Array.prototype.concat.apply(Si,n.map(function(s){return Cr(s,e,t,r)})):[n.toString()]}function Ad(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(br(t)&&!Zo(t))return!1}return!0}var Rd=vl(wi),$d=(function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Ad(e),this.componentId=t,this.baseHash=vr(Rd,t),this.baseStyle=r,$l.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=Sr(i,this.staticRulesId);else{var o=Ol(Cr(this.rules,e,t,r)),s=Go(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=Sr(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 h=Ol(Cr(d,e,t,r));c=vr(c,h+f),u+=h}}if(u){var l=Go(c>>>0);t.hasNameForId(this.componentId,l)||t.insertRules(this.componentId,l,r(u,".".concat(l),void 0,this.componentId)),i=Sr(i,l)}}return i},n})(),Rn=_.createContext(void 0);Rn.Consumer;function Ve(){var n=_.useContext(Rn);if(!n)throw Dt(18);return n}function Id(n){var e=_.useContext(Rn),t=_.useMemo(function(){return(function(r,i){if(!r)throw Dt(14);if(br(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?Ye(Ye({},i),r):r})(n.theme,e)},[n.theme,e]);return n.children?_.createElement(Rn.Provider,{value:t},n.children):null}var rs={},Yl=new Set;function Ld(n,e,t){var r=Zo(n),i=n,o=!Qo(n),s=e.attrs,a=s===void 0?Si:s,c=e.componentId,u=c===void 0?(function(P,m){var v=typeof P!="string"?"sc":yl(P);rs[v]=(rs[v]||0)+1;var C="".concat(v,"-").concat(id(wi+v+rs[v]));return m?"".concat(m,"-").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(bl(P),")")})(n):f,h=e.displayName&&e.componentId?"".concat(yl(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 p=i.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;g=function(P,m){return p(P,m)&&y(P,m)}}else g=p}var w=new $d(t,h,r?i.componentStyle:void 0);function S(P,m){return(function(v,C,k){var M=v.attrs,W=v.componentStyle,I=v.defaultProps,z=v.foldedComponentIds,O=v.styledComponentId,$=v.target,R=_.useContext(Rn),N=zl(),H=v.shouldForwardProp||N.shouldForwardProp;process.env.NODE_ENV!=="production"&&_.useDebugValue(O);var ee=ed(C,R,I)||on,K=(function(Pe,Le,Rt){for(var he,bt=Ye(Ye({},Le),{className:void 0,theme:Rt}),pt=0;pt<Pe.length;pt+=1){var ot=br(he=Pe[pt])?he(bt):he;for(var He in ot)bt[He]=He==="className"?Sr(bt[He],ot[He]):He==="style"?Ye(Ye({},bt[He]),ot[He]):ot[He]}return Le.className&&(bt.className=Sr(bt.className,Le.className)),bt})(M,C,ee),G=K.as||$,U={};for(var F in K)K[F]===void 0||F[0]==="$"||F==="as"||F==="theme"&&K.theme===ee||(F==="forwardedAs"?U.as=K.forwardedAs:H&&!H(F,G)||(U[F]=K[F],H||process.env.NODE_ENV!=="development"||Af(F)||Yl.has(F)||!qo.has(G)||(Yl.add(F),console.warn('styled-components: it looks like an unknown prop "'.concat(F,'" 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 q=(function(Pe,Le){var Rt=zl(),he=Pe.generateAndInjectStyles(Le,Rt.styleSheet,Rt.stylis);return process.env.NODE_ENV!=="production"&&_.useDebugValue(he),he})(W,K);process.env.NODE_ENV!=="production"&&v.warnTooManyClasses&&v.warnTooManyClasses(q);var Z=Sr(z,O);return q&&(Z+=" "+q),K.className&&(Z+=" "+K.className),U[Qo(G)&&!qo.has(G)?"class":"className"]=Z,k&&(U.ref=k),_.createElement(G,U)})(b,P,m)}S.displayName=d;var b=_.forwardRef(S);return b.attrs=l,b.componentStyle=w,b.displayName=d,b.shouldForwardProp=g,b.foldedComponentIds=r?Sr(i.foldedComponentIds,i.styledComponentId):"",b.styledComponentId=h,b.target=r?i.target:n,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?(function(m){for(var v=[],C=1;C<arguments.length;C++)v[C-1]=arguments[C];for(var k=0,M=v;k<M.length;k++)Jo(m,M[k],!0);return m})({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(Jf(d,h),b.warnTooManyClasses=(function(P,m){var v={},C=!1;return function(k){if(!C&&(v[k]=!0,Object.keys(v).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 />`),C=!0,v={}}}})(d,h)),es(b,function(){return".".concat(b.styledComponentId)}),o&&Ml(b,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Hl(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 jl=function(n){return Object.assign(n,{isCss:!0})};function Sr(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(wr(n)||nn(n))return jl(br(Hl(Si,Qr([n],e,!0))));var r=n;return e.length===0&&r.length===1&&typeof r[0]=="string"?br(r):jl(br(Hl(r,e)))}function ns(n,e,t){if(t===void 0&&(t=rn),!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,Sr.apply(void 0,Qr([i],o,!1)))};return r.attrs=function(i){return ns(n,e,We(We({},t),{attrs:Array.prototype.concat(t.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return ns(n,e,We(We({},t),i))},r}var Xl=function(n){return ns(Ld,n)},Ae=Xl;qo.forEach(function(n){Ae[n]=Xl(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.
78
+ <Component />`),C=!0,v={}}}})(d,h)),es(b,function(){return".".concat(b.styledComponentId)}),o&&Ml(b,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Hl(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 jl=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(br(n)||sn(n))return jl(Cr(Hl(Si,Jr([n],e,!0))));var r=n;return e.length===0&&r.length===1&&typeof r[0]=="string"?Cr(r):jl(Cr(Hl(r,e)))}function ns(n,e,t){if(t===void 0&&(t=on),!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,Jr([i],o,!1)))};return r.attrs=function(i){return ns(n,e,Ye(Ye({},t),{attrs:Array.prototype.concat(t.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return ns(n,e,Ye(Ye({},t),i))},r}var Xl=function(n){return ns(Ld,n)},Re=Xl;qo.forEach(function(n){Re[n]=Xl(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 Mi="__sc-".concat(yr,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Mi]||(window[Mi]=0),window[Mi]===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.
80
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Mi="__sc-".concat(wr,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Mi]||(window[Mi]=0),window[Mi]===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[Mi]+=1);const is=n=>typeof n=="object"&&n!==null&&"main"in n&&"dark"in n&&"light"in n;function Vl({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 os({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 ss({r:n,g:e,b:t}){const r=i=>("0"+i.toString(16)).slice(-2);return`#${r(n)}${r(e)}${r(t)}`}function Ul(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 ql(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 Gl(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{...os(t),a:e[4]!==void 0?Number(e[4]):1}}function An(n){const e=n.trim();if(/^#|^[0-9a-f]{3}([0-9a-f]{3}([0-9a-f]{2})?)?$/i.test(e))return Ul(e);if(/^rgba?\s*\(/i.test(e))return ql(e);if(/^hsla?\s*\(/i.test(e))return Gl(e);throw new Error(`Unsupported color format: "${n}". Expected hex (#rgb, #rrggbb, #rrggbbaa), rgb(), rgba(), hsl(), or hsla().`)}function Kl(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=An(n),i=Vl(r),o={};for(const s in t){const a=s,c={h:i.h,s:i.s,l:t[a]};o[s]=ss(os(c))}return o[e.toString()]=ss(r),o}const Ql=(n,e)=>{const t=An(n);return`rgba(${t.r}, ${t.g}, ${t.b}, ${e})`},zd=(n,e)=>{const t=An(n),i=(.299*t.r+.587*t.g+.114*t.b)/255>.5?"#000000":"#ffffff";return e?.opacity!==void 0?Ql(i,e.opacity):i},Cr=n=>{if(is(n))return n;const e=Kl(n,500);return{darker:e[950],dark:e[900],main:e[500],light:e[100],lighter:e[50]}},Nd=n=>{try{const e=An(n);return(.299*e.r+.587*e.g+.114*e.b)/255}catch{return .5}},Zl=n=>{const e=n.mode??"light",t=e==="dark",r=Cr(n.primary),i=u=>{if(!u)return t?"#ffffff":"#000000";const f=is(u)?u.main:u,d=Nd(f);return t&&d<.1?"#ffffff":!t&&d>.9?"#000000":u},o=Cr(i(n.secondary)),s=Cr(i(n.default)),a=Cr(n.error??"#e74c3c"),c={foreground:e==="dark"?s.lighter:s.darker,background:e==="dark"?s.darker:"#ffffff",surface:e==="dark"?s.dark:s.lighter,muted:e==="dark"?s.main:s.light,border:e==="dark"?s.main:s.light,shadow:e==="dark"?"rgba(0, 0, 0, 0.5)":"rgba(0, 0, 0, 0.1)"};return{mode:e,radius:n.radius,title:{fontFamily:n.titleFontFamily??"Poppins"},text:{fontFamily:n.textFontFamily??"Poppins, sans-serif"},palette:{primary:r,secondary:o,default:s,error:a},semantic:{...c,...n.semantic},components:n.components}},$e={none:"0px",sm:"8px",md:"12px",lg:"14px",full:"42px"},Jl=Zl({mode:"dark",radius:"none",titleFontFamily:"Inter Variable",textFontFamily:"Space Mono",primary:"#6090fa"}),ec=Jl,Fd=()=>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"})]}),we=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: ${we(e)};`,t&&`margin-top: ${we(t)};`,r&&`margin-right: ${we(r)};`,i&&`margin-bottom: ${we(i)};`,o&&`margin-left: ${we(o)};`,s&&`margin-left: ${we(s)};`,s&&`margin-right: ${we(s)};`,a&&`margin-top: ${we(a)};`,a&&`margin-bottom: ${we(a)};`].filter(Boolean).join(" ")},Tr=n=>{const{p:e,pt:t,pr:r,pb:i,pl:o,px:s,py:a}=n;return[e&&`padding: ${we(e)};`,t&&`padding-top: ${we(t)};`,r&&`padding-right: ${we(r)};`,i&&`padding-bottom: ${we(i)};`,o&&`padding-left: ${we(o)};`,s&&`padding-left: ${we(s)};`,s&&`padding-right: ${we(s)};`,a&&`padding-top: ${we(a)};`,a&&`padding-bottom: ${we(a)};`].filter(Boolean).join(" ")},tc=()=>`
82
+ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=="object"&&n!==null&&"main"in n&&"dark"in n&&"light"in n;function Vl({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 os({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 ss({r:n,g:e,b:t}){const r=i=>("0"+i.toString(16)).slice(-2);return`#${r(n)}${r(e)}${r(t)}`}function Ul(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 ql(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 Gl(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{...os(t),a:e[4]!==void 0?Number(e[4]):1}}function $n(n){const e=n.trim();if(/^#|^[0-9a-f]{3}([0-9a-f]{3}([0-9a-f]{2})?)?$/i.test(e))return Ul(e);if(/^rgba?\s*\(/i.test(e))return ql(e);if(/^hsla?\s*\(/i.test(e))return Gl(e);throw new Error(`Unsupported color format: "${n}". Expected hex (#rgb, #rrggbb, #rrggbbaa), rgb(), rgba(), hsl(), or hsla().`)}function Kl(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=$n(n),i=Vl(r),o={};for(const s in t){const a=s,c={h:i.h,s:i.s,l:t[a]};o[s]=ss(os(c))}return o[e.toString()]=ss(r),o}const Ql=(n,e)=>{const t=$n(n);return`rgba(${t.r}, ${t.g}, ${t.b}, ${e})`},zd=(n,e)=>{const t=$n(n),i=(.299*t.r+.587*t.g+.114*t.b)/255>.5?"#000000":"#ffffff";return e?.opacity!==void 0?Ql(i,e.opacity):i},kr=n=>{if(is(n))return n;const e=Kl(n,500);return{darker:e[950],dark:e[900],main:e[500],light:e[100],lighter:e[50]}},Nd=n=>{try{const e=$n(n);return(.299*e.r+.587*e.g+.114*e.b)/255}catch{return .5}},Zl=n=>{const e=n.mode??"light",t=e==="dark",r=kr(n.primary),i=u=>{if(!u)return t?"#ffffff":"#000000";const f=is(u)?u.main:u,d=Nd(f);return t&&d<.1?"#ffffff":!t&&d>.9?"#000000":u},o=kr(i(n.secondary)),s=kr(i(n.default)),a=kr(n.error??"#e74c3c"),c={foreground:e==="dark"?s.lighter:s.darker,background:e==="dark"?s.darker:"#ffffff",surface:e==="dark"?s.dark:s.lighter,muted:e==="dark"?s.main:s.light,border:e==="dark"?s.main:s.light,shadow:e==="dark"?"rgba(0, 0, 0, 0.5)":"rgba(0, 0, 0, 0.1)"};return{mode:e,radius:n.radius,title:{fontFamily:n.titleFontFamily??"Poppins"},text:{fontFamily:n.textFontFamily??"Poppins, sans-serif"},palette:{primary:r,secondary:o,default:s,error:a},semantic:{...c,...n.semantic},components:n.components}},$e={none:"0px",sm:"8px",md:"12px",lg:"14px",full:"42px"},Jl=Zl({mode:"dark",radius:"none",titleFontFamily:"Inter Variable",textFontFamily:"Space Mono",primary:"#6090fa"}),ec=Jl,Fd=()=>T.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:[T.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"}),T.jsx("path",{d:"m9 12 2 2 4-4"})]}),we=n=>typeof n=="number"?`${n/2}rem`:n,tr=n=>{const{m:e,mt:t,mr:r,mb:i,ml:o,mx:s,my:a}=n;return[e&&`margin: ${we(e)};`,t&&`margin-top: ${we(t)};`,r&&`margin-right: ${we(r)};`,i&&`margin-bottom: ${we(i)};`,o&&`margin-left: ${we(o)};`,s&&`margin-left: ${we(s)};`,s&&`margin-right: ${we(s)};`,a&&`margin-top: ${we(a)};`,a&&`margin-bottom: ${we(a)};`].filter(Boolean).join(" ")},Pr=n=>{const{p:e,pt:t,pr:r,pb:i,pl:o,px:s,py:a}=n;return[e&&`padding: ${we(e)};`,t&&`padding-top: ${we(t)};`,r&&`padding-right: ${we(r)};`,i&&`padding-bottom: ${we(i)};`,o&&`padding-left: ${we(o)};`,s&&`padding-left: ${we(s)};`,s&&`padding-right: ${we(s)};`,a&&`padding-top: ${we(a)};`,a&&`padding-bottom: ${we(a)};`].filter(Boolean).join(" ")},tc=()=>`
83
83
  &::-webkit-scrollbar {
84
84
  width: 4px;
85
85
  height: 4px;
@@ -97,7 +97,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
97
97
  &::-webkit-scrollbar-thumb:hover {
98
98
  background: #555;
99
99
  }
100
- `,$n=(n,e)=>{if(n)return["default","primary","secondary","error"].includes(n)?e.palette[n].main:["foreground","background","surface","muted","border","shadow"].includes(n)?e.semantic[n]:n},Bd={normal:"normal",center:"center",start:"flex-start",end:"flex-end",stretch:"stretch"},Wd={center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},rc={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)"},Yd=Ae.div`
100
+ `,In=(n,e)=>{if(n)return["default","primary","secondary","error"].includes(n)?e.palette[n].main:["foreground","background","surface","muted","border","shadow"].includes(n)?e.semantic[n]:n},Bd={normal:"normal",center:"center",start:"flex-start",end:"flex-end",stretch:"stretch"},Wd={center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},rc={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)"},Yd=Re.div`
101
101
  display: flex;
102
102
  flex-direction: ${({direction:n})=>n};
103
103
  gap: ${({gap:n})=>n&&we(n)};
@@ -110,32 +110,32 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
110
110
  border-radius: min(16px, ${({theme:n})=>$e[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})=>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})=>Tr({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})=>tr({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})=>Pr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
115
115
  box-shadow: ${({elevation:n})=>rc[n??0]};
116
- background-color: ${({bgcolor:n,theme:e})=>$n(n,e)};
117
- color: ${({color:n,theme:e})=>$n(n,e)};
116
+ background-color: ${({bgcolor:n,theme:e})=>In(n,e)};
117
+ color: ${({color:n,theme:e})=>In(n,e)};
118
118
 
119
119
  &:hover {
120
120
 
121
- ${n=>n.hoverstyle&&Sr(n.hoverstyle)}
121
+ ${n=>n.hoverstyle&&Tr(n.hoverstyle)}
122
122
  }
123
- `,ue=y.forwardRef(({children:n,...e},t)=>{const r=y.useMemo(()=>({...{display:"flex",direction:"column"},...e}),[e]);return k.jsx(Yd,{ref:t,...r,children:n})});ue.displayName="Flex";const kr=y.createContext({theme:ec,setTheme:()=>{},autoContrast:!0}),Oi=()=>{const{autoContrast:n}=y.useContext(kr);return n},nc=n=>{if(n.themes.length===0)throw new Error("No themes provided");const[e,t]=y.useState(n.themes[0]);y.useLayoutEffect(()=>{const s=document.documentElement;s.style.setProperty("--oui-mode",e.mode??"light"),s.style.setProperty("--oui-radius",$e[e.radius]),s.style.setProperty("--oui-fg",e.semantic.foreground),s.style.setProperty("--oui-bg",e.semantic.background),s.style.setProperty("--oui-surface",e.semantic.surface),s.style.setProperty("--oui-muted",e.semantic.muted),s.style.setProperty("--oui-border",e.semantic.border),s.style.setProperty("--oui-shadow",e.semantic.shadow),Object.entries(e.palette).forEach(([a,c])=>{Object.entries(c).forEach(([u,f])=>{s.style.setProperty(`--oui-${a}-${u}`,f)})}),console.log("[Theme] Variables injected on root",e.mode)},[e]);const 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(kr.Provider,{value:o,children:n.children})},Rn=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)),h=u-f/2;let l=0,g=0,p=0;0<=a&&a<60?(l=f,g=d,p=0):60<=a&&a<120?(l=d,g=f,p=0):120<=a&&a<180?(l=0,g=f,p=d):180<=a&&a<240?(l=0,g=d,p=f):240<=a&&a<300?(l=d,g=0,p=f):300<=a&&a<360&&(l=f,g=0,p=d),t=Math.round((l+h)*255),r=Math.round((g+h)*255),i=Math.round((p+h)*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"},ic=n=>{const t=window.getComputedStyle(n).backgroundColor;return t==="rgba(0, 0, 0, 0)"||t==="transparent"?n.parentElement?ic(n.parentElement):"#ffffff":t};function ft(n,e,t){const{theme:r}=y.useContext(kr),o=!Oi()||!!e,[s,a]=y.useState(t?Rn(t):void 0);return y.useLayoutEffect(()=>{if(o)return;const c=n.current;if(!c)return;const u=()=>{try{const g=n.current;if(!g)return;const p=ic(g),_=Rn(p);console.log(`[AutoContrast] theme=${r.mode} bg=${p} -> text=${_}`),a(_)}catch(g){console.error("[AutoContrast] error:",g)}};u();const d=[50,150,300,500].map(g=>setTimeout(u,g)),h=new MutationObserver(()=>{u()});let l=c;for(;l;)h.observe(l,{attributes:!0,attributeFilter:["style","class"]}),l=l.parentElement;return()=>{h.disconnect(),d.forEach(clearTimeout)}},[o,r]),o?void 0:s}const oc=y.forwardRef(({hasNotification:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=y.useRef(null),c=y.useRef(null),u=ft(a,!!i),f=i??u??"currentColor",d=y.useRef(n);return y.useLayoutEffect(()=>{r&&n&&!d.current&&j.fromTo(c.current,{rotation:-15},{rotation:15,duration:.1,repeat:5,yoyo:!0,ease:"power2.inOut",transformOrigin:"50% 20%",onComplete:()=>{j.to(c.current,{rotation:0,duration:.2})}}),d.current=n},[n,r]),k.jsx("svg",{ref:h=>{a.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,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"})})})}),Di=y.forwardRef(({isVisible:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=y.useRef(null),c=y.useRef(null),u=ft(a,!!i),f=i??u??"currentColor";return y.useLayoutEffect(()=>{if(r&&c.current){const d=c.current,h=d.getTotalLength();n?j.fromTo(d,{strokeDasharray:h,strokeDashoffset:h,opacity:0},{strokeDashoffset:0,opacity:1,duration:.6,ease:"power3.out",delay:.2}):j.to(d,{strokeDashoffset:h,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})})}),sc=y.forwardRef(({isCopied:n,size:e=24,strokeWidth:t=2,animated:r=!0,color:i,...o},s)=>{const a=y.useRef(null),c=y.useRef(null),u=y.useRef(null),f=y.useRef(n),d=ft(a,!!i),h=i??d??"currentColor";return y.useLayoutEffect(()=>{if(!r){j.set([c.current,u.current],{x:0,y:0,scale:1,opacity:1});return}const l=j.context(()=>{n||j.to(c.current,{x:1,y:1,duration:1.5,repeat:-1,yoyo:!0,ease:"sine.inOut"})});return n&&!f.current&&j.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:h,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"})]})}),ac=y.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=y.useRef(null),a=y.useRef(null),c=y.useRef(null),u=y.useRef(null),f=ft(s,!!r),d=r??f??"currentColor";return y.useLayoutEffect(()=>{if(!t){j.set([a.current,c.current,u.current],{y:0,opacity:1,scale:1});return}const h=j.context(()=>{const l=[a.current,c.current,u.current];j.to(l,{y:-4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"}),j.to(l,{opacity:.4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"})});return()=>h.revert()},[t]),k.jsxs("svg",{ref:h=>{s.current=h,typeof o=="function"?o(h):o&&(o.current=h)},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})]})}),lc=y.forwardRef(({isOpen:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=y.useRef(null),c=y.useRef(null),u=y.useRef(null),f=y.useRef(null),d=ft(a,!!i),h=i??d??"currentColor";return y.useLayoutEffect(()=>{if(!r)return;const l=j.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:h,strokeWidth:t,strokeLinecap:"round"}),k.jsx("path",{ref:u,d:"M4 12L20 12",stroke:h,strokeWidth:t,strokeLinecap:"round"}),k.jsx("path",{ref:f,d:"M4 18L20 18",stroke:h,strokeWidth:t,strokeLinecap:"round"})]})}),cc=y.forwardRef(({isLiked:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=y.useRef(null),c=y.useRef(null),u=ft(a,!!i),f=i??u??"#FF4500";return y.useLayoutEffect(()=>{if(!r){j.set(c.current,{fill:n?f:"none",stroke:f});return}const d=j.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"})})}),uc=y.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=y.useRef(null),a=y.useRef(null),c=y.useRef(null),u=ft(s,!!r),f=r??u??"currentColor";return y.useLayoutEffect(()=>{if(!t){j.set([a.current,c.current],{x:0,y:0,scale:1,opacity:1});return}const d=j.context(()=>{j.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"})]})}),fc=y.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=y.useRef(null),a=y.useRef(null),c=y.useRef(null),u=y.useRef(null),f=ft(s,!!r),d=r??f??"currentColor";return y.useLayoutEffect(()=>{if(!t){j.set([a.current,c.current,u.current],{scale:1,opacity:1,rotation:0});return}const h=j.context(()=>{j.to(a.current,{scale:1.1,rotation:5,duration:.8,repeat:-1,yoyo:!0,ease:"sine.inOut",transformOrigin:"center center"}),j.to(c.current,{opacity:.3,scale:.7,duration:.6,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.2,transformOrigin:"center center"}),j.to(u.current,{opacity:.3,scale:.7,duration:.7,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.4,transformOrigin:"center center"})});return()=>h.revert()},[t]),k.jsxs("svg",{ref:h=>{s.current=h,typeof o=="function"?o(h):o&&(o.current=h)},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"})]})]})}),dc=y.forwardRef(({isSyncing:n=!1,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=y.useRef(null),c=y.useRef(null),u=y.useRef(n),f=ft(a,!!i),d=i??f??"currentColor";return y.useLayoutEffect(()=>{if(!r)return;const h=c.current,l=u.current;return h&&(!l&&n?j.to(h,{rotation:360,repeat:-1,ease:"linear",duration:1,transformOrigin:"50% 50%"}):n||(j.killTweensOf(h),j.set(h,{rotation:0}))),u.current=n,()=>{c.current&&j.killTweensOf(c.current)}},[n,r]),k.jsx("svg",{ref:h=>{a.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("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"})})})}),Ai={sm:768,md:1024,lg:1280,xl:1280},hc=()=>typeof window<"u"?window.innerWidth:0,on=()=>{const[n,e]=y.useState(hc());y.useEffect(()=>{const a=()=>{e(hc())};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>=Ai.lg?a="xl":n>=Ai.md?a="lg":n>=Ai.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}},Hd=["default","primary","secondary","error"];function he(n,e){return typeof n=="string"&&!Hd.includes(n)?Cr(n):e.palette[n]}function In(...n){return y.useCallback(e=>{n.forEach(t=>{t&&(typeof t=="function"?t(e):t.current=e)})},[...n])}const jd=(n,e)=>e==="sm"?`${Number(n)/(8/7)}px`:`${n}px`,pc=n=>{switch(n){case"regular":return"400";case"medium":return"500";case"semibold":return"600";case"bold":return"700";default:return"400"}},Xd=Ae.p`
123
+ `,Er=_.createContext({theme:ec,setTheme:()=>{},autoContrast:!0}),Oi=()=>{const{autoContrast:n}=_.useContext(Er);return n},nc=n=>{if(n.themes.length===0)throw new Error("No themes provided");const[e,t]=_.useState(n.themes[0]);_.useLayoutEffect(()=>{const s=document.documentElement;s.style.setProperty("--oui-mode",e.mode??"light"),s.style.setProperty("--oui-radius",$e[e.radius]),s.style.setProperty("--oui-fg",e.semantic.foreground),s.style.setProperty("--oui-bg",e.semantic.background),s.style.setProperty("--oui-surface",e.semantic.surface),s.style.setProperty("--oui-muted",e.semantic.muted),s.style.setProperty("--oui-border",e.semantic.border),s.style.setProperty("--oui-shadow",e.semantic.shadow),Object.entries(e.palette).forEach(([a,c])=>{Object.entries(c).forEach(([u,f])=>{s.style.setProperty(`--oui-${a}-${u}`,f)})}),console.log("[Theme] Variables injected on root",e.mode)},[e]);const 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=_.useMemo(()=>({theme:e,setTheme:r,autoContrast:i}),[e,i]);return T.jsx(Er.Provider,{value:o,children:n.children})},rr=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)),h=u-f/2;let l=0,g=0,p=0;0<=a&&a<60?(l=f,g=d,p=0):60<=a&&a<120?(l=d,g=f,p=0):120<=a&&a<180?(l=0,g=f,p=d):180<=a&&a<240?(l=0,g=d,p=f):240<=a&&a<300?(l=d,g=0,p=f):300<=a&&a<360&&(l=f,g=0,p=d),t=Math.round((l+h)*255),r=Math.round((g+h)*255),i=Math.round((p+h)*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"},Hd=n=>{const e=n.match(/rgba?\(\s*([\d.]+),\s*([\d.]+),\s*([\d.]+)(?:,\s*([\d.]+))?\s*\)/);return e?{r:parseFloat(e[1]),g:parseFloat(e[2]),b:parseFloat(e[3]),a:e[4]!==void 0?parseFloat(e[4]):1}:null},ic=(n,e)=>{const t=n.a+e.a*(1-n.a);return t===0?{r:255,g:255,b:255,a:0}:{r:(n.r*n.a+e.r*e.a*(1-n.a))/t,g:(n.g*n.a+e.g*e.a*(1-n.a))/t,b:(n.b*n.a+e.b*e.a*(1-n.a))/t,a:t}},jd=n=>{const e=[];let t=n;for(;t;){const r=window.getComputedStyle(t).backgroundColor,i=Hd(r);if(i&&i.a>0&&(e.push(i),i.a>=1))break;t=t.parentElement}return e},Xd=n=>{const e=jd(n);if(e.length===0)return"rgb(255, 255, 255)";let t=e[e.length-1];for(let r=e.length-2;r>=0;r--)t=ic(e[r],t);return t.a<1&&(t=ic(t,{r:255,g:255,b:255,a:1})),`rgb(${Math.round(t.r)}, ${Math.round(t.g)}, ${Math.round(t.b)})`};function Me(n,e,t){const{theme:r}=_.useContext(Er),o=!Oi()||!!e,[s,a]=_.useState(t?rr(t):void 0);return _.useLayoutEffect(()=>{if(o)return;const c=n.current;if(!c)return;const u=()=>{try{const g=n.current;if(!g)return;const p=Xd(g),y=rr(p);a(y)}catch(g){console.error("[AutoContrast] error:",g)}};u();const d=[50,150,300,500].map(g=>setTimeout(u,g)),h=new MutationObserver(()=>{u()});let l=c;for(;l;)h.observe(l,{attributes:!0,attributeFilter:["style","class"]}),l=l.parentElement;return()=>{h.disconnect(),d.forEach(clearTimeout)}},[o,r]),o?void 0:s}function At(...n){return _.useCallback(e=>{n.forEach(t=>{t&&(typeof t=="function"?t(e):t.current=e)})},[...n])}const ue=_.forwardRef(({children:n,...e},t)=>{const r=_.useRef(null),i=At(t,r),o=Me(r,!!e.color),s=_.useMemo(()=>({...{display:"flex",direction:"column"},...e}),[e]);return T.jsx(Yd,{ref:i,...s,color:e.color??o,children:n})});ue.displayName="Flex";const oc=_.forwardRef(({hasNotification:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=_.useRef(null),c=_.useRef(null),u=Me(a,!!i),f=i??u??"currentColor",d=_.useRef(n);return _.useLayoutEffect(()=>{r&&n&&!d.current&&j.fromTo(c.current,{rotation:-15},{rotation:15,duration:.1,repeat:5,yoyo:!0,ease:"power2.inOut",transformOrigin:"50% 20%",onComplete:()=>{j.to(c.current,{rotation:0,duration:.2})}}),d.current=n},[n,r]),T.jsx("svg",{ref:h=>{a.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,style:{overflow:"visible",...o.style},children:T.jsx("g",{ref:c,children:T.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"})})})}),Di=_.forwardRef(({isVisible:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=_.useRef(null),c=_.useRef(null),u=Me(a,!!i),f=i??u??"currentColor";return _.useLayoutEffect(()=>{if(r&&c.current){const d=c.current,h=d.getTotalLength();n?j.fromTo(d,{strokeDasharray:h,strokeDashoffset:h,opacity:0},{strokeDashoffset:0,opacity:1,duration:.6,ease:"power3.out",delay:.2}):j.to(d,{strokeDashoffset:h,opacity:0,duration:.3,ease:"power2.in"})}},[n,r]),T.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:T.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})})}),sc=_.forwardRef(({isCopied:n,size:e=24,strokeWidth:t=2,animated:r=!0,color:i,...o},s)=>{const a=_.useRef(null),c=_.useRef(null),u=_.useRef(null),f=_.useRef(n),d=Me(a,!!i),h=i??d??"currentColor";return _.useLayoutEffect(()=>{if(!r){j.set([c.current,u.current],{x:0,y:0,scale:1,opacity:1});return}const l=j.context(()=>{n||j.to(c.current,{x:1,y:1,duration:1.5,repeat:-1,yoyo:!0,ease:"sine.inOut"})});return n&&!f.current&&j.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]),T.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:h,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...o,style:{overflow:"visible",...o.style},children:[T.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"}),T.jsx("rect",{ref:c,width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",fill:"none"})]})}),ac=_.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=_.useRef(null),a=_.useRef(null),c=_.useRef(null),u=_.useRef(null),f=Me(s,!!r),d=r??f??"currentColor";return _.useLayoutEffect(()=>{if(!t){j.set([a.current,c.current,u.current],{y:0,opacity:1,scale:1});return}const h=j.context(()=>{const l=[a.current,c.current,u.current];j.to(l,{y:-4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"}),j.to(l,{opacity:.4,duration:.5,repeat:-1,yoyo:!0,stagger:{each:.15,repeat:-1,yoyo:!0},ease:"power1.inOut"})});return()=>h.revert()},[t]),T.jsxs("svg",{ref:h=>{s.current=h,typeof o=="function"?o(h):o&&(o.current=h)},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:[T.jsx("circle",{ref:a,cx:"5",cy:"12",r:"1",fill:d}),T.jsx("circle",{ref:c,cx:"12",cy:"12",r:"1",fill:d}),T.jsx("circle",{ref:u,cx:"19",cy:"12",r:"1",fill:d})]})}),lc=_.forwardRef(({isOpen:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=_.useRef(null),c=_.useRef(null),u=_.useRef(null),f=_.useRef(null),d=Me(a,!!i),h=i??d??"currentColor";return _.useLayoutEffect(()=>{if(!r)return;const l=j.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]),T.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:[T.jsx("path",{ref:c,d:"M4 6L20 6",stroke:h,strokeWidth:t,strokeLinecap:"round"}),T.jsx("path",{ref:u,d:"M4 12L20 12",stroke:h,strokeWidth:t,strokeLinecap:"round"}),T.jsx("path",{ref:f,d:"M4 18L20 18",stroke:h,strokeWidth:t,strokeLinecap:"round"})]})}),cc=_.forwardRef(({isLiked:n,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=_.useRef(null),c=_.useRef(null),u=Me(a,!!i),f=i??u??"#FF4500";return _.useLayoutEffect(()=>{if(!r){j.set(c.current,{fill:n?f:"none",stroke:f});return}const d=j.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]),T.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:T.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"})})}),uc=_.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=_.useRef(null),a=_.useRef(null),c=_.useRef(null),u=Me(s,!!r),f=r??u??"currentColor";return _.useLayoutEffect(()=>{if(!t){j.set([a.current,c.current],{x:0,y:0,scale:1,opacity:1});return}const d=j.context(()=>{j.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]),T.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:[T.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"}),T.jsx("path",{ref:c,d:"M6 12h16"})]})}),fc=_.forwardRef(({size:n=24,strokeWidth:e=2,animated:t=!0,color:r,...i},o)=>{const s=_.useRef(null),a=_.useRef(null),c=_.useRef(null),u=_.useRef(null),f=Me(s,!!r),d=r??f??"currentColor";return _.useLayoutEffect(()=>{if(!t){j.set([a.current,c.current,u.current],{scale:1,opacity:1,rotation:0});return}const h=j.context(()=>{j.to(a.current,{scale:1.1,rotation:5,duration:.8,repeat:-1,yoyo:!0,ease:"sine.inOut",transformOrigin:"center center"}),j.to(c.current,{opacity:.3,scale:.7,duration:.6,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.2,transformOrigin:"center center"}),j.to(u.current,{opacity:.3,scale:.7,duration:.7,repeat:-1,yoyo:!0,ease:"power1.inOut",delay:.4,transformOrigin:"center center"})});return()=>h.revert()},[t]),T.jsxs("svg",{ref:h=>{s.current=h,typeof o=="function"?o(h):o&&(o.current=h)},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:[T.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"}),T.jsxs("g",{ref:c,children:[T.jsx("path",{d:"M20 3v4"}),T.jsx("path",{d:"M19 5h4"})]}),T.jsxs("g",{ref:u,children:[T.jsx("path",{d:"M5 17v4"}),T.jsx("path",{d:"M4 19h4"})]})]})}),dc=_.forwardRef(({isSyncing:n=!1,size:e=24,strokeWidth:t=2,animated:r=!1,color:i,...o},s)=>{const a=_.useRef(null),c=_.useRef(null),u=_.useRef(n),f=Me(a,!!i),d=i??f??"currentColor";return _.useLayoutEffect(()=>{if(!r)return;const h=c.current,l=u.current;return h&&(!l&&n?j.to(h,{rotation:360,repeat:-1,ease:"linear",duration:1,transformOrigin:"50% 50%"}):n||(j.killTweensOf(h),j.set(h,{rotation:0}))),u.current=n,()=>{c.current&&j.killTweensOf(c.current)}},[n,r]),T.jsx("svg",{ref:h=>{a.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:T.jsx("g",{ref:c,children:T.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"})})})}),Ai={sm:768,md:1024,lg:1280,xl:1280},hc=()=>typeof window<"u"?window.innerWidth:0,an=()=>{const[n,e]=_.useState(hc());_.useEffect(()=>{const a=()=>{e(hc())};return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[]);const{breakpoint:t,isMobile:r,isTablet:i,isLaptop:o,isDesktop:s}=_.useMemo(()=>{let a="sm";return n>=Ai.lg?a="xl":n>=Ai.md?a="lg":n>=Ai.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}},Vd=["default","primary","secondary","error"];function _e(n,e){return typeof n=="string"&&!Vd.includes(n)?kr(n):e.palette[n]}const Ud=(n,e)=>e==="sm"?`${Number(n)/(8/7)}px`:`${n}px`,pc=n=>{switch(n){case"regular":return"400";case"medium":return"500";case"semibold":return"600";case"bold":return"700";default:return"400"}},qd=Re.p`
124
124
  font-family: ${({theme:n})=>n.text.fontFamily};
125
125
  margin: 0;
126
126
  color: ${({color:n})=>n};
127
- ${({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})};
128
- ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Tr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
127
+ ${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>tr({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
128
+ ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Pr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
129
129
  font-weight: ${({weight:n})=>pc(n)};
130
- font-size: ${({size:n,breakpoint:e})=>n&&jd(n,e)};
130
+ font-size: ${({size:n,breakpoint:e})=>n&&Ud(n,e)};
131
131
  width: ${({width:n})=>n};
132
132
  height: ${({height:n})=>n};
133
133
  text-align: ${({align:n})=>n??"left"};
134
- `,Vd=["default","primary","secondary","error"],Re=y.forwardRef(({children:n,onSizeChange:e,color:t,...r},i)=>{const o=Xe(),{breakpoint:s}=on(),a=y.useRef(null),c=ft(a,!!t),u=t?Vd.includes(t)?he(t,o).main:t:c;y.useEffect(()=>{const d=a.current;if(!d||!e)return;const h=new ResizeObserver(l=>{const g=l[0];if(g){const{width:p,height:_}=g.contentRect;e({width:p,height:_})}});return h.observe(d),()=>{h.unobserve(d)}},[e]);const f=In(i,a);return k.jsx(Xd,{ref:f,...r,color:u,breakpoint:s,children:n})});Re.displayName="Text";const sn=({color:n,theme:e})=>{const r=typeof n=="string"&&!["default","primary","secondary","error"].includes(n)?Cr(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}},Ud={sm:{padding:"6px",fontSize:"12"},md:{padding:"8px",fontSize:"14"},lg:{padding:"10px",fontSize:"16"}},qd=Ae.button`
134
+ `,Gd=["default","primary","secondary","error"],Ie=_.forwardRef(({children:n,onSizeChange:e,color:t,...r},i)=>{const o=Ve(),{breakpoint:s}=an(),a=_.useRef(null),c=Me(a,!!t),u=t?Gd.includes(t)?_e(t,o).main:t:c;_.useEffect(()=>{const d=a.current;if(!d||!e)return;const h=new ResizeObserver(l=>{const g=l[0];if(g){const{width:p,height:y}=g.contentRect;e({width:p,height:y})}});return h.observe(d),()=>{h.unobserve(d)}},[e]);const f=At(i,a);return T.jsx(qd,{ref:f,...r,color:u,breakpoint:s,children:n})});Ie.displayName="Text";const ln=({color:n,theme:e})=>{const r=typeof n=="string"&&!["default","primary","secondary","error"].includes(n)?kr(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)"}}}},nr={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}},Kd={sm:{padding:"6px",fontSize:"12"},md:{padding:"8px",fontSize:"14"},lg:{padding:"10px",fontSize:"16"}},Qd=Re.button`
135
135
  all: unset;
136
136
 
137
137
  cursor: ${({disabled:n})=>n?"default":"pointer"};
138
- padding: ${({size:n,label:e,starticon:t,endicon:r})=>!e&&(t||r)?Ud[n??"md"].padding:tr[n??"md"].padding};
138
+ padding: ${({size:n,label:e,starticon:t,endicon:r})=>!e&&(t||r)?Kd[n??"md"].padding:nr[n??"md"].padding};
139
139
  display: flex;
140
140
  align-items: center;
141
141
  justify-content: center;
@@ -145,40 +145,40 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
145
145
 
146
146
  width: ${({w:n})=>n??"auto"};
147
147
 
148
- height: ${({h:n,size:e})=>n??tr[e??"md"].height?`${tr[e??"md"].height}px`:void 0};
148
+ height: ${({h:n,size:e})=>n??nr[e??"md"].height?`${nr[e??"md"].height}px`:void 0};
149
149
  overflow: hidden;
150
150
 
151
- background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>n??sn({color:t??"default",theme:r})[e??"contained"].bgColor};
152
- border: ${({variant:n,color:e,theme:t})=>sn({color:e??"default",theme:t})[n??"contained"].border};
151
+ background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>n??ln({color:t??"default",theme:r})[e??"contained"].bgColor};
152
+ border: ${({variant:n,color:e,theme:t})=>ln({color:e??"default",theme:t})[n??"contained"].border};
153
153
  border-radius: ${({theme:n,radius:e})=>e?$e[e]:$e[n.radius]};
154
- ${({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})};
155
- ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Tr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
154
+ ${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>tr({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
155
+ ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Pr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
156
156
  opacity: ${({disabled:n})=>n?.6:1};
157
157
  position: relative;
158
158
 
159
- ${({variant:n,color:e,theme:t,active:r,activeStyle:i})=>r&&(i||{...sn({color:e??"default",theme:t})[n??"contained"].onHover})}
159
+ ${({variant:n,color:e,theme:t,active:r,activeStyle:i})=>r&&(i||{...ln({color:e??"default",theme:t})[n??"contained"].onHover})}
160
160
 
161
161
 
162
162
  @media (hover: hover) {
163
163
  &:hover {
164
- ${({variant:n,color:e,theme:t})=>sn({color:e??"default",theme:t})[n??"contained"].onHover}
164
+ ${({variant:n,color:e,theme:t})=>ln({color:e??"default",theme:t})[n??"contained"].onHover}
165
165
  opacity: ${({disabled:n})=>n&&.6};
166
166
  }
167
167
  }
168
168
 
169
169
  &:active {
170
- ${({variant:n,color:e,theme:t})=>sn({color:e??"default",theme:t})[n??"contained"].onActive}
170
+ ${({variant:n,color:e,theme:t})=>ln({color:e??"default",theme:t})[n??"contained"].onActive}
171
171
  }
172
172
 
173
- `,Pr=(n,e)=>{const{theme:t}=y.useContext(kr);return{...t.components?.[n]||{},...e}};j.registerPlugin(Bo);const gc=y.forwardRef(({icon:n,animation:e,size:t},r)=>n&&k.jsxs(ue,{ref:r,align:"center",justify:"center",children:[typeof n!="string"&&n,n==="bell"&&k.jsx(oc,{hasNotification:e,size:t,animated:!0}),n==="check"&&k.jsx(Di,{isVisible:e,size:t,animated:e}),n==="hamburger"&&k.jsx(lc,{isOpen:e,size:t,animated:!0}),n==="heart"&&k.jsx(cc,{isLiked:e,size:t,animated:!0}),n==="sync"&&k.jsx(dc,{isSyncing:e,size:t,animated:!0}),n==="sparkles"&&k.jsx(fc,{size:t,animated:e}),n==="dots"&&k.jsx(ac,{size:t,animated:e}),n==="send"&&k.jsx(uc,{size:t,animated:e}),n==="copy"&&k.jsx(sc,{isCopied:e,size:t,animated:!0})]})),$i=y.forwardRef((n,e)=>{const{onClick:t,loading:r,labelProps:i,...o}=Pr("button",n),{color:s="default",variant:a="contained",...c}=o,u=Xe(),f=c.bgcolor??sn({color:s,theme:u})[a].bgColor,d=y.useRef(null),h=y.useRef(null),l=y.useRef(null),g=y.useRef(null),[p,_]=y.useState(!1),[w,S]=y.useState(!1),[b,P]=y.useState(!1),[m,v]=y.useState(void 0),C=r!==void 0,T=C?r:p,M=typeof c.starticon=="string"&&["heart","hamburger"].includes(c.starticon)||typeof c.endicon=="string"&&["heart","hamburger"].includes(c.endicon),W=In(e,d),I=ft(d,!!i?.color,f);y.useEffect(()=>{if(h.current){const R=new Bo(h.current,{type:"chars"});return T&&(j.set(h.current,{opacity:1}),j.to(R.chars,{opacity:.6,stagger:{each:.05,from:"start",repeat:-1},ease:"power1.inOut"})),()=>{j.killTweensOf(R.chars),R.revert(),j.set(h.current,{opacity:1,y:0})}}},[T,c.label]),y.useEffect(()=>{l.current&&c.starticon&&!c.endicon&&v(l.current.getBoundingClientRect().width)},[c.starticon,c.endicon]),y.useEffect(()=>{g.current&&c.endicon&&v(g.current.getBoundingClientRect().width)},[c.endicon]);const z=async R=>{C||_(!0);try{t&&await t(R)}finally{C||_(!1),c.endanimation&&S(!0),P(M?!b:!0),await new Promise($=>setTimeout($,1e3)),c.endanimation&&S(!1),M||P(!1)}},O=y.useCallback(R=>{!c.starticon&&!c.endicon&&!w&&v(R.width)},[c.starticon,c.endicon,w]);return k.jsxs(qd,{ref:W,onClick:z,variant:a,color:s,...c,disabled:c.disabled??T,children:[!w&&k.jsx(gc,{ref:l,icon:c.starticon,animation:b,size:tr[c.size??"md"].height??24}),c.label&&(!w||w&&c.starticon||w&&c.endicon)&&k.jsx(Re,{ref:h,onSizeChange:O,width:"100%",align:c.align??"center",size:tr[c.size??"md"].fontSize,...i,color:i?.color??(a==="contained"?I:s),children:c.label},c.label),w&&k.jsx(ue,{align:"center",justify:"center",width:`${m}px`,children:k.jsx(Di,{isVisible:w,size:tr[c.size??"md"].height??24,animated:!0})}),!w&&k.jsx(gc,{ref:g,icon:c.endicon,animation:b,size:tr[c.size??"md"].height??24})]})});$i.displayName="Button";const as=({color:n,theme:e})=>{const t=he(n,e);return{borderColor:t.main,bgColor:t.main,checkColor:Rn(t.main)}},mc={none:"0px",sm:"4px",md:"6px",lg:"10px",full:"42px"},ls={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"}},cs=Ae.label`
173
+ `,Mr=(n,e)=>{const{theme:t}=_.useContext(Er);return{...t.components?.[n]||{},...e}};j.registerPlugin(Bo);const gc=_.forwardRef(({icon:n,animation:e,size:t,color:r},i)=>n&&T.jsxs(ue,{ref:i,align:"center",justify:"center",style:{color:r??"currentColor"},children:[typeof n!="string"&&n,n==="bell"&&T.jsx(oc,{hasNotification:e,size:t,animated:!0}),n==="check"&&T.jsx(Di,{isVisible:e,size:t,animated:e}),n==="hamburger"&&T.jsx(lc,{isOpen:e,size:t,animated:!0}),n==="heart"&&T.jsx(cc,{isLiked:e,size:t,animated:!0}),n==="sync"&&T.jsx(dc,{isSyncing:e,size:t,animated:!0}),n==="sparkles"&&T.jsx(fc,{size:t,animated:e}),n==="dots"&&T.jsx(ac,{size:t,animated:e}),n==="send"&&T.jsx(uc,{size:t,animated:e}),n==="copy"&&T.jsx(sc,{isCopied:e,size:t,animated:!0})]})),Ri=_.forwardRef((n,e)=>{const{onClick:t,loading:r,labelProps:i,...o}=Mr("button",n),{color:s="default",variant:a="contained",...c}=o,u=Ve(),f=c.bgcolor??ln({color:s,theme:u})[a].bgColor,d=_.useRef(null),h=_.useRef(null),l=_.useRef(null),g=_.useRef(null),[p,y]=_.useState(!1),[w,S]=_.useState(!1),[b,P]=_.useState(!1),[m,v]=_.useState(void 0),C=r!==void 0,k=C?r:p,M=typeof c.starticon=="string"&&["heart","hamburger"].includes(c.starticon)||typeof c.endicon=="string"&&["heart","hamburger"].includes(c.endicon),W=At(e,d),I=Me(d,!!i?.color,f);_.useEffect(()=>{if(h.current){const $=new Bo(h.current,{type:"chars"});return k&&(j.set(h.current,{opacity:1}),j.to($.chars,{opacity:.6,stagger:{each:.05,from:"start",repeat:-1},ease:"power1.inOut"})),()=>{j.killTweensOf($.chars),$.revert(),j.set(h.current,{opacity:1,y:0})}}},[k,c.label]),_.useEffect(()=>{l.current&&c.starticon&&!c.endicon&&v(l.current.getBoundingClientRect().width)},[c.starticon,c.endicon]),_.useEffect(()=>{g.current&&c.endicon&&v(g.current.getBoundingClientRect().width)},[c.endicon]);const z=async $=>{C||y(!0);try{t&&await t($)}finally{C||y(!1),c.endanimation&&S(!0),P(M?!b:!0),await new Promise(R=>setTimeout(R,1e3)),c.endanimation&&S(!1),M||P(!1)}},O=_.useCallback($=>{!c.starticon&&!c.endicon&&!w&&v($.width)},[c.starticon,c.endicon,w]);return T.jsxs(Qd,{ref:W,onClick:z,variant:a,color:s,...c,disabled:c.disabled??k,children:[!w&&T.jsx(gc,{ref:l,icon:c.starticon,animation:b,size:nr[c.size??"md"].height??24,color:a==="contained"?I:void 0}),c.label&&(!w||w&&c.starticon||w&&c.endicon)&&T.jsx(Ie,{ref:h,onSizeChange:O,width:"100%",align:c.align??"center",size:nr[c.size??"md"].fontSize,...i,color:i?.color??(a==="contained"?I:s),children:c.label},c.label),w&&T.jsx(ue,{align:"center",justify:"center",width:`${m}px`,children:T.jsx(Di,{isVisible:w,size:nr[c.size??"md"].height??24,animated:!0})}),!w&&T.jsx(gc,{ref:g,icon:c.endicon,animation:b,size:nr[c.size??"md"].height??24,color:a==="contained"?I:void 0})]})});Ri.displayName="Button";const as=({color:n,theme:e})=>{const t=_e(n,e);return{borderColor:t.main,bgColor:t.main,checkColor:rr(t.main)}},mc={none:"0px",sm:"4px",md:"6px",lg:"10px",full:"42px"},ls={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"}},cs=Re.label`
174
174
  display: flex;
175
175
  align-items: center;
176
176
  gap: ${({gap:n})=>n??"10px"};
177
177
  cursor: ${({disabled:n})=>n?"not-allowed":"pointer"};
178
178
  opacity: ${({disabled:n})=>n?.5:1};
179
179
  user-select: none;
180
- ${({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})};
181
- `,Gd=Ae.div`
180
+ ${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>tr({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
181
+ `,Zd=Re.div`
182
182
  display: flex;
183
183
  align-items: center;
184
184
  justify-content: center;
@@ -198,7 +198,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
198
198
 
199
199
  @media (hover: hover) {
200
200
  ${cs}:hover & {
201
- ${({disabled:n,color:e,theme:t,checked:r})=>!n&&`background-color: ${r?"transparent":he(e??"default",t).main}11;`}
201
+ ${({disabled:n,color:e,theme:t,checked:r})=>!n&&`background-color: ${r?"transparent":_e(e??"default",t).main}11;`}
202
202
  }
203
203
  }
204
204
 
@@ -206,9 +206,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
206
206
  ${cs}:active & {
207
207
  transform: ${({disabled:n})=>!n&&"scale(0.95)"};
208
208
  }
209
- `,_c=y.forwardRef((n,e)=>{const t=Xe(),r=Oi(),i=Pr("checkbox",n),{checked:o,defaultChecked:s=!1,onChange:a,label:c,labelProps:u,labelPosition:f="right",size:d="md",color:h="default",...l}=i,g=y.useRef(null),p=In(e,g),_=o!==void 0,[w,S]=y.useState(s),b=_?o:w,P=v=>{const C=v.target.checked;_||S(C),a&&a(C)},m=ls[d];return k.jsxs(cs,{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(Gd,{color:h,size:d,radius:l.radius,checked:b,disabled:l.disabled,children:[k.jsx("input",{ref:p,type:"checkbox",checked:b,onChange:P,disabled:l.disabled,style:{display:"none"}}),k.jsx(ue,{align:"center",justify:"center",children:k.jsx(Di,{isVisible:b,color:r?as({color:h,theme:t}).checkColor:void 0,size:m.iconSize,animated:!0})})]}),c&&f==="right"&&k.jsx(Re,{size:m.fontSize,...u,children:c})]})});_c.displayName="Checkbox";const us=({color:n,theme:e})=>{const t=he(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}}},Kd={sm:{padding:"3px 0.25rem"},md:{padding:"3.5px 0.25rem"},lg:{padding:"4px 0.5rem"}},Qd=Ae.div`
209
+ `,_c=_.forwardRef((n,e)=>{const t=Ve(),r=Oi(),i=Mr("checkbox",n),{checked:o,defaultChecked:s=!1,onChange:a,label:c,labelProps:u,labelPosition:f="right",size:d="md",color:h="default",...l}=i,g=_.useRef(null),p=At(e,g),y=o!==void 0,[w,S]=_.useState(s),b=y?o:w,P=v=>{const C=v.target.checked;y||S(C),a&&a(C)},m=ls[d];return T.jsxs(cs,{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"&&T.jsx(Ie,{size:m.fontSize,...u,children:c}),T.jsxs(Zd,{color:h,size:d,radius:l.radius,checked:b,disabled:l.disabled,children:[T.jsx("input",{ref:p,type:"checkbox",checked:b,onChange:P,disabled:l.disabled,style:{display:"none"}}),T.jsx(ue,{align:"center",justify:"center",children:T.jsx(Di,{isVisible:b,color:r?as({color:h,theme:t}).checkColor:void 0,size:m.iconSize,animated:!0})})]}),c&&f==="right"&&T.jsx(Ie,{size:m.fontSize,...u,children:c})]})});_c.displayName="Checkbox";const us=({color:n,theme:e})=>{const t=_e(n,e);return{contained:{bgColor:t.main,color:rr(t.main)},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}}},Jd={sm:{padding:"3px 0.25rem"},md:{padding:"3.5px 0.25rem"},lg:{padding:"4px 0.5rem"}},eh=Re.div`
210
210
  all: unset;
211
- padding: ${({size:n})=>Kd[n??"md"].padding};
211
+ padding: ${({size:n})=>Jd[n??"md"].padding};
212
212
  display: flex;
213
213
  align-items: center;
214
214
  gap: ${({gap:n})=>n?we(n):"0px"};
@@ -218,45 +218,44 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
218
218
  background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>n??us({color:t??"default",theme:r})[e??"contained"].bgColor};
219
219
  border: ${({variant:n,color:e,theme:t})=>us({color:e??"default",theme:t})[n??"contained"].border};
220
220
  border-radius: ${({radius:n,theme:e})=>n?$e[n]:$e[e.radius]};
221
- ${({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})};
222
- ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Tr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
221
+ ${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>tr({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
222
+ ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Pr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
223
223
  opacity: ${({disabled:n})=>n?.6:1};
224
224
  position: relative;
225
225
  color: ${({fontColor:n,color:e,variant:t,theme:r})=>n??us({color:e??"default",theme:r})[t??"contained"].color};
226
-
227
- `,yc=y.forwardRef((n,e)=>{const t=Pr("chip",n),{label:r,startIcon:i,endIcon:o,size:s="md",color:a="default",variant:c="contained",...u}=t;return k.jsxs(Qd,{ref:e,size:s,color:a,variant:c,...u,children:[i,r&&k.jsx(Re,{size:tr[s].fontSize,mx:.75,children:r}),o]})});yc.displayName="Chip";const xc={sm:1,md:2,lg:3},wc=y.forwardRef(({style:n,orientation:e="horizontal",color:t,...r},i)=>{const o=Xe(),s=$n(t??o.semantic.border,o);return k.jsx("div",{ref:i,style:{height:e==="horizontal"?"1px":"100%",width:e==="horizontal"?"100%":"1px",borderTop:e==="horizontal"?`${xc[r.size??"sm"]}px ${r.type??"solid"} ${s}`:"none",borderLeft:e==="horizontal"?"none":`${xc[r.size??"sm"]}px ${r.type??"solid"} ${s}`,...n},...r})});wc.displayName="Divider";const Ri={sm:{padding:"4px",fontSize:"12px",optionPadding:"6px 10px"},md:{padding:"4px",fontSize:"14px",optionPadding:"8px 12px"},lg:{padding:"6px",fontSize:"16px",optionPadding:"10px 14px"}},Zd=Ae(ue)`
226
+ `,yc=_.forwardRef((n,e)=>{const t=Mr("chip",n),{label:r,startIcon:i,endIcon:o,size:s="md",color:a="default",variant:c="contained",...u}=t,f=_.useRef(null),d=At(e,f),h=Me(f,!!u.fontColor);return T.jsxs(eh,{ref:d,size:s,color:a,variant:c,fontColor:u.fontColor??h,...u,children:[i,r&&T.jsx(Ie,{size:nr[s].fontSize,mx:.75,children:r}),o]})});yc.displayName="Chip";const xc={sm:1,md:2,lg:3},wc=_.forwardRef(({style:n,orientation:e="horizontal",color:t,...r},i)=>{const o=Ve(),s=In(t??o.semantic.border,o);return T.jsx("div",{ref:i,style:{height:e==="horizontal"?"1px":"100%",width:e==="horizontal"?"100%":"1px",borderTop:e==="horizontal"?`${xc[r.size??"sm"]}px ${r.type??"solid"} ${s}`:"none",borderLeft:e==="horizontal"?"none":`${xc[r.size??"sm"]}px ${r.type??"solid"} ${s}`,...n},...r})});wc.displayName="Divider";const $i={sm:{padding:"4px",fontSize:"12px",optionPadding:"6px 10px"},md:{padding:"4px",fontSize:"14px",optionPadding:"8px 12px"},lg:{padding:"6px",fontSize:"16px",optionPadding:"10px 14px"}},th=Re(ue)`
228
227
  flex-direction: column;
229
- background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>{if(n)return n;const i=he(t,r);switch(e){case"outlined":case"text":return"transparent";case"soft":return`${i.main}22`;case"contained":default:return i.main}}};
228
+ background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>{if(n)return n;const i=_e(t,r);switch(e){case"outlined":case"text":return"transparent";case"soft":return`${i.main}22`;case"contained":default:return i.main}}};
230
229
 
231
- color: ${({variant:n,color:e,theme:t})=>{const r=he(e,t);switch(n){case"outlined":case"text":case"soft":return r.main;case"contained":default:return"white"}}};
232
- border: ${({variant:n,color:e,theme:t})=>n==="outlined"?`1px solid ${he(e,t).main}`:"1px solid transparent"};
233
- padding: ${({size:n})=>Ri[n].padding};
234
- font-size: ${({size:n})=>Ri[n].fontSize};
230
+ color: ${({variant:n,color:e,theme:t})=>{const r=_e(e,t);switch(n){case"outlined":case"text":case"soft":return r.main;case"contained":default:return rr(r.main)}}};
231
+ border: ${({variant:n,color:e,theme:t})=>n==="outlined"?`1px solid ${_e(e,t).main}`:"1px solid transparent"};
232
+ padding: ${({size:n})=>$i[n].padding};
233
+ font-size: ${({size:n})=>$i[n].fontSize};
235
234
  border-radius: ${({radius:n,theme:e})=>{const t=n??e.radius;return t==="full"?"16px":$e[t]}};
236
235
 
237
236
  box-shadow: ${({variant:n})=>n==="contained"?"0 4px 12px rgba(0, 0, 0, 0.15)":"0 2px 8px rgba(0, 0, 0, 0.1)"};
238
237
  overflow: hidden;
239
238
  min-width: 120px;
240
- `,Jd=Ae(ue)`
241
- padding: ${({size:n})=>Ri[n].optionPadding};
242
- font-size: ${({size:n})=>Ri[n].fontSize};
239
+ `,rh=Re(ue)`
240
+ padding: ${({size:n})=>$i[n].optionPadding};
241
+ font-size: ${({size:n})=>$i[n].fontSize};
243
242
  cursor: pointer;
244
243
  transition: background-color 0.15s ease;
245
244
  border-radius: ${({radius:n,theme:e})=>n?$e[n]:$e[e.radius]};
246
245
 
247
246
 
248
247
  &:hover {
249
- background-color: ${({variant:n,color:e,theme:t})=>{const r=he(e,t);switch(n){case"contained":return"rgba(255, 255, 255, 0.15)";case"outlined":case"text":case"soft":default:return`${r.main}18`}}};
248
+ background-color: ${({variant:n,color:e,theme:t})=>{const r=_e(e,t);switch(n){case"contained":return"rgba(255, 255, 255, 0.15)";case"outlined":case"text":case"soft":default:return`${r.main}18`}}};
250
249
  }
251
- `,vc=y.forwardRef((n,e)=>{const{children:t,options:r,onSelect:i,content:o,...s}=n,[a,c]=y.useState(!1),[u,f]=y.useState(!1),d=y.useRef(null),h=y.useRef(null),l=y.useRef(null),[g,p]=y.useState({height:0,width:0}),[_,w]=y.useState({height:0,width:0}),[S,b]=y.useState({top:0,left:0}),P=Pr("dropdown",s),m=y.useMemo(()=>({...{trigger:"click",placement:"bottom",zIndex:100,color:"primary",variant:"contained",size:"md",gap:8},...P}),[P]);y.useEffect(()=>{a&&f(!0)},[a]),y.useLayoutEffect(()=>{d.current&&(a?j.to(d.current,{autoAlpha:1,y:0,duration:.3,ease:"power2.out"}):u&&j.to(d.current,{autoAlpha:0,y:-10,duration:.2,ease:"power2.in",onComplete:()=>f(!1)}))},[a,u]),y.useEffect(()=>{if(h?.current&&u){const{clientHeight:R,clientWidth:$}=h.current;w({height:R,width:$})}},[h?.current,u]),y.useEffect(()=>{if(d?.current&&u){const{clientHeight:R,clientWidth:$}=d.current;p({height:R,width:$})}},[d?.current,u,o,r]),y.useLayoutEffect(()=>{const R=()=>{if(!u||!h.current||!d.current||g.height===0||g.width===0||_.height===0)return;const $=h.current.getBoundingClientRect(),N=window.scrollY,H=window.scrollX,{height:ee,width:K}=g,{height:G,width:U}=_,F=m.gap;let q={top:0,left:0};const Z=$.left+H+U/2,Pe=$.top+N+G/2;switch(m.placement){case"top":q={top:$.top+N-ee-F,left:Z-K/2};break;case"top-left":q={top:$.top+N-ee-F,left:$.left+H};break;case"top-right":q={top:$.top+N-ee-F,left:$.left+H+U-K};break;case"left":q={top:Pe-ee/2,left:$.left+H-K-F};break;case"left-top":q={top:$.top+N,left:$.left+H-K-F};break;case"left-bottom":q={top:$.top+N+G-ee,left:$.left+H-K-F};break;case"right":q={top:Pe-ee/2,left:$.left+H+U+F};break;case"right-top":q={top:$.top+N,left:$.left+H+U+F};break;case"right-bottom":q={top:$.top+N+G-ee,left:$.left+H+U+F};break;case"bottom-left":q={top:$.top+N+G+F,left:$.left+H};break;case"bottom-right":q={top:$.top+N+G+F,left:$.left+H+U-K};break;case"bottom":default:q={top:$.top+N+G+F,left:Z-K/2};break}b(q)};return R(),window.addEventListener("scroll",R,!0),window.addEventListener("resize",R),()=>{window.removeEventListener("scroll",R,!0),window.removeEventListener("resize",R)}},[u,m.placement,g,_]),y.useEffect(()=>{if(m.trigger!=="click"||!a)return;const R=$=>{h.current&&!h.current.contains($.target)&&d.current&&!d.current.contains($.target)&&c(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[a,m.trigger]),y.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),y.useEffect(()=>{u||(p({height:0,width:0}),w({height:0,width:0}),b({top:0,left:0}))},[u]);const v=R=>{if(h.current=R,y.isValidElement(t)){const $=t.ref;typeof $=="function"?$(R):$!=null&&typeof $=="object"&&($.current=R)}},C=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(!0),100)},T=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(!1),150)},M=()=>{c(R=>!R)},W=R=>{i?.(R),c(!1)};if(!y.isValidElement(t))return k.jsx(k.Fragment,{children:t});const I={ref:v};m.trigger==="hover"?(I.onMouseEnter=C,I.onMouseLeave=T):I.onClick=M;const z=m.trigger==="hover"?{onMouseEnter:C,onMouseLeave:T}:{},O=k.jsx(Zd,{ref:d,color:m.color,variant:m.variant,bgcolor:m.bgcolor,radius:m.radius,size:m.size,...z,style:{position:"absolute",top:`${S.top}px`,left:`${S.left}px`,zIndex:m.zIndex,visibility:"hidden",...m.style},children:o??r?.map(R=>k.jsx(Jd,{color:m.color,variant:m.variant,size:m.size,radius:m.radius,onClick:()=>W(R),children:k.jsx(Re,{color:"inherit",style:{fontSize:"inherit"},children:R.label})},R.key))});return k.jsxs(k.Fragment,{children:[y.cloneElement(t,I),u&&Kn.createPortal(O,document.body)]})});vc.displayName="Dropdown";const eh=Ae.img`
252
- ${n=>n.initstyle&&Sr(n.initstyle)}
250
+ `,vc=_.forwardRef((n,e)=>{const{children:t,options:r,onSelect:i,content:o,...s}=n,[a,c]=_.useState(!1),[u,f]=_.useState(!1),d=_.useRef(null),h=_.useRef(null),l=_.useRef(null),[g,p]=_.useState({height:0,width:0}),[y,w]=_.useState({height:0,width:0}),[S,b]=_.useState({top:0,left:0}),P=Mr("dropdown",s),m=_.useMemo(()=>({...{trigger:"click",placement:"bottom",zIndex:100,color:"primary",variant:"contained",size:"md",gap:8},...P}),[P]);_.useEffect(()=>{a&&f(!0)},[a]),_.useLayoutEffect(()=>{d.current&&(a?j.to(d.current,{autoAlpha:1,y:0,duration:.3,ease:"power2.out"}):u&&j.to(d.current,{autoAlpha:0,y:-10,duration:.2,ease:"power2.in",onComplete:()=>f(!1)}))},[a,u]),_.useEffect(()=>{if(h?.current&&u){const{clientHeight:$,clientWidth:R}=h.current;w({height:$,width:R})}},[h?.current,u]),_.useEffect(()=>{if(d?.current&&u){const{clientHeight:$,clientWidth:R}=d.current;p({height:$,width:R})}},[d?.current,u,o,r]),_.useLayoutEffect(()=>{const $=()=>{if(!u||!h.current||!d.current||g.height===0||g.width===0||y.height===0)return;const R=h.current.getBoundingClientRect(),N=window.scrollY,H=window.scrollX,{height:ee,width:K}=g,{height:G,width:U}=y,F=m.gap;let q={top:0,left:0};const Z=R.left+H+U/2,Pe=R.top+N+G/2;switch(m.placement){case"top":q={top:R.top+N-ee-F,left:Z-K/2};break;case"top-left":q={top:R.top+N-ee-F,left:R.left+H};break;case"top-right":q={top:R.top+N-ee-F,left:R.left+H+U-K};break;case"left":q={top:Pe-ee/2,left:R.left+H-K-F};break;case"left-top":q={top:R.top+N,left:R.left+H-K-F};break;case"left-bottom":q={top:R.top+N+G-ee,left:R.left+H-K-F};break;case"right":q={top:Pe-ee/2,left:R.left+H+U+F};break;case"right-top":q={top:R.top+N,left:R.left+H+U+F};break;case"right-bottom":q={top:R.top+N+G-ee,left:R.left+H+U+F};break;case"bottom-left":q={top:R.top+N+G+F,left:R.left+H};break;case"bottom-right":q={top:R.top+N+G+F,left:R.left+H+U-K};break;case"bottom":default:q={top:R.top+N+G+F,left:Z-K/2};break}b(q)};return $(),window.addEventListener("scroll",$,!0),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,!0),window.removeEventListener("resize",$)}},[u,m.placement,g,y]),_.useEffect(()=>{if(m.trigger!=="click"||!a)return;const $=R=>{h.current&&!h.current.contains(R.target)&&d.current&&!d.current.contains(R.target)&&c(!1)};return document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[a,m.trigger]),_.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),_.useEffect(()=>{u||(p({height:0,width:0}),w({height:0,width:0}),b({top:0,left:0}))},[u]);const v=$=>{if(h.current=$,_.isValidElement(t)){const R=t.ref;typeof R=="function"?R($):R!=null&&typeof R=="object"&&(R.current=$)}},C=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(!0),100)},k=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(!1),150)},M=()=>{c($=>!$)},W=$=>{i?.($),c(!1)};if(!_.isValidElement(t))return T.jsx(T.Fragment,{children:t});const I={ref:v};m.trigger==="hover"?(I.onMouseEnter=C,I.onMouseLeave=k):I.onClick=M;const z=m.trigger==="hover"?{onMouseEnter:C,onMouseLeave:k}:{},O=T.jsx(th,{ref:d,color:m.color,variant:m.variant,bgcolor:m.bgcolor,radius:m.radius,size:m.size,...z,style:{position:"absolute",top:`${S.top}px`,left:`${S.left}px`,zIndex:m.zIndex,visibility:"hidden",...m.style},children:o??r?.map($=>T.jsx(rh,{color:m.color,variant:m.variant,size:m.size,radius:m.radius,onClick:()=>W($),children:T.jsx(Ie,{color:"inherit",style:{fontSize:"inherit"},children:$.label})},$.key))});return T.jsxs(T.Fragment,{children:[_.cloneElement(t,I),u&&Kn.createPortal(O,document.body)]})});vc.displayName="Dropdown";const nh=Re.img`
251
+ ${n=>n.initstyle&&Tr(n.initstyle)}
253
252
  &:hover {
254
- ${n=>n.hoverstyle&&Sr(n.hoverstyle)}
253
+ ${n=>n.hoverstyle&&Tr(n.hoverstyle)}
255
254
  }
256
255
  &:active {
257
- ${n=>n.pressstyle&&Sr(n.pressstyle)}
256
+ ${n=>n.pressstyle&&Tr(n.pressstyle)}
258
257
  }
259
- `,bc=y.forwardRef(({src:n,alt:e,width:t,height:r,style:i,...o},s)=>k.jsx(eh,{ref:s,src:n,alt:e,width:t,height:r,initstyle:i,...o}));bc.displayName="Image";const th=Ae.input`
258
+ `,bc=_.forwardRef(({src:n,alt:e,width:t,height:r,style:i,...o},s)=>T.jsx(nh,{ref:s,src:n,alt:e,width:t,height:r,initstyle:i,...o}));bc.displayName="Image";const ih=Re.input`
260
259
  all: unset;
261
260
  box-sizing: border-box;
262
261
  font-family: ${({theme:n})=>n.text.fontFamily};
@@ -265,7 +264,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
265
264
  align-items: center;
266
265
  text-align: left;
267
266
 
268
- color: ${({theme:n,color:e})=>he(e??"default",n).main};
267
+ color: ${({theme:n,color:e})=>_e(e??"default",n).main};
269
268
 
270
269
  background-color: white;
271
270
  border-radius: ${({theme:n})=>$e[n.radius]};
@@ -273,10 +272,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
273
272
  ${tc()};
274
273
 
275
274
  border: 1px solid
276
- ${({error:n,type:e,theme:t,color:r})=>e==="color"?"transparent":n?({theme:i})=>i.palette.error.main:({theme:i,color:o})=>he(o??"default",i).main};
275
+ ${({error:n,type:e,theme:t,color:r})=>e==="color"?"transparent":n?({theme:i})=>i.palette.error.main:({theme:i,color:o})=>_e(o??"default",i).main};
277
276
 
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})=>Tr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
277
+ ${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>tr({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
278
+ ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Pr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
280
279
 
281
280
  width: ${({w:n})=>n??"100%"};
282
281
  height: ${({h:n})=>n};
@@ -302,15 +301,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
302
301
  border: none;
303
302
  border-radius: ${({theme:n})=>$e[n.radius]};
304
303
  }
305
- `,Sc=y.forwardRef((n,e)=>{const t=Xe(),r=Pr("input",n),{label:i,required:o,labelProps:s,containerStyle:a,error:c,errorStyle:u,color:f="default",...d}=r;return k.jsxs(ue,{direction:"column",style:a,children:[(i||o)&&k.jsxs(ue,{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:he(f??"default",t).main,size:"12",...s,children:i},i),o&&k.jsx(Re,{color:t.palette.error.main,size:"12",children:"*"})]}),k.jsx(th,{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})]})});Sc.displayName="Input";const rh=(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"}},nh=Ae.h1`
304
+ `,Sc=_.forwardRef((n,e)=>{const t=Ve(),r=Mr("input",n),{label:i,required:o,labelProps:s,containerStyle:a,error:c,errorStyle:u,color:f="default",...d}=r,h=_.useRef(null),l=At(e,h),g=Me(h,!!s?.color);return T.jsxs(ue,{direction:"column",style:a,children:[(i||o)&&T.jsxs(ue,{direction:"row",gap:.5,align:"center",mb:d.type==="color"?"0px":"4px",style:{minHeight:"1.2em"},children:[i&&T.jsx(Ie,{color:s?.color??(c?t.palette.error.main:g),size:"12",...s,children:i},i),o&&T.jsx(Ie,{color:t.palette.error.main,size:"12",children:"*"})]}),T.jsx(ih,{ref:l,error:c,color:f,style:{color:g,...d.style},...d}),c&&T.jsx(Ie,{color:t.palette.error.main,size:"10",mt:d.type==="color"?"0px":"4px",style:{minHeight:"1.2em",...u},children:c})]})});Sc.displayName="Input";const oh=(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"}},sh=Re.h1`
306
305
  font-family: ${({theme:n})=>n.title.fontFamily};
307
306
  margin: 0;
308
307
  color: ${({color:n})=>n};
309
- font-size: ${({level:n,breakpoint:e})=>rh(n,e)};
308
+ font-size: ${({level:n,breakpoint:e})=>oh(n,e)};
310
309
  font-weight: ${({weight:n})=>pc(n)};
311
- ${({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})};
312
- ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Tr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
313
- `,ih=["default","primary","secondary","error"],Cc=({children:n,color:e,...t})=>{const r=Xe(),{breakpoint:i}=on(),o=y.useRef(null),s=ft(o,!!e),a=e?ih.includes(e)?he(e,r).main:e:s,c=y.useMemo(()=>({...{level:1},...t}),[t]);return k.jsx(nh,{ref:o,...c,color:a,breakpoint:i,children:n})};/*!
310
+ ${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>tr({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
311
+ ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Pr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
312
+ `,ah=["default","primary","secondary","error"],Cc=({children:n,color:e,...t})=>{const r=Ve(),{breakpoint:i}=an(),o=_.useRef(null),s=Me(o,!!e),a=e?ah.includes(e)?_e(e,r).main:e:s,c=_.useMemo(()=>({...{level:1},...t}),[t]);return T.jsx(sh,{ref:o,...c,color:a,breakpoint:i,children:n})};/*!
314
313
  * @gsap/react 2.1.2
315
314
  * https://gsap.com
316
315
  *
@@ -318,10 +317,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
318
317
  * Subject to the terms at https://gsap.com/standard-license or for
319
318
  * Club GSAP members, the agreement issued with that membership.
320
319
  * @author: Jack Doyle, jack@greensock.com
321
- */let Tc=typeof document<"u"?y.useLayoutEffect:y.useEffect,kc=n=>n&&!Array.isArray(n)&&typeof n=="object",Ii=[],oh={},Pc=j;const Er=(n,e=Ii)=>{let t=oh;kc(n)?(t=n,n=null,e="dependencies"in t?t.dependencies:Ii):kc(e)&&(t=e,e="dependencies"in t?t.dependencies:Ii),n&&typeof n!="function"&&console.warn("First parameter must be a function or config object");const{scope:r,revertOnUpdate:i}=t,o=y.useRef(!1),s=y.useRef(Pc.context(()=>{},r)),a=y.useRef(u=>s.current.add(null,u)),c=e&&e.length&&!i;return c&&Tc(()=>(o.current=!0,()=>s.current.revert()),Ii),Tc(()=>{if(n&&s.current.add(n,r),!c||!o.current)return()=>s.current.revert()},e),{context:s.current,contextSafe:a.current}};Er.register=n=>{Pc=n},Er.headless=!0,j.registerPlugin(Er);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}},Ec=y.forwardRef(({isOpen:n,fullScreen:e,children:t,style:r,closeOnClickOutside:i=!0,...o},s)=>{const a=Xe(),c=Oi(),{breakpoint:u}=on(),[f,d]=y.useState(null),[h,l]=y.useState(!1),g=y.useRef(null);y.useEffect(()=>{d(document.getElementById("modal"))},[]),y.useEffect(()=>{n&&l(!0)},[n]),Er(()=>{h&&(n?j.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"):j.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,h],scope:g});const p={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, ${$e[a.radius]})`,backgroundColor:$n(o.bgcolor??a.semantic.background,a),color:$n(o.color??a.semantic.foreground,a),position:"relative",...r},_=k.jsx(ue,{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(ue,{ref:s,className:"modal-content",onClick:w=>{w.stopPropagation()},direction:"column",elevation:3,style:p,children:[o.onClose&&!o.close&&k.jsx($i,{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?Rn(p.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(ue,{direction:"row",width:"100%",py:Ft[o.size??"m"].headerPy,px:Ft[o.size??"m"].headerPx,align:"center",justify:"between",children:y.isValidElement(o.title)?o.title:k.jsx(Cc,{level:4,...o.titleProps,children:o.title})}),k.jsx(ue,{py:Ft[o.size??"m"].bodyPy,px:Ft[o.size??"m"].bodyPx,style:{overflowY:"auto",...o.bodyStyle},children:t}),o.footer&&k.jsx(ue,{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?Kn.createPortal(_,f):null});Ec.displayName="Modal";const sh=Ae(ue)`
322
- background-color: ${({bgcolor:n,color:e,theme:t})=>n??he(e,t).light};
320
+ */let Tc=typeof document<"u"?_.useLayoutEffect:_.useEffect,kc=n=>n&&!Array.isArray(n)&&typeof n=="object",Ii=[],lh={},Pc=j;const Or=(n,e=Ii)=>{let t=lh;kc(n)?(t=n,n=null,e="dependencies"in t?t.dependencies:Ii):kc(e)&&(t=e,e="dependencies"in t?t.dependencies:Ii),n&&typeof n!="function"&&console.warn("First parameter must be a function or config object");const{scope:r,revertOnUpdate:i}=t,o=_.useRef(!1),s=_.useRef(Pc.context(()=>{},r)),a=_.useRef(u=>s.current.add(null,u)),c=e&&e.length&&!i;return c&&Tc(()=>(o.current=!0,()=>s.current.revert()),Ii),Tc(()=>{if(n&&s.current.add(n,r),!c||!o.current)return()=>s.current.revert()},e),{context:s.current,contextSafe:a.current}};Or.register=n=>{Pc=n},Or.headless=!0,j.registerPlugin(Or);const Bt={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}},Ec=_.forwardRef(({isOpen:n,fullScreen:e,children:t,style:r,closeOnClickOutside:i=!0,...o},s)=>{const a=Ve(),c=Oi(),{breakpoint:u}=an(),[f,d]=_.useState(null),[h,l]=_.useState(!1),g=_.useRef(null);_.useEffect(()=>{d(document.getElementById("modal"))},[]),_.useEffect(()=>{n&&l(!0)},[n]),Or(()=>{h&&(n?j.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"):j.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,h],scope:g});const p={zIndex:999999,width:e?"100vw":Bt[o.size??"m"].width,height:e?"100vh":"fit-content",minWidth:e?"100vw":Bt[o.size??"m"].minWidth[u],maxHeight:e?"100vh":Bt[o.size??"m"].maxHeight,borderRadius:e?"0px":`min(24px, ${$e[a.radius]})`,backgroundColor:In(o.bgcolor??a.semantic.background,a),color:In(o.color??a.semantic.foreground,a),position:"relative",...r},y=T.jsx(ue,{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:T.jsxs(ue,{ref:s,className:"modal-content",onClick:w=>{w.stopPropagation()},direction:"column",elevation:3,style:p,children:[o.onClose&&!o.close&&T.jsx(Ri,{variant:"text",color:"default",starticon:T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:c?rr(p.backgroundColor??"#FFFFFF"):"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{d:"M18 6 6 18"}),T.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&&T.jsx(ue,{direction:"row",width:"100%",py:Bt[o.size??"m"].headerPy,px:Bt[o.size??"m"].headerPx,align:"center",justify:"between",children:_.isValidElement(o.title)?o.title:T.jsx(Cc,{level:4,...o.titleProps,children:o.title})}),T.jsx(ue,{py:Bt[o.size??"m"].bodyPy,px:Bt[o.size??"m"].bodyPx,style:{overflowY:"auto",...o.bodyStyle},children:t}),o.footer&&T.jsx(ue,{direction:"row",gap:2,width:"100%",mt:"auto",py:Bt[o.size??"m"].footerPy,px:Bt[o.size??"m"].footerPx,align:"center",justify:"end",children:o.footer})]})});return f?Kn.createPortal(y,f):null});Ec.displayName="Modal";const ch=Re(ue)`
321
+ background-color: ${({bgcolor:n,color:e,theme:t})=>n??_e(e,t).light};
323
322
 
324
- `,Mc=y.forwardRef(({children:n,content:e,...t},r)=>{const i=Xe(),o=y.useRef(null),s=y.useRef(null),[a,c]=y.useState({height:0,width:0}),[u,f]=y.useState({height:0,width:0}),[d,h]=y.useState({top:0,left:0}),[l,g]=y.useState({top:0,left:0}),p=y.useMemo(()=>({...{placement:"top",zIndex:9},...t}),[t]);y.useEffect(()=>{if(s?.current&&t.visible){const{clientHeight:S,clientWidth:b}=s.current;f({height:S,width:b})}},[s?.current,t.visible]),y.useEffect(()=>{if(o?.current&&t.visible){const{clientHeight:S,clientWidth:b}=o.current;c({height:S,width:b})}},[o?.current,t.visible,e]),y.useLayoutEffect(()=>{const S=()=>{if(!t.visible||!s.current||!o.current||a.height===0||u.height===0)return;const b=s.current.getBoundingClientRect(),P=window.scrollY,m=window.scrollX,{height:v,width:C}=a,{height:T,width:M}=u,W=t.gap??8,I=8,z=W-I/2;let O={top:0,left:0},R={top:0,left:0};const $=b.left+m+M/2,N=b.top+P+T/2;switch(p.placement){case"bottom":O={top:b.top+P+T+W,left:$-C/2},R={top:b.top+P+T+z,left:$-I/2};break;case"left":O={top:N-v/2,left:b.left+m-C-W},R={top:N-I/2,left:b.left+m-I-z};break;case"right":O={top:N-v/2,left:b.left+m+M+W},R={top:N-I/2,left:b.left+m+M+z};break;case"top":default:O={top:b.top+P-v-W,left:$-C/2},R={top:b.top+P-I-z,left:$-I/2};break}h(O),g(R)};return S(),window.addEventListener("scroll",S,!0),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,!0),window.removeEventListener("resize",S)}},[t.visible,p.placement,a,u]),y.useEffect(()=>{t.visible||(c({height:0,width:0}),f({height:0,width:0}),h({top:0,left:0}),g({top:0,left:0}))},[t.visible]);const _=S=>{if(s.current=S,y.isValidElement(n)){const b=n.ref;typeof b=="function"?b(S):b!=null&&typeof b=="object"&&(b.current=S)}};if(!y.isValidElement(n))return console.error("Popover children must be a single valid React element."),k.jsx(k.Fragment,{children:n});const w=k.jsxs(k.Fragment,{children:[k.jsx(sh,{ref:o,...p,style:{position:"absolute",top:`${d.top}px`,left:`${d.left}px`,zIndex:p.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:`${(p.zIndex??9)-1}`,backgroundColor:`${t.arrowcolor??t.bgcolor??he(t.color,i).light}`,rotate:"45deg",position:"absolute",top:`${l.top}px`,left:`${l.left}px`}})]});return k.jsxs(k.Fragment,{children:[y.cloneElement(n,{ref:_}),t.visible&&Kn.createPortal(w,document.body)]})});Mc.displayName="Popover";const ah=({color:n,value:e,h:t,w:r,animationDurationInSeconds:i})=>{const o=Xe(),s=y.useRef(null);y.useEffect(()=>{s.current&&j.to(s.current,{width:`${e>100?100:e}%`,duration:i??1,ease:"power2.out"})},[e,i]);const a=he(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"}})})},Oc=({option:n,handleChange:e})=>{const t=Xe();return k.jsx(ue,{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)},Dc=y.forwardRef((n,e)=>{const t=Xe(),[r,i]=y.useState(n.value??n.initialValue??(n.placeholder?{key:n.placeholder,label:n.placeholder}:void 0));y.useEffect(()=>{n.value&&i(n.value)},[n.value]);const[o,s]=y.useState(!1),[a,c]=y.useState(void 0),u=y.useRef(null),f=In(e,u),d=y.useRef(null),h=y.useRef(null);y.useEffect(()=>{const g=p=>{u.current&&!u.current.contains(p.target)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),y.useLayoutEffect(()=>{o?j.to(h.current,{autoAlpha:1,y:0,duration:.3,ease:"power2.out"}):j.to(h.current,{autoAlpha:0,y:-10,duration:.2,ease:"power2.in"})},[o]),y.useEffect(()=>{d.current&&c(d.current.clientHeight)},[d.current]);const l=g=>{i(g),n.onChange&&n.onChange(g),s(!1)};return k.jsxs(ue,{ref:f,direction:"column",width:"100%",justify:"start",children:[(n.label||n.required)&&k.jsxs(ue,{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(ue,{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(Oc,{option:r}),k.jsx(ue,{ref:h,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(Oc,{option:g,handleChange:l}))})]})]})});Dc.displayName="Select";const lh=Ae.div`
323
+ `,Mc=_.forwardRef(({children:n,content:e,...t},r)=>{const i=Ve(),o=_.useRef(null),s=_.useRef(null),[a,c]=_.useState({height:0,width:0}),[u,f]=_.useState({height:0,width:0}),[d,h]=_.useState({top:0,left:0}),[l,g]=_.useState({top:0,left:0}),p=_.useMemo(()=>({...{placement:"top",zIndex:9},...t}),[t]);_.useEffect(()=>{if(s?.current&&t.visible){const{clientHeight:S,clientWidth:b}=s.current;f({height:S,width:b})}},[s?.current,t.visible]),_.useEffect(()=>{if(o?.current&&t.visible){const{clientHeight:S,clientWidth:b}=o.current;c({height:S,width:b})}},[o?.current,t.visible,e]),_.useLayoutEffect(()=>{const S=()=>{if(!t.visible||!s.current||!o.current||a.height===0||u.height===0)return;const b=s.current.getBoundingClientRect(),P=window.scrollY,m=window.scrollX,{height:v,width:C}=a,{height:k,width:M}=u,W=t.gap??8,I=8,z=W-I/2;let O={top:0,left:0},$={top:0,left:0};const R=b.left+m+M/2,N=b.top+P+k/2;switch(p.placement){case"bottom":O={top:b.top+P+k+W,left:R-C/2},$={top:b.top+P+k+z,left:R-I/2};break;case"left":O={top:N-v/2,left:b.left+m-C-W},$={top:N-I/2,left:b.left+m-I-z};break;case"right":O={top:N-v/2,left:b.left+m+M+W},$={top:N-I/2,left:b.left+m+M+z};break;case"top":default:O={top:b.top+P-v-W,left:R-C/2},$={top:b.top+P-I-z,left:R-I/2};break}h(O),g($)};return S(),window.addEventListener("scroll",S,!0),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,!0),window.removeEventListener("resize",S)}},[t.visible,p.placement,a,u]),_.useEffect(()=>{t.visible||(c({height:0,width:0}),f({height:0,width:0}),h({top:0,left:0}),g({top:0,left:0}))},[t.visible]);const y=S=>{if(s.current=S,_.isValidElement(n)){const b=n.ref;typeof b=="function"?b(S):b!=null&&typeof b=="object"&&(b.current=S)}};if(!_.isValidElement(n))return console.error("Popover children must be a single valid React element."),T.jsx(T.Fragment,{children:n});const w=T.jsxs(T.Fragment,{children:[T.jsx(ch,{ref:o,...p,style:{position:"absolute",top:`${d.top}px`,left:`${d.left}px`,zIndex:p.zIndex,opacity:`${t.visible&&a.height!==0&&a.width!==0?1:0}`,transition:"opacity 0.25s ease"},children:e}),T.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:`${(p.zIndex??9)-1}`,backgroundColor:`${t.arrowcolor??t.bgcolor??_e(t.color,i).light}`,rotate:"45deg",position:"absolute",top:`${l.top}px`,left:`${l.left}px`}})]});return T.jsxs(T.Fragment,{children:[_.cloneElement(n,{ref:y}),t.visible&&Kn.createPortal(w,document.body)]})});Mc.displayName="Popover";const uh=({color:n,value:e,h:t,w:r,animationDurationInSeconds:i})=>{const o=Ve(),s=_.useRef(null);_.useEffect(()=>{s.current&&j.to(s.current,{width:`${e>100?100:e}%`,duration:i??1,ease:"power2.out"})},[e,i]);const a=_e(n,o);return T.jsx("div",{style:{width:r??"100%",position:"relative",backgroundColor:a.light,borderRadius:"8px",height:t??"8px",border:`2px solid ${a.light}`},children:T.jsx("div",{ref:s,style:{position:"absolute",top:"0",left:"0",height:"100%",width:"0%",backgroundColor:a.main,borderRadius:"8px"}})})},Oc=({option:n,handleChange:e})=>{const t=Ve();return T.jsx(ue,{onClick:()=>e&&n&&e(n),px:1.5,py:1,justify:"center",height:"37px",hoverstyle:{backgroundColor:t.palette.primary.light},children:n?.label&&T.jsx(Ie,{size:"14",align:"left",children:n.label})},n?.key)},Dc=_.forwardRef((n,e)=>{const t=Ve(),[r,i]=_.useState(n.value??n.initialValue??(n.placeholder?{key:n.placeholder,label:n.placeholder}:void 0));_.useEffect(()=>{n.value&&i(n.value)},[n.value]);const[o,s]=_.useState(!1),[a,c]=_.useState(void 0),u=_.useRef(null),f=At(e,u),d=_.useRef(null),h=_.useRef(null);_.useEffect(()=>{const g=p=>{u.current&&!u.current.contains(p.target)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),_.useLayoutEffect(()=>{o?j.to(h.current,{autoAlpha:1,y:0,duration:.3,ease:"power2.out"}):j.to(h.current,{autoAlpha:0,y:-10,duration:.2,ease:"power2.in"})},[o]),_.useEffect(()=>{d.current&&c(d.current.clientHeight)},[d.current]);const l=g=>{i(g),n.onChange&&n.onChange(g),s(!1)};return T.jsxs(ue,{ref:f,direction:"column",width:"100%",justify:"start",children:[(n.label||n.required)&&T.jsxs(ue,{direction:"row",gap:.5,align:"center",mb:"4px",style:{minHeight:"1.2em"},children:[n.label&&T.jsx(Ie,{size:"12",...n.labelProps,children:n.label}),n.required&&T.jsx(Ie,{color:t.palette.error.main,size:"12",children:"*"})]}),T.jsxs(ue,{ref:d,elevation:1,onClick:()=>s(!o),style:{position:"relative",cursor:"pointer",...n.triggerStyle},children:[n.CustomOption?T.jsx(n.CustomOption,{option:r}):T.jsx(Oc,{option:r}),T.jsx(ue,{ref:h,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?T.jsx(n.CustomOption,{option:g,handleChange:l}):T.jsx(Oc,{option:g,handleChange:l}))})]})]})});Dc.displayName="Select";const fh=Re.div`
325
324
  display: inline-block;
326
325
  position: relative;
327
326
  overflow: hidden;
@@ -330,8 +329,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
330
329
  width: ${({width:n})=>n||"100%"};
331
330
  height: ${({height:n})=>n||"20px"};
332
331
  border-radius: ${({radius:n,theme:e})=>n??$e[e.radius]};
333
- ${({style:n})=>n&&Sr(n)}
334
- `,ch=Ae.div`
332
+ ${({style:n})=>n&&Tr(n)}
333
+ `,dh=Re.div`
335
334
  position: absolute;
336
335
  top: 0;
337
336
  left: 0;
@@ -346,8 +345,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
346
345
  );
347
346
 
348
347
  transform: translateX(-100%);
349
- ${({style:n})=>n&&Sr(n)}
350
- `,uh=y.forwardRef(({width:n,height:e,radius:t,color:r,wrapperStyle:i,shimmerStyle:o},s)=>{const a=Xe(),c=y.useRef(null),u=r?he(r,a).main:void 0;return y.useEffect(()=>{const f=c.current;j.to(f,{xPercent:180,duration:1.5,repeat:-1,ease:"power1.inOut"})},[]),k.jsx(lh,{ref:s,width:n,height:e,radius:t,color:u,style:i,children:k.jsx(ch,{ref:c,color:u,style:o})})}),fh=y.forwardRef(({value:n,size:e=48,color:t,onChange:r,...i},o)=>{const s=Xe(),[a,c]=y.useState(n??!1),u=y.useRef(null),f=y.useRef(null),d=y.useRef(null),h=In(o,d),l=e,g=e/1.75,p=he(t??"default",s);y.useLayoutEffect(()=>{const S=j.timeline({defaults:{duration:.5,ease:"elastic.out(1, 0.5)"}});a?S.to(u.current,{cx:l-g/2}).to(f.current,{fill:p.main},"<").to(d.current,{filter:`drop-shadow(0px 1px 4px ${p.main}88)`,duration:.3,ease:"power2.out"},"<"):S.to(u.current,{cx:g/2}).to(f.current,{fill:p.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 _=()=>{j.to(u.current,{scaleX:1.2,scaleY:.8,duration:.1,transformOrigin:"center center"})},w=()=>{j.to(u.current,{scaleX:1,scaleY:1,duration:.4,ease:"elastic.out(1, 0.5)",transformOrigin:"center center"})};return k.jsxs("svg",{ref:h,width:l,height:g,viewBox:`0 0 ${l} ${g}`,onClick:()=>{r?.(!a),c(!a)},onMouseDown:_,onMouseUp:w,onMouseLeave:w,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,style:{cursor:"pointer",overflow:"visible",filter:a?`drop-shadow(0px 1px 4px ${p.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?p.main:p.light}),k.jsx("circle",{ref:u,cx:a?l-g/2:g/2,cy:g/2,r:g/2-3,fill:"white"})]})}),dh=Ae.textarea`
348
+ ${({style:n})=>n&&Tr(n)}
349
+ `,hh=_.forwardRef(({width:n,height:e,radius:t,color:r,wrapperStyle:i,shimmerStyle:o},s)=>{const a=Ve(),c=_.useRef(null),u=At(s,c),f=_.useRef(null),d=Me(c,!!r),h=r?_e(r,a).main:d;return _.useEffect(()=>{const l=f.current;j.to(l,{xPercent:180,duration:1.5,repeat:-1,ease:"power1.inOut"})},[]),T.jsx(fh,{ref:u,width:n,height:e,radius:t,color:h,style:i,children:T.jsx(dh,{ref:f,color:h,style:o})})}),ph=_.forwardRef(({value:n,size:e=48,color:t,onChange:r,...i},o)=>{const s=Ve(),[a,c]=_.useState(n??!1),u=_.useRef(null),f=_.useRef(null),d=_.useRef(null),h=At(o,d),l=e,g=e/1.75,p=_e(t??"default",s),y=Me(f,!1,a?p.main:p.light);_.useLayoutEffect(()=>{const b=j.timeline({defaults:{duration:.5,ease:"elastic.out(1, 0.5)"}});a?b.to(u.current,{cx:l-g/2}).to(f.current,{fill:p.main},"<").to(d.current,{filter:`drop-shadow(0px 1px 4px ${p.main}88)`,duration:.3,ease:"power2.out"},"<"):b.to(u.current,{cx:g/2}).to(f.current,{fill:p.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 w=()=>{j.to(u.current,{scaleX:1.2,scaleY:.8,duration:.1,transformOrigin:"center center"})},S=()=>{j.to(u.current,{scaleX:1,scaleY:1,duration:.4,ease:"elastic.out(1, 0.5)",transformOrigin:"center center"})};return T.jsxs("svg",{ref:h,width:l,height:g,viewBox:`0 0 ${l} ${g}`,onClick:()=>{r?.(!a),c(!a)},onMouseDown:w,onMouseUp:S,onMouseLeave:S,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,style:{cursor:"pointer",overflow:"visible",filter:a?`drop-shadow(0px 1px 4px ${p.main}88)`:"drop-shadow(0px 1px 2px rgba(0,0,0,0.15))",...i.style},children:[T.jsx("rect",{ref:f,width:l,height:g,rx:g/2,fill:a?p.main:p.light}),T.jsx("circle",{ref:u,cx:a?l-g/2:g/2,cy:g/2,r:g/2-3,fill:y??"white"})]})}),gh=Re.textarea`
351
350
  all: unset;
352
351
  box-sizing: border-box;
353
352
  font-family: ${({theme:n})=>n.text.fontFamily};
@@ -356,7 +355,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
356
355
  align-items: center;
357
356
  text-align: left;
358
357
 
359
- color: ${({theme:n,color:e})=>he(e??"default",n).main};
358
+ color: ${({theme:n,color:e})=>_e(e??"default",n).main};
360
359
  background-color: white;
361
360
  border-radius: min(16px, ${({theme:n})=>$e[n.radius]});
362
361
  padding: 8px 12px;
@@ -364,14 +363,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
364
363
  ${tc()};
365
364
 
366
365
  border: 1px solid
367
- ${({error:n,theme:e,color:t})=>n?e.palette.error.main:he(t??"default",e).main};
366
+ ${({error:n,theme:e,color:t})=>n?e.palette.error.main:_e(t??"default",e).main};
368
367
 
369
- ${({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})};
370
- ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Tr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
368
+ ${({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})=>tr({m:n,mb:e,ml:t,mr:r,mt:i,mx:o,my:s})};
369
+ ${({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})=>Pr({p:n,pb:e,pl:t,pr:r,pt:i,px:o,py:s})};
371
370
 
372
371
  width: ${({w:n})=>n};
373
372
  height: ${({h:n})=>n};
374
- `,Ac=y.forwardRef((n,e)=>{const t=Xe(),r=Pr("textarea",n),{label:i,required:o,labelProps:s,containerStyle:a,error:c,errorStyle:u,color:f="default",...d}=r;return k.jsxs(ue,{direction:"column",style:a,children:[(i||o)&&k.jsxs(ue,{direction:"row",gap:.5,align:"center",mb:"4px",style:{minHeight:"1.2em"},children:[i&&k.jsx(Re,{color:c?t.palette.error.main:he(f??"default",t).main,size:"12",...s,children:i}),o&&k.jsx(Re,{color:t.palette.error.main,size:"12",children:"*"})]}),k.jsx(dh,{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})]})});Ac.displayName="TextArea";const hh=Ae(ue)`
373
+ `,Ac=_.forwardRef((n,e)=>{const t=Ve(),r=Mr("textarea",n),{label:i,required:o,labelProps:s,containerStyle:a,error:c,errorStyle:u,color:f="default",...d}=r,h=_.useRef(null),l=At(e,h),g=Me(h,!!s?.color);return T.jsxs(ue,{direction:"column",style:a,children:[(i||o)&&T.jsxs(ue,{direction:"row",gap:.5,align:"center",mb:"4px",style:{minHeight:"1.2em"},children:[i&&T.jsx(Ie,{color:s?.color??(c?t.palette.error.main:g),size:"12",...s,children:i}),o&&T.jsx(Ie,{color:t.palette.error.main,size:"12",children:"*"})]}),T.jsx(gh,{ref:l,error:c,style:{color:g,...d.style},...d}),c&&T.jsx(Ie,{color:t.palette.error.main,size:"10",mt:"4px",style:{minHeight:"1.2em",...u},children:c})]})});Ac.displayName="TextArea";const mh=Re(ue)`
375
374
  box-shadow: ${()=>rc[2]};
376
375
  z-index: 99999;
377
376
  background-color: white;
@@ -381,13 +380,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
381
380
  max-width: 400px;
382
381
 
383
382
  svg {
384
- stroke: ${({theme:n,color:e})=>he(e??"default",n).main};
383
+ stroke: ${({theme:n,color:e})=>_e(e??"default",n).main};
385
384
  }
386
385
 
387
- `,fs=y.forwardRef(({children:n,style:e,...t},r)=>{const i=Xe(),{isMobile:o}=on();return k.jsxs(hh,{ref:r,p:.5,elevation:3,...t,style:{...e},children:[t.onClose&&k.jsx($i,{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(ue,{direction:"row",align:"center",style:{minWidth:"300px",width:o?"calc(100vw - 40px)":"auto"},children:[t.icon&&k.jsx(ue,{p:1.5,style:{backgroundColor:`${he(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})]})]})});fs.displayName="Toast";const Li={sm:{padding:"2px 6px",fontSize:"10px",letterSpacing:"0.5px",fontWeight:500},md:{padding:"4px 6px",fontSize:"12px",letterSpacing:"0.5px",fontWeight:500},lg:{padding:"6px 8px",fontSize:"14px",letterSpacing:"0.5px",fontWeight:500}},ph=Ae(ue)`
388
- background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>{if(n)return n;const i=he(t,r);switch(e){case"outlined":case"text":return"transparent";case"soft":return`${i.main}22`;case"contained":default:return i.main}}};
389
- color: ${({variant:n,color:e,theme:t})=>{const r=he(e,t);switch(n){case"outlined":case"text":case"soft":return r.main;case"contained":default:return"white"}}};
390
- border: ${({variant:n,color:e,theme:t})=>n==="outlined"?`1px solid ${he(e,t).main}`:"1px solid transparent"};
386
+ `,_h=({resolvedBgColor:n,iconNode:e})=>{const t=_.useRef(null),r=Me(t,!1,n);return T.jsx(ue,{ref:t,p:1.5,style:{backgroundColor:n,color:r??"currentColor"},children:e})},fs=_.forwardRef(({children:n,style:e,...t},r)=>{const i=Ve(),{isMobile:o}=an();return T.jsxs(mh,{ref:r,p:.5,elevation:3,...t,style:{...e},children:[t.onClose&&T.jsx(Ri,{size:"sm",variant:"text",color:"default",starticon:T.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:[T.jsx("path",{d:"M18 6 6 18"}),T.jsx("path",{d:"m6 6 12 12"})]}),onClick:t.onClose,style:{position:"absolute",top:"0px",right:"0px",cursor:"pointer"}}),n,!n&&T.jsxs(ue,{direction:"row",align:"center",style:{minWidth:"300px",width:o?"calc(100vw - 40px)":"auto"},children:[t.icon&&T.jsx(_h,{resolvedBgColor:`${_e(t.color??"default",i).light}44`,iconNode:t.icon}),t.title&&T.jsx(Ie,{size:"14",px:1.5,py:t.icon?0:1.5,children:t.title})]})]})});fs.displayName="Toast";const Li={sm:{padding:"2px 6px",fontSize:"10px",letterSpacing:"0.5px",fontWeight:500},md:{padding:"4px 6px",fontSize:"12px",letterSpacing:"0.5px",fontWeight:500},lg:{padding:"6px 8px",fontSize:"14px",letterSpacing:"0.5px",fontWeight:500}},yh=Re(ue)`
387
+ background-color: ${({bgcolor:n,variant:e,color:t,theme:r})=>{if(n)return n;const i=_e(t,r);switch(e){case"outlined":case"text":return"transparent";case"soft":return`${i.main}22`;case"contained":default:return i.main}}};
388
+ color: ${({variant:n,color:e,theme:t})=>{const r=_e(e,t);switch(n){case"outlined":case"text":case"soft":return r.main;case"contained":default:return rr(r.main)}}};
389
+ border: ${({variant:n,color:e,theme:t})=>n==="outlined"?`1px solid ${_e(e,t).main}`:"1px solid transparent"};
391
390
 
392
391
  padding: ${({size:n})=>Li[n].padding};
393
392
  font-size: ${({size:n})=>Li[n].fontSize};
@@ -397,14 +396,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mi]+=1);const is=n=>typeof n=
397
396
  box-shadow: ${({variant:n})=>n==="contained"?"0 2px 4px rgba(0, 0, 0, 0.2)":"none"};
398
397
  pointer-events: none;
399
398
  white-space: nowrap;
400
- `,$c=y.forwardRef((n,e)=>{const{children:t,label:r,...i}=n,[o,s]=y.useState(!1),a=y.useRef(null),c=y.useRef(null),[u,f]=y.useState({height:0,width:0}),[d,h]=y.useState({height:0,width:0}),[l,g]=y.useState({top:0,left:0}),p=Pr("tooltip",i),_=y.useMemo(()=>({...{placement:"top",zIndex:100,color:"primary",variant:"contained",size:"md"},...p}),[p]);y.useEffect(()=>{if(c?.current&&o){const{clientHeight:m,clientWidth:v}=c.current;h({height:m,width:v})}},[c?.current,o]),y.useEffect(()=>{if(a?.current&&o){const{clientHeight:m,clientWidth:v}=a.current;f({height:m,width:v})}},[a?.current,o,r]),y.useLayoutEffect(()=>{const m=()=>{if(!o||!c.current||!a.current||u.height===0||u.width===0||d.height===0)return;const v=c.current.getBoundingClientRect(),C=window.scrollY,T=window.scrollX,{height:M,width:W}=u,{height:I,width:z}=d,O=i.gap??8;let R={top:0,left:0};const $=v.left+T+z/2,N=v.top+C+I/2;switch(_.placement){case"bottom":R={top:v.top+C+I+O,left:$-W/2};break;case"left":R={top:N-M/2,left:v.left+T-W-O};break;case"right":R={top:N-M/2,left:v.left+T+z+O};break;case"top":default:R={top:v.top+C-M-O,left:$-W/2};break}g(R)};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 w=m=>{if(c.current=m,y.isValidElement(t)){const v=t.ref;typeof v=="function"?v(m):v!=null&&typeof v=="object"&&(v.current=m)}},S=()=>s(!0),b=()=>s(!1);if(!y.isValidElement(t))return k.jsx(k.Fragment,{children:t});const P=k.jsx(ph,{ref:a,color:_.color,variant:_.variant,bgcolor:_.bgcolor,radius:_.radius,size:_.size,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",..._.style},children:typeof r=="string"?k.jsx(Re,{weight:"medium",color:"inherit",style:{fontSize:"inherit"},..._.labelProps,children:r}):r});return k.jsxs(k.Fragment,{children:[y.cloneElement(t,{ref:w,onMouseEnter:S,onMouseLeave:b}),o&&Kn.createPortal(P,document.body)]})});$c.displayName="Tooltip";/*!
399
+ `,Rc=_.forwardRef((n,e)=>{const{children:t,label:r,...i}=n,[o,s]=_.useState(!1),a=_.useRef(null),c=_.useRef(null),[u,f]=_.useState({height:0,width:0}),[d,h]=_.useState({height:0,width:0}),[l,g]=_.useState({top:0,left:0}),p=Mr("tooltip",i),y=_.useMemo(()=>({...{placement:"top",zIndex:100,color:"primary",variant:"contained",size:"md"},...p}),[p]);_.useEffect(()=>{if(c?.current&&o){const{clientHeight:m,clientWidth:v}=c.current;h({height:m,width:v})}},[c?.current,o]),_.useEffect(()=>{if(a?.current&&o){const{clientHeight:m,clientWidth:v}=a.current;f({height:m,width:v})}},[a?.current,o,r]),_.useLayoutEffect(()=>{const m=()=>{if(!o||!c.current||!a.current||u.height===0||u.width===0||d.height===0)return;const v=c.current.getBoundingClientRect(),C=window.scrollY,k=window.scrollX,{height:M,width:W}=u,{height:I,width:z}=d,O=i.gap??8;let $={top:0,left:0};const R=v.left+k+z/2,N=v.top+C+I/2;switch(y.placement){case"bottom":$={top:v.top+C+I+O,left:R-W/2};break;case"left":$={top:N-M/2,left:v.left+k-W-O};break;case"right":$={top:N-M/2,left:v.left+k+z+O};break;case"top":default:$={top:v.top+C-M-O,left:R-W/2};break}g($)};return m(),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),()=>{window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",m)}},[o,y.placement,u,d]);const w=m=>{if(c.current=m,_.isValidElement(t)){const v=t.ref;typeof v=="function"?v(m):v!=null&&typeof v=="object"&&(v.current=m)}},S=()=>s(!0),b=()=>s(!1);if(!_.isValidElement(t))return T.jsx(T.Fragment,{children:t});const P=T.jsx(yh,{ref:a,color:y.color,variant:y.variant,bgcolor:y.bgcolor,radius:y.radius,size:y.size,style:{position:"absolute",top:`${l.top}px`,left:`${l.left}px`,zIndex:y.zIndex,opacity:`${o&&u.height!==0&&u.width!==0?1:0}`,transition:"opacity 0.2s ease",...y.style},children:typeof r=="string"?T.jsx(Ie,{weight:"medium",color:"inherit",style:{fontSize:"inherit"},...y.labelProps,children:r}):r});return T.jsxs(T.Fragment,{children:[_.cloneElement(t,{ref:w,onMouseEnter:S,onMouseLeave:b}),o&&Kn.createPortal(P,document.body)]})});Rc.displayName="Tooltip";/*!
401
400
  * matrix 3.13.0
402
401
  * https://gsap.com
403
402
  *
404
403
  * Copyright 2008-2025, GreenSock. All rights reserved.
405
404
  * Subject to the terms at https://gsap.com/standard-license
406
405
  * @author: Jack Doyle, jack@greensock.com
407
- */var Bt,Mr,ds,zi,Ln,Ni,Fi,zn,yt="transform",hs=yt+"Origin",Rc,Ic=function(e){var t=e.ownerDocument||e;for(!(yt in e.style)&&("msTransform"in e.style)&&(yt="msTransform",hs=yt+"Origin");t.parentNode&&(t=t.parentNode););if(Mr=window,Fi=new Or,t){Bt=t,ds=t.documentElement,zi=t.body,zn=Bt.createElementNS("http://www.w3.org/2000/svg","g"),zn.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)"),Rc=i.offsetParent!==r,o.removeChild(r))}return t},gh=function(e){for(var t,r;e&&e!==zi;)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},Lc=[],zc=[],mh=function(){return Mr.pageYOffset||Bt.scrollTop||ds.scrollTop||zi.scrollTop||0},_h=function(){return Mr.pageXOffset||Bt.scrollLeft||ds.scrollLeft||zi.scrollLeft||0},ps=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},yh=function n(e){if(Mr.getComputedStyle(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},gs=function n(e,t){if(e.parentNode&&(Bt||Ic(e))){var r=ps(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?(Ni||(Ni=n(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+s+","+a+")"),Ni.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."},xh=function(e){for(var t=new Or,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},wh=function(e){var t=e.getCTM(),r;return t||(r=e.style[yt],e.style[yt]="none",e.appendChild(zn),t=zn.getCTM(),e.removeChild(zn),r?e.style[yt]=r:e.style.removeProperty(yt.replace(/([A-Z])/g,"-$1").toLowerCase())),t||Fi.clone()},vh=function(e,t){var r=ps(e),i=e===r,o=r?Lc:zc,s=e.parentNode,a=s&&!r&&s.shadowRoot&&s.shadowRoot.appendChild?s.shadowRoot:s,c,u,f,d,h,l;if(e===Mr)return e;if(o.length||o.push(gs(e,1),gs(e,2),gs(e,3)),c=r?Ni:Ln,r)i?(f=wh(e),d=-f.e/f.a,h=-f.f/f.d,u=Fi):e.getBBox?(f=e.getBBox(),u=e.transform?e.transform.baseVal:{},u=u.numberOfItems?u.numberOfItems>1?xh(u):u.getItem(0).matrix:Fi,d=u.a*f.x+u.c*f.y,h=u.b*f.x+u.d*f.y):(u=new Or,d=h=0),(i?r:s).appendChild(c),c.setAttribute("transform","matrix("+u.a+","+u.b+","+u.c+","+u.d+","+(u.e+d)+","+(u.f+h)+")");else{if(d=h=0,Rc)for(u=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==u&&f.parentNode;)(Mr.getComputedStyle(f)[yt]+"").length>4&&(d=f.offsetLeft,h=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,h+=s.scrollTop||0,s=s.parentNode;f=c.style,f.top=e.offsetTop-h+"px",f.left=e.offsetLeft-d+"px",f[yt]=l[yt],f[hs]=l[hs],f.position=l.position==="fixed"?"fixed":"absolute",a.appendChild(c)}return c},ms=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),ms(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 ms(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,h=r.b,l=r.d,g=r.e,p=r.f;return ms(this,f*i+h*s,f*o+h*a,d*i+l*s,d*o+l*a,c+g*i+p*s,u+g*o+p*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,h=this.f;return i.x=o*a+s*u+d||0,i.y=o*c+s*f+h||0,i},n})();function Dr(n,e,t,r){if(!n||!n.parentNode||(Bt||Ic(n)).documentElement===n)return new Or;var i=gh(n),o=ps(n),s=o?Lc:zc,a=vh(n),c=s[0].getBoundingClientRect(),u=s[1].getBoundingClientRect(),f=s[2].getBoundingClientRect(),d=a.parentNode,h=yh(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+(h?0:_h()),c.top+(h?0:mh()));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 Nc(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function bh(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var re,fe,nt,xt,Wt,_s,Yt,ys,Nn,rr,Fc,xs,Fn,ws,Bn,wt,Wn,Bi,Bc,vs,Wi=0,Wc=function(){return typeof window<"u"},Yc=function(){return re||Wc()&&(re=window.gsap)&&re.registerPlugin&&re},nr=function(e){return typeof e=="function"},Yn=function(e){return typeof e=="object"},vt=function(e){return typeof e>"u"},Yi=function(){return!1},Hn="transform",bs="transformOrigin",ir=function(e){return Math.round(e*1e4)/1e4},jn=Array.isArray,Hi=function(e,t){var r=nt.createElementNS?nt.createElementNS("http://www.w3.org/1999/xhtml".replace(/^https/,"http"),e):nt.createElement(e);return r.style?r:nt.createElement(e)},Hc=180/Math.PI,Ar=1e20,Sh=new Or,or=Date.now||function(){return new Date().getTime()},$r=[],an={},Ch=0,Th=/^(?:a|input|textarea|button|select)$/i,jc=0,ln={},Ht={},Xc=function(e,t){var r={},i;for(i in e)r[i]=t?e[i]*t:e[i];return r},kh=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Vc=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)},Uc=function(){return $r.forEach(function(e){return e()})},Ph=function(e){$r.push(e),$r.length===1&&re.ticker.add(Uc)},qc=function(){return!$r.length&&re.ticker.remove(Uc)},Gc=function(e){for(var t=$r.length;t--;)$r[t]===e&&$r.splice(t,1);re.to(qc,{overwrite:!0,delay:15,duration:0,onComplete:qc,data:"_draggable"})},Eh=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Me=function(e,t,r,i){if(e.addEventListener){var o=Fn[t];i=i||(Fc?{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=Fn[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()},Mh=function(e,t){for(var r=e.length;r--;)if(e[r].identifier===t)return!0},Oh=function n(e){ws=e.touches&&Wi<e.touches.length,ke(e.target,"touchend",n)},Kc=function(e){ws=e.touches&&Wi<e.touches.length,Me(e.target,"touchend",Oh)},cn=function(e){return fe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0},un=function(e){return fe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0},Qc=function n(e,t){Me(e,"scroll",t),fn(e.parentNode)||n(e.parentNode,t)},Zc=function n(e,t){ke(e,"scroll",t),fn(e.parentNode)||n(e.parentNode,t)},fn=function(e){return!e||e===xt||e.nodeType===9||e===nt.body||e===fe||!e.nodeType||!e.parentNode},Jc=function(e,t){var r=t==="x"?"Width":"Height",i="scroll"+r,o="client"+r;return Math.max(0,fn(e)?Math.max(xt[i],Wt[i])-(fe["inner"+r]||xt[o]||Wt[o]):e[i]-e[o])},Ss=function n(e,t){var r=Jc(e,"x"),i=Jc(e,"y");fn(e)?e=Ht:n(e.parentNode,t),e._gsMaxScrollX=r,e._gsMaxScrollY=i,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},Cs=function(e,t,r){var i=e.style;i&&(vt(i[t])&&(t=Nn(t,e)||t),r==null?i.removeProperty&&i.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):i[t]=r)},Xn=function(e){return fe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)},Rr={},dn=function(e){if(e===fe)return Rr.left=Rr.top=0,Rr.width=Rr.right=xt.clientWidth||e.innerWidth||Wt.clientWidth||0,Rr.height=Rr.bottom=(e.innerHeight||0)-20<xt.clientHeight?xt.clientHeight:e.innerHeight||Wt.clientHeight||0,Rr;var t=e.ownerDocument||nt,r=vt(e.pageX)?!e.nodeType&&!vt(e.left)&&!vt(e.top)?e:rr(e)[0].getBoundingClientRect():{left:e.pageX-un(t),top:e.pageY-cn(t),right:e.pageX-un(t)+1,bottom:e.pageY-cn(t)+1};return vt(r.right)&&!vt(r.width)?(r.right=r.left+r.width,r.bottom=r.top+r.height):vt(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},ve=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},eu=function(e,t){var r=rr(e)[0],i,o,s;return!r.nodeType&&r!==fe?vt(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}):Dh(r,t)},ht={},Dh=function(e,t){t=rr(t)[0];var r=e.getBBox&&e.ownerSVGElement,i=e.ownerDocument||nt,o,s,a,c,u,f,d,h,l,g,p,_,w;if(e===fe)a=cn(i),o=un(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===fe||vt(t))return e.getBoundingClientRect();o=a=0,r?(g=e.getBBox(),p=g.width,_=g.height):(e.viewBox&&(g=e.viewBox.baseVal)&&(o=g.x||0,a=g.y||0,p=g.width,_=g.height),p||(w=Xn(e),g=w.boxSizing==="border-box",p=(parseFloat(w.width)||e.clientWidth||0)+(g?0:parseFloat(w.borderLeftWidth)+parseFloat(w.borderRightWidth)),_=(parseFloat(w.height)||e.clientHeight||0)+(g?0:parseFloat(w.borderTopWidth)+parseFloat(w.borderBottomWidth)))),s=p,c=_}return e===t?{left:o,top:a,width:s-o,height:c-a}:(u=Dr(t,!0).multiply(Dr(e)),f=u.apply({x:o,y:a}),d=u.apply({x:s,y:a}),h=u.apply({x:s,y:c}),l=u.apply({x:o,y:c}),o=Math.min(f.x,d.x,h.x,l.x),a=Math.min(f.y,d.y,h.y,l.y),{left:o,top:a,width:Math.max(f.x,d.x,h.x,l.x)-o,height:Math.max(f.y,d.y,h.y,l.y)-a})},Ts=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]=Xc(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 h=t.call(e,d),l,g;if(o!==1)if(Yn(h)){l={};for(g in h)l[g]=h[g]*o;h=l}else h*=o;return h}:a.end=t;return(r||r===0)&&(a.max=r),(i||i===0)&&(a.min=i),s&&(a.velocity=0),a},Ah=function n(e){var t;return!e||!e.getAttribute||e===Wt?!1:(t=e.getAttribute("data-clickable"))==="true"||t!=="false"&&(Th.test(e.nodeName+"")||e.getAttribute("contentEditable")==="true")?!0:n(e.parentNode)},ji=function(e,t){for(var r=e.length,i;r--;)i=e[r],i.ondragstart=i.onselectstart=t?null:Yi,re.set(i,{lazy:!0,userSelect:t?"text":"none"})},$h=function n(e){if(Xn(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},tu,ks,Rh=function(e,t){e=re.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,h=0,l=0,g=0,p,_,w,S,b,P;tu&&t.force3D!==!1?(b="translate3d(",P="px,0px)"):Hn&&(b="translate(",P="px)"),this.scrollTop=function(m,v){if(!arguments.length)return-this.top();this.top(-m,v)},this.scrollLeft=function(m,v){if(!arguments.length)return-this.left();this.left(-m,v)},this.left=function(m,v){if(!arguments.length)return-(e.scrollLeft+a);var C=e.scrollLeft-u,T=a;if((C>2||C<-2)&&!v){u=e.scrollLeft,re.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||T)&&(this._skip||(i[Hn]=b+-a+"px,"+-s+P),a+h>=0&&(i.paddingRight=a+h+"px")),e.scrollLeft=m|0,u=e.scrollLeft},this.top=function(m,v){if(!arguments.length)return-(e.scrollTop+s);var C=e.scrollTop-c,T=s;if((C>2||C<-2)&&!v){c=e.scrollTop,re.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||T)&&(this._skip||(i[Hn]=b+-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;)S=o.nextSibling,e.appendChild(o),o=S;e===r.parentNode&&e.removeChild(r)},this.enable=function(){if(o=e.firstChild,o!==r){for(;o;)S=o.nextSibling,r.appendChild(o),o=S;e.appendChild(r),this.calibrate()}},this.calibrate=function(m){var v=e.clientWidth===p,C,T,M;c=e.scrollTop,u=e.scrollLeft,!(v&&e.clientHeight===_&&r.offsetHeight===w&&f===e.scrollWidth&&d===e.scrollHeight&&!m)&&((s||a)&&(T=this.left(),M=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),C=Xn(e),(!v||m)&&(i.display="block",i.width="auto",i.paddingRight="0px",h=Math.max(0,e.scrollWidth-e.clientWidth),h&&(h+=parseFloat(C.paddingLeft)+(ks?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=h+"px",ks&&(i.paddingBottom=C.paddingBottom),p=e.clientWidth,_=e.clientHeight,f=e.scrollWidth,d=e.scrollHeight,l=e.scrollWidth-p,g=e.scrollHeight-_,w=r.offsetHeight,i.display="block",(T||M)&&(this.left(T),this.top(M)))},this.content=r,this.element=e,this._skip=!1,this.enable()},Ps=function(e){if(Wc()&&document.body){var t=window&&window.navigator;fe=window,nt=document,xt=nt.documentElement,Wt=nt.body,_s=Hi("div"),Bi=!!window.PointerEvent,Yt=Hi("div"),Yt.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Wn=Yt.style.cursor==="grab"?"grab":"move",Bn=t&&t.userAgent.toLowerCase().indexOf("android")!==-1,xs="ontouchstart"in xt&&"orientation"in fe||t&&(t.MaxTouchPoints>0||t.msMaxTouchPoints>0),ks=(function(){var r=Hi("div"),i=Hi("div"),o=i.style,s=Wt,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})(),Fn=(function(r){for(var i=r.split(","),o=("onpointerdown"in _s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in _s?"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(){Fc=1}}))}catch{}return s})("touchstart,touchmove,touchend,touchcancel"),Me(nt,"touchcancel",Yi),Me(fe,"touchmove",Yi),Wt&&Wt.addEventListener("touchstart",Yi),Me(nt,"contextmenu",function(){for(var r in an)an[r].isPressed&&an[r].endDrag()}),re=ys=Yc()}re?(wt=re.plugins.inertia,Bc=re.core.context||function(){},Nn=re.utils.checkPrefix,Hn=Nn(Hn),bs=Nn(bs),rr=re.utils.toArray,vs=re.core.getStyleSaver,tu=!!Nn("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")},Ih=(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})(),hn=(function(n){bh(e,n);function e(t,r){var i;i=n.call(this)||this,ys||Ps(1),t=rr(t)[0],i.styles=vs&&vs(t,"transform,left,top"),wt||(wt=re.plugins.inertia),i.vars=r=Xc(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,re.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"),h=r.minimumMovement||2,l=Nc(i),g=rr(r.trigger||r.handle||t),p={},_=0,w=!1,S=r.autoScrollMarginTop||40,b=r.autoScrollMarginRight||40,P=r.autoScrollMarginBottom||40,m=r.autoScrollMarginLeft||40,v=r.clickableTest||Ah,C=0,T=t._gsap||re.core.getCache(t),M=$h(t),W=function(x,D){return parseFloat(T.get(t,x,D))},I=t.ownerDocument||nt,z,O,R,$,N,H,ee,K,G,U,F,q,Z,Pe,Ie,At,pe,bt,pt,it,Ye,Vn,ze,oe,iu,gt,St,Ms,Os,ou,ot,su,Xi,au=function(x){return dt(x),x.stopImmediatePropagation&&x.stopImmediatePropagation(),!1},$t=function V(x){if(l.autoScroll&&l.isDragging&&(w||pe)){var D=t,E=l.autoScroll*15,A,L,Y,J,X,se,ne,ae;for(w=!1,Ht.scrollTop=fe.pageYOffset!=null?fe.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,Ht.scrollLeft=fe.pageXOffset!=null?fe.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft,J=l.pointerX-Ht.scrollLeft,X=l.pointerY-Ht.scrollTop;D&&!L;)L=fn(D.parentNode),A=L?Ht:D.parentNode,Y=L?{bottom:Math.max(xt.clientHeight,fe.innerHeight||0),right:Math.max(xt.clientWidth,fe.innerWidth||0),left:0,top:0}:A.getBoundingClientRect(),se=ne=0,d&&(ae=A._gsMaxScrollY-A.scrollTop,ae<0?ne=ae:X>Y.bottom-P&&ae?(w=!0,ne=Math.min(ae,E*(1-Math.max(0,Y.bottom-X)/P)|0)):X<Y.top+S&&A.scrollTop&&(w=!0,ne=-Math.min(A.scrollTop,E*(1-Math.max(0,X-Y.top)/S)|0)),ne&&(A.scrollTop+=ne)),f&&(ae=A._gsMaxScrollX-A.scrollLeft,ae<0?se=ae:J>Y.right-b&&ae?(w=!0,se=Math.min(ae,E*(1-Math.max(0,Y.right-J)/b)|0)):J<Y.left+m&&A.scrollLeft&&(w=!0,se=-Math.min(A.scrollLeft,E*(1-Math.max(0,J-Y.left)/m)|0)),se&&(A.scrollLeft+=se)),L&&(se||ne)&&(fe.scrollTo(A.scrollLeft,A.scrollTop),Gn(l.pointerX+se,l.pointerY+ne)),D=A}if(pe){var be=l.x,He=l.y;a?(l.deltaX=be-parseFloat(T.rotation),l.rotation=be,T.rotation=be+"deg",T.renderTransform(1,T)):O?(d&&(l.deltaY=He-O.top(),O.top(He)),f&&(l.deltaX=be-O.left(),O.left(be))):s?(d&&(l.deltaY=He-parseFloat(T.y),T.y=He+"px"),f&&(l.deltaX=be-parseFloat(T.x),T.x=be+"px"),T.renderTransform(1,T)):(d&&(l.deltaY=He-parseFloat(t.style.top||0),t.style.top=He+"px"),f&&(l.deltaX=be-parseFloat(t.style.left||0),t.style.left=be+"px")),K&&!x&&!Ms&&(Ms=!0,ve(l,"drag","onDrag")===!1&&(f&&(l.x-=l.deltaX),d&&(l.y-=l.deltaY),V(!0)),Ms=!1)}pe=!1},Ir=function(x,D){var E=l.x,A=l.y,L,Y;t._gsap||(T=re.core.getCache(t)),T.uncache&&re.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||(Y=Xn(t))&&Y.top)||0,l.x=parseFloat(t.style.left||(Y||{}).left)||0),(pt||it||Ye)&&!D&&(l.isDragging||l.isThrowing)&&(Ye&&(ln.x=l.x,ln.y=l.y,L=Ye(ln),L.x!==l.x&&(l.x=L.x,pe=!0),L.y!==l.y&&(l.y=L.y,pe=!0)),pt&&(L=pt(l.x),L!==l.x&&(l.x=L,a&&(l.rotation=L),pe=!0)),it&&(L=it(l.y),L!==l.y&&(l.y=L),pe=!0)),pe&&$t(!0),x||(l.deltaX=l.x-E,l.deltaY=l.y-A,ve(l,"throwupdate","onThrowUpdate"))},Ds=function(x,D,E,A){return D==null&&(D=-Ar),E==null&&(E=Ar),nr(x)?function(L){var Y=l.isPressed?1-l.edgeResistance:1;return x.call(l,(L>E?E+(L-E)*Y:L<D?D+(L-D)*Y:L)*A)*A}:jn(x)?function(L){for(var Y=x.length,J=0,X=Ar,se,ne;--Y>-1;)se=x[Y],ne=se-L,ne<0&&(ne=-ne),ne<X&&se>=D&&se<=E&&(J=Y,X=ne);return x[J]}:isNaN(x)?function(L){return L}:function(){return x*A}},Wh=function(x,D,E,A,L,Y,J){return Y=Y&&Y<Ar?Y*Y:Ar,nr(x)?function(X){var se=l.isPressed?1-l.edgeResistance:1,ne=X.x,ae=X.y,be,He,jt;return X.x=ne=ne>E?E+(ne-E)*se:ne<D?D+(ne-D)*se:ne,X.y=ae=ae>L?L+(ae-L)*se:ae<A?A+(ae-A)*se:ae,be=x.call(l,X),be!==X&&(X.x=be.x,X.y=be.y),J!==1&&(X.x*=J,X.y*=J),Y<Ar&&(He=X.x-ne,jt=X.y-ae,He*He+jt*jt>Y&&(X.x=ne,X.y=ae)),X}:jn(x)?function(X){for(var se=x.length,ne=0,ae=Ar,be,He,jt,mt;--se>-1;)jt=x[se],be=jt.x-X.x,He=jt.y-X.y,mt=be*be+He*He,mt<ae&&(ne=se,ae=mt);return ae<=Y?x[ne]:X}:function(X){return X}},As=function(){var x,D,E,A;ee=!1,O?(O.calibrate(),l.minX=F=-O.maxScrollLeft(),l.minY=Z=-O.maxScrollTop(),l.maxX=U=l.maxY=q=0,ee=!0):r.bounds&&(x=eu(r.bounds,t.parentNode),a?(l.minX=F=x.left,l.maxX=U=x.left+x.width,l.minY=Z=l.maxY=q=0):!vt(r.bounds.maxX)||!vt(r.bounds.maxY)?(x=r.bounds,l.minX=F=x.minX,l.minY=Z=x.minY,l.maxX=U=x.maxX,l.maxY=q=x.maxY):(D=eu(t,t.parentNode),l.minX=F=Math.round(W(c,"px")+x.left-D.left),l.minY=Z=Math.round(W(u,"px")+x.top-D.top),l.maxX=U=Math.round(F+(x.width-D.width)),l.maxY=q=Math.round(Z+(x.height-D.height))),F>U&&(l.minX=U,l.maxX=U=F,F=l.minX),Z>q&&(l.minY=q,l.maxY=q=Z,Z=l.minY),a&&(l.minRotation=F,l.maxRotation=U),ee=!0),r.liveSnap&&(E=r.liveSnap===!0?r.snap||{}:r.liveSnap,A=jn(E)||nr(E),a?(pt=Ds(A?E:E.rotation,F,U,1),it=null):E.points?Ye=Wh(A?E:E.points,F,U,Z,q,E.radius,O?-1:1):(f&&(pt=Ds(A?E:E.x||E.left||E.scrollLeft,F,U,O?-1:1)),d&&(it=Ds(A?E:E.y||E.top||E.scrollTop,Z,q,O?-1:1))))},Yh=function(){l.isThrowing=!1,ve(l,"throwcomplete","onThrowComplete")},Hh=function(){l.isThrowing=!1},$s=function(x,D){var E,A,L,Y;x&&wt?(x===!0&&(E=r.snap||r.liveSnap||{},A=jn(E)||nr(E),x={resistance:(r.throwResistance||r.resistance||1e3)/(a?10:1)},a?x.rotation=Ts(l,A?E:E.rotation,U,F,1,D):(f&&(x[c]=Ts(l,A?E:E.points||E.x||E.left,U,F,O?-1:1,D||l.lockedAxis==="x")),d&&(x[u]=Ts(l,A?E:E.points||E.y||E.top,q,Z,O?-1:1,D||l.lockedAxis==="y")),(E.points||jn(E)&&Yn(E[0]))&&(x.linkedProps=c+","+u,x.radius=E.radius))),l.isThrowing=!0,Y=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)?Y===0||Yn(x)&&x.resistance>1e3?0:.5:r.minDuration,overshoot:Y}),l.tween=L=re.to(O||t,{inertia:x,data:"_draggable",inherit:!1,onComplete:Yh,onInterrupt:Hh,onUpdate:r.fastMode?ve:Ir,onUpdateParams:r.fastMode?[l,"onthrowupdate","onThrowUpdate"]:E&&E.radius?[!1,!0]:[]}),r.fastMode||(O&&(O._skip=!0),L.render(1e9,!0,!0),Ir(!0,!0),l.endX=l.x,l.endY=l.y,a&&(l.endRotation=l.x),L.play(0),Ir(!0,!0),O&&(O._skip=!1))):ee&&l.applyBounds()},lu=function(x){var D=oe,E;oe=Dr(t.parentNode,!0),x&&l.isPressed&&!oe.equals(D||new Or)&&(E=D.inverse().apply({x:R,y:$}),oe.apply(E,E),R=E.x,$=E.y),oe.equals(Sh)&&(oe=null)},Vi=function(){var x=1-l.edgeResistance,D=M?un(I):0,E=M?cn(I):0,A,L,Y;s&&(T.x=W(c,"px")+"px",T.y=W(u,"px")+"px",T.renderTransform()),lu(!1),ht.x=l.pointerX-D,ht.y=l.pointerY-E,oe&&oe.apply(ht,ht),R=ht.x,$=ht.y,pe&&(Gn(l.pointerX,l.pointerY),$t(!0)),su=Dr(t),O?(As(),H=O.top(),N=O.left()):(Un()?(Ir(!0,!0),As()):l.applyBounds(),a?(A=t.ownerSVGElement?[T.xOrigin-t.getBBox().x,T.yOrigin-t.getBBox().y]:(Xn(t)[bs]||"0 0").split(" "),At=l.rotationOrigin=Dr(t).apply({x:parseFloat(A[0])||0,y:parseFloat(A[1])||0}),Ir(!0,!0),L=l.pointerX-At.x-D,Y=At.y-l.pointerY+E,N=l.x,H=l.y=Math.atan2(Y,L)*Hc):(H=W(u,"px"),N=W(c,"px"))),ee&&x&&(N>U?N=U+(N-U)/x:N<F&&(N=F-(F-N)/x),a||(H>q?H=q+(H-q)/x:H<Z&&(H=Z-(Z-H)/x))),l.startX=N=ir(N),l.startY=H=ir(H)},Un=function(){return l.tween&&l.tween.isActive()},jh=function(){Yt.parentNode&&!Un()&&!l.isDragging&&Yt.parentNode.removeChild(Yt)},qn=function(x,D){var E;if(!z||l.isPressed||!x||(x.type==="mousedown"||x.type==="pointerdown")&&!D&&or()-C<30&&Fn[l.pointerEvent.type]){ot&&x&&z&&dt(x);return}if(iu=Un(),Xi=!1,l.pointerEvent=x,Fn[x.type]?(ze=~x.type.indexOf("touch")?x.currentTarget||x.target:I,Me(ze,"touchend",Ct),Me(ze,"touchmove",Lr),Me(ze,"touchcancel",Ct),Me(I,"touchstart",Kc)):(ze=null,Me(I,"mousemove",Lr)),St=null,(!Bi||!ze)&&(Me(I,"mouseup",Ct),x&&x.target&&Me(x.target,"mouseup",Ct)),Vn=v.call(l,x.target)&&r.dragClickables===!1&&!D,Vn){Me(x.target,"change",Ct),ve(l,"pressInit","onPressInit"),ve(l,"press","onPress"),ji(g,!0),ot=!1;return}if(gt=!ze||f===d||l.vars.allowNativeTouchScrolling===!1||l.vars.allowContextMenu&&x&&(x.ctrlKey||x.which>2)?!1:f?"y":"x",ot=!gt&&!l.allowEventDefault,ot&&(dt(x),Me(fe,"touchforcechange",dt)),x.changedTouches?(x=Pe=x.changedTouches[0],Ie=x.identifier):x.pointerId?Ie=x.pointerId:Pe=Ie=null,Wi++,Ph($t),$=l.pointerY=x.pageY,R=l.pointerX=x.pageX,ve(l,"pressInit","onPressInit"),(gt||l.autoScroll)&&Ss(t.parentNode),t.parentNode&&l.autoScroll&&!O&&!a&&t.parentNode._gsMaxScrollX&&!Yt.parentNode&&!t.getBBox&&(Yt.style.width=t.parentNode.scrollWidth+"px",t.parentNode.appendChild(Yt)),Vi(),l.tween&&l.tween.kill(),l.isThrowing=!1,re.killTweensOf(O||t,p,!0),O&&re.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,K=!!(r.onDrag||l._listeners.drag),G=!!(r.onMove||l._listeners.move),r.cursor!==!1||r.activeCursor)for(E=g.length;--E>-1;)re.set(g[E],{cursor:r.activeCursor||r.cursor||(Wn==="grab"?"grabbing":Wn)});ve(l,"press","onPress")},Lr=function(x){var D=x,E,A,L,Y,J,X;if(!z||ws||!l.isPressed||!x){ot&&x&&z&&dt(x);return}if(l.pointerEvent=x,E=x.changedTouches,E){if(x=E[0],x!==Pe&&x.identifier!==Ie){for(Y=E.length;--Y>-1&&(x=E[Y]).identifier!==Ie&&x.target!==t;);if(Y<0)return}}else if(x.pointerId&&Ie&&x.pointerId!==Ie)return;if(ze&&gt&&!St&&(ht.x=x.pageX-(M?un(I):0),ht.y=x.pageY-(M?cn(I):0),oe&&oe.apply(ht,ht),A=ht.x,L=ht.y,J=Math.abs(A-R),X=Math.abs(L-$),(J!==X&&(J>h||X>h)||Bn&&gt===St)&&(St=J>X&&f?"x":"y",gt&&St!==gt&&Me(fe,"touchforcechange",dt),l.vars.lockAxisOnTouchScroll!==!1&&f&&d&&(l.lockedAxis=St==="x"?"y":"x",nr(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,D)),Bn&&gt===St))){Ct(D);return}!l.allowEventDefault&&(!gt||St&&gt!==St)&&D.cancelable!==!1?(dt(D),ot=!0):ot&&(ot=!1),l.autoScroll&&(w=!0),Gn(x.pageX,x.pageY,G)},Gn=function(x,D,E){var A=1-l.dragResistance,L=1-l.edgeResistance,Y=l.pointerX,J=l.pointerY,X=H,se=l.x,ne=l.y,ae=l.endX,be=l.endY,He=l.endRotation,jt=pe,mt,sr,Ne,Ee,Rs,Tt;l.pointerX=x,l.pointerY=D,M&&(x-=un(I),D-=cn(I)),a?(Ee=Math.atan2(At.y-D,x-At.x)*Hc,Rs=l.y-Ee,Rs>180?(H-=360,l.y=Ee):Rs<-180&&(H+=360,l.y=Ee),l.x!==N||Math.max(Math.abs(R-x),Math.abs($-D))>h?(l.y=Ee,Ne=N+(H-Ee)*A):Ne=N):(oe&&(Tt=x*oe.a+D*oe.c+oe.e,D=x*oe.b+D*oe.d+oe.f,x=Tt),sr=D-$,mt=x-R,sr<h&&sr>-h&&(sr=0),mt<h&&mt>-h&&(mt=0),(l.lockAxis||l.lockedAxis)&&(mt||sr)&&(Tt=l.lockedAxis,Tt||(l.lockedAxis=Tt=f&&Math.abs(mt)>Math.abs(sr)?"y":d?"x":null,Tt&&nr(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,l.pointerEvent)),Tt==="y"?sr=0:Tt==="x"&&(mt=0)),Ne=ir(N+mt*A),Ee=ir(H+sr*A)),(pt||it||Ye)&&(l.x!==Ne||l.y!==Ee&&!a)&&(Ye&&(ln.x=Ne,ln.y=Ee,Tt=Ye(ln),Ne=ir(Tt.x),Ee=ir(Tt.y)),pt&&(Ne=ir(pt(Ne))),it&&(Ee=ir(it(Ee)))),ee&&(Ne>U?Ne=U+Math.round((Ne-U)*L):Ne<F&&(Ne=F+Math.round((Ne-F)*L)),a||(Ee>q?Ee=Math.round(q+(Ee-q)*L):Ee<Z&&(Ee=Math.round(Z+(Ee-Z)*L)))),(l.x!==Ne||l.y!==Ee&&!a)&&(a?(l.endRotation=l.x=l.endX=Ne,pe=!0):(d&&(l.y=l.endY=Ee,pe=!0),f&&(l.x=l.endX=Ne,pe=!0)),!E||ve(l,"move","onMove")!==!1?!l.isDragging&&l.isPressed&&(l.isDragging=Xi=!0,ve(l,"dragstart","onDragStart")):(l.pointerX=Y,l.pointerY=J,H=X,l.x=se,l.y=ne,l.endX=ae,l.endY=be,l.endRotation=He,pe=jt))},Ct=function V(x,D){if(!z||!l.isPressed||x&&Ie!=null&&!D&&(x.pointerId&&x.pointerId!==Ie&&x.target!==t||x.changedTouches&&!Mh(x.changedTouches,Ie))){ot&&x&&z&&dt(x);return}l.isPressed=!1;var E=x,A=l.isDragging,L=l.vars.allowContextMenu&&x&&(x.ctrlKey||x.which>2),Y=re.delayedCall(.001,jh),J,X,se,ne,ae;if(ze?(ke(ze,"touchend",V),ke(ze,"touchmove",Lr),ke(ze,"touchcancel",V),ke(I,"touchstart",Kc)):ke(I,"mousemove",Lr),ke(fe,"touchforcechange",dt),(!Bi||!ze)&&(ke(I,"mouseup",V),x&&x.target&&ke(x.target,"mouseup",V)),pe=!1,A&&(_=jc=or(),l.isDragging=!1),Gc($t),Vn&&!L){x&&(ke(x.target,"change",V),l.pointerEvent=E),ji(g,!1),ve(l,"release","onRelease"),ve(l,"click","onClick"),Vn=!1;return}for(X=g.length;--X>-1;)Cs(g[X],"cursor",r.cursor||(r.cursor!==!1?Wn:null));if(Wi--,x){if(J=x.changedTouches,J&&(x=J[0],x!==Pe&&x.identifier!==Ie)){for(X=J.length;--X>-1&&(x=J[X]).identifier!==Ie&&x.target!==t;);if(X<0&&!D)return}l.pointerEvent=E,l.pointerX=x.pageX,l.pointerY=x.pageY}return L&&E?(dt(E),ot=!0,ve(l,"release","onRelease")):E&&!A?(ot=!1,iu&&(r.snap||r.bounds)&&$s(r.inertia||r.throwProps),ve(l,"release","onRelease"),(!Bn||E.type!=="touchmove")&&E.type.indexOf("cancel")===-1&&(ve(l,"click","onClick"),or()-C<300&&ve(l,"doubleclick","onDoubleClick"),ne=E.target||t,C=or(),ae=function(){C!==Os&&l.enabled()&&!l.isPressed&&!E.defaultPrevented&&(ne.click?ne.click():I.createEvent&&(se=I.createEvent("MouseEvents"),se.initMouseEvent("click",!0,!0,fe,1,l.pointerEvent.screenX,l.pointerEvent.screenY,l.pointerX,l.pointerY,!1,!1,!1,!1,0,null),ne.dispatchEvent(se)))},!Bn&&!E.defaultPrevented&&re.delayedCall(.05,ae))):($s(r.inertia||r.throwProps),!l.allowEventDefault&&E&&(r.dragClickables!==!1||!v.call(l,E.target))&&A&&(!gt||St&&gt===St)&&E.cancelable!==!1?(ot=!0,dt(E)):ot=!1,ve(l,"release","onRelease")),Un()&&Y.duration(l.tween.duration()),A&&ve(l,"dragend","onDragEnd"),!0},Ui=function(x){if(x&&l.isDragging&&!O){var D=x.target||t.parentNode,E=D.scrollLeft-D._gsScrollX,A=D.scrollTop-D._gsScrollY;(E||A)&&(oe?(R-=E*oe.a+A*oe.c,$-=A*oe.d+E*oe.b):(R-=E,$-=A),D._gsScrollX+=E,D._gsScrollY+=A,Gn(l.pointerX,l.pointerY))}},cu=function(x){var D=or(),E=D-C<100,A=D-_<50,L=E&&Os===C,Y=l.pointerEvent&&l.pointerEvent.defaultPrevented,J=E&&ou===C,X=x.isTrusted||x.isTrusted==null&&E&&L;if((L||A&&l.vars.suppressClickOnDrag!==!1)&&x.stopImmediatePropagation&&x.stopImmediatePropagation(),E&&!(l.pointerEvent&&l.pointerEvent.defaultPrevented)&&(!L||X&&!J)){X&&L&&(ou=C),Os=C;return}(l.isPressed||A||E)&&(!X||!x.detail||!E||Y)&&dt(x),!E&&!A&&!Xi&&(x&&x.target&&(l.pointerEvent=x),ve(l,"click","onClick"))},uu=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 bt=e.get(t),bt&&bt.kill(),i.startDrag=function(V,x){var D,E,A,L;qn(V||l.pointerEvent,!0),x&&!l.hitTest(V||l.pointerEvent)&&(D=dn(V||l.pointerEvent),E=dn(t),A=uu({x:D.left+D.width/2,y:D.top+D.height/2}),L=uu({x:E.left+E.width/2,y:E.top+E.height/2}),R-=A.x-L.x,$-=A.y-L.y),l.isDragging||(l.isDragging=Xi=!0,ve(l,"dragstart","onDragStart"))},i.drag=Lr,i.endDrag=function(V){return Ct(V||l.pointerEvent,!0)},i.timeSinceDrag=function(){return l.isDragging?0:(or()-_)/1e3},i.timeSinceClick=function(){return(or()-C)/1e3},i.hitTest=function(V,x){return e.hitTest(l.target,V,x)},i.getDirection=function(V,x){var D=V==="velocity"&&wt?V:Yn(V)&&!a?"element":"start",E,A,L,Y,J,X;return D==="element"&&(J=dn(l.target),X=dn(V)),E=D==="start"?l.x-N:D==="velocity"?wt.getVelocity(t,c):J.left+J.width/2-(X.left+X.width/2),a?E<0?"counter-clockwise":"clockwise":(x=x||2,A=D==="start"?l.y-H:D==="velocity"?wt.getVelocity(t,u):J.top+J.height/2-(X.top+X.height/2),L=Math.abs(E/A),Y=L<1/x?"":E<0?"left":"right",L<x&&(Y!==""&&(Y+="-"),Y+=A<0?"up":"down"),Y)},i.applyBounds=function(V,x){var D,E,A,L,Y,J;if(V&&r.bounds!==V)return r.bounds=V,l.update(!0,x);if(Ir(!0),As(),ee&&!Un()){if(D=l.x,E=l.y,D>U?D=U:D<F&&(D=F),E>q?E=q:E<Z&&(E=Z),(l.x!==D||l.y!==E)&&(A=!0,l.x=l.endX=D,a?l.endRotation=D:l.y=l.endY=E,pe=!0,$t(!0),l.autoScroll&&!l.isDragging))for(Ss(t.parentNode),L=t,Ht.scrollTop=fe.pageYOffset!=null?fe.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,Ht.scrollLeft=fe.pageXOffset!=null?fe.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft;L&&!J;)J=fn(L.parentNode),Y=J?Ht:L.parentNode,d&&Y.scrollTop>Y._gsMaxScrollY&&(Y.scrollTop=Y._gsMaxScrollY),f&&Y.scrollLeft>Y._gsMaxScrollX&&(Y.scrollLeft=Y._gsMaxScrollX),L=Y;l.isThrowing&&(A||l.endX>U||l.endX<F||l.endY>q||l.endY<Z)&&$s(r.inertia||r.throwProps,A)}return l},i.update=function(V,x,D){if(x&&l.isPressed){var E=Dr(t),A=su.apply({x:l.x-N,y:l.y-H}),L=Dr(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,$t(!0),Vi()}var Y=l.x,J=l.y;return lu(!x),V?l.applyBounds():(pe&&D&&$t(!0),Ir(!0)),x&&(Gn(l.pointerX,l.pointerY),pe&&$t(!0)),l.isPressed&&!x&&(f&&Math.abs(Y-l.x)>.01||d&&Math.abs(J-l.y)>.01&&!a)&&Vi(),l.autoScroll&&(Ss(t.parentNode,l.isDragging),w=l.isDragging,$t(!0),Zc(t,Ui),Qc(t,Ui)),l},i.enable=function(V){var x={lazy:!0},D,E,A;if(r.cursor!==!1&&(x.cursor=r.cursor||Wn),re.utils.checkPrefix("touchCallout")&&(x.touchCallout="none"),V!=="soft"){for(Vc(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],Bi||Me(A,"mousedown",qn),Me(A,"touchstart",qn),Me(A,"click",cu,!0),re.set(A,x),A.getBBox&&A.ownerSVGElement&&f!==d&&re.set(A.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":f?"pan-y":"pan-x"}),r.allowContextMenu||Me(A,"contextmenu",au);ji(g,!1)}return Qc(t,Ui),z=!0,wt&&V!=="soft"&&wt.track(O||t,s?"x,y":a?"rotation":"top,left"),t._gsDragID=D=t._gsDragID||"d"+Ch++,an[D]=l,O&&(O.enable(),O.element._gsDragID=D),(r.bounds||a)&&Vi(),r.bounds&&l.applyBounds(),l},i.disable=function(V){for(var x=l.isDragging,D=g.length,E;--D>-1;)Cs(g[D],"cursor",null);if(V!=="soft"){for(Vc(g,null),D=g.length;--D>-1;)E=g[D],Cs(E,"touchCallout",null),ke(E,"mousedown",qn),ke(E,"touchstart",qn),ke(E,"click",cu,!0),ke(E,"contextmenu",au);ji(g,!0),ze&&(ke(ze,"touchcancel",Ct),ke(ze,"touchend",Ct),ke(ze,"touchmove",Lr)),ke(I,"mouseup",Ct),ke(I,"mousemove",Lr)}return Zc(t,Ui),z=!1,wt&&V!=="soft"&&(wt.untrack(O||t,s?"x,y":a?"rotation":"top,left"),l.tween&&l.tween.kill()),O&&O.disable(),Gc($t),l.isDragging=l.isPressed=Vn=!1,x&&ve(l,"dragend","onDragEnd"),l},i.enabled=function(V,x){return arguments.length?V?l.enable(x):l.disable(x):z},i.kill=function(){return l.isThrowing=!1,l.tween&&l.tween.kill(),l.disable(),re.set(g,{clearProps:"userSelect"}),delete an[t._gsDragID],l},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~o.indexOf("scroll")&&(O=i.scrollProxy=new Rh(t,kh({onKill:function(){l.isPressed&&Ct(null)}},r)),t.style.overflowY=d&&!xs?"auto":"hidden",t.style.overflowX=f&&!xs?"auto":"hidden",t=O.content),a?p.rotation=1:(f&&(p[c]=1),d&&(p[u]=1)),T.force3D="force3D"in r?r.force3D:!0,Bc(Nc(i)),i.enable(),i}return e.register=function(r){re=r,Ps()},e.create=function(r,i){return ys||Ps(!0),rr(r).map(function(o){return new e(o,i)})},e.get=function(r){return an[(rr(r)[0]||{})._gsDragID]},e.timeSinceDrag=function(){return(or()-jc)/1e3},e.hitTest=function(r,i,o){if(r===i)return!1;var s=dn(r),a=dn(i),c=s.top,u=s.left,f=s.right,d=s.bottom,h=s.width,l=s.height,g=a.left>f||a.right<u||a.top>d||a.bottom<c,p,_,w;return g||!o?!g:(w=(o+"").indexOf("%")!==-1,o=parseFloat(o)||0,p={left:Math.max(u,a.left),top:Math.max(c,a.top)},p.width=Math.min(f,a.right)-p.left,p.height=Math.min(d,a.bottom)-p.top,p.width<0||p.height<0?!1:w?(o*=.01,_=p.width*p.height,_>=h*l*o||_>=a.width*a.height*o):p.width>o&&p.height>o)},e})(Ih);Eh(hn.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),hn.zIndex=1e3,hn.version="3.13.0",Yc()&&re.registerPlugin(hn),j.registerPlugin(Er),j.registerPlugin(hn);const Es=y.createContext({toasts:[],addToast:()=>{}}),ru=({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(Es.Provider,{value:s,children:[n," ",k.jsx(nu,{toasts:r,removeToast:o,settings:t})]})},nu=({toasts:n,removeToast:e,settings:t})=>{const r=y.useRef(new Map),i=y.useRef(null),[o,s]=y.useState(!1),{isMobile:a}=on(),c=y.useCallback(l=>{const g=r.current.get(l);if(g){j.killTweensOf(g);const p=t.placement.includes("left");j.to(g,{x:p?"-100%":"100%",opacity:0,duration:.4,ease:"power2.in",onComplete:()=>{e(l)}})}},[e,t.placement]);y.useEffect(()=>{const l=t.placement.includes("top"),g=t.placement.includes("left");n.forEach(p=>{const _=r.current.get(p.id);_&&!_.dataset.animatedIn&&(_.dataset.animatedIn="true",j.fromTo(_,{opacity:0,y:l?-100:100,x:g?-50:50},{opacity:1,y:0,x:0,duration:.5,ease:"power2.out",onComplete:()=>{const w=j.timeline({delay:p.duration||t.durationInSeconds,onComplete:()=>{j.to(_,{opacity:0,y:l?-50:50,duration:.3,ease:"power2.in",onComplete:()=>{e(p.id),r.current.delete(p.id)}})}});_.timeline=w}}))})},[n,e,t.durationInSeconds,t.placement]);const u=n.slice(-t.maxToastDisplay);Er(()=>{j.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=[],g=t.placement.includes("left");return u.forEach(p=>{const _=r.current.get(p.id);if(!_)return;const w=hn.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(){j.set(this.target,{opacity:1-Math.abs(this.x)/Math.abs(g?this.minX:this.maxX)})},onDragEnd:function(){const S=_.offsetWidth*.1;(g?this.x<-S:this.x>S)?j.to(this.target,{x:g?"-100%":"100%",opacity:0,duration:.3,ease:"power2.in",onComplete:()=>{e(p.id)}}):(j.to(this.target,{x:0,opacity:1,duration:.4,ease:"elastic.out(1, 0.75)"}),this.target.timeline&&this.target.timeline.resume())}});l.push(w[0])}),()=>{l.forEach(p=>p.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"),h={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(ue,{ref:i,gap:.5,direction:"column-reverse",style:h,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:u.map((l,g)=>{const{id:p,..._}=l;return t.Custom?k.jsx("div",{className:"toast-item",ref:w=>{w&&r.current.set(p,w)},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(p):void 0,..._})},p):k.jsx(fs,{className:"toast-item",onClose:t.closable?()=>c(p):void 0,ref:w=>{w&&r.current.set(p,w)},..._,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)"}},p)})})},Lh=()=>y.useContext(kr),zh=()=>{const{addToast:n}=y.useContext(Es);return{addToast:n}},Nh=({children:n})=>{const{theme:e}=y.useContext(kr);return k.jsx(Id,{theme:e,children:n})},Fh=({children:n,themes:e,settings:t})=>k.jsx(nc,{themes:e,autoContrast:t?.autoContrast,children:k.jsx(Nh,{children:k.jsxs(ru,{settings:t?.toasts,children:[k.jsx("div",{id:"modal"}),n]})})}),Bh={button:'\n# Button Component\nA versatile button component with multiple variants, colors, and interactive features.\n\n## Usage\n```tsx\nimport { Button } from "@julien-wiegandt/open-ui";\n\n<Button variant="contained" color="primary" label="Click me" onClick={() => console.log(\'Clicked!\')} />\n```\n\n## Props\n- `label`: Button text (string)\n- `variant`: "contained" | "outlined" | "text" | "soft" (default: "contained")\n- `color`: "primary" | "secondary" | "default" | "error" or hex string (default: "primary")\n- `size`: "sm" | "md" | "lg" (default: "md")\n- `starticon`: React node or icon name string (e.g., "bell", "sparkles")\n- `endicon`: React node or icon name string\n- `loading`: boolean (shows spinner)\n- `endanimation`: boolean (shows check icon after onClick completes)\n- `radius`: "none" | "sm" | "md" | "lg" | "full" (theme default)\n- `disabled`: boolean\n- `w`: string (width)\n- `h`: string (height)\n- `align`: "left" | "center" | "right"\n- `onClick`: () => void | Promise<void>\n',checkbox:'\n# Checkbox Component\nA simple checkbox for boolean inputs.\n\n## Usage\n```tsx\nimport { Checkbox } from "@julien-wiegandt/open-ui";\n\n<Checkbox label="Accept terms" color="primary" checked={checked} onChange={setChecked} />\n```\n\n## Props\n- `checked`: boolean (controlled state)\n- `defaultChecked`: boolean (uncontrolled)\n- `onChange`: (checked: boolean) => void\n- `label`: string\n- `labelPosition`: "left" | "right" (default: "right")\n- `color`: Color token or hex\n- `size`: "sm" | "md" | "lg" (default: "md")\n- `disabled`: boolean\n',chip:'\n# Chip Component\nSmall interactive or informational elements.\n\n## Usage\n```tsx\nimport { Chip } from "@julien-wiegandt/open-ui";\n\n<Chip label={"React"} color={"primary"} variant={"contained"} />\n```\n\n## Props\n- `label`: string\n- `variant`: "contained" | "outlined" | "text" (theme default)\n- `color`: Color token or hex\n- `size`: "sm" | "md" | "lg" (default: "md")\n- `startIcon`: ReactNode\n- `endIcon`: ReactNode\n- `radius`: Radius (theme default)\n',divider:`
406
+ */var Wt,Dr,ds,zi,Ln,Ni,Fi,zn,yt="transform",hs=yt+"Origin",$c,Ic=function(e){var t=e.ownerDocument||e;for(!(yt in e.style)&&("msTransform"in e.style)&&(yt="msTransform",hs=yt+"Origin");t.parentNode&&(t=t.parentNode););if(Dr=window,Fi=new Ar,t){Wt=t,ds=t.documentElement,zi=t.body,zn=Wt.createElementNS("http://www.w3.org/2000/svg","g"),zn.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)"),$c=i.offsetParent!==r,o.removeChild(r))}return t},xh=function(e){for(var t,r;e&&e!==zi;)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},Lc=[],zc=[],wh=function(){return Dr.pageYOffset||Wt.scrollTop||ds.scrollTop||zi.scrollTop||0},vh=function(){return Dr.pageXOffset||Wt.scrollLeft||ds.scrollLeft||zi.scrollLeft||0},ps=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},bh=function n(e){if(Dr.getComputedStyle(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},gs=function n(e,t){if(e.parentNode&&(Wt||Ic(e))){var r=ps(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?(Ni||(Ni=n(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+s+","+a+")"),Ni.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."},Sh=function(e){for(var t=new Ar,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},Ch=function(e){var t=e.getCTM(),r;return t||(r=e.style[yt],e.style[yt]="none",e.appendChild(zn),t=zn.getCTM(),e.removeChild(zn),r?e.style[yt]=r:e.style.removeProperty(yt.replace(/([A-Z])/g,"-$1").toLowerCase())),t||Fi.clone()},Th=function(e,t){var r=ps(e),i=e===r,o=r?Lc:zc,s=e.parentNode,a=s&&!r&&s.shadowRoot&&s.shadowRoot.appendChild?s.shadowRoot:s,c,u,f,d,h,l;if(e===Dr)return e;if(o.length||o.push(gs(e,1),gs(e,2),gs(e,3)),c=r?Ni:Ln,r)i?(f=Ch(e),d=-f.e/f.a,h=-f.f/f.d,u=Fi):e.getBBox?(f=e.getBBox(),u=e.transform?e.transform.baseVal:{},u=u.numberOfItems?u.numberOfItems>1?Sh(u):u.getItem(0).matrix:Fi,d=u.a*f.x+u.c*f.y,h=u.b*f.x+u.d*f.y):(u=new Ar,d=h=0),(i?r:s).appendChild(c),c.setAttribute("transform","matrix("+u.a+","+u.b+","+u.c+","+u.d+","+(u.e+d)+","+(u.f+h)+")");else{if(d=h=0,$c)for(u=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==u&&f.parentNode;)(Dr.getComputedStyle(f)[yt]+"").length>4&&(d=f.offsetLeft,h=f.offsetTop,f=0);if(l=Dr.getComputedStyle(e),l.position!=="absolute"&&l.position!=="fixed")for(u=e.offsetParent;s&&s!==u;)d+=s.scrollLeft||0,h+=s.scrollTop||0,s=s.parentNode;f=c.style,f.top=e.offsetTop-h+"px",f.left=e.offsetLeft-d+"px",f[yt]=l[yt],f[hs]=l[hs],f.position=l.position==="fixed"?"fixed":"absolute",a.appendChild(c)}return c},ms=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},Ar=(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),ms(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 ms(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,h=r.b,l=r.d,g=r.e,p=r.f;return ms(this,f*i+h*s,f*o+h*a,d*i+l*s,d*o+l*a,c+g*i+p*s,u+g*o+p*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,h=this.f;return i.x=o*a+s*u+d||0,i.y=o*c+s*f+h||0,i},n})();function Rr(n,e,t,r){if(!n||!n.parentNode||(Wt||Ic(n)).documentElement===n)return new Ar;var i=xh(n),o=ps(n),s=o?Lc:zc,a=Th(n),c=s[0].getBoundingClientRect(),u=s[1].getBoundingClientRect(),f=s[2].getBoundingClientRect(),d=a.parentNode,h=bh(n),l=new Ar((u.left-c.left)/100,(u.top-c.top)/100,(f.left-c.left)/100,(f.top-c.top)/100,c.left+(h?0:vh()),c.top+(h?0:wh()));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 Nc(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function kh(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var re,fe,it,xt,Yt,_s,Ht,ys,Nn,ir,Fc,xs,Fn,ws,Bn,wt,Wn,Bi,Bc,vs,Wi=0,Wc=function(){return typeof window<"u"},Yc=function(){return re||Wc()&&(re=window.gsap)&&re.registerPlugin&&re},or=function(e){return typeof e=="function"},Yn=function(e){return typeof e=="object"},vt=function(e){return typeof e>"u"},Yi=function(){return!1},Hn="transform",bs="transformOrigin",sr=function(e){return Math.round(e*1e4)/1e4},jn=Array.isArray,Hi=function(e,t){var r=it.createElementNS?it.createElementNS("http://www.w3.org/1999/xhtml".replace(/^https/,"http"),e):it.createElement(e);return r.style?r:it.createElement(e)},Hc=180/Math.PI,$r=1e20,Ph=new Ar,ar=Date.now||function(){return new Date().getTime()},Ir=[],cn={},Eh=0,Mh=/^(?:a|input|textarea|button|select)$/i,jc=0,un={},jt={},Xc=function(e,t){var r={},i;for(i in e)r[i]=t?e[i]*t:e[i];return r},Oh=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Vc=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)},Uc=function(){return Ir.forEach(function(e){return e()})},Dh=function(e){Ir.push(e),Ir.length===1&&re.ticker.add(Uc)},qc=function(){return!Ir.length&&re.ticker.remove(Uc)},Gc=function(e){for(var t=Ir.length;t--;)Ir[t]===e&&Ir.splice(t,1);re.to(qc,{overwrite:!0,delay:15,duration:0,onComplete:qc,data:"_draggable"})},Ah=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Oe=function(e,t,r,i){if(e.addEventListener){var o=Fn[t];i=i||(Fc?{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=Fn[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()},Rh=function(e,t){for(var r=e.length;r--;)if(e[r].identifier===t)return!0},$h=function n(e){ws=e.touches&&Wi<e.touches.length,ke(e.target,"touchend",n)},Kc=function(e){ws=e.touches&&Wi<e.touches.length,Oe(e.target,"touchend",$h)},fn=function(e){return fe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0},dn=function(e){return fe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0},Qc=function n(e,t){Oe(e,"scroll",t),hn(e.parentNode)||n(e.parentNode,t)},Zc=function n(e,t){ke(e,"scroll",t),hn(e.parentNode)||n(e.parentNode,t)},hn=function(e){return!e||e===xt||e.nodeType===9||e===it.body||e===fe||!e.nodeType||!e.parentNode},Jc=function(e,t){var r=t==="x"?"Width":"Height",i="scroll"+r,o="client"+r;return Math.max(0,hn(e)?Math.max(xt[i],Yt[i])-(fe["inner"+r]||xt[o]||Yt[o]):e[i]-e[o])},Ss=function n(e,t){var r=Jc(e,"x"),i=Jc(e,"y");hn(e)?e=jt:n(e.parentNode,t),e._gsMaxScrollX=r,e._gsMaxScrollY=i,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},Cs=function(e,t,r){var i=e.style;i&&(vt(i[t])&&(t=Nn(t,e)||t),r==null?i.removeProperty&&i.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):i[t]=r)},Xn=function(e){return fe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)},Lr={},pn=function(e){if(e===fe)return Lr.left=Lr.top=0,Lr.width=Lr.right=xt.clientWidth||e.innerWidth||Yt.clientWidth||0,Lr.height=Lr.bottom=(e.innerHeight||0)-20<xt.clientHeight?xt.clientHeight:e.innerHeight||Yt.clientHeight||0,Lr;var t=e.ownerDocument||it,r=vt(e.pageX)?!e.nodeType&&!vt(e.left)&&!vt(e.top)?e:ir(e)[0].getBoundingClientRect():{left:e.pageX-dn(t),top:e.pageY-fn(t),right:e.pageX-dn(t)+1,bottom:e.pageY-fn(t)+1};return vt(r.right)&&!vt(r.width)?(r.right=r.left+r.width,r.bottom=r.top+r.height):vt(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},ve=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},eu=function(e,t){var r=ir(e)[0],i,o,s;return!r.nodeType&&r!==fe?vt(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}):Ih(r,t)},ht={},Ih=function(e,t){t=ir(t)[0];var r=e.getBBox&&e.ownerSVGElement,i=e.ownerDocument||it,o,s,a,c,u,f,d,h,l,g,p,y,w;if(e===fe)a=fn(i),o=dn(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===fe||vt(t))return e.getBoundingClientRect();o=a=0,r?(g=e.getBBox(),p=g.width,y=g.height):(e.viewBox&&(g=e.viewBox.baseVal)&&(o=g.x||0,a=g.y||0,p=g.width,y=g.height),p||(w=Xn(e),g=w.boxSizing==="border-box",p=(parseFloat(w.width)||e.clientWidth||0)+(g?0:parseFloat(w.borderLeftWidth)+parseFloat(w.borderRightWidth)),y=(parseFloat(w.height)||e.clientHeight||0)+(g?0:parseFloat(w.borderTopWidth)+parseFloat(w.borderBottomWidth)))),s=p,c=y}return e===t?{left:o,top:a,width:s-o,height:c-a}:(u=Rr(t,!0).multiply(Rr(e)),f=u.apply({x:o,y:a}),d=u.apply({x:s,y:a}),h=u.apply({x:s,y:c}),l=u.apply({x:o,y:c}),o=Math.min(f.x,d.x,h.x,l.x),a=Math.min(f.y,d.y,h.y,l.y),{left:o,top:a,width:Math.max(f.x,d.x,h.x,l.x)-o,height:Math.max(f.y,d.y,h.y,l.y)-a})},Ts=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]=Xc(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 h=t.call(e,d),l,g;if(o!==1)if(Yn(h)){l={};for(g in h)l[g]=h[g]*o;h=l}else h*=o;return h}:a.end=t;return(r||r===0)&&(a.max=r),(i||i===0)&&(a.min=i),s&&(a.velocity=0),a},Lh=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)},ji=function(e,t){for(var r=e.length,i;r--;)i=e[r],i.ondragstart=i.onselectstart=t?null:Yi,re.set(i,{lazy:!0,userSelect:t?"text":"none"})},zh=function n(e){if(Xn(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return n(e)},tu,ks,Nh=function(e,t){e=re.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,h=0,l=0,g=0,p,y,w,S,b,P;tu&&t.force3D!==!1?(b="translate3d(",P="px,0px)"):Hn&&(b="translate(",P="px)"),this.scrollTop=function(m,v){if(!arguments.length)return-this.top();this.top(-m,v)},this.scrollLeft=function(m,v){if(!arguments.length)return-this.left();this.left(-m,v)},this.left=function(m,v){if(!arguments.length)return-(e.scrollLeft+a);var C=e.scrollLeft-u,k=a;if((C>2||C<-2)&&!v){u=e.scrollLeft,re.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||k)&&(this._skip||(i[Hn]=b+-a+"px,"+-s+P),a+h>=0&&(i.paddingRight=a+h+"px")),e.scrollLeft=m|0,u=e.scrollLeft},this.top=function(m,v){if(!arguments.length)return-(e.scrollTop+s);var C=e.scrollTop-c,k=s;if((C>2||C<-2)&&!v){c=e.scrollTop,re.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||k)&&(this._skip||(i[Hn]=b+-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;)S=o.nextSibling,e.appendChild(o),o=S;e===r.parentNode&&e.removeChild(r)},this.enable=function(){if(o=e.firstChild,o!==r){for(;o;)S=o.nextSibling,r.appendChild(o),o=S;e.appendChild(r),this.calibrate()}},this.calibrate=function(m){var v=e.clientWidth===p,C,k,M;c=e.scrollTop,u=e.scrollLeft,!(v&&e.clientHeight===y&&r.offsetHeight===w&&f===e.scrollWidth&&d===e.scrollHeight&&!m)&&((s||a)&&(k=this.left(),M=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),C=Xn(e),(!v||m)&&(i.display="block",i.width="auto",i.paddingRight="0px",h=Math.max(0,e.scrollWidth-e.clientWidth),h&&(h+=parseFloat(C.paddingLeft)+(ks?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=h+"px",ks&&(i.paddingBottom=C.paddingBottom),p=e.clientWidth,y=e.clientHeight,f=e.scrollWidth,d=e.scrollHeight,l=e.scrollWidth-p,g=e.scrollHeight-y,w=r.offsetHeight,i.display="block",(k||M)&&(this.left(k),this.top(M)))},this.content=r,this.element=e,this._skip=!1,this.enable()},Ps=function(e){if(Wc()&&document.body){var t=window&&window.navigator;fe=window,it=document,xt=it.documentElement,Yt=it.body,_s=Hi("div"),Bi=!!window.PointerEvent,Ht=Hi("div"),Ht.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Wn=Ht.style.cursor==="grab"?"grab":"move",Bn=t&&t.userAgent.toLowerCase().indexOf("android")!==-1,xs="ontouchstart"in xt&&"orientation"in fe||t&&(t.MaxTouchPoints>0||t.msMaxTouchPoints>0),ks=(function(){var r=Hi("div"),i=Hi("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})(),Fn=(function(r){for(var i=r.split(","),o=("onpointerdown"in _s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in _s?"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(){Fc=1}}))}catch{}return s})("touchstart,touchmove,touchend,touchcancel"),Oe(it,"touchcancel",Yi),Oe(fe,"touchmove",Yi),Yt&&Yt.addEventListener("touchstart",Yi),Oe(it,"contextmenu",function(){for(var r in cn)cn[r].isPressed&&cn[r].endDrag()}),re=ys=Yc()}re?(wt=re.plugins.inertia,Bc=re.core.context||function(){},Nn=re.utils.checkPrefix,Hn=Nn(Hn),bs=Nn(bs),ir=re.utils.toArray,vs=re.core.getStyleSaver,tu=!!Nn("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")},Fh=(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})(),gn=(function(n){kh(e,n);function e(t,r){var i;i=n.call(this)||this,ys||Ps(1),t=ir(t)[0],i.styles=vs&&vs(t,"transform,left,top"),wt||(wt=re.plugins.inertia),i.vars=r=Xc(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,re.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"),h=r.minimumMovement||2,l=Nc(i),g=ir(r.trigger||r.handle||t),p={},y=0,w=!1,S=r.autoScrollMarginTop||40,b=r.autoScrollMarginRight||40,P=r.autoScrollMarginBottom||40,m=r.autoScrollMarginLeft||40,v=r.clickableTest||Lh,C=0,k=t._gsap||re.core.getCache(t),M=zh(t),W=function(x,D){return parseFloat(k.get(t,x,D))},I=t.ownerDocument||it,z,O,$,R,N,H,ee,K,G,U,F,q,Z,Pe,Le,Rt,he,bt,pt,ot,He,Vn,Ne,oe,iu,gt,St,Ms,Os,ou,st,su,Xi,au=function(x){return dt(x),x.stopImmediatePropagation&&x.stopImmediatePropagation(),!1},$t=function V(x){if(l.autoScroll&&l.isDragging&&(w||he)){var D=t,E=l.autoScroll*15,A,L,Y,J,X,se,ne,ae;for(w=!1,jt.scrollTop=fe.pageYOffset!=null?fe.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,jt.scrollLeft=fe.pageXOffset!=null?fe.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft,J=l.pointerX-jt.scrollLeft,X=l.pointerY-jt.scrollTop;D&&!L;)L=hn(D.parentNode),A=L?jt:D.parentNode,Y=L?{bottom:Math.max(xt.clientHeight,fe.innerHeight||0),right:Math.max(xt.clientWidth,fe.innerWidth||0),left:0,top:0}:A.getBoundingClientRect(),se=ne=0,d&&(ae=A._gsMaxScrollY-A.scrollTop,ae<0?ne=ae:X>Y.bottom-P&&ae?(w=!0,ne=Math.min(ae,E*(1-Math.max(0,Y.bottom-X)/P)|0)):X<Y.top+S&&A.scrollTop&&(w=!0,ne=-Math.min(A.scrollTop,E*(1-Math.max(0,X-Y.top)/S)|0)),ne&&(A.scrollTop+=ne)),f&&(ae=A._gsMaxScrollX-A.scrollLeft,ae<0?se=ae:J>Y.right-b&&ae?(w=!0,se=Math.min(ae,E*(1-Math.max(0,Y.right-J)/b)|0)):J<Y.left+m&&A.scrollLeft&&(w=!0,se=-Math.min(A.scrollLeft,E*(1-Math.max(0,J-Y.left)/m)|0)),se&&(A.scrollLeft+=se)),L&&(se||ne)&&(fe.scrollTo(A.scrollLeft,A.scrollTop),Gn(l.pointerX+se,l.pointerY+ne)),D=A}if(he){var be=l.x,je=l.y;a?(l.deltaX=be-parseFloat(k.rotation),l.rotation=be,k.rotation=be+"deg",k.renderTransform(1,k)):O?(d&&(l.deltaY=je-O.top(),O.top(je)),f&&(l.deltaX=be-O.left(),O.left(be))):s?(d&&(l.deltaY=je-parseFloat(k.y),k.y=je+"px"),f&&(l.deltaX=be-parseFloat(k.x),k.x=be+"px"),k.renderTransform(1,k)):(d&&(l.deltaY=je-parseFloat(t.style.top||0),t.style.top=je+"px"),f&&(l.deltaX=be-parseFloat(t.style.left||0),t.style.left=be+"px")),K&&!x&&!Ms&&(Ms=!0,ve(l,"drag","onDrag")===!1&&(f&&(l.x-=l.deltaX),d&&(l.y-=l.deltaY),V(!0)),Ms=!1)}he=!1},zr=function(x,D){var E=l.x,A=l.y,L,Y;t._gsap||(k=re.core.getCache(t)),k.uncache&&re.getProperty(t,"x"),s?(l.x=parseFloat(k.x),l.y=parseFloat(k.y)):a?l.x=l.rotation=parseFloat(k.rotation):O?(l.y=O.top(),l.x=O.left()):(l.y=parseFloat(t.style.top||(Y=Xn(t))&&Y.top)||0,l.x=parseFloat(t.style.left||(Y||{}).left)||0),(pt||ot||He)&&!D&&(l.isDragging||l.isThrowing)&&(He&&(un.x=l.x,un.y=l.y,L=He(un),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)),ot&&(L=ot(l.y),L!==l.y&&(l.y=L),he=!0)),he&&$t(!0),x||(l.deltaX=l.x-E,l.deltaY=l.y-A,ve(l,"throwupdate","onThrowUpdate"))},Ds=function(x,D,E,A){return D==null&&(D=-$r),E==null&&(E=$r),or(x)?function(L){var Y=l.isPressed?1-l.edgeResistance:1;return x.call(l,(L>E?E+(L-E)*Y:L<D?D+(L-D)*Y:L)*A)*A}:jn(x)?function(L){for(var Y=x.length,J=0,X=$r,se,ne;--Y>-1;)se=x[Y],ne=se-L,ne<0&&(ne=-ne),ne<X&&se>=D&&se<=E&&(J=Y,X=ne);return x[J]}:isNaN(x)?function(L){return L}:function(){return x*A}},Xh=function(x,D,E,A,L,Y,J){return Y=Y&&Y<$r?Y*Y:$r,or(x)?function(X){var se=l.isPressed?1-l.edgeResistance:1,ne=X.x,ae=X.y,be,je,Xt;return X.x=ne=ne>E?E+(ne-E)*se:ne<D?D+(ne-D)*se:ne,X.y=ae=ae>L?L+(ae-L)*se:ae<A?A+(ae-A)*se:ae,be=x.call(l,X),be!==X&&(X.x=be.x,X.y=be.y),J!==1&&(X.x*=J,X.y*=J),Y<$r&&(je=X.x-ne,Xt=X.y-ae,je*je+Xt*Xt>Y&&(X.x=ne,X.y=ae)),X}:jn(x)?function(X){for(var se=x.length,ne=0,ae=$r,be,je,Xt,mt;--se>-1;)Xt=x[se],be=Xt.x-X.x,je=Xt.y-X.y,mt=be*be+je*je,mt<ae&&(ne=se,ae=mt);return ae<=Y?x[ne]:X}:function(X){return X}},As=function(){var x,D,E,A;ee=!1,O?(O.calibrate(),l.minX=F=-O.maxScrollLeft(),l.minY=Z=-O.maxScrollTop(),l.maxX=U=l.maxY=q=0,ee=!0):r.bounds&&(x=eu(r.bounds,t.parentNode),a?(l.minX=F=x.left,l.maxX=U=x.left+x.width,l.minY=Z=l.maxY=q=0):!vt(r.bounds.maxX)||!vt(r.bounds.maxY)?(x=r.bounds,l.minX=F=x.minX,l.minY=Z=x.minY,l.maxX=U=x.maxX,l.maxY=q=x.maxY):(D=eu(t,t.parentNode),l.minX=F=Math.round(W(c,"px")+x.left-D.left),l.minY=Z=Math.round(W(u,"px")+x.top-D.top),l.maxX=U=Math.round(F+(x.width-D.width)),l.maxY=q=Math.round(Z+(x.height-D.height))),F>U&&(l.minX=U,l.maxX=U=F,F=l.minX),Z>q&&(l.minY=q,l.maxY=q=Z,Z=l.minY),a&&(l.minRotation=F,l.maxRotation=U),ee=!0),r.liveSnap&&(E=r.liveSnap===!0?r.snap||{}:r.liveSnap,A=jn(E)||or(E),a?(pt=Ds(A?E:E.rotation,F,U,1),ot=null):E.points?He=Xh(A?E:E.points,F,U,Z,q,E.radius,O?-1:1):(f&&(pt=Ds(A?E:E.x||E.left||E.scrollLeft,F,U,O?-1:1)),d&&(ot=Ds(A?E:E.y||E.top||E.scrollTop,Z,q,O?-1:1))))},Vh=function(){l.isThrowing=!1,ve(l,"throwcomplete","onThrowComplete")},Uh=function(){l.isThrowing=!1},Rs=function(x,D){var E,A,L,Y;x&&wt?(x===!0&&(E=r.snap||r.liveSnap||{},A=jn(E)||or(E),x={resistance:(r.throwResistance||r.resistance||1e3)/(a?10:1)},a?x.rotation=Ts(l,A?E:E.rotation,U,F,1,D):(f&&(x[c]=Ts(l,A?E:E.points||E.x||E.left,U,F,O?-1:1,D||l.lockedAxis==="x")),d&&(x[u]=Ts(l,A?E:E.points||E.y||E.top,q,Z,O?-1:1,D||l.lockedAxis==="y")),(E.points||jn(E)&&Yn(E[0]))&&(x.linkedProps=c+","+u,x.radius=E.radius))),l.isThrowing=!0,Y=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)?Y===0||Yn(x)&&x.resistance>1e3?0:.5:r.minDuration,overshoot:Y}),l.tween=L=re.to(O||t,{inertia:x,data:"_draggable",inherit:!1,onComplete:Vh,onInterrupt:Uh,onUpdate:r.fastMode?ve:zr,onUpdateParams:r.fastMode?[l,"onthrowupdate","onThrowUpdate"]:E&&E.radius?[!1,!0]:[]}),r.fastMode||(O&&(O._skip=!0),L.render(1e9,!0,!0),zr(!0,!0),l.endX=l.x,l.endY=l.y,a&&(l.endRotation=l.x),L.play(0),zr(!0,!0),O&&(O._skip=!1))):ee&&l.applyBounds()},lu=function(x){var D=oe,E;oe=Rr(t.parentNode,!0),x&&l.isPressed&&!oe.equals(D||new Ar)&&(E=D.inverse().apply({x:$,y:R}),oe.apply(E,E),$=E.x,R=E.y),oe.equals(Ph)&&(oe=null)},Vi=function(){var x=1-l.edgeResistance,D=M?dn(I):0,E=M?fn(I):0,A,L,Y;s&&(k.x=W(c,"px")+"px",k.y=W(u,"px")+"px",k.renderTransform()),lu(!1),ht.x=l.pointerX-D,ht.y=l.pointerY-E,oe&&oe.apply(ht,ht),$=ht.x,R=ht.y,he&&(Gn(l.pointerX,l.pointerY),$t(!0)),su=Rr(t),O?(As(),H=O.top(),N=O.left()):(Un()?(zr(!0,!0),As()):l.applyBounds(),a?(A=t.ownerSVGElement?[k.xOrigin-t.getBBox().x,k.yOrigin-t.getBBox().y]:(Xn(t)[bs]||"0 0").split(" "),Rt=l.rotationOrigin=Rr(t).apply({x:parseFloat(A[0])||0,y:parseFloat(A[1])||0}),zr(!0,!0),L=l.pointerX-Rt.x-D,Y=Rt.y-l.pointerY+E,N=l.x,H=l.y=Math.atan2(Y,L)*Hc):(H=W(u,"px"),N=W(c,"px"))),ee&&x&&(N>U?N=U+(N-U)/x:N<F&&(N=F-(F-N)/x),a||(H>q?H=q+(H-q)/x:H<Z&&(H=Z-(Z-H)/x))),l.startX=N=sr(N),l.startY=H=sr(H)},Un=function(){return l.tween&&l.tween.isActive()},qh=function(){Ht.parentNode&&!Un()&&!l.isDragging&&Ht.parentNode.removeChild(Ht)},qn=function(x,D){var E;if(!z||l.isPressed||!x||(x.type==="mousedown"||x.type==="pointerdown")&&!D&&ar()-C<30&&Fn[l.pointerEvent.type]){st&&x&&z&&dt(x);return}if(iu=Un(),Xi=!1,l.pointerEvent=x,Fn[x.type]?(Ne=~x.type.indexOf("touch")?x.currentTarget||x.target:I,Oe(Ne,"touchend",Ct),Oe(Ne,"touchmove",Nr),Oe(Ne,"touchcancel",Ct),Oe(I,"touchstart",Kc)):(Ne=null,Oe(I,"mousemove",Nr)),St=null,(!Bi||!Ne)&&(Oe(I,"mouseup",Ct),x&&x.target&&Oe(x.target,"mouseup",Ct)),Vn=v.call(l,x.target)&&r.dragClickables===!1&&!D,Vn){Oe(x.target,"change",Ct),ve(l,"pressInit","onPressInit"),ve(l,"press","onPress"),ji(g,!0),st=!1;return}if(gt=!Ne||f===d||l.vars.allowNativeTouchScrolling===!1||l.vars.allowContextMenu&&x&&(x.ctrlKey||x.which>2)?!1:f?"y":"x",st=!gt&&!l.allowEventDefault,st&&(dt(x),Oe(fe,"touchforcechange",dt)),x.changedTouches?(x=Pe=x.changedTouches[0],Le=x.identifier):x.pointerId?Le=x.pointerId:Pe=Le=null,Wi++,Dh($t),R=l.pointerY=x.pageY,$=l.pointerX=x.pageX,ve(l,"pressInit","onPressInit"),(gt||l.autoScroll)&&Ss(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)),Vi(),l.tween&&l.tween.kill(),l.isThrowing=!1,re.killTweensOf(O||t,p,!0),O&&re.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,K=!!(r.onDrag||l._listeners.drag),G=!!(r.onMove||l._listeners.move),r.cursor!==!1||r.activeCursor)for(E=g.length;--E>-1;)re.set(g[E],{cursor:r.activeCursor||r.cursor||(Wn==="grab"?"grabbing":Wn)});ve(l,"press","onPress")},Nr=function(x){var D=x,E,A,L,Y,J,X;if(!z||ws||!l.isPressed||!x){st&&x&&z&&dt(x);return}if(l.pointerEvent=x,E=x.changedTouches,E){if(x=E[0],x!==Pe&&x.identifier!==Le){for(Y=E.length;--Y>-1&&(x=E[Y]).identifier!==Le&&x.target!==t;);if(Y<0)return}}else if(x.pointerId&&Le&&x.pointerId!==Le)return;if(Ne&&gt&&!St&&(ht.x=x.pageX-(M?dn(I):0),ht.y=x.pageY-(M?fn(I):0),oe&&oe.apply(ht,ht),A=ht.x,L=ht.y,J=Math.abs(A-$),X=Math.abs(L-R),(J!==X&&(J>h||X>h)||Bn&&gt===St)&&(St=J>X&&f?"x":"y",gt&&St!==gt&&Oe(fe,"touchforcechange",dt),l.vars.lockAxisOnTouchScroll!==!1&&f&&d&&(l.lockedAxis=St==="x"?"y":"x",or(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,D)),Bn&&gt===St))){Ct(D);return}!l.allowEventDefault&&(!gt||St&&gt!==St)&&D.cancelable!==!1?(dt(D),st=!0):st&&(st=!1),l.autoScroll&&(w=!0),Gn(x.pageX,x.pageY,G)},Gn=function(x,D,E){var A=1-l.dragResistance,L=1-l.edgeResistance,Y=l.pointerX,J=l.pointerY,X=H,se=l.x,ne=l.y,ae=l.endX,be=l.endY,je=l.endRotation,Xt=he,mt,lr,Fe,Ee,$s,Tt;l.pointerX=x,l.pointerY=D,M&&(x-=dn(I),D-=fn(I)),a?(Ee=Math.atan2(Rt.y-D,x-Rt.x)*Hc,$s=l.y-Ee,$s>180?(H-=360,l.y=Ee):$s<-180&&(H+=360,l.y=Ee),l.x!==N||Math.max(Math.abs($-x),Math.abs(R-D))>h?(l.y=Ee,Fe=N+(H-Ee)*A):Fe=N):(oe&&(Tt=x*oe.a+D*oe.c+oe.e,D=x*oe.b+D*oe.d+oe.f,x=Tt),lr=D-R,mt=x-$,lr<h&&lr>-h&&(lr=0),mt<h&&mt>-h&&(mt=0),(l.lockAxis||l.lockedAxis)&&(mt||lr)&&(Tt=l.lockedAxis,Tt||(l.lockedAxis=Tt=f&&Math.abs(mt)>Math.abs(lr)?"y":d?"x":null,Tt&&or(l.vars.onLockAxis)&&l.vars.onLockAxis.call(l,l.pointerEvent)),Tt==="y"?lr=0:Tt==="x"&&(mt=0)),Fe=sr(N+mt*A),Ee=sr(H+lr*A)),(pt||ot||He)&&(l.x!==Fe||l.y!==Ee&&!a)&&(He&&(un.x=Fe,un.y=Ee,Tt=He(un),Fe=sr(Tt.x),Ee=sr(Tt.y)),pt&&(Fe=sr(pt(Fe))),ot&&(Ee=sr(ot(Ee)))),ee&&(Fe>U?Fe=U+Math.round((Fe-U)*L):Fe<F&&(Fe=F+Math.round((Fe-F)*L)),a||(Ee>q?Ee=Math.round(q+(Ee-q)*L):Ee<Z&&(Ee=Math.round(Z+(Ee-Z)*L)))),(l.x!==Fe||l.y!==Ee&&!a)&&(a?(l.endRotation=l.x=l.endX=Fe,he=!0):(d&&(l.y=l.endY=Ee,he=!0),f&&(l.x=l.endX=Fe,he=!0)),!E||ve(l,"move","onMove")!==!1?!l.isDragging&&l.isPressed&&(l.isDragging=Xi=!0,ve(l,"dragstart","onDragStart")):(l.pointerX=Y,l.pointerY=J,H=X,l.x=se,l.y=ne,l.endX=ae,l.endY=be,l.endRotation=je,he=Xt))},Ct=function V(x,D){if(!z||!l.isPressed||x&&Le!=null&&!D&&(x.pointerId&&x.pointerId!==Le&&x.target!==t||x.changedTouches&&!Rh(x.changedTouches,Le))){st&&x&&z&&dt(x);return}l.isPressed=!1;var E=x,A=l.isDragging,L=l.vars.allowContextMenu&&x&&(x.ctrlKey||x.which>2),Y=re.delayedCall(.001,qh),J,X,se,ne,ae;if(Ne?(ke(Ne,"touchend",V),ke(Ne,"touchmove",Nr),ke(Ne,"touchcancel",V),ke(I,"touchstart",Kc)):ke(I,"mousemove",Nr),ke(fe,"touchforcechange",dt),(!Bi||!Ne)&&(ke(I,"mouseup",V),x&&x.target&&ke(x.target,"mouseup",V)),he=!1,A&&(y=jc=ar(),l.isDragging=!1),Gc($t),Vn&&!L){x&&(ke(x.target,"change",V),l.pointerEvent=E),ji(g,!1),ve(l,"release","onRelease"),ve(l,"click","onClick"),Vn=!1;return}for(X=g.length;--X>-1;)Cs(g[X],"cursor",r.cursor||(r.cursor!==!1?Wn:null));if(Wi--,x){if(J=x.changedTouches,J&&(x=J[0],x!==Pe&&x.identifier!==Le)){for(X=J.length;--X>-1&&(x=J[X]).identifier!==Le&&x.target!==t;);if(X<0&&!D)return}l.pointerEvent=E,l.pointerX=x.pageX,l.pointerY=x.pageY}return L&&E?(dt(E),st=!0,ve(l,"release","onRelease")):E&&!A?(st=!1,iu&&(r.snap||r.bounds)&&Rs(r.inertia||r.throwProps),ve(l,"release","onRelease"),(!Bn||E.type!=="touchmove")&&E.type.indexOf("cancel")===-1&&(ve(l,"click","onClick"),ar()-C<300&&ve(l,"doubleclick","onDoubleClick"),ne=E.target||t,C=ar(),ae=function(){C!==Os&&l.enabled()&&!l.isPressed&&!E.defaultPrevented&&(ne.click?ne.click():I.createEvent&&(se=I.createEvent("MouseEvents"),se.initMouseEvent("click",!0,!0,fe,1,l.pointerEvent.screenX,l.pointerEvent.screenY,l.pointerX,l.pointerY,!1,!1,!1,!1,0,null),ne.dispatchEvent(se)))},!Bn&&!E.defaultPrevented&&re.delayedCall(.05,ae))):(Rs(r.inertia||r.throwProps),!l.allowEventDefault&&E&&(r.dragClickables!==!1||!v.call(l,E.target))&&A&&(!gt||St&&gt===St)&&E.cancelable!==!1?(st=!0,dt(E)):st=!1,ve(l,"release","onRelease")),Un()&&Y.duration(l.tween.duration()),A&&ve(l,"dragend","onDragEnd"),!0},Ui=function(x){if(x&&l.isDragging&&!O){var D=x.target||t.parentNode,E=D.scrollLeft-D._gsScrollX,A=D.scrollTop-D._gsScrollY;(E||A)&&(oe?($-=E*oe.a+A*oe.c,R-=A*oe.d+E*oe.b):($-=E,R-=A),D._gsScrollX+=E,D._gsScrollY+=A,Gn(l.pointerX,l.pointerY))}},cu=function(x){var D=ar(),E=D-C<100,A=D-y<50,L=E&&Os===C,Y=l.pointerEvent&&l.pointerEvent.defaultPrevented,J=E&&ou===C,X=x.isTrusted||x.isTrusted==null&&E&&L;if((L||A&&l.vars.suppressClickOnDrag!==!1)&&x.stopImmediatePropagation&&x.stopImmediatePropagation(),E&&!(l.pointerEvent&&l.pointerEvent.defaultPrevented)&&(!L||X&&!J)){X&&L&&(ou=C),Os=C;return}(l.isPressed||A||E)&&(!X||!x.detail||!E||Y)&&dt(x),!E&&!A&&!Xi&&(x&&x.target&&(l.pointerEvent=x),ve(l,"click","onClick"))},uu=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 bt=e.get(t),bt&&bt.kill(),i.startDrag=function(V,x){var D,E,A,L;qn(V||l.pointerEvent,!0),x&&!l.hitTest(V||l.pointerEvent)&&(D=pn(V||l.pointerEvent),E=pn(t),A=uu({x:D.left+D.width/2,y:D.top+D.height/2}),L=uu({x:E.left+E.width/2,y:E.top+E.height/2}),$-=A.x-L.x,R-=A.y-L.y),l.isDragging||(l.isDragging=Xi=!0,ve(l,"dragstart","onDragStart"))},i.drag=Nr,i.endDrag=function(V){return Ct(V||l.pointerEvent,!0)},i.timeSinceDrag=function(){return l.isDragging?0:(ar()-y)/1e3},i.timeSinceClick=function(){return(ar()-C)/1e3},i.hitTest=function(V,x){return e.hitTest(l.target,V,x)},i.getDirection=function(V,x){var D=V==="velocity"&&wt?V:Yn(V)&&!a?"element":"start",E,A,L,Y,J,X;return D==="element"&&(J=pn(l.target),X=pn(V)),E=D==="start"?l.x-N:D==="velocity"?wt.getVelocity(t,c):J.left+J.width/2-(X.left+X.width/2),a?E<0?"counter-clockwise":"clockwise":(x=x||2,A=D==="start"?l.y-H:D==="velocity"?wt.getVelocity(t,u):J.top+J.height/2-(X.top+X.height/2),L=Math.abs(E/A),Y=L<1/x?"":E<0?"left":"right",L<x&&(Y!==""&&(Y+="-"),Y+=A<0?"up":"down"),Y)},i.applyBounds=function(V,x){var D,E,A,L,Y,J;if(V&&r.bounds!==V)return r.bounds=V,l.update(!0,x);if(zr(!0),As(),ee&&!Un()){if(D=l.x,E=l.y,D>U?D=U:D<F&&(D=F),E>q?E=q:E<Z&&(E=Z),(l.x!==D||l.y!==E)&&(A=!0,l.x=l.endX=D,a?l.endRotation=D:l.y=l.endY=E,he=!0,$t(!0),l.autoScroll&&!l.isDragging))for(Ss(t.parentNode),L=t,jt.scrollTop=fe.pageYOffset!=null?fe.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,jt.scrollLeft=fe.pageXOffset!=null?fe.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft;L&&!J;)J=hn(L.parentNode),Y=J?jt:L.parentNode,d&&Y.scrollTop>Y._gsMaxScrollY&&(Y.scrollTop=Y._gsMaxScrollY),f&&Y.scrollLeft>Y._gsMaxScrollX&&(Y.scrollLeft=Y._gsMaxScrollX),L=Y;l.isThrowing&&(A||l.endX>U||l.endX<F||l.endY>q||l.endY<Z)&&Rs(r.inertia||r.throwProps,A)}return l},i.update=function(V,x,D){if(x&&l.isPressed){var E=Rr(t),A=su.apply({x:l.x-N,y:l.y-H}),L=Rr(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,$t(!0),Vi()}var Y=l.x,J=l.y;return lu(!x),V?l.applyBounds():(he&&D&&$t(!0),zr(!0)),x&&(Gn(l.pointerX,l.pointerY),he&&$t(!0)),l.isPressed&&!x&&(f&&Math.abs(Y-l.x)>.01||d&&Math.abs(J-l.y)>.01&&!a)&&Vi(),l.autoScroll&&(Ss(t.parentNode,l.isDragging),w=l.isDragging,$t(!0),Zc(t,Ui),Qc(t,Ui)),l},i.enable=function(V){var x={lazy:!0},D,E,A;if(r.cursor!==!1&&(x.cursor=r.cursor||Wn),re.utils.checkPrefix("touchCallout")&&(x.touchCallout="none"),V!=="soft"){for(Vc(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],Bi||Oe(A,"mousedown",qn),Oe(A,"touchstart",qn),Oe(A,"click",cu,!0),re.set(A,x),A.getBBox&&A.ownerSVGElement&&f!==d&&re.set(A.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":f?"pan-y":"pan-x"}),r.allowContextMenu||Oe(A,"contextmenu",au);ji(g,!1)}return Qc(t,Ui),z=!0,wt&&V!=="soft"&&wt.track(O||t,s?"x,y":a?"rotation":"top,left"),t._gsDragID=D=t._gsDragID||"d"+Eh++,cn[D]=l,O&&(O.enable(),O.element._gsDragID=D),(r.bounds||a)&&Vi(),r.bounds&&l.applyBounds(),l},i.disable=function(V){for(var x=l.isDragging,D=g.length,E;--D>-1;)Cs(g[D],"cursor",null);if(V!=="soft"){for(Vc(g,null),D=g.length;--D>-1;)E=g[D],Cs(E,"touchCallout",null),ke(E,"mousedown",qn),ke(E,"touchstart",qn),ke(E,"click",cu,!0),ke(E,"contextmenu",au);ji(g,!0),Ne&&(ke(Ne,"touchcancel",Ct),ke(Ne,"touchend",Ct),ke(Ne,"touchmove",Nr)),ke(I,"mouseup",Ct),ke(I,"mousemove",Nr)}return Zc(t,Ui),z=!1,wt&&V!=="soft"&&(wt.untrack(O||t,s?"x,y":a?"rotation":"top,left"),l.tween&&l.tween.kill()),O&&O.disable(),Gc($t),l.isDragging=l.isPressed=Vn=!1,x&&ve(l,"dragend","onDragEnd"),l},i.enabled=function(V,x){return arguments.length?V?l.enable(x):l.disable(x):z},i.kill=function(){return l.isThrowing=!1,l.tween&&l.tween.kill(),l.disable(),re.set(g,{clearProps:"userSelect"}),delete cn[t._gsDragID],l},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~o.indexOf("scroll")&&(O=i.scrollProxy=new Nh(t,Oh({onKill:function(){l.isPressed&&Ct(null)}},r)),t.style.overflowY=d&&!xs?"auto":"hidden",t.style.overflowX=f&&!xs?"auto":"hidden",t=O.content),a?p.rotation=1:(f&&(p[c]=1),d&&(p[u]=1)),k.force3D="force3D"in r?r.force3D:!0,Bc(Nc(i)),i.enable(),i}return e.register=function(r){re=r,Ps()},e.create=function(r,i){return ys||Ps(!0),ir(r).map(function(o){return new e(o,i)})},e.get=function(r){return cn[(ir(r)[0]||{})._gsDragID]},e.timeSinceDrag=function(){return(ar()-jc)/1e3},e.hitTest=function(r,i,o){if(r===i)return!1;var s=pn(r),a=pn(i),c=s.top,u=s.left,f=s.right,d=s.bottom,h=s.width,l=s.height,g=a.left>f||a.right<u||a.top>d||a.bottom<c,p,y,w;return g||!o?!g:(w=(o+"").indexOf("%")!==-1,o=parseFloat(o)||0,p={left:Math.max(u,a.left),top:Math.max(c,a.top)},p.width=Math.min(f,a.right)-p.left,p.height=Math.min(d,a.bottom)-p.top,p.width<0||p.height<0?!1:w?(o*=.01,y=p.width*p.height,y>=h*l*o||y>=a.width*a.height*o):p.width>o&&p.height>o)},e})(Fh);Ah(gn.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),gn.zIndex=1e3,gn.version="3.13.0",Yc()&&re.registerPlugin(gn),j.registerPlugin(Or),j.registerPlugin(gn);const Es=_.createContext({toasts:[],addToast:()=>{}}),ru=({children:n,...e})=>{const t=_.useMemo(()=>({maxToastDisplay:3,durationInSeconds:5,closable:!0,placement:"top-right",Custom:void 0,...e.settings}),[e.settings]),[r,i]=_.useState([]),o=_.useCallback(a=>{i(c=>c.filter(u=>u.id!==a))},[]),s=_.useMemo(()=>({toasts:r,addToast:a=>{const c={id:`toast-${Date.now()}-${Math.random()}`,...a};i(u=>[...u,c])}}),[r]);return T.jsxs(Es.Provider,{value:s,children:[n," ",T.jsx(nu,{toasts:r,removeToast:o,settings:t})]})},nu=({toasts:n,removeToast:e,settings:t})=>{const r=_.useRef(new Map),i=_.useRef(null),[o,s]=_.useState(!1),{isMobile:a}=an(),c=_.useCallback(l=>{const g=r.current.get(l);if(g){j.killTweensOf(g);const p=t.placement.includes("left");j.to(g,{x:p?"-100%":"100%",opacity:0,duration:.4,ease:"power2.in",onComplete:()=>{e(l)}})}},[e,t.placement]);_.useEffect(()=>{const l=t.placement.includes("top"),g=t.placement.includes("left");n.forEach(p=>{const y=r.current.get(p.id);y&&!y.dataset.animatedIn&&(y.dataset.animatedIn="true",j.fromTo(y,{opacity:0,y:l?-100:100,x:g?-50:50},{opacity:1,y:0,x:0,duration:.5,ease:"power2.out",onComplete:()=>{const w=j.timeline({delay:p.duration||t.durationInSeconds,onComplete:()=>{j.to(y,{opacity:0,y:l?-50:50,duration:.3,ease:"power2.in",onComplete:()=>{e(p.id),r.current.delete(p.id)}})}});y.timeline=w}}))})},[n,e,t.durationInSeconds,t.placement]);const u=n.slice(-t.maxToastDisplay);Or(()=>{j.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}),Or(()=>{const l=[],g=t.placement.includes("left");return u.forEach(p=>{const y=r.current.get(p.id);if(!y)return;const w=gn.create(y,{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(){j.set(this.target,{opacity:1-Math.abs(this.x)/Math.abs(g?this.minX:this.maxX)})},onDragEnd:function(){const S=y.offsetWidth*.1;(g?this.x<-S:this.x>S)?j.to(this.target,{x:g?"-100%":"100%",opacity:0,duration:.3,ease:"power2.in",onComplete:()=>{e(p.id)}}):(j.to(this.target,{x:0,opacity:1,duration:.4,ease:"elastic.out(1, 0.75)"}),this.target.timeline&&this.target.timeline.resume())}});l.push(w[0])}),()=>{l.forEach(p=>p.kill())}},{dependencies:[n,t.placement],scope:i}),_.useEffect(()=>{u.length===0&&o&&s(!1)},[u,o]);const f=t.placement.includes("top"),d=t.placement.includes("left"),h={position:"fixed",...f?{top:a?"16px":"8px"}:{bottom:a?"16px":"8px"},...d?{left:a?"16px":"8px"}:{right:a?"16px":"8px"},zIndex:99999};return T.jsx(ue,{ref:i,gap:.5,direction:"column-reverse",style:h,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:u.map((l,g)=>{const{id:p,...y}=l;return t.Custom?T.jsx("div",{className:"toast-item",ref:w=>{w&&r.current.set(p,w)},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:T.jsx(t.Custom,{onClose:t.closable?()=>c(p):void 0,...y})},p):T.jsx(fs,{className:"toast-item",onClose:t.closable?()=>c(p):void 0,ref:w=>{w&&r.current.set(p,w)},...y,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)"}},p)})})},Bh=()=>_.useContext(Er),Wh=()=>{const{addToast:n}=_.useContext(Es);return{addToast:n}},Yh=({children:n})=>{const{theme:e}=_.useContext(Er);return T.jsx(Id,{theme:e,children:n})},Hh=({children:n,themes:e,settings:t})=>T.jsx(nc,{themes:e,autoContrast:t?.autoContrast,children:T.jsx(Yh,{children:T.jsxs(ru,{settings:t?.toasts,children:[T.jsx("div",{id:"modal"}),n]})})}),jh={button:'\n# Button Component\nA versatile button component with multiple variants, colors, and interactive features.\n\n## Usage\n```tsx\nimport { Button } from "@julien-wiegandt/open-ui";\n\n<Button variant="contained" color="primary" label="Click me" onClick={() => console.log(\'Clicked!\')} />\n```\n\n## Props\n- `label`: Button text (string)\n- `variant`: "contained" | "outlined" | "text" | "soft" (default: "contained")\n- `color`: "primary" | "secondary" | "default" | "error" or hex string (default: "primary")\n- `size`: "sm" | "md" | "lg" (default: "md")\n- `starticon`: React node or icon name string (e.g., "bell", "sparkles")\n- `endicon`: React node or icon name string\n- `loading`: boolean (shows spinner)\n- `endanimation`: boolean (shows check icon after onClick completes)\n- `radius`: "none" | "sm" | "md" | "lg" | "full" (theme default)\n- `disabled`: boolean\n- `w`: string (width)\n- `h`: string (height)\n- `align`: "left" | "center" | "right"\n- `onClick`: () => void | Promise<void>\n',checkbox:'\n# Checkbox Component\nA simple checkbox for boolean inputs.\n\n## Usage\n```tsx\nimport { Checkbox } from "@julien-wiegandt/open-ui";\n\n<Checkbox label="Accept terms" color="primary" checked={checked} onChange={setChecked} />\n```\n\n## Props\n- `checked`: boolean (controlled state)\n- `defaultChecked`: boolean (uncontrolled)\n- `onChange`: (checked: boolean) => void\n- `label`: string\n- `labelPosition`: "left" | "right" (default: "right")\n- `color`: Color token or hex\n- `size`: "sm" | "md" | "lg" (default: "md")\n- `disabled`: boolean\n',chip:'\n# Chip Component\nSmall interactive or informational elements.\n\n## Usage\n```tsx\nimport { Chip } from "@julien-wiegandt/open-ui";\n\n<Chip label={"React"} color={"primary"} variant={"contained"} />\n```\n\n## Props\n- `label`: string\n- `variant`: "contained" | "outlined" | "text" (theme default)\n- `color`: Color token or hex\n- `size`: "sm" | "md" | "lg" (default: "md")\n- `startIcon`: ReactNode\n- `endIcon`: ReactNode\n- `radius`: Radius (theme default)\n',divider:`
408
407
  # Divider Component
409
408
  A thin line to separate content.
410
409
 
@@ -650,4 +649,4 @@ import { ColorPicker } from "@julien-wiegandt/open-ui";
650
649
  - \`color\`: string (current color)
651
650
  - \`onChange\`: (color: string) => void
652
651
  - \`presets\`: string[] (optional list of preset colors)
653
- `};B.BellIcon=oc,B.Button=$i,B.CheckIcon=Di,B.Checkbox=_c,B.Chip=yc,B.CopyIcon=sc,B.Divider=wc,B.DotsIcon=ac,B.Dropdown=vc,B.ExampleIcon=Fd,B.Flex=ue,B.HamburgerIcon=lc,B.HeartIcon=cc,B.Image=bc,B.Input=Sc,B.KEYPOP=Jl,B.LLM_DOCS=Bh,B.Modal=Ec,B.OpenUIProvider=Fh,B.Popover=Mc,B.ProgressBar=ah,B.Select=Dc,B.SendHorizontalIcon=uc,B.Skeleton=uh,B.SparklesIcon=fc,B.Switch=fh,B.SyncIcon=dc,B.THEME=ec,B.Text=Re,B.TextArea=Ac,B.ThemeContext=kr,B.ThemeContextProvider=nc,B.Title=Cc,B.Toast=fs,B.ToastContext=Es,B.ToastContextProvider=ru,B.ToastProvider=nu,B.Tooltip=$c,B.breakpoints=Ai,B.createTheme=Zl,B.generateColorPalette=Kl,B.getColorBasedOnBackground=Rn,B.getContrastColor=zd,B.getPalette=Cr,B.hexToRgb=Ul,B.hslToRgb=os,B.isColorPalette=is,B.parseColorToRgb=An,B.parseHslString=Gl,B.parseRgbString=ql,B.radiusMap=$e,B.rgbToHex=ss,B.rgbToHsl=Vl,B.useAutoContrast=Oi,B.useResponsive=on,B.useTheme=Lh,B.useToast=zh,B.withOpacity=Ql,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
652
+ `};B.BellIcon=oc,B.Button=Ri,B.CheckIcon=Di,B.Checkbox=_c,B.Chip=yc,B.CopyIcon=sc,B.Divider=wc,B.DotsIcon=ac,B.Dropdown=vc,B.ExampleIcon=Fd,B.Flex=ue,B.HamburgerIcon=lc,B.HeartIcon=cc,B.Image=bc,B.Input=Sc,B.KEYPOP=Jl,B.LLM_DOCS=jh,B.Modal=Ec,B.OpenUIProvider=Hh,B.Popover=Mc,B.ProgressBar=uh,B.Select=Dc,B.SendHorizontalIcon=uc,B.Skeleton=hh,B.SparklesIcon=fc,B.Switch=ph,B.SyncIcon=dc,B.THEME=ec,B.Text=Ie,B.TextArea=Ac,B.ThemeContext=Er,B.ThemeContextProvider=nc,B.Title=Cc,B.Toast=fs,B.ToastContext=Es,B.ToastContextProvider=ru,B.ToastProvider=nu,B.Tooltip=Rc,B.breakpoints=Ai,B.createTheme=Zl,B.generateColorPalette=Kl,B.getColorBasedOnBackground=rr,B.getContrastColor=zd,B.getPalette=kr,B.hexToRgb=Ul,B.hslToRgb=os,B.isColorPalette=is,B.parseColorToRgb=$n,B.parseHslString=Gl,B.parseRgbString=ql,B.radiusMap=$e,B.rgbToHex=ss,B.rgbToHsl=Vl,B.useAutoContrast=Oi,B.useResponsive=an,B.useTheme=Bh,B.useToast=Wh,B.withOpacity=Ql,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));