tcce-design-system-test 0.2.8 → 0.2.9

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,9 +1,9 @@
1
- (function(A,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],h):(A=typeof globalThis<"u"?globalThis:A||self,h(A["tcce-design-system-components"]={},A.React,A["react/jsx-runtime"],A.ReactDOM))})(this,(function(A,h,m,ps){"use strict";function Wc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const lr=Wc(h);var be=function(){return be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},be.apply(this,arguments)};function vt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Yc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Kc=/^((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)-.*))$/,Gc=Yc(function(e){return Kc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Q="-ms-",Ht="-moz-",U="-webkit-",ms="comm",hn="rule",cr="decl",Xc="@import",gs="@keyframes",qc="@layer",ys=Math.abs,ur=String.fromCharCode,dr=Object.assign;function Zc(e,t){return ue(e,0)^45?(((t<<2^ue(e,0))<<2^ue(e,1))<<2^ue(e,2))<<2^ue(e,3):0}function vs(e){return e.trim()}function He(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function pn(e,t,n){return e.indexOf(t,n)}function ue(e,t){return e.charCodeAt(t)|0}function bt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function bs(e){return e.length}function Ut(e,t){return t.push(e),e}function Jc(e,t){return e.map(t).join("")}function ws(e,t){return e.filter(function(n){return!He(n,t)})}var mn=1,wt=1,xs=0,Ee=0,ae=0,xt="";function gn(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:mn,column:wt,length:s,return:"",siblings:a}}function Ge(e,t){return dr(gn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function St(e){for(;e.root;)e=Ge(e.root,{children:[e]});Ut(e,e.siblings)}function Qc(){return ae}function eu(){return ae=Ee>0?ue(xt,--Ee):0,wt--,ae===10&&(wt=1,mn--),ae}function $e(){return ae=Ee<xs?ue(xt,Ee++):0,wt++,ae===10&&(wt=1,mn++),ae}function nt(){return ue(xt,Ee)}function yn(){return Ee}function vn(e,t){return bt(xt,e,t)}function fr(e){switch(e){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 tu(e){return mn=wt=1,xs=Oe(xt=e),Ee=0,[]}function nu(e){return xt="",e}function hr(e){return vs(vn(Ee-1,pr(e===91?e+2:e===40?e+1:e)))}function ru(e){for(;(ae=nt())&&ae<33;)$e();return fr(e)>2||fr(ae)>3?"":" "}function ou(e,t){for(;--t&&$e()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return vn(e,yn()+(t<6&&nt()==32&&$e()==32))}function pr(e){for(;$e();)switch(ae){case e:return Ee;case 34:case 39:e!==34&&e!==39&&pr(ae);break;case 40:e===41&&pr(e);break;case 92:$e();break}return Ee}function su(e,t){for(;$e()&&e+ae!==57;)if(e+ae===84&&nt()===47)break;return"/*"+vn(t,Ee-1)+"*"+ur(e===47?e:$e())}function iu(e){for(;!fr(nt());)$e();return vn(e,Ee)}function au(e){return nu(bn("",null,null,null,[""],e=tu(e),0,[0],e))}function bn(e,t,n,r,o,i,s,a,l){for(var u=0,d=0,c=s,f=0,p=0,g=0,w=1,x=1,v=1,T=0,b="",C=o,y=i,S=r,E=b;x;)switch(g=T,T=$e()){case 40:if(g!=108&&ue(E,c-1)==58){pn(E+=R(hr(T),"&","&\f"),"&\f",ys(u?a[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=hr(T);break;case 9:case 10:case 13:case 32:E+=ru(g);break;case 92:E+=ou(yn()-1,7);continue;case 47:switch(nt()){case 42:case 47:Ut(lu(su($e(),yn()),t,n,l),l);break;default:E+="/"}break;case 123*w:a[u++]=Oe(E)*v;case 125*w:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+d:v==-1&&(E=R(E,/\f/g,"")),p>0&&Oe(E)-c&&Ut(p>32?Ts(E+";",r,n,c-1,l):Ts(R(E," ","")+";",r,n,c-2,l),l);break;case 59:E+=";";default:if(Ut(S=Ss(E,t,n,u,d,o,a,b,C=[],y=[],c,i),i),T===123)if(d===0)bn(E,t,S,S,C,i,c,a,y);else switch(f===99&&ue(E,3)===110?100:f){case 100:case 108:case 109:case 115:bn(e,S,S,r&&Ut(Ss(e,S,S,0,0,o,a,b,o,C=[],c,y),y),o,y,c,a,r?C:y);break;default:bn(E,S,S,S,[""],y,0,a,y)}}u=d=p=0,w=v=1,b=E="",c=s;break;case 58:c=1+Oe(E),p=g;default:if(w<1){if(T==123)--w;else if(T==125&&w++==0&&eu()==125)continue}switch(E+=ur(T),T*w){case 38:v=d>0?1:(E+="\f",-1);break;case 44:a[u++]=(Oe(E)-1)*v,v=1;break;case 64:nt()===45&&(E+=hr($e())),f=nt(),d=c=Oe(b=E+=iu(yn())),T++;break;case 45:g===45&&Oe(E)==2&&(w=0)}}return i}function Ss(e,t,n,r,o,i,s,a,l,u,d,c){for(var f=o-1,p=o===0?i:[""],g=bs(p),w=0,x=0,v=0;w<r;++w)for(var T=0,b=bt(e,f+1,f=ys(x=s[w])),C=e;T<g;++T)(C=vs(x>0?p[T]+" "+b:R(b,/&\f/g,p[T])))&&(l[v++]=C);return gn(e,t,n,o===0?hn:a,l,u,d,c)}function lu(e,t,n,r){return gn(e,t,n,ms,ur(Qc()),bt(e,2,-2),0,r)}function Ts(e,t,n,r,o){return gn(e,t,n,cr,bt(e,0,r),bt(e,r+1,-1),r,o)}function Cs(e,t,n){switch(Zc(e,t)){case 5103:return U+"print-"+e+e;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 U+e+e;case 4789:return Ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Ht+e+Q+e+e;case 5936:switch(ue(e,t+11)){case 114:return U+e+Q+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+Q+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+Q+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+Q+e+e;case 6165:return U+e+Q+"flex-"+e+e;case 5187:return U+e+R(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return U+e+Q+"flex-item-"+R(e,/flex-|-self/g,"")+(He(e,/flex-|baseline/)?"":Q+"grid-row-"+R(e,/flex-|-self/g,""))+e;case 4675:return U+e+Q+"flex-line-pack"+R(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+Q+R(e,"shrink","negative")+e;case 5292:return U+e+Q+R(e,"basis","preferred-size")+e;case 6060:return U+"box-"+R(e,"-grow","")+U+e+Q+R(e,"grow","positive")+e;case 4554:return U+R(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!He(e,/flex-|baseline/))return Q+"grid-column-align"+bt(e,t)+e;break;case 2592:case 3360:return Q+R(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,He(r.props,/grid-\w+-end/)})?~pn(e+(n=n[t].value),"span",0)?e:Q+R(e,"-start","")+e+Q+"grid-row-span:"+(~pn(n,"span",0)?He(n,/\d+/):+He(n,/\d+/)-+He(e,/\d+/))+";":Q+R(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return He(r.props,/grid-\w+-start/)})?e:Q+R(R(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,U+"$1$2")+e;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(Oe(e)-1-t>6)switch(ue(e,t+1)){case 109:if(ue(e,t+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Ht+(ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pn(e,"stretch",0)?Cs(R(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return R(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,u){return Q+o+":"+i+u+(s?Q+o+"-span:"+(a?l:+l-+i)+u:"")+e});case 4949:if(ue(e,t+6)===121)return R(e,":",":"+U)+e;break;case 6444:switch(ue(e,ue(e,14)===45?18:11)){case 120:return R(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(ue(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+Q+"$2box$3")+e;case 100:return R(e,":",":"+Q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return R(e,"scroll-","scroll-snap-")+e}return e}function wn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function cu(e,t,n,r){switch(e.type){case qc:if(e.children.length)break;case Xc:case cr:return e.return=e.return||e.value;case ms:return"";case gs:return e.return=e.value+"{"+wn(e.children,r)+"}";case hn:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=wn(e.children,r))?e.return=e.value+"{"+n+"}":""}function uu(e){var t=bs(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function du(e){return function(t){t.root||(t=t.return)&&e(t)}}function fu(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case cr:e.return=Cs(e.value,e.length,n);return;case gs:return wn([Ge(e,{value:R(e.value,"@","@"+U)})],r);case hn:if(e.length)return Jc(n=e.props,function(o){switch(He(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":St(Ge(e,{props:[R(o,/:(read-\w+)/,":"+Ht+"$1")]})),St(Ge(e,{props:[o]})),dr(e,{props:ws(n,r)});break;case"::placeholder":St(Ge(e,{props:[R(o,/:(plac\w+)/,":"+U+"input-$1")]})),St(Ge(e,{props:[R(o,/:(plac\w+)/,":"+Ht+"$1")]})),St(Ge(e,{props:[R(o,/:(plac\w+)/,Q+"input-$1")]})),St(Ge(e,{props:[o]})),dr(e,{props:ws(n,r)});break}return""})}}var hu={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},rt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Es="active",Ps="data-styled-version",xn="6.1.19",mr=`/*!sc*/
2
- `,Sn=typeof window<"u"&&typeof document<"u",pu=!!(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"),ks=/invalid hook call/i,Tn=new Set,mu=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
1
+ (function(A,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],f):(A=typeof globalThis<"u"?globalThis:A||self,f(A["tcce-design-system-components"]={},A.React,A["react/jsx-runtime"],A.ReactDOM,A.Formik))})(this,(function(A,f,m,rs,Ac){"use strict";function Dc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Jn=Dc(f);var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},me.apply(this,arguments)};function ft(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Mc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $c=/^((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)-.*))$/,Vc=Mc(function(e){return $c.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),X="-ms-",Ft="-moz-",U="-webkit-",os="comm",sn="rule",Qn="decl",Ic="@import",ss="@keyframes",Lc="@layer",is=Math.abs,er=String.fromCharCode,tr=Object.assign;function Nc(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function as(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function an(e,t,n){return e.indexOf(t,n)}function ie(e,t){return e.charCodeAt(t)|0}function pt(e,t,n){return e.slice(t,n)}function Ie(e){return e.length}function ls(e){return e.length}function jt(e,t){return t.push(e),e}function Bc(e,t){return e.map(t).join("")}function cs(e,t){return e.filter(function(n){return!Oe(n,t)})}var ln=1,mt=1,ds=0,xe=0,te=0,gt="";function cn(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ln,column:mt,length:s,return:"",siblings:a}}function He(e,t){return tr(cn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function yt(e){for(;e.root;)e=He(e.root,{children:[e]});jt(e,e.siblings)}function Oc(){return te}function Fc(){return te=xe>0?ie(gt,--xe):0,mt--,te===10&&(mt=1,ln--),te}function Ee(){return te=xe<ds?ie(gt,xe++):0,mt++,te===10&&(mt=1,ln++),te}function Ze(){return ie(gt,xe)}function dn(){return xe}function un(e,t){return pt(gt,e,t)}function nr(e){switch(e){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 jc(e){return ln=mt=1,ds=Ie(gt=e),xe=0,[]}function Rc(e){return gt="",e}function rr(e){return as(un(xe-1,or(e===91?e+2:e===40?e+1:e)))}function zc(e){for(;(te=Ze())&&te<33;)Ee();return nr(e)>2||nr(te)>3?"":" "}function _c(e,t){for(;--t&&Ee()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return un(e,dn()+(t<6&&Ze()==32&&Ee()==32))}function or(e){for(;Ee();)switch(te){case e:return xe;case 34:case 39:e!==34&&e!==39&&or(te);break;case 40:e===41&&or(e);break;case 92:Ee();break}return xe}function Hc(e,t){for(;Ee()&&e+te!==57;)if(e+te===84&&Ze()===47)break;return"/*"+un(t,xe-1)+"*"+er(e===47?e:Ee())}function Uc(e){for(;!nr(Ze());)Ee();return un(e,xe)}function Wc(e){return Rc(hn("",null,null,null,[""],e=jc(e),0,[0],e))}function hn(e,t,n,r,o,i,s,a,l){for(var d=0,u=0,c=s,h=0,p=0,g=0,v=1,w=1,y=1,x=0,b="",E=o,T=i,S=r,C=b;w;)switch(g=x,x=Ee()){case 40:if(g!=108&&ie(C,c-1)==58){an(C+=B(rr(x),"&","&\f"),"&\f",is(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=rr(x);break;case 9:case 10:case 13:case 32:C+=zc(g);break;case 92:C+=_c(dn()-1,7);continue;case 47:switch(Ze()){case 42:case 47:jt(Kc(Hc(Ee(),dn()),t,n,l),l);break;default:C+="/"}break;case 123*v:a[d++]=Ie(C)*y;case 125*v:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+u:y==-1&&(C=B(C,/\f/g,"")),p>0&&Ie(C)-c&&jt(p>32?hs(C+";",r,n,c-1,l):hs(B(C," ","")+";",r,n,c-2,l),l);break;case 59:C+=";";default:if(jt(S=us(C,t,n,d,u,o,a,b,E=[],T=[],c,i),i),x===123)if(u===0)hn(C,t,S,S,E,i,c,a,T);else switch(h===99&&ie(C,3)===110?100:h){case 100:case 108:case 109:case 115:hn(e,S,S,r&&jt(us(e,S,S,0,0,o,a,b,o,E=[],c,T),T),o,T,c,a,r?E:T);break;default:hn(C,S,S,S,[""],T,0,a,T)}}d=u=p=0,v=y=1,b=C="",c=s;break;case 58:c=1+Ie(C),p=g;default:if(v<1){if(x==123)--v;else if(x==125&&v++==0&&Fc()==125)continue}switch(C+=er(x),x*v){case 38:y=u>0?1:(C+="\f",-1);break;case 44:a[d++]=(Ie(C)-1)*y,y=1;break;case 64:Ze()===45&&(C+=rr(Ee())),h=Ze(),u=c=Ie(b=C+=Uc(dn())),x++;break;case 45:g===45&&Ie(C)==2&&(v=0)}}return i}function us(e,t,n,r,o,i,s,a,l,d,u,c){for(var h=o-1,p=o===0?i:[""],g=ls(p),v=0,w=0,y=0;v<r;++v)for(var x=0,b=pt(e,h+1,h=is(w=s[v])),E=e;x<g;++x)(E=as(w>0?p[x]+" "+b:B(b,/&\f/g,p[x])))&&(l[y++]=E);return cn(e,t,n,o===0?sn:a,l,d,u,c)}function Kc(e,t,n,r){return cn(e,t,n,os,er(Oc()),pt(e,2,-2),0,r)}function hs(e,t,n,r,o){return cn(e,t,n,Qn,pt(e,0,r),pt(e,r+1,-1),r,o)}function fs(e,t,n){switch(Nc(e,t)){case 5103:return U+"print-"+e+e;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 U+e+e;case 4789:return Ft+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Ft+e+X+e+e;case 5936:switch(ie(e,t+11)){case 114:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+X+e+e;case 6165:return U+e+X+"flex-"+e+e;case 5187:return U+e+B(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+X+"flex-$1$2")+e;case 5443:return U+e+X+"flex-item-"+B(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":X+"grid-row-"+B(e,/flex-|-self/g,""))+e;case 4675:return U+e+X+"flex-line-pack"+B(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+X+B(e,"shrink","negative")+e;case 5292:return U+e+X+B(e,"basis","preferred-size")+e;case 6060:return U+"box-"+B(e,"-grow","")+U+e+X+B(e,"grow","positive")+e;case 4554:return U+B(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return X+"grid-column-align"+pt(e,t)+e;break;case 2592:case 3360:return X+B(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Oe(r.props,/grid-\w+-end/)})?~an(e+(n=n[t].value),"span",0)?e:X+B(e,"-start","")+e+X+"grid-row-span:"+(~an(n,"span",0)?Oe(n,/\d+/):+Oe(n,/\d+/)-+Oe(e,/\d+/))+";":X+B(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Oe(r.props,/grid-\w+-start/)})?e:X+B(B(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,U+"$1$2")+e;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(Ie(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Ft+(ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~an(e,"stretch",0)?fs(B(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return B(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,d){return X+o+":"+i+d+(s?X+o+"-span:"+(a?l:+l-+i)+d:"")+e});case 4949:if(ie(e,t+6)===121)return B(e,":",":"+U)+e;break;case 6444:switch(ie(e,ie(e,14)===45?18:11)){case 120:return B(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(ie(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+X+"$2box$3")+e;case 100:return B(e,":",":"+X)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(e,"scroll-","scroll-snap-")+e}return e}function fn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Yc(e,t,n,r){switch(e.type){case Lc:if(e.children.length)break;case Ic:case Qn:return e.return=e.return||e.value;case os:return"";case ss:return e.return=e.value+"{"+fn(e.children,r)+"}";case sn:if(!Ie(e.value=e.props.join(",")))return""}return Ie(n=fn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Gc(e){var t=ls(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Xc(e){return function(t){t.root||(t=t.return)&&e(t)}}function qc(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Qn:e.return=fs(e.value,e.length,n);return;case ss:return fn([He(e,{value:B(e.value,"@","@"+U)})],r);case sn:if(e.length)return Bc(n=e.props,function(o){switch(Oe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":yt(He(e,{props:[B(o,/:(read-\w+)/,":"+Ft+"$1")]})),yt(He(e,{props:[o]})),tr(e,{props:cs(n,r)});break;case"::placeholder":yt(He(e,{props:[B(o,/:(plac\w+)/,":"+U+"input-$1")]})),yt(He(e,{props:[B(o,/:(plac\w+)/,":"+Ft+"$1")]})),yt(He(e,{props:[B(o,/:(plac\w+)/,X+"input-$1")]})),yt(He(e,{props:[o]})),tr(e,{props:cs(n,r)});break}return""})}}var Zc={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},Je=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ps="active",ms="data-styled-version",pn="6.1.19",sr=`/*!sc*/
2
+ `,mn=typeof window<"u"&&typeof document<"u",Jc=!!(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"),gs=/invalid hook call/i,gn=new Set,Qc=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
3
  `)+`You may see this warning because you've called styled inside another component.
4
4
  To resolve this only create new StyledComponents outside of any render method and function component.
5
5
  See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
6
- `,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];ks.test(s)?(i=!1,Tn.delete(r)):o.apply(void 0,vt([s],a,!1))},h.useRef(),i&&!Tn.has(r)&&(console.warn(r),Tn.add(r))}catch(s){ks.test(s.message)&&Tn.delete(r)}finally{console.error=o}}},Cn=Object.freeze([]),Tt=Object.freeze({});function gu(e,t,n){return n===void 0&&(n=Tt),e.theme!==n.theme&&e.theme||t||n.theme}var gr=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"]),yu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vu=/(^-|-$)/g;function As(e){return e.replace(yu,"-").replace(vu,"")}var bu=/(a)(d)/gi,En=52,Ds=function(e){return String.fromCharCode(e+(e>25?39:97))};function yr(e){var t,n="";for(t=Math.abs(e);t>En;t=t/En|0)n=Ds(t%En)+n;return(Ds(t%En)+n).replace(bu,"$1-$2")}var vr,$s=5381,ot=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ms=function(e){return ot($s,e)};function wu(e){return yr(Ms(e)>>>0)}function Vs(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function br(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Is=typeof Symbol=="function"&&Symbol.for,Ns=Is?Symbol.for("react.memo"):60115,xu=Is?Symbol.for("react.forward_ref"):60112,Su={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ls={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Cu=((vr={})[xu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vr[Ns]=Ls,vr);function Os(e){return("type"in(t=e)&&t.type.$$typeof)===Ns?Ls:"$$typeof"in e?Cu[e.$$typeof]:Su;var t}var Eu=Object.defineProperty,Pu=Object.getOwnPropertyNames,Fs=Object.getOwnPropertySymbols,ku=Object.getOwnPropertyDescriptor,Au=Object.getPrototypeOf,Rs=Object.prototype;function Bs(e,t,n){if(typeof t!="string"){if(Rs){var r=Au(t);r&&r!==Rs&&Bs(e,r,n)}var o=Pu(t);Fs&&(o=o.concat(Fs(t)));for(var i=Os(e),s=Os(t),a=0;a<o.length;++a){var l=o[a];if(!(l in Tu||n&&n[l]||s&&l in s||i&&l in i)){var u=ku(t,l);try{Eu(e,l,u)}catch{}}}}return e}function Ct(e){return typeof e=="function"}function wr(e){return typeof e=="object"&&"styledComponentId"in e}function st(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function js(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Et(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xr(e,t,n){if(n===void 0&&(n=!1),!n&&!Et(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=xr(e[r],t[r]);else if(Et(t))for(var r in t)e[r]=xr(e[r],t[r]);return e}function Sr(e,t){Object.defineProperty(e,"toString",{value:t})}var Du=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
6
+ `,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];gs.test(s)?(i=!1,gn.delete(r)):o.apply(void 0,ft([s],a,!1))},f.useRef(),i&&!gn.has(r)&&(console.warn(r),gn.add(r))}catch(s){gs.test(s.message)&&gn.delete(r)}finally{console.error=o}}},yn=Object.freeze([]),vt=Object.freeze({});function ed(e,t,n){return n===void 0&&(n=vt),e.theme!==n.theme&&e.theme||t||n.theme}var ir=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,nd=/(^-|-$)/g;function ys(e){return e.replace(td,"-").replace(nd,"")}var rd=/(a)(d)/gi,vn=52,vs=function(e){return String.fromCharCode(e+(e>25?39:97))};function ar(e){var t,n="";for(t=Math.abs(e);t>vn;t=t/vn|0)n=vs(t%vn)+n;return(vs(t%vn)+n).replace(rd,"$1-$2")}var lr,bs=5381,Qe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ws=function(e){return Qe(bs,e)};function od(e){return ar(ws(e)>>>0)}function xs(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function cr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ss=typeof Symbol=="function"&&Symbol.for,Ts=Ss?Symbol.for("react.memo"):60115,sd=Ss?Symbol.for("react.forward_ref"):60112,id={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},Cs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ld=((lr={})[sd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lr[Ts]=Cs,lr);function ks(e){return("type"in(t=e)&&t.type.$$typeof)===Ts?Cs:"$$typeof"in e?ld[e.$$typeof]:id;var t}var cd=Object.defineProperty,dd=Object.getOwnPropertyNames,Ps=Object.getOwnPropertySymbols,ud=Object.getOwnPropertyDescriptor,hd=Object.getPrototypeOf,Es=Object.prototype;function As(e,t,n){if(typeof t!="string"){if(Es){var r=hd(t);r&&r!==Es&&As(e,r,n)}var o=dd(t);Ps&&(o=o.concat(Ps(t)));for(var i=ks(e),s=ks(t),a=0;a<o.length;++a){var l=o[a];if(!(l in ad||n&&n[l]||s&&l in s||i&&l in i)){var d=ud(t,l);try{cd(e,l,d)}catch{}}}}return e}function bt(e){return typeof e=="function"}function dr(e){return typeof e=="object"&&"styledComponentId"in e}function et(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ds(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function wt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ur(e,t,n){if(n===void 0&&(n=!1),!n&&!wt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ur(e[r],t[r]);else if(wt(t))for(var r in t)e[r]=ur(e[r],t[r]);return e}function hr(e,t){Object.defineProperty(e,"toString",{value:t})}var fd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
7
 
8
8
  `,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.
9
9
 
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
44
44
 
45
45
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
46
46
  Has styled-components' style tag been unmounted or altered by another script?
47
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function $u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function Pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error($u.apply(void 0,vt([Du[e]],t,!1)).trim())}var Mu=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw Pt(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(mr);return n},e})(),Vu=1<<30,Pn=new Map,kn=new Map,An=1,Dn=function(e){if(Pn.has(e))return Pn.get(e);for(;kn.has(An);)An++;var t=An++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Vu))throw Pt(16,"".concat(t));return Pn.set(e,t),kn.set(t,e),t},Iu=function(e,t){An=t+1,Pn.set(e,t),kn.set(t,e)},Nu="style[".concat(rt,"][").concat(Ps,'="').concat(xn,'"]'),Lu=new RegExp("^".concat(rt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ou=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},Fu=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(mr),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(Lu);if(l){var u=0|parseInt(l[1],10),d=l[2];u!==0&&(Iu(d,u),Ou(e,d,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},_s=function(e){for(var t=document.querySelectorAll(Nu),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(rt)!==Es&&(Fu(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ru(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var zs=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(rt,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(rt,Es),r.setAttribute(Ps,xn);var s=Ru();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},Bu=(function(){function e(t){this.element=zs(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw Pt(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),ju=(function(){function e(t){this.element=zs(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),_u=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Hs=Sn,zu={isServer:!Sn,useCSSOMInjection:!pu},Us=(function(){function e(t,n,r){t===void 0&&(t=Tt),n===void 0&&(n={});var o=this;this.options=be(be({},zu),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Sn&&Hs&&(Hs=!1,_s(this)),Sr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",u=function(c){var f=(function(v){return kn.get(v)})(c);if(f===void 0)return"continue";var p=i.names.get(f),g=s.getGroup(c);if(p===void 0||!p.size||g.length===0)return"continue";var w="".concat(rt,".g").concat(c,'[id="').concat(f,'"]'),x="";p!==void 0&&p.forEach(function(v){v.length>0&&(x+="".concat(v,","))}),l+="".concat(g).concat(w,'{content:"').concat(x,'"}').concat(mr)},d=0;d<a;d++)u(d);return l})(o)})}return e.registerId=function(t){return Dn(t)},e.prototype.rehydrate=function(){!this.server&&Sn&&_s(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(be(be({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new _u(o):r?new Bu(o):new ju(o)})(this.options),new Mu(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Dn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Dn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Dn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Hu=/&/g,Uu=/^\s*\/\/.*$/gm;function Ws(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ws(n.children,t)),n})}function Wu(e){var t,n,r,o=Tt,i=o.options,s=i===void 0?Tt:i,a=o.plugins,l=a===void 0?Cn:a,u=function(f,p,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):f},d=l.slice();d.push(function(f){f.type===hn&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(Hu,n).replace(r,u))}),s.prefix&&d.push(fu),d.push(cu);var c=function(f,p,g,w){p===void 0&&(p=""),g===void 0&&(g=""),w===void 0&&(w="&"),t=w,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var x=f.replace(Uu,""),v=au(g||p?"".concat(g," ").concat(p," { ").concat(x," }"):x);s.namespace&&(v=Ws(v,s.namespace));var T=[];return wn(v,uu(d.concat(du(function(b){return T.push(b)})))),T};return c.hash=l.length?l.reduce(function(f,p){return p.name||Pt(15),ot(f,p.name)},$s).toString():"",c}var Yu=new Us,Tr=Wu(),Ys=h.createContext({shouldForwardProp:void 0,styleSheet:Yu,stylis:Tr});Ys.Consumer,h.createContext(void 0);function Ks(){return h.useContext(Ys)}var Gs=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Tr);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Sr(this,function(){throw Pt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Tr),this.name+t.hash},e})(),Ku=function(e){return e>="A"&&e<="Z"};function Xs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Ku(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var qs=function(e){return e==null||e===!1||e===""},Zs=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!qs(i)&&(Array.isArray(i)&&i.isCss||Ct(i)?r.push("".concat(Xs(o),":"),i,";"):Et(i)?r.push.apply(r,vt(vt(["".concat(o," {")],Zs(i),!1),["}"],!1)):r.push("".concat(Xs(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in hu||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function it(e,t,n,r){if(qs(e))return[];if(wr(e))return[".".concat(e.styledComponentId)];if(Ct(e)){if(!Ct(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Gs||Et(o)||o===null||console.error("".concat(Vs(e)," 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.")),it(o,t,n,r)}var i;return e instanceof Gs?n?(e.inject(n,r),[e.getName(r)]):[e]:Et(e)?Zs(e):Array.isArray(e)?Array.prototype.concat.apply(Cn,e.map(function(s){return it(s,t,n,r)})):[e.toString()]}function Gu(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ct(n)&&!wr(n))return!1}return!0}var Xu=Ms(xn),qu=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Gu(t),this.componentId=n,this.baseHash=ot(Xu,n),this.baseStyle=r,Us.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=st(o,this.staticRulesId);else{var i=js(it(this.rules,t,n,r)),s=yr(ot(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=st(o,s),this.staticRulesId=s}else{for(var l=ot(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var c=this.rules[d];if(typeof c=="string")u+=c,process.env.NODE_ENV!=="production"&&(l=ot(l,c));else if(c){var f=js(it(c,t,n,r));l=ot(l,f+d),u+=f}}if(u){var p=yr(l>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),o=st(o,p)}}return o},e})(),Js=h.createContext(void 0);Js.Consumer;var Cr={},Qs=new Set;function Zu(e,t,n){var r=wr(e),o=e,i=!br(e),s=t.attrs,a=s===void 0?Cn:s,l=t.componentId,u=l===void 0?(function(C,y){var S=typeof C!="string"?"sc":As(C);Cr[S]=(Cr[S]||0)+1;var E="".concat(S,"-").concat(wu(xn+S+Cr[S]));return y?"".concat(y,"-").concat(E):E})(t.displayName,t.parentComponentId):l,d=t.displayName,c=d===void 0?(function(C){return br(C)?"styled.".concat(C):"Styled(".concat(Vs(C),")")})(e):d,f=t.displayName&&t.componentId?"".concat(As(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var w=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;g=function(C,y){return w(C,y)&&x(C,y)}}else g=w}var v=new qu(n,f,r?o.componentStyle:void 0);function T(C,y){return(function(S,E,$){var N=S.attrs,K=S.componentStyle,D=S.defaultProps,G=S.foldedComponentIds,ee=S.styledComponentId,oe=S.target,ve=h.useContext(Js),j=Ks(),L=S.shouldForwardProp||j.shouldForwardProp;process.env.NODE_ENV!=="production"&&h.useDebugValue(ee);var H=gu(E,ve,D)||Tt,B=(function(q,ce,Se){for(var z,me=be(be({},ce),{className:void 0,theme:Se}),ze=0;ze<q.length;ze+=1){var Ie=Ct(z=q[ze])?z(me):z;for(var M in Ie)me[M]=M==="className"?st(me[M],Ie[M]):M==="style"?be(be({},me[M]),Ie[M]):Ie[M]}return ce.className&&(me.className=st(me.className,ce.className)),me})(N,E,H),V=B.as||oe,J={};for(var se in B)B[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&B.theme===H||(se==="forwardedAs"?J.as=B.forwardedAs:L&&!L(se,V)||(J[se]=B[se],L||process.env.NODE_ENV!=="development"||Gc(se)||Qs.has(se)||!gr.has(V)||(Qs.add(se),console.warn('styled-components: it looks like an unknown prop "'.concat(se,'" 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 O=(function(q,ce){var Se=Ks(),z=q.generateAndInjectStyles(ce,Se.styleSheet,Se.stylis);return process.env.NODE_ENV!=="production"&&h.useDebugValue(z),z})(K,B);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(O);var X=st(G,ee);return O&&(X+=" "+O),B.className&&(X+=" "+B.className),J[br(V)&&!gr.has(V)?"class":"className"]=X,$&&(J.ref=$),h.createElement(V,J)})(b,C,y)}T.displayName=c;var b=h.forwardRef(T);return b.attrs=p,b.componentStyle=v,b.displayName=c,b.shouldForwardProp=g,b.foldedComponentIds=r?st(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=r?(function(y){for(var S=[],E=1;E<arguments.length;E++)S[E-1]=arguments[E];for(var $=0,N=S;$<N.length;$++)xr(y,N[$],!0);return y})({},o.defaultProps,C):C}}),process.env.NODE_ENV!=="production"&&(mu(c,f),b.warnTooManyClasses=(function(C,y){var S={},E=!1;return function($){if(!E&&(S[$]=!0,Object.keys(S).length>=200)){var N=y?' with the id of "'.concat(y,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(C).concat(N,`.
47
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function pd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(pd.apply(void 0,ft([fd[e]],t,!1)).trim())}var md=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw xt(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(sr);return n},e})(),gd=1<<30,bn=new Map,wn=new Map,xn=1,Sn=function(e){if(bn.has(e))return bn.get(e);for(;wn.has(xn);)xn++;var t=xn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>gd))throw xt(16,"".concat(t));return bn.set(e,t),wn.set(t,e),t},yd=function(e,t){xn=t+1,bn.set(e,t),wn.set(t,e)},vd="style[".concat(Je,"][").concat(ms,'="').concat(pn,'"]'),bd=new RegExp("^".concat(Je,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wd=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},xd=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(sr),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(bd);if(l){var d=0|parseInt(l[1],10),u=l[2];d!==0&&(yd(u,d),wd(e,u,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Ms=function(e){for(var t=document.querySelectorAll(vd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Je)!==ps&&(xd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Sd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var $s=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(Je,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(Je,ps),r.setAttribute(ms,pn);var s=Sd();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},Td=(function(){function e(t){this.element=$s(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw xt(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Cd=(function(){function e(t){this.element=$s(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),kd=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Vs=mn,Pd={isServer:!mn,useCSSOMInjection:!Jc},Is=(function(){function e(t,n,r){t===void 0&&(t=vt),n===void 0&&(n={});var o=this;this.options=me(me({},Pd),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&mn&&Vs&&(Vs=!1,Ms(this)),hr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",d=function(c){var h=(function(y){return wn.get(y)})(c);if(h===void 0)return"continue";var p=i.names.get(h),g=s.getGroup(c);if(p===void 0||!p.size||g.length===0)return"continue";var v="".concat(Je,".g").concat(c,'[id="').concat(h,'"]'),w="";p!==void 0&&p.forEach(function(y){y.length>0&&(w+="".concat(y,","))}),l+="".concat(g).concat(v,'{content:"').concat(w,'"}').concat(sr)},u=0;u<a;u++)d(u);return l})(o)})}return e.registerId=function(t){return Sn(t)},e.prototype.rehydrate=function(){!this.server&&mn&&Ms(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new kd(o):r?new Td(o):new Cd(o)})(this.options),new md(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Sn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Sn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Sn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Ed=/&/g,Ad=/^\s*\/\/.*$/gm;function Ls(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ls(n.children,t)),n})}function Dd(e){var t,n,r,o=vt,i=o.options,s=i===void 0?vt:i,a=o.plugins,l=a===void 0?yn:a,d=function(h,p,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===sn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Ed,n).replace(r,d))}),s.prefix&&u.push(qc),u.push(Yc);var c=function(h,p,g,v){p===void 0&&(p=""),g===void 0&&(g=""),v===void 0&&(v="&"),t=v,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var w=h.replace(Ad,""),y=Wc(g||p?"".concat(g," ").concat(p," { ").concat(w," }"):w);s.namespace&&(y=Ls(y,s.namespace));var x=[];return fn(y,Gc(u.concat(Xc(function(b){return x.push(b)})))),x};return c.hash=l.length?l.reduce(function(h,p){return p.name||xt(15),Qe(h,p.name)},bs).toString():"",c}var Md=new Is,fr=Dd(),Ns=f.createContext({shouldForwardProp:void 0,styleSheet:Md,stylis:fr});Ns.Consumer,f.createContext(void 0);function Bs(){return f.useContext(Ns)}var Os=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=fr);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,hr(this,function(){throw xt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=fr),this.name+t.hash},e})(),$d=function(e){return e>="A"&&e<="Z"};function Fs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;$d(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var js=function(e){return e==null||e===!1||e===""},Rs=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!js(i)&&(Array.isArray(i)&&i.isCss||bt(i)?r.push("".concat(Fs(o),":"),i,";"):wt(i)?r.push.apply(r,ft(ft(["".concat(o," {")],Rs(i),!1),["}"],!1)):r.push("".concat(Fs(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Zc||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function tt(e,t,n,r){if(js(e))return[];if(dr(e))return[".".concat(e.styledComponentId)];if(bt(e)){if(!bt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Os||wt(o)||o===null||console.error("".concat(xs(e)," 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.")),tt(o,t,n,r)}var i;return e instanceof Os?n?(e.inject(n,r),[e.getName(r)]):[e]:wt(e)?Rs(e):Array.isArray(e)?Array.prototype.concat.apply(yn,e.map(function(s){return tt(s,t,n,r)})):[e.toString()]}function Vd(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(bt(n)&&!dr(n))return!1}return!0}var Id=ws(pn),Ld=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Vd(t),this.componentId=n,this.baseHash=Qe(Id,n),this.baseStyle=r,Is.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=et(o,this.staticRulesId);else{var i=Ds(tt(this.rules,t,n,r)),s=ar(Qe(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=et(o,s),this.staticRulesId=s}else{for(var l=Qe(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var c=this.rules[u];if(typeof c=="string")d+=c,process.env.NODE_ENV!=="production"&&(l=Qe(l,c));else if(c){var h=Ds(tt(c,t,n,r));l=Qe(l,h+u),d+=h}}if(d){var p=ar(l>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(d,".".concat(p),void 0,this.componentId)),o=et(o,p)}}return o},e})(),zs=f.createContext(void 0);zs.Consumer;var pr={},_s=new Set;function Nd(e,t,n){var r=dr(e),o=e,i=!cr(e),s=t.attrs,a=s===void 0?yn:s,l=t.componentId,d=l===void 0?(function(E,T){var S=typeof E!="string"?"sc":ys(E);pr[S]=(pr[S]||0)+1;var C="".concat(S,"-").concat(od(pn+S+pr[S]));return T?"".concat(T,"-").concat(C):C})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(E){return cr(E)?"styled.".concat(E):"Styled(".concat(xs(E),")")})(e):u,h=t.displayName&&t.componentId?"".concat(ys(t.displayName),"-").concat(t.componentId):t.componentId||d,p=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;g=function(E,T){return v(E,T)&&w(E,T)}}else g=v}var y=new Ld(n,h,r?o.componentStyle:void 0);function x(E,T){return(function(S,C,D){var I=S.attrs,_=S.componentStyle,M=S.defaultProps,K=S.foldedComponentIds,W=S.styledComponentId,ke=S.target,re=f.useContext(zs),F=Bs(),L=S.shouldForwardProp||F.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(W);var R=ed(C,re,M)||vt,V=(function(Y,ae,Me){for(var H,ve=me(me({},ae),{className:void 0,theme:Me}),Xe=0;Xe<Y.length;Xe+=1){var ze=bt(H=Y[Xe])?H(ve):H;for(var pe in ze)ve[pe]=pe==="className"?et(ve[pe],ze[pe]):pe==="style"?me(me({},ve[pe]),ze[pe]):ze[pe]}return ae.className&&(ve.className=et(ve.className,ae.className)),ve})(I,C,R),j=V.as||ke,oe={};for(var se in V)V[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&V.theme===R||(se==="forwardedAs"?oe.as=V.forwardedAs:L&&!L(se,j)||(oe[se]=V[se],L||process.env.NODE_ENV!=="development"||Vc(se)||_s.has(se)||!ir.has(j)||(_s.add(se),console.warn('styled-components: it looks like an unknown prop "'.concat(se,'" 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 O=(function(Y,ae){var Me=Bs(),H=Y.generateAndInjectStyles(ae,Me.styleSheet,Me.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(H),H})(_,V);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(O);var q=et(K,W);return O&&(q+=" "+O),V.className&&(q+=" "+V.className),oe[cr(j)&&!ir.has(j)?"class":"className"]=q,D&&(oe.ref=D),f.createElement(j,oe)})(b,E,T)}x.displayName=c;var b=f.forwardRef(x);return b.attrs=p,b.componentStyle=y,b.displayName=c,b.shouldForwardProp=g,b.foldedComponentIds=r?et(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=h,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=r?(function(T){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];for(var D=0,I=S;D<I.length;D++)ur(T,I[D],!0);return T})({},o.defaultProps,E):E}}),process.env.NODE_ENV!=="production"&&(Qc(c,h),b.warnTooManyClasses=(function(E,T){var S={},C=!1;return function(D){if(!C&&(S[D]=!0,Object.keys(S).length>=200)){var I=T?' with the id of "'.concat(T,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(E).concat(I,`.
48
48
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
49
  Example:
50
50
  const Component = styled.div.attrs(props => ({
@@ -53,167 +53,167 @@ Example:
53
53
  },
54
54
  }))\`width: 100%;\`
55
55
 
56
- <Component />`),E=!0,S={}}}})(c,f)),Sr(b,function(){return".".concat(b.styledComponentId)}),i&&Bs(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function ei(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ti=function(e){return Object.assign(e,{isCss:!0})};function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ct(e)||Et(e))return ti(it(ei(Cn,vt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?it(r):ti(it(ei(r,t)))}function Er(e,t,n){if(n===void 0&&(n=Tt),!t)throw Pt(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,k.apply(void 0,vt([o],i,!1)))};return r.attrs=function(o){return Er(e,t,be(be({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Er(e,t,be(be({},n),o))},r}var ni=function(e){return Er(Zu,e)},P=ni;gr.forEach(function(e){P[e]=ni(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
56
+ <Component />`),C=!0,S={}}}})(c,h)),hr(b,function(){return".".concat(b.styledComponentId)}),i&&As(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Hs(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Us=function(e){return Object.assign(e,{isCss:!0})};function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(bt(e)||wt(e))return Us(tt(Hs(yn,ft([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?tt(r):Us(tt(Hs(r,t)))}function mr(e,t,n){if(n===void 0&&(n=vt),!t)throw xt(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,P.apply(void 0,ft([o],i,!1)))};return r.attrs=function(o){return mr(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return mr(e,t,me(me({},n),o))},r}var Ws=function(e){return mr(Nd,e)},k=Ws;ir.forEach(function(e){k[e]=Ws(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
57
  Perhaps you're looking to import 'styled-components/native'?
58
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var $n="__sc-".concat(rt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[$n]||(window[$n]=0),window[$n]===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.
58
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Tn="__sc-".concat(Je,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Tn]||(window[Tn]=0),window[Tn]===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.
59
59
 
60
- See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[Tn]+=1);const Ks={80:P`
61
61
  font-family: 'Dax', serif;
62
62
  font-size: 5rem;
63
63
  font-style: normal;
64
64
  font-weight: 700;
65
65
  line-height: 163.184%;
66
- `,60:k`
66
+ `,60:P`
67
67
  font-family: 'Dax', serif;
68
68
  font-size: 3.75rem;
69
69
  font-style: normal;
70
70
  font-weight: 700;
71
71
  line-height: 161.76%;
72
- `,40:k`
72
+ `,40:P`
73
73
  font-family: 'Dax', serif;
74
74
  font-size: 2.5rem;
75
75
  font-style: normal;
76
76
  font-weight: 700;
77
77
  line-height: 161.76%;
78
- `,30:k`
78
+ `,30:P`
79
79
  font-family: 'Dax', serif;
80
80
  font-size: 1.875rem;
81
81
  font-style: normal;
82
82
  font-weight: 700;
83
83
  line-height: 161.76%;
84
- `,24:k`
84
+ `,24:P`
85
85
  font-family: 'Dax', serif;
86
86
  font-size: 1.5rem;
87
87
  font-style: normal;
88
88
  font-weight: 700;
89
89
  line-height: 163.184%;
90
- `,20:k`
90
+ `,20:P`
91
91
  font-family: 'Dax', serif;
92
92
  font-size: 1.25rem;
93
93
  font-style: normal;
94
94
  font-weight: 700;
95
95
  line-height: 161.76%;
96
- `,16:k`
96
+ `,16:P`
97
97
  font-family: 'Dax', serif;
98
98
  font-size: 1rem;
99
99
  font-style: normal;
100
100
  font-weight: 700;
101
101
  line-height: 161.76%;
102
- `},Ju={80:k`
102
+ `},Bd={80:P`
103
103
  font-family: 'Dax', serif;
104
104
  font-size: 5rem;
105
105
  font-style: normal;
106
106
  font-weight: 400;
107
107
  line-height: 163.184%;
108
- `,60:k`
108
+ `,60:P`
109
109
  font-family: 'Dax', serif;
110
110
  font-size: 3.75em;
111
111
  font-style: normal;
112
112
  font-weight: 400;
113
113
  line-height: 161.76%;
114
- `,40:k`
114
+ `,40:P`
115
115
  font-family: 'Dax', serif;
116
116
  font-size: 2.5rem;
117
117
  font-style: normal;
118
118
  font-weight: 400;
119
119
  line-height: 161.76%;
120
- `,30:k`
120
+ `,30:P`
121
121
  font-family: 'Dax', serif;
122
122
  font-size: 1.875rem;
123
123
  font-style: normal;
124
124
  font-weight: 400;
125
125
  line-height: 161.76%;
126
- `,24:k`
126
+ `,24:P`
127
127
  font-family: 'Dax', serif;
128
128
  font-size: 1.5rem;
129
129
  font-style: normal;
130
130
  font-weight: 400;
131
131
  line-height: 163.184%;
132
- `,20:k`
132
+ `,20:P`
133
133
  font-family: 'Dax', serif;
134
134
  font-size: 1.25rem;
135
135
  font-style: normal;
136
136
  font-weight: 400;
137
137
  line-height: 161.76%;
138
- `,16:k`
138
+ `,16:P`
139
139
  font-family: 'Dax', serif;
140
140
  font-size: 1rem;
141
141
  font-style: normal;
142
142
  font-weight: 400;
143
143
  line-height: 161.76%;
144
- `},_={80:k`
144
+ `},z={80:P`
145
145
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
146
146
  font-size: 5rem;
147
147
  font-style: normal;
148
148
  font-weight: 400;
149
149
  line-height: 155.962%;
150
- `,60:k`
150
+ `,60:P`
151
151
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
152
152
  font-size: 3.75rem;
153
153
  font-style: normal;
154
154
  font-weight: 400;
155
155
  line-height: 176.782%;
156
- `,40:k`
156
+ `,40:P`
157
157
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
158
158
  font-size: 2.5rem;
159
159
  font-style: normal;
160
160
  font-weight: 400;
161
161
  line-height: 176.782%;
162
- `,30:k`
162
+ `,30:P`
163
163
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
164
164
  font-size: 1.875rem;
165
165
  font-style: normal;
166
166
  font-weight: 400;
167
167
  line-height: 176.782%;
168
- `,24:k`
168
+ `,24:P`
169
169
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
170
170
  font-size: 1.5rem;
171
171
  font-style: normal;
172
172
  font-weight: 400;
173
173
  line-height: 176.782%;
174
- `,20:k`
174
+ `,20:P`
175
175
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
176
176
  font-size: 1.25rem;
177
177
  font-style: normal;
178
178
  font-weight: 400;
179
179
  line-height: 155.962%;
180
- `,18:k`
180
+ `,18:P`
181
181
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
182
182
  font-size: 1.125rem;
183
183
  font-style: normal;
184
184
  font-weight: 400;
185
185
  line-height: 150.782%;
186
- `,16:k`
186
+ `,16:P`
187
187
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
188
188
  font-size: 1rem;
189
189
  font-style: normal;
190
190
  font-weight: 400;
191
191
  line-height: 140%;
192
- `,14:k`
192
+ `,14:P`
193
193
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
194
194
  font-size: 0.875rem;
195
195
  font-style: normal;
196
196
  font-weight: 400;
197
197
  line-height: 140%;
198
- `,12:k`
198
+ `,12:P`
199
199
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
200
200
  font-size: 0.875rem;
201
201
  font-style: normal;
202
202
  font-weight: 400;
203
203
  line-height: 133%;
204
- `},Mn=P.h1`
205
- ${({size:e=24})=>ri[e]}
204
+ `},Cn=k.h1`
205
+ ${({size:e=24})=>Ks[e]}
206
206
  margin: 0;
207
207
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
208
- `,Qu=P.h2`
209
- ${({size:e=24})=>Ju[e]}
208
+ `,Od=k.h2`
209
+ ${({size:e=24})=>Bd[e]}
210
210
  margin: 0;
211
211
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
212
- `,Vn=P.span`
213
- ${({size:e=16})=>_[e]}
212
+ `,kn=k.span`
213
+ ${({size:e=16})=>z[e]}
214
214
  margin: 0;
215
215
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
216
- `,ed=P.span`
216
+ `,Fd=k.span`
217
217
  display: inline-flex;
218
218
  align-items: center;
219
219
  justify-content: center;
@@ -223,57 +223,57 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
223
223
  outline: none;
224
224
  box-shadow: var(--shadow-hover-black-card);
225
225
  }
226
- `,oi={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},Z=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in oi?oi[t]:t;return m.jsx(ed,{$color:n,className:r,children:typeof e=="function"?m.jsx(e,{size:i,...o}):e})},Pr=h.createContext({});function kr(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ar=typeof window<"u",si=Ar?h.useLayoutEffect:h.useEffect,In=h.createContext(null);function Dr(e,t){e.indexOf(t)===-1&&e.push(t)}function $r(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ue=(e,t,n)=>n>t?t:n<e?e:n;function Mr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let kt=()=>{},We=()=>{};process.env.NODE_ENV!=="production"&&(kt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Mr(t,n))},We=(e,t,n)=>{if(!e)throw new Error(Mr(t,n))});const Ye={},ii=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ai(e){return typeof e=="object"&&e!==null}const li=e=>/^0[^.\s]+$/u.test(e);function Vr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pe=e=>e,td=(e,t)=>n=>t(e(n)),Wt=(...e)=>e.reduce(td),Yt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ir{constructor(){this.subscriptions=[]}add(t){return Dr(this.subscriptions,t),()=>$r(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Me=e=>e*1e3,Fe=e=>e/1e3;function ci(e,t){return t?e*(1e3/t):0}const ui=new Set;function Nr(e,t,n){e||ui.has(t)||(console.warn(Mr(t,n)),ui.add(t))}const di=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nd=1e-7,rd=12;function od(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=di(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>nd&&++a<rd);return s}function Kt(e,t,n,r){if(e===t&&n===r)return Pe;const o=i=>od(i,0,1,e,n);return i=>i===0||i===1?i:di(o(i),t,r)}const fi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hi=e=>t=>1-e(1-t),pi=Kt(.33,1.53,.69,.99),Lr=hi(pi),mi=fi(Lr),gi=e=>(e*=2)<1?.5*Lr(e):.5*(2-Math.pow(2,-10*(e-1))),Or=e=>1-Math.sin(Math.acos(e)),yi=hi(Or),vi=fi(Or),sd=Kt(.42,0,1,1),id=Kt(0,0,.58,1),bi=Kt(.42,0,.58,1),ad=e=>Array.isArray(e)&&typeof e[0]!="number",wi=e=>Array.isArray(e)&&typeof e[0]=="number",xi={linear:Pe,easeIn:sd,easeInOut:bi,easeOut:id,circIn:Or,circInOut:vi,circOut:yi,backIn:Lr,backInOut:mi,backOut:pi,anticipate:gi},ld=e=>typeof e=="string",Si=e=>{if(wi(e)){We(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Kt(t,n,r,o)}else if(ld(e))return We(xi[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),xi[e];return e},Nn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function cd(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){s.has(d)&&(u.schedule(d),e()),d(a)}const u={schedule:(d,c=!1,f=!1)=>{const g=f&&o?n:r;return c&&s.add(d),g.has(d)||g.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,u.process(d))}};return u}const ud=40;function Ti(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Nn.reduce((b,C)=>(b[C]=cd(i),b),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:d,update:c,preRender:f,render:p,postRender:g}=s,w=()=>{const b=Ye.useManualTiming?o.timestamp:performance.now();n=!1,Ye.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,ud),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),d.process(o),c.process(o),f.process(o),p.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(w))},x=()=>{n=!0,r=!0,o.isProcessing||e(w)};return{schedule:Nn.reduce((b,C)=>{const y=s[C];return b[C]=(S,E=!1,$=!1)=>(n||x(),y.schedule(S,E,$)),b},{}),cancel:b=>{for(let C=0;C<Nn.length;C++)s[Nn[C]].cancel(b)},state:o,steps:s}}const{schedule:te,cancel:Xe,state:fe,steps:Fr}=Ti(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let Ln;function dd(){Ln=void 0}const we={now:()=>(Ln===void 0&&we.set(fe.isProcessing||Ye.useManualTiming?fe.timestamp:performance.now()),Ln),set:e=>{Ln=e,queueMicrotask(dd)}},Ci=e=>t=>typeof t=="string"&&t.startsWith(e),Rr=Ci("--"),fd=Ci("var(--"),Br=e=>fd(e)?hd.test(e.split("/*")[0].trim()):!1,hd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,At={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gt={...At,transform:e=>Ue(0,1,e)},On={...At,default:1},Xt=e=>Math.round(e*1e5)/1e5,jr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pd(e){return e==null}const md=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_r=(e,t)=>n=>!!(typeof n=="string"&&md.test(n)&&n.startsWith(e)||t&&!pd(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ei=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(jr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},gd=e=>Ue(0,255,e),zr={...At,transform:e=>Math.round(gd(e))},at={test:_r("rgb","red"),parse:Ei("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zr.transform(e)+", "+zr.transform(t)+", "+zr.transform(n)+", "+Xt(Gt.transform(r))+")"};function yd(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Hr={test:_r("#"),parse:yd,transform:at.transform},qt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qe=qt("deg"),Re=qt("%"),I=qt("px"),vd=qt("vh"),bd=qt("vw"),Pi={...Re,parse:e=>Re.parse(e)/100,transform:e=>Re.transform(e*100)},Dt={test:_r("hsl","hue"),parse:Ei("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Re.transform(Xt(t))+", "+Re.transform(Xt(n))+", "+Xt(Gt.transform(r))+")"},le={test:e=>at.test(e)||Hr.test(e)||Dt.test(e),parse:e=>at.test(e)?at.parse(e):Dt.test(e)?Dt.parse(e):Hr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?at.transform(e):Dt.transform(e),getAnimatableNone:e=>{const t=le.parse(e);return t.alpha=0,le.transform(t)}},wd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xd(e){return isNaN(e)&&typeof e=="string"&&(e.match(jr)?.length||0)+(e.match(wd)?.length||0)>0}const ki="number",Ai="color",Sd="var",Td="var(",Di="${}",Cd=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Zt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Cd,l=>(le.test(l)?(r.color.push(i),o.push(Ai),n.push(le.parse(l))):l.startsWith(Td)?(r.var.push(i),o.push(Sd),n.push(l)):(r.number.push(i),o.push(ki),n.push(parseFloat(l))),++i,Di)).split(Di);return{values:n,split:a,indexes:r,types:o}}function $i(e){return Zt(e).values}function Mi(e){const{split:t,types:n}=Zt(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===ki?i+=Xt(o[s]):a===Ai?i+=le.transform(o[s]):i+=o[s]}return i}}const Ed=e=>typeof e=="number"?0:le.test(e)?le.getAnimatableNone(e):e;function Pd(e){const t=$i(e);return Mi(e)(t.map(Ed))}const Ze={test:xd,parse:$i,createTransformer:Mi,getAnimatableNone:Pd};function Ur(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kd({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Ur(l,a,e+1/3),i=Ur(l,a,e),s=Ur(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Fn(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,Wr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Ad=[Hr,at,Dt],Dd=e=>Ad.find(t=>t.test(e));function Vi(e){const t=Dd(e);if(kt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Dt&&(n=kd(n)),n}const Ii=(e,t)=>{const n=Vi(e),r=Vi(t);if(!n||!r)return Fn(e,t);const o={...n};return i=>(o.red=Wr(n.red,r.red,i),o.green=Wr(n.green,r.green,i),o.blue=Wr(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),at.transform(o))},Yr=new Set(["none","hidden"]);function $d(e,t){return Yr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Md(e,t){return n=>ne(e,t,n)}function Kr(e){return typeof e=="number"?Md:typeof e=="string"?Br(e)?Fn:le.test(e)?Ii:Nd:Array.isArray(e)?Ni:typeof e=="object"?le.test(e)?Ii:Vd:Fn}function Ni(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Kr(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Vd(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Kr(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Id(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const Nd=(e,t)=>{const n=Ze.createTransformer(t),r=Zt(e),o=Zt(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Yr.has(e)&&!o.values.length||Yr.has(t)&&!r.values.length?$d(e,t):Wt(Ni(Id(r,o),o.values),n):(kt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Fn(e,t))};function Li(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Kr(e)(e,t)}const Ld=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>te.update(t,n),stop:()=>Xe(t),now:()=>fe.isProcessing?fe.timestamp:we.now()}},Oi=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Rn=2e4;function Gr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rn;)t+=n,r=e.next(t);return t>=Rn?1/0:t}function Od(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Gr(r),Rn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Fe(o)}}const Fd=5;function Fi(e,t,n){const r=Math.max(t-Fd,0);return ci(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xr=.001;function Rd({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;kt(e<=Me(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ue(re.minDamping,re.maxDamping,s),e=Ue(re.minDuration,re.maxDuration,Fe(e)),s<1?(o=u=>{const d=u*s,c=d*e,f=d-n,p=qr(u,s),g=Math.exp(-c);return Xr-f/p*g},i=u=>{const c=u*s*e,f=c*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-c),w=qr(Math.pow(u,2),s);return(-o(u)+Xr>0?-1:1)*((f-p)*g)/w}):(o=u=>{const d=Math.exp(-u*e),c=(u-n)*e+1;return-Xr+d*c},i=u=>{const d=Math.exp(-u*e),c=(n-u)*(e*e);return d*c});const a=5/e,l=jd(o,i,a);if(e=Me(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Bd=12;function jd(e,t,n){let r=n;for(let o=1;o<Bd;o++)r=r-e(r)/t(r);return r}function qr(e,t){return e*Math.sqrt(1-t*t)}const _d=["duration","bounce"],zd=["stiffness","damping","mass"];function Ri(e,t){return t.some(n=>e[n]!==void 0)}function Hd(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!Ri(e,zd)&&Ri(e,_d))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ue(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=Rd(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Bn(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:d,duration:c,velocity:f,isResolvedFromDuration:p}=Hd({...n,velocity:-Fe(n.velocity||0)}),g=f||0,w=u/(2*Math.sqrt(l*d)),x=s-i,v=Fe(Math.sqrt(l/d)),T=Math.abs(x)<5;r||(r=T?re.restSpeed.granular:re.restSpeed.default),o||(o=T?re.restDelta.granular:re.restDelta.default);let b;if(w<1){const y=qr(v,w);b=S=>{const E=Math.exp(-w*v*S);return s-E*((g+w*v*x)/y*Math.sin(y*S)+x*Math.cos(y*S))}}else if(w===1)b=y=>s-Math.exp(-v*y)*(x+(g+v*x)*y);else{const y=v*Math.sqrt(w*w-1);b=S=>{const E=Math.exp(-w*v*S),$=Math.min(y*S,300);return s-E*((g+w*v*x)*Math.sinh($)+y*x*Math.cosh($))/y}}const C={calculatedDuration:p&&c||null,next:y=>{const S=b(y);if(p)a.done=y>=c;else{let E=y===0?g:0;w<1&&(E=y===0?Me(g):Fi(b,y,S));const $=Math.abs(E)<=r,N=Math.abs(s-S)<=o;a.done=$&&N}return a.value=a.done?s:S,a},toString:()=>{const y=Math.min(Gr(C),Rn),S=Oi(E=>C.next(y*E).value,y,30);return y+"ms "+S},toTransition:()=>{}};return C}Bn.applyToOptions=e=>{const t=Od(e,100,Bn);return e.ease=t.ease,e.duration=Me(t.duration),e.type="keyframes",e};function Zr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const c=e[0],f={done:!1,value:c},p=$=>a!==void 0&&$<a||l!==void 0&&$>l,g=$=>a===void 0?l:l===void 0||Math.abs(a-$)<Math.abs(l-$)?a:l;let w=n*t;const x=c+w,v=s===void 0?x:s(x);v!==x&&(w=v-c);const T=$=>-w*Math.exp(-$/r),b=$=>v+T($),C=$=>{const N=T($),K=b($);f.done=Math.abs(N)<=u,f.value=f.done?v:K};let y,S;const E=$=>{p(f.value)&&(y=$,S=Bn({keyframes:[f.value,g(f.value)],velocity:Fi(b,$,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:$=>{let N=!1;return!S&&y===void 0&&(N=!0,C($),E($)),y!==void 0&&$>=y?S.next($-y):(!N&&C($),f)}}}function Ud(e,t,n){const r=[],o=n||Ye.mix||Li,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Pe:t;a=Wt(l,a)}r.push(a)}return r}function Wd(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(We(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ud(t,r,o),l=a.length,u=d=>{if(s&&d<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=Yt(e[c],e[c+1],d);return a[c](f)};return n?d=>u(Ue(e[0],e[i-1],d)):u}function Yd(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Yt(0,t,r);e.push(ne(n,1,o))}}function Kd(e){const t=[0];return Yd(t,e.length-1),t}function Gd(e,t){return e.map(n=>n*t)}function Xd(e,t){return e.map(()=>t||bi).splice(0,e.length-1)}function $t({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ad(r)?r.map(Si):Si(r),i={done:!1,value:t[0]},s=Gd(n&&n.length===t.length?n:Kd(t),e),a=Wd(s,t,{ease:Array.isArray(o)?o:Xd(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const qd=e=>e!==null;function Jr(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(qd),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Zd={decay:Zr,inertia:Zr,tween:$t,keyframes:$t,spring:Bn};function Bi(e){typeof e.type=="string"&&(e.type=Zd[e.type])}class Qr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Jd=e=>e/100;class eo extends Qr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==we.now()&&this.tick(we.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Bi(t);const{type:n=$t,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||$t;process.env.NODE_ENV!=="production"&&l!==$t&&We(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==$t&&typeof a[0]!="number"&&(this.mixKeyframes=Wt(Jd,Li(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Gr(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:c,repeatType:f,repeatDelay:p,type:g,onUpdate:w,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,C=r;if(c){const $=Math.min(this.currentTime,o)/a;let N=Math.floor($),K=$%1;!K&&$>=1&&(K=1),K===1&&N--,N=Math.min(N,c+1),!!(N%2)&&(f==="reverse"?(K=1-K,p&&(K-=p/a)):f==="mirror"&&(C=s)),b=Ue(0,1,K)*a}const y=T?{done:!1,value:d[0]}:C.next(b);i&&(y.value=i(y.value));let{done:S}=y;!T&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return E&&g!==Zr&&(y.value=Jr(d,this.options,x,this.speed)),w&&w(y.value),E&&this.finish(),y}then(t,n){return this.finished.then(t,n)}get duration(){return Fe(this.calculatedDuration)}get time(){return Fe(this.currentTime)}set time(t){t=Me(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(we.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Fe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ld,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(we.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Qd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const lt=e=>e*180/Math.PI,to=e=>{const t=lt(Math.atan2(e[1],e[0]));return no(t)},ef={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:to,rotateZ:to,skewX:e=>lt(Math.atan(e[1])),skewY:e=>lt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},no=e=>(e=e%360,e<0&&(e+=360),e),ji=to,_i=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),zi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tf={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_i,scaleY:zi,scale:e=>(_i(e)+zi(e))/2,rotateX:e=>no(lt(Math.atan2(e[6],e[5]))),rotateY:e=>no(lt(Math.atan2(-e[2],e[0]))),rotateZ:ji,rotate:ji,skewX:e=>lt(Math.atan(e[4])),skewY:e=>lt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ro(e){return e.includes("scale")?1:0}function oo(e,t){if(!e||e==="none")return ro(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=tf,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ef,o=a}if(!o)return ro(t);const i=r[t],s=o[1].split(",").map(rf);return typeof i=="function"?i(s):s[i]}const nf=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return oo(n,t)};function rf(e){return parseFloat(e.trim())}const Mt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vt=new Set(Mt),Hi=e=>e===At||e===I,of=new Set(["x","y","z"]),sf=Mt.filter(e=>!of.has(e));function af(e){const t=[];return sf.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ct={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>oo(t,"x"),y:(e,{transform:t})=>oo(t,"y")};ct.translateX=ct.x,ct.translateY=ct.y;const ut=new Set;let so=!1,io=!1,ao=!1;function Ui(){if(io){const e=Array.from(ut).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=af(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}io=!1,so=!1,ut.forEach(e=>e.complete(ao)),ut.clear()}function Wi(){ut.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(io=!0)})}function lf(){ao=!0,Wi(),Ui(),ao=!1}class lo{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ut.add(this),so||(so=!0,te.read(Wi),te.resolveKeyframes(Ui))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Qd(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ut.delete(this)}cancel(){this.state==="scheduled"&&(ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const cf=e=>e.startsWith("--");function uf(e,t,n){cf(t)?e.style.setProperty(t,n):e.style[t]=n}const df=Vr(()=>window.ScrollTimeline!==void 0),ff={};function hf(e,t){const n=Vr(e);return()=>ff[t]??n()}const Yi=hf(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Jt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ki={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jt([0,.65,.55,1]),circOut:Jt([.55,0,1,.45]),backIn:Jt([.31,.01,.66,-.59]),backOut:Jt([.33,1.53,.69,.99])};function Gi(e,t){if(e)return typeof e=="function"?Yi()?Oi(e,t):"ease-out":wi(e)?Jt(e):Array.isArray(e)?e.map(n=>Gi(n,t)||Ki.easeOut):Ki[e]}function pf(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const c=Gi(a,o);Array.isArray(c)&&(d.easing=c);const f={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function Xi(e){return typeof e=="function"&&"applyToOptions"in e}function mf({type:e,...t}){return Xi(e)&&Yi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class gf extends Qr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,We(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=mf(t);this.animation=pf(n,r,o,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Jr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):uf(n,r,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Fe(Number(t))}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Me(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&df()?(this.animation.timeline=t,Pe):n(this)}}const qi={anticipate:gi,backInOut:mi,circInOut:vi};function yf(e){return e in qi}function vf(e){typeof e.ease=="string"&&yf(e.ease)&&(e.ease=qi[e.ease])}const Zi=10;class bf extends gf{constructor(t){vf(t),Bi(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new eo({...s,autoplay:!1}),l=Me(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Zi).value,a.sample(l).value,Zi),a.stop()}}const Ji=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ze.test(e)||e==="0")&&!e.startsWith("url("));function wf(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xf(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Ji(o,t),a=Ji(i,t);return kt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:wf(e)||(n==="spring"||Xi(n))&&r}function co(e){e.duration=0,e.type}const Sf=new Set(["opacity","clipPath","filter","transform"]),Tf=Vr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Cf(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Tf()&&n&&Sf.has(n)&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Ef=40;class Pf extends Qr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:d,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:u,element:d,...c},p=d?.KeyframeResolver||lo;this.keyframeResolver=new p(a,(g,w,x)=>this.onKeyframesResolved(g,w,f,!x),l,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:d}=r;this.resolvedAt=we.now(),xf(t,i,s,a)||((Ye.instantAnimations||!l)&&d?.(Jr(t,r,n)),t[0]=t[t.length-1],co(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Ef?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!u&&Cf(f)?new bf({...f,element:f.motionValue.owner.current}):new eo(f);p.finished.then(()=>this.notifyFinished()).catch(Pe),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),lf()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const kf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Af(e){const t=kf.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Df=4;function Qi(e,t,n=1){We(n<=Df,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Af(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return ii(s)?parseFloat(s):s}return Br(o)?Qi(o,t,n+1):o}function uo(e,t){return e?.[t]??e?.default??e}const ea=new Set(["width","height","top","left","right","bottom",...Mt]),$f={test:e=>e==="auto",parse:e=>e},ta=e=>t=>t.test(e),na=[At,I,Re,qe,bd,vd,$f],ra=e=>na.find(ta(e));function Mf(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||li(e):!0}const Vf=new Set(["brightness","contrast","saturate","opacity"]);function If(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(jr)||[];if(!r)return e;const o=n.replace(r,"");let i=Vf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Nf=/\b([a-z-]*)\(.*?\)/gu,fo={...Ze,getAnimatableNone:e=>{const t=e.match(Nf);return t?t.map(If).join(" "):e}},oa={...At,transform:Math.round},ho={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,backgroundPositionX:I,backgroundPositionY:I,...{rotate:qe,rotateX:qe,rotateY:qe,rotateZ:qe,scale:On,scaleX:On,scaleY:On,scaleZ:On,skew:qe,skewX:qe,skewY:qe,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Gt,originX:Pi,originY:Pi,originZ:I},zIndex:oa,fillOpacity:Gt,strokeOpacity:Gt,numOctaves:oa},Lf={...ho,color:le,backgroundColor:le,outlineColor:le,fill:le,stroke:le,borderColor:le,borderTopColor:le,borderRightColor:le,borderBottomColor:le,borderLeftColor:le,filter:fo,WebkitFilter:fo},sa=e=>Lf[e];function ia(e,t){let n=sa(e);return n!==fo&&(n=Ze),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Of=new Set(["auto","none","0"]);function Ff(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Of.has(i)&&Zt(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=ia(n,o)}class Rf extends lo{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Br(u))){const d=Qi(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ea.has(r)||t.length!==2)return;const[o,i]=t,s=ra(o),a=ra(i);if(s!==a)if(Hi(s)&&Hi(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else ct[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Mf(t[o]))&&r.push(o);r.length&&Ff(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ct[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=ct[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Bf(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const aa=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function la(e){return ai(e)&&"offsetHeight"in e}const ca=30,jf=e=>!isNaN(parseFloat(e));class _f{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=we.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=we.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=jf(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Nr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ir);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ca)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ca);return ci(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function It(e,t){return new _f(e,t)}const{schedule:po}=Ti(queueMicrotask,!1),Ve={x:!1,y:!1};function ua(){return Ve.x||Ve.y}function zf(e){return e==="x"||e==="y"?Ve[e]?null:(Ve[e]=!0,()=>{Ve[e]=!1}):Ve.x||Ve.y?null:(Ve.x=Ve.y=!0,()=>{Ve.x=Ve.y=!1})}function da(e,t){const n=Bf(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function fa(e){return!(e.pointerType==="touch"||ua())}function Hf(e,t,n={}){const[r,o,i]=da(e,n),s=a=>{if(!fa(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const d=c=>{fa(c)&&(u(c),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ha=(e,t)=>t?e===t?!0:ha(e,t.parentElement):!1,mo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Uf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Wf(e){return Uf.has(e.tagName)||e.tabIndex!==-1}const jn=new WeakSet;function pa(e){return t=>{t.key==="Enter"&&e(t)}}function go(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Yf=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=pa(()=>{if(jn.has(n))return;go(n,"down");const o=pa(()=>{go(n,"up")}),i=()=>go(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ma(e){return mo(e)&&!ua()}function Kf(e,t,n={}){const[r,o,i]=da(e,n),s=a=>{const l=a.currentTarget;if(!ma(a))return;jn.add(l);const u=t(l,a),d=(p,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),jn.has(l)&&jn.delete(l),ma(p)&&typeof u=="function"&&u(p,{success:g})},c=p=>{d(p,l===window||l===document||n.useGlobalTarget||ha(l,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),la(a)&&(a.addEventListener("focus",u=>Yf(u,o)),!Wf(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function ga(e){return ai(e)&&"ownerSVGElement"in e}function Gf(e){return ga(e)&&e.tagName==="svg"}const pe=e=>!!(e&&e.getVelocity),Xf=[...na,le,Ze],qf=e=>Xf.find(ta(e)),yo=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Zf extends lr.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=la(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Jf({children:e,isPresent:t,anchorX:n,root:r}){const o=h.useId(),i=h.useRef(null),s=h.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=h.useContext(yo);return h.useInsertionEffect(()=>{const{width:l,height:u,top:d,left:c,right:f}=s.current;if(t||!i.current||!l||!u)return;const p=n==="left"?`left: ${c}`:`right: ${f}`;i.current.dataset.motionPopId=o;const g=document.createElement("style");a&&(g.nonce=a);const w=r??document.head;return w.appendChild(g),g.sheet&&g.sheet.insertRule(`
226
+ `,Ys={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},G=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Ys?Ys[t]:t;return m.jsx(Fd,{$color:n,className:r,children:typeof e=="function"?m.jsx(e,{size:i,...o}):e})},gr=f.createContext({});function yr(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const vr=typeof window<"u",Gs=vr?f.useLayoutEffect:f.useEffect,Pn=f.createContext(null);function br(e,t){e.indexOf(t)===-1&&e.push(t)}function wr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Fe=(e,t,n)=>n>t?t:n<e?e:n;function xr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let St=()=>{},je=()=>{};process.env.NODE_ENV!=="production"&&(St=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(xr(t,n))},je=(e,t,n)=>{if(!e)throw new Error(xr(t,n))});const Re={},Xs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qs(e){return typeof e=="object"&&e!==null}const Zs=e=>/^0[^.\s]+$/u.test(e);function Sr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Se=e=>e,jd=(e,t)=>n=>t(e(n)),Rt=(...e)=>e.reduce(jd),zt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Tr{constructor(){this.subscriptions=[]}add(t){return br(this.subscriptions,t),()=>wr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ae=e=>e*1e3,Le=e=>e/1e3;function Js(e,t){return t?e*(1e3/t):0}const Qs=new Set;function Cr(e,t,n){e||Qs.has(t)||(console.warn(xr(t,n)),Qs.add(t))}const ei=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rd=1e-7,zd=12;function _d(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ei(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Rd&&++a<zd);return s}function _t(e,t,n,r){if(e===t&&n===r)return Se;const o=i=>_d(i,0,1,e,n);return i=>i===0||i===1?i:ei(o(i),t,r)}const ti=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ni=e=>t=>1-e(1-t),ri=_t(.33,1.53,.69,.99),kr=ni(ri),oi=ti(kr),si=e=>(e*=2)<1?.5*kr(e):.5*(2-Math.pow(2,-10*(e-1))),Pr=e=>1-Math.sin(Math.acos(e)),ii=ni(Pr),ai=ti(Pr),Hd=_t(.42,0,1,1),Ud=_t(0,0,.58,1),li=_t(.42,0,.58,1),Wd=e=>Array.isArray(e)&&typeof e[0]!="number",ci=e=>Array.isArray(e)&&typeof e[0]=="number",di={linear:Se,easeIn:Hd,easeInOut:li,easeOut:Ud,circIn:Pr,circInOut:ai,circOut:ii,backIn:kr,backInOut:oi,backOut:ri,anticipate:si},Kd=e=>typeof e=="string",ui=e=>{if(ci(e)){je(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return _t(t,n,r,o)}else if(Kd(e))return je(di[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),di[e];return e},En=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Yd(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,c=!1,h=!1)=>{const g=h&&o?n:r;return c&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,d.process(u))}};return d}const Gd=40;function hi(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=En.reduce((b,E)=>(b[E]=Yd(i),b),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:p,postRender:g}=s,v=()=>{const b=Re.useManualTiming?o.timestamp:performance.now();n=!1,Re.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,Gd),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),d.process(o),u.process(o),c.process(o),h.process(o),p.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},w=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:En.reduce((b,E)=>{const T=s[E];return b[E]=(S,C=!1,D=!1)=>(n||w(),T.schedule(S,C,D)),b},{}),cancel:b=>{for(let E=0;E<En.length;E++)s[En[E]].cancel(b)},state:o,steps:s}}const{schedule:Z,cancel:Ue,state:ce,steps:Er}=hi(typeof requestAnimationFrame<"u"?requestAnimationFrame:Se,!0);let An;function Xd(){An=void 0}const ge={now:()=>(An===void 0&&ge.set(ce.isProcessing||Re.useManualTiming?ce.timestamp:performance.now()),An),set:e=>{An=e,queueMicrotask(Xd)}},fi=e=>t=>typeof t=="string"&&t.startsWith(e),Ar=fi("--"),qd=fi("var(--"),Dr=e=>qd(e)?Zd.test(e.split("/*")[0].trim()):!1,Zd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ht={...Tt,transform:e=>Fe(0,1,e)},Dn={...Tt,default:1},Ut=e=>Math.round(e*1e5)/1e5,Mr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Jd(e){return e==null}const Qd=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$r=(e,t)=>n=>!!(typeof n=="string"&&Qd.test(n)&&n.startsWith(e)||t&&!Jd(n)&&Object.prototype.hasOwnProperty.call(n,t)),pi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Mr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},eu=e=>Fe(0,255,e),Vr={...Tt,transform:e=>Math.round(eu(e))},nt={test:$r("rgb","red"),parse:pi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vr.transform(e)+", "+Vr.transform(t)+", "+Vr.transform(n)+", "+Ut(Ht.transform(r))+")"};function tu(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ir={test:$r("#"),parse:tu,transform:nt.transform},Wt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),We=Wt("deg"),Ne=Wt("%"),$=Wt("px"),nu=Wt("vh"),ru=Wt("vw"),mi={...Ne,parse:e=>Ne.parse(e)/100,transform:e=>Ne.transform(e*100)},Ct={test:$r("hsl","hue"),parse:pi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ne.transform(Ut(t))+", "+Ne.transform(Ut(n))+", "+Ut(Ht.transform(r))+")"},ne={test:e=>nt.test(e)||Ir.test(e)||Ct.test(e),parse:e=>nt.test(e)?nt.parse(e):Ct.test(e)?Ct.parse(e):Ir.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nt.transform(e):Ct.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},ou=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function su(e){return isNaN(e)&&typeof e=="string"&&(e.match(Mr)?.length||0)+(e.match(ou)?.length||0)>0}const gi="number",yi="color",iu="var",au="var(",vi="${}",lu=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Kt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(lu,l=>(ne.test(l)?(r.color.push(i),o.push(yi),n.push(ne.parse(l))):l.startsWith(au)?(r.var.push(i),o.push(iu),n.push(l)):(r.number.push(i),o.push(gi),n.push(parseFloat(l))),++i,vi)).split(vi);return{values:n,split:a,indexes:r,types:o}}function bi(e){return Kt(e).values}function wi(e){const{split:t,types:n}=Kt(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===gi?i+=Ut(o[s]):a===yi?i+=ne.transform(o[s]):i+=o[s]}return i}}const cu=e=>typeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function du(e){const t=bi(e);return wi(e)(t.map(cu))}const Ke={test:su,parse:bi,createTransformer:wi,getAnimatableNone:du};function Lr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Lr(l,a,e+1/3),i=Lr(l,a,e),s=Lr(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Mn(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,Nr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},hu=[Ir,nt,Ct],fu=e=>hu.find(t=>t.test(e));function xi(e){const t=fu(e);if(St(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ct&&(n=uu(n)),n}const Si=(e,t)=>{const n=xi(e),r=xi(t);if(!n||!r)return Mn(e,t);const o={...n};return i=>(o.red=Nr(n.red,r.red,i),o.green=Nr(n.green,r.green,i),o.blue=Nr(n.blue,r.blue,i),o.alpha=J(n.alpha,r.alpha,i),nt.transform(o))},Br=new Set(["none","hidden"]);function pu(e,t){return Br.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function mu(e,t){return n=>J(e,t,n)}function Or(e){return typeof e=="number"?mu:typeof e=="string"?Dr(e)?Mn:ne.test(e)?Si:vu:Array.isArray(e)?Ti:typeof e=="object"?ne.test(e)?Si:gu:Mn}function Ti(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Or(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function gu(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Or(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function yu(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const vu=(e,t)=>{const n=Ke.createTransformer(t),r=Kt(e),o=Kt(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Br.has(e)&&!o.values.length||Br.has(t)&&!r.values.length?pu(e,t):Rt(Ti(yu(r,o),o.values),n):(St(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Mn(e,t))};function Ci(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):Or(e)(e,t)}const bu=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>Ue(t),now:()=>ce.isProcessing?ce.timestamp:ge.now()}},ki=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$n=2e4;function Fr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<$n;)t+=n,r=e.next(t);return t>=$n?1/0:t}function wu(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Fr(r),$n);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Le(o)}}const xu=5;function Pi(e,t,n){const r=Math.max(t-xu,0);return Js(n-e(r),t-r)}const Q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jr=.001;function Su({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let o,i;St(e<=Ae(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Fe(Q.minDamping,Q.maxDamping,s),e=Fe(Q.minDuration,Q.maxDuration,Le(e)),s<1?(o=d=>{const u=d*s,c=u*e,h=u-n,p=Rr(d,s),g=Math.exp(-c);return jr-h/p*g},i=d=>{const c=d*s*e,h=c*n+n,p=Math.pow(s,2)*Math.pow(d,2)*e,g=Math.exp(-c),v=Rr(Math.pow(d,2),s);return(-o(d)+jr>0?-1:1)*((h-p)*g)/v}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-jr+u*c},i=d=>{const u=Math.exp(-d*e),c=(n-d)*(e*e);return u*c});const a=5/e,l=Cu(o,i,a);if(e=Ae(e),isNaN(l))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const Tu=12;function Cu(e,t,n){let r=n;for(let o=1;o<Tu;o++)r=r-e(r)/t(r);return r}function Rr(e,t){return e*Math.sqrt(1-t*t)}const ku=["duration","bounce"],Pu=["stiffness","damping","mass"];function Ei(e,t){return t.some(n=>e[n]!==void 0)}function Eu(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!Ei(e,Pu)&&Ei(e,ku))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Q.mass,stiffness:o,damping:i}}else{const n=Su(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Vn(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:d,mass:u,duration:c,velocity:h,isResolvedFromDuration:p}=Eu({...n,velocity:-Le(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(l*u)),w=s-i,y=Le(Math.sqrt(l/u)),x=Math.abs(w)<5;r||(r=x?Q.restSpeed.granular:Q.restSpeed.default),o||(o=x?Q.restDelta.granular:Q.restDelta.default);let b;if(v<1){const T=Rr(y,v);b=S=>{const C=Math.exp(-v*y*S);return s-C*((g+v*y*w)/T*Math.sin(T*S)+w*Math.cos(T*S))}}else if(v===1)b=T=>s-Math.exp(-y*T)*(w+(g+y*w)*T);else{const T=y*Math.sqrt(v*v-1);b=S=>{const C=Math.exp(-v*y*S),D=Math.min(T*S,300);return s-C*((g+v*y*w)*Math.sinh(D)+T*w*Math.cosh(D))/T}}const E={calculatedDuration:p&&c||null,next:T=>{const S=b(T);if(p)a.done=T>=c;else{let C=T===0?g:0;v<1&&(C=T===0?Ae(g):Pi(b,T,S));const D=Math.abs(C)<=r,I=Math.abs(s-S)<=o;a.done=D&&I}return a.value=a.done?s:S,a},toString:()=>{const T=Math.min(Fr(E),$n),S=ki(C=>E.next(T*C).value,T,30);return T+"ms "+S},toTransition:()=>{}};return E}Vn.applyToOptions=e=>{const t=wu(e,100,Vn);return e.ease=t.ease,e.duration=Ae(t.duration),e.type="keyframes",e};function zr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:d=.5,restSpeed:u}){const c=e[0],h={done:!1,value:c},p=D=>a!==void 0&&D<a||l!==void 0&&D>l,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let v=n*t;const w=c+v,y=s===void 0?w:s(w);y!==w&&(v=y-c);const x=D=>-v*Math.exp(-D/r),b=D=>y+x(D),E=D=>{const I=x(D),_=b(D);h.done=Math.abs(I)<=d,h.value=h.done?y:_};let T,S;const C=D=>{p(h.value)&&(T=D,S=Vn({keyframes:[h.value,g(h.value)],velocity:Pi(b,D,h.value),damping:o,stiffness:i,restDelta:d,restSpeed:u}))};return C(0),{calculatedDuration:null,next:D=>{let I=!1;return!S&&T===void 0&&(I=!0,E(D),C(D)),T!==void 0&&D>=T?S.next(D-T):(!I&&E(D),h)}}}function Au(e,t,n){const r=[],o=n||Re.mix||Ci,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Se:t;a=Rt(l,a)}r.push(a)}return r}function Du(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(je(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Au(t,r,o),l=a.length,d=u=>{if(s&&u<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const h=zt(e[c],e[c+1],u);return a[c](h)};return n?u=>d(Fe(e[0],e[i-1],u)):d}function Mu(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=zt(0,t,r);e.push(J(n,1,o))}}function $u(e){const t=[0];return Mu(t,e.length-1),t}function Vu(e,t){return e.map(n=>n*t)}function Iu(e,t){return e.map(()=>t||li).splice(0,e.length-1)}function kt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Wd(r)?r.map(ui):ui(r),i={done:!1,value:t[0]},s=Vu(n&&n.length===t.length?n:$u(t),e),a=Du(s,t,{ease:Array.isArray(o)?o:Iu(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Lu=e=>e!==null;function _r(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Lu),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Nu={decay:zr,inertia:zr,tween:kt,keyframes:kt,spring:Vn};function Ai(e){typeof e.type=="string"&&(e.type=Nu[e.type])}class Hr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Bu=e=>e/100;class Ur extends Hr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ai(t);const{type:n=kt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||kt;process.env.NODE_ENV!=="production"&&l!==kt&&je(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==kt&&typeof a[0]!="number"&&(this.mixKeyframes=Rt(Bu,Ci(a[0],a[1])),a=[0,100]);const d=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=Fr(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:p,type:g,onUpdate:v,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,E=r;if(c){const D=Math.min(this.currentTime,o)/a;let I=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&I--,I=Math.min(I,c+1),!!(I%2)&&(h==="reverse"?(_=1-_,p&&(_-=p/a)):h==="mirror"&&(E=s)),b=Fe(0,1,_)*a}const T=x?{done:!1,value:u[0]}:E.next(b);i&&(T.value=i(T.value));let{done:S}=T;!x&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return C&&g!==zr&&(T.value=_r(u,this.options,w,this.speed)),v&&v(T.value),C&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Le(this.calculatedDuration)}get time(){return Le(this.currentTime)}set time(t){t=Ae(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ge.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Le(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=bu,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Ou(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const rt=e=>e*180/Math.PI,Wr=e=>{const t=rt(Math.atan2(e[1],e[0]));return Kr(t)},Fu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wr,rotateZ:Wr,skewX:e=>rt(Math.atan(e[1])),skewY:e=>rt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kr=e=>(e=e%360,e<0&&(e+=360),e),Di=Wr,Mi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$i=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ju={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mi,scaleY:$i,scale:e=>(Mi(e)+$i(e))/2,rotateX:e=>Kr(rt(Math.atan2(e[6],e[5]))),rotateY:e=>Kr(rt(Math.atan2(-e[2],e[0]))),rotateZ:Di,rotate:Di,skewX:e=>rt(Math.atan(e[4])),skewY:e=>rt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Yr(e){return e.includes("scale")?1:0}function Gr(e,t){if(!e||e==="none")return Yr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=ju,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Fu,o=a}if(!o)return Yr(t);const i=r[t],s=o[1].split(",").map(zu);return typeof i=="function"?i(s):s[i]}const Ru=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Gr(n,t)};function zu(e){return parseFloat(e.trim())}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Et=new Set(Pt),Vi=e=>e===Tt||e===$,_u=new Set(["x","y","z"]),Hu=Pt.filter(e=>!_u.has(e));function Uu(e){const t=[];return Hu.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ot={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Gr(t,"x"),y:(e,{transform:t})=>Gr(t,"y")};ot.translateX=ot.x,ot.translateY=ot.y;const st=new Set;let Xr=!1,qr=!1,Zr=!1;function Ii(){if(qr){const e=Array.from(st).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Uu(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qr=!1,Xr=!1,st.forEach(e=>e.complete(Zr)),st.clear()}function Li(){st.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qr=!0)})}function Wu(){Zr=!0,Li(),Ii(),Zr=!1}class Jr{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(st.add(this),Xr||(Xr=!0,Z.read(Li),Z.resolveKeyframes(Ii))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Ou(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),st.delete(this)}cancel(){this.state==="scheduled"&&(st.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ku=e=>e.startsWith("--");function Yu(e,t,n){Ku(t)?e.style.setProperty(t,n):e.style[t]=n}const Gu=Sr(()=>window.ScrollTimeline!==void 0),Xu={};function qu(e,t){const n=Sr(e);return()=>Xu[t]??n()}const Ni=qu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Yt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yt([0,.65,.55,1]),circOut:Yt([.55,0,1,.45]),backIn:Yt([.31,.01,.66,-.59]),backOut:Yt([.33,1.53,.69,.99])};function Oi(e,t){if(e)return typeof e=="function"?Ni()?ki(e,t):"ease-out":ci(e)?Yt(e):Array.isArray(e)?e.map(n=>Oi(n,t)||Bi.easeOut):Bi[e]}function Zu(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const c=Oi(a,o);Array.isArray(c)&&(u.easing=c);const h={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Fi(e){return typeof e=="function"&&"applyToOptions"in e}function Ju({type:e,...t}){return Fi(e)&&Ni()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Qu extends Hr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,je(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=Ju(t);this.animation=Zu(n,r,o,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=_r(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Yu(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Le(Number(t))}get time(){return Le(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ae(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Gu()?(this.animation.timeline=t,Se):n(this)}}const ji={anticipate:si,backInOut:oi,circInOut:ai};function eh(e){return e in ji}function th(e){typeof e.ease=="string"&&eh(e.ease)&&(e.ease=ji[e.ease])}const Ri=10;class nh extends Qu{constructor(t){th(t),Ai(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ur({...s,autoplay:!1}),l=Ae(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ri).value,a.sample(l).value,Ri),a.stop()}}const zi=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ke.test(e)||e==="0")&&!e.startsWith("url("));function rh(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function oh(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=zi(o,t),a=zi(i,t);return St(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:rh(e)||(n==="spring"||Fi(n))&&r}function Qr(e){e.duration=0,e.type}const sh=new Set(["opacity","clipPath","filter","transform"]),ih=Sr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ah(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return ih()&&n&&sh.has(n)&&(n!=="transform"||!d)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const lh=40;class ch extends Hr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:d,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:d,element:u,...c},p=u?.KeyframeResolver||Jr;this.keyframeResolver=new p(a,(g,v,w)=>this.onKeyframesResolved(g,v,h,!w),l,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ge.now(),oh(t,i,s,a)||((Re.instantAnimations||!l)&&u?.(_r(t,r,n)),t[0]=t[t.length-1],Qr(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>lh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!d&&ah(h)?new nh({...h,element:h.motionValue.owner.current}):new Ur(h);p.finished.then(()=>this.notifyFinished()).catch(Se),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Wu()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const dh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uh(e){const t=dh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const hh=4;function _i(e,t,n=1){je(n<=hh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=uh(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Xs(s)?parseFloat(s):s}return Dr(o)?_i(o,t,n+1):o}function eo(e,t){return e?.[t]??e?.default??e}const Hi=new Set(["width","height","top","left","right","bottom",...Pt]),fh={test:e=>e==="auto",parse:e=>e},Ui=e=>t=>t.test(e),Wi=[Tt,$,Ne,We,ru,nu,fh],Ki=e=>Wi.find(Ui(e));function ph(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zs(e):!0}const mh=new Set(["brightness","contrast","saturate","opacity"]);function gh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Mr)||[];if(!r)return e;const o=n.replace(r,"");let i=mh.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const yh=/\b([a-z-]*)\(.*?\)/gu,to={...Ke,getAnimatableNone:e=>{const t=e.match(yh);return t?t.map(gh).join(" "):e}},Yi={...Tt,transform:Math.round},no={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$,...{rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:Dn,scaleX:Dn,scaleY:Dn,scaleZ:Dn,skew:We,skewX:We,skewY:We,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Ht,originX:mi,originY:mi,originZ:$},zIndex:Yi,fillOpacity:Ht,strokeOpacity:Ht,numOctaves:Yi},vh={...no,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:to,WebkitFilter:to},Gi=e=>vh[e];function Xi(e,t){let n=Gi(e);return n!==to&&(n=Ke),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bh=new Set(["auto","none","0"]);function wh(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!bh.has(i)&&Kt(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Xi(n,o)}class xh extends Jr{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Dr(d))){const u=_i(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Hi.has(r)||t.length!==2)return;const[o,i]=t,s=Ki(o),a=Ki(i);if(s!==a)if(Vi(s)&&Vi(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else ot[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||ph(t[o]))&&r.push(o);r.length&&wh(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ot[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=ot[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Sh(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const qi=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Zi(e){return qs(e)&&"offsetHeight"in e}const Ji=30,Th=e=>!isNaN(parseFloat(e));class Ch{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ge.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ge.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Th(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Cr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Tr);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ji)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ji);return Js(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function At(e,t){return new Ch(e,t)}const{schedule:ro}=hi(queueMicrotask,!1),De={x:!1,y:!1};function Qi(){return De.x||De.y}function kh(e){return e==="x"||e==="y"?De[e]?null:(De[e]=!0,()=>{De[e]=!1}):De.x||De.y?null:(De.x=De.y=!0,()=>{De.x=De.y=!1})}function ea(e,t){const n=Sh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function ta(e){return!(e.pointerType==="touch"||Qi())}function Ph(e,t,n={}){const[r,o,i]=ea(e,n),s=a=>{if(!ta(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{ta(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const na=(e,t)=>t?e===t?!0:na(e,t.parentElement):!1,oo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Eh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ah(e){return Eh.has(e.tagName)||e.tabIndex!==-1}const In=new WeakSet;function ra(e){return t=>{t.key==="Enter"&&e(t)}}function so(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Dh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ra(()=>{if(In.has(n))return;so(n,"down");const o=ra(()=>{so(n,"up")}),i=()=>so(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function oa(e){return oo(e)&&!Qi()}function Mh(e,t,n={}){const[r,o,i]=ea(e,n),s=a=>{const l=a.currentTarget;if(!oa(a))return;In.add(l);const d=t(l,a),u=(p,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),In.has(l)&&In.delete(l),oa(p)&&typeof d=="function"&&d(p,{success:g})},c=p=>{u(p,l===window||l===document||n.useGlobalTarget||na(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Zi(a)&&(a.addEventListener("focus",d=>Dh(d,o)),!Ah(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function sa(e){return qs(e)&&"ownerSVGElement"in e}function $h(e){return sa(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),Vh=[...Wi,ne,Ke],Ih=e=>Vh.find(Ui(e)),io=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Lh extends Jn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Zi(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Nh({children:e,isPresent:t,anchorX:n,root:r}){const o=f.useId(),i=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(io);return f.useInsertionEffect(()=>{const{width:l,height:d,top:u,left:c,right:h}=s.current;if(t||!i.current||!l||!d)return;const p=n==="left"?`left: ${c}`:`right: ${h}`;i.current.dataset.motionPopId=o;const g=document.createElement("style");a&&(g.nonce=a);const v=r??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
227
227
  [data-motion-pop-id="${o}"] {
228
228
  position: absolute !important;
229
229
  width: ${l}px !important;
230
- height: ${u}px !important;
230
+ height: ${d}px !important;
231
231
  ${p}px !important;
232
- top: ${d}px !important;
232
+ top: ${u}px !important;
233
233
  }
234
- `),()=>{w.contains(g)&&w.removeChild(g)}},[t]),m.jsx(Zf,{isPresent:t,childRef:i,sizeRef:s,children:lr.cloneElement(e,{ref:i})})}const Qf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const u=kr(eh),d=h.useId();let c=!0,f=h.useMemo(()=>(c=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:p=>{u.set(p,!0);for(const g of u.values())if(!g)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),[n,u,r]);return i&&c&&(f={...f}),h.useMemo(()=>{u.forEach((p,g)=>u.set(g,!1))},[n]),lr.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=m.jsx(Jf,{isPresent:n,anchorX:a,root:l,children:e})),m.jsx(In.Provider,{value:f,children:e})};function eh(){return new Map}function ya(e=!0){const t=h.useContext(In);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=h.useId();h.useEffect(()=>{if(e)return o(i)},[e]);const s=h.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const _n=e=>e.key||"";function va(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const zn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,d]=ya(s),c=h.useMemo(()=>va(e),[e]),f=s&&!u?[]:c.map(_n),p=h.useRef(!0),g=h.useRef(c),w=kr(()=>new Map),[x,v]=h.useState(c),[T,b]=h.useState(c);si(()=>{p.current=!1,g.current=c;for(let S=0;S<T.length;S++){const E=_n(T[S]);f.includes(E)?w.delete(E):w.get(E)!==!0&&w.set(E,!1)}},[T,f.length,f.join("-")]);const C=[];if(c!==x){let S=[...c];for(let E=0;E<T.length;E++){const $=T[E],N=_n($);f.includes(N)||(S.splice(E,0,$),C.push($))}return i==="wait"&&C.length&&(S=C),b(va(S)),v(c),null}process.env.NODE_ENV!=="production"&&i==="wait"&&T.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:y}=h.useContext(Pr);return m.jsx(m.Fragment,{children:T.map(S=>{const E=_n(S),$=s&&!u?!1:c===T||f.includes(E),N=()=>{if(w.has(E))w.set(E,!0);else return;let K=!0;w.forEach(D=>{D||(K=!1)}),K&&(y?.(),b(g.current),s&&d?.(),r&&r())};return m.jsx(Qf,{isPresent:$,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:$?void 0:N,anchorX:a,children:S},E)})})},ba=h.createContext({strict:!1}),wa={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Nt={};for(const e in wa)Nt[e]={isEnabled:t=>wa[e].some(n=>!!t[n])};function th(e){for(const t in e)Nt[t]={...Nt[t],...e[t]}}const nh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nh.has(e)}let xa=e=>!Hn(e);function rh(e){typeof e=="function"&&(xa=t=>t.startsWith("on")?!Hn(t):e(t))}try{rh(require("@emotion/is-prop-valid").default)}catch{}function oh(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(xa(o)||n===!0&&Hn(o)||!t&&!Hn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Un=h.createContext({});function Wn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Qt(e){return typeof e=="string"||Array.isArray(e)}const vo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bo=["initial",...vo];function Yn(e){return Wn(e.animate)||bo.some(t=>Qt(e[t]))}function Sa(e){return!!(Yn(e)||e.variants)}function sh(e,t){if(Yn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qt(n)?n:void 0,animate:Qt(r)?r:void 0}}return e.inherit!==!1?t:{}}function ih(e){const{initial:t,animate:n}=sh(e,h.useContext(Un));return h.useMemo(()=>({initial:t,animate:n}),[Ta(t),Ta(n)])}function Ta(e){return Array.isArray(e)?e.join(" "):e}const en={};function ah(e){for(const t in e)en[t]=e[t],Rr(t)&&(en[t].isCSSVariable=!0)}function Ca(e,{layout:t,layoutId:n}){return Vt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!en[e]||e==="opacity")}const lh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ch=Mt.length;function uh(e,t,n){let r="",o=!0;for(let i=0;i<ch;i++){const s=Mt[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=aa(a,ho[s]);if(!l){o=!1;const d=lh[s]||s;r+=`${d}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function wo(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Vt.has(l)){s=!0;continue}else if(Rr(l)){o[l]=u;continue}else{const d=aa(u,ho[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=uh(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${u} ${d}`}}const xo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ea(e,t,n){for(const r in t)!pe(t[r])&&!Ca(r,n)&&(e[r]=t[r])}function dh({transformTemplate:e},t){return h.useMemo(()=>{const n=xo();return wo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function fh(e,t){const n=e.style||{},r={};return Ea(r,n,e),Object.assign(r,dh(e,t)),r}function hh(e,t){const n={},r=fh(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ph={offset:"stroke-dashoffset",array:"stroke-dasharray"},mh={offset:"strokeDashoffset",array:"strokeDasharray"};function gh(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?ph:mh;e[i.offset]=I.transform(-r);const s=I.transform(t),a=I.transform(n);e[i.array]=`${s} ${a}`}function Pa(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,u,d){if(wo(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:c,style:f}=e;c.transform&&(f.transform=c.transform,delete c.transform),(f.transform||c.transformOrigin)&&(f.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),n!==void 0&&(c.y=n),r!==void 0&&(c.scale=r),o!==void 0&&gh(c,o,i,s,!1)}const ka=()=>({...xo(),attrs:{}}),Aa=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yh(e,t,n,r){const o=h.useMemo(()=>{const i=ka();return Pa(i,t,Aa(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ea(i,e.style,e),o.style={...i,...o.style}}return o}const vh=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function So(e){return typeof e!="string"||e.includes("-")?!1:!!(vh.indexOf(e)>-1||/[A-Z]/u.test(e))}function bh(e,t,n,{latestValues:r},o,i=!1){const a=(So(e)?yh:hh)(t,r,o,e),l=oh(t,typeof e=="string",i),u=e!==h.Fragment?{...l,...a,ref:n}:{},{children:d}=t,c=h.useMemo(()=>pe(d)?d.get():d,[d]);return h.createElement(e,{...u,children:c})}function Da(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function To(e,t,n,r){if(typeof t=="function"){const[o,i]=Da(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Da(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Kn(e){return pe(e)?e.get():e}function wh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:xh(n,r,o,e),renderState:t()}}function xh(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Kn(i[f]);let{initial:s,animate:a}=e;const l=Yn(e),u=Sa(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const c=d?a:s;if(c&&typeof c!="boolean"&&!Wn(c)){const f=Array.isArray(c)?c:[c];for(let p=0;p<f.length;p++){const g=To(e,f[p]);if(g){const{transitionEnd:w,transition:x,...v}=g;for(const T in v){let b=v[T];if(Array.isArray(b)){const C=d?b.length-1:0;b=b[C]}b!==null&&(o[T]=b)}for(const T in w)o[T]=w[T]}}}return o}const $a=e=>(t,n)=>{const r=h.useContext(Un),o=h.useContext(In),i=()=>wh(e,t,r,o);return n?i():kr(i)};function Co(e,t,n){const{style:r}=e,o={};for(const i in r)(pe(r[i])||t.style&&pe(t.style[i])||Ca(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const Sh=$a({scrapeMotionValuesFromProps:Co,createRenderState:xo});function Ma(e,t,n){const r=Co(e,t,n);for(const o in e)if(pe(e[o])||pe(t[o])){const i=Mt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Th=$a({scrapeMotionValuesFromProps:Ma,createRenderState:ka}),Ch=Symbol.for("motionComponentSymbol");function Lt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Eh(e,t,n){return h.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Lt(n)&&(n.current=r))},[t])}const Eo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Va="data-"+Eo("framerAppearId"),Ia=h.createContext({});function Ph(e,t,n,r,o){const{visualElement:i}=h.useContext(Un),s=h.useContext(ba),a=h.useContext(In),l=h.useContext(yo).reducedMotion,u=h.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const d=u.current,c=h.useContext(Ia);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&kh(u.current,n,o,c);const f=h.useRef(!1);h.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const p=n[Va],g=h.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return si(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),h.useEffect(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),g.current=!1),d.enteringChildren=void 0)}),d}function kh(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Na(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Lt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function Na(e){if(e)return e.options.allowProjection!==!1?e.projection:Na(e.parent)}function Po(e,{forwardMotionProps:t=!1}={},n,r){n&&th(n);const o=So(e)?Th:Sh;function i(a,l){let u;const d={...h.useContext(yo),...a,layoutId:Ah(a)},{isStatic:c}=d,f=ih(a),p=o(a,c);if(!c&&Ar){Dh(d,n);const g=$h(d);u=g.MeasureLayout,f.visualElement=Ph(e,p,d,r,g.ProjectionNode)}return m.jsxs(Un.Provider,{value:f,children:[u&&f.visualElement?m.jsx(u,{visualElement:f.visualElement,...d}):null,bh(e,a,Eh(p,f.visualElement,l),p,c,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=h.forwardRef(i);return s[Ch]=e,s}function Ah({layoutId:e}){const t=h.useContext(Pr).id;return t&&e!==void 0?t+"-"+e:e}function Dh(e,t){const n=h.useContext(ba).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?kt(!1,r,"lazy-strict-mode"):We(!1,r,"lazy-strict-mode")}}function $h(e){const{drag:t,layout:n}=Nt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Mh(e,t){if(typeof Proxy>"u")return Po;const n=new Map,r=(i,s)=>Po(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Nr(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Po(s,void 0,e,t)),n.get(s))})}function La({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ih(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ko(e){return e===void 0||e===1}function Ao({scale:e,scaleX:t,scaleY:n}){return!ko(e)||!ko(t)||!ko(n)}function dt(e){return Ao(e)||Oa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Oa(e){return Fa(e.x)||Fa(e.y)}function Fa(e){return e&&e!=="0%"}function Gn(e,t,n){const r=e-n,o=t*r;return n+o}function Ra(e,t,n,r,o){return o!==void 0&&(e=Gn(e,o,r)),Gn(e,n,r)+t}function Do(e,t=0,n=1,r,o){e.min=Ra(e.min,t,n,r,o),e.max=Ra(e.max,t,n,r,o)}function Ba(e,{x:t,y:n}){Do(e.x,t.translate,t.scale,t.originPoint),Do(e.y,n.translate,n.scale,n.originPoint)}const ja=.999999999999,_a=1.0000000000001;function Nh(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ft(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Ba(e,s)),r&&dt(i.latestValues)&&Ft(e,i.latestValues))}t.x<_a&&t.x>ja&&(t.x=1),t.y<_a&&t.y>ja&&(t.y=1)}function Ot(e,t){e.min=e.min+t,e.max=e.max+t}function za(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);Do(e,t,n,i,r)}function Ft(e,t){za(e.x,t.x,t.scaleX,t.scale,t.originX),za(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ha(e,t){return La(Ih(e.getBoundingClientRect(),t))}function Lh(e,t,n){const r=Ha(e,n),{scroll:o}=t;return o&&(Ot(r.x,o.offset.x),Ot(r.y,o.offset.y)),r}const Ua=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rt=()=>({x:Ua(),y:Ua()}),Wa=()=>({min:0,max:0}),ie=()=>({x:Wa(),y:Wa()}),$o={current:null},Ya={current:!1};function Oh(){if(Ya.current=!0,!!Ar)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$o.current=e.matches;e.addEventListener("change",t),t()}else $o.current=!1}const Fh=new WeakMap;function Rh(e,t,n){for(const r in t){const o=t[r],i=n[r];if(pe(o))e.addValue(r,o);else if(pe(i))e.addValue(r,It(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,It(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ka=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Bh{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=we.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,te.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Yn(n),this.isVariantNode=Sa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...c}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in c){const p=c[f];l[f]!==void 0&&pe(p)&&p.set(l[f])}}mount(t){this.current=t,Fh.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ya.current||Oh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$o.current,process.env.NODE_ENV!=="production"&&Nr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Xe(this.notifyUpdate),Xe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Vt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Nt){const n=Nt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ka.length;r++){const o=Ka[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=Rh(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=It(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ii(r)||li(r))?r=parseFloat(r):!qf(r)&&Ze.test(n)&&(r=ia(t,n)),this.setBaseTarget(t,pe(r)?r.get():r)),pe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=To(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!pe(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ir),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){po.render(this.render)}}class Ga extends Bh{constructor(){super(...arguments),this.KeyframeResolver=Rf}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Xa(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function jh(e){return window.getComputedStyle(e)}class _h extends Ga{constructor(){super(...arguments),this.type="html",this.renderInstance=Xa}readValueFromInstance(t,n){if(Vt.has(n))return this.projection?.isProjecting?ro(n):nf(t,n);{const r=jh(t),o=(Rr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ha(t,n)}build(t,n,r){wo(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Co(t,n,r)}}const qa=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function zh(e,t,n,r){Xa(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(qa.has(o)?o:Eo(o),t.attrs[o])}class Hh extends Ga{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vt.has(n)){const r=sa(n);return r&&r.default||0}return n=qa.has(n)?n:Eo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ma(t,n,r)}build(t,n,r){Pa(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){zh(t,n,r,o)}mount(t){this.isSVGTag=Aa(t.tagName),super.mount(t)}}const Uh=(e,t)=>So(e)?new Hh(t):new _h(t,{allowProjection:e!==h.Fragment});function Bt(e,t,n){const r=e.getProps();return To(r,t,n!==void 0?n:r.custom,e)}const Mo=e=>Array.isArray(e);function Wh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,It(n))}function Yh(e){return Mo(e)?e[e.length-1]||0:e}function Kh(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Yh(i[s]);Wh(e,s,a)}}function Gh(e){return!!(pe(e)&&e.add)}function Vo(e,t){const n=e.getValue("willChange");if(Gh(n))return n.add(t);if(!n&&Ye.WillChange){const r=new Ye.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Za(e){return e.props[Va]}const Xh=e=>e!==null;function qh(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Xh),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const Zh={type:"spring",stiffness:500,damping:25,restSpeed:10},Jh=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qh={type:"keyframes",duration:.8},ep={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tp=(e,{keyframes:t})=>t.length>2?Qh:Vt.has(e)?e.startsWith("scale")?Jh(t[1]):Zh:ep;function np({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Io=(e,t,n,r={},o,i)=>s=>{const a=uo(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Me(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};np(a)||Object.assign(d,tp(e,d)),d.duration&&(d.duration=Me(d.duration)),d.repeatDelay&&(d.repeatDelay=Me(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let c=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(co(d),d.delay===0&&(c=!0)),(Ye.instantAnimations||Ye.skipAnimations)&&(c=!0,co(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,c&&!i&&t.get()!==void 0){const f=qh(d.keyframes,a);if(f!==void 0){te.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new eo(d):new Pf(d)};function rp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ja(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const c=e.getValue(d,e.latestValues[d]??null),f=a[d];if(f===void 0||u&&rp(u,d))continue;const p={delay:n,...uo(i||{},d)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(f)&&f===g&&!p.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const v=Za(e);if(v){const T=window.MotionHandoffAnimation(v,d,te);T!==null&&(p.startTime=T,w=!0)}}Vo(e,d),c.start(Io(d,c,f,e.shouldReduceMotion&&ea.has(d)?{type:!1}:p,e,w));const x=c.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{te.update(()=>{s&&Kh(e,s)})}),l}function Qa(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function No(e,t,n={}){const r=Bt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Ja(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:c}=o;return op(e,t,l,u,d,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function op(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(No(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Qa(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function sp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>No(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=No(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Ja(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function el(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const ip=bo.length;function tl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?tl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ip;n++){const r=bo[n],o=e.props[r];(Qt(o)||o===!1)&&(t[r]=o)}return t}const ap=[...vo].reverse(),lp=vo.length;function cp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>sp(e,n,r)))}function up(e){let t=cp(e),n=nl(),r=!0;const o=l=>(u,d)=>{const c=Bt(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:f,transitionEnd:p,...g}=c;u={...u,...g,...p}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,d=tl(e.parent)||{},c=[],f=new Set;let p={},g=1/0;for(let x=0;x<lp;x++){const v=ap[x],T=n[v],b=u[v]!==void 0?u[v]:d[v],C=Qt(b),y=v===l?T.isActive:null;y===!1&&(g=x);let S=b===d[v]&&b!==u[v]&&C;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),T.protectedKeys={...p},!T.isActive&&y===null||!b&&!T.prevProp||Wn(b)||typeof b=="boolean")continue;const E=dp(T.prevProp,b);let $=E||v===l&&T.isActive&&!S&&C||x>g&&C,N=!1;const K=Array.isArray(b)?b:[b];let D=K.reduce(o(v),{});y===!1&&(D={});const{prevResolvedValues:G={}}=T,ee={...G,...D},oe=L=>{$=!0,f.has(L)&&(N=!0,f.delete(L)),T.needsAnimating[L]=!0;const H=e.getValue(L);H&&(H.liveStyle=!1)};for(const L in ee){const H=D[L],B=G[L];if(p.hasOwnProperty(L))continue;let V=!1;Mo(H)&&Mo(B)?V=!el(H,B):V=H!==B,V?H!=null?oe(L):f.add(L):H!==void 0&&f.has(L)?oe(L):T.protectedKeys[L]=!0}T.prevProp=b,T.prevResolvedValues=D,T.isActive&&(p={...p,...D}),r&&e.blockInitialAnimation&&($=!1);const ve=S&&E;$&&(!ve||N)&&c.push(...K.map(L=>{const H={type:v};if(typeof L=="string"&&r&&!ve&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,V=Bt(B,L);if(B.enteringChildren&&V){const{delayChildren:J}=V.transition||{};H.delay=Qa(B.enteringChildren,e,J)}}return{animation:L,options:H}}))}if(f.size){const x={};if(typeof u.initial!="boolean"){const v=Bt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(x.transition=v.transition)}f.forEach(v=>{const T=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),x[v]=T??null}),c.push({animation:x})}let w=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(c):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(c=>c.animationState?.setActive(l,u)),n[l].isActive=u;const d=s(l);for(const c in n)n[c].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=nl(),r=!0}}}function dp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!el(t,e):!1}function ft(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nl(){return{animate:ft(!0),whileInView:ft(),whileHover:ft(),whileTap:ft(),whileDrag:ft(),whileFocus:ft(),exit:ft()}}class Je{constructor(t){this.isMounted=!1,this.node=t}update(){}}class fp extends Je{constructor(t){super(t),t.animationState||(t.animationState=up(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let hp=0;class pp extends Je{constructor(){super(...arguments),this.id=hp++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const mp={animation:{Feature:fp},exit:{Feature:pp}};function tn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function nn(e){return{point:{x:e.pageX,y:e.pageY}}}const gp=e=>t=>mo(t)&&e(t,nn(t));function rn(e,t,n,r){return tn(e,t,gp(n),r)}const rl=1e-4,yp=1-rl,vp=1+rl,ol=.01,bp=0-ol,wp=0+ol;function ye(e){return e.max-e.min}function xp(e,t,n){return Math.abs(e-t)<=n}function sl(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=yp&&e.scale<=vp||isNaN(e.scale))&&(e.scale=1),(e.translate>=bp&&e.translate<=wp||isNaN(e.translate))&&(e.translate=0)}function on(e,t,n,r){sl(e.x,t.x,n.x,r?r.originX:void 0),sl(e.y,t.y,n.y,r?r.originY:void 0)}function il(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function Sp(e,t,n){il(e.x,t.x,n.x),il(e.y,t.y,n.y)}function al(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function sn(e,t,n){al(e.x,t.x,n.x),al(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const ll=({current:e})=>e?e.ownerDocument.defaultView:null,cl=(e,t)=>Math.abs(e-t);function Tp(e,t){const n=cl(e.x,t.x),r=cl(e.y,t.y);return Math.sqrt(n**2+r**2)}class ul{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Oo(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=Tp(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:w}=f,{timestamp:x}=fe;this.history.push({...w,timestamp:x});const{onStart:v,onMove:T}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Lo(p,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:g,onSessionEnd:w,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Oo(f.type==="pointercancel"?this.lastMoveEventInfo:Lo(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,v),w&&w(f,v)},!mo(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=nn(t),l=Lo(a,this.transformPagePoint),{point:u}=l,{timestamp:d}=fe;this.history=[{...u,timestamp:d}];const{onSessionStart:c}=n;c&&c(t,Oo(l,this.history)),this.removeListeners=Wt(rn(this.contextWindow,"pointermove",this.handlePointerMove),rn(this.contextWindow,"pointerup",this.handlePointerUp),rn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xe(this.updatePoint)}}function Lo(e,t){return t?{point:t(e.point)}:e}function dl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oo({point:e},t){return{point:e,delta:dl(e,fl(t)),offset:dl(e,Cp(t)),velocity:Ep(t,.1)}}function Cp(e){return e[0]}function fl(e){return e[e.length-1]}function Ep(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=fl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Me(t)));)n--;if(!r)return{x:0,y:0};const i=Fe(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Pp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function hl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function kp(e,{top:t,left:n,bottom:r,right:o}){return{x:hl(e.x,n,o),y:hl(e.y,t,r)}}function pl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Ap(e,t){return{x:pl(e.x,t.x),y:pl(e.y,t.y)}}function Dp(e,t){let n=.5;const r=ye(e),o=ye(t);return o>r?n=Yt(t.min,t.max-r,e.min):r>o&&(n=Yt(e.min,e.max-o,t.min)),Ue(0,1,n)}function $p(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Fo=.35;function Mp(e=Fo){return e===!1?e=0:e===!0&&(e=Fo),{x:ml(e,"left","right"),y:ml(e,"top","bottom")}}function ml(e,t,n){return{min:gl(e,t),max:gl(e,n)}}function gl(e,t){return typeof e=="number"?e:e[t]||0}const Vp=new WeakMap;class Ip{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ie(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(nn(c).point)},s=(c,f)=>{const{drag:p,dragPropagation:g,onDragStart:w}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zf(p),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ke(v=>{let T=this.getAxisMotionValue(v).get()||0;if(Re.test(T)){const{projection:b}=this.visualElement;if(b&&b.layout){const C=b.layout.layoutBox[v];C&&(T=ye(C)*(parseFloat(T)/100))}}this.originPoint[v]=T}),w&&te.postRender(()=>w(c,f)),Vo(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(c,f)=>{this.latestPointerEvent=c,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:w,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(g&&this.currentDirection===null){this.currentDirection=Np(v),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),x&&x(c,f)},l=(c,f)=>{this.latestPointerEvent=c,this.latestPanInfo=f,this.stop(c,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>ke(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new ul(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:ll(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&te.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Xn(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Pp(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Lt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=kp(r.layoutBox,t):this.constraints=!1,this.elastic=Mp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=$p(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Lt(t))return!1;const r=t.current;We(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Lh(r,o.root,this.visualElement.getTransformPagePoint());let s=Ap(o.layout.layoutBox,i);if(n){const a=n(Vh(s));this.hasMutatedConstraints=!!a,a&&(s=La(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ke(d=>{if(!Xn(d,n,this.currentDirection))return;let c=l&&l[d]||{};s&&(c={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Vo(this.visualElement,t),r.start(Io(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ke(n=>{const{drag:r}=this.getProps();if(!Xn(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Lt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ke(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=Dp({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ke(s=>{if(!Xn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ne(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Vp.set(this.visualElement,this);const t=this.visualElement.current,n=rn(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Lt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),te.read(r);const s=tn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ke(d=>{const c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Fo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Xn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Np(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Lp extends Je{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new Ip(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}unmount(){this.removeGroupControls(),this.removeListeners()}}const yl=e=>(t,n)=>{e&&te.postRender(()=>e(t,n))};class Op extends Je{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new ul(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ll(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:yl(t),onStart:yl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&te.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=rn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const an={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=vl(e,t.target.x),r=vl(e,t.target.y);return`${n}% ${r}%`}},Fp={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ze.parse(e);if(o.length>5)return r;const i=Ze.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};let Ro=!1;class Rp extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;ah(Bp),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ro&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),qn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Ro=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||te.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),po.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ro=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bl(e){const[t,n]=ya(),r=h.useContext(Pr);return m.jsx(Rp,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(Ia),isPresent:t,safeToRemove:n})}const Bp={borderRadius:{...an,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:an,borderTopRightRadius:an,borderBottomLeftRadius:an,borderBottomRightRadius:an,boxShadow:Fp};function jp(e,t,n){const r=pe(e)?e:It(e);return r.start(Io("",r,t,n)),r.animation}const _p=(e,t)=>e.depth-t.depth;class zp{constructor(){this.children=[],this.isDirty=!1}add(t){Dr(this.children,t),this.isDirty=!0}remove(t){$r(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_p),this.isDirty=!1,this.children.forEach(t)}}function Hp(e,t){const n=we.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Xe(r),e(i-t))};return te.setup(r,!0),()=>Xe(r)}const wl=["TopLeft","TopRight","BottomLeft","BottomRight"],Up=wl.length,xl=e=>typeof e=="string"?parseFloat(e):e,Sl=e=>typeof e=="number"||I.test(e);function Wp(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,Yp(r)),e.opacityExit=ne(t.opacity??1,0,Kp(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<Up;s++){const a=`border${wl[s]}Radius`;let l=Tl(t,a),u=Tl(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Sl(l)===Sl(u)?(e[a]=Math.max(ne(xl(l),xl(u),r),0),(Re.test(u)||Re.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function Tl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Yp=Cl(0,.5,yi),Kp=Cl(.5,.95,Pe);function Cl(e,t,n){return r=>r<e?0:r>t?1:n(Yt(e,t,r))}function El(e,t){e.min=t.min,e.max=t.max}function Ae(e,t){El(e.x,t.x),El(e.y,t.y)}function Pl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function kl(e,t,n,r,o){return e-=t,e=Gn(e,1/n,r),o!==void 0&&(e=Gn(e,1/o,r)),e}function Gp(e,t=0,n=1,r=.5,o,i=e,s=e){if(Re.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=kl(e.min,t,n,a,o),e.max=kl(e.max,t,n,a,o)}function Al(e,t,[n,r,o],i,s){Gp(e,t[n],t[r],t[o],t.scale,i,s)}const Xp=["x","scaleX","originX"],qp=["y","scaleY","originY"];function Dl(e,t,n,r){Al(e.x,t,Xp,n?n.x:void 0,r?r.x:void 0),Al(e.y,t,qp,n?n.y:void 0,r?r.y:void 0)}function $l(e){return e.translate===0&&e.scale===1}function Ml(e){return $l(e.x)&&$l(e.y)}function Vl(e,t){return e.min===t.min&&e.max===t.max}function Zp(e,t){return Vl(e.x,t.x)&&Vl(e.y,t.y)}function Il(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nl(e,t){return Il(e.x,t.x)&&Il(e.y,t.y)}function Ll(e){return ye(e.x)/ye(e.y)}function Ol(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Jp{constructor(){this.members=[]}add(t){Dr(this.members,t),t.scheduleRender()}remove(t){if($r(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Qp(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:c,rotateY:f,skewX:p,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Bo=["","X","Y","Z"],em=1e3;let tm=0;function jo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Za(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fl(r)}function Rl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=tm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(om),this.nodes.forEach(lm),this.nodes.forEach(cm),this.nodes.forEach(sm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ir),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ga(s)&&!Gf(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let d,c=0;const f=()=>this.root.updateBlockedByResize=!1;te.read(()=>{c=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==c&&(c=p,this.root.updateBlockedByResize=!0,d&&d(),d=Hp(f,250),qn.hasAnimatedSinceResize&&(qn.hasAnimatedSinceResize=!1,this.nodes.forEach(_l)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:c,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||pm,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=u.getProps(),v=!this.targetLayout||!Nl(this.targetLayout,p),T=!c&&f;if(this.options.layoutRoot||this.resumeFrom||T||c&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...uo(g,"layout"),onPlay:w,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,T)}else c||_l(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Xe(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(um),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(jl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(am),this.nodes.forEach(nm),this.nodes.forEach(rm)):this.nodes.forEach(jl),this.clearAllSnapshots();const a=we.now();fe.delta=Ue(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Fr.update.process(fe),Fr.preRender.process(fe),Fr.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,po.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(im),this.sharedNodes.forEach(dm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ml(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||dt(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),mm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ie();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(gm))){const{scroll:u}=this.root;u&&(Ot(a.x,u.offset.x),Ot(a.y,u.offset.y))}return a}removeElementScroll(s){const a=ie();if(Ae(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:c}=u;u!==this.root&&d&&c.layoutScroll&&(d.wasRoot&&Ae(a,s),Ot(a.x,d.offset.x),Ot(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=ie();Ae(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ft(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),dt(d.latestValues)&&Ft(l,d.latestValues)}return dt(this.latestValues)&&Ft(l,this.latestValues),l}removeTransform(s){const a=ie();Ae(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!dt(u.latestValues))continue;Ao(u.latestValues)&&u.updateSnapshot();const d=ie(),c=u.measurePageBox();Ae(d,c),Dl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return dt(this.latestValues)&&Dl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:c}=this.options;if(!(!this.layout||!(d||c))){if(this.resolvedRelativeTargetAt=fe.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),sn(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),Ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ae(this.target,this.layout.layoutBox),Ba(this.target,this.targetDelta)):Ae(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),sn(this.relativeTargetOrigin,this.target,f.target),Ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ao(this.parent.latestValues)||Oa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Ae(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,f=this.treeScale.y;Nh(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ie());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pl(this.prevProjectionDelta.x,this.projectionDelta.x),Pl(this.prevProjectionDelta.y,this.projectionDelta.y)),on(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==f||!Ol(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ol(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rt(),this.projectionDelta=Rt(),this.projectionDeltaWithTransform=Rt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=Rt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ie(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,w=p!==g,x=this.getStack(),v=!x||x.members.length<=1,T=!!(w&&!v&&this.options.crossfade===!0&&!this.path.some(hm));this.animationProgress=0;let b;this.mixTargetDelta=C=>{const y=C/1e3;zl(c.x,s.x,y),zl(c.y,s.y,y),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fm(this.relativeTarget,this.relativeTargetOrigin,f,y),b&&Zp(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ie()),Ae(b,this.relativeTarget)),w&&(this.animationValues=d,Wp(d,u,this.latestValues,y,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Xe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{qn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=It(0)),this.currentAnimation=jp(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(em),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Kl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ie();const c=ye(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const f=ye(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ae(a,l),Ft(a,d),on(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Jp),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&jo("z",s,u,this.animationValues);for(let d=0;d<Bo.length;d++)jo(`rotate${Bo[d]}`,s,u,this.animationValues),jo(`skew${Bo[d]}`,s,u,this.animationValues);s.render();for(const d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Kn(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Kn(a?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let c=Qp(this.projectionDeltaWithTransform,this.treeScale,d);l&&(c=l(d,c)),s.transform=c;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?s.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in en){if(d[g]===void 0)continue;const{correct:w,applyTo:x,isCSSVariable:v}=en[g],T=c==="none"?d[g]:w(d[g],u);if(x){const b=x.length;for(let C=0;C<b;C++)s[x[C]]=T}else v?this.options.visualElement.renderState.vars[g]=T:s[g]=T}this.options.layoutId&&(s.pointerEvents=u===this?Kn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Bl),this.root.sharedNodes.clear()}}}function nm(e){e.updateLayout()}function rm(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?ke(d=>{const c=i?t.measuredBox[d]:t.layoutBox[d],f=ye(c);c.min=n[d].min,c.max=c.min+f}):Kl(o,t.layoutBox,n)&&ke(d=>{const c=i?t.measuredBox[d]:t.layoutBox[d],f=ye(n[d]);c.max=c.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const s=Rt();on(s,n,t.layoutBox);const a=Rt();i?on(a,e.applyTransform(r,!0),t.measuredBox):on(a,n,t.layoutBox);const l=!Ml(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:c,layout:f}=d;if(c&&f){const p=ie();sn(p,t.layoutBox,c.layoutBox);const g=ie();sn(g,n,f.layoutBox),Nl(p,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function om(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function im(e){e.clearSnapshot()}function Bl(e){e.clearMeasurements()}function jl(e){e.isLayoutDirty=!1}function am(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _l(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lm(e){e.resolveTargetDelta()}function cm(e){e.calcProjection()}function um(e){e.resetSkewAndRotation()}function dm(e){e.removeLeadSnapshot()}function zl(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hl(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function fm(e,t,n,r){Hl(e.x,t.x,n.x,r),Hl(e.y,t.y,n.y,r)}function hm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pm={duration:.45,ease:[.4,0,.1,1]},Ul=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wl=Ul("applewebkit/")&&!Ul("chrome/")?Math.round:Pe;function Yl(e){e.min=Wl(e.min),e.max=Wl(e.max)}function mm(e){Yl(e.x),Yl(e.y)}function Kl(e,t,n){return e==="position"||e==="preserve-aspect"&&!xp(Ll(t),Ll(n),.2)}function gm(e){return e!==e.root&&e.scroll?.wasRoot}const ym=Rl({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_o={current:void 0},Gl=Rl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_o.current){const e=new ym({});e.mount(window),e.setOptions({layoutScroll:!0}),_o.current=e}return _o.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vm={pan:{Feature:Op},drag:{Feature:Lp,ProjectionNode:Gl,MeasureLayout:bl}};function Xl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&te.postRender(()=>i(t,nn(t)))}class bm extends Je{mount(){const{current:t}=this.node;t&&(this.unmount=Hf(t,(n,r)=>(Xl(this.node,r,"Start"),o=>Xl(this.node,o,"End"))))}unmount(){}}class wm extends Je{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wt(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ql(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&te.postRender(()=>i(t,nn(t)))}class xm extends Je{mount(){const{current:t}=this.node;t&&(this.unmount=Kf(t,(n,r)=>(ql(this.node,r,"Start"),(o,{success:i})=>ql(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zo=new WeakMap,Ho=new WeakMap,Sm=e=>{const t=zo.get(e.target);t&&t(e)},Tm=e=>{e.forEach(Sm)};function Cm({root:e,...t}){const n=e||document;Ho.has(n)||Ho.set(n,{});const r=Ho.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Tm,{root:e,...t})),r[o]}function Em(e,t,n){const r=Cm(t);return zo.set(e,n),r.observe(e),()=>{zo.delete(e),r.unobserve(e)}}const Pm={some:0,all:1};class km extends Je{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Pm[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return Em(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Am(t,n))&&this.startObserver()}unmount(){}}function Am({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Dm={...mp,...{inView:{Feature:km},tap:{Feature:xm},focus:{Feature:wm},hover:{Feature:bm}},...vm,...{layout:{ProjectionNode:Gl,MeasureLayout:bl}}},ht=Mh(Dm,Uh),$m={sm:k`
234
+ `),()=>{v.contains(g)&&v.removeChild(g)}},[t]),m.jsx(Lh,{isPresent:t,childRef:i,sizeRef:s,children:Jn.cloneElement(e,{ref:i})})}const Bh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const d=yr(Oh),u=f.useId();let c=!0,h=f.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:p=>{d.set(p,!0);for(const g of d.values())if(!g)return;r&&r()},register:p=>(d.set(p,!1),()=>d.delete(p))}),[n,d,r]);return i&&c&&(h={...h}),f.useMemo(()=>{d.forEach((p,g)=>d.set(g,!1))},[n]),Jn.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),s==="popLayout"&&(e=m.jsx(Nh,{isPresent:n,anchorX:a,root:l,children:e})),m.jsx(Pn.Provider,{value:h,children:e})};function Oh(){return new Map}function ia(e=!0){const t=f.useContext(Pn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=f.useId();f.useEffect(()=>{if(e)return o(i)},[e]);const s=f.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Ln=e=>e.key||"";function aa(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const Nn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[d,u]=ia(s),c=f.useMemo(()=>aa(e),[e]),h=s&&!d?[]:c.map(Ln),p=f.useRef(!0),g=f.useRef(c),v=yr(()=>new Map),[w,y]=f.useState(c),[x,b]=f.useState(c);Gs(()=>{p.current=!1,g.current=c;for(let S=0;S<x.length;S++){const C=Ln(x[S]);h.includes(C)?v.delete(C):v.get(C)!==!0&&v.set(C,!1)}},[x,h.length,h.join("-")]);const E=[];if(c!==w){let S=[...c];for(let C=0;C<x.length;C++){const D=x[C],I=Ln(D);h.includes(I)||(S.splice(C,0,D),E.push(D))}return i==="wait"&&E.length&&(S=E),b(aa(S)),y(c),null}process.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=f.useContext(gr);return m.jsx(m.Fragment,{children:x.map(S=>{const C=Ln(S),D=s&&!d?!1:c===x||h.includes(C),I=()=>{if(v.has(C))v.set(C,!0);else return;let _=!0;v.forEach(M=>{M||(_=!1)}),_&&(T?.(),b(g.current),s&&u?.(),r&&r())};return m.jsx(Bh,{isPresent:D,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:D?void 0:I,anchorX:a,children:S},C)})})},la=f.createContext({strict:!1}),ca={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Dt={};for(const e in ca)Dt[e]={isEnabled:t=>ca[e].some(n=>!!t[n])};function Fh(e){for(const t in e)Dt[t]={...Dt[t],...e[t]}}const jh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jh.has(e)}let da=e=>!Bn(e);function Rh(e){typeof e=="function"&&(da=t=>t.startsWith("on")?!Bn(t):e(t))}try{Rh(require("@emotion/is-prop-valid").default)}catch{}function zh(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(da(o)||n===!0&&Bn(o)||!t&&!Bn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const On=f.createContext({});function Fn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gt(e){return typeof e=="string"||Array.isArray(e)}const ao=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],lo=["initial",...ao];function jn(e){return Fn(e.animate)||lo.some(t=>Gt(e[t]))}function ua(e){return!!(jn(e)||e.variants)}function _h(e,t){if(jn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Gt(n)?n:void 0,animate:Gt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Hh(e){const{initial:t,animate:n}=_h(e,f.useContext(On));return f.useMemo(()=>({initial:t,animate:n}),[ha(t),ha(n)])}function ha(e){return Array.isArray(e)?e.join(" "):e}const Xt={};function Uh(e){for(const t in e)Xt[t]=e[t],Ar(t)&&(Xt[t].isCSSVariable=!0)}function fa(e,{layout:t,layoutId:n}){return Et.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xt[e]||e==="opacity")}const Wh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Kh=Pt.length;function Yh(e,t,n){let r="",o=!0;for(let i=0;i<Kh;i++){const s=Pt[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=qi(a,no[s]);if(!l){o=!1;const u=Wh[s]||s;r+=`${u}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function co(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const d=t[l];if(Et.has(l)){s=!0;continue}else if(Ar(l)){o[l]=d;continue}else{const u=qi(d,no[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=Yh(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${d} ${u}`}}const uo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pa(e,t,n){for(const r in t)!ue(t[r])&&!fa(r,n)&&(e[r]=t[r])}function Gh({transformTemplate:e},t){return f.useMemo(()=>{const n=uo();return co(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Xh(e,t){const n=e.style||{},r={};return pa(r,n,e),Object.assign(r,Gh(e,t)),r}function qh(e,t){const n={},r=Xh(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Zh={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jh={offset:"strokeDashoffset",array:"strokeDasharray"};function Qh(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Zh:Jh;e[i.offset]=$.transform(-r);const s=$.transform(t),a=$.transform(n);e[i.array]=`${s} ${a}`}function ma(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,d,u){if(co(e,a,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:c,style:h}=e;c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),n!==void 0&&(c.y=n),r!==void 0&&(c.scale=r),o!==void 0&&Qh(c,o,i,s,!1)}const ga=()=>({...uo(),attrs:{}}),ya=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ef(e,t,n,r){const o=f.useMemo(()=>{const i=ga();return ma(i,t,ya(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};pa(i,e.style,e),o.style={...i,...o.style}}return o}const tf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ho(e){return typeof e!="string"||e.includes("-")?!1:!!(tf.indexOf(e)>-1||/[A-Z]/u.test(e))}function nf(e,t,n,{latestValues:r},o,i=!1){const a=(ho(e)?ef:qh)(t,r,o,e),l=zh(t,typeof e=="string",i),d=e!==f.Fragment?{...l,...a,ref:n}:{},{children:u}=t,c=f.useMemo(()=>ue(u)?u.get():u,[u]);return f.createElement(e,{...d,children:c})}function va(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function fo(e,t,n,r){if(typeof t=="function"){const[o,i]=va(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=va(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Rn(e){return ue(e)?e.get():e}function rf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:of(n,r,o,e),renderState:t()}}function of(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=Rn(i[h]);let{initial:s,animate:a}=e;const l=jn(e),d=ua(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const c=u?a:s;if(c&&typeof c!="boolean"&&!Fn(c)){const h=Array.isArray(c)?c:[c];for(let p=0;p<h.length;p++){const g=fo(e,h[p]);if(g){const{transitionEnd:v,transition:w,...y}=g;for(const x in y){let b=y[x];if(Array.isArray(b)){const E=u?b.length-1:0;b=b[E]}b!==null&&(o[x]=b)}for(const x in v)o[x]=v[x]}}}return o}const ba=e=>(t,n)=>{const r=f.useContext(On),o=f.useContext(Pn),i=()=>rf(e,t,r,o);return n?i():yr(i)};function po(e,t,n){const{style:r}=e,o={};for(const i in r)(ue(r[i])||t.style&&ue(t.style[i])||fa(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const sf=ba({scrapeMotionValuesFromProps:po,createRenderState:uo});function wa(e,t,n){const r=po(e,t,n);for(const o in e)if(ue(e[o])||ue(t[o])){const i=Pt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const af=ba({scrapeMotionValuesFromProps:wa,createRenderState:ga}),lf=Symbol.for("motionComponentSymbol");function Mt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cf(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Mt(n)&&(n.current=r))},[t])}const mo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xa="data-"+mo("framerAppearId"),Sa=f.createContext({});function df(e,t,n,r,o){const{visualElement:i}=f.useContext(On),s=f.useContext(la),a=f.useContext(Pn),l=f.useContext(io).reducedMotion,d=f.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=d.current,c=f.useContext(Sa);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&uf(d.current,n,o,c);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[xa],g=f.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Gs(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),g.current=!1),u.enteringChildren=void 0)}),u}function uf(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ta(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Mt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}function Ta(e){if(e)return e.options.allowProjection!==!1?e.projection:Ta(e.parent)}function go(e,{forwardMotionProps:t=!1}={},n,r){n&&Fh(n);const o=ho(e)?af:sf;function i(a,l){let d;const u={...f.useContext(io),...a,layoutId:hf(a)},{isStatic:c}=u,h=Hh(a),p=o(a,c);if(!c&&vr){ff(u,n);const g=pf(u);d=g.MeasureLayout,h.visualElement=df(e,p,u,r,g.ProjectionNode)}return m.jsxs(On.Provider,{value:h,children:[d&&h.visualElement?m.jsx(d,{visualElement:h.visualElement,...u}):null,nf(e,a,cf(p,h.visualElement,l),p,c,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=f.forwardRef(i);return s[lf]=e,s}function hf({layoutId:e}){const t=f.useContext(gr).id;return t&&e!==void 0?t+"-"+e:e}function ff(e,t){const n=f.useContext(la).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?St(!1,r,"lazy-strict-mode"):je(!1,r,"lazy-strict-mode")}}function pf(e){const{drag:t,layout:n}=Dt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function mf(e,t){if(typeof Proxy>"u")return go;const n=new Map,r=(i,s)=>go(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Cr(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,go(s,void 0,e,t)),n.get(s))})}function Ca({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function gf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yo(e){return e===void 0||e===1}function vo({scale:e,scaleX:t,scaleY:n}){return!yo(e)||!yo(t)||!yo(n)}function it(e){return vo(e)||ka(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ka(e){return Pa(e.x)||Pa(e.y)}function Pa(e){return e&&e!=="0%"}function zn(e,t,n){const r=e-n,o=t*r;return n+o}function Ea(e,t,n,r,o){return o!==void 0&&(e=zn(e,o,r)),zn(e,n,r)+t}function bo(e,t=0,n=1,r,o){e.min=Ea(e.min,t,n,r,o),e.max=Ea(e.max,t,n,r,o)}function Aa(e,{x:t,y:n}){bo(e.x,t.translate,t.scale,t.originPoint),bo(e.y,n.translate,n.scale,n.originPoint)}const Da=.999999999999,Ma=1.0000000000001;function vf(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Vt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Aa(e,s)),r&&it(i.latestValues)&&Vt(e,i.latestValues))}t.x<Ma&&t.x>Da&&(t.x=1),t.y<Ma&&t.y>Da&&(t.y=1)}function $t(e,t){e.min=e.min+t,e.max=e.max+t}function $a(e,t,n,r,o=.5){const i=J(e.min,e.max,o);bo(e,t,n,i,r)}function Vt(e,t){$a(e.x,t.x,t.scaleX,t.scale,t.originX),$a(e.y,t.y,t.scaleY,t.scale,t.originY)}function Va(e,t){return Ca(yf(e.getBoundingClientRect(),t))}function bf(e,t,n){const r=Va(e,n),{scroll:o}=t;return o&&($t(r.x,o.offset.x),$t(r.y,o.offset.y)),r}const Ia=()=>({translate:0,scale:1,origin:0,originPoint:0}),It=()=>({x:Ia(),y:Ia()}),La=()=>({min:0,max:0}),ee=()=>({x:La(),y:La()}),wo={current:null},Na={current:!1};function wf(){if(Na.current=!0,!!vr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wo.current=e.matches;e.addEventListener("change",t),t()}else wo.current=!1}const xf=new WeakMap;function Sf(e,t,n){for(const r in t){const o=t[r],i=n[r];if(ue(o))e.addValue(r,o);else if(ue(i))e.addValue(r,At(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,At(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ba=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Tf{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Jr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ge.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Z.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=jn(n),this.isVariantNode=ua(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in c){const p=c[h];l[h]!==void 0&&ue(p)&&p.set(l[h])}}mount(t){this.current=t,xf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Na.current||wf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wo.current,process.env.NODE_ENV!=="production"&&Cr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ue(this.notifyUpdate),Ue(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Et.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Dt){const n=Dt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ba.length;r++){const o=Ba[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=Sf(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Xs(r)||Zs(r))?r=parseFloat(r):!Ih(r)&&Ke.test(n)&&(r=Xi(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=fo(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ue(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Tr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ro.render(this.render)}}class Oa extends Tf{constructor(){super(...arguments),this.KeyframeResolver=xh}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fa(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function Cf(e){return window.getComputedStyle(e)}class kf extends Oa{constructor(){super(...arguments),this.type="html",this.renderInstance=Fa}readValueFromInstance(t,n){if(Et.has(n))return this.projection?.isProjecting?Yr(n):Ru(t,n);{const r=Cf(t),o=(Ar(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Va(t,n)}build(t,n,r){co(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return po(t,n,r)}}const ja=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pf(e,t,n,r){Fa(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(ja.has(o)?o:mo(o),t.attrs[o])}class Ef extends Oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Et.has(n)){const r=Gi(n);return r&&r.default||0}return n=ja.has(n)?n:mo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return wa(t,n,r)}build(t,n,r){ma(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Pf(t,n,r,o)}mount(t){this.isSVGTag=ya(t.tagName),super.mount(t)}}const Af=(e,t)=>ho(e)?new Ef(t):new kf(t,{allowProjection:e!==f.Fragment});function Lt(e,t,n){const r=e.getProps();return fo(r,t,n!==void 0?n:r.custom,e)}const xo=e=>Array.isArray(e);function Df(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function Mf(e){return xo(e)?e[e.length-1]||0:e}function $f(e,t){const n=Lt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Mf(i[s]);Df(e,s,a)}}function Vf(e){return!!(ue(e)&&e.add)}function So(e,t){const n=e.getValue("willChange");if(Vf(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ra(e){return e.props[xa]}const If=e=>e!==null;function Lf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(If),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const Nf={type:"spring",stiffness:500,damping:25,restSpeed:10},Bf=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Of={type:"keyframes",duration:.8},Ff={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jf=(e,{keyframes:t})=>t.length>2?Of:Et.has(e)?e.startsWith("scale")?Bf(t[1]):Nf:Ff;function Rf({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const To=(e,t,n,r={},o,i)=>s=>{const a=eo(r,e)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ae(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};Rf(a)||Object.assign(u,jf(e,u)),u.duration&&(u.duration=Ae(u.duration)),u.repeatDelay&&(u.repeatDelay=Ae(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let c=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Qr(u),u.delay===0&&(c=!0)),(Re.instantAnimations||Re.skipAnimations)&&(c=!0,Qr(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!i&&t.get()!==void 0){const h=Lf(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Ur(u):new ch(u)};function zf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function za(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const c=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||d&&zf(d,u))continue;const p={delay:n,...eo(i||{},u)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(h)&&h===g&&!p.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Ra(e);if(y){const x=window.MotionHandoffAnimation(y,u,Z);x!==null&&(p.startTime=x,v=!0)}}So(e,u),c.start(To(u,c,h,e.shouldReduceMotion&&Hi.has(u)?{type:!1}:p,e,v));const w=c.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{Z.update(()=>{s&&$f(e,s)})}),l}function _a(e,t,n,r=0,o=1){const i=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Co(e,t,n={}){const r=Lt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(za(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:c}=o;return _f(e,t,l,d,u,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,d]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>d())}else return Promise.all([i(),s(n.delay)])}function _f(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Co(l,t,{...s,delay:n+(typeof r=="function"?0:r)+_a(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Hf(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Co(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Co(e,t,n);else{const o=typeof t=="function"?Lt(e,t,n.custom):t;r=Promise.all(za(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ha(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Uf=lo.length;function Ua(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ua(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Uf;n++){const r=lo[n],o=e.props[r];(Gt(o)||o===!1)&&(t[r]=o)}return t}const Wf=[...ao].reverse(),Kf=ao.length;function Yf(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Hf(e,n,r)))}function Gf(e){let t=Yf(e),n=Wa(),r=!0;const o=l=>(d,u)=>{const c=Lt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:p,...g}=c;d={...d,...g,...p}}return d};function i(l){t=l(e)}function s(l){const{props:d}=e,u=Ua(e.parent)||{},c=[],h=new Set;let p={},g=1/0;for(let w=0;w<Kf;w++){const y=Wf[w],x=n[y],b=d[y]!==void 0?d[y]:u[y],E=Gt(b),T=y===l?x.isActive:null;T===!1&&(g=w);let S=b===u[y]&&b!==d[y]&&E;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...p},!x.isActive&&T===null||!b&&!x.prevProp||Fn(b)||typeof b=="boolean")continue;const C=Xf(x.prevProp,b);let D=C||y===l&&x.isActive&&!S&&E||w>g&&E,I=!1;const _=Array.isArray(b)?b:[b];let M=_.reduce(o(y),{});T===!1&&(M={});const{prevResolvedValues:K={}}=x,W={...K,...M},ke=L=>{D=!0,h.has(L)&&(I=!0,h.delete(L)),x.needsAnimating[L]=!0;const R=e.getValue(L);R&&(R.liveStyle=!1)};for(const L in W){const R=M[L],V=K[L];if(p.hasOwnProperty(L))continue;let j=!1;xo(R)&&xo(V)?j=!Ha(R,V):j=R!==V,j?R!=null?ke(L):h.add(L):R!==void 0&&h.has(L)?ke(L):x.protectedKeys[L]=!0}x.prevProp=b,x.prevResolvedValues=M,x.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(D=!1);const re=S&&C;D&&(!re||I)&&c.push(..._.map(L=>{const R={type:y};if(typeof L=="string"&&r&&!re&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,j=Lt(V,L);if(V.enteringChildren&&j){const{delayChildren:oe}=j.transition||{};R.delay=_a(V.enteringChildren,e,oe)}}return{animation:L,options:R}}))}if(h.size){const w={};if(typeof d.initial!="boolean"){const y=Lt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(w.transition=y.transition)}h.forEach(y=>{const x=e.getBaseTarget(y),b=e.getValue(y);b&&(b.liveStyle=!0),w[y]=x??null}),c.push({animation:w})}let v=!!c.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(c):Promise.resolve()}function a(l,d){if(n[l].isActive===d)return Promise.resolve();e.variantChildren?.forEach(c=>c.animationState?.setActive(l,d)),n[l].isActive=d;const u=s(l);for(const c in n)n[c].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Wa(),r=!0}}}function Xf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ha(t,e):!1}function at(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Wa(){return{animate:at(!0),whileInView:at(),whileHover:at(),whileTap:at(),whileDrag:at(),whileFocus:at(),exit:at()}}class Ye{constructor(t){this.isMounted=!1,this.node=t}update(){}}class qf extends Ye{constructor(t){super(t),t.animationState||(t.animationState=Gf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Zf=0;class Jf extends Ye{constructor(){super(...arguments),this.id=Zf++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Qf={animation:{Feature:qf},exit:{Feature:Jf}};function qt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Zt(e){return{point:{x:e.pageX,y:e.pageY}}}const ep=e=>t=>oo(t)&&e(t,Zt(t));function Jt(e,t,n,r){return qt(e,t,ep(n),r)}const Ka=1e-4,tp=1-Ka,np=1+Ka,Ya=.01,rp=0-Ya,op=0+Ya;function fe(e){return e.max-e.min}function sp(e,t,n){return Math.abs(e-t)<=n}function Ga(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=fe(n)/fe(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=tp&&e.scale<=np||isNaN(e.scale))&&(e.scale=1),(e.translate>=rp&&e.translate<=op||isNaN(e.translate))&&(e.translate=0)}function Qt(e,t,n,r){Ga(e.x,t.x,n.x,r?r.originX:void 0),Ga(e.y,t.y,n.y,r?r.originY:void 0)}function Xa(e,t,n){e.min=n.min+t.min,e.max=e.min+fe(t)}function ip(e,t,n){Xa(e.x,t.x,n.x),Xa(e.y,t.y,n.y)}function qa(e,t,n){e.min=t.min-n.min,e.max=e.min+fe(t)}function en(e,t,n){qa(e.x,t.x,n.x),qa(e.y,t.y,n.y)}function Te(e){return[e("x"),e("y")]}const Za=({current:e})=>e?e.ownerDocument.defaultView:null,Ja=(e,t)=>Math.abs(e-t);function ap(e,t){const n=Ja(e.x,t.x),r=Ja(e.y,t.y);return Math.sqrt(n**2+r**2)}class Qa{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Po(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=ap(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:v}=h,{timestamp:w}=ce;this.history.push({...v,timestamp:w});const{onStart:y,onMove:x}=this.handlers;p||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ko(p,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Po(h.type==="pointercancel"?this.lastMoveEventInfo:ko(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!oo(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=Zt(t),l=ko(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=ce;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Po(l,this.history)),this.removeListeners=Rt(Jt(this.contextWindow,"pointermove",this.handlePointerMove),Jt(this.contextWindow,"pointerup",this.handlePointerUp),Jt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ue(this.updatePoint)}}function ko(e,t){return t?{point:t(e.point)}:e}function el(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Po({point:e},t){return{point:e,delta:el(e,tl(t)),offset:el(e,lp(t)),velocity:cp(t,.1)}}function lp(e){return e[0]}function tl(e){return e[e.length-1]}function cp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=tl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ae(t)));)n--;if(!r)return{x:0,y:0};const i=Le(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function dp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function nl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function up(e,{top:t,left:n,bottom:r,right:o}){return{x:nl(e.x,n,o),y:nl(e.y,t,r)}}function rl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function hp(e,t){return{x:rl(e.x,t.x),y:rl(e.y,t.y)}}function fp(e,t){let n=.5;const r=fe(e),o=fe(t);return o>r?n=zt(t.min,t.max-r,e.min):r>o&&(n=zt(e.min,e.max-o,t.min)),Fe(0,1,n)}function pp(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Eo=.35;function mp(e=Eo){return e===!1?e=0:e===!0&&(e=Eo),{x:ol(e,"left","right"),y:ol(e,"top","bottom")}}function ol(e,t,n){return{min:sl(e,t),max:sl(e,n)}}function sl(e,t){return typeof e=="number"?e:e[t]||0}const gp=new WeakMap;class yp{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ee(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zt(c).point)},s=(c,h)=>{const{drag:p,dragPropagation:g,onDragStart:v}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kh(p),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Te(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Ne.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const E=b.layout.layoutBox[y];E&&(x=fe(E)*(parseFloat(x)/100))}}this.originPoint[y]=x}),v&&Z.postRender(()=>v(c,h)),So(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:v,onDrag:w}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=vp(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),w&&w(c,h)},l=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h,this.stop(c,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Te(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Qa(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Za(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!_n(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=dp(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Mt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=up(r.layoutBox,t):this.constraints=!1,this.elastic=mp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Te(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=pp(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Mt(t))return!1;const r=t.current;je(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=bf(r,o.root,this.visualElement.getTransformPagePoint());let s=hp(o.layout.layoutBox,i);if(n){const a=n(gf(s));this.hasMutatedConstraints=!!a,a&&(s=Ca(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=Te(u=>{if(!_n(u,n,this.currentDirection))return;let c=l&&l[u]||{};s&&(c={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return So(this.visualElement,t),r.start(To(t,r,0,n,this.visualElement,!1))}stopAnimation(){Te(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Te(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Te(n=>{const{drag:r}=this.getProps();if(!_n(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-J(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Mt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Te(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=fp({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Te(s=>{if(!_n(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:d}=this.constraints[s];a.set(J(l,d,o[s]))})}addListeners(){if(!this.visualElement.current)return;gp.set(this.visualElement,this);const t=this.visualElement.current,n=Jt(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Mt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Z.read(r);const s=qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Te(u=>{const c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Eo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function _n(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class bp extends Ye{constructor(t){super(t),this.removeGroupControls=Se,this.removeListeners=Se,this.controls=new yp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Se}unmount(){this.removeGroupControls(),this.removeListeners()}}const il=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class wp extends Ye{constructor(){super(...arguments),this.removePointerDownListener=Se}onPointerDown(t){this.session=new Qa(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Za(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:il(t),onStart:il(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Z.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Jt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Hn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function al(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const tn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if($.test(e))e=parseFloat(e);else return e;const n=al(e,t.target.x),r=al(e,t.target.y);return`${n}% ${r}%`}},xp={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ke.parse(e);if(o.length>5)return r;const i=Ke.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const d=J(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=d),typeof o[3+s]=="number"&&(o[3+s]/=d),i(o)}};let Ao=!1;class Sp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Uh(Tp),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ao&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Hn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Ao=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ro.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ao=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ll(e){const[t,n]=ia(),r=f.useContext(gr);return m.jsx(Sp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Sa),isPresent:t,safeToRemove:n})}const Tp={borderRadius:{...tn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tn,borderTopRightRadius:tn,borderBottomLeftRadius:tn,borderBottomRightRadius:tn,boxShadow:xp};function Cp(e,t,n){const r=ue(e)?e:At(e);return r.start(To("",r,t,n)),r.animation}const kp=(e,t)=>e.depth-t.depth;class Pp{constructor(){this.children=[],this.isDirty=!1}add(t){br(this.children,t),this.isDirty=!0}remove(t){wr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kp),this.isDirty=!1,this.children.forEach(t)}}function Ep(e,t){const n=ge.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ue(r),e(i-t))};return Z.setup(r,!0),()=>Ue(r)}const cl=["TopLeft","TopRight","BottomLeft","BottomRight"],Ap=cl.length,dl=e=>typeof e=="string"?parseFloat(e):e,ul=e=>typeof e=="number"||$.test(e);function Dp(e,t,n,r,o,i){o?(e.opacity=J(0,n.opacity??1,Mp(r)),e.opacityExit=J(t.opacity??1,0,$p(r))):i&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let s=0;s<Ap;s++){const a=`border${cl[s]}Radius`;let l=hl(t,a),d=hl(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||ul(l)===ul(d)?(e[a]=Math.max(J(dl(l),dl(d),r),0),(Ne.test(d)||Ne.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function hl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Mp=fl(0,.5,ii),$p=fl(.5,.95,Se);function fl(e,t,n){return r=>r<e?0:r>t?1:n(zt(e,t,r))}function pl(e,t){e.min=t.min,e.max=t.max}function Ce(e,t){pl(e.x,t.x),pl(e.y,t.y)}function ml(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function gl(e,t,n,r,o){return e-=t,e=zn(e,1/n,r),o!==void 0&&(e=zn(e,1/o,r)),e}function Vp(e,t=0,n=1,r=.5,o,i=e,s=e){if(Ne.test(t)&&(t=parseFloat(t),t=J(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=J(i.min,i.max,r);e===i&&(a-=t),e.min=gl(e.min,t,n,a,o),e.max=gl(e.max,t,n,a,o)}function yl(e,t,[n,r,o],i,s){Vp(e,t[n],t[r],t[o],t.scale,i,s)}const Ip=["x","scaleX","originX"],Lp=["y","scaleY","originY"];function vl(e,t,n,r){yl(e.x,t,Ip,n?n.x:void 0,r?r.x:void 0),yl(e.y,t,Lp,n?n.y:void 0,r?r.y:void 0)}function bl(e){return e.translate===0&&e.scale===1}function wl(e){return bl(e.x)&&bl(e.y)}function xl(e,t){return e.min===t.min&&e.max===t.max}function Np(e,t){return xl(e.x,t.x)&&xl(e.y,t.y)}function Sl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tl(e,t){return Sl(e.x,t.x)&&Sl(e.y,t.y)}function Cl(e){return fe(e.x)/fe(e.y)}function kl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Bp{constructor(){this.members=[]}add(t){br(this.members,t),t.scheduleRender()}remove(t){if(wr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Op(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:c,rotateY:h,skewX:p,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Do=["","X","Y","Z"],Fp=1e3;let jp=0;function Mo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Pl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ra(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Pl(r)}function El({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=jp++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(_p),this.nodes.forEach(Kp),this.nodes.forEach(Yp),this.nodes.forEach(Hp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Tr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=sa(s)&&!$h(s),this.instance=s;const{layoutId:a,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,c=0;const h=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{c=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==c&&(c=p,this.root.updateBlockedByResize=!0,u&&u(),u=Ep(h,250),Hn.hasAnimatedSinceResize&&(Hn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ml)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||Jp,{onLayoutAnimationStart:v,onLayoutAnimationComplete:w}=d.getProps(),y=!this.targetLayout||!Tl(this.targetLayout,p),x=!c&&h;if(this.options.layoutRoot||this.resumeFrom||x||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...eo(g,"layout"),onPlay:v,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,x)}else c||Ml(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ue(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Gp),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const c=this.path[u];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Al);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Dl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Wp),this.nodes.forEach(Rp),this.nodes.forEach(zp)):this.nodes.forEach(Dl),this.clearAllSnapshots();const a=ge.now();ce.delta=Fe(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,Er.update.process(ce),Er.preRender.process(ce),Er.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ro.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Up),this.sharedNodes.forEach(Xp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fe(this.snapshot.measuredBox.x)&&!fe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ee(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!wl(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;s&&this.instance&&(a||it(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Qp(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ee();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(em))){const{scroll:d}=this.root;d&&($t(a.x,d.offset.x),$t(a.y,d.offset.y))}return a}removeElementScroll(s){const a=ee();if(Ce(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:u,options:c}=d;d!==this.root&&u&&c.layoutScroll&&(u.wasRoot&&Ce(a,s),$t(a.x,u.offset.x),$t(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=ee();Ce(l,s);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Vt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),it(u.latestValues)&&Vt(l,u.latestValues)}return it(this.latestValues)&&Vt(l,this.latestValues),l}removeTransform(s){const a=ee();Ce(a,s);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!it(d.latestValues))continue;vo(d.latestValues)&&d.updateSnapshot();const u=ee(),c=d.measurePageBox();Ce(u,c),vl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return it(this.latestValues)&&vl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:c}=this.options;if(!(!this.layout||!(u||c))){if(this.resolvedRelativeTargetAt=ce.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),en(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Ce(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ip(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ce(this.target,this.layout.layoutBox),Aa(this.target,this.targetDelta)):Ce(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),en(this.relativeTargetOrigin,this.target,h.target),Ce(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vo(this.parent.latestValues)||ka(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(l=!1),l)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Ce(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,h=this.treeScale.y;vf(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ee());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ml(this.prevProjectionDelta.x,this.projectionDelta.x),ml(this.prevProjectionDelta.y,this.projectionDelta.y)),Qt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!kl(this.projectionDelta.x,this.prevProjectionDelta.x)||!kl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=It(),this.projectionDelta=It(),this.projectionDeltaWithTransform=It()}setAnimationOrigin(s,a=!1){const l=this.snapshot,d=l?l.latestValues:{},u={...this.latestValues},c=It();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ee(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,w=this.getStack(),y=!w||w.members.length<=1,x=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(Zp));this.animationProgress=0;let b;this.mixTargetDelta=E=>{const T=E/1e3;$l(c.x,s.x,T),$l(c.y,s.y,T),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(en(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qp(this.relativeTarget,this.relativeTargetOrigin,h,T),b&&Np(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ee()),Ce(b,this.relativeTarget)),v&&(this.animationValues=u,Dp(u,d,this.latestValues,T,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ue(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Hn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=At(0)),this.currentAnimation=Cp(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:u}=s;if(!(!a||!l||!d)){if(this!==s&&this.layout&&d&&Bl(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||ee();const c=fe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const h=fe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Ce(a,l),Vt(a,u),Qt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Bp),this.sharedNodes.get(s).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&Mo("z",s,d,this.animationValues);for(let u=0;u<Do.length;u++)Mo(`rotate${Do[u]}`,s,d,this.animationValues),Mo(`skew${Do[u]}`,s,d,this.animationValues);s.render();for(const u in d)s.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Rn(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Rn(a?.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let c=Op(this.projectionDeltaWithTransform,this.treeScale,u);l&&(c=l(u,c)),s.transform=c;const{x:h,y:p}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,d.animationValues?s.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Xt){if(u[g]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:y}=Xt[g],x=c==="none"?u[g]:v(u[g],d);if(w){const b=w.length;for(let E=0;E<b;E++)s[w[E]]=x}else y?this.options.visualElement.renderState.vars[g]=x:s[g]=x}this.options.layoutId&&(s.pointerEvents=d===this?Rn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Al),this.root.sharedNodes.clear()}}}function Rp(e){e.updateLayout()}function zp(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Te(u=>{const c=i?t.measuredBox[u]:t.layoutBox[u],h=fe(c);c.min=n[u].min,c.max=c.min+h}):Bl(o,t.layoutBox,n)&&Te(u=>{const c=i?t.measuredBox[u]:t.layoutBox[u],h=fe(n[u]);c.max=c.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=It();Qt(s,n,t.layoutBox);const a=It();i?Qt(a,e.applyTransform(r,!0),t.measuredBox):Qt(a,n,t.layoutBox);const l=!wl(s);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:c,layout:h}=u;if(c&&h){const p=ee();en(p,t.layoutBox,c.layoutBox);const g=ee();en(g,n,h.layoutBox),Tl(p,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function _p(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Up(e){e.clearSnapshot()}function Al(e){e.clearMeasurements()}function Dl(e){e.isLayoutDirty=!1}function Wp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ml(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Kp(e){e.resolveTargetDelta()}function Yp(e){e.calcProjection()}function Gp(e){e.resetSkewAndRotation()}function Xp(e){e.removeLeadSnapshot()}function $l(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vl(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function qp(e,t,n,r){Vl(e.x,t.x,n.x,r),Vl(e.y,t.y,n.y,r)}function Zp(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jp={duration:.45,ease:[.4,0,.1,1]},Il=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ll=Il("applewebkit/")&&!Il("chrome/")?Math.round:Se;function Nl(e){e.min=Ll(e.min),e.max=Ll(e.max)}function Qp(e){Nl(e.x),Nl(e.y)}function Bl(e,t,n){return e==="position"||e==="preserve-aspect"&&!sp(Cl(t),Cl(n),.2)}function em(e){return e!==e.root&&e.scroll?.wasRoot}const tm=El({attachResizeListener:(e,t)=>qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$o={current:void 0},Ol=El({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$o.current){const e=new tm({});e.mount(window),e.setOptions({layoutScroll:!0}),$o.current=e}return $o.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nm={pan:{Feature:wp},drag:{Feature:bp,ProjectionNode:Ol,MeasureLayout:ll}};function Fl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Z.postRender(()=>i(t,Zt(t)))}class rm extends Ye{mount(){const{current:t}=this.node;t&&(this.unmount=Ph(t,(n,r)=>(Fl(this.node,r,"Start"),o=>Fl(this.node,o,"End"))))}unmount(){}}class om extends Ye{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rt(qt(this.node.current,"focus",()=>this.onFocus()),qt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Z.postRender(()=>i(t,Zt(t)))}class sm extends Ye{mount(){const{current:t}=this.node;t&&(this.unmount=Mh(t,(n,r)=>(jl(this.node,r,"Start"),(o,{success:i})=>jl(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Vo=new WeakMap,Io=new WeakMap,im=e=>{const t=Vo.get(e.target);t&&t(e)},am=e=>{e.forEach(im)};function lm({root:e,...t}){const n=e||document;Io.has(n)||Io.set(n,{});const r=Io.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(am,{root:e,...t})),r[o]}function cm(e,t,n){const r=lm(t);return Vo.set(e,n),r.observe(e),()=>{Vo.delete(e),r.unobserve(e)}}const dm={some:0,all:1};class um extends Ye{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:dm[o]},a=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:c}=this.node.getProps(),h=d?u:c;h&&h(l)};return cm(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(hm(t,n))&&this.startObserver()}unmount(){}}function hm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const fm={...Qf,...{inView:{Feature:um},tap:{Feature:sm},focus:{Feature:om},hover:{Feature:rm}},...nm,...{layout:{ProjectionNode:Ol,MeasureLayout:ll}}},lt=mf(fm,Af),pm={sm:P`
235
235
  width: 1.25rem;
236
236
  height: 1.25rem;
237
- `,md:k`
237
+ `,md:P`
238
238
  width: 1.75rem;
239
239
  height: 1.75rem;
240
- `,lg:k`
240
+ `,lg:P`
241
241
  width: 3rem;
242
242
  height: 3rem;
243
- `,xl:k`
243
+ `,xl:P`
244
244
  width: 4rem;
245
245
  height: 4rem;
246
- `},Zl={primary:k`
246
+ `},Rl={primary:P`
247
247
  color: var(--color-main-blue-primary);
248
- `,orange:k`
248
+ `,orange:P`
249
249
  color: var(--color-main-orange-primary);
250
- `,white:k`
250
+ `,white:P`
251
251
  color: var(--color-main-white);
252
- `,gray:k`
252
+ `,gray:P`
253
253
  color: var(--color-main-grey);
254
- `},Mm=P.div`
254
+ `},mm=k.div`
255
255
  position: relative;
256
256
  display: block;
257
- ${({$size:e="md"})=>$m[e]}
258
- ${({$color:e="primary"})=>Zl[e]}
257
+ ${({$size:e="md"})=>pm[e]}
258
+ ${({$color:e="primary"})=>Rl[e]}
259
259
  user-select: none;
260
- `,Vm=P.div`
260
+ `,gm=k.div`
261
261
  display: flex;
262
262
  flex-direction: column;
263
263
  align-items: center;
264
264
  gap: 0.5rem;
265
265
  padding: 2.5px 2.5px 2.5px 0px;
266
- `,Im=P.div`
266
+ `,ym=k.div`
267
267
  display: flex;
268
268
  align-items: center;
269
269
  justify-content: center;
270
270
  min-height: 12.5rem;
271
271
  width: 100%;
272
- `,Nm=P(ht.p)`
273
- ${_[16]}
274
- ${({$color:e="primary"})=>Zl[e]}
272
+ `,vm=k(lt.p)`
273
+ ${z[16]}
274
+ ${({$color:e="primary"})=>Rl[e]}
275
275
  margin: 0;
276
- `,Zn=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=m.jsxs(Vm,{children:[m.jsxs(Mm,{$size:e,$color:t,$variant:i,children:[m.jsx(ht.svg,{width:"100%",height:"100%",viewBox:"0 0 50 50",style:{position:"absolute",top:0,left:0,zIndex:1,padding:"2.1px 2.5px 2.5px 0px"},animate:i==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:i==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:m.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:m.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
276
+ `,Un=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=m.jsxs(gm,{children:[m.jsxs(mm,{$size:e,$color:t,$variant:i,children:[m.jsx(lt.svg,{width:"100%",height:"100%",viewBox:"0 0 50 50",style:{position:"absolute",top:0,left:0,zIndex:1,padding:"2.1px 2.5px 2.5px 0px"},animate:i==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:i==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:m.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:m.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
277
277
  C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
278
278
  C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
279
279
  C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
@@ -290,7 +290,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
290
290
  C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
291
291
  C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
292
292
  C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
293
- z`})})}),o&&m.jsx("title",{children:o})]}),r&&m.jsx(Nm,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?m.jsx(Im,{children:s}):s},Lm=P.div`
293
+ z`})})}),o&&m.jsx("title",{children:o})]}),r&&m.jsx(vm,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?m.jsx(ym,{children:s}):s},bm=k.div`
294
294
  position: fixed;
295
295
  inset: 0;
296
296
  background-color: rgba(255, 255, 255, 0.8);
@@ -299,7 +299,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
299
299
  align-items: center;
300
300
  justify-content: center;
301
301
  z-index: 50;
302
- `,Om=P.div`
302
+ `,wm=k.div`
303
303
  background-color: var(--color-main-white);
304
304
  border-radius: var(--border-radius-card);
305
305
  box-shadow: var(--shadow-black-card);
@@ -310,17 +310,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
310
310
  gap: 1rem;
311
311
  width: 90%;
312
312
  max-width: 24rem;
313
- `,Fm=P.h2`
314
- ${ri[30]}
313
+ `,xm=k.h2`
314
+ ${Ks[30]}
315
315
  color: var(--color-main-blue-primary);
316
316
  margin: 0;
317
- `,Rm=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>m.jsxs(Lm,{role:"status","aria-live":"polite",children:[m.jsx(Om,{children:m.jsx(Zn,{size:"xl",color:t,centered:!1,title:e,variant:n})}),m.jsx(Fm,{children:e})]}),Bm=P.div`
317
+ `,Sm=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>m.jsxs(bm,{role:"status","aria-live":"polite",children:[m.jsx(wm,{children:m.jsx(Un,{size:"xl",color:t,centered:!1,title:e,variant:n})}),m.jsx(xm,{children:e})]}),Tm=k.div`
318
318
  display: flex;
319
319
  flex-direction: column;
320
320
  align-items: center;
321
321
  justify-content: center;
322
322
  padding: 3rem 1rem;
323
- `,jm=({message:e,color:t="primary",variant:n="rotate"})=>m.jsx(Bm,{role:"status","aria-live":"polite",children:m.jsx(Zn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),Jl=({color:e="white",variant:t="rotate"})=>m.jsx(Zn,{size:"sm",color:e,centered:!1,variant:t}),_m={primary:k`
323
+ `,Cm=({message:e,color:t="primary",variant:n="rotate"})=>m.jsx(Tm,{role:"status","aria-live":"polite",children:m.jsx(Un,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),zl=({color:e="white",variant:t="rotate"})=>m.jsx(Un,{size:"sm",color:e,centered:!1,variant:t}),km={primary:P`
324
324
  background-color: var(--color-main-blue-primary);
325
325
  color: var(--color-main-white);
326
326
 
@@ -335,7 +335,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
335
335
  &:focus-visible {
336
336
  outline-color: var(--color-main-blue-primary);
337
337
  }
338
- `,secondary:k`
338
+ `,secondary:P`
339
339
  background-color: var(--color-main-orange-primary);
340
340
  color: var(--color-main-white);
341
341
 
@@ -347,7 +347,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
347
347
  &:focus-visible {
348
348
  outline-color: var(--color-main-orange-primary);
349
349
  }
350
- `,cancel:k`
350
+ `,cancel:P`
351
351
  background-color: var(--color-main-warning-state);
352
352
  color: var(--color-main-white);
353
353
 
@@ -359,24 +359,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
359
359
  &:focus-visible {
360
360
  outline-color: var(--color-main-warning-state);
361
361
  }
362
- `},zm=k`
362
+ `},Pm=P`
363
363
  background-color: var(--color-main-grey);
364
364
  color: var(--color-dark-200);
365
365
  cursor: not-allowed;
366
366
  box-shadow: none;
367
- `,Hm={sm:k`
367
+ `,Em={sm:P`
368
368
  padding: 0.375rem 0.75rem;
369
369
  min-height: 2.75rem;
370
- ${_[12]}
371
- `,md:k`
370
+ ${z[12]}
371
+ `,md:P`
372
372
  padding: 0.625rem 1.25rem;
373
373
  min-height: 3.175rem;
374
- ${_[16]}
375
- `,lg:k`
374
+ ${z[16]}
375
+ `,lg:P`
376
376
  padding: 0.75rem 1.5rem;
377
377
  min-height: 3.5rem;
378
- ${_[20]}
379
- `},Um=P.button`
378
+ ${z[20]}
379
+ `},Am=k.button`
380
380
  borden: none;
381
381
  border-radius: var(--border-radius-button);
382
382
  transition:
@@ -391,13 +391,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
391
391
  outline: 2px solid transparent;
392
392
  outline-offset: 2px;
393
393
 
394
- ${({$variant:e})=>_m[e]}
395
- ${({$size:e})=>Hm[e]}
394
+ ${({$variant:e})=>km[e]}
395
+ ${({$size:e})=>Em[e]}
396
396
 
397
397
  &:disabled {
398
- ${zm}
398
+ ${Pm}
399
399
  }
400
- `,Uo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...u})=>m.jsxs(Um,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...u,children:[i&&m.jsx(Z,{color:l,size:a,component:i}),r?"Loading...":e,s&&m.jsx(Z,{color:l,size:a,component:s})]});function Wm(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Ym=e=>{switch(e){case"success":return Xm;case"info":return Zm;case"warning":return qm;case"error":return Jm;default:return null}},Km=Array(12).fill(0),Gm=({visible:e,className:t})=>h.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},h.createElement("div",{className:"sonner-spinner"},Km.map((n,r)=>h.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Xm=h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),qm=h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},h.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Zm=h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},h.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Jm=h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},h.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Qm=h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},h.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),h.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),eg=()=>{const[e,t]=h.useState(document.hidden);return h.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Wo=1;class tg{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Wo++,s=this.toasts.find(l=>l.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const a=o.then(async u=>{if(s=["resolve",u],h.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(rg(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,g=typeof c=="object"&&!h.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...g})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!h.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...g})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!h.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,...g})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof d=="object"&&!h.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>a.then(()=>s[0]==="reject"?d(s[1]):u(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Wo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xe=new tg,ng=(e,t)=>{const n=t?.id||Wo++;return xe.addToast({title:e,...t,id:n}),n},rg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",og=ng,sg=()=>xe.toasts,ig=()=>xe.getActiveToasts();Object.assign(og,{success:xe.success,info:xe.info,warning:xe.warning,error:xe.error,custom:xe.custom,message:xe.message,promise:xe.promise,dismiss:xe.dismiss,loading:xe.loading},{getHistory:sg,getToasts:ig}),Wm("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Jn(e){return e.label!==void 0}const ag=3,lg="24px",cg="16px",Ql=4e3,ug=356,dg=14,fg=45,hg=200;function Be(...e){return e.filter(Boolean).join(" ")}function pg(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const mg=e=>{var t,n,r,o,i,s,a,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:g,visibleToasts:w,heights:x,index:v,toasts:T,expanded:b,removeToast:C,defaultRichColors:y,closeButton:S,style:E,cancelButtonStyle:$,actionButtonStyle:N,className:K="",descriptionClassName:D="",duration:G,position:ee,gap:oe,expandByDefault:ve,classNames:j,icons:L,closeButtonAriaLabel:H="Close toast"}=e,[B,V]=h.useState(null),[J,se]=h.useState(null),[O,X]=h.useState(!1),[q,ce]=h.useState(!1),[Se,z]=h.useState(!1),[me,ze]=h.useState(!1),[Ie,M]=h.useState(!1),[dn,et]=h.useState(0),[or,Oc]=h.useState(0),fn=h.useRef(c.duration||G||Ql),Fc=h.useRef(null),Ke=h.useRef(null),Uy=v===0,Wy=v+1<=w,Te=c.type,jt=c.dismissible!==!1,Yy=c.className||"",Ky=c.descriptionClassName||"",sr=h.useMemo(()=>x.findIndex(F=>F.toastId===c.id)||0,[x,c.id]),Gy=h.useMemo(()=>{var F;return(F=c.closeButton)!=null?F:S},[c.closeButton,S]),Rc=h.useMemo(()=>c.duration||G||Ql,[c.duration,G]),fs=h.useRef(0),_t=h.useRef(0),Bc=h.useRef(0),zt=h.useRef(null),[Xy,qy]=ee.split("-"),jc=h.useMemo(()=>x.reduce((F,de,ge)=>ge>=sr?F:F+de.height,0),[x,sr]),_c=eg(),Zy=c.invert||d,hs=Te==="loading";_t.current=h.useMemo(()=>sr*oe+jc,[sr,jc]),h.useEffect(()=>{fn.current=Rc},[Rc]),h.useEffect(()=>{X(!0)},[]),h.useEffect(()=>{const F=Ke.current;if(F){const de=F.getBoundingClientRect().height;return Oc(de),g(ge=>[{toastId:c.id,height:de,position:c.position},...ge]),()=>g(ge=>ge.filter(Ce=>Ce.toastId!==c.id))}},[g,c.id]),h.useLayoutEffect(()=>{if(!O)return;const F=Ke.current,de=F.style.height;F.style.height="auto";const ge=F.getBoundingClientRect().height;F.style.height=de,Oc(ge),g(Ce=>Ce.find(he=>he.toastId===c.id)?Ce.map(he=>he.toastId===c.id?{...he,height:ge}:he):[{toastId:c.id,height:ge,position:c.position},...Ce])},[O,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const tt=h.useCallback(()=>{ce(!0),et(_t.current),g(F=>F.filter(de=>de.toastId!==c.id)),setTimeout(()=>{C(c)},hg)},[c,C,g,_t]);h.useEffect(()=>{if(c.promise&&Te==="loading"||c.duration===1/0||c.type==="loading")return;let F;return b||p||_c?(()=>{if(Bc.current<fs.current){const Ce=new Date().getTime()-fs.current;fn.current=fn.current-Ce}Bc.current=new Date().getTime()})():(()=>{fn.current!==1/0&&(fs.current=new Date().getTime(),F=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),tt()},fn.current))})(),()=>clearTimeout(F)},[b,p,c,Te,_c,tt]),h.useEffect(()=>{c.delete&&(tt(),c.onDismiss==null||c.onDismiss.call(c,c))},[tt,c.delete]);function Jy(){var F;if(L?.loading){var de;return h.createElement("div",{className:Be(j?.loader,c==null||(de=c.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Te==="loading"},L.loading)}return h.createElement(Gm,{className:Be(j?.loader,c==null||(F=c.classNames)==null?void 0:F.loader),visible:Te==="loading"})}const Qy=c.icon||L?.[Te]||Ym(Te);var zc,Hc;return h.createElement("li",{tabIndex:0,ref:Ke,className:Be(K,Yy,j?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,j?.default,j?.[Te],c==null||(n=c.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(zc=c.richColors)!=null?zc:y,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":O,"data-promise":!!c.promise,"data-swiped":Ie,"data-removed":q,"data-visible":Wy,"data-y-position":Xy,"data-x-position":qy,"data-index":v,"data-front":Uy,"data-swiping":Se,"data-dismissible":jt,"data-type":Te,"data-invert":Zy,"data-swipe-out":me,"data-swipe-direction":J,"data-expanded":!!(b||ve&&O),"data-testid":c.testId,style:{"--index":v,"--toasts-before":v,"--z-index":T.length-v,"--offset":`${q?dn:_t.current}px`,"--initial-height":ve?"auto":`${or}px`,...E,...c.style},onDragEnd:()=>{z(!1),V(null),zt.current=null},onPointerDown:F=>{F.button!==2&&(hs||!jt||(Fc.current=new Date,et(_t.current),F.target.setPointerCapture(F.pointerId),F.target.tagName!=="BUTTON"&&(z(!0),zt.current={x:F.clientX,y:F.clientY})))},onPointerUp:()=>{var F,de,ge;if(me||!jt)return;zt.current=null;const Ce=Number(((F=Ke.current)==null?void 0:F.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ir=Number(((de=Ke.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),he=new Date().getTime()-((ge=Fc.current)==null?void 0:ge.getTime()),De=B==="x"?Ce:ir,ar=Math.abs(De)/he;if(Math.abs(De)>=fg||ar>.11){et(_t.current),c.onDismiss==null||c.onDismiss.call(c,c),se(B==="x"?Ce>0?"right":"left":ir>0?"down":"up"),tt(),ze(!0);return}else{var Ne,Le;(Ne=Ke.current)==null||Ne.style.setProperty("--swipe-amount-x","0px"),(Le=Ke.current)==null||Le.style.setProperty("--swipe-amount-y","0px")}M(!1),z(!1),V(null)},onPointerMove:F=>{var de,ge,Ce;if(!zt.current||!jt||((de=window.getSelection())==null?void 0:de.toString().length)>0)return;const he=F.clientY-zt.current.y,De=F.clientX-zt.current.x;var ar;const Ne=(ar=e.swipeDirections)!=null?ar:pg(ee);!B&&(Math.abs(De)>1||Math.abs(he)>1)&&V(Math.abs(De)>Math.abs(he)?"x":"y");let Le={x:0,y:0};const Uc=yt=>1/(1.5+Math.abs(yt)/20);if(B==="y"){if(Ne.includes("top")||Ne.includes("bottom"))if(Ne.includes("top")&&he<0||Ne.includes("bottom")&&he>0)Le.y=he;else{const yt=he*Uc(he);Le.y=Math.abs(yt)<Math.abs(he)?yt:he}}else if(B==="x"&&(Ne.includes("left")||Ne.includes("right")))if(Ne.includes("left")&&De<0||Ne.includes("right")&&De>0)Le.x=De;else{const yt=De*Uc(De);Le.x=Math.abs(yt)<Math.abs(De)?yt:De}(Math.abs(Le.x)>0||Math.abs(Le.y)>0)&&M(!0),(ge=Ke.current)==null||ge.style.setProperty("--swipe-amount-x",`${Le.x}px`),(Ce=Ke.current)==null||Ce.style.setProperty("--swipe-amount-y",`${Le.y}px`)}},Gy&&!c.jsx&&Te!=="loading"?h.createElement("button",{"aria-label":H,"data-disabled":hs,"data-close-button":!0,onClick:hs||!jt?()=>{}:()=>{tt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Be(j?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Hc=L?.close)!=null?Hc:Qm):null,(Te||c.icon||c.promise)&&c.icon!==null&&(L?.[Te]!==null||c.icon)?h.createElement("div",{"data-icon":"",className:Be(j?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Jy():null,c.type!=="loading"?Qy:null):null,h.createElement("div",{"data-content":"",className:Be(j?.content,c==null||(i=c.classNames)==null?void 0:i.content)},h.createElement("div",{"data-title":"",className:Be(j?.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?h.createElement("div",{"data-description":"",className:Be(D,Ky,j?.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),h.isValidElement(c.cancel)?c.cancel:c.cancel&&Jn(c.cancel)?h.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||$,onClick:F=>{Jn(c.cancel)&&jt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,F),tt())},className:Be(j?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,h.isValidElement(c.action)?c.action:c.action&&Jn(c.action)?h.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||N,onClick:F=>{Jn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,F),!F.defaultPrevented&&tt())},className:Be(j?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function ec(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function gg(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?cg:lg;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}const yg=h.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:p,duration:g,style:w,visibleToasts:x=ag,toastOptions:v,dir:T=ec(),gap:b=dg,icons:C,containerAriaLabel:y="Notifications"}=t,[S,E]=h.useState([]),$=h.useMemo(()=>r?S.filter(O=>O.toasterId===r):S.filter(O=>!O.toasterId),[S,r]),N=h.useMemo(()=>Array.from(new Set([i].concat($.filter(O=>O.position).map(O=>O.position)))),[$,i]),[K,D]=h.useState([]),[G,ee]=h.useState(!1),[oe,ve]=h.useState(!1),[j,L]=h.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=h.useRef(null),B=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=h.useRef(null),J=h.useRef(!1),se=h.useCallback(O=>{E(X=>{var q;return(q=X.find(ce=>ce.id===O.id))!=null&&q.delete||xe.dismiss(O.id),X.filter(({id:ce})=>ce!==O.id)})},[]);return h.useEffect(()=>xe.subscribe(O=>{if(O.dismiss){requestAnimationFrame(()=>{E(X=>X.map(q=>q.id===O.id?{...q,delete:!0}:q))});return}setTimeout(()=>{ps.flushSync(()=>{E(X=>{const q=X.findIndex(ce=>ce.id===O.id);return q!==-1?[...X.slice(0,q),{...X[q],...O},...X.slice(q+1)]:[O,...X]})})})}),[S]),h.useEffect(()=>{if(f!=="system"){L(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:X})=>{L(X?"dark":"light")})}catch{O.addListener(({matches:q})=>{try{L(q?"dark":"light")}catch(ce){console.error(ce)}})}},[f]),h.useEffect(()=>{S.length<=1&&ee(!1)},[S]),h.useEffect(()=>{const O=X=>{var q;if(s.every(z=>X[z]||X.code===z)){var Se;ee(!0),(Se=H.current)==null||Se.focus()}X.code==="Escape"&&(document.activeElement===H.current||(q=H.current)!=null&&q.contains(document.activeElement))&&ee(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[s]),h.useEffect(()=>{if(H.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,J.current=!1)}},[H.current]),h.createElement("section",{ref:n,"aria-label":`${y} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((O,X)=>{var q;const[ce,Se]=O.split("-");return $.length?h.createElement("ol",{key:O,dir:T==="auto"?ec():T,tabIndex:-1,ref:H,className:u,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":ce,"data-x-position":Se,style:{"--front-toast-height":`${((q=K[0])==null?void 0:q.height)||0}px`,"--width":`${ug}px`,"--gap":`${b}px`,...w,...gg(d,c)},onBlur:z=>{J.current&&!z.currentTarget.contains(z.relatedTarget)&&(J.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||J.current||(J.current=!0,V.current=z.relatedTarget)},onMouseEnter:()=>ee(!0),onMouseMove:()=>ee(!0),onMouseLeave:()=>{oe||ee(!1)},onDragEnd:()=>ee(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||ve(!0)},onPointerUp:()=>ve(!1)},$.filter(z=>!z.position&&X===0||z.position===O).map((z,me)=>{var ze,Ie;return h.createElement(mg,{key:z.id,icons:C,index:me,toast:z,defaultRichColors:p,duration:(ze=v?.duration)!=null?ze:g,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(Ie=v?.closeButton)!=null?Ie:l,interacting:oe,position:O,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:se,toasts:$.filter(M=>M.position==z.position),heights:K.filter(M=>M.position==z.position),setHeights:D,expandByDefault:a,gap:b,expanded:G,swipeDirections:t.swipeDirections})})):null}))}),vg=()=>m.jsx(yg,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:m.jsx(Jl,{color:"orange"})}}),bg={elevated:k`
400
+ `,Lo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...d})=>m.jsxs(Am,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...d,children:[i&&m.jsx(G,{color:l,size:a,component:i}),r?"Loading...":e,s&&m.jsx(G,{color:l,size:a,component:s})]});function Dm(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Mm=e=>{switch(e){case"success":return Im;case"info":return Nm;case"warning":return Lm;case"error":return Bm;default:return null}},$m=Array(12).fill(0),Vm=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},$m.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Im=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Lm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Nm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Bm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Om=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Fm=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let No=1;class jm{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:No++,s=this.toasts.find(l=>l.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const a=o.then(async d=>{if(s=["resolve",d],f.isValidElement(d))i=!1,this.create({id:r,type:"default",message:d});else if(zm(d)&&!d.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(s=["reject",d],n.error!==void 0){i=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=typeof n.description=="function"?await n.description(d):n.description,p=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,u)=>a.then(()=>s[0]==="reject"?u(s[1]):d(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||No++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ye=new jm,Rm=(e,t)=>{const n=t?.id||No++;return ye.addToast({title:e,...t,id:n}),n},zm=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",_m=Rm,Hm=()=>ye.toasts,Um=()=>ye.getActiveToasts();Object.assign(_m,{success:ye.success,info:ye.info,warning:ye.warning,error:ye.error,custom:ye.custom,message:ye.message,promise:ye.promise,dismiss:ye.dismiss,loading:ye.loading},{getHistory:Hm,getToasts:Um}),Dm("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Wn(e){return e.label!==void 0}const Wm=3,Km="24px",Ym="16px",_l=4e3,Gm=356,Xm=14,qm=45,Zm=200;function Be(...e){return e.filter(Boolean).join(" ")}function Jm(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Qm=e=>{var t,n,r,o,i,s,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:p,setHeights:g,visibleToasts:v,heights:w,index:y,toasts:x,expanded:b,removeToast:E,defaultRichColors:T,closeButton:S,style:C,cancelButtonStyle:D,actionButtonStyle:I,className:_="",descriptionClassName:M="",duration:K,position:W,gap:ke,expandByDefault:re,classNames:F,icons:L,closeButtonAriaLabel:R="Close toast"}=e,[V,j]=f.useState(null),[oe,se]=f.useState(null),[O,q]=f.useState(!1),[Y,ae]=f.useState(!1),[Me,H]=f.useState(!1),[ve,Xe]=f.useState(!1),[ze,pe]=f.useState(!1),[xy,es]=f.useState(0),[Sy,bc]=f.useState(0),on=f.useRef(c.duration||K||_l),wc=f.useRef(null),_e=f.useRef(null),Ty=y===0,Cy=y+1<=v,be=c.type,Nt=c.dismissible!==!1,ky=c.className||"",Py=c.descriptionClassName||"",Xn=f.useMemo(()=>w.findIndex(N=>N.toastId===c.id)||0,[w,c.id]),Ey=f.useMemo(()=>{var N;return(N=c.closeButton)!=null?N:S},[c.closeButton,S]),xc=f.useMemo(()=>c.duration||K||_l,[c.duration,K]),ts=f.useRef(0),Bt=f.useRef(0),Sc=f.useRef(0),Ot=f.useRef(null),[Ay,Dy]=W.split("-"),Tc=f.useMemo(()=>w.reduce((N,le,he)=>he>=Xn?N:N+le.height,0),[w,Xn]),Cc=Fm(),My=c.invert||u,ns=be==="loading";Bt.current=f.useMemo(()=>Xn*ke+Tc,[Xn,Tc]),f.useEffect(()=>{on.current=xc},[xc]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const N=_e.current;if(N){const le=N.getBoundingClientRect().height;return bc(le),g(he=>[{toastId:c.id,height:le,position:c.position},...he]),()=>g(he=>he.filter(we=>we.toastId!==c.id))}},[g,c.id]),f.useLayoutEffect(()=>{if(!O)return;const N=_e.current,le=N.style.height;N.style.height="auto";const he=N.getBoundingClientRect().height;N.style.height=le,bc(he),g(we=>we.find(de=>de.toastId===c.id)?we.map(de=>de.toastId===c.id?{...de,height:he}:de):[{toastId:c.id,height:he,position:c.position},...we])},[O,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const qe=f.useCallback(()=>{ae(!0),es(Bt.current),g(N=>N.filter(le=>le.toastId!==c.id)),setTimeout(()=>{E(c)},Zm)},[c,E,g,Bt]);f.useEffect(()=>{if(c.promise&&be==="loading"||c.duration===1/0||c.type==="loading")return;let N;return b||p||Cc?(()=>{if(Sc.current<ts.current){const we=new Date().getTime()-ts.current;on.current=on.current-we}Sc.current=new Date().getTime()})():(()=>{on.current!==1/0&&(ts.current=new Date().getTime(),N=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),qe()},on.current))})(),()=>clearTimeout(N)},[b,p,c,be,Cc,qe]),f.useEffect(()=>{c.delete&&(qe(),c.onDismiss==null||c.onDismiss.call(c,c))},[qe,c.delete]);function $y(){var N;if(L?.loading){var le;return f.createElement("div",{className:Be(F?.loader,c==null||(le=c.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":be==="loading"},L.loading)}return f.createElement(Vm,{className:Be(F?.loader,c==null||(N=c.classNames)==null?void 0:N.loader),visible:be==="loading"})}const Vy=c.icon||L?.[be]||Mm(be);var kc,Pc;return f.createElement("li",{tabIndex:0,ref:_e,className:Be(_,ky,F?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,F?.default,F?.[be],c==null||(n=c.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":(kc=c.richColors)!=null?kc:T,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":O,"data-promise":!!c.promise,"data-swiped":ze,"data-removed":Y,"data-visible":Cy,"data-y-position":Ay,"data-x-position":Dy,"data-index":y,"data-front":Ty,"data-swiping":Me,"data-dismissible":Nt,"data-type":be,"data-invert":My,"data-swipe-out":ve,"data-swipe-direction":oe,"data-expanded":!!(b||re&&O),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${Y?xy:Bt.current}px`,"--initial-height":re?"auto":`${Sy}px`,...C,...c.style},onDragEnd:()=>{H(!1),j(null),Ot.current=null},onPointerDown:N=>{N.button!==2&&(ns||!Nt||(wc.current=new Date,es(Bt.current),N.target.setPointerCapture(N.pointerId),N.target.tagName!=="BUTTON"&&(H(!0),Ot.current={x:N.clientX,y:N.clientY})))},onPointerUp:()=>{var N,le,he;if(ve||!Nt)return;Ot.current=null;const we=Number(((N=_e.current)==null?void 0:N.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),qn=Number(((le=_e.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),de=new Date().getTime()-((he=wc.current)==null?void 0:he.getTime()),Pe=V==="x"?we:qn,Zn=Math.abs(Pe)/de;if(Math.abs(Pe)>=qm||Zn>.11){es(Bt.current),c.onDismiss==null||c.onDismiss.call(c,c),se(V==="x"?we>0?"right":"left":qn>0?"down":"up"),qe(),Xe(!0);return}else{var $e,Ve;($e=_e.current)==null||$e.style.setProperty("--swipe-amount-x","0px"),(Ve=_e.current)==null||Ve.style.setProperty("--swipe-amount-y","0px")}pe(!1),H(!1),j(null)},onPointerMove:N=>{var le,he,we;if(!Ot.current||!Nt||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;const de=N.clientY-Ot.current.y,Pe=N.clientX-Ot.current.x;var Zn;const $e=(Zn=e.swipeDirections)!=null?Zn:Jm(W);!V&&(Math.abs(Pe)>1||Math.abs(de)>1)&&j(Math.abs(Pe)>Math.abs(de)?"x":"y");let Ve={x:0,y:0};const Ec=ht=>1/(1.5+Math.abs(ht)/20);if(V==="y"){if($e.includes("top")||$e.includes("bottom"))if($e.includes("top")&&de<0||$e.includes("bottom")&&de>0)Ve.y=de;else{const ht=de*Ec(de);Ve.y=Math.abs(ht)<Math.abs(de)?ht:de}}else if(V==="x"&&($e.includes("left")||$e.includes("right")))if($e.includes("left")&&Pe<0||$e.includes("right")&&Pe>0)Ve.x=Pe;else{const ht=Pe*Ec(Pe);Ve.x=Math.abs(ht)<Math.abs(Pe)?ht:Pe}(Math.abs(Ve.x)>0||Math.abs(Ve.y)>0)&&pe(!0),(he=_e.current)==null||he.style.setProperty("--swipe-amount-x",`${Ve.x}px`),(we=_e.current)==null||we.style.setProperty("--swipe-amount-y",`${Ve.y}px`)}},Ey&&!c.jsx&&be!=="loading"?f.createElement("button",{"aria-label":R,"data-disabled":ns,"data-close-button":!0,onClick:ns||!Nt?()=>{}:()=>{qe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Be(F?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Pc=L?.close)!=null?Pc:Om):null,(be||c.icon||c.promise)&&c.icon!==null&&(L?.[be]!==null||c.icon)?f.createElement("div",{"data-icon":"",className:Be(F?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||$y():null,c.type!=="loading"?Vy:null):null,f.createElement("div",{"data-content":"",className:Be(F?.content,c==null||(i=c.classNames)==null?void 0:i.content)},f.createElement("div",{"data-title":"",className:Be(F?.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?f.createElement("div",{"data-description":"",className:Be(M,Py,F?.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),f.isValidElement(c.cancel)?c.cancel:c.cancel&&Wn(c.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:N=>{Wn(c.cancel)&&Nt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,N),qe())},className:Be(F?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,f.isValidElement(c.action)?c.action:c.action&&Wn(c.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||I,onClick:N=>{Wn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,N),!N.defaultPrevented&&qe())},className:Be(F?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Hl(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function eg(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?Ym:Km;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${s}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=a:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const tg=f.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:p,duration:g,style:v,visibleToasts:w=Wm,toastOptions:y,dir:x=Hl(),gap:b=Xm,icons:E,containerAriaLabel:T="Notifications"}=t,[S,C]=f.useState([]),D=f.useMemo(()=>r?S.filter(O=>O.toasterId===r):S.filter(O=>!O.toasterId),[S,r]),I=f.useMemo(()=>Array.from(new Set([i].concat(D.filter(O=>O.position).map(O=>O.position)))),[D,i]),[_,M]=f.useState([]),[K,W]=f.useState(!1),[ke,re]=f.useState(!1),[F,L]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=f.useRef(null),V=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=f.useRef(null),oe=f.useRef(!1),se=f.useCallback(O=>{C(q=>{var Y;return(Y=q.find(ae=>ae.id===O.id))!=null&&Y.delete||ye.dismiss(O.id),q.filter(({id:ae})=>ae!==O.id)})},[]);return f.useEffect(()=>ye.subscribe(O=>{if(O.dismiss){requestAnimationFrame(()=>{C(q=>q.map(Y=>Y.id===O.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{rs.flushSync(()=>{C(q=>{const Y=q.findIndex(ae=>ae.id===O.id);return Y!==-1?[...q.slice(0,Y),{...q[Y],...O},...q.slice(Y+1)]:[O,...q]})})})}),[S]),f.useEffect(()=>{if(h!=="system"){L(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:q})=>{L(q?"dark":"light")})}catch{O.addListener(({matches:Y})=>{try{L(Y?"dark":"light")}catch(ae){console.error(ae)}})}},[h]),f.useEffect(()=>{S.length<=1&&W(!1)},[S]),f.useEffect(()=>{const O=q=>{var Y;if(s.every(H=>q[H]||q.code===H)){var Me;W(!0),(Me=R.current)==null||Me.focus()}q.code==="Escape"&&(document.activeElement===R.current||(Y=R.current)!=null&&Y.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[s]),f.useEffect(()=>{if(R.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,oe.current=!1)}},[R.current]),f.createElement("section",{ref:n,"aria-label":`${T} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((O,q)=>{var Y;const[ae,Me]=O.split("-");return D.length?f.createElement("ol",{key:O,dir:x==="auto"?Hl():x,tabIndex:-1,ref:R,className:d,"data-sonner-toaster":!0,"data-sonner-theme":F,"data-y-position":ae,"data-x-position":Me,style:{"--front-toast-height":`${((Y=_[0])==null?void 0:Y.height)||0}px`,"--width":`${Gm}px`,"--gap":`${b}px`,...v,...eg(u,c)},onBlur:H=>{oe.current&&!H.currentTarget.contains(H.relatedTarget)&&(oe.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,j.current=H.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{ke||W(!1)},onDragEnd:()=>W(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},D.filter(H=>!H.position&&q===0||H.position===O).map((H,ve)=>{var Xe,ze;return f.createElement(Qm,{key:H.id,icons:E,index:ve,toast:H,defaultRichColors:p,duration:(Xe=y?.duration)!=null?Xe:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(ze=y?.closeButton)!=null?ze:l,interacting:ke,position:O,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:se,toasts:D.filter(pe=>pe.position==H.position),heights:_.filter(pe=>pe.position==H.position),setHeights:M,expandByDefault:a,gap:b,expanded:K,swipeDirections:t.swipeDirections})})):null}))}),ng=()=>m.jsx(tg,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:m.jsx(zl,{color:"orange"})}}),rg={elevated:P`
401
401
  background-color: var(--color-main-white);
402
402
  box-shadow: var(--shadow-black-card);
403
403
  border: none;
@@ -406,7 +406,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
406
406
  box-shadow: var(--shadow-hover-black-card);
407
407
  background-color: var(--color-main-alternative-secondary);
408
408
  }
409
- `,flat:k`
409
+ `,flat:P`
410
410
  background-color: var(--color-main-white);
411
411
  box-shadow: none;
412
412
  border: none;
@@ -414,7 +414,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
414
414
  &:hover {
415
415
  background-color: var(--color-main-alternative-secondary);
416
416
  }
417
- `,info:k`
417
+ `,info:P`
418
418
  background-color: var(--color-main-white);
419
419
  box-shadow: none;
420
420
 
@@ -425,16 +425,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
425
425
  &:active {
426
426
  border: none;
427
427
  }
428
- `},wg={sm:k`
428
+ `},og={sm:P`
429
429
  padding: 0.75rem;
430
430
  gap: 0.5rem;
431
- `,md:k`
431
+ `,md:P`
432
432
  padding: 1rem;
433
433
  gap: 0.5rem;
434
- `,lg:k`
434
+ `,lg:P`
435
435
  padding: 1.25rem;
436
436
  gap: 0.5rem;
437
- `},xg=k`
437
+ `},sg=P`
438
438
  transition:
439
439
  box-shadow 0.3s ease-out,
440
440
  background-color 0.3s ease-out,
@@ -454,7 +454,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
454
454
  &:focus-visible {
455
455
  outline-color: var(--color-main-blue-primary);
456
456
  }
457
- `,Sg=k`
457
+ `,ig=P`
458
458
  opacity: 0.6;
459
459
  cursor: not-allowed;
460
460
  pointer-events: none;
@@ -463,7 +463,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
463
463
  transform: none;
464
464
  box-shadow: inherit;
465
465
  }
466
- `,Tg=P.div`
466
+ `,ag=k.div`
467
467
  display: flex;
468
468
  flex-direction: column;
469
469
  border-radius: var(--border-radius-card);
@@ -471,53 +471,53 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
471
471
  height: 100%;
472
472
  outline: 2px solid transparent;
473
473
  outline-offset: -1px;
474
- ${({$variant:e})=>bg[e]}
475
- ${({$clickable:e})=>e&&xg}
476
- ${({$disabled:e})=>e&&Sg}
477
- ${({$size:e})=>wg[e]}
478
- `,Cg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...i})=>{const s=a=>{n||r&&r(a)};return m.jsx(Tg,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:s,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s(a))}:void 0,...i,children:o})},Eg=P.div`
474
+ ${({$variant:e})=>rg[e]}
475
+ ${({$clickable:e})=>e&&sg}
476
+ ${({$disabled:e})=>e&&ig}
477
+ ${({$size:e})=>og[e]}
478
+ `,lg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...i})=>{const s=a=>{n||r&&r(a)};return m.jsx(ag,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:s,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s(a))}:void 0,...i,children:o})},cg=k.div`
479
479
  display: flex;
480
480
  align-items: center;
481
481
  align-self: stretch;
482
482
  gap: 0.5rem;
483
- `,Pg=({children:e,...t})=>m.jsx(Eg,{...t,children:e}),kg=P.div`
483
+ `,dg=({children:e,...t})=>m.jsx(cg,{...t,children:e}),ug=k.div`
484
484
  flex: 1;
485
485
  display: flex;
486
486
  flex-direction: column;
487
- `,Ag=({children:e,...t})=>m.jsx(kg,{...t,children:e}),Dg=P.div`
487
+ `,hg=({children:e,...t})=>m.jsx(ug,{...t,children:e}),fg=k.div`
488
488
  display: flex;
489
489
  align-items: center;
490
490
  align-self: stretch;
491
491
  gap: 0.5rem;
492
- `,$g=({children:e,...t})=>m.jsx(Dg,{...t,children:e}),Mg={sm:k`
493
- ${_[12]}
494
- `,md:k`
495
- ${_[16]}
496
- `,lg:k`
497
- ${_[18]}
498
- `},Vg=P.div`
492
+ `,pg=({children:e,...t})=>m.jsx(fg,{...t,children:e}),mg={sm:P`
493
+ ${z[12]}
494
+ `,md:P`
495
+ ${z[16]}
496
+ `,lg:P`
497
+ ${z[18]}
498
+ `},gg=k.div`
499
499
  color: var(--color-main-warning-state);
500
- ${({$size:e})=>Mg[e]}
500
+ ${({$size:e})=>mg[e]}
501
501
  font-weight: 400;
502
502
  margin-top: 0.25rem;
503
503
  display: flex;
504
504
  align-items: flex-start;
505
505
  gap: 0.25rem;
506
- `,Yo=({children:e,className:t,size:n="md",...r})=>m.jsx(Vg,{className:t,$size:n,...r,children:e}),Ig={sm:k`
507
- ${_[16]}
508
- `,md:k`
509
- ${_[24]}
510
- `,lg:k`
511
- ${_[30]}
512
- `},Ng=P.label`
506
+ `,Bo=({children:e,className:t,size:n="md",...r})=>m.jsx(gg,{className:t,$size:n,...r,children:e}),yg={sm:P`
507
+ ${z[16]}
508
+ `,md:P`
509
+ ${z[24]}
510
+ `,lg:P`
511
+ ${z[30]}
512
+ `},vg=k.label`
513
513
  color: var(--color-main-blue-primary);
514
- ${({$size:e})=>Ig[e]}
515
- ${({$disabled:e})=>e&&Lg}
514
+ ${({$size:e})=>yg[e]}
515
+ ${({$disabled:e})=>e&&bg}
516
516
  cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
517
- `,Lg=k`
517
+ `,bg=P`
518
518
  cursor: not-allowed;
519
519
  opacity: 0.6;
520
- `,Qn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>m.jsxs(Ng,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:o,...s,children:[e,r&&m.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),tc=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Og=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:tc.includes(t.type)?t.type:"text",placeholder:t.placeholder,required:t.required||!1,disabled:t.disabled||!1,options:t.options||[],validation:t.validation,checkboxLabel:t.checkboxLabel,radioName:t.radioName,pinLength:t.pinLength||6,pinType:t.pinType||"number",rows:t.rows||4})),Fg=e=>e.map(t=>({value:t.value,label:t.label})),Rg={text:(e,t,n)=>({name:e,label:t,type:"text",...n}),email:(e,t,n)=>({name:e,label:t,type:"email",required:!0,...n}),password:(e,t,n)=>({name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"La contraseña debe tener al menos 8 caracteres"}},...n}),select:(e,t,n,r)=>({name:e,label:t,type:"select",options:n,required:!0,...r}),checkbox:(e,t,n)=>({name:e,label:t,type:"checkbox",checkboxLabel:t,...n}),radio:(e,t,n,r)=>({name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}),pin:(e,t,n=6,r)=>({name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} debe tener ${n} dígitos`}},...r})},nc=(e,t,n,r,o,i,s,a)=>{const{field:l,...u}=t,d={...l,...u,size:u.size,hasError:u.hasError,disabled:u.disabled,placeholder:u.placeholder,className:u.className};switch(e){case"textarea":return{component:"textarea",props:{...d,rows:s?.rows||4}};case"select":return{component:"select",props:{...d,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...d,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...d,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...d,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...d,type:"password"}};case"search":return{component:"search",props:{...d,onSearch:a?.onSearch}};default:return{component:"base",props:{...d,type:t.type||e||"text"}}}},pt=k`
520
+ `,Kn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>m.jsxs(vg,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:o,...s,children:[e,r&&m.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Ul=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],wg=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:Ul.includes(t.type)?t.type:"text",placeholder:t.placeholder,required:t.required||!1,disabled:t.disabled||!1,options:t.options||[],validation:t.validation,checkboxLabel:t.checkboxLabel,radioName:t.radioName,pinLength:t.pinLength||6,pinType:t.pinType||"number",rows:t.rows||4})),xg=e=>e.map(t=>({value:t.value,label:t.label})),Sg={text:(e,t,n)=>({name:e,label:t,type:"text",...n}),email:(e,t,n)=>({name:e,label:t,type:"email",required:!0,...n}),password:(e,t,n)=>({name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"La contraseña debe tener al menos 8 caracteres"}},...n}),select:(e,t,n,r)=>({name:e,label:t,type:"select",options:n,required:!0,...r}),checkbox:(e,t,n)=>({name:e,label:t,type:"checkbox",checkboxLabel:t,...n}),radio:(e,t,n,r)=>({name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}),pin:(e,t,n=6,r)=>({name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} debe tener ${n} dígitos`}},...r})},Tg=(e,t,n,r,o,i,s,a)=>{const{field:l,...d}=t,u={...l,...d,size:d.size,hasError:d.hasError,disabled:d.disabled,placeholder:d.placeholder,className:d.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:s?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},ct=P`
521
521
  display: flex;
522
522
  justify-content: space-between;
523
523
  align-items: center;
@@ -548,7 +548,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
548
548
  &:disabled {
549
549
  cursor: not-allowed;
550
550
  }
551
- `,er=k`
551
+ `,Yn=P`
552
552
  width: 100%;
553
553
  border: none;
554
554
  outline: none;
@@ -565,18 +565,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
565
565
  &::placeholder {
566
566
  color: var(--color-dark-200);
567
567
  }
568
- `,mt=k`
568
+ `,dt=P`
569
569
  border: var(--border-input-error) !important;
570
570
 
571
571
  &:focus-within {
572
572
  border: 1px solid var(--color-main-warning-state) !important;
573
573
  outline: none;
574
574
  }
575
- `,Qe=k`
575
+ `,Ge=P`
576
576
  border: var(--border-input-disabled) !important;
577
577
  cursor: not-allowed;
578
578
  opacity: 0.6;
579
- `,rc=k`
579
+ `,Wl=P`
580
580
  border: none;
581
581
  border-top: 0;
582
582
  border-right: 0;
@@ -602,59 +602,59 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
602
602
  border-bottom: var(--border-input-focus);
603
603
  outline: none;
604
604
  }
605
- `,ln={sm:k`
605
+ `,nn={sm:P`
606
606
  padding: 0.5rem 1rem;
607
607
  height: 2.5rem;
608
- ${_[18]}
609
- `,md:k`
608
+ ${z[18]}
609
+ `,md:P`
610
610
  padding: 0.5rem 1rem;
611
611
  height: 2.75rem;
612
- ${_[20]}
613
- `,lg:k`
612
+ ${z[20]}
613
+ `,lg:P`
614
614
  padding: 0.5rem 1rem;
615
615
  height: 3rem;
616
- ${_[20]}
617
- `},cn=k`
616
+ ${z[20]}
617
+ `},rn=P`
618
618
  display: flex;
619
619
  align-items: center;
620
620
  justify-content: center;
621
621
  flex-shrink: 0;
622
622
  user-select: none;
623
- `,Bg=P.div`
624
- ${pt}
625
- ${({$size:e})=>ln[e]}
626
- ${({$hasError:e})=>e&&mt}
627
- ${({$disabled:e})=>e&&Qe}
628
- ${({$isFlushed:e})=>e&&rc}
629
- `,jg=P.input`
630
- ${er}
631
- `,Ko=h.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",className:u,...d},c)=>m.jsxs(Bg,{$size:e,$hasError:t,className:u,$isFlushed:o,children:[i&&m.jsx(Z,{component:i,size:a,color:n?"var(--color-dark-200)":l}),m.jsx(jg,{ref:c,type:r,$hasError:t,disabled:n,...d}),s&&m.jsx(Z,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));Ko.displayName="BaseInput";const _g=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),zg=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),Hg=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),Ug=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),Wg=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"})),Yg=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})),Kg=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})),oc=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),Gg=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),Xg=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),sc=({color:e="currentColor",size:t=24,className:n,...r})=>h.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},h.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"})),qg=P.div`
632
- ${pt}
633
- ${({$size:e})=>ln[e??"md"]}
634
- ${({$hasError:e})=>e&&mt}
635
- ${({$disabled:e})=>e&&Qe}
623
+ `,Cg=k.div`
624
+ ${ct}
625
+ ${({$size:e})=>nn[e]}
626
+ ${({$hasError:e})=>e&&dt}
627
+ ${({$disabled:e})=>e&&Ge}
628
+ ${({$isFlushed:e})=>e&&Wl}
629
+ `,kg=k.input`
630
+ ${Yn}
631
+ `,Oo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",className:d,...u},c)=>m.jsxs(Cg,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[i&&m.jsx(G,{component:i,size:a,color:n?"var(--color-dark-200)":l}),m.jsx(kg,{ref:c,type:r,$hasError:t,disabled:n,...u}),s&&m.jsx(G,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));Oo.displayName="BaseInput";const Pg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),Eg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),Ag=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),Dg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),Mg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"})),$g=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})),Vg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})),Kl=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),Ig=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),Lg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),Yl=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"})),Ng=k.div`
632
+ ${ct}
633
+ ${({$size:e})=>nn[e??"md"]}
634
+ ${({$hasError:e})=>e&&dt}
635
+ ${({$disabled:e})=>e&&Ge}
636
636
  position: relative;
637
- `,Zg=P.input`
638
- ${er}
639
- `,Jg=P.span`
640
- ${cn}
637
+ `,Bg=k.input`
638
+ ${Yn}
639
+ `,Og=k.span`
640
+ ${rn}
641
641
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
642
- `,ic=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:i=!1,disabled:s=!1,className:a,...l})=>{const[u,d]=h.useState(!1),c=()=>d(f=>!f);return m.jsxs(qg,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&m.jsx(Z,{component:t,size:n,color:s?"var(--color-dark-200)":r}),m.jsx(Zg,{type:u?"text":"password",placeholder:o,disabled:s,...l}),m.jsx(Jg,{$disabled:s,onClick:s?void 0:c,children:m.jsx(Z,{component:u?Kg:Yg,size:n,color:s?"var(--color-dark-200)":r})})]})},ac=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Qg=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},e0=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},t0=e=>({target:{value:String(e)}}),n0=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},r0=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return ac(t)},o0=P.div`
642
+ `,Gl=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:i=!1,disabled:s=!1,className:a,...l})=>{const[d,u]=f.useState(!1),c=()=>u(h=>!h);return m.jsxs(Ng,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&m.jsx(G,{component:t,size:n,color:s?"var(--color-dark-200)":r}),m.jsx(Bg,{type:d?"text":"password",placeholder:o,disabled:s,...l}),m.jsx(Og,{$disabled:s,onClick:s?void 0:c,children:m.jsx(G,{component:d?Vg:$g,size:n,color:s?"var(--color-dark-200)":r})})]})},Xl=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Fg=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},jg=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},Rg=e=>({target:{value:String(e)}}),zg=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},_g=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return Xl(t)},Hg=k.div`
643
643
  position: relative;
644
644
  width: 100%;
645
- `,s0=P.div`
646
- ${cn}
645
+ `,Ug=k.div`
646
+ ${rn}
647
647
  position: absolute;
648
648
  right: 1rem;
649
649
  top: 50%;
650
650
  transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
651
651
  pointer-events: none;
652
652
  transition: transform 0.3s ease-out;
653
- `,i0=P.button`
654
- ${pt}
655
- ${({$size:e})=>ln[e]}
656
- ${({$hasError:e})=>e&&mt}
657
- ${({$disabled:e})=>e&&Qe}
653
+ `,Wg=k.button`
654
+ ${ct}
655
+ ${({$size:e})=>nn[e]}
656
+ ${({$hasError:e})=>e&&dt}
657
+ ${({$disabled:e})=>e&&Ge}
658
658
 
659
659
  width: 100%;
660
660
  text-align: left;
@@ -672,7 +672,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
672
672
  &:hover {
673
673
  background-color: var(--color-main-alternative-secondary);
674
674
  }
675
- `,a0=P(ht.ul)`
675
+ `,Kg=k(lt.ul)`
676
676
  position: absolute;
677
677
  z-index: 50;
678
678
  left: 0;
@@ -694,11 +694,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
694
694
  border: var(--border-input-focus);
695
695
  outline: none;
696
696
  }
697
- `,l0=P.div`
697
+ `,Yg=k.div`
698
698
  max-height: 15rem;
699
699
  overflow-y: auto;
700
700
  outline: none;
701
- `,c0=P.li`
701
+ `,Gg=k.li`
702
702
  display: flex;
703
703
  align-items: center;
704
704
  gap: 0.5rem;
@@ -708,22 +708,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
708
708
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
709
709
  user-select: none;
710
710
 
711
- ${({$size:e})=>u0[e??"md"]}
711
+ ${({$size:e})=>Xg[e??"md"]}
712
712
 
713
713
  background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
714
714
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
715
- `,u0={sm:k`
716
- ${_[16]}
717
- `,md:k`
718
- ${_[18]}
719
- `,lg:k`
720
- ${_[18]}
721
- `},Go=h.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:i,onChange:s,value:a,name:l,className:u,inputClassName:d,optionsClassName:c,optionClassName:f},p)=>{const g=h.useRef(null),w=h.useRef(null),x=h.useRef(null),v=h.useRef(null),T=h.useId(),[b,C]=h.useState(!1),[y,S]=h.useState(-1),E=r.find(D=>D.value===a);h.useEffect(()=>{b&&w.current&&(w.current.focus(),S(r0(a,r)))},[b,r,a]),h.useEffect(()=>{n0(x,y)},[y]),h.useEffect(()=>{if(!b)return;const D=G=>{g.current&&(g.current.contains(G.target)||C(!1))};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[b]),h.useEffect(()=>{b||requestAnimationFrame(()=>{p?.current?.focus?.(),v.current?.focus()})},[b,p]);const $=D=>{D.disabled||(i?.(D),s&&s(t0(D.value)),C(!1),S(-1))},N=D=>{n||(D.key==="ArrowDown"||D.key==="ArrowUp"?(D.preventDefault(),C(!0)):(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),C(G=>!G)))},K=D=>{if(D.key==="Escape"){D.preventDefault(),C(!1),S(-1);return}if(D.key==="ArrowDown"||D.key==="ArrowUp"){D.preventDefault();const G=D.key==="ArrowDown"?1:-1;S(e0(y,G,r))}else if(D.key==="Enter"){D.preventDefault();const G=r[y];G&&!G.disabled&&$(G)}else D.key==="Home"?(D.preventDefault(),S(ac(r))):D.key==="End"&&(D.preventDefault(),S(Qg(r)))};return m.jsxs(o0,{ref:g,className:u,children:[l&&m.jsx("input",{type:"hidden",name:l,value:E?.value??""}),m.jsx(i0,{type:"button",$size:e,$hasError:t,$hasValue:!!E,$disabled:n,disabled:n,className:d,ref:D=>{v.current=D,typeof p=="function"?p(D):p&&"current"in p&&(p.current=D)},onClick:()=>!n&&C(D=>!D),onKeyDown:N,"aria-haspopup":"listbox","aria-expanded":b,"aria-controls":`${T}-listbox`,"aria-invalid":t||void 0,title:E?.label??o??"Select an option",children:E?.label??o??""}),m.jsx(s0,{$size:e,$disabled:n,$open:b,children:m.jsx(Z,{component:Hg,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),m.jsx(zn,{children:b&&m.jsx(a0,{ref:w,className:"custom-scrollbar",id:`${T}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":y>=0?`${T}-option-${y}`:void 0,initial:{opacity:0,height:0,scaleY:.8},animate:{opacity:1,height:"auto",scaleY:1},exit:{opacity:0,height:0,scaleY:.8},transition:{duration:.25,ease:[.4,0,.2,1]},onKeyDown:K,children:m.jsx(l0,{ref:x,className:c,children:r.map((D,G)=>{const ee=G===y;return m.jsx(c0,{id:`${T}-option-${G}`,className:f,role:"option",$size:e,"aria-selected":a===D.value,$active:ee,$disabled:D.disabled,onMouseEnter:()=>{!D.disabled&&b&&S(G)},onClick:()=>$(D),children:D.label},D.value)})})})})]})});Go.displayName="SelectInput";const d0=P.textarea`
722
- ${pt}
723
- ${({$size:e})=>f0[e]}
724
- ${({$hasError:e})=>e&&mt}
725
- ${({$disabled:e})=>e&&Qe}
726
- ${_[20]}
715
+ `,Xg={sm:P`
716
+ ${z[16]}
717
+ `,md:P`
718
+ ${z[18]}
719
+ `,lg:P`
720
+ ${z[18]}
721
+ `},Fo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:i,onChange:s,value:a,name:l,className:d,inputClassName:u,optionsClassName:c,optionClassName:h},p)=>{const g=f.useRef(null),v=f.useRef(null),w=f.useRef(null),y=f.useRef(null),x=f.useId(),[b,E]=f.useState(!1),[T,S]=f.useState(-1),C=r.find(M=>M.value===a);f.useEffect(()=>{b&&v.current&&(v.current.focus(),S(_g(a,r)))},[b,r,a]),f.useEffect(()=>{zg(w,T)},[T]),f.useEffect(()=>{if(!b)return;const M=K=>{g.current&&(g.current.contains(K.target)||E(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[b]),f.useEffect(()=>{b||requestAnimationFrame(()=>{p?.current?.focus?.(),y.current?.focus()})},[b,p]);const D=M=>{M.disabled||(i?.(M),s&&s(Rg(M.value)),E(!1),S(-1))},I=M=>{n||(M.key==="ArrowDown"||M.key==="ArrowUp"?(M.preventDefault(),E(!0)):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),E(K=>!K)))},_=M=>{if(M.key==="Escape"){M.preventDefault(),E(!1),S(-1);return}if(M.key==="ArrowDown"||M.key==="ArrowUp"){M.preventDefault();const K=M.key==="ArrowDown"?1:-1;S(jg(T,K,r))}else if(M.key==="Enter"){M.preventDefault();const K=r[T];K&&!K.disabled&&D(K)}else M.key==="Home"?(M.preventDefault(),S(Xl(r))):M.key==="End"&&(M.preventDefault(),S(Fg(r)))};return m.jsxs(Hg,{ref:g,className:d,children:[l&&m.jsx("input",{type:"hidden",name:l,value:C?.value??""}),m.jsx(Wg,{type:"button",$size:e,$hasError:t,$hasValue:!!C,$disabled:n,disabled:n,className:u,ref:M=>{y.current=M,typeof p=="function"?p(M):p&&"current"in p&&(p.current=M)},onClick:()=>!n&&E(M=>!M),onKeyDown:I,"aria-haspopup":"listbox","aria-expanded":b,"aria-controls":`${x}-listbox`,"aria-invalid":t||void 0,title:C?.label??o??"Select an option",children:C?.label??o??""}),m.jsx(Ug,{$size:e,$disabled:n,$open:b,children:m.jsx(G,{component:Ag,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),m.jsx(Nn,{children:b&&m.jsx(Kg,{ref:v,className:"custom-scrollbar",id:`${x}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":T>=0?`${x}-option-${T}`:void 0,initial:{opacity:0,height:0,scaleY:.8},animate:{opacity:1,height:"auto",scaleY:1},exit:{opacity:0,height:0,scaleY:.8},transition:{duration:.25,ease:[.4,0,.2,1]},onKeyDown:_,children:m.jsx(Yg,{ref:w,className:c,children:r.map((M,K)=>{const W=K===T;return m.jsx(Gg,{id:`${x}-option-${K}`,className:h,role:"option",$size:e,"aria-selected":a===M.value,$active:W,$disabled:M.disabled,onMouseEnter:()=>{!M.disabled&&b&&S(K)},onClick:()=>D(M),children:M.label},M.value)})})})})]})});Fo.displayName="SelectInput";const qg=k.textarea`
722
+ ${ct}
723
+ ${({$size:e})=>Zg[e]}
724
+ ${({$hasError:e})=>e&&dt}
725
+ ${({$disabled:e})=>e&&Ge}
726
+ ${z[20]}
727
727
 
728
728
  resize: ${({$resize:e})=>e};
729
729
 
@@ -736,29 +736,29 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
736
736
  color: var(--color-dark-200);
737
737
  opacity: 1;
738
738
  }
739
- `,f0={sm:`
740
- ${_[20]}
739
+ `,Zg={sm:`
740
+ ${z[20]}
741
741
  height: 6rem;
742
742
  max-height: 12rem;
743
743
  padding: 1rem 1.25rem;
744
744
  `,md:`
745
- ${_[24]}
745
+ ${z[24]}
746
746
  height: 8rem;
747
747
  max-height: 16rem;
748
748
  padding: 1rem 1.25rem;
749
749
  `,lg:`
750
- ${_[24]}
750
+ ${z[24]}
751
751
  height:12rem;
752
752
  max-height: 20rem;
753
753
  padding: 1rem 1.25rem;
754
- `},Xo=h.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:i=3,maxRows:s,className:a,onChange:l,...u},d)=>{const c=f=>{if(o){const p=f.target;p.style.height="auto";const g=p.scrollHeight,w=i*24,x=s?s*24:g;g>x?(p.style.height=`${x}px`,p.style.overflowY="scroll"):(p.style.height=`${Math.max(g,w)}px`,p.style.overflowY="hidden")}l?.(f)};return m.jsx(d0,{ref:d,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:i,className:a,onChange:c,...u})});Xo.displayName="TextAreaInput";const h0=P.div`
755
- ${pt}
756
- ${({$size:e})=>ln[e??"md"]}
757
- `,p0=P.input`
758
- ${er}
759
- `,lc=({size:e="md",leftIcon:t,rightIcon:n=sc,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a})=>{const l=u=>{s?.(u.target.value)};return m.jsxs(h0,{$size:e,className:a,children:[t&&m.jsx(Z,{component:t,size:r,color:o}),m.jsx(p0,{placeholder:i,onChange:l}),n?m.jsx(Z,{component:n,size:r,color:o}):m.jsx(Z,{component:sc,size:r,color:o})]})},m0=P.div`
754
+ `},jo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:i=3,maxRows:s,className:a,onChange:l,...d},u)=>{const c=h=>{if(o){const p=h.target;p.style.height="auto";const g=p.scrollHeight,v=i*24,w=s?s*24:g;g>w?(p.style.height=`${w}px`,p.style.overflowY="scroll"):(p.style.height=`${Math.max(g,v)}px`,p.style.overflowY="hidden")}l?.(h)};return m.jsx(qg,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:i,className:a,onChange:c,...d})});jo.displayName="TextAreaInput";const Jg=k.div`
755
+ ${ct}
756
+ ${({$size:e})=>nn[e??"md"]}
757
+ `,Qg=k.input`
758
+ ${Yn}
759
+ `,ql=({size:e="md",leftIcon:t,rightIcon:n=Yl,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a})=>{const l=d=>{s?.(d.target.value)};return m.jsxs(Jg,{$size:e,className:a,children:[t&&m.jsx(G,{component:t,size:r,color:o}),m.jsx(Qg,{placeholder:i,onChange:l}),n?m.jsx(G,{component:n,size:r,color:o}):m.jsx(G,{component:Yl,size:r,color:o})]})},e0=k.div`
760
760
  position: relative;
761
- `,g0=P.input`
761
+ `,t0=k.input`
762
762
  position: absolute;
763
763
  height: 1.5rem;
764
764
  width: 1.5rem;
@@ -775,7 +775,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
775
775
  outline-color: var(--color-main-orange-primary);
776
776
  outline-offset: 2px;
777
777
  }
778
- `,y0=P.div`
778
+ `,n0=k.div`
779
779
  height: 1.5rem;
780
780
  width: 1.5rem;
781
781
  border: 2px solid;
@@ -794,34 +794,34 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
794
794
  border-color: var(--color-main-orange-primary);
795
795
  }
796
796
 
797
- ${({$hasError:e})=>e&&mt}
798
- ${({$disabled:e})=>e&&Qe}
799
- ${({$checked:e})=>e&&v0}
800
- `,v0=k`
797
+ ${({$hasError:e})=>e&&dt}
798
+ ${({$disabled:e})=>e&&Ge}
799
+ ${({$checked:e})=>e&&r0}
800
+ `,r0=P`
801
801
  background-color: var(--color-main-orange-primary);
802
802
  border-color: var(--color-main-orange-primary);
803
- `,b0=P.svg`
803
+ `,o0=k.svg`
804
804
  height: 1.5rem;
805
805
  width: 1.5rem;
806
806
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
807
807
  fill: none;
808
808
  stroke: currentColor;
809
- `,w0=P.span`
809
+ `,s0=k.span`
810
810
  display: block;
811
811
  width: 60%;
812
812
  height: 2px;
813
813
  background-color: white;
814
814
  border-radius: 1px;
815
- `,qo=h.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:i,checkboxClassName:s,...a},l)=>{const u=h.useId(),d=a.id??u,c=!!n,{size:f,...p}=a,g=h.useRef(null),w=h.useCallback(x=>{if(g.current=x,!!l)if(typeof l=="function")try{l(x)}catch{}else l.current=x},[l]);return h.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),m.jsxs(m0,{className:i,children:[m.jsx(g0,{ref:w,type:"checkbox",checked:c||!1,disabled:r,onChange:o,id:d,name:p.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":c?"true":"false",...p}),m.jsxs(y0,{$checked:!!c||!!t,$hasError:e,$disabled:r,className:s,children:[c&&!t&&m.jsx(b0,{$disabled:r,viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&m.jsx(w0,{})]})]})});qo.displayName="CheckboxInput";const cc=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:i,onClick:s,...a})=>{const l=u=>{n||(o&&o(),s&&s(u))};return m.jsx(Qn,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},x0=P.section`
815
+ `,Ro=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:i,checkboxClassName:s,...a},l)=>{const d=f.useId(),u=a.id??d,c=!!n,{size:h,...p}=a,g=f.useRef(null),v=f.useCallback(w=>{if(g.current=w,!!l)if(typeof l=="function")try{l(w)}catch{}else l.current=w},[l]);return f.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),m.jsxs(e0,{className:i,children:[m.jsx(t0,{ref:v,type:"checkbox",checked:c||!1,disabled:r,onChange:o,id:u,name:p.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":c?"true":"false",...p}),m.jsxs(n0,{$checked:!!c||!!t,$hasError:e,$disabled:r,className:s,children:[c&&!t&&m.jsx(o0,{$disabled:r,viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&m.jsx(s0,{})]})]})});Ro.displayName="CheckboxInput";const Zl=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:i,onClick:s,...a})=>{const l=d=>{n||(o&&o(),s&&s(d))};return m.jsx(Kn,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},i0=k.section`
816
816
  display: flex;
817
817
  align-items: center;
818
818
  justify-content: center;
819
819
  gap: 1rem;
820
- `,tr=h.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:i=!1,onChange:s,onLabelClick:a,className:l,checkboxClassName:u,labelClassName:d,...c},f)=>{const p=h.useId(),g=c.id??p;return m.jsxs(x0,{className:l,children:[m.jsx(qo,{ref:f,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:u,id:g,...c}),t&&m.jsx(cc,{size:e,disabled:i,htmlFor:g,onLabelClick:a,className:d,children:t})]})});tr.displayName="Checkbox";const S0=P.div`
820
+ `,Gn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:i=!1,onChange:s,onLabelClick:a,className:l,checkboxClassName:d,labelClassName:u,...c},h)=>{const p=f.useId(),g=c.id??p;return m.jsxs(i0,{className:l,children:[m.jsx(Ro,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:d,id:g,...c}),t&&m.jsx(Zl,{size:e,disabled:i,htmlFor:g,onLabelClick:a,className:u,children:t})]})});Gn.displayName="Checkbox";const a0=k.div`
821
821
  position: relative;
822
822
  display: inline-block;
823
- `,T0=P.input`
824
- ${pt}
823
+ `,l0=k.input`
824
+ ${ct}
825
825
  text-align: center;
826
826
  padding: 0;
827
827
 
@@ -834,15 +834,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
834
834
  &[type='number'] {
835
835
  -moz-appearance: textfield;
836
836
  }
837
- ${({$size:e})=>E0[e]}
838
- ${({$variant:e})=>e&&C0[e??"outlined"]}
839
- ${({$hasError:e})=>e&&mt}
840
- ${({$disabled:e})=>e&&Qe}
837
+ ${({$size:e})=>d0[e]}
838
+ ${({$variant:e})=>e&&c0[e??"outlined"]}
839
+ ${({$hasError:e})=>e&&dt}
840
+ ${({$disabled:e})=>e&&Ge}
841
841
 
842
842
  &:focus {
843
843
  border: 2px solid var(--color-main-blue-primary);
844
844
  }
845
- `,C0={outlined:`
845
+ `,c0={outlined:`
846
846
  background-color: var(--color-main-white);
847
847
  border: 2px solid var(--color-main-input-borders);
848
848
 
@@ -861,28 +861,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
861
861
  background-color: var(--color-main-white);
862
862
  border: 2px solid var(--color-main-blue-primary);
863
863
  }
864
- `},E0={sm:`
864
+ `},d0={sm:`
865
865
  padding: 0.375rem;
866
866
  width: 2.5rem;
867
867
  height: 2.5rem;
868
- ${_[24]}
868
+ ${z[24]}
869
869
  `,md:`
870
870
  padding: 0.625rem;
871
871
  width: 3rem;
872
872
  height: 3.5rem;
873
- ${_[30]}
873
+ ${z[30]}
874
874
  `,lg:`
875
875
  padding: 0.75rem;
876
876
  width: 3.5rem;
877
877
  height: 4rem;
878
- ${_[40]}
879
- `},Zo=h.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:i=1,type:s="text",...a},l)=>{const u=h.useId(),d=a.id??u;return m.jsx(S0,{children:m.jsx(T0,{ref:l,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:i,type:s,disabled:r,id:d,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});Zo.displayName="PinInput";const uc=(e,t,n,r,o,i,s="text",a,l)=>{const u=e.target.value;if(u.length>1)return;const d=i??o.length;if(s==="number"&&u&&!/^\d$/.test(u))return;const c=[...n];c[t]=u,r(c);const f=c.join("");a?.(f),u&&t<i-1&&o[t+1].current?.focus(),c.every(p=>p!=="")&&c.length>=d&&l?.(f)},dc=(e,t,n,r,o,i)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},fc=(e,t,n,r,o,i,s="text",a,l)=>{e.preventDefault();const u=e.clipboardData.getData("text");if(!u)return;const d=i??o.length,c=[...n];for(let w=0;w<u.length;w++){const x=t+w;if(x>=d)break;const v=u[w];s==="number"&&!/^\d$/.test(v)||(c[x]=v)}r(c),a?.(c.join(""));const f=c.findIndex(w=>w===""),p=f!==-1?Math.min(Math.max(f,t),d-1):d-1;o[p].current?.focus();const g=c.join("");c.every(w=>w!=="")&&c.length>=d&&l?.(g)},hc=e=>Array(e).fill(null).map(()=>h.createRef()),P0=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),k0=P.div`
878
+ ${z[40]}
879
+ `},zo=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:i=1,type:s="text",...a},l)=>{const d=f.useId(),u=a.id??d;return m.jsx(a0,{children:m.jsx(l0,{ref:l,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:i,type:s,disabled:r,id:u,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});zo.displayName="PinInput";const Jl=(e,t,n,r,o,i,s="text",a,l)=>{const d=e.target.value;if(d.length>1)return;const u=i??o.length;if(s==="number"&&d&&!/^\d$/.test(d))return;const c=[...n];c[t]=d,r(c);const h=c.join("");a?.(h),d&&t<i-1&&o[t+1].current?.focus(),c.every(p=>p!=="")&&c.length>=u&&l?.(h)},Ql=(e,t,n,r,o,i)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},ec=(e,t,n,r,o,i,s="text",a,l)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=i??o.length,c=[...n];for(let v=0;v<d.length;v++){const w=t+v;if(w>=u)break;const y=d[v];s==="number"&&!/^\d$/.test(y)||(c[w]=y)}r(c),a?.(c.join(""));const h=c.findIndex(v=>v===""),p=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[p].current?.focus();const g=c.join("");c.every(v=>v!=="")&&c.length>=u&&l?.(g)},tc=e=>Array(e).fill(null).map(()=>f.createRef()),u0=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),h0=k.div`
880
880
  display: flex;
881
881
  gap: 8px;
882
882
  align-items: center;
883
- `,Jo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:i,onComplete:s,className:a,pinInputClassName:l})=>{const[u,d]=h.useState(Array(e).fill("")),c=h.useMemo(()=>hc(e),[e]);return m.jsx(k0,{className:a,children:Array.from({length:e},(f,p)=>m.jsx(Zo,{className:l,size:t,variant:n,hasError:r,value:u[p],onChange:g=>uc(g,p,u,d,c,e,o,i,s),onKeyDown:g=>dc(g,p,u,c,d,i),onPaste:g=>fc(g,p,u,d,c,e,o,i,s),ref:c[p]},p))})};Jo.displayName="PinInputGroup";const A0=P.div`
883
+ `,_o=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:i,onComplete:s,className:a,pinInputClassName:l})=>{const[d,u]=f.useState(Array(e).fill("")),c=f.useMemo(()=>tc(e),[e]);return m.jsx(h0,{className:a,children:Array.from({length:e},(h,p)=>m.jsx(zo,{className:l,size:t,variant:n,hasError:r,value:d[p],onChange:g=>Jl(g,p,d,u,c,e,o,i,s),onKeyDown:g=>Ql(g,p,d,c,u,i),onPaste:g=>ec(g,p,d,u,c,e,o,i,s),ref:c[p]},p))})};_o.displayName="PinInputGroup";const f0=k.div`
884
884
  position: relative;
885
- `,D0=P.input`
885
+ `,p0=k.input`
886
886
  position: absolute;
887
887
  height: 1.5rem;
888
888
  width: 1.5rem;
@@ -899,9 +899,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
899
899
  outline-color: var(--color-main-orange-primary);
900
900
  outline-offset: 2px;
901
901
  }
902
- `,$0=k`
902
+ `,m0=P`
903
903
  border-color: var(--color-main-orange-primary);
904
- `,M0=P.div`
904
+ `,g0=k.div`
905
905
  height: 1.5rem;
906
906
  width: 1.5rem;
907
907
  border: 2px solid var(--color-main-input-borders);
@@ -923,11 +923,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
923
923
  border-color: var(--color-main-warning-state);
924
924
  `}
925
925
  ${({$disabled:e})=>e&&`
926
- ${Qe}
926
+ ${Ge}
927
927
  border: 2px solid var(--color-dark-200) !important;
928
928
  `}
929
- ${({$checked:e})=>e&&$0}
930
- `,V0=P.span`
929
+ ${({$checked:e})=>e&&m0}
930
+ `,y0=k.span`
931
931
  display: block;
932
932
  height: 0.625rem;
933
933
  width: 0.625rem;
@@ -936,35 +936,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
936
936
  background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
937
937
  opacity: ${({$checked:e})=>e?1:0};
938
938
  transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
939
- `,Qo=h.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:i,...s},a)=>{const l=h.useId(),u=s.id??l,d=!!t,{size:c,...f}=s;return m.jsxs(A0,{className:o,children:[m.jsx(D0,{ref:a,type:"radio",id:u,checked:d||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":d?"true":"false",...f}),m.jsx(M0,{$checked:!!d,$hasError:e,$disabled:n,className:i,children:m.jsx(V0,{$disabled:n,$checked:d})})]})});Qo.displayName="RadioInputDot";const es=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>m.jsx(Qn,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});es.displayName="RadioInputLabel";const I0=P.section`
939
+ `,Ho=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:i,...s},a)=>{const l=f.useId(),d=s.id??l,u=!!t,{size:c,...h}=s;return m.jsxs(f0,{className:o,children:[m.jsx(p0,{ref:a,type:"radio",id:d,checked:u||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":u?"true":"false",...h}),m.jsx(g0,{$checked:!!u,$hasError:e,$disabled:n,className:i,children:m.jsx(y0,{$disabled:n,$checked:u})})]})});Ho.displayName="RadioInputDot";const Uo=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>m.jsx(Kn,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});Uo.displayName="RadioInputLabel";const v0=k.section`
940
940
  display: flex;
941
941
  align-items: center;
942
942
  justify-content: center;
943
943
  gap: 1rem;
944
- `,ts=h.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...u},d)=>{const c=h.useId(),f=u.id??c;return m.jsxs(I0,{className:s,children:[m.jsx(Qo,{ref:d,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:f,...u}),t&&m.jsx(es,{size:e,disabled:o,htmlFor:f,className:l,children:t})]})});ts.displayName="RadioInput";var N0=process.env.NODE_ENV==="production";function je(e,t){if(!N0){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var nr={exports:{}},W={};/** @license React v16.13.1
945
- * react-is.production.min.js
946
- *
947
- * Copyright (c) Facebook, Inc. and its affiliates.
948
- *
949
- * This source code is licensed under the MIT license found in the
950
- * LICENSE file in the root directory of this source tree.
951
- */var pc;function L0(){if(pc)return W;pc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function b(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case t:switch(y=y.type,y){case l:case u:case r:case i:case o:case c:return y;default:switch(y=y&&y.$$typeof,y){case a:case d:case g:case p:case s:return y;default:return S}}case n:return S}}}function C(y){return b(y)===u}return W.AsyncMode=l,W.ConcurrentMode=u,W.ContextConsumer=a,W.ContextProvider=s,W.Element=t,W.ForwardRef=d,W.Fragment=r,W.Lazy=g,W.Memo=p,W.Portal=n,W.Profiler=i,W.StrictMode=o,W.Suspense=c,W.isAsyncMode=function(y){return C(y)||b(y)===l},W.isConcurrentMode=C,W.isContextConsumer=function(y){return b(y)===a},W.isContextProvider=function(y){return b(y)===s},W.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},W.isForwardRef=function(y){return b(y)===d},W.isFragment=function(y){return b(y)===r},W.isLazy=function(y){return b(y)===g},W.isMemo=function(y){return b(y)===p},W.isPortal=function(y){return b(y)===n},W.isProfiler=function(y){return b(y)===i},W.isStrictMode=function(y){return b(y)===o},W.isSuspense=function(y){return b(y)===c},W.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===u||y===i||y===o||y===c||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===s||y.$$typeof===a||y.$$typeof===d||y.$$typeof===x||y.$$typeof===v||y.$$typeof===T||y.$$typeof===w)},W.typeOf=b,W}var Y={};/** @license React v16.13.1
952
- * react-is.development.js
953
- *
954
- * Copyright (c) Facebook, Inc. and its affiliates.
955
- *
956
- * This source code is licensed under the MIT license found in the
957
- * LICENSE file in the root directory of this source tree.
958
- */var mc;function O0(){return mc||(mc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function b(M){return typeof M=="string"||typeof M=="function"||M===r||M===u||M===i||M===o||M===c||M===f||typeof M=="object"&&M!==null&&(M.$$typeof===g||M.$$typeof===p||M.$$typeof===s||M.$$typeof===a||M.$$typeof===d||M.$$typeof===x||M.$$typeof===v||M.$$typeof===T||M.$$typeof===w)}function C(M){if(typeof M=="object"&&M!==null){var dn=M.$$typeof;switch(dn){case t:var et=M.type;switch(et){case l:case u:case r:case i:case o:case c:return et;default:var or=et&&et.$$typeof;switch(or){case a:case d:case g:case p:case s:return or;default:return dn}}case n:return dn}}}var y=l,S=u,E=a,$=s,N=t,K=d,D=r,G=g,ee=p,oe=n,ve=i,j=o,L=c,H=!1;function B(M){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(M)||C(M)===l}function V(M){return C(M)===u}function J(M){return C(M)===a}function se(M){return C(M)===s}function O(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function X(M){return C(M)===d}function q(M){return C(M)===r}function ce(M){return C(M)===g}function Se(M){return C(M)===p}function z(M){return C(M)===n}function me(M){return C(M)===i}function ze(M){return C(M)===o}function Ie(M){return C(M)===c}Y.AsyncMode=y,Y.ConcurrentMode=S,Y.ContextConsumer=E,Y.ContextProvider=$,Y.Element=N,Y.ForwardRef=K,Y.Fragment=D,Y.Lazy=G,Y.Memo=ee,Y.Portal=oe,Y.Profiler=ve,Y.StrictMode=j,Y.Suspense=L,Y.isAsyncMode=B,Y.isConcurrentMode=V,Y.isContextConsumer=J,Y.isContextProvider=se,Y.isElement=O,Y.isForwardRef=X,Y.isFragment=q,Y.isLazy=ce,Y.isMemo=Se,Y.isPortal=z,Y.isProfiler=me,Y.isStrictMode=ze,Y.isSuspense=Ie,Y.isValidElementType=b,Y.typeOf=C})()),Y}var gc;function F0(){return gc||(gc=1,process.env.NODE_ENV==="production"?nr.exports=L0():nr.exports=O0()),nr.exports}var ns,yc;function R0(){if(yc)return ns;yc=1;var e=F0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,f=Object.prototype;function p(g,w,x){if(typeof w!="string"){if(f){var v=c(w);v&&v!==f&&p(g,v,x)}var T=l(w);u&&(T=T.concat(u(w)));for(var b=s(g),C=s(w),y=0;y<T.length;++y){var S=T[y];if(!n[S]&&!(x&&x[S])&&!(C&&C[S])&&!(b&&b[S])){var E=d(w,S);try{a(g,S,E)}catch{}}}}return g}return ns=p,ns}R0();function _e(){return _e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e.apply(this,arguments)}function un(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var rr=h.createContext(void 0);rr.displayName="FormikContext",rr.Provider,rr.Consumer;function vc(){var e=h.useContext(rr);return e||(process.env.NODE_ENV!=="production"?je(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):je()),e}var rs=function(t){return typeof t=="function"},B0=function(t){return h.Children.count(t)===0};function j0(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,l=un(e,["validate","name","render","children","as","component","className"]),u=vc(),d=un(u,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&h.useEffect(function(){r&&(process.env.NODE_ENV!=="production"?je(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):je()),i&&o&&rs(o)&&(process.env.NODE_ENV!=="production"?je(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):je()),s&&o&&rs(o)&&(process.env.NODE_ENV!=="production"?je(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):je()),r&&o&&!B0(o)&&(process.env.NODE_ENV!=="production"?je(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):je())},[]);var c=d.registerField,f=d.unregisterField;h.useEffect(function(){return c(n,{validate:t}),function(){f(n)}},[c,f,n,t]);var p=d.getFieldProps(_e({name:n},l)),g=d.getFieldMeta(n),w={field:p,form:d};if(r)return r(_e({},w,{meta:g}));if(rs(o))return o(_e({},w,{meta:g}));if(s){if(typeof s=="string"){var x=l.innerRef,v=un(l,["innerRef"]);return h.createElement(s,_e({ref:x},p,v,{className:a}),o)}return h.createElement(s,_e({field:p,form:d},l,{className:a}),o)}var T=i||"input";if(typeof T=="string"){var b=l.innerRef,C=un(l,["innerRef"]);return h.createElement(T,_e({ref:b},p,C,{className:a}),o)}return h.createElement(T,_e({},p,l,{className:a}),o)}var _0=h.forwardRef(function(e,t){var n=e.action,r=un(e,["action"]),o=n??"#",i=vc(),s=i.handleReset,a=i.handleSubmit;return h.createElement("form",_e({onSubmit:a,ref:t,onReset:s,action:o},r))});_0.displayName="Form";const bc=P.div`
944
+ `,Wo=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...d},u)=>{const c=f.useId(),h=d.id??c;return m.jsxs(v0,{className:s,children:[m.jsx(Ho,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:h,...d}),t&&m.jsx(Uo,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});Wo.displayName="RadioInput";const nc=k.div`
959
945
  display: flex;
960
946
  flex-direction: column;
961
947
  gap: 0.5rem;
962
948
  width: 100%;
963
- `,z0=P.div`
949
+ `,b0=k.div`
964
950
  display: flex;
965
951
  flex-direction: column;
966
952
  gap: 0.75rem;
967
- `,H0=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checked:u,checkboxLabel:d,radioName:c,pinLength:f=6,pinType:p="number",className:g,inputClassName:w,labelClassName:x,messageErrorClassName:v,leftIcon:T,rightIcon:b,iconSize:C,iconColor:y,onOptionSelect:S,onRadioChange:E,onPinComplete:$,onChange:N,...K})=>m.jsx(j0,{name:t,children:({field:D,meta:G,form:ee})=>{const oe=!!(G.touched&&G.error),ve=oe?G.error:void 0,j=()=>{const L={field:D,id:e?.toString?.()||t,name:t,className:w,hasError:oe,disabled:s,size:o,placeholder:i,type:r,leftIcon:T,rightIcon:b,iconSize:C,iconColor:y,onChange:N,...K},H=nc(r,L,{options:l,onOptionSelect:V=>{ee.setFieldValue(t,V.value),S?.(V)}},{label:n,checked:u,checkboxLabel:d},{options:l,radioName:c,onRadioChange:E},{pinLength:f,pinType:p,onPinComplete:$},{rows:K.rows||4},{onSearch:K.onSearch}),B={...H.props,placeholder:H.props.placeholder||i,required:a,"aria-required":a||void 0,"aria-invalid":oe||void 0,"aria-describedby":oe?`${e?.toString?.()||t}-error`:void 0};switch(H.component){case"textarea":{const V=J=>{N?N(J):D.onChange(J)};return m.jsx(Xo,{...D,...B,hasError:oe,onChange:V})}case"select":return m.jsx(Go,{...B,value:D.value,hasError:oe,onChange:V=>{D.onChange(V),N?.(V)}});case"checkbox":return m.jsx(tr,{...B,checked:!!D.value,hasError:oe,onChange:V=>{ee.setFieldValue(t,V.target.checked),B.onChange?.(V)}});case"radio":{const V=l;return m.jsx(z0,{children:V.map(J=>m.jsx(ts,{name:c||t,value:J.value,label:J.label,size:o,hasError:oe,disabled:s,checked:D.value===J.value,onChange:se=>{const O=se.target.value,X=typeof J.value=="number"?Number(O):O;ee.setFieldValue(t,X),E?.(se)}},J.value))})}case"pin":return m.jsx(Jo,{...B,value:D.value||"",hasError:oe,onChange:V=>ee.setFieldValue(t,V),onComplete:V=>{ee.setFieldValue(t,V),$?.(V)}});case"password":{const{...V}=B;return m.jsx(ic,{...V,...D,onChange:N||D.onChange})}case"search":return m.jsx(lc,{...B,value:D.value,onChange:V=>{D.onChange(V),N?.(V)}});default:return m.jsx(Ko,{...B,...D,onChange:N||D.onChange})}};return r==="checkbox"?m.jsxs(bc,{className:g,children:[j(),oe&&m.jsx(Yo,{id:`${e?.toString?.()||t}-error`,size:o,className:v,children:ve})]}):m.jsxs(bc,{className:g,children:[n&&m.jsx(Qn,{htmlFor:e?.toString?.()||t,size:o,required:a,disabled:s,className:x,children:n}),j(),oe&&m.jsx(Yo,{id:`${e?.toString?.()||t}-error`,size:o,className:v,children:ve})]})}}),U0={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},wc={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},W0={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},Y0=P(ht.div)`
953
+ `,w0=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",className:p,inputClassName:g,labelClassName:v,messageErrorClassName:w,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onOptionSelect:T,onRadioChange:S,onPinComplete:C,onChange:D,...I})=>{const[_,M,K]=Ac.useField(t),W=!!(M.touched&&M.error),ke=W?M.error:void 0,re=e?.toString?.()||t,F={required:a||void 0,"aria-required":a||void 0,"aria-invalid":W||void 0,"aria-describedby":W?`${re}-error`:void 0},L=V=>{if(D)return D(V);_.onChange(V)};let R;switch(r){case"textarea":{const V=j=>{D?D(j):_.onChange(j)};R=m.jsx(jo,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,onChange:V,...I,...F});break}case"select":{R=m.jsx(Fo,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,value:_.value??"",onChange:V=>{_.onChange(V);const j=l.find(oe=>String(oe.value)===V.target.value);j&&T?.(j)},options:l,placeholder:i||"Selecciona una opción",...I,...F});break}case"checkbox":{R=m.jsx(Gn,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,checked:!!_.value,label:d,onChange:V=>{K.setValue(V.target.checked)},...I,...F});break}case"radio":{const V=l;R=m.jsx(b0,{children:V.map(j=>m.jsx(Wo,{name:u||t,value:j.value,label:j.label,size:o,hasError:W,disabled:s,checked:_.value===j.value,onChange:oe=>{const se=oe.target.value,O=typeof j.value=="number"?Number(se):se;K.setValue(O),S?.(oe)},...F},j.value))});break}case"pin":{R=m.jsx(_o,{length:c,type:h,size:o,hasError:W,onChange:V=>K.setValue(V),onComplete:V=>{K.setValue(V),C?.(V)},...I,...F});break}case"password":{const{rightIcon:V,...j}=I;R=m.jsx(Gl,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,leftIcon:y,iconSize:b,iconColor:E,onChange:L,...j,...F});break}case"search":{R=m.jsx(ql,{className:g,size:o,placeholder:i,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onSearch:I.onSearch,...F});break}default:R=m.jsx(Oo,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,value:_.value??"",onChange:L,...I,...F})}return r==="checkbox"?m.jsxs(nc,{className:p,children:[R,W&&m.jsx(Bo,{id:`${re}-error`,size:o,className:w,children:ke})]}):m.jsxs(nc,{className:p,children:[n&&m.jsx(Kn,{htmlFor:re,size:o,required:a,disabled:s,className:v,children:n}),R,W&&m.jsx(Bo,{id:`${re}-error`,size:o,className:w,children:ke})]})},x0={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},rc={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},S0={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},T0=k(lt.div)`
968
954
  position: fixed;
969
955
  inset: 0;
970
956
  z-index: 50;
@@ -978,7 +964,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
978
964
  @media (max-width: 768px) {
979
965
  padding: 0.5rem;
980
966
  }
981
- `,K0=P(ht.div)`
967
+ `,C0=k(lt.div)`
982
968
  position: relative;
983
969
  display: flex;
984
970
  flex-direction: column;
@@ -1005,7 +991,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1005
991
  outline: none;
1006
992
  box-shadow: var(--shadow-hover-black-card);
1007
993
  }
1008
- `,G0=P.button`
994
+ `,k0=k.button`
1009
995
  position: absolute;
1010
996
  top: 1rem;
1011
997
  right: 1rem;
@@ -1024,7 +1010,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1024
1010
  transform: scale(1.1);
1025
1011
  outline: none;
1026
1012
  }
1027
- `,xc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:i=!1,size:s="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:c})=>{const f=h.useRef(null),p=h.useRef(null),g=x=>{o&&x.target===x.currentTarget&&t()};h.useEffect(()=>{const x=v=>{l&&v.key==="Escape"&&t()};return e?(document.addEventListener("keydown",x),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",x),document.body.style.overflow=""}},[e,t,l]),h.useEffect(()=>{if(!e)return;p.current=document.activeElement;const x=f.current,v=()=>{x&&(x.hasAttribute("tabindex")||x.setAttribute("tabindex","-1"),x.focus())},T=window.setTimeout(v,0);function b(y){const S=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'];return Array.from(y.querySelectorAll(S.join(","))).filter(E=>!!(E.offsetWidth||E.offsetHeight||E.getClientRects().length))}const C=y=>{if(y.key!=="Tab"||!x)return;const S=b(x);if(S.length===0){y.preventDefault(),x.focus();return}const E=S[0],$=S[S.length-1],N=document.activeElement;!y.shiftKey&&N===$?(y.preventDefault(),E.focus()):y.shiftKey&&N===E&&(y.preventDefault(),$.focus())};return document.addEventListener("keydown",C),()=>{window.clearTimeout(T),document.removeEventListener("keydown",C),p.current&&p.current.focus()}},[e]);const w=m.jsx(zn,{children:e&&m.jsx(Y0,{...wc,onClick:g,children:m.jsxs(K0,{...U0,ref:f,$size:s,$fullScreen:a,className:r,onClick:x=>x.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":u,"aria-labelledby":u?void 0:d,"aria-describedby":c,children:[i&&m.jsx(G0,{className:`${cn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:m.jsx(Z,{component:Ug,size:"sm"})}),n]})})});return typeof document>"u"?w:ps.createPortal(w,document.body)},X0=P.div`
1013
+ `,oc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:i=!1,size:s="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:c})=>{const h=f.useRef(null),p=f.useRef(null),g=w=>{o&&w.target===w.currentTarget&&t()};f.useEffect(()=>{const w=y=>{l&&y.key==="Escape"&&t()};return e?(document.addEventListener("keydown",w),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=""}},[e,t,l]),f.useEffect(()=>{if(!e)return;p.current=document.activeElement;const w=h.current,y=()=>{w&&(w.hasAttribute("tabindex")||w.setAttribute("tabindex","-1"),w.focus())},x=window.setTimeout(y,0);function b(T){const S=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'];return Array.from(T.querySelectorAll(S.join(","))).filter(C=>!!(C.offsetWidth||C.offsetHeight||C.getClientRects().length))}const E=T=>{if(T.key!=="Tab"||!w)return;const S=b(w);if(S.length===0){T.preventDefault(),w.focus();return}const C=S[0],D=S[S.length-1],I=document.activeElement;!T.shiftKey&&I===D?(T.preventDefault(),C.focus()):T.shiftKey&&I===C&&(T.preventDefault(),D.focus())};return document.addEventListener("keydown",E),()=>{window.clearTimeout(x),document.removeEventListener("keydown",E),p.current&&p.current.focus()}},[e]);const v=m.jsx(Nn,{children:e&&m.jsx(T0,{...rc,onClick:g,children:m.jsxs(C0,{...x0,ref:h,$size:s,$fullScreen:a,className:r,onClick:w=>w.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":d,"aria-labelledby":d?void 0:u,"aria-describedby":c,children:[i&&m.jsx(k0,{className:`${rn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:m.jsx(G,{component:Dg,size:"sm"})}),n]})})});return typeof document>"u"?v:rs.createPortal(v,document.body)},P0=k.div`
1028
1014
  display: flex;
1029
1015
  align-items: center;
1030
1016
  justify-content: space-between;
@@ -1057,7 +1043,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1057
1043
  flex-shrink: 0;
1058
1044
  margin-left: auto;
1059
1045
  }
1060
- `,Sc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>m.jsx(X0,{$showDivider:e,$variant:t,className:r,...o,children:n}),q0=P.div`
1046
+ `,sc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>m.jsx(P0,{$showDivider:e,$variant:t,className:r,...o,children:n}),E0=k.div`
1061
1047
  position: relative;
1062
1048
  display: flex;
1063
1049
  flex-direction: column;
@@ -1070,7 +1056,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1070
1056
  ${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
1071
1057
 
1072
1058
  ${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
1073
- `,Tc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>m.jsx(q0,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),Z0=P.div`
1059
+ `,ic=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>m.jsx(E0,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),A0=k.div`
1074
1060
  display: flex;
1075
1061
  align-items: center;
1076
1062
  width: 100%;
@@ -1086,7 +1072,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1086
1072
  bottom: 0;
1087
1073
  background: var(--color-main-white);
1088
1074
  `}
1089
- `,Cc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>m.jsx(Z0,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),J0=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:i,bodyFooter:s,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:u="Cancel",size:d="md",fullScreen:c=!1,showCloseButton:f=!0,closeOnBackdropClick:p=!1,containerClassName:g,headerClassName:w,bodyClassName:x,footerClassName:v,initiallyConfirmed:T=!1,onConfirmChange:b})=>{const[C,y]=h.useState(T);h.useEffect(()=>{e||y(T)},[e,T]);const S=E=>{y(E),b?.(E)};return m.jsxs(xc,{isOpen:e,onClose:n,size:d,fullScreen:c,showCloseButton:f,closeOnBackdropClick:p,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[m.jsx(Sc,{showDivider:!0,className:w,children:m.jsx(Mn,{id:"tac-title",size:20,children:r})}),m.jsxs(Tc,{padded:!0,showBottomDivider:!0,className:x,children:[o&&m.jsx(Vn,{id:"tac-subtitle",size:16,children:o}),i,s]}),m.jsxs(Cc,{showDivider:!0,align:"space-between",className:v,children:[m.jsx(tr,{label:a,checked:C,onChange:E=>S(E.target.checked)}),m.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[m.jsx(Uo,{variant:"secondary",onClick:n,children:u}),m.jsx(Uo,{variant:"primary",onClick:t,disabled:!C,children:l})]})]})]})},os=h.createContext(void 0),Ec=({children:e})=>{const[t,n]=h.useState(!1),[r,o]=h.useState(!1);return m.jsx(os.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},Pc=()=>{const e=h.useContext(os);if(!e)throw new Error("useSidebar debe usarse dentro de SidebarProvider");return e},ss=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),Q0=P.button`
1075
+ `,ac=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>m.jsx(A0,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),D0=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:i,bodyFooter:s,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:c=!1,showCloseButton:h=!0,closeOnBackdropClick:p=!1,containerClassName:g,headerClassName:v,bodyClassName:w,footerClassName:y,initiallyConfirmed:x=!1,onConfirmChange:b})=>{const[E,T]=f.useState(x);f.useEffect(()=>{e||T(x)},[e,x]);const S=C=>{T(C),b?.(C)};return m.jsxs(oc,{isOpen:e,onClose:n,size:u,fullScreen:c,showCloseButton:h,closeOnBackdropClick:p,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[m.jsx(sc,{showDivider:!0,className:v,children:m.jsx(Cn,{id:"tac-title",size:20,children:r})}),m.jsxs(ic,{padded:!0,showBottomDivider:!0,className:w,children:[o&&m.jsx(kn,{id:"tac-subtitle",size:16,children:o}),i,s]}),m.jsxs(ac,{showDivider:!0,align:"space-between",className:y,children:[m.jsx(Gn,{label:a,checked:E,onChange:C=>S(C.target.checked)}),m.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[m.jsx(Lo,{variant:"secondary",onClick:n,children:d}),m.jsx(Lo,{variant:"primary",onClick:t,disabled:!E,children:l})]})]})]})},Ko=f.createContext(void 0),lc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return m.jsx(Ko.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},cc=()=>{const e=f.useContext(Ko);if(!e)throw new Error("useSidebar debe usarse dentro de SidebarProvider");return e},Yo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),M0=k.button`
1090
1076
  width: 100%;
1091
1077
  display: flex;
1092
1078
  align-items: center;
@@ -1121,36 +1107,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1121
1107
  }
1122
1108
 
1123
1109
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1124
- `,ey=P.span`
1110
+ `,$0=k.span`
1125
1111
  display: inline-flex;
1126
1112
  align-items: center;
1127
1113
  gap: 0.75rem;
1128
1114
  min-width: 0;
1129
- `,ty=P(Vn)`
1115
+ `,V0=k(kn)`
1130
1116
  font-weight: ${({$level:e})=>e===0?600:500};
1131
1117
  color: var(--color-main-blue-primary);
1132
1118
  white-space: nowrap;
1133
1119
  overflow: hidden;
1134
1120
  text-overflow: ellipsis;
1135
- `,ny=P(ht.div)`
1121
+ `,I0=k(lt.div)`
1136
1122
  background-color: transparent;
1137
1123
  overflow: hidden;
1138
1124
  will-change: height, opacity, transform;
1139
- `,ry=P.div`
1125
+ `,L0=k.div`
1140
1126
  width: 100%;
1141
1127
  ${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
1142
- `,oy=P.span`
1128
+ `,N0=k.span`
1143
1129
  width: 0.625rem;
1144
1130
  height: 0.125rem;
1145
1131
  background: var(--color-main-blue-primary);
1146
1132
  border-radius: 1px;
1147
1133
  flex: 0 0 auto;
1148
- `,sy=P.div`
1149
- ${cn}
1134
+ `,B0=k.div`
1135
+ ${rn}
1150
1136
  transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
1151
1137
  pointer-events: none;
1152
1138
  transition: transform 0.3s ease-out;
1153
- `,kc=({item:e,userRoles:t,level:n=0,onNavigate:r,activePath:o})=>{const[i,s]=h.useState(!1),{isCollapsed:a}=Pc(),l=h.useMemo(()=>(e.children||[]).filter(p=>ss(t,p.permissions)),[e.children,t]);if(!h.useMemo(()=>ss(t,e.permissions),[t,e.permissions]))return null;const d=l.length>0,c=!!(e.path&&o&&o.startsWith(e.path)),f=()=>{d?s(p=>!p):e.path&&r(e.path)};return m.jsxs(ry,{$level:n,children:[m.jsxs(Q0,{onClick:f,$level:n,$collapsed:a,$active:c,$expanded:i&&d,title:a?e.label:"",children:[m.jsxs(ey,{children:[n>0&&!a&&m.jsx(oy,{}),e.icon&&m.jsx(Z,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&m.jsx(ty,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&d&&m.jsx(sy,{$disabled:a,$open:i,children:m.jsx(Z,{component:zg,size:"sm",color:"var(--color-main-blue-primary)"})})]}),m.jsx(zn,{initial:!1,children:!a&&i&&d&&m.jsx(ny,{$level:n+1,...W0,children:l.map(p=>m.jsx(kc,{item:p,userRoles:t,level:n+1,onNavigate:r,activePath:o},p.id))})})]})},iy=P(ht.div)`
1139
+ `,dc=({item:e,userRoles:t,level:n=0,onNavigate:r,activePath:o})=>{const[i,s]=f.useState(!1),{isCollapsed:a}=cc(),l=f.useMemo(()=>(e.children||[]).filter(p=>Yo(t,p.permissions)),[e.children,t]);if(!f.useMemo(()=>Yo(t,e.permissions),[t,e.permissions]))return null;const u=l.length>0,c=!!(e.path&&o&&o.startsWith(e.path)),h=()=>{u?s(p=>!p):e.path&&r(e.path)};return m.jsxs(L0,{$level:n,children:[m.jsxs(M0,{onClick:h,$level:n,$collapsed:a,$active:c,$expanded:i&&u,title:a?e.label:"",children:[m.jsxs($0,{children:[n>0&&!a&&m.jsx(N0,{}),e.icon&&m.jsx(G,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&m.jsx(V0,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&u&&m.jsx(B0,{$disabled:a,$open:i,children:m.jsx(G,{component:Eg,size:"sm",color:"var(--color-main-blue-primary)"})})]}),m.jsx(Nn,{initial:!1,children:!a&&i&&u&&m.jsx(I0,{$level:n+1,...S0,children:l.map(p=>m.jsx(dc,{item:p,userRoles:t,level:n+1,onNavigate:r,activePath:o},p.id))})})]})},O0=k(lt.div)`
1154
1140
  position: fixed;
1155
1141
  inset: 0;
1156
1142
  background: rgba(0, 0, 0, 0.5);
@@ -1159,7 +1145,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1159
1145
  @media (max-width: 767px) {
1160
1146
  display: block;
1161
1147
  }
1162
- `,ay=P.aside`
1148
+ `,F0=k.aside`
1163
1149
  position: fixed;
1164
1150
  left: 0;
1165
1151
  top: 0;
@@ -1178,7 +1164,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1178
1164
  @media (min-width: 768px) {
1179
1165
  transform: translateX(0);
1180
1166
  }
1181
- `,ly=P.div`
1167
+ `,j0=k.div`
1182
1168
  display: flex;
1183
1169
  align-items: center;
1184
1170
  justify-content: space-between;
@@ -1186,16 +1172,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1186
1172
  padding: 1rem;
1187
1173
 
1188
1174
  ${({$collapsed:e})=>e?"flex-direction: column":""};
1189
- `,cy=P.div`
1175
+ `,R0=k.div`
1190
1176
  display: flex;
1191
1177
  align-items: center;
1192
1178
  gap: 0.5rem;
1193
- `,uy=P.img`
1179
+ `,z0=k.img`
1194
1180
  display: block;
1195
1181
  height: 4.375rem;
1196
1182
  width: auto;
1197
1183
  object-fit: contain;
1198
- `,dy=P.nav`
1184
+ `,_0=k.nav`
1199
1185
  display: flex;
1200
1186
  flex-direction: column;
1201
1187
  justify-content: flex-start;
@@ -1203,7 +1189,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1203
1189
  flex: 1;
1204
1190
  overflow-y: auto;
1205
1191
  padding: 0.25rem 0;
1206
- `,fy=P.button`
1192
+ `,H0=k.button`
1207
1193
  display: flex;
1208
1194
  align-items: center;
1209
1195
  justify-content: center;
@@ -1229,7 +1215,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1229
1215
  @media (max-width: 767px) {
1230
1216
  display: none;
1231
1217
  }
1232
- `,hy=P.button`
1218
+ `,U0=k.button`
1233
1219
  position: fixed;
1234
1220
  top: 0.5rem;
1235
1221
  left: 1rem;
@@ -1240,7 +1226,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1240
1226
  @media (min-width: 768px) {
1241
1227
  display: none;
1242
1228
  }
1243
- `,is=({navigationConfig:e,userRoles:t=[],onNavigate:n=()=>{},activePath:r,logoImgSrc:o,logoImgCollapse:i})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:u}=Pc(),d=c=>{n(c),typeof window<"u"&&window.innerWidth<768&&u(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(zn,{children:l&&m.jsx(iy,{...wc,onClick:()=>u(!1)})}),m.jsxs(ay,{$collapsed:l?!1:s,$open:l,children:[m.jsxs(ly,{$collapsed:s,children:[m.jsx(cy,{children:m.jsx(uy,{$collapsed:s,src:s?i:o,alt:"Total Civil Construction"})}),m.jsx(fy,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:m.jsx(Z,{component:oc,size:"md",color:"var(--color-main-blue-primary)"})})]}),m.jsx(dy,{children:e.map(c=>m.jsx(kc,{item:c,userRoles:t,onNavigate:d,activePath:r},c.id))})]}),m.jsx(hy,{onClick:()=>{u(!0),a(!1)},$hidden:l,children:m.jsx(Z,{component:oc,size:30})})]})};is.displayName="Sidebar";const py={underlined:k`
1229
+ `,Go=({navigationConfig:e,userRoles:t=[],onNavigate:n=()=>{},activePath:r,logoImgSrc:o,logoImgCollapse:i})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:d}=cc(),u=c=>{n(c),typeof window<"u"&&window.innerWidth<768&&d(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(Nn,{children:l&&m.jsx(O0,{...rc,onClick:()=>d(!1)})}),m.jsxs(F0,{$collapsed:l?!1:s,$open:l,children:[m.jsxs(j0,{$collapsed:s,children:[m.jsx(R0,{children:m.jsx(z0,{$collapsed:s,src:s?i:o,alt:"Total Civil Construction"})}),m.jsx(H0,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:m.jsx(G,{component:Kl,size:"md",color:"var(--color-main-blue-primary)"})})]}),m.jsx(_0,{children:e.map(c=>m.jsx(dc,{item:c,userRoles:t,onNavigate:u,activePath:r},c.id))})]}),m.jsx(U0,{onClick:()=>{d(!0),a(!1)},$hidden:l,children:m.jsx(G,{component:Kl,size:30})})]})};Go.displayName="Sidebar";const W0={underlined:P`
1244
1230
  color: var(--color-main-orange-primary);
1245
1231
  text-decoration-thickness: 1px;
1246
1232
  text-underline-offset: 2px;
@@ -1270,7 +1256,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1270
1256
  text-decoration-thickness: 1px;
1271
1257
  text-underline-offset: 2px;
1272
1258
  }
1273
- `,plain:k`
1259
+ `,plain:P`
1274
1260
  color: var(--color-main-orange-primary);
1275
1261
  text-decoration: none;
1276
1262
 
@@ -1300,7 +1286,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1300
1286
  text-decoration-thickness: 1px;
1301
1287
  text-underline-offset: 2px;
1302
1288
  }
1303
- `},my=k`
1289
+ `},K0=P`
1304
1290
  color: var(--color-dark-200);
1305
1291
  cursor: not-allowed;
1306
1292
  pointer-events: none;
@@ -1318,16 +1304,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1318
1304
  text-decoration: none;
1319
1305
  transform: none;
1320
1306
  }
1321
- `,gy={sm:k`
1307
+ `,Y0={sm:P`
1322
1308
  gap: 0.25rem;
1323
- ${_[14]}
1324
- `,md:k`
1309
+ ${z[14]}
1310
+ `,md:P`
1325
1311
  gap: 0.5rem;
1326
- ${_[16]}
1327
- `,lg:k`
1312
+ ${z[16]}
1313
+ `,lg:P`
1328
1314
  gap: 0.75rem;
1329
- ${_[20]}
1330
- `},yy=P.a`
1315
+ ${z[20]}
1316
+ `},G0=k.a`
1331
1317
  display: inline-flex;
1332
1318
  align-items: center;
1333
1319
  border-radius: 0.25rem;
@@ -1339,19 +1325,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1339
1325
 
1340
1326
  cursor: pointer;
1341
1327
 
1342
- ${({$size:e})=>gy[e]}
1343
- ${({$variant:e})=>py[e]}
1344
- ${({$disabled:e})=>e&&my}
1345
- `,vy=P.span`
1328
+ ${({$size:e})=>Y0[e]}
1329
+ ${({$variant:e})=>W0[e]}
1330
+ ${({$disabled:e})=>e&&K0}
1331
+ `,X0=k.span`
1346
1332
  flex: 1 1 auto;
1347
1333
  min-width: 0;
1348
1334
  max-width: 18ch;
1349
- ${({$truncate:e})=>e&&k`
1335
+ ${({$truncate:e})=>e&&P`
1350
1336
  overflow: hidden;
1351
1337
  text-overflow: ellipsis;
1352
1338
  white-space: nowrap;
1353
1339
  `}
1354
- `,Ac=h.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:i,rel:s,className:a,disabled:l=!1,tabIndex:u,leftIcon:d,rightIcon:c,iconSize:f="tn",iconColor:p="currentColor",truncate:g=!1,"aria-label":w,"aria-describedby":x,onClick:v,...T},b)=>{const C=h.useCallback(S=>{if(l){S.preventDefault();return}v?.(S)},[l,v]),y={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:C,"aria-label":w??r,"aria-describedby":x,"aria-disabled":l,tabIndex:l?-1:u??0,...T};return m.jsxs(yy,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:b,...y,children:[d&&m.jsx(Z,{component:d,size:f,color:p}),m.jsx(vy,{$truncate:g,children:r}),m.jsx(Z,{component:c||Wg,size:t==="lg"?"sm":f,color:p})]})});Ac.displayName="Link";const Dc={default:k`
1340
+ `,uc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:i,rel:s,className:a,disabled:l=!1,tabIndex:d,leftIcon:u,rightIcon:c,iconSize:h="tn",iconColor:p="currentColor",truncate:g=!1,"aria-label":v,"aria-describedby":w,onClick:y,...x},b)=>{const E=f.useCallback(S=>{if(l){S.preventDefault();return}y?.(S)},[l,y]),T={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:E,"aria-label":v??r,"aria-describedby":w,"aria-disabled":l,tabIndex:l?-1:d??0,...x};return m.jsxs(G0,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:b,...T,children:[u&&m.jsx(G,{component:u,size:h,color:p}),m.jsx(X0,{$truncate:g,children:r}),m.jsx(G,{component:c||Mg,size:t==="lg"?"sm":h,color:p})]})});uc.displayName="Link";const hc={default:P`
1355
1341
  thead tr:last-child th:first-child {
1356
1342
  border-radius: var(--border-radius-article) 0 0 0;
1357
1343
  }
@@ -1359,7 +1345,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1359
1345
  thead tr:last-child th:last-child {
1360
1346
  border-radius: 0 var(--border-radius-article) 0 0;
1361
1347
  }
1362
- `,striped:k`
1348
+ `,striped:P`
1363
1349
  border-radius: var(--border-radius-article);
1364
1350
  tbody tr:nth-child(even) td {
1365
1351
  background-color: var(--color-dark-200);
@@ -1376,11 +1362,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1376
1362
  thead tr:last-child th:last-child {
1377
1363
  border-radius: 0 var(--border-radius-article) 0 0;
1378
1364
  }
1379
- `},$c=k`
1365
+ `},fc=P`
1380
1366
  tbody tr:hover td {
1381
1367
  background-color: var(--color-main-alternative-secondary);
1382
1368
  }
1383
- `,Mc=k`
1369
+ `,pc=P`
1384
1370
  @media (max-width: 768px) {
1385
1371
  font-size: 0.875rem;
1386
1372
 
@@ -1389,42 +1375,42 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1389
1375
  padding: 0.5rem 0.75rem;
1390
1376
  }
1391
1377
  }
1392
- `,as=k`
1378
+ `,Xo=P`
1393
1379
  display: flex;
1394
1380
  align-items: center;
1395
1381
  gap: 0.5rem;
1396
1382
  width: 100%;
1397
1383
  overflow: hidden;
1398
- `,gt={sm:k`
1384
+ `,ut={sm:P`
1399
1385
  padding: 0.5rem 1rem;
1400
1386
  min-height: 2.25rem;
1401
- `,md:k`
1387
+ `,md:P`
1402
1388
  padding: 0.625rem 1.25rem;
1403
1389
  min-height: 2.5rem;
1404
- `,lg:k`
1390
+ `,lg:P`
1405
1391
  padding: 0.75rem 1.5rem;
1406
1392
  min-height: 2.75rem;
1407
- `},ls=k`
1393
+ `},qo=P`
1408
1394
  display: inline-flex;
1409
1395
  align-items: center;
1410
1396
  flex-shrink: 0;
1411
- `,by={sm:k`
1412
- ${gt.sm}
1413
- ${_[16]}
1414
- `,md:k`
1415
- ${gt.md}
1416
- ${_[20]}
1417
- `,lg:k`
1418
- ${gt.lg}
1419
- ${_[24]}
1420
- `},wy=P.th`
1397
+ `,q0={sm:P`
1398
+ ${ut.sm}
1399
+ ${z[16]}
1400
+ `,md:P`
1401
+ ${ut.md}
1402
+ ${z[20]}
1403
+ `,lg:P`
1404
+ ${ut.lg}
1405
+ ${z[24]}
1406
+ `},Z0=k.th`
1421
1407
  background-color: var(--color-main-blue-primary);
1422
- ${({$size:e})=>by[e]}
1408
+ ${({$size:e})=>q0[e]}
1423
1409
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
1424
1410
  min-width: 8rem;
1425
1411
  width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
1426
1412
 
1427
- ${({$sticky:e})=>e&&k`
1413
+ ${({$sticky:e})=>e&&P`
1428
1414
  position: sticky;
1429
1415
  top: 0;
1430
1416
  z-index: 10;
@@ -1435,13 +1421,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1435
1421
  background-color: var(--color-purple-600);
1436
1422
  }
1437
1423
 
1438
- ${({$active:e})=>e&&k`
1424
+ ${({$active:e})=>e&&P`
1439
1425
  background-color: var(--color-blue-400);
1440
1426
  `}
1441
- `,xy=P.div`
1442
- ${as}
1427
+ `,J0=k.div`
1428
+ ${Xo}
1443
1429
  justify-content: ${({$align:e})=>e||"space-between"};
1444
- `,Sy=P.button`
1430
+ `,Q0=k.button`
1445
1431
  all: unset;
1446
1432
  display: inline-flex;
1447
1433
  align-items: center;
@@ -1460,11 +1446,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1460
1446
  outline-color: var(--color-main-white);
1461
1447
  outline-offset: 2px;
1462
1448
  }
1463
- `,Ty=P.span`
1449
+ `,ey=k.span`
1464
1450
  transition: transform 0.3s ease-out;
1465
1451
  display: inline-flex;
1466
1452
  transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
1467
- `,Vc=P.span`
1453
+ `,mc=k.span`
1468
1454
  display: inline-flex;
1469
1455
  align-items: center;
1470
1456
  gap: 0.5rem;
@@ -1473,54 +1459,54 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1473
1459
  text-overflow: ellipsis;
1474
1460
  white-space: nowrap;
1475
1461
  flex-shrink: 1;
1476
- `,Cy=P(Mn)`
1462
+ `,ty=k(Cn)`
1477
1463
  overflow: hidden;
1478
1464
  text-overflow: ellipsis;
1479
1465
  white-space: nowrap;
1480
1466
  max-width: 100%;
1481
1467
  color: var(--color-main-white);
1482
- `,Ic=P.span`
1483
- ${ls}
1468
+ `,gc=k.span`
1469
+ ${qo}
1484
1470
  gap: 0.375rem;
1485
- `,cs=({children:e,size:t="md",active:n=!1,sortDirection:r="none",leftIcon:o,rightIcon:i,iconSize:s="sm",iconColor:a="var(--color-main-white)",sticky:l=!1,align:u="left",width:d,sortable:c,className:f,onSort:p,...g})=>{const w=r==="asc"?"desc":"asc",x=p?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return m.jsx(wy,{$size:t,$active:n,$width:d,$sticky:l,className:f,scope:"col","aria-sort":x,...g,children:p||c?m.jsxs(Sy,{onClick:()=>p?.(w),"aria-label":`Sort ${w}`,children:[m.jsxs(Vc,{children:[o&&m.jsx(Z,{component:o,size:s,color:a}),m.jsx(Cy,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),m.jsxs(Ic,{children:[m.jsx(Ty,{$dir:r,children:m.jsx(Z,{component:_g,size:s,color:a})}),i&&m.jsx(Z,{component:i,size:s,color:a})]})]}):m.jsxs(xy,{$align:u,children:[m.jsxs(Vc,{children:[o&&m.jsx(Z,{component:o,size:s,color:a}),m.jsx(Mn,{size:t==="sm"?16:t==="md"?20:24,color:"var(--color-main-white)",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e})]}),m.jsx(Ic,{children:i&&m.jsx(Z,{component:i,size:s,color:a})})]})})};cs.displayName="TableHeaderCell";const Ey={sm:k`
1486
- ${gt.sm}
1487
- ${_[14]}
1488
- `,md:k`
1489
- ${gt.md}
1490
- ${_[14]}
1491
- `,lg:k`
1492
- ${gt.lg}
1493
- ${_[16]}
1494
- `},Py=P.td`
1471
+ `,Zo=({children:e,size:t="md",active:n=!1,sortDirection:r="none",leftIcon:o,rightIcon:i,iconSize:s="sm",iconColor:a="var(--color-main-white)",sticky:l=!1,align:d="left",width:u,sortable:c,className:h,onSort:p,...g})=>{const v=r==="asc"?"desc":"asc",w=p?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return m.jsx(Z0,{$size:t,$active:n,$width:u,$sticky:l,className:h,scope:"col","aria-sort":w,...g,children:p||c?m.jsxs(Q0,{onClick:()=>p?.(v),"aria-label":`Sort ${v}`,children:[m.jsxs(mc,{children:[o&&m.jsx(G,{component:o,size:s,color:a}),m.jsx(ty,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),m.jsxs(gc,{children:[m.jsx(ey,{$dir:r,children:m.jsx(G,{component:Pg,size:s,color:a})}),i&&m.jsx(G,{component:i,size:s,color:a})]})]}):m.jsxs(J0,{$align:d,children:[m.jsxs(mc,{children:[o&&m.jsx(G,{component:o,size:s,color:a}),m.jsx(Cn,{size:t==="sm"?16:t==="md"?20:24,color:"var(--color-main-white)",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e})]}),m.jsx(gc,{children:i&&m.jsx(G,{component:i,size:s,color:a})})]})})};Zo.displayName="TableHeaderCell";const ny={sm:P`
1472
+ ${ut.sm}
1473
+ ${z[14]}
1474
+ `,md:P`
1475
+ ${ut.md}
1476
+ ${z[14]}
1477
+ `,lg:P`
1478
+ ${ut.lg}
1479
+ ${z[16]}
1480
+ `},ry=k.td`
1495
1481
  vertical-align: middle;
1496
1482
  color: var(--color-main-blue-primary);
1497
- ${({$size:e})=>Ey[e]}
1483
+ ${({$size:e})=>ny[e]}
1498
1484
  text-align: ${({$align:e,$variant:t})=>e||(t==="numeric"?"right":"left")};
1499
1485
  border-left: 1px solid var(--color-main-light-borders);
1500
1486
  border-top: 1px solid var(--color-main-light-borders);
1501
1487
  transition: background-color 0.3s ease-out;
1502
1488
  width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
1503
1489
 
1504
- ${({$truncate:e})=>e&&k`
1490
+ ${({$truncate:e})=>e&&P`
1505
1491
  max-width: 200px;
1506
1492
  overflow: hidden;
1507
1493
  text-overflow: ellipsis;
1508
1494
  white-space: nowrap;
1509
1495
  `}
1510
1496
 
1511
- ${({$variant:e})=>e==="numeric"&&k`
1497
+ ${({$variant:e})=>e==="numeric"&&P`
1512
1498
  font-variant-numeric: tabular-nums;
1513
1499
  font-family: ui-monospace, monospace;
1514
1500
  `}
1515
- `,ky=P.div`
1516
- ${as}
1501
+ `,oy=k.div`
1502
+ ${Xo}
1517
1503
  justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
1518
- `,Ay=P(Vn)`
1504
+ `,sy=k(kn)`
1519
1505
  flex: 1;
1520
1506
  min-width: 0;
1521
- `,Nc=P.span`
1522
- ${ls}
1523
- `,us=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:i="default",className:s,leftIcon:a,rightIcon:l,iconSize:u="sm",iconColor:d="var(--color-main-blue-primary)",...c})=>{const f=a||l;return m.jsx(Py,{$size:t,$align:n,$width:r,$truncate:o,$variant:i,className:s,...c,children:f?m.jsxs(ky,{$align:n,children:[a&&m.jsx(Nc,{children:m.jsx(Z,{component:a,size:u,color:d})}),m.jsx(Ay,{children:e}),l&&m.jsx(Nc,{children:m.jsx(Z,{component:l,size:u,color:d})})]}):e})};us.displayName="TableCell";const Dy=P.table`
1507
+ `,yc=k.span`
1508
+ ${qo}
1509
+ `,Jo=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:i="default",className:s,leftIcon:a,rightIcon:l,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...c})=>{const h=a||l;return m.jsx(ry,{$size:t,$align:n,$width:r,$truncate:o,$variant:i,className:s,...c,children:h?m.jsxs(oy,{$align:n,children:[a&&m.jsx(yc,{children:m.jsx(G,{component:a,size:d,color:u})}),m.jsx(sy,{children:e}),l&&m.jsx(yc,{children:m.jsx(G,{component:l,size:d,color:u})})]}):e})};Jo.displayName="TableCell";const iy=k.table`
1524
1510
  width: fit-content;
1525
1511
  table-layout: auto;
1526
1512
  border-collapse: separate;
@@ -1530,10 +1516,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1530
1516
  border-radius: var(--border-radius-article);
1531
1517
  border: 1px solid var(--color-main-light-borders);
1532
1518
 
1533
- ${({$variant:e})=>Dc[e]}
1534
- ${Mc}
1535
- ${$c}
1536
- `,Lc=({columns:e,rows:t,size:n="md",variant:r="default",className:o,stickyHeader:i=!1,onSortChange:s})=>{const a=(l,u)=>d=>{l.onSort?.(d),s?.({columnId:l.id??String(u),direction:d})};return m.jsxs(Dy,{$variant:r,className:o,children:[m.jsx("thead",{children:m.jsx("tr",{children:e.map((l,u)=>m.jsx(cs,{size:n,leftIcon:l.leftIcon,rightIcon:l.rightIcon,iconSize:l.iconSize,iconColor:l.iconColor,sortDirection:l.sortDirection,onSort:l.onSort??(s?a(l,u):void 0),sticky:i||l.stickyHeader,width:l.width,align:l.align,sortable:l.sortable||!!l.onSort||!!s,className:l.className,children:l.header},l.id||`col-${u}`))})}),m.jsx("tbody",{children:t.map((l,u)=>{const d=l.cells;return!d||!Array.isArray(d)?null:m.jsx("tr",{children:d.map((c,f)=>{const p=e[f];return m.jsx(us,{size:c.size||l.size||n,align:c.align||l.align||p?.align,width:c.width||l.width||p?.width,truncate:c.truncate||l.truncate,variant:c.variant||l.variant,className:c.className||l.className||p?.className,leftIcon:c.leftIcon,rightIcon:c.rightIcon,iconSize:c.iconSize,iconColor:c.iconColor,children:c.content},`${l.id||u}-${f}`)})},l.id||u)})})]})};Lc.displayName="Table";const $y=P.header`
1519
+ ${({$variant:e})=>hc[e]}
1520
+ ${pc}
1521
+ ${fc}
1522
+ `,vc=({columns:e,rows:t,size:n="md",variant:r="default",className:o,stickyHeader:i=!1,onSortChange:s})=>{const a=(l,d)=>u=>{l.onSort?.(u),s?.({columnId:l.id??String(d),direction:u})};return m.jsxs(iy,{$variant:r,className:o,children:[m.jsx("thead",{children:m.jsx("tr",{children:e.map((l,d)=>m.jsx(Zo,{size:n,leftIcon:l.leftIcon,rightIcon:l.rightIcon,iconSize:l.iconSize,iconColor:l.iconColor,sortDirection:l.sortDirection,onSort:l.onSort??(s?a(l,d):void 0),sticky:i||l.stickyHeader,width:l.width,align:l.align,sortable:l.sortable||!!l.onSort||!!s,className:l.className,children:l.header},l.id||`col-${d}`))})}),m.jsx("tbody",{children:t.map((l,d)=>{const u=l.cells;return!u||!Array.isArray(u)?null:m.jsx("tr",{children:u.map((c,h)=>{const p=e[h];return m.jsx(Jo,{size:c.size||l.size||n,align:c.align||l.align||p?.align,width:c.width||l.width||p?.width,truncate:c.truncate||l.truncate,variant:c.variant||l.variant,className:c.className||l.className||p?.className,leftIcon:c.leftIcon,rightIcon:c.rightIcon,iconSize:c.iconSize,iconColor:c.iconColor,children:c.content},`${l.id||d}-${h}`)})},l.id||d)})})]})};vc.displayName="Table";const ay=k.header`
1537
1523
  position: fixed;
1538
1524
  top: 0;
1539
1525
  left: 0;
@@ -1552,15 +1538,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1552
1538
  @media (min-width: 768px) {
1553
1539
  padding-left: ${({$sidebarCollapsed:e})=>e?"6rem":"17rem"};
1554
1540
  }
1555
- `,My=P.div`
1541
+ `,ly=k.div`
1556
1542
  display: flex;
1557
1543
  align-items: center;
1558
1544
  gap: 1rem;
1559
- `,Vy=P.div`
1545
+ `,cy=k.div`
1560
1546
  display: flex;
1561
1547
  align-items: center;
1562
1548
  gap: 1rem;
1563
- `,Iy=P.button`
1549
+ `,dy=k.button`
1564
1550
  position: relative;
1565
1551
  display: flex;
1566
1552
  align-items: center;
@@ -1584,7 +1570,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1584
1570
  &:active {
1585
1571
  transform: scale(0.92);
1586
1572
  }
1587
- `,Ny=P.span`
1573
+ `,uy=k.span`
1588
1574
  position: absolute;
1589
1575
  top: 0.35rem;
1590
1576
  right: 0.35rem;
@@ -1600,7 +1586,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1600
1586
  display: flex;
1601
1587
  align-items: center;
1602
1588
  justify-content: center;
1603
- `,Ly=P.div`
1589
+ `,hy=k.div`
1604
1590
  display: flex;
1605
1591
  align-items: center;
1606
1592
  gap: 0.75rem;
@@ -1617,7 +1603,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1617
1603
  outline: 2px solid var(--color-main-blue-primary);
1618
1604
  outline-offset: 2px;
1619
1605
  }
1620
- `,Oy=P.div`
1606
+ `,fy=k.div`
1621
1607
  width: 2rem;
1622
1608
  height: 2rem;
1623
1609
  border-radius: 50%;
@@ -1628,7 +1614,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1628
1614
  color: var(--color-main-white);
1629
1615
  font-weight: 600;
1630
1616
  font-size: 0.875rem;
1631
- `,Fy=P.div`
1617
+ `,py=k.div`
1632
1618
  display: flex;
1633
1619
  flex-direction: column;
1634
1620
  align-items: flex-start;
@@ -1636,25 +1622,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
1636
1622
  @media (max-width: 640px) {
1637
1623
  display: none;
1638
1624
  }
1639
- `,Ry=P.span`
1625
+ `,my=k.span`
1640
1626
  font-weight: 600;
1641
1627
  font-size: 0.875rem;
1642
1628
  color: var(--color-main-dark-text);
1643
1629
  line-height: 1.2;
1644
- `,By=P.span`
1630
+ `,gy=k.span`
1645
1631
  font-size: 0.75rem;
1646
1632
  color: var(--color-main-gray-text);
1647
1633
  line-height: 1.2;
1648
- `,ds=({sidebarCollapsed:e=!1,user:t,hasNotifications:n=!1,notificationCount:r,onNotificationClick:o,onUserProfileClick:i,children:s})=>{const a=f=>f.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2),l=(r??0)>0||n,u=r&&r>0?r:void 0,d=u?`${u} notification${u===1?"":"s"}`:l?"New notifications":"No notifications",c=`Notifications: ${d}`;return m.jsxs($y,{$sidebarCollapsed:e,children:[m.jsx(My,{children:s}),m.jsxs(Vy,{children:[m.jsxs(Iy,{onClick:o,"aria-label":c,title:d,"data-has":l||void 0,children:[m.jsx(Z,{component:l?Gg:Xg,size:"md",color:"var(--color-main-blue-primary)"}),l&&m.jsx(Ny,{$withCount:!!u,"aria-hidden":!!u,children:u&&(u>99?"99+":u)})]}),t&&m.jsxs(Ly,{onClick:i,role:"button",tabIndex:0,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i?.())},children:[m.jsx(Oy,{children:t.avatarUrl?m.jsx("img",{src:t.avatarUrl,alt:t.name,style:{width:"100%",height:"100%",borderRadius:"50%"}}):a(t.name)}),m.jsxs(Fy,{children:[m.jsx(Ry,{children:t.name}),m.jsx(By,{children:t.role})]})]})]})]})};ds.displayName="Header";const jy=P.div`
1634
+ `,Qo=({sidebarCollapsed:e=!1,user:t,hasNotifications:n=!1,notificationCount:r,onNotificationClick:o,onUserProfileClick:i,children:s})=>{const a=h=>h.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2),l=(r??0)>0||n,d=r&&r>0?r:void 0,u=d?`${d} notification${d===1?"":"s"}`:l?"New notifications":"No notifications",c=`Notifications: ${u}`;return m.jsxs(ay,{$sidebarCollapsed:e,children:[m.jsx(ly,{children:s}),m.jsxs(cy,{children:[m.jsxs(dy,{onClick:o,"aria-label":c,title:u,"data-has":l||void 0,children:[m.jsx(G,{component:l?Ig:Lg,size:"md",color:"var(--color-main-blue-primary)"}),l&&m.jsx(uy,{$withCount:!!d,"aria-hidden":!!d,children:d&&(d>99?"99+":d)})]}),t&&m.jsxs(hy,{onClick:i,role:"button",tabIndex:0,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i?.())},children:[m.jsx(fy,{children:t.avatarUrl?m.jsx("img",{src:t.avatarUrl,alt:t.name,style:{width:"100%",height:"100%",borderRadius:"50%"}}):a(t.name)}),m.jsxs(py,{children:[m.jsx(my,{children:t.name}),m.jsx(gy,{children:t.role})]})]})]})]})};Qo.displayName="Header";const yy=k.div`
1649
1635
  display: flex;
1650
1636
  flex-direction: column;
1651
1637
  height: 100vh;
1652
1638
  overflow: hidden;
1653
- `,_y=P.main`
1639
+ `,vy=k.main`
1654
1640
  flex: 1;
1655
1641
  margin-top: 4rem;
1656
1642
  margin-left: 0;
1657
1643
  padding: 1rem;
1658
1644
  overflow-y: auto;
1659
1645
  margin-left: 5rem;
1660
- `,zy=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:i=!1,onNavigate:s,onNotificationClick:a,onUserProfileClick:l})=>m.jsxs(jy,{children:[m.jsx(is,{navigationConfig:t,userRoles:n,onNavigate:s,activePath:r}),m.jsx(ds,{user:o,hasNotifications:i,onNotificationClick:a,onUserProfileClick:l}),m.jsx(_y,{children:e})]}),Hy=e=>m.jsx(Ec,{children:m.jsx(zy,{...e})});A.ALLOWED_INPUT_TYPES=tc,A.BaseInput=Ko,A.Button=Uo,A.ButtonSpinner=Jl,A.Card=Cg,A.CardBody=Ag,A.CardFooter=$g,A.CardHeader=Pg,A.Checkbox=tr,A.CheckboxInput=qo,A.CheckboxLabel=cc,A.Dialog=xc,A.DialogBody=Tc,A.DialogFooter=Cc,A.DialogHeader=Sc,A.ErrorMessage=Yo,A.FormField=H0,A.FullScreenSpinner=Rm,A.Header=ds,A.HeadingBold=Mn,A.HeadingRegular=Qu,A.Icon=Z,A.IconWrapperStyles=cn,A.Label=Qn,A.Layout=Hy,A.Link=Ac,A.PasswordInput=ic,A.PinInput=Zo,A.PinInputGroup=Jo,A.RadioInput=ts,A.RadioInputDot=Qo,A.RadioInputLabel=es,A.SearchInput=lc,A.SectionSpinner=jm,A.SelectInput=Go,A.Sidebar=is,A.SidebarContext=os,A.SidebarProvider=Ec,A.Spinner=Zn,A.Table=Lc,A.TableCell=us,A.TableHeaderCell=cs,A.TermsAndConditions=J0,A.Text=Vn,A.TextAreaInput=Xo,A.ToastProvider=vg,A.baseContentTableStyles=as,A.baseFieldStyles=pt,A.baseInputStyles=er,A.baseTableCellsSizes=gt,A.createFieldConfig=Rg,A.createInputRefs=hc,A.disabledStyles=Qe,A.errorStyles=mt,A.flushedStyles=rc,A.getPropsForInputType=nc,A.handleDigitChange=uc,A.handleKeyDown=dc,A.handlePaste=fc,A.hasPermission=ss,A.normalizeFieldTypes=Og,A.normalizeSelectOptions=Fg,A.sizeStyles=ln,A.tableHoverMixin=$c,A.tableIconContainerStyles=ls,A.tableResponsiveMixin=Mc,A.tableVariants=Dc,A.validateCode=P0,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
1646
+ `,by=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:i=!1,onNavigate:s,onNotificationClick:a,onUserProfileClick:l})=>m.jsxs(yy,{children:[m.jsx(Go,{navigationConfig:t,userRoles:n,onNavigate:s,activePath:r}),m.jsx(Qo,{user:o,hasNotifications:i,onNotificationClick:a,onUserProfileClick:l}),m.jsx(vy,{children:e})]}),wy=e=>m.jsx(lc,{children:m.jsx(by,{...e})});A.ALLOWED_INPUT_TYPES=Ul,A.BaseInput=Oo,A.Button=Lo,A.ButtonSpinner=zl,A.Card=lg,A.CardBody=hg,A.CardFooter=pg,A.CardHeader=dg,A.Checkbox=Gn,A.CheckboxInput=Ro,A.CheckboxLabel=Zl,A.Dialog=oc,A.DialogBody=ic,A.DialogFooter=ac,A.DialogHeader=sc,A.ErrorMessage=Bo,A.FormField=w0,A.FullScreenSpinner=Sm,A.Header=Qo,A.HeadingBold=Cn,A.HeadingRegular=Od,A.Icon=G,A.IconWrapperStyles=rn,A.Label=Kn,A.Layout=wy,A.Link=uc,A.PasswordInput=Gl,A.PinInput=zo,A.PinInputGroup=_o,A.RadioInput=Wo,A.RadioInputDot=Ho,A.RadioInputLabel=Uo,A.SearchInput=ql,A.SectionSpinner=Cm,A.SelectInput=Fo,A.Sidebar=Go,A.SidebarContext=Ko,A.SidebarProvider=lc,A.Spinner=Un,A.Table=vc,A.TableCell=Jo,A.TableHeaderCell=Zo,A.TermsAndConditions=D0,A.Text=kn,A.TextAreaInput=jo,A.ToastProvider=ng,A.baseContentTableStyles=Xo,A.baseFieldStyles=ct,A.baseInputStyles=Yn,A.baseTableCellsSizes=ut,A.createFieldConfig=Sg,A.createInputRefs=tc,A.disabledStyles=Ge,A.errorStyles=dt,A.flushedStyles=Wl,A.getPropsForInputType=Tg,A.handleDigitChange=Jl,A.handleKeyDown=Ql,A.handlePaste=ec,A.hasPermission=Yo,A.normalizeFieldTypes=wg,A.normalizeSelectOptions=xg,A.sizeStyles=nn,A.tableHoverMixin=fc,A.tableIconContainerStyles=qo,A.tableResponsiveMixin=pc,A.tableVariants=hc,A.validateCode=u0,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));