tcce-design-system-test 0.2.5 → 0.2.8
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,fs){"use strict";function Uc(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 ir=Uc(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 gt(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 Wc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yc=/^((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)-.*))$/,Kc=Wc(function(e){return Yc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ee="-ms-",zt="-moz-",W="-webkit-",hs="comm",dn="rule",ar="decl",Gc="@import",ps="@keyframes",Xc="@layer",ms=Math.abs,lr=String.fromCharCode,cr=Object.assign;function qc(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 gs(e){return e.trim()}function je(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function fn(e,t,n){return e.indexOf(t,n)}function ue(e,t){return e.charCodeAt(t)|0}function yt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function ys(e){return e.length}function Ht(e,t){return t.push(e),e}function Zc(e,t){return e.map(t).join("")}function vs(e,t){return e.filter(function(n){return!je(n,t)})}var hn=1,vt=1,bs=0,Ee=0,ie=0,bt="";function pn(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:hn,column:vt,length:s,return:"",siblings:a}}function Ye(e,t){return cr(pn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function wt(e){for(;e.root;)e=Ye(e.root,{children:[e]});Ht(e,e.siblings)}function Jc(){return ie}function Qc(){return ie=Ee>0?ue(bt,--Ee):0,vt--,ie===10&&(vt=1,hn--),ie}function $e(){return ie=Ee<bs?ue(bt,Ee++):0,vt++,ie===10&&(vt=1,hn++),ie}function et(){return ue(bt,Ee)}function mn(){return Ee}function gn(e,t){return yt(bt,e,t)}function ur(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 eu(e){return hn=vt=1,bs=Oe(bt=e),Ee=0,[]}function tu(e){return bt="",e}function dr(e){return gs(gn(Ee-1,fr(e===91?e+2:e===40?e+1:e)))}function nu(e){for(;(ie=et())&&ie<33;)$e();return ur(e)>2||ur(ie)>3?"":" "}function ru(e,t){for(;--t&&$e()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return gn(e,mn()+(t<6&&et()==32&&$e()==32))}function fr(e){for(;$e();)switch(ie){case e:return Ee;case 34:case 39:e!==34&&e!==39&&fr(ie);break;case 40:e===41&&fr(e);break;case 92:$e();break}return Ee}function ou(e,t){for(;$e()&&e+ie!==57;)if(e+ie===84&&et()===47)break;return"/*"+gn(t,Ee-1)+"*"+lr(e===47?e:$e())}function su(e){for(;!ur(et());)$e();return gn(e,Ee)}function iu(e){return tu(yn("",null,null,null,[""],e=eu(e),0,[0],e))}function yn(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){fn(E+=F(dr(T),"&","&\f"),"&\f",ms(u?a[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=dr(T);break;case 9:case 10:case 13:case 32:E+=nu(g);break;case 92:E+=ru(mn()-1,7);continue;case 47:switch(et()){case 42:case 47:Ht(au(ou($e(),mn()),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=F(E,/\f/g,"")),p>0&&Oe(E)-c&&Ht(p>32?xs(E+";",r,n,c-1,l):xs(F(E," ","")+";",r,n,c-2,l),l);break;case 59:E+=";";default:if(Ht(S=ws(E,t,n,u,d,o,a,b,C=[],y=[],c,i),i),T===123)if(d===0)yn(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:yn(e,S,S,r&&Ht(ws(e,S,S,0,0,o,a,b,o,C=[],c,y),y),o,y,c,a,r?C:y);break;default:yn(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&&Qc()==125)continue}switch(E+=lr(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:et()===45&&(E+=dr($e())),f=et(),d=c=Oe(b=E+=su(mn())),T++;break;case 45:g===45&&Oe(E)==2&&(w=0)}}return i}function ws(e,t,n,r,o,i,s,a,l,u,d,c){for(var f=o-1,p=o===0?i:[""],g=ys(p),w=0,x=0,v=0;w<r;++w)for(var T=0,b=yt(e,f+1,f=ms(x=s[w])),C=e;T<g;++T)(C=gs(x>0?p[T]+" "+b:F(b,/&\f/g,p[T])))&&(l[v++]=C);return pn(e,t,n,o===0?dn:a,l,u,d,c)}function au(e,t,n,r){return pn(e,t,n,hs,lr(Jc()),yt(e,2,-2),0,r)}function xs(e,t,n,r,o){return pn(e,t,n,ar,yt(e,0,r),yt(e,r+1,-1),r,o)}function Ss(e,t,n){switch(qc(e,t)){case 5103:return W+"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 W+e+e;case 4789:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+zt+e+ee+e+e;case 5936:switch(ue(e,t+11)){case 114:return W+e+ee+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+ee+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+ee+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return W+e+ee+e+e;case 6165:return W+e+ee+"flex-"+e+e;case 5187:return W+e+F(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return W+e+ee+"flex-item-"+F(e,/flex-|-self/g,"")+(je(e,/flex-|baseline/)?"":ee+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return W+e+ee+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return W+e+ee+F(e,"shrink","negative")+e;case 5292:return W+e+ee+F(e,"basis","preferred-size")+e;case 6060:return W+"box-"+F(e,"-grow","")+W+e+ee+F(e,"grow","positive")+e;case 4554:return W+F(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4200:if(!je(e,/flex-|baseline/))return ee+"grid-column-align"+yt(e,t)+e;break;case 2592:case 3360:return ee+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,je(r.props,/grid-\w+-end/)})?~fn(e+(n=n[t].value),"span",0)?e:ee+F(e,"-start","")+e+ee+"grid-row-span:"+(~fn(n,"span",0)?je(n,/\d+/):+je(n,/\d+/)-+je(e,/\d+/))+";":ee+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return je(r.props,/grid-\w+-start/)})?e:ee+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,W+"$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 F(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+zt+(ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fn(e,"stretch",0)?Ss(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,u){return ee+o+":"+i+u+(s?ee+o+"-span:"+(a?l:+l-+i)+u:"")+e});case 4949:if(ue(e,t+6)===121)return F(e,":",":"+W)+e;break;case 6444:switch(ue(e,ue(e,14)===45?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+W+(ue(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+ee+"$2box$3")+e;case 100:return F(e,":",":"+ee)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return F(e,"scroll-","scroll-snap-")+e}return e}function vn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function lu(e,t,n,r){switch(e.type){case Xc:if(e.children.length)break;case Gc:case ar:return e.return=e.return||e.value;case hs:return"";case ps:return e.return=e.value+"{"+vn(e.children,r)+"}";case dn:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function cu(e){var t=ys(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 uu(e){return function(t){t.root||(t=t.return)&&e(t)}}function du(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ar:e.return=Ss(e.value,e.length,n);return;case ps:return vn([Ye(e,{value:F(e.value,"@","@"+W)})],r);case dn:if(e.length)return Zc(n=e.props,function(o){switch(je(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":wt(Ye(e,{props:[F(o,/:(read-\w+)/,":"+zt+"$1")]})),wt(Ye(e,{props:[o]})),cr(e,{props:vs(n,r)});break;case"::placeholder":wt(Ye(e,{props:[F(o,/:(plac\w+)/,":"+W+"input-$1")]})),wt(Ye(e,{props:[F(o,/:(plac\w+)/,":"+zt+"$1")]})),wt(Ye(e,{props:[F(o,/:(plac\w+)/,ee+"input-$1")]})),wt(Ye(e,{props:[o]})),cr(e,{props:vs(n,r)});break}return""})}}var fu={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},tt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ts="active",Cs="data-styled-version",bn="6.1.19",hr=`/*!sc*/
|
|
2
|
-
`,
|
|
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.
|
|
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];
|
|
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.
|
|
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 Du(){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 Ct(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(Du.apply(void 0,gt([Au[e]],t,!1)).trim())}var $u=(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 Ct(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(hr);return n},e})(),Mu=1<<30,Cn=new Map,En=new Map,Pn=1,kn=function(e){if(Cn.has(e))return Cn.get(e);for(;En.has(Pn);)Pn++;var t=Pn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Mu))throw Ct(16,"".concat(t));return Cn.set(e,t),En.set(t,e),t},Vu=function(e,t){Pn=t+1,Cn.set(e,t),En.set(t,e)},Iu="style[".concat(tt,"][").concat(Cs,'="').concat(bn,'"]'),Nu=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Lu=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)},Ou=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(hr),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(Nu);if(l){var u=0|parseInt(l[1],10),d=l[2];u!==0&&(Vu(d,u),Lu(e,d,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},Rs=function(e){for(var t=document.querySelectorAll(Iu),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==Ts&&(Ou(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Fu(){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(tt,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(tt,Ts),r.setAttribute(Cs,bn);var s=Fu();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},Bu=(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 Ct(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})(),Ru=(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})(),_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})(),js=wn,ju={isServer:!wn,useCSSOMInjection:!hu},zs=(function(){function e(t,n,r){t===void 0&&(t=xt),n===void 0&&(n={});var o=this;this.options=be(be({},ju),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&wn&&js&&(js=!1,Rs(this)),wr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",u=function(c){var f=(function(v){return En.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(tt,".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(hr)},d=0;d<a;d++)u(d);return l})(o)})}return e.registerId=function(t){return kn(t)},e.prototype.rehydrate=function(){!this.server&&wn&&Rs(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 Ru(o)})(this.options),new $u(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(kn(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(kn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(kn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),zu=/&/g,Hu=/^\s*\/\/.*$/gm;function Hs(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=Hs(n.children,t)),n})}function Uu(e){var t,n,r,o=xt,i=o.options,s=i===void 0?xt:i,a=o.plugins,l=a===void 0?Sn: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===dn&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(zu,n).replace(r,u))}),s.prefix&&d.push(du),d.push(lu);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(Hu,""),v=iu(g||p?"".concat(g," ").concat(p," { ").concat(x," }"):x);s.namespace&&(v=Hs(v,s.namespace));var T=[];return vn(v,cu(d.concat(uu(function(b){return T.push(b)})))),T};return c.hash=l.length?l.reduce(function(f,p){return p.name||Ct(15),nt(f,p.name)},As).toString():"",c}var Wu=new zs,xr=Uu(),Us=h.createContext({shouldForwardProp:void 0,styleSheet:Wu,stylis:xr});Us.Consumer,h.createContext(void 0);function Ws(){return h.useContext(Us)}var Ys=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=xr);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,wr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=xr),this.name+t.hash},e})(),Yu=function(e){return e>="A"&&e<="Z"};function Ks(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Yu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Gs=function(e){return e==null||e===!1||e===""},Xs=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Gs(i)&&(Array.isArray(i)&&i.isCss||St(i)?r.push("".concat(Ks(o),":"),i,";"):Tt(i)?r.push.apply(r,gt(gt(["".concat(o," {")],Xs(i),!1),["}"],!1)):r.push("".concat(Ks(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in fu||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Gs(e))return[];if(vr(e))return[".".concat(e.styledComponentId)];if(St(e)){if(!St(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 Ys||Tt(o)||o===null||console.error("".concat($s(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.")),ot(o,t,n,r)}var i;return e instanceof Ys?n?(e.inject(n,r),[e.getName(r)]):[e]:Tt(e)?Xs(e):Array.isArray(e)?Array.prototype.concat.apply(Sn,e.map(function(s){return ot(s,t,n,r)})):[e.toString()]}function Ku(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(St(n)&&!vr(n))return!1}return!0}var Gu=Ds(bn),Xu=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Ku(t),this.componentId=n,this.baseHash=nt(Gu,n),this.baseStyle=r,zs.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=rt(o,this.staticRulesId);else{var i=Bs(ot(this.rules,t,n,r)),s=mr(nt(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=rt(o,s),this.staticRulesId=s}else{for(var l=nt(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=nt(l,c));else if(c){var f=Bs(ot(c,t,n,r));l=nt(l,f+d),u+=f}}if(u){var p=mr(l>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),o=rt(o,p)}}return o},e})(),qs=h.createContext(void 0);qs.Consumer;var Sr={},Zs=new Set;function qu(e,t,n){var r=vr(e),o=e,i=!yr(e),s=t.attrs,a=s===void 0?Sn:s,l=t.componentId,u=l===void 0?(function(C,y){var S=typeof C!="string"?"sc":Ps(C);Sr[S]=(Sr[S]||0)+1;var E="".concat(S,"-").concat(bu(bn+S+Sr[S]));return y?"".concat(y,"-").concat(E):E})(t.displayName,t.parentComponentId):l,d=t.displayName,c=d===void 0?(function(C){return yr(C)?"styled.".concat(C):"Styled(".concat($s(C),")")})(e):d,f=t.displayName&&t.componentId?"".concat(Ps(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 Xu(n,f,r?o.componentStyle:void 0);function T(C,y){return(function(S,E,D){var L=S.attrs,G=S.componentStyle,M=S.defaultProps,X=S.foldedComponentIds,te=S.styledComponentId,ce=S.target,ve=h.useContext(qs),R=Ws(),N=S.shouldForwardProp||R.shouldForwardProp;process.env.NODE_ENV!=="production"&&h.useDebugValue(te);var U=mu(E,ve,M)||xt,B=(function(Z,le,Se){for(var z,me=be(be({},le),{className:void 0,theme:Se}),_e=0;_e<Z.length;_e+=1){var Ie=St(z=Z[_e])?z(me):z;for(var $ in Ie)me[$]=$==="className"?rt(me[$],Ie[$]):$==="style"?be(be({},me[$]),Ie[$]):Ie[$]}return le.className&&(me.className=rt(me.className,le.className)),me})(L,E,U),H=B.as||ce,j={};for(var Q in B)B[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"&&B.theme===U||(Q==="forwardedAs"?j.as=B.forwardedAs:N&&!N(Q,H)||(j[Q]=B[Q],N||process.env.NODE_ENV!=="development"||Kc(Q)||Zs.has(Q)||!pr.has(H)||(Zs.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" 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 I=(function(Z,le){var Se=Ws(),z=Z.generateAndInjectStyles(le,Se.styleSheet,Se.stylis);return process.env.NODE_ENV!=="production"&&h.useDebugValue(z),z})(G,B);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(I);var q=rt(X,te);return I&&(q+=" "+I),B.className&&(q+=" "+B.className),j[yr(H)&&!pr.has(H)?"class":"className"]=q,D&&(j.ref=D),h.createElement(H,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?rt(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 D=0,L=S;D<L.length;D++)br(y,L[D],!0);return y})({},o.defaultProps,C):C}}),process.env.NODE_ENV!=="production"&&(pu(c,f),b.warnTooManyClasses=(function(C,y){var S={},E=!1;return function(D){if(!E&&(S[D]=!0,Object.keys(S).length>=200)){var L=y?' with the id of "'.concat(y,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(C).concat(L,`.
|
|
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,`.
|
|
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,11 +53,11 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),E=!0,S={}}}})(c,f)),
|
|
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.
|
|
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
|
|
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.
|
|
59
59
|
|
|
60
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[$n]+=1);const ri={80:k`
|
|
61
61
|
font-family: 'Dax', serif;
|
|
62
62
|
font-size: 5rem;
|
|
63
63
|
font-style: normal;
|
|
@@ -99,7 +99,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
99
99
|
font-style: normal;
|
|
100
100
|
font-weight: 700;
|
|
101
101
|
line-height: 161.76%;
|
|
102
|
-
`},
|
|
102
|
+
`},Ju={80:k`
|
|
103
103
|
font-family: 'Dax', serif;
|
|
104
104
|
font-size: 5rem;
|
|
105
105
|
font-style: normal;
|
|
@@ -201,19 +201,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
201
201
|
font-style: normal;
|
|
202
202
|
font-weight: 400;
|
|
203
203
|
line-height: 133%;
|
|
204
|
-
`},
|
|
205
|
-
${({size:e=24})=>
|
|
204
|
+
`},Mn=P.h1`
|
|
205
|
+
${({size:e=24})=>ri[e]}
|
|
206
206
|
margin: 0;
|
|
207
207
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
208
|
-
`,
|
|
209
|
-
${({size:e=24})=>
|
|
208
|
+
`,Qu=P.h2`
|
|
209
|
+
${({size:e=24})=>Ju[e]}
|
|
210
210
|
margin: 0;
|
|
211
211
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
212
|
-
|
|
212
|
+
`,Vn=P.span`
|
|
213
213
|
${({size:e=16})=>_[e]}
|
|
214
214
|
margin: 0;
|
|
215
215
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
216
|
-
`,
|
|
216
|
+
`,ed=P.span`
|
|
217
217
|
display: inline-flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
justify-content: center;
|
|
@@ -223,7 +223,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
223
223
|
outline: none;
|
|
224
224
|
box-shadow: var(--shadow-hover-black-card);
|
|
225
225
|
}
|
|
226
|
-
`,ni={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},J=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in ni?ni[t]:t;return m.jsx(Qu,{$color:n,className:r,children:typeof e=="function"?m.jsx(e,{size:i,...o}):e})},Cr=h.createContext({});function Er(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const Pr=typeof window<"u",ri=Pr?h.useLayoutEffect:h.useEffect,Mn=h.createContext(null);function kr(e,t){e.indexOf(t)===-1&&e.push(t)}function Ar(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ze=(e,t,n)=>n>t?t:n<e?e:n;function Dr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Et=()=>{},He=()=>{};process.env.NODE_ENV!=="production"&&(Et=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Dr(t,n))},He=(e,t,n)=>{if(!e)throw new Error(Dr(t,n))});const Ue={},oi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function si(e){return typeof e=="object"&&e!==null}const ii=e=>/^0[^.\s]+$/u.test(e);function $r(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pe=e=>e,ed=(e,t)=>n=>t(e(n)),Ut=(...e)=>e.reduce(ed),Wt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Mr{constructor(){this.subscriptions=[]}add(t){return kr(this.subscriptions,t),()=>Ar(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 ai(e,t){return t?e*(1e3/t):0}const li=new Set;function Vr(e,t,n){e||li.has(t)||(console.warn(Dr(t,n)),li.add(t))}const ci=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,td=1e-7,nd=12;function rd(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ci(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>td&&++a<nd);return s}function Yt(e,t,n,r){if(e===t&&n===r)return Pe;const o=i=>rd(i,0,1,e,n);return i=>i===0||i===1?i:ci(o(i),t,r)}const ui=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,di=e=>t=>1-e(1-t),fi=Yt(.33,1.53,.69,.99),Ir=di(fi),hi=ui(Ir),pi=e=>(e*=2)<1?.5*Ir(e):.5*(2-Math.pow(2,-10*(e-1))),Nr=e=>1-Math.sin(Math.acos(e)),mi=di(Nr),gi=ui(Nr),od=Yt(.42,0,1,1),sd=Yt(0,0,.58,1),yi=Yt(.42,0,.58,1),id=e=>Array.isArray(e)&&typeof e[0]!="number",vi=e=>Array.isArray(e)&&typeof e[0]=="number",bi={linear:Pe,easeIn:od,easeInOut:yi,easeOut:sd,circIn:Nr,circInOut:gi,circOut:mi,backIn:Ir,backInOut:hi,backOut:fi,anticipate:pi},ad=e=>typeof e=="string",wi=e=>{if(vi(e)){He(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Yt(t,n,r,o)}else if(ad(e))return He(bi[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),bi[e];return e},Vn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ld(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 cd=40;function xi(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Vn.reduce((b,C)=>(b[C]=ld(i),b),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:d,update:c,preRender:f,render:p,postRender:g}=s,w=()=>{const b=Ue.useManualTiming?o.timestamp:performance.now();n=!1,Ue.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,cd),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:Vn.reduce((b,C)=>{const y=s[C];return b[C]=(S,E=!1,D=!1)=>(n||x(),y.schedule(S,E,D)),b},{}),cancel:b=>{for(let C=0;C<Vn.length;C++)s[Vn[C]].cancel(b)},state:o,steps:s}}const{schedule:ne,cancel:Ke,state:fe,steps:Lr}=xi(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let In;function ud(){In=void 0}const we={now:()=>(In===void 0&&we.set(fe.isProcessing||Ue.useManualTiming?fe.timestamp:performance.now()),In),set:e=>{In=e,queueMicrotask(ud)}},Si=e=>t=>typeof t=="string"&&t.startsWith(e),Or=Si("--"),dd=Si("var(--"),Fr=e=>dd(e)?fd.test(e.split("/*")[0].trim()):!1,fd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Kt={...Pt,transform:e=>ze(0,1,e)},Nn={...Pt,default:1},Gt=e=>Math.round(e*1e5)/1e5,Br=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hd(e){return e==null}const pd=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rr=(e,t)=>n=>!!(typeof n=="string"&&pd.test(n)&&n.startsWith(e)||t&&!hd(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ti=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Br);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},md=e=>ze(0,255,e),_r={...Pt,transform:e=>Math.round(md(e))},st={test:Rr("rgb","red"),parse:Ti("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_r.transform(e)+", "+_r.transform(t)+", "+_r.transform(n)+", "+Gt(Kt.transform(r))+")"};function gd(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 jr={test:Rr("#"),parse:gd,transform:st.transform},Xt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ge=Xt("deg"),Be=Xt("%"),V=Xt("px"),yd=Xt("vh"),vd=Xt("vw"),Ci={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},kt={test:Rr("hsl","hue"),parse:Ti("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(Gt(t))+", "+Be.transform(Gt(n))+", "+Gt(Kt.transform(r))+")"},ae={test:e=>st.test(e)||jr.test(e)||kt.test(e),parse:e=>st.test(e)?st.parse(e):kt.test(e)?kt.parse(e):jr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?st.transform(e):kt.transform(e),getAnimatableNone:e=>{const t=ae.parse(e);return t.alpha=0,ae.transform(t)}},bd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wd(e){return isNaN(e)&&typeof e=="string"&&(e.match(Br)?.length||0)+(e.match(bd)?.length||0)>0}const Ei="number",Pi="color",xd="var",Sd="var(",ki="${}",Td=/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 qt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Td,l=>(ae.test(l)?(r.color.push(i),o.push(Pi),n.push(ae.parse(l))):l.startsWith(Sd)?(r.var.push(i),o.push(xd),n.push(l)):(r.number.push(i),o.push(Ei),n.push(parseFloat(l))),++i,ki)).split(ki);return{values:n,split:a,indexes:r,types:o}}function Ai(e){return qt(e).values}function Di(e){const{split:t,types:n}=qt(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===Ei?i+=Gt(o[s]):a===Pi?i+=ae.transform(o[s]):i+=o[s]}return i}}const Cd=e=>typeof e=="number"?0:ae.test(e)?ae.getAnimatableNone(e):e;function Ed(e){const t=Ai(e);return Di(e)(t.map(Cd))}const Xe={test:wd,parse:Ai,createTransformer:Di,getAnimatableNone:Ed};function zr(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 Pd({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=zr(l,a,e+1/3),i=zr(l,a,e),s=zr(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Ln(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,Hr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},kd=[jr,st,kt],Ad=e=>kd.find(t=>t.test(e));function $i(e){const t=Ad(e);if(Et(!!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===kt&&(n=Pd(n)),n}const Mi=(e,t)=>{const n=$i(e),r=$i(t);if(!n||!r)return Ln(e,t);const o={...n};return i=>(o.red=Hr(n.red,r.red,i),o.green=Hr(n.green,r.green,i),o.blue=Hr(n.blue,r.blue,i),o.alpha=re(n.alpha,r.alpha,i),st.transform(o))},Ur=new Set(["none","hidden"]);function Dd(e,t){return Ur.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $d(e,t){return n=>re(e,t,n)}function Wr(e){return typeof e=="number"?$d:typeof e=="string"?Fr(e)?Ln:ae.test(e)?Mi:Id:Array.isArray(e)?Vi:typeof e=="object"?ae.test(e)?Mi:Md:Ln}function Vi(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Wr(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Md(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Wr(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Vd(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 Id=(e,t)=>{const n=Xe.createTransformer(t),r=qt(e),o=qt(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?Ur.has(e)&&!o.values.length||Ur.has(t)&&!r.values.length?Dd(e,t):Ut(Vi(Vd(r,o),o.values),n):(Et(!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"),Ln(e,t))};function Ii(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):Wr(e)(e,t)}const Nd=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ne.update(t,n),stop:()=>Ke(t),now:()=>fe.isProcessing?fe.timestamp:we.now()}},Ni=(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)})`},On=2e4;function Yr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<On;)t+=n,r=e.next(t);return t>=On?1/0:t}function Ld(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Yr(r),On);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Fe(o)}}const Od=5;function Li(e,t,n){const r=Math.max(t-Od,0);return ai(n-e(r),t-r)}const oe={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},Kr=.001;function Fd({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let o,i;Et(e<=Me(oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=ze(oe.minDamping,oe.maxDamping,s),e=ze(oe.minDuration,oe.maxDuration,Fe(e)),s<1?(o=u=>{const d=u*s,c=d*e,f=d-n,p=Gr(u,s),g=Math.exp(-c);return Kr-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=Gr(Math.pow(u,2),s);return(-o(u)+Kr>0?-1:1)*((f-p)*g)/w}):(o=u=>{const d=Math.exp(-u*e),c=(u-n)*e+1;return-Kr+d*c},i=u=>{const d=Math.exp(-u*e),c=(n-u)*(e*e);return d*c});const a=5/e,l=Rd(o,i,a);if(e=Me(e),isNaN(l))return{stiffness:oe.stiffness,damping:oe.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 Rd(e,t,n){let r=n;for(let o=1;o<Bd;o++)r=r-e(r)/t(r);return r}function Gr(e,t){return e*Math.sqrt(1-t*t)}const _d=["duration","bounce"],jd=["stiffness","damping","mass"];function Oi(e,t){return t.some(n=>e[n]!==void 0)}function zd(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!Oi(e,jd)&&Oi(e,_d))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*ze(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:oe.mass,stiffness:o,damping:i}}else{const n=Fd(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function Fn(e=oe.visualDuration,t=oe.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}=zd({...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?oe.restSpeed.granular:oe.restSpeed.default),o||(o=T?oe.restDelta.granular:oe.restDelta.default);let b;if(w<1){const y=Gr(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),D=Math.min(y*S,300);return s-E*((g+w*v*x)*Math.sinh(D)+y*x*Math.cosh(D))/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):Li(b,y,S));const D=Math.abs(E)<=r,L=Math.abs(s-S)<=o;a.done=D&&L}return a.value=a.done?s:S,a},toString:()=>{const y=Math.min(Yr(C),On),S=Ni(E=>C.next(y*E).value,y,30);return y+"ms "+S},toTransition:()=>{}};return C}Fn.applyToOptions=e=>{const t=Ld(e,100,Fn);return e.ease=t.ease,e.duration=Me(t.duration),e.type="keyframes",e};function Xr({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=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 w=n*t;const x=c+w,v=s===void 0?x:s(x);v!==x&&(w=v-c);const T=D=>-w*Math.exp(-D/r),b=D=>v+T(D),C=D=>{const L=T(D),G=b(D);f.done=Math.abs(L)<=u,f.value=f.done?v:G};let y,S;const E=D=>{p(f.value)&&(y=D,S=Fn({keyframes:[f.value,g(f.value)],velocity:Li(b,D,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:D=>{let L=!1;return!S&&y===void 0&&(L=!0,C(D),E(D)),y!==void 0&&D>=y?S.next(D-y):(!L&&C(D),f)}}}function Hd(e,t,n){const r=[],o=n||Ue.mix||Ii,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=Ut(l,a)}r.push(a)}return r}function Ud(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(He(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=Hd(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=Wt(e[c],e[c+1],d);return a[c](f)};return n?d=>u(ze(e[0],e[i-1],d)):u}function Wd(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Wt(0,t,r);e.push(re(n,1,o))}}function Yd(e){const t=[0];return Wd(t,e.length-1),t}function Kd(e,t){return e.map(n=>n*t)}function Gd(e,t){return e.map(()=>t||yi).splice(0,e.length-1)}function At({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=id(r)?r.map(wi):wi(r),i={done:!1,value:t[0]},s=Kd(n&&n.length===t.length?n:Yd(t),e),a=Ud(s,t,{ease:Array.isArray(o)?o:Gd(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Xd=e=>e!==null;function qr(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Xd),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const qd={decay:Xr,inertia:Xr,tween:At,keyframes:At,spring:Fn};function Fi(e){typeof e.type=="string"&&(e.type=qd[e.type])}class Zr{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 Zd=e=>e/100;class Jr extends Zr{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;Fi(t);const{type:n=At,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||At;process.env.NODE_ENV!=="production"&&l!==At&&He(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==At&&typeof a[0]!="number"&&(this.mixKeyframes=Ut(Zd,Ii(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=Yr(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 D=Math.min(this.currentTime,o)/a;let L=Math.floor(D),G=D%1;!G&&D>=1&&(G=1),G===1&&L--,L=Math.min(L,c+1),!!(L%2)&&(f==="reverse"?(G=1-G,p&&(G-=p/a)):f==="mirror"&&(C=s)),b=ze(0,1,G)*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!==Xr&&(y.value=qr(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=Nd,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 Jd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const it=e=>e*180/Math.PI,Qr=e=>{const t=it(Math.atan2(e[1],e[0]));return eo(t)},Qd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qr,rotateZ:Qr,skewX:e=>it(Math.atan(e[1])),skewY:e=>it(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eo=e=>(e=e%360,e<0&&(e+=360),e),Bi=Qr,Ri=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_i=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ef={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ri,scaleY:_i,scale:e=>(Ri(e)+_i(e))/2,rotateX:e=>eo(it(Math.atan2(e[6],e[5]))),rotateY:e=>eo(it(Math.atan2(-e[2],e[0]))),rotateZ:Bi,rotate:Bi,skewX:e=>it(Math.atan(e[4])),skewY:e=>it(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function to(e){return e.includes("scale")?1:0}function no(e,t){if(!e||e==="none")return to(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=ef,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Qd,o=a}if(!o)return to(t);const i=r[t],s=o[1].split(",").map(nf);return typeof i=="function"?i(s):s[i]}const tf=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return no(n,t)};function nf(e){return parseFloat(e.trim())}const Dt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$t=new Set(Dt),ji=e=>e===Pt||e===V,rf=new Set(["x","y","z"]),of=Dt.filter(e=>!rf.has(e));function sf(e){const t=[];return of.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const at={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})=>no(t,"x"),y:(e,{transform:t})=>no(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let ro=!1,oo=!1,so=!1;function zi(){if(oo){const e=Array.from(lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=sf(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)})}oo=!1,ro=!1,lt.forEach(e=>e.complete(so)),lt.clear()}function Hi(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oo=!0)})}function af(){so=!0,Hi(),zi(),so=!1}class io{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?(lt.add(this),ro||(ro=!0,ne.read(Hi),ne.resolveKeyframes(zi))):(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])}Jd(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lt.delete(this)}cancel(){this.state==="scheduled"&&(lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const lf=e=>e.startsWith("--");function cf(e,t,n){lf(t)?e.style.setProperty(t,n):e.style[t]=n}const uf=$r(()=>window.ScrollTimeline!==void 0),df={};function ff(e,t){const n=$r(e);return()=>df[t]??n()}const Ui=ff(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zt([0,.65,.55,1]),circOut:Zt([.55,0,1,.45]),backIn:Zt([.31,.01,.66,-.59]),backOut:Zt([.33,1.53,.69,.99])};function Yi(e,t){if(e)return typeof e=="function"?Ui()?Ni(e,t):"ease-out":vi(e)?Zt(e):Array.isArray(e)?e.map(n=>Yi(n,t)||Wi.easeOut):Wi[e]}function hf(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=Yi(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 Ki(e){return typeof e=="function"&&"applyToOptions"in e}function pf({type:e,...t}){return Ki(e)&&Ui()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class mf extends Zr{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,He(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=pf(t);this.animation=hf(n,r,o,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=qr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):cf(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&&uf()?(this.animation.timeline=t,Pe):n(this)}}const Gi={anticipate:pi,backInOut:hi,circInOut:gi};function gf(e){return e in Gi}function yf(e){typeof e.ease=="string"&&gf(e.ease)&&(e.ease=Gi[e.ease])}const Xi=10;class vf extends mf{constructor(t){yf(t),Fi(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 Jr({...s,autoplay:!1}),l=Me(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Xi).value,a.sample(l).value,Xi),a.stop()}}const qi=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xe.test(e)||e==="0")&&!e.startsWith("url("));function bf(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 wf(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=qi(o,t),a=qi(i,t);return Et(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:bf(e)||(n==="spring"||Ki(n))&&r}function ao(e){e.duration=0,e.type}const xf=new Set(["opacity","clipPath","filter","transform"]),Sf=$r(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Tf(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 Sf()&&n&&xf.has(n)&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Cf=40;class Ef extends Zr{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||io;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(),wf(t,i,s,a)||((Ue.instantAnimations||!l)&&d?.(qr(t,r,n)),t[0]=t[t.length-1],ao(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Cf?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!u&&Tf(f)?new vf({...f,element:f.motionValue.owner.current}):new Jr(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(),af()),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 Pf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kf(e){const t=Pf.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Af=4;function Zi(e,t,n=1){He(n<=Af,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=kf(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return oi(s)?parseFloat(s):s}return Fr(o)?Zi(o,t,n+1):o}function lo(e,t){return e?.[t]??e?.default??e}const Ji=new Set(["width","height","top","left","right","bottom",...Dt]),Df={test:e=>e==="auto",parse:e=>e},Qi=e=>t=>t.test(e),ea=[Pt,V,Be,Ge,vd,yd,Df],ta=e=>ea.find(Qi(e));function $f(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ii(e):!0}const Mf=new Set(["brightness","contrast","saturate","opacity"]);function Vf(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Br)||[];if(!r)return e;const o=n.replace(r,"");let i=Mf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const If=/\b([a-z-]*)\(.*?\)/gu,co={...Xe,getAnimatableNone:e=>{const t=e.match(If);return t?t.map(Vf).join(" "):e}},na={...Pt,transform:Math.round},uo={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:Ge,rotateX:Ge,rotateY:Ge,rotateZ:Ge,scale:Nn,scaleX:Nn,scaleY:Nn,scaleZ:Nn,skew:Ge,skewX:Ge,skewY:Ge,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Kt,originX:Ci,originY:Ci,originZ:V},zIndex:na,fillOpacity:Kt,strokeOpacity:Kt,numOctaves:na},Nf={...uo,color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:co,WebkitFilter:co},ra=e=>Nf[e];function oa(e,t){let n=ra(e);return n!==co&&(n=Xe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Lf=new Set(["auto","none","0"]);function Of(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Lf.has(i)&&qt(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=oa(n,o)}class Ff extends io{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(),Fr(u))){const d=Zi(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ji.has(r)||t.length!==2)return;const[o,i]=t,s=ta(o),a=ta(i);if(s!==a)if(ji(s)&&ji(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else at[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||$f(t[o]))&&r.push(o);r.length&&Of(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=at[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]=at[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 sa=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ia(e){return si(e)&&"offsetHeight"in e}const aa=30,Rf=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=Rf(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Vr(!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 Mr);const r=this.events[t].add(n);return t==="change"?()=>{r(),ne.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>aa)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,aa);return ai(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 Mt(e,t){return new _f(e,t)}const{schedule:fo}=xi(queueMicrotask,!1),Ve={x:!1,y:!1};function la(){return Ve.x||Ve.y}function jf(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 ca(e,t){const n=Bf(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function ua(e){return!(e.pointerType==="touch"||la())}function zf(e,t,n={}){const[r,o,i]=ca(e,n),s=a=>{if(!ua(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const d=c=>{ua(c)&&(u(c),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const da=(e,t)=>t?e===t?!0:da(e,t.parentElement):!1,ho=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Hf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Uf(e){return Hf.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function fa(e){return t=>{t.key==="Enter"&&e(t)}}function po(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Wf=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=fa(()=>{if(Bn.has(n))return;po(n,"down");const o=fa(()=>{po(n,"up")}),i=()=>po(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 ha(e){return ho(e)&&!la()}function Yf(e,t,n={}){const[r,o,i]=ca(e,n),s=a=>{const l=a.currentTarget;if(!ha(a))return;Bn.add(l);const u=t(l,a),d=(p,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),Bn.has(l)&&Bn.delete(l),ha(p)&&typeof u=="function"&&u(p,{success:g})},c=p=>{d(p,l===window||l===document||n.useGlobalTarget||da(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),ia(a)&&(a.addEventListener("focus",u=>Wf(u,o)),!Uf(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function pa(e){return si(e)&&"ownerSVGElement"in e}function Kf(e){return pa(e)&&e.tagName==="svg"}const pe=e=>!!(e&&e.getVelocity),Gf=[...ea,ae,Xe],Xf=e=>Gf.find(Qi(e)),mo=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class qf extends ir.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ia(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 Zf({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(mo);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
|
+
`,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(`
|
|
227
227
|
[data-motion-pop-id="${o}"] {
|
|
228
228
|
position: absolute !important;
|
|
229
229
|
width: ${l}px !important;
|
|
@@ -231,7 +231,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
231
231
|
${p}px !important;
|
|
232
232
|
top: ${d}px !important;
|
|
233
233
|
}
|
|
234
|
-
`),()=>{w.contains(g)&&w.removeChild(g)}},[t]),m.jsx(qf,{isPresent:t,childRef:i,sizeRef:s,children:ir.cloneElement(e,{ref:i})})}const Jf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const u=Er(Qf),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]),ir.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=m.jsx(Zf,{isPresent:n,anchorX:a,root:l,children:e})),m.jsx(Mn.Provider,{value:f,children:e})};function Qf(){return new Map}function ma(e=!0){const t=h.useContext(Mn);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 Rn=e=>e.key||"";function ga(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const _n=({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]=ma(s),c=h.useMemo(()=>ga(e),[e]),f=s&&!u?[]:c.map(Rn),p=h.useRef(!0),g=h.useRef(c),w=Er(()=>new Map),[x,v]=h.useState(c),[T,b]=h.useState(c);ri(()=>{p.current=!1,g.current=c;for(let S=0;S<T.length;S++){const E=Rn(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 D=T[E],L=Rn(D);f.includes(L)||(S.splice(E,0,D),C.push(D))}return i==="wait"&&C.length&&(S=C),b(ga(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(Cr);return m.jsx(m.Fragment,{children:T.map(S=>{const E=Rn(S),D=s&&!u?!1:c===T||f.includes(E),L=()=>{if(w.has(E))w.set(E,!0);else return;let G=!0;w.forEach(M=>{M||(G=!1)}),G&&(y?.(),b(g.current),s&&d?.(),r&&r())};return m.jsx(Jf,{isPresent:D,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:D?void 0:L,anchorX:a,children:S},E)})})},ya=h.createContext({strict:!1}),va={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"]},Vt={};for(const e in va)Vt[e]={isEnabled:t=>va[e].some(n=>!!t[n])};function eh(e){for(const t in e)Vt[t]={...Vt[t],...e[t]}}const th=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 jn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||th.has(e)}let ba=e=>!jn(e);function nh(e){typeof e=="function"&&(ba=t=>t.startsWith("on")?!jn(t):e(t))}try{nh(require("@emotion/is-prop-valid").default)}catch{}function rh(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ba(o)||n===!0&&jn(o)||!t&&!jn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const zn=h.createContext({});function Hn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jt(e){return typeof e=="string"||Array.isArray(e)}const go=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yo=["initial",...go];function Un(e){return Hn(e.animate)||yo.some(t=>Jt(e[t]))}function wa(e){return!!(Un(e)||e.variants)}function oh(e,t){if(Un(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Jt(n)?n:void 0,animate:Jt(r)?r:void 0}}return e.inherit!==!1?t:{}}function sh(e){const{initial:t,animate:n}=oh(e,h.useContext(zn));return h.useMemo(()=>({initial:t,animate:n}),[xa(t),xa(n)])}function xa(e){return Array.isArray(e)?e.join(" "):e}const Qt={};function ih(e){for(const t in e)Qt[t]=e[t],Or(t)&&(Qt[t].isCSSVariable=!0)}function Sa(e,{layout:t,layoutId:n}){return $t.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qt[e]||e==="opacity")}const ah={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lh=Dt.length;function ch(e,t,n){let r="",o=!0;for(let i=0;i<lh;i++){const s=Dt[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=sa(a,uo[s]);if(!l){o=!1;const d=ah[s]||s;r+=`${d}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function vo(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($t.has(l)){s=!0;continue}else if(Or(l)){o[l]=u;continue}else{const d=sa(u,uo[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=ch(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 bo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ta(e,t,n){for(const r in t)!pe(t[r])&&!Sa(r,n)&&(e[r]=t[r])}function uh({transformTemplate:e},t){return h.useMemo(()=>{const n=bo();return vo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dh(e,t){const n=e.style||{},r={};return Ta(r,n,e),Object.assign(r,uh(e,t)),r}function fh(e,t){const n={},r=dh(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 hh={offset:"stroke-dashoffset",array:"stroke-dasharray"},ph={offset:"strokeDashoffset",array:"strokeDasharray"};function mh(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?hh:ph;e[i.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[i.array]=`${s} ${a}`}function Ca(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,u,d){if(vo(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&&mh(c,o,i,s,!1)}const Ea=()=>({...bo(),attrs:{}}),Pa=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gh(e,t,n,r){const o=h.useMemo(()=>{const i=Ea();return Ca(i,t,Pa(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ta(i,e.style,e),o.style={...i,...o.style}}return o}const yh=["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 wo(e){return typeof e!="string"||e.includes("-")?!1:!!(yh.indexOf(e)>-1||/[A-Z]/u.test(e))}function vh(e,t,n,{latestValues:r},o,i=!1){const a=(wo(e)?gh:fh)(t,r,o,e),l=rh(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 ka(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xo(e,t,n,r){if(typeof t=="function"){const[o,i]=ka(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]=ka(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Wn(e){return pe(e)?e.get():e}function bh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:wh(n,r,o,e),renderState:t()}}function wh(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Wn(i[f]);let{initial:s,animate:a}=e;const l=Un(e),u=wa(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"&&!Hn(c)){const f=Array.isArray(c)?c:[c];for(let p=0;p<f.length;p++){const g=xo(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 Aa=e=>(t,n)=>{const r=h.useContext(zn),o=h.useContext(Mn),i=()=>bh(e,t,r,o);return n?i():Er(i)};function So(e,t,n){const{style:r}=e,o={};for(const i in r)(pe(r[i])||t.style&&pe(t.style[i])||Sa(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const xh=Aa({scrapeMotionValuesFromProps:So,createRenderState:bo});function Da(e,t,n){const r=So(e,t,n);for(const o in e)if(pe(e[o])||pe(t[o])){const i=Dt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Sh=Aa({scrapeMotionValuesFromProps:Da,createRenderState:Ea}),Th=Symbol.for("motionComponentSymbol");function It(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ch(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):It(n)&&(n.current=r))},[t])}const To=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$a="data-"+To("framerAppearId"),Ma=h.createContext({});function Eh(e,t,n,r,o){const{visualElement:i}=h.useContext(zn),s=h.useContext(ya),a=h.useContext(Mn),l=h.useContext(mo).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(Ma);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&Ph(u.current,n,o,c);const f=h.useRef(!1);h.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const p=n[$a],g=h.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return ri(()=>{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 Ph(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:Va(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&It(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function Va(e){if(e)return e.options.allowProjection!==!1?e.projection:Va(e.parent)}function Co(e,{forwardMotionProps:t=!1}={},n,r){n&&eh(n);const o=wo(e)?Sh:xh;function i(a,l){let u;const d={...h.useContext(mo),...a,layoutId:kh(a)},{isStatic:c}=d,f=sh(a),p=o(a,c);if(!c&&Pr){Ah(d,n);const g=Dh(d);u=g.MeasureLayout,f.visualElement=Eh(e,p,d,r,g.ProjectionNode)}return m.jsxs(zn.Provider,{value:f,children:[u&&f.visualElement?m.jsx(u,{visualElement:f.visualElement,...d}):null,vh(e,a,Ch(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[Th]=e,s}function kh({layoutId:e}){const t=h.useContext(Cr).id;return t&&e!==void 0?t+"-"+e:e}function Ah(e,t){const n=h.useContext(ya).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?Et(!1,r,"lazy-strict-mode"):He(!1,r,"lazy-strict-mode")}}function Dh(e){const{drag:t,layout:n}=Vt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $h(e,t){if(typeof Proxy>"u")return Co;const n=new Map,r=(i,s)=>Co(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Vr(!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,Co(s,void 0,e,t)),n.get(s))})}function Ia({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Mh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vh(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 Eo(e){return e===void 0||e===1}function Po({scale:e,scaleX:t,scaleY:n}){return!Eo(e)||!Eo(t)||!Eo(n)}function ct(e){return Po(e)||Na(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Na(e){return La(e.x)||La(e.y)}function La(e){return e&&e!=="0%"}function Yn(e,t,n){const r=e-n,o=t*r;return n+o}function Oa(e,t,n,r,o){return o!==void 0&&(e=Yn(e,o,r)),Yn(e,n,r)+t}function ko(e,t=0,n=1,r,o){e.min=Oa(e.min,t,n,r,o),e.max=Oa(e.max,t,n,r,o)}function Fa(e,{x:t,y:n}){ko(e.x,t.translate,t.scale,t.originPoint),ko(e.y,n.translate,n.scale,n.originPoint)}const Ba=.999999999999,Ra=1.0000000000001;function Ih(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&&Lt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Fa(e,s)),r&&ct(i.latestValues)&&Lt(e,i.latestValues))}t.x<Ra&&t.x>Ba&&(t.x=1),t.y<Ra&&t.y>Ba&&(t.y=1)}function Nt(e,t){e.min=e.min+t,e.max=e.max+t}function _a(e,t,n,r,o=.5){const i=re(e.min,e.max,o);ko(e,t,n,i,r)}function Lt(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 ja(e,t){return Ia(Vh(e.getBoundingClientRect(),t))}function Nh(e,t,n){const r=ja(e,n),{scroll:o}=t;return o&&(Nt(r.x,o.offset.x),Nt(r.y,o.offset.y)),r}const za=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ot=()=>({x:za(),y:za()}),Ha=()=>({min:0,max:0}),se=()=>({x:Ha(),y:Ha()}),Ao={current:null},Ua={current:!1};function Lh(){if(Ua.current=!0,!!Pr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ao.current=e.matches;e.addEventListener("change",t),t()}else Ao.current=!1}const Oh=new WeakMap;function Fh(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,Mt(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,Mt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wa=["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=io,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,ne.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=Un(n),this.isVariantNode=wa(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,Oh.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)),Ua.current||Lh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ao.current,process.env.NODE_ENV!=="production"&&Vr(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(),Ke(this.notifyUpdate),Ke(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=$t.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ne.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 Vt){const n=Vt[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):se()}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<Wa.length;r++){const o=Wa[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=Fh(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=Mt(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"&&(oi(r)||ii(r))?r=parseFloat(r):!Xf(r)&&Xe.test(n)&&(r=oa(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=xo(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 Mr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){fo.render(this.render)}}class Ya extends Bh{constructor(){super(...arguments),this.KeyframeResolver=Ff}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 Ka(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 Rh(e){return window.getComputedStyle(e)}class _h extends Ya{constructor(){super(...arguments),this.type="html",this.renderInstance=Ka}readValueFromInstance(t,n){if($t.has(n))return this.projection?.isProjecting?to(n):tf(t,n);{const r=Rh(t),o=(Or(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ja(t,n)}build(t,n,r){vo(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return So(t,n,r)}}const Ga=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 jh(e,t,n,r){Ka(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ga.has(o)?o:To(o),t.attrs[o])}class zh extends Ya{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($t.has(n)){const r=ra(n);return r&&r.default||0}return n=Ga.has(n)?n:To(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Da(t,n,r)}build(t,n,r){Ca(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){jh(t,n,r,o)}mount(t){this.isSVGTag=Pa(t.tagName),super.mount(t)}}const Hh=(e,t)=>wo(e)?new zh(t):new _h(t,{allowProjection:e!==h.Fragment});function Ft(e,t,n){const r=e.getProps();return xo(r,t,n!==void 0?n:r.custom,e)}const Do=e=>Array.isArray(e);function Uh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mt(n))}function Wh(e){return Do(e)?e[e.length-1]||0:e}function Yh(e,t){const n=Ft(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Wh(i[s]);Uh(e,s,a)}}function Kh(e){return!!(pe(e)&&e.add)}function $o(e,t){const n=e.getValue("willChange");if(Kh(n))return n.add(t);if(!n&&Ue.WillChange){const r=new Ue.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Xa(e){return e.props[$a]}const Gh=e=>e!==null;function Xh(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Gh),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const qh={type:"spring",stiffness:500,damping:25,restSpeed:10},Zh=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jh={type:"keyframes",duration:.8},Qh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ep=(e,{keyframes:t})=>t.length>2?Jh:$t.has(e)?e.startsWith("scale")?Zh(t[1]):qh:Qh;function tp({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 Mo=(e,t,n,r={},o,i)=>s=>{const a=lo(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};tp(a)||Object.assign(d,ep(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)&&(ao(d),d.delay===0&&(c=!0)),(Ue.instantAnimations||Ue.skipAnimations)&&(c=!0,ao(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,c&&!i&&t.get()!==void 0){const f=Xh(d.keyframes,a);if(f!==void 0){ne.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new Jr(d):new Ef(d)};function np({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function qa(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&&np(u,d))continue;const p={delay:n,...lo(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=Xa(e);if(v){const T=window.MotionHandoffAnimation(v,d,ne);T!==null&&(p.startTime=T,w=!0)}}$o(e,d),c.start(Mo(d,c,f,e.shouldReduceMotion&&Ji.has(d)?{type:!1}:p,e,w));const x=c.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{ne.update(()=>{s&&Yh(e,s)})}),l}function Za(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 Vo(e,t,n={}){const r=Ft(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(qa(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:c}=o;return rp(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 rp(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(Vo(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Za(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function op(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Vo(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Vo(e,t,n);else{const o=typeof t=="function"?Ft(e,t,n.custom):t;r=Promise.all(qa(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ja(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 sp=yo.length;function Qa(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Qa(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<sp;n++){const r=yo[n],o=e.props[r];(Jt(o)||o===!1)&&(t[r]=o)}return t}const ip=[...go].reverse(),ap=go.length;function lp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>op(e,n,r)))}function cp(e){let t=lp(e),n=el(),r=!0;const o=l=>(u,d)=>{const c=Ft(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=Qa(e.parent)||{},c=[],f=new Set;let p={},g=1/0;for(let x=0;x<ap;x++){const v=ip[x],T=n[v],b=u[v]!==void 0?u[v]:d[v],C=Jt(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||Hn(b)||typeof b=="boolean")continue;const E=up(T.prevProp,b);let D=E||v===l&&T.isActive&&!S&&C||x>g&&C,L=!1;const G=Array.isArray(b)?b:[b];let M=G.reduce(o(v),{});y===!1&&(M={});const{prevResolvedValues:X={}}=T,te={...X,...M},ce=N=>{D=!0,f.has(N)&&(L=!0,f.delete(N)),T.needsAnimating[N]=!0;const U=e.getValue(N);U&&(U.liveStyle=!1)};for(const N in te){const U=M[N],B=X[N];if(p.hasOwnProperty(N))continue;let H=!1;Do(U)&&Do(B)?H=!Ja(U,B):H=U!==B,H?U!=null?ce(N):f.add(N):U!==void 0&&f.has(N)?ce(N):T.protectedKeys[N]=!0}T.prevProp=b,T.prevResolvedValues=M,T.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(D=!1);const ve=S&&E;D&&(!ve||L)&&c.push(...G.map(N=>{const U={type:v};if(typeof N=="string"&&r&&!ve&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,H=Ft(B,N);if(B.enteringChildren&&H){const{delayChildren:j}=H.transition||{};U.delay=Za(B.enteringChildren,e,j)}}return{animation:N,options:U}}))}if(f.size){const x={};if(typeof u.initial!="boolean"){const v=Ft(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=el(),r=!0}}}function up(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ja(t,e):!1}function ut(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function el(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}class qe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dp extends qe{constructor(t){super(t),t.animationState||(t.animationState=cp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Hn(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 fp=0;class hp extends qe{constructor(){super(...arguments),this.id=fp++}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 pp={animation:{Feature:dp},exit:{Feature:hp}};function en(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function tn(e){return{point:{x:e.pageX,y:e.pageY}}}const mp=e=>t=>ho(t)&&e(t,tn(t));function nn(e,t,n,r){return en(e,t,mp(n),r)}const tl=1e-4,gp=1-tl,yp=1+tl,nl=.01,vp=0-nl,bp=0+nl;function ye(e){return e.max-e.min}function wp(e,t,n){return Math.abs(e-t)<=n}function rl(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gp&&e.scale<=yp||isNaN(e.scale))&&(e.scale=1),(e.translate>=vp&&e.translate<=bp||isNaN(e.translate))&&(e.translate=0)}function rn(e,t,n,r){rl(e.x,t.x,n.x,r?r.originX:void 0),rl(e.y,t.y,n.y,r?r.originY:void 0)}function ol(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function xp(e,t,n){ol(e.x,t.x,n.x),ol(e.y,t.y,n.y)}function sl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function on(e,t,n){sl(e.x,t.x,n.x),sl(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const il=({current:e})=>e?e.ownerDocument.defaultView:null,al=(e,t)=>Math.abs(e-t);function Sp(e,t){const n=al(e.x,t.x),r=al(e.y,t.y);return Math.sqrt(n**2+r**2)}class ll{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=No(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=Sp(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=Io(p,this.transformPagePoint),ne.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=No(f.type==="pointercancel"?this.lastMoveEventInfo:Io(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,v),w&&w(f,v)},!ho(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=tn(t),l=Io(a,this.transformPagePoint),{point:u}=l,{timestamp:d}=fe;this.history=[{...u,timestamp:d}];const{onSessionStart:c}=n;c&&c(t,No(l,this.history)),this.removeListeners=Ut(nn(this.contextWindow,"pointermove",this.handlePointerMove),nn(this.contextWindow,"pointerup",this.handlePointerUp),nn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ke(this.updatePoint)}}function Io(e,t){return t?{point:t(e.point)}:e}function cl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function No({point:e},t){return{point:e,delta:cl(e,ul(t)),offset:cl(e,Tp(t)),velocity:Cp(t,.1)}}function Tp(e){return e[0]}function ul(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=ul(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 Ep(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function dl(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 Pp(e,{top:t,left:n,bottom:r,right:o}){return{x:dl(e.x,n,o),y:dl(e.y,t,r)}}function fl(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 kp(e,t){return{x:fl(e.x,t.x),y:fl(e.y,t.y)}}function Ap(e,t){let n=.5;const r=ye(e),o=ye(t);return o>r?n=Wt(t.min,t.max-r,e.min):r>o&&(n=Wt(e.min,e.max-o,t.min)),ze(0,1,n)}function Dp(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 Lo=.35;function $p(e=Lo){return e===!1?e=0:e===!0&&(e=Lo),{x:hl(e,"left","right"),y:hl(e,"top","bottom")}}function hl(e,t,n){return{min:pl(e,t),max:pl(e,n)}}function pl(e,t){return typeof e=="number"?e:e[t]||0}const Mp=new WeakMap;class Vp{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=se(),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(tn(c).point)},s=(c,f)=>{const{drag:p,dragPropagation:g,onDragStart:w}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jf(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(Be.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&&ne.postRender(()=>w(c,f)),$o(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=Ip(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 ll(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:il(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&&ne.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||!Kn(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Ep(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&&It(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Pp(r.layoutBox,t):this.constraints=!1,this.elastic=$p(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Dp(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!It(t))return!1;const r=t.current;He(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=Nh(r,o.root,this.visualElement.getTransformPagePoint());let s=kp(o.layout.layoutBox,i);if(n){const a=n(Mh(s));this.hasMutatedConstraints=!!a,a&&(s=Ia(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(!Kn(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 $o(this.visualElement,t),r.start(Mo(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(!Kn(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]-re(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!It(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]=Ap({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(!Kn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(re(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Mp.set(this.visualElement,this);const t=this.visualElement.current,n=nn(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();It(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()),ne.read(r);const s=en(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=Lo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Kn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ip(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Np extends qe{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new Vp(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 ml=e=>(t,n)=>{e&&ne.postRender(()=>e(t,n))};class Lp extends qe{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new ll(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:il(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ml(t),onStart:ml(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ne.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=nn(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 Gn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=gl(e,t.target.x),r=gl(e,t.target.y);return`${n}% ${r}%`}},Op={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Xe.parse(e);if(o.length>5)return r;const i=Xe.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=re(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 Oo=!1;class Fp extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;ih(Bp),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Oo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Gn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Oo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ne.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fo.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Oo=!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 yl(e){const[t,n]=ma(),r=h.useContext(Cr);return m.jsx(Fp,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(Ma),isPresent:t,safeToRemove:n})}const Bp={borderRadius:{...sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sn,borderTopRightRadius:sn,borderBottomLeftRadius:sn,borderBottomRightRadius:sn,boxShadow:Op};function Rp(e,t,n){const r=pe(e)?e:Mt(e);return r.start(Mo("",r,t,n)),r.animation}const _p=(e,t)=>e.depth-t.depth;class jp{constructor(){this.children=[],this.isDirty=!1}add(t){kr(this.children,t),this.isDirty=!0}remove(t){Ar(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_p),this.isDirty=!1,this.children.forEach(t)}}function zp(e,t){const n=we.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ke(r),e(i-t))};return ne.setup(r,!0),()=>Ke(r)}const vl=["TopLeft","TopRight","BottomLeft","BottomRight"],Hp=vl.length,bl=e=>typeof e=="string"?parseFloat(e):e,wl=e=>typeof e=="number"||V.test(e);function Up(e,t,n,r,o,i){o?(e.opacity=re(0,n.opacity??1,Wp(r)),e.opacityExit=re(t.opacity??1,0,Yp(r))):i&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<Hp;s++){const a=`border${vl[s]}Radius`;let l=xl(t,a),u=xl(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||wl(l)===wl(u)?(e[a]=Math.max(re(bl(l),bl(u),r),0),(Be.test(u)||Be.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function xl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Wp=Sl(0,.5,mi),Yp=Sl(.5,.95,Pe);function Sl(e,t,n){return r=>r<e?0:r>t?1:n(Wt(e,t,r))}function Tl(e,t){e.min=t.min,e.max=t.max}function Ae(e,t){Tl(e.x,t.x),Tl(e.y,t.y)}function Cl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function El(e,t,n,r,o){return e-=t,e=Yn(e,1/n,r),o!==void 0&&(e=Yn(e,1/o,r)),e}function Kp(e,t=0,n=1,r=.5,o,i=e,s=e){if(Be.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=re(i.min,i.max,r);e===i&&(a-=t),e.min=El(e.min,t,n,a,o),e.max=El(e.max,t,n,a,o)}function Pl(e,t,[n,r,o],i,s){Kp(e,t[n],t[r],t[o],t.scale,i,s)}const Gp=["x","scaleX","originX"],Xp=["y","scaleY","originY"];function kl(e,t,n,r){Pl(e.x,t,Gp,n?n.x:void 0,r?r.x:void 0),Pl(e.y,t,Xp,n?n.y:void 0,r?r.y:void 0)}function Al(e){return e.translate===0&&e.scale===1}function Dl(e){return Al(e.x)&&Al(e.y)}function $l(e,t){return e.min===t.min&&e.max===t.max}function qp(e,t){return $l(e.x,t.x)&&$l(e.y,t.y)}function Ml(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vl(e,t){return Ml(e.x,t.x)&&Ml(e.y,t.y)}function Il(e){return ye(e.x)/ye(e.y)}function Nl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Zp{constructor(){this.members=[]}add(t){kr(this.members,t),t.scheduleRender()}remove(t){if(Ar(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 Jp(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 Fo=["","X","Y","Z"],Qp=1e3;let em=0;function Bo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ll(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xa(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ne,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ll(r)}function Ol({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=em++,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(rm),this.nodes.forEach(am),this.nodes.forEach(lm),this.nodes.forEach(om)},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 jp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Mr),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=pa(s)&&!Kf(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;ne.read(()=>{c=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==c&&(c=p,this.root.updateBlockedByResize=!0,d&&d(),d=zp(f,250),Gn.hasAnimatedSinceResize&&(Gn.hasAnimatedSinceResize=!1,this.nodes.forEach(Rl)))})}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()||hm,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=u.getProps(),v=!this.targetLayout||!Vl(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={...lo(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||Rl(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(),Ke(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(cm),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&&Ll(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(Fl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(im),this.nodes.forEach(tm),this.nodes.forEach(nm)):this.nodes.forEach(Bl),this.clearAllSnapshots();const a=we.now();fe.delta=ze(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Lr.update.process(fe),Lr.preRender.process(fe),Lr.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sm),this.sharedNodes.forEach(um)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ne.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=se(),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&&!Dl(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||ct(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)),pm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return se();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(mm))){const{scroll:u}=this.root;u&&(Nt(a.x,u.offset.x),Nt(a.y,u.offset.y))}return a}removeElementScroll(s){const a=se();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),Nt(a.x,d.offset.x),Nt(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=se();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&&Lt(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ct(d.latestValues)&&Lt(l,d.latestValues)}return ct(this.latestValues)&&Lt(l,this.latestValues),l}removeTransform(s){const a=se();Ae(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ct(u.latestValues))continue;Po(u.latestValues)&&u.updateSnapshot();const d=se(),c=u.measurePageBox();Ae(d,c),kl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ct(this.latestValues)&&kl(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=se(),this.relativeTargetOrigin=se(),on(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=se(),this.targetWithTransforms=se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ae(this.target,this.layout.layoutBox),Fa(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=se(),this.relativeTargetOrigin=se(),on(this.relativeTargetOrigin,this.target,f.target),Ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Po(this.parent.latestValues)||Na(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;Ih(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=se());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Cl(this.prevProjectionDelta.x,this.projectionDelta.x),Cl(this.prevProjectionDelta.y,this.projectionDelta.y)),rn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==f||!Nl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Nl(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=Ot(),this.projectionDelta=Ot(),this.projectionDeltaWithTransform=Ot()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=Ot();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=se(),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(fm));this.animationProgress=0;let b;this.mixTargetDelta=C=>{const y=C/1e3;_l(c.x,s.x,y),_l(c.y,s.y,y),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(on(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dm(this.relativeTarget,this.relativeTargetOrigin,f,y),b&&qp(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=se()),Ae(b,this.relativeTarget)),w&&(this.animationValues=d,Up(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&&(Ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ne.update(()=>{Gn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mt(0)),this.currentAnimation=Rp(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(Qp),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&&Wl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||se();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),Lt(a,d),rn(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Zp),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&&Bo("z",s,u,this.animationValues);for(let d=0;d<Fo.length;d++)Bo(`rotate${Fo[d]}`,s,u,this.animationValues),Bo(`skew${Fo[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=Wn(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=Wn(a?.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let c=Jp(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 Qt){if(d[g]===void 0)continue;const{correct:w,applyTo:x,isCSSVariable:v}=Qt[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?Wn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Fl),this.root.sharedNodes.clear()}}}function tm(e){e.updateLayout()}function nm(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}):Wl(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=Ot();rn(s,n,t.layoutBox);const a=Ot();i?rn(a,e.applyTransform(r,!0),t.measuredBox):rn(a,n,t.layoutBox);const l=!Dl(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=se();on(p,t.layoutBox,c.layoutBox);const g=se();on(g,n,f.layoutBox),Vl(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 rm(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 om(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sm(e){e.clearSnapshot()}function Fl(e){e.clearMeasurements()}function Bl(e){e.isLayoutDirty=!1}function im(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Rl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function am(e){e.resolveTargetDelta()}function lm(e){e.calcProjection()}function cm(e){e.resetSkewAndRotation()}function um(e){e.removeLeadSnapshot()}function _l(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function jl(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function dm(e,t,n,r){jl(e.x,t.x,n.x,r),jl(e.y,t.y,n.y,r)}function fm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hm={duration:.45,ease:[.4,0,.1,1]},zl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hl=zl("applewebkit/")&&!zl("chrome/")?Math.round:Pe;function Ul(e){e.min=Hl(e.min),e.max=Hl(e.max)}function pm(e){Ul(e.x),Ul(e.y)}function Wl(e,t,n){return e==="position"||e==="preserve-aspect"&&!wp(Il(t),Il(n),.2)}function mm(e){return e!==e.root&&e.scroll?.wasRoot}const gm=Ol({attachResizeListener:(e,t)=>en(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ro={current:void 0},Yl=Ol({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ro.current){const e=new gm({});e.mount(window),e.setOptions({layoutScroll:!0}),Ro.current=e}return Ro.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ym={pan:{Feature:Lp},drag:{Feature:Np,ProjectionNode:Yl,MeasureLayout:yl}};function Kl(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&&ne.postRender(()=>i(t,tn(t)))}class vm extends qe{mount(){const{current:t}=this.node;t&&(this.unmount=zf(t,(n,r)=>(Kl(this.node,r,"Start"),o=>Kl(this.node,o,"End"))))}unmount(){}}class bm extends qe{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=Ut(en(this.node.current,"focus",()=>this.onFocus()),en(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Gl(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&&ne.postRender(()=>i(t,tn(t)))}class wm extends qe{mount(){const{current:t}=this.node;t&&(this.unmount=Yf(t,(n,r)=>(Gl(this.node,r,"Start"),(o,{success:i})=>Gl(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _o=new WeakMap,jo=new WeakMap,xm=e=>{const t=_o.get(e.target);t&&t(e)},Sm=e=>{e.forEach(xm)};function Tm({root:e,...t}){const n=e||document;jo.has(n)||jo.set(n,{});const r=jo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Sm,{root:e,...t})),r[o]}function Cm(e,t,n){const r=Tm(t);return _o.set(e,n),r.observe(e),()=>{_o.delete(e),r.unobserve(e)}}const Em={some:0,all:1};class Pm extends qe{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:Em[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 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(km(t,n))&&this.startObserver()}unmount(){}}function km({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Am={...pp,...{inView:{Feature:Pm},tap:{Feature:wm},focus:{Feature:bm},hover:{Feature:vm}},...ym,...{layout:{ProjectionNode:Yl,MeasureLayout:yl}}},dt=$h(Am,Hh),Dm={sm:k`
|
|
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`
|
|
235
235
|
width: 1.25rem;
|
|
236
236
|
height: 1.25rem;
|
|
237
237
|
`,md:k`
|
|
@@ -243,7 +243,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
243
243
|
`,xl:k`
|
|
244
244
|
width: 4rem;
|
|
245
245
|
height: 4rem;
|
|
246
|
-
`},
|
|
246
|
+
`},Zl={primary:k`
|
|
247
247
|
color: var(--color-main-blue-primary);
|
|
248
248
|
`,orange:k`
|
|
249
249
|
color: var(--color-main-orange-primary);
|
|
@@ -251,29 +251,29 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
251
251
|
color: var(--color-main-white);
|
|
252
252
|
`,gray:k`
|
|
253
253
|
color: var(--color-main-grey);
|
|
254
|
-
`}
|
|
254
|
+
`},Mm=P.div`
|
|
255
255
|
position: relative;
|
|
256
256
|
display: block;
|
|
257
|
-
${({$size:e="md"})
|
|
258
|
-
${({$color:e="primary"})=>
|
|
257
|
+
${({$size:e="md"})=>$m[e]}
|
|
258
|
+
${({$color:e="primary"})=>Zl[e]}
|
|
259
259
|
user-select: none;
|
|
260
|
-
`,
|
|
260
|
+
`,Vm=P.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
|
-
`,
|
|
266
|
+
`,Im=P.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
|
-
`,
|
|
272
|
+
`,Nm=P(ht.p)`
|
|
273
273
|
${_[16]}
|
|
274
|
-
${({$color:e="primary"})=>
|
|
274
|
+
${({$color:e="primary"})=>Zl[e]}
|
|
275
275
|
margin: 0;
|
|
276
|
-
`,
|
|
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
|
|
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[An]+=1);const ti={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(
|
|
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`
|
|
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[An]+=1);const ti={80:k`
|
|
|
299
299
|
align-items: center;
|
|
300
300
|
justify-content: center;
|
|
301
301
|
z-index: 50;
|
|
302
|
-
`,
|
|
302
|
+
`,Om=P.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[An]+=1);const ti={80:k`
|
|
|
310
310
|
gap: 1rem;
|
|
311
311
|
width: 90%;
|
|
312
312
|
max-width: 24rem;
|
|
313
|
-
`,
|
|
314
|
-
${
|
|
313
|
+
`,Fm=P.h2`
|
|
314
|
+
${ri[30]}
|
|
315
315
|
color: var(--color-main-blue-primary);
|
|
316
316
|
margin: 0;
|
|
317
|
-
`,
|
|
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`
|
|
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
|
-
`,
|
|
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`
|
|
324
324
|
background-color: var(--color-main-blue-primary);
|
|
325
325
|
color: var(--color-main-white);
|
|
326
326
|
|
|
@@ -332,37 +332,39 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
332
332
|
background-color: var(--color-purple-400);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
&:focus {
|
|
335
|
+
&:focus-visible {
|
|
336
336
|
outline-color: var(--color-main-blue-primary);
|
|
337
337
|
}
|
|
338
338
|
`,secondary:k`
|
|
339
339
|
background-color: var(--color-main-orange-primary);
|
|
340
340
|
color: var(--color-main-white);
|
|
341
341
|
|
|
342
|
-
&:hover
|
|
342
|
+
&:hover,
|
|
343
|
+
&:focus-visible {
|
|
343
344
|
box-shadow: var(--shadow-hover-orange-button);
|
|
344
345
|
}
|
|
345
346
|
|
|
346
|
-
&:focus {
|
|
347
|
+
&:focus-visible {
|
|
347
348
|
outline-color: var(--color-main-orange-primary);
|
|
348
349
|
}
|
|
349
350
|
`,cancel:k`
|
|
350
351
|
background-color: var(--color-main-warning-state);
|
|
351
352
|
color: var(--color-main-white);
|
|
352
353
|
|
|
353
|
-
&:hover
|
|
354
|
+
&:hover,
|
|
355
|
+
&:focus-visible {
|
|
354
356
|
box-shadow: var(--shadow-hover-black-button);
|
|
355
357
|
}
|
|
356
358
|
|
|
357
|
-
&:focus {
|
|
359
|
+
&:focus-visible {
|
|
358
360
|
outline-color: var(--color-main-warning-state);
|
|
359
361
|
}
|
|
360
|
-
`},
|
|
362
|
+
`},zm=k`
|
|
361
363
|
background-color: var(--color-main-grey);
|
|
362
364
|
color: var(--color-dark-200);
|
|
363
365
|
cursor: not-allowed;
|
|
364
366
|
box-shadow: none;
|
|
365
|
-
`,
|
|
367
|
+
`,Hm={sm:k`
|
|
366
368
|
padding: 0.375rem 0.75rem;
|
|
367
369
|
min-height: 2.75rem;
|
|
368
370
|
${_[12]}
|
|
@@ -374,10 +376,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
374
376
|
padding: 0.75rem 1.5rem;
|
|
375
377
|
min-height: 3.5rem;
|
|
376
378
|
${_[20]}
|
|
377
|
-
`},
|
|
379
|
+
`},Um=P.button`
|
|
378
380
|
borden: none;
|
|
379
381
|
border-radius: var(--border-radius-button);
|
|
380
|
-
transition:
|
|
382
|
+
transition:
|
|
383
|
+
outline 0.3s ease-out,
|
|
384
|
+
box-shadow 0.3s ease-out,
|
|
385
|
+
background-color 0.3s ease-out;
|
|
381
386
|
cursor: pointer;
|
|
382
387
|
display: inline-flex;
|
|
383
388
|
align-items: center;
|
|
@@ -387,12 +392,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
387
392
|
outline-offset: 2px;
|
|
388
393
|
|
|
389
394
|
${({$variant:e})=>_m[e]}
|
|
390
|
-
${({$size:e})=>
|
|
395
|
+
${({$size:e})=>Hm[e]}
|
|
391
396
|
|
|
392
397
|
&:disabled {
|
|
393
|
-
${
|
|
398
|
+
${zm}
|
|
394
399
|
}
|
|
395
|
-
`,zo=({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(Hm,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...u,children:[i&&m.jsx(J,{color:l,size:a,component:i}),r?"Loading...":e,s&&m.jsx(J,{color:l,size:a,component:s})]});function Um(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 Wm=e=>{switch(e){case"success":return Gm;case"info":return qm;case"warning":return Xm;case"error":return Zm;default:return null}},Ym=Array(12).fill(0),Km=({visible:e,className:t})=>h.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},h.createElement("div",{className:"sonner-spinner"},Ym.map((n,r)=>h.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Gm=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"})),Xm=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"})),qm=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"})),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-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"})),Jm=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"})),Qm=()=>{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 Ho=1;class eg{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:Ho++,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(ng(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||Ho++;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 eg,tg=(e,t)=>{const n=t?.id||Ho++;return xe.addToast({title:e,...t,id:n}),n},ng=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",rg=tg,og=()=>xe.toasts,sg=()=>xe.getActiveToasts();Object.assign(rg,{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:og,getToasts:sg}),Um("[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 qn(e){return e.label!==void 0}const ig=3,ag="24px",lg="16px",Zl=4e3,cg=356,ug=14,dg=45,fg=200;function Re(...e){return e.filter(Boolean).join(" ")}function hg(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const pg=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:D,actionButtonStyle:L,className:G="",descriptionClassName:M="",duration:X,position:te,gap:ce,expandByDefault:ve,classNames:R,icons:N,closeButtonAriaLabel:U="Close toast"}=e,[B,H]=h.useState(null),[j,Q]=h.useState(null),[I,q]=h.useState(!1),[Z,le]=h.useState(!1),[Se,z]=h.useState(!1),[me,_e]=h.useState(!1),[Ie,$]=h.useState(!1),[cn,Je]=h.useState(0),[nr,Lc]=h.useState(0),un=h.useRef(c.duration||X||Zl),Oc=h.useRef(null),We=h.useRef(null),Ky=v===0,Gy=v+1<=w,Te=c.type,Rt=c.dismissible!==!1,Xy=c.className||"",qy=c.descriptionClassName||"",rr=h.useMemo(()=>x.findIndex(O=>O.toastId===c.id)||0,[x,c.id]),Zy=h.useMemo(()=>{var O;return(O=c.closeButton)!=null?O:S},[c.closeButton,S]),Fc=h.useMemo(()=>c.duration||X||Zl,[c.duration,X]),us=h.useRef(0),_t=h.useRef(0),Bc=h.useRef(0),jt=h.useRef(null),[Jy,Qy]=te.split("-"),Rc=h.useMemo(()=>x.reduce((O,de,ge)=>ge>=rr?O:O+de.height,0),[x,rr]),_c=Qm(),ev=c.invert||d,ds=Te==="loading";_t.current=h.useMemo(()=>rr*ce+Rc,[rr,Rc]),h.useEffect(()=>{un.current=Fc},[Fc]),h.useEffect(()=>{q(!0)},[]),h.useEffect(()=>{const O=We.current;if(O){const de=O.getBoundingClientRect().height;return Lc(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(!I)return;const O=We.current,de=O.style.height;O.style.height="auto";const ge=O.getBoundingClientRect().height;O.style.height=de,Lc(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])},[I,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qe=h.useCallback(()=>{le(!0),Je(_t.current),g(O=>O.filter(de=>de.toastId!==c.id)),setTimeout(()=>{C(c)},fg)},[c,C,g,_t]);h.useEffect(()=>{if(c.promise&&Te==="loading"||c.duration===1/0||c.type==="loading")return;let O;return b||p||_c?(()=>{if(Bc.current<us.current){const Ce=new Date().getTime()-us.current;un.current=un.current-Ce}Bc.current=new Date().getTime()})():(()=>{un.current!==1/0&&(us.current=new Date().getTime(),O=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qe()},un.current))})(),()=>clearTimeout(O)},[b,p,c,Te,_c,Qe]),h.useEffect(()=>{c.delete&&(Qe(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qe,c.delete]);function tv(){var O;if(N?.loading){var de;return h.createElement("div",{className:Re(R?.loader,c==null||(de=c.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Te==="loading"},N.loading)}return h.createElement(Km,{className:Re(R?.loader,c==null||(O=c.classNames)==null?void 0:O.loader),visible:Te==="loading"})}const nv=c.icon||N?.[Te]||Wm(Te);var jc,zc;return h.createElement("li",{tabIndex:0,ref:We,className:Re(G,Xy,R?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,R?.default,R?.[Te],c==null||(n=c.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(jc=c.richColors)!=null?jc:y,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":I,"data-promise":!!c.promise,"data-swiped":Ie,"data-removed":Z,"data-visible":Gy,"data-y-position":Jy,"data-x-position":Qy,"data-index":v,"data-front":Ky,"data-swiping":Se,"data-dismissible":Rt,"data-type":Te,"data-invert":ev,"data-swipe-out":me,"data-swipe-direction":j,"data-expanded":!!(b||ve&&I),"data-testid":c.testId,style:{"--index":v,"--toasts-before":v,"--z-index":T.length-v,"--offset":`${Z?cn:_t.current}px`,"--initial-height":ve?"auto":`${nr}px`,...E,...c.style},onDragEnd:()=>{z(!1),H(null),jt.current=null},onPointerDown:O=>{O.button!==2&&(ds||!Rt||(Oc.current=new Date,Je(_t.current),O.target.setPointerCapture(O.pointerId),O.target.tagName!=="BUTTON"&&(z(!0),jt.current={x:O.clientX,y:O.clientY})))},onPointerUp:()=>{var O,de,ge;if(me||!Rt)return;jt.current=null;const Ce=Number(((O=We.current)==null?void 0:O.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),or=Number(((de=We.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),he=new Date().getTime()-((ge=Oc.current)==null?void 0:ge.getTime()),De=B==="x"?Ce:or,sr=Math.abs(De)/he;if(Math.abs(De)>=dg||sr>.11){Je(_t.current),c.onDismiss==null||c.onDismiss.call(c,c),Q(B==="x"?Ce>0?"right":"left":or>0?"down":"up"),Qe(),_e(!0);return}else{var Ne,Le;(Ne=We.current)==null||Ne.style.setProperty("--swipe-amount-x","0px"),(Le=We.current)==null||Le.style.setProperty("--swipe-amount-y","0px")}$(!1),z(!1),H(null)},onPointerMove:O=>{var de,ge,Ce;if(!jt.current||!Rt||((de=window.getSelection())==null?void 0:de.toString().length)>0)return;const he=O.clientY-jt.current.y,De=O.clientX-jt.current.x;var sr;const Ne=(sr=e.swipeDirections)!=null?sr:hg(te);!B&&(Math.abs(De)>1||Math.abs(he)>1)&&H(Math.abs(De)>Math.abs(he)?"x":"y");let Le={x:0,y:0};const Hc=mt=>1/(1.5+Math.abs(mt)/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 mt=he*Hc(he);Le.y=Math.abs(mt)<Math.abs(he)?mt: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 mt=De*Hc(De);Le.x=Math.abs(mt)<Math.abs(De)?mt:De}(Math.abs(Le.x)>0||Math.abs(Le.y)>0)&&$(!0),(ge=We.current)==null||ge.style.setProperty("--swipe-amount-x",`${Le.x}px`),(Ce=We.current)==null||Ce.style.setProperty("--swipe-amount-y",`${Le.y}px`)}},Zy&&!c.jsx&&Te!=="loading"?h.createElement("button",{"aria-label":U,"data-disabled":ds,"data-close-button":!0,onClick:ds||!Rt?()=>{}:()=>{Qe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Re(R?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(zc=N?.close)!=null?zc:Jm):null,(Te||c.icon||c.promise)&&c.icon!==null&&(N?.[Te]!==null||c.icon)?h.createElement("div",{"data-icon":"",className:Re(R?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||tv():null,c.type!=="loading"?nv:null):null,h.createElement("div",{"data-content":"",className:Re(R?.content,c==null||(i=c.classNames)==null?void 0:i.content)},h.createElement("div",{"data-title":"",className:Re(R?.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:Re(M,qy,R?.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&&qn(c.cancel)?h.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:O=>{qn(c.cancel)&&Rt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,O),Qe())},className:Re(R?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,h.isValidElement(c.action)?c.action:c.action&&qn(c.action)?h.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||L,onClick:O=>{qn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,O),!O.defaultPrevented&&Qe())},className:Re(R?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Jl(){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 mg(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?lg:ag;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 gg=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=ig,toastOptions:v,dir:T=Jl(),gap:b=ug,icons:C,containerAriaLabel:y="Notifications"}=t,[S,E]=h.useState([]),D=h.useMemo(()=>r?S.filter(I=>I.toasterId===r):S.filter(I=>!I.toasterId),[S,r]),L=h.useMemo(()=>Array.from(new Set([i].concat(D.filter(I=>I.position).map(I=>I.position)))),[D,i]),[G,M]=h.useState([]),[X,te]=h.useState(!1),[ce,ve]=h.useState(!1),[R,N]=h.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=h.useRef(null),B=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=h.useRef(null),j=h.useRef(!1),Q=h.useCallback(I=>{E(q=>{var Z;return(Z=q.find(le=>le.id===I.id))!=null&&Z.delete||xe.dismiss(I.id),q.filter(({id:le})=>le!==I.id)})},[]);return h.useEffect(()=>xe.subscribe(I=>{if(I.dismiss){requestAnimationFrame(()=>{E(q=>q.map(Z=>Z.id===I.id?{...Z,delete:!0}:Z))});return}setTimeout(()=>{fs.flushSync(()=>{E(q=>{const Z=q.findIndex(le=>le.id===I.id);return Z!==-1?[...q.slice(0,Z),{...q[Z],...I},...q.slice(Z+1)]:[I,...q]})})})}),[S]),h.useEffect(()=>{if(f!=="system"){N(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window>"u")return;const I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:q})=>{N(q?"dark":"light")})}catch{I.addListener(({matches:Z})=>{try{N(Z?"dark":"light")}catch(le){console.error(le)}})}},[f]),h.useEffect(()=>{S.length<=1&&te(!1)},[S]),h.useEffect(()=>{const I=q=>{var Z;if(s.every(z=>q[z]||q.code===z)){var Se;te(!0),(Se=U.current)==null||Se.focus()}q.code==="Escape"&&(document.activeElement===U.current||(Z=U.current)!=null&&Z.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[s]),h.useEffect(()=>{if(U.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,j.current=!1)}},[U.current]),h.createElement("section",{ref:n,"aria-label":`${y} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((I,q)=>{var Z;const[le,Se]=I.split("-");return D.length?h.createElement("ol",{key:I,dir:T==="auto"?Jl():T,tabIndex:-1,ref:U,className:u,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":le,"data-x-position":Se,style:{"--front-toast-height":`${((Z=G[0])==null?void 0:Z.height)||0}px`,"--width":`${cg}px`,"--gap":`${b}px`,...w,...mg(d,c)},onBlur:z=>{j.current&&!z.currentTarget.contains(z.relatedTarget)&&(j.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||j.current||(j.current=!0,H.current=z.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{ce||te(!1)},onDragEnd:()=>te(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||ve(!0)},onPointerUp:()=>ve(!1)},D.filter(z=>!z.position&&q===0||z.position===I).map((z,me)=>{var _e,Ie;return h.createElement(pg,{key:z.id,icons:C,index:me,toast:z,defaultRichColors:p,duration:(_e=v?.duration)!=null?_e:g,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(Ie=v?.closeButton)!=null?Ie:l,interacting:ce,position:I,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:Q,toasts:D.filter($=>$.position==z.position),heights:G.filter($=>$.position==z.position),setHeights:M,expandByDefault:a,gap:b,expanded:X,swipeDirections:t.swipeDirections})})):null}))}),yg=()=>m.jsx(gg,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:m.jsx(ql,{color:"orange"})}}),vg={elevated:k`
|
|
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`
|
|
396
401
|
background-color: var(--color-main-white);
|
|
397
402
|
box-shadow: var(--shadow-black-card);
|
|
398
403
|
border: none;
|
|
@@ -420,7 +425,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
420
425
|
&:active {
|
|
421
426
|
border: none;
|
|
422
427
|
}
|
|
423
|
-
`},
|
|
428
|
+
`},wg={sm:k`
|
|
424
429
|
padding: 0.75rem;
|
|
425
430
|
gap: 0.5rem;
|
|
426
431
|
`,md:k`
|
|
@@ -429,8 +434,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
429
434
|
`,lg:k`
|
|
430
435
|
padding: 1.25rem;
|
|
431
436
|
gap: 0.5rem;
|
|
432
|
-
`},
|
|
433
|
-
transition:
|
|
437
|
+
`},xg=k`
|
|
438
|
+
transition:
|
|
439
|
+
box-shadow 0.3s ease-out,
|
|
440
|
+
background-color 0.3s ease-out,
|
|
441
|
+
outline-color 0.3s ease-out;
|
|
434
442
|
border-bottom: 2px solid transparent;
|
|
435
443
|
|
|
436
444
|
&:hover {
|
|
@@ -442,7 +450,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
442
450
|
&:active {
|
|
443
451
|
border-bottom: 2px solid var(--color-main-blue-primary);
|
|
444
452
|
}
|
|
445
|
-
|
|
453
|
+
|
|
454
|
+
&:focus-visible {
|
|
455
|
+
outline-color: var(--color-main-blue-primary);
|
|
456
|
+
}
|
|
457
|
+
`,Sg=k`
|
|
446
458
|
opacity: 0.6;
|
|
447
459
|
cursor: not-allowed;
|
|
448
460
|
pointer-events: none;
|
|
@@ -451,60 +463,61 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
451
463
|
transform: none;
|
|
452
464
|
box-shadow: inherit;
|
|
453
465
|
}
|
|
454
|
-
`,
|
|
466
|
+
`,Tg=P.div`
|
|
455
467
|
display: flex;
|
|
456
468
|
flex-direction: column;
|
|
457
469
|
border-radius: var(--border-radius-card);
|
|
458
470
|
width: 100%;
|
|
459
471
|
height: 100%;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
${({$
|
|
463
|
-
${({$
|
|
464
|
-
|
|
472
|
+
outline: 2px solid transparent;
|
|
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`
|
|
465
479
|
display: flex;
|
|
466
480
|
align-items: center;
|
|
467
481
|
align-self: stretch;
|
|
468
482
|
gap: 0.5rem;
|
|
469
|
-
`,
|
|
483
|
+
`,Pg=({children:e,...t})=>m.jsx(Eg,{...t,children:e}),kg=P.div`
|
|
470
484
|
flex: 1;
|
|
471
485
|
display: flex;
|
|
472
486
|
flex-direction: column;
|
|
473
|
-
`,
|
|
487
|
+
`,Ag=({children:e,...t})=>m.jsx(kg,{...t,children:e}),Dg=P.div`
|
|
474
488
|
display: flex;
|
|
475
489
|
align-items: center;
|
|
476
490
|
align-self: stretch;
|
|
477
491
|
gap: 0.5rem;
|
|
478
|
-
|
|
492
|
+
`,$g=({children:e,...t})=>m.jsx(Dg,{...t,children:e}),Mg={sm:k`
|
|
479
493
|
${_[12]}
|
|
480
494
|
`,md:k`
|
|
481
495
|
${_[16]}
|
|
482
496
|
`,lg:k`
|
|
483
497
|
${_[18]}
|
|
484
|
-
`},
|
|
498
|
+
`},Vg=P.div`
|
|
485
499
|
color: var(--color-main-warning-state);
|
|
486
|
-
${({$size:e})
|
|
500
|
+
${({$size:e})=>Mg[e]}
|
|
487
501
|
font-weight: 400;
|
|
488
502
|
margin-top: 0.25rem;
|
|
489
503
|
display: flex;
|
|
490
504
|
align-items: flex-start;
|
|
491
505
|
gap: 0.25rem;
|
|
492
|
-
`,
|
|
506
|
+
`,Yo=({children:e,className:t,size:n="md",...r})=>m.jsx(Vg,{className:t,$size:n,...r,children:e}),Ig={sm:k`
|
|
493
507
|
${_[16]}
|
|
494
508
|
`,md:k`
|
|
495
509
|
${_[24]}
|
|
496
510
|
`,lg:k`
|
|
497
511
|
${_[30]}
|
|
498
|
-
`},
|
|
499
|
-
transition: all 0.3s ease-out;
|
|
512
|
+
`},Ng=P.label`
|
|
500
513
|
color: var(--color-main-blue-primary);
|
|
501
|
-
${({$size:e})=>
|
|
502
|
-
${({$disabled:e})=>e&&
|
|
514
|
+
${({$size:e})=>Ig[e]}
|
|
515
|
+
${({$disabled:e})=>e&&Lg}
|
|
503
516
|
cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
|
|
504
|
-
`,
|
|
517
|
+
`,Lg=k`
|
|
505
518
|
cursor: not-allowed;
|
|
506
519
|
opacity: 0.6;
|
|
507
|
-
`,
|
|
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`
|
|
508
521
|
display: flex;
|
|
509
522
|
justify-content: space-between;
|
|
510
523
|
align-items: center;
|
|
@@ -515,7 +528,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
515
528
|
color: var(--color-main-blue-primary);
|
|
516
529
|
border: var(--border-input);
|
|
517
530
|
border-radius: var(--border-radius-article);
|
|
518
|
-
transition:
|
|
531
|
+
transition:
|
|
532
|
+
background-color 0.3s ease-out,
|
|
533
|
+
outline-color 0.3s ease-out;
|
|
519
534
|
background-color: var(--color-main-white);
|
|
520
535
|
position: relative;
|
|
521
536
|
outline: 2px solid transparent;
|
|
@@ -533,7 +548,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
533
548
|
&:disabled {
|
|
534
549
|
cursor: not-allowed;
|
|
535
550
|
}
|
|
536
|
-
`,
|
|
551
|
+
`,er=k`
|
|
537
552
|
width: 100%;
|
|
538
553
|
border: none;
|
|
539
554
|
outline: none;
|
|
@@ -550,18 +565,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
550
565
|
&::placeholder {
|
|
551
566
|
color: var(--color-dark-200);
|
|
552
567
|
}
|
|
553
|
-
`,
|
|
568
|
+
`,mt=k`
|
|
554
569
|
border: var(--border-input-error) !important;
|
|
555
570
|
|
|
556
571
|
&:focus-within {
|
|
557
572
|
border: 1px solid var(--color-main-warning-state) !important;
|
|
558
573
|
outline: none;
|
|
559
574
|
}
|
|
560
|
-
`,
|
|
575
|
+
`,Qe=k`
|
|
561
576
|
border: var(--border-input-disabled) !important;
|
|
562
577
|
cursor: not-allowed;
|
|
563
578
|
opacity: 0.6;
|
|
564
|
-
`,
|
|
579
|
+
`,rc=k`
|
|
565
580
|
border: none;
|
|
566
581
|
border-top: 0;
|
|
567
582
|
border-right: 0;
|
|
@@ -572,8 +587,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
572
587
|
outline: none;
|
|
573
588
|
|
|
574
589
|
transition:
|
|
575
|
-
border-bottom-color 0.3s ease-
|
|
576
|
-
background-color 0.3s ease-
|
|
590
|
+
border-bottom-color 0.3s ease-out,
|
|
591
|
+
background-color 0.3s ease-out;
|
|
577
592
|
|
|
578
593
|
&:hover:not(:focus-within) {
|
|
579
594
|
background-color: var(--color-main-alternative-secondary);
|
|
@@ -587,7 +602,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
587
602
|
border-bottom: var(--border-input-focus);
|
|
588
603
|
outline: none;
|
|
589
604
|
}
|
|
590
|
-
`,
|
|
605
|
+
`,ln={sm:k`
|
|
591
606
|
padding: 0.5rem 1rem;
|
|
592
607
|
height: 2.5rem;
|
|
593
608
|
${_[18]}
|
|
@@ -599,36 +614,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
599
614
|
padding: 0.5rem 1rem;
|
|
600
615
|
height: 3rem;
|
|
601
616
|
${_[20]}
|
|
602
|
-
`},
|
|
617
|
+
`},cn=k`
|
|
603
618
|
display: flex;
|
|
604
619
|
align-items: center;
|
|
605
620
|
justify-content: center;
|
|
606
621
|
flex-shrink: 0;
|
|
607
622
|
user-select: none;
|
|
608
623
|
`,Bg=P.div`
|
|
609
|
-
${
|
|
610
|
-
${({$size:e})=>
|
|
611
|
-
${({$hasError:e})=>e&&
|
|
612
|
-
${({$disabled:e})=>e&&
|
|
613
|
-
${({$isFlushed:e})=>e&&
|
|
614
|
-
`,
|
|
615
|
-
${
|
|
616
|
-
`,
|
|
617
|
-
${
|
|
618
|
-
${({$size:e})=>
|
|
619
|
-
${({$hasError:e})=>e&&
|
|
620
|
-
${({$disabled:e})=>e&&
|
|
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}
|
|
621
636
|
position: relative;
|
|
622
637
|
`,Zg=P.input`
|
|
623
|
-
${
|
|
638
|
+
${er}
|
|
624
639
|
`,Jg=P.span`
|
|
625
|
-
${
|
|
640
|
+
${cn}
|
|
626
641
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
627
|
-
`,
|
|
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`
|
|
628
643
|
position: relative;
|
|
629
644
|
width: 100%;
|
|
630
645
|
`,s0=P.div`
|
|
631
|
-
${
|
|
646
|
+
${cn}
|
|
632
647
|
position: absolute;
|
|
633
648
|
right: 1rem;
|
|
634
649
|
top: 50%;
|
|
@@ -636,10 +651,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
636
651
|
pointer-events: none;
|
|
637
652
|
transition: transform 0.3s ease-out;
|
|
638
653
|
`,i0=P.button`
|
|
639
|
-
${
|
|
640
|
-
${({$size:e})=>
|
|
641
|
-
${({$hasError:e})=>e&&
|
|
642
|
-
${({$disabled:e})=>e&&
|
|
654
|
+
${pt}
|
|
655
|
+
${({$size:e})=>ln[e]}
|
|
656
|
+
${({$hasError:e})=>e&&mt}
|
|
657
|
+
${({$disabled:e})=>e&&Qe}
|
|
643
658
|
|
|
644
659
|
width: 100%;
|
|
645
660
|
text-align: left;
|
|
@@ -657,7 +672,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
657
672
|
&:hover {
|
|
658
673
|
background-color: var(--color-main-alternative-secondary);
|
|
659
674
|
}
|
|
660
|
-
`,a0=P(
|
|
675
|
+
`,a0=P(ht.ul)`
|
|
661
676
|
position: absolute;
|
|
662
677
|
z-index: 50;
|
|
663
678
|
left: 0;
|
|
@@ -703,11 +718,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
703
718
|
${_[18]}
|
|
704
719
|
`,lg:k`
|
|
705
720
|
${_[18]}
|
|
706
|
-
`},
|
|
707
|
-
${
|
|
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}
|
|
708
723
|
${({$size:e})=>f0[e]}
|
|
709
|
-
${({$hasError:e})=>e&&
|
|
710
|
-
${({$disabled:e})=>e&&
|
|
724
|
+
${({$hasError:e})=>e&&mt}
|
|
725
|
+
${({$disabled:e})=>e&&Qe}
|
|
711
726
|
${_[20]}
|
|
712
727
|
|
|
713
728
|
resize: ${({$resize:e})=>e};
|
|
@@ -736,12 +751,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
736
751
|
height:12rem;
|
|
737
752
|
max-height: 20rem;
|
|
738
753
|
padding: 1rem 1.25rem;
|
|
739
|
-
`},
|
|
740
|
-
${
|
|
741
|
-
${({$size:e})=>
|
|
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"]}
|
|
742
757
|
`,p0=P.input`
|
|
743
|
-
${
|
|
744
|
-
`,
|
|
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`
|
|
745
760
|
position: relative;
|
|
746
761
|
`,g0=P.input`
|
|
747
762
|
position: absolute;
|
|
@@ -779,8 +794,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
779
794
|
border-color: var(--color-main-orange-primary);
|
|
780
795
|
}
|
|
781
796
|
|
|
782
|
-
${({$hasError:e})=>e&&
|
|
783
|
-
${({$disabled:e})=>e&&
|
|
797
|
+
${({$hasError:e})=>e&&mt}
|
|
798
|
+
${({$disabled:e})=>e&&Qe}
|
|
784
799
|
${({$checked:e})=>e&&v0}
|
|
785
800
|
`,v0=k`
|
|
786
801
|
background-color: var(--color-main-orange-primary);
|
|
@@ -797,16 +812,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
797
812
|
height: 2px;
|
|
798
813
|
background-color: white;
|
|
799
814
|
border-radius: 1px;
|
|
800
|
-
`,
|
|
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`
|
|
801
816
|
display: flex;
|
|
802
817
|
align-items: center;
|
|
803
818
|
justify-content: center;
|
|
804
819
|
gap: 1rem;
|
|
805
|
-
`,
|
|
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`
|
|
806
821
|
position: relative;
|
|
807
822
|
display: inline-block;
|
|
808
823
|
`,T0=P.input`
|
|
809
|
-
${
|
|
824
|
+
${pt}
|
|
810
825
|
text-align: center;
|
|
811
826
|
padding: 0;
|
|
812
827
|
|
|
@@ -821,8 +836,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
821
836
|
}
|
|
822
837
|
${({$size:e})=>E0[e]}
|
|
823
838
|
${({$variant:e})=>e&&C0[e??"outlined"]}
|
|
824
|
-
${({$hasError:e})=>e&&
|
|
825
|
-
${({$disabled:e})=>e&&
|
|
839
|
+
${({$hasError:e})=>e&&mt}
|
|
840
|
+
${({$disabled:e})=>e&&Qe}
|
|
826
841
|
|
|
827
842
|
&:focus {
|
|
828
843
|
border: 2px solid var(--color-main-blue-primary);
|
|
@@ -861,11 +876,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
861
876
|
width: 3.5rem;
|
|
862
877
|
height: 4rem;
|
|
863
878
|
${_[40]}
|
|
864
|
-
`},
|
|
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`
|
|
865
880
|
display: flex;
|
|
866
881
|
gap: 8px;
|
|
867
882
|
align-items: center;
|
|
868
|
-
`,
|
|
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`
|
|
869
884
|
position: relative;
|
|
870
885
|
`,D0=P.input`
|
|
871
886
|
position: absolute;
|
|
@@ -908,7 +923,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
908
923
|
border-color: var(--color-main-warning-state);
|
|
909
924
|
`}
|
|
910
925
|
${({$disabled:e})=>e&&`
|
|
911
|
-
${
|
|
926
|
+
${Qe}
|
|
912
927
|
border: 2px solid var(--color-dark-200) !important;
|
|
913
928
|
`}
|
|
914
929
|
${({$checked:e})=>e&&$0}
|
|
@@ -921,35 +936,35 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
921
936
|
background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
|
|
922
937
|
opacity: ${({$checked:e})=>e?1:0};
|
|
923
938
|
transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
|
|
924
|
-
`,
|
|
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`
|
|
925
940
|
display: flex;
|
|
926
941
|
align-items: center;
|
|
927
942
|
justify-content: center;
|
|
928
943
|
gap: 1rem;
|
|
929
|
-
`,
|
|
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
|
|
930
945
|
* react-is.production.min.js
|
|
931
946
|
*
|
|
932
947
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
933
948
|
*
|
|
934
949
|
* This source code is licensed under the MIT license found in the
|
|
935
950
|
* LICENSE file in the root directory of this source tree.
|
|
936
|
-
*/var
|
|
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
|
|
937
952
|
* react-is.development.js
|
|
938
953
|
*
|
|
939
954
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
940
955
|
*
|
|
941
956
|
* This source code is licensed under the MIT license found in the
|
|
942
957
|
* LICENSE file in the root directory of this source tree.
|
|
943
|
-
*/var
|
|
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
959
|
display: flex;
|
|
945
960
|
flex-direction: column;
|
|
946
961
|
gap: 0.5rem;
|
|
947
962
|
width: 100%;
|
|
948
|
-
`,
|
|
963
|
+
`,z0=P.div`
|
|
949
964
|
display: flex;
|
|
950
965
|
flex-direction: column;
|
|
951
966
|
gap: 0.75rem;
|
|
952
|
-
`,
|
|
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
968
|
position: fixed;
|
|
954
969
|
inset: 0;
|
|
955
970
|
z-index: 50;
|
|
@@ -963,7 +978,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
963
978
|
@media (max-width: 768px) {
|
|
964
979
|
padding: 0.5rem;
|
|
965
980
|
}
|
|
966
|
-
`,
|
|
981
|
+
`,K0=P(ht.div)`
|
|
967
982
|
position: relative;
|
|
968
983
|
display: flex;
|
|
969
984
|
flex-direction: column;
|
|
@@ -990,7 +1005,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
990
1005
|
outline: none;
|
|
991
1006
|
box-shadow: var(--shadow-hover-black-card);
|
|
992
1007
|
}
|
|
993
|
-
`,
|
|
1008
|
+
`,G0=P.button`
|
|
994
1009
|
position: absolute;
|
|
995
1010
|
top: 1rem;
|
|
996
1011
|
right: 1rem;
|
|
@@ -999,7 +1014,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
999
1014
|
cursor: pointer;
|
|
1000
1015
|
padding: 0.5rem;
|
|
1001
1016
|
z-index: 10;
|
|
1002
|
-
transition:
|
|
1017
|
+
transition: transform 0.2s ease-in-out;
|
|
1003
1018
|
|
|
1004
1019
|
&:hover {
|
|
1005
1020
|
transform: scale(1.1);
|
|
@@ -1009,7 +1024,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1009
1024
|
transform: scale(1.1);
|
|
1010
1025
|
outline: none;
|
|
1011
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
1028
|
display: flex;
|
|
1014
1029
|
align-items: center;
|
|
1015
1030
|
justify-content: space-between;
|
|
@@ -1042,7 +1057,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1042
1057
|
flex-shrink: 0;
|
|
1043
1058
|
margin-left: auto;
|
|
1044
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
1061
|
position: relative;
|
|
1047
1062
|
display: flex;
|
|
1048
1063
|
flex-direction: column;
|
|
@@ -1055,7 +1070,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1055
1070
|
${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
|
|
1056
1071
|
|
|
1057
1072
|
${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
|
|
1058
|
-
`,
|
|
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
1074
|
display: flex;
|
|
1060
1075
|
align-items: center;
|
|
1061
1076
|
width: 100%;
|
|
@@ -1071,7 +1086,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1071
1086
|
bottom: 0;
|
|
1072
1087
|
background: var(--color-main-white);
|
|
1073
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
1090
|
width: 100%;
|
|
1076
1091
|
display: flex;
|
|
1077
1092
|
align-items: center;
|
|
@@ -1106,36 +1121,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1106
1121
|
}
|
|
1107
1122
|
|
|
1108
1123
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1109
|
-
`,
|
|
1124
|
+
`,ey=P.span`
|
|
1110
1125
|
display: inline-flex;
|
|
1111
1126
|
align-items: center;
|
|
1112
1127
|
gap: 0.75rem;
|
|
1113
1128
|
min-width: 0;
|
|
1114
|
-
`,
|
|
1129
|
+
`,ty=P(Vn)`
|
|
1115
1130
|
font-weight: ${({$level:e})=>e===0?600:500};
|
|
1116
1131
|
color: var(--color-main-blue-primary);
|
|
1117
1132
|
white-space: nowrap;
|
|
1118
1133
|
overflow: hidden;
|
|
1119
1134
|
text-overflow: ellipsis;
|
|
1120
|
-
`,
|
|
1135
|
+
`,ny=P(ht.div)`
|
|
1121
1136
|
background-color: transparent;
|
|
1122
1137
|
overflow: hidden;
|
|
1123
1138
|
will-change: height, opacity, transform;
|
|
1124
|
-
`,
|
|
1139
|
+
`,ry=P.div`
|
|
1125
1140
|
width: 100%;
|
|
1126
1141
|
${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
|
|
1127
|
-
`,
|
|
1142
|
+
`,oy=P.span`
|
|
1128
1143
|
width: 0.625rem;
|
|
1129
1144
|
height: 0.125rem;
|
|
1130
1145
|
background: var(--color-main-blue-primary);
|
|
1131
1146
|
border-radius: 1px;
|
|
1132
1147
|
flex: 0 0 auto;
|
|
1133
|
-
`,
|
|
1134
|
-
${
|
|
1148
|
+
`,sy=P.div`
|
|
1149
|
+
${cn}
|
|
1135
1150
|
transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
|
|
1136
1151
|
pointer-events: none;
|
|
1137
1152
|
transition: transform 0.3s ease-out;
|
|
1138
|
-
`,
|
|
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
1154
|
position: fixed;
|
|
1140
1155
|
inset: 0;
|
|
1141
1156
|
background: rgba(0, 0, 0, 0.5);
|
|
@@ -1144,7 +1159,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1144
1159
|
@media (max-width: 767px) {
|
|
1145
1160
|
display: block;
|
|
1146
1161
|
}
|
|
1147
|
-
`,
|
|
1162
|
+
`,ay=P.aside`
|
|
1148
1163
|
position: fixed;
|
|
1149
1164
|
left: 0;
|
|
1150
1165
|
top: 0;
|
|
@@ -1163,7 +1178,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1163
1178
|
@media (min-width: 768px) {
|
|
1164
1179
|
transform: translateX(0);
|
|
1165
1180
|
}
|
|
1166
|
-
`,
|
|
1181
|
+
`,ly=P.div`
|
|
1167
1182
|
display: flex;
|
|
1168
1183
|
align-items: center;
|
|
1169
1184
|
justify-content: space-between;
|
|
@@ -1171,16 +1186,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1171
1186
|
padding: 1rem;
|
|
1172
1187
|
|
|
1173
1188
|
${({$collapsed:e})=>e?"flex-direction: column":""};
|
|
1174
|
-
`,
|
|
1189
|
+
`,cy=P.div`
|
|
1175
1190
|
display: flex;
|
|
1176
1191
|
align-items: center;
|
|
1177
1192
|
gap: 0.5rem;
|
|
1178
|
-
`,
|
|
1193
|
+
`,uy=P.img`
|
|
1179
1194
|
display: block;
|
|
1180
1195
|
height: 4.375rem;
|
|
1181
1196
|
width: auto;
|
|
1182
1197
|
object-fit: contain;
|
|
1183
|
-
`,
|
|
1198
|
+
`,dy=P.nav`
|
|
1184
1199
|
display: flex;
|
|
1185
1200
|
flex-direction: column;
|
|
1186
1201
|
justify-content: flex-start;
|
|
@@ -1188,7 +1203,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1188
1203
|
flex: 1;
|
|
1189
1204
|
overflow-y: auto;
|
|
1190
1205
|
padding: 0.25rem 0;
|
|
1191
|
-
`,
|
|
1206
|
+
`,fy=P.button`
|
|
1192
1207
|
display: flex;
|
|
1193
1208
|
align-items: center;
|
|
1194
1209
|
justify-content: center;
|
|
@@ -1214,7 +1229,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1214
1229
|
@media (max-width: 767px) {
|
|
1215
1230
|
display: none;
|
|
1216
1231
|
}
|
|
1217
|
-
`,
|
|
1232
|
+
`,hy=P.button`
|
|
1218
1233
|
position: fixed;
|
|
1219
1234
|
top: 0.5rem;
|
|
1220
1235
|
left: 1rem;
|
|
@@ -1225,7 +1240,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1225
1240
|
@media (min-width: 768px) {
|
|
1226
1241
|
display: none;
|
|
1227
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
1244
|
color: var(--color-main-orange-primary);
|
|
1230
1245
|
text-decoration-thickness: 1px;
|
|
1231
1246
|
text-underline-offset: 2px;
|
|
@@ -1285,7 +1300,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1285
1300
|
text-decoration-thickness: 1px;
|
|
1286
1301
|
text-underline-offset: 2px;
|
|
1287
1302
|
}
|
|
1288
|
-
`},
|
|
1303
|
+
`},my=k`
|
|
1289
1304
|
color: var(--color-dark-200);
|
|
1290
1305
|
cursor: not-allowed;
|
|
1291
1306
|
pointer-events: none;
|
|
@@ -1303,7 +1318,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1303
1318
|
text-decoration: none;
|
|
1304
1319
|
transform: none;
|
|
1305
1320
|
}
|
|
1306
|
-
`,
|
|
1321
|
+
`,gy={sm:k`
|
|
1307
1322
|
gap: 0.25rem;
|
|
1308
1323
|
${_[14]}
|
|
1309
1324
|
`,md:k`
|
|
@@ -1312,7 +1327,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1312
1327
|
`,lg:k`
|
|
1313
1328
|
gap: 0.75rem;
|
|
1314
1329
|
${_[20]}
|
|
1315
|
-
`},
|
|
1330
|
+
`},yy=P.a`
|
|
1316
1331
|
display: inline-flex;
|
|
1317
1332
|
align-items: center;
|
|
1318
1333
|
border-radius: 0.25rem;
|
|
@@ -1324,10 +1339,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1324
1339
|
|
|
1325
1340
|
cursor: pointer;
|
|
1326
1341
|
|
|
1327
|
-
${({$size:e})=>
|
|
1328
|
-
${({$variant:e})=>
|
|
1329
|
-
${({$disabled:e})=>e&&
|
|
1330
|
-
`,
|
|
1342
|
+
${({$size:e})=>gy[e]}
|
|
1343
|
+
${({$variant:e})=>py[e]}
|
|
1344
|
+
${({$disabled:e})=>e&&my}
|
|
1345
|
+
`,vy=P.span`
|
|
1331
1346
|
flex: 1 1 auto;
|
|
1332
1347
|
min-width: 0;
|
|
1333
1348
|
max-width: 18ch;
|
|
@@ -1336,7 +1351,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1336
1351
|
text-overflow: ellipsis;
|
|
1337
1352
|
white-space: nowrap;
|
|
1338
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
1355
|
thead tr:last-child th:first-child {
|
|
1341
1356
|
border-radius: var(--border-radius-article) 0 0 0;
|
|
1342
1357
|
}
|
|
@@ -1361,11 +1376,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1361
1376
|
thead tr:last-child th:last-child {
|
|
1362
1377
|
border-radius: 0 var(--border-radius-article) 0 0;
|
|
1363
1378
|
}
|
|
1364
|
-
`}
|
|
1379
|
+
`},$c=k`
|
|
1365
1380
|
tbody tr:hover td {
|
|
1366
1381
|
background-color: var(--color-main-alternative-secondary);
|
|
1367
1382
|
}
|
|
1368
|
-
`,
|
|
1383
|
+
`,Mc=k`
|
|
1369
1384
|
@media (max-width: 768px) {
|
|
1370
1385
|
font-size: 0.875rem;
|
|
1371
1386
|
|
|
@@ -1374,13 +1389,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1374
1389
|
padding: 0.5rem 0.75rem;
|
|
1375
1390
|
}
|
|
1376
1391
|
}
|
|
1377
|
-
`,
|
|
1392
|
+
`,as=k`
|
|
1378
1393
|
display: flex;
|
|
1379
1394
|
align-items: center;
|
|
1380
1395
|
gap: 0.5rem;
|
|
1381
1396
|
width: 100%;
|
|
1382
1397
|
overflow: hidden;
|
|
1383
|
-
`,
|
|
1398
|
+
`,gt={sm:k`
|
|
1384
1399
|
padding: 0.5rem 1rem;
|
|
1385
1400
|
min-height: 2.25rem;
|
|
1386
1401
|
`,md:k`
|
|
@@ -1389,22 +1404,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1389
1404
|
`,lg:k`
|
|
1390
1405
|
padding: 0.75rem 1.5rem;
|
|
1391
1406
|
min-height: 2.75rem;
|
|
1392
|
-
`},
|
|
1407
|
+
`},ls=k`
|
|
1393
1408
|
display: inline-flex;
|
|
1394
1409
|
align-items: center;
|
|
1395
1410
|
flex-shrink: 0;
|
|
1396
|
-
`,
|
|
1397
|
-
${
|
|
1411
|
+
`,by={sm:k`
|
|
1412
|
+
${gt.sm}
|
|
1398
1413
|
${_[16]}
|
|
1399
1414
|
`,md:k`
|
|
1400
|
-
${
|
|
1415
|
+
${gt.md}
|
|
1401
1416
|
${_[20]}
|
|
1402
1417
|
`,lg:k`
|
|
1403
|
-
${
|
|
1418
|
+
${gt.lg}
|
|
1404
1419
|
${_[24]}
|
|
1405
|
-
`},
|
|
1420
|
+
`},wy=P.th`
|
|
1406
1421
|
background-color: var(--color-main-blue-primary);
|
|
1407
|
-
${({$size:e})=>
|
|
1422
|
+
${({$size:e})=>by[e]}
|
|
1408
1423
|
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
|
|
1409
1424
|
min-width: 8rem;
|
|
1410
1425
|
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
|
|
@@ -1423,10 +1438,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1423
1438
|
${({$active:e})=>e&&k`
|
|
1424
1439
|
background-color: var(--color-blue-400);
|
|
1425
1440
|
`}
|
|
1426
|
-
`,
|
|
1427
|
-
${
|
|
1441
|
+
`,xy=P.div`
|
|
1442
|
+
${as}
|
|
1428
1443
|
justify-content: ${({$align:e})=>e||"space-between"};
|
|
1429
|
-
`,
|
|
1444
|
+
`,Sy=P.button`
|
|
1430
1445
|
all: unset;
|
|
1431
1446
|
display: inline-flex;
|
|
1432
1447
|
align-items: center;
|
|
@@ -1445,11 +1460,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1445
1460
|
outline-color: var(--color-main-white);
|
|
1446
1461
|
outline-offset: 2px;
|
|
1447
1462
|
}
|
|
1448
|
-
`,
|
|
1463
|
+
`,Ty=P.span`
|
|
1449
1464
|
transition: transform 0.3s ease-out;
|
|
1450
1465
|
display: inline-flex;
|
|
1451
1466
|
transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
|
|
1452
|
-
|
|
1467
|
+
`,Vc=P.span`
|
|
1453
1468
|
display: inline-flex;
|
|
1454
1469
|
align-items: center;
|
|
1455
1470
|
gap: 0.5rem;
|
|
@@ -1458,28 +1473,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1458
1473
|
text-overflow: ellipsis;
|
|
1459
1474
|
white-space: nowrap;
|
|
1460
1475
|
flex-shrink: 1;
|
|
1461
|
-
`,
|
|
1476
|
+
`,Cy=P(Mn)`
|
|
1462
1477
|
overflow: hidden;
|
|
1463
1478
|
text-overflow: ellipsis;
|
|
1464
1479
|
white-space: nowrap;
|
|
1465
1480
|
max-width: 100%;
|
|
1466
1481
|
color: var(--color-main-white);
|
|
1467
|
-
`,
|
|
1468
|
-
${
|
|
1482
|
+
`,Ic=P.span`
|
|
1483
|
+
${ls}
|
|
1469
1484
|
gap: 0.375rem;
|
|
1470
|
-
`,
|
|
1471
|
-
${
|
|
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}
|
|
1472
1487
|
${_[14]}
|
|
1473
1488
|
`,md:k`
|
|
1474
|
-
${
|
|
1489
|
+
${gt.md}
|
|
1475
1490
|
${_[14]}
|
|
1476
1491
|
`,lg:k`
|
|
1477
|
-
${
|
|
1492
|
+
${gt.lg}
|
|
1478
1493
|
${_[16]}
|
|
1479
|
-
`},
|
|
1494
|
+
`},Py=P.td`
|
|
1480
1495
|
vertical-align: middle;
|
|
1481
1496
|
color: var(--color-main-blue-primary);
|
|
1482
|
-
${({$size:e})=>
|
|
1497
|
+
${({$size:e})=>Ey[e]}
|
|
1483
1498
|
text-align: ${({$align:e,$variant:t})=>e||(t==="numeric"?"right":"left")};
|
|
1484
1499
|
border-left: 1px solid var(--color-main-light-borders);
|
|
1485
1500
|
border-top: 1px solid var(--color-main-light-borders);
|
|
@@ -1497,15 +1512,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1497
1512
|
font-variant-numeric: tabular-nums;
|
|
1498
1513
|
font-family: ui-monospace, monospace;
|
|
1499
1514
|
`}
|
|
1500
|
-
|
|
1501
|
-
${
|
|
1515
|
+
`,ky=P.div`
|
|
1516
|
+
${as}
|
|
1502
1517
|
justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
|
|
1503
|
-
`,
|
|
1518
|
+
`,Ay=P(Vn)`
|
|
1504
1519
|
flex: 1;
|
|
1505
1520
|
min-width: 0;
|
|
1506
|
-
`,
|
|
1507
|
-
${
|
|
1508
|
-
`,
|
|
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`
|
|
1509
1524
|
width: fit-content;
|
|
1510
1525
|
table-layout: auto;
|
|
1511
1526
|
border-collapse: separate;
|
|
@@ -1515,10 +1530,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1515
1530
|
border-radius: var(--border-radius-article);
|
|
1516
1531
|
border: 1px solid var(--color-main-light-borders);
|
|
1517
1532
|
|
|
1518
|
-
${({$variant:e})=>
|
|
1519
|
-
${
|
|
1520
|
-
${
|
|
1521
|
-
`,
|
|
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`
|
|
1522
1537
|
position: fixed;
|
|
1523
1538
|
top: 0;
|
|
1524
1539
|
left: 0;
|
|
@@ -1537,15 +1552,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1537
1552
|
@media (min-width: 768px) {
|
|
1538
1553
|
padding-left: ${({$sidebarCollapsed:e})=>e?"6rem":"17rem"};
|
|
1539
1554
|
}
|
|
1540
|
-
`,
|
|
1555
|
+
`,My=P.div`
|
|
1541
1556
|
display: flex;
|
|
1542
1557
|
align-items: center;
|
|
1543
1558
|
gap: 1rem;
|
|
1544
|
-
`,
|
|
1559
|
+
`,Vy=P.div`
|
|
1545
1560
|
display: flex;
|
|
1546
1561
|
align-items: center;
|
|
1547
1562
|
gap: 1rem;
|
|
1548
|
-
`,
|
|
1563
|
+
`,Iy=P.button`
|
|
1549
1564
|
position: relative;
|
|
1550
1565
|
display: flex;
|
|
1551
1566
|
align-items: center;
|
|
@@ -1561,7 +1576,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1561
1576
|
transform: scale(1.05);
|
|
1562
1577
|
}
|
|
1563
1578
|
|
|
1564
|
-
&:focus {
|
|
1579
|
+
&:focus-visible {
|
|
1565
1580
|
outline: 2px solid var(--color-main-blue-primary);
|
|
1566
1581
|
outline-offset: 2px;
|
|
1567
1582
|
}
|
|
@@ -1569,7 +1584,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1569
1584
|
&:active {
|
|
1570
1585
|
transform: scale(0.92);
|
|
1571
1586
|
}
|
|
1572
|
-
`,
|
|
1587
|
+
`,Ny=P.span`
|
|
1573
1588
|
position: absolute;
|
|
1574
1589
|
top: 0.35rem;
|
|
1575
1590
|
right: 0.35rem;
|
|
@@ -1585,7 +1600,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1585
1600
|
display: flex;
|
|
1586
1601
|
align-items: center;
|
|
1587
1602
|
justify-content: center;
|
|
1588
|
-
`,
|
|
1603
|
+
`,Ly=P.div`
|
|
1589
1604
|
display: flex;
|
|
1590
1605
|
align-items: center;
|
|
1591
1606
|
gap: 0.75rem;
|
|
@@ -1598,11 +1613,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1598
1613
|
background-color: var(--color-main-light-background);
|
|
1599
1614
|
}
|
|
1600
1615
|
|
|
1601
|
-
&:focus {
|
|
1616
|
+
&:focus-visible {
|
|
1602
1617
|
outline: 2px solid var(--color-main-blue-primary);
|
|
1603
1618
|
outline-offset: 2px;
|
|
1604
1619
|
}
|
|
1605
|
-
`,
|
|
1620
|
+
`,Oy=P.div`
|
|
1606
1621
|
width: 2rem;
|
|
1607
1622
|
height: 2rem;
|
|
1608
1623
|
border-radius: 50%;
|
|
@@ -1613,7 +1628,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1613
1628
|
color: var(--color-main-white);
|
|
1614
1629
|
font-weight: 600;
|
|
1615
1630
|
font-size: 0.875rem;
|
|
1616
|
-
`,
|
|
1631
|
+
`,Fy=P.div`
|
|
1617
1632
|
display: flex;
|
|
1618
1633
|
flex-direction: column;
|
|
1619
1634
|
align-items: flex-start;
|
|
@@ -1621,34 +1636,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
|
1621
1636
|
@media (max-width: 640px) {
|
|
1622
1637
|
display: none;
|
|
1623
1638
|
}
|
|
1624
|
-
`,
|
|
1639
|
+
`,Ry=P.span`
|
|
1625
1640
|
font-weight: 600;
|
|
1626
1641
|
font-size: 0.875rem;
|
|
1627
1642
|
color: var(--color-main-dark-text);
|
|
1628
1643
|
line-height: 1.2;
|
|
1629
|
-
`,
|
|
1644
|
+
`,By=P.span`
|
|
1630
1645
|
font-size: 0.75rem;
|
|
1631
1646
|
color: var(--color-main-gray-text);
|
|
1632
1647
|
line-height: 1.2;
|
|
1633
|
-
`,
|
|
1634
|
-
display: flex;
|
|
1635
|
-
align-items: center;
|
|
1636
|
-
justify-content: center;
|
|
1637
|
-
transition: transform 0.2s ease;
|
|
1638
|
-
|
|
1639
|
-
${Nc}:hover & {
|
|
1640
|
-
transform: rotate(180deg);
|
|
1641
|
-
}
|
|
1642
|
-
`,cs=({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(Iy,{$sidebarCollapsed:e,children:[m.jsx(Ny,{children:s}),m.jsxs(Ly,{children:[m.jsxs(Oy,{onClick:o,"aria-label":c,title:d,"data-has":l||void 0,children:[m.jsx(J,{component:l?Gg:Xg,size:"md",color:"var(--color-main-blue-primary)"}),l&&m.jsx(Fy,{$withCount:!!u,"aria-hidden":!!u,children:u&&(u>99?"99+":u)})]}),t&&m.jsxs(Nc,{onClick:i,role:"button",tabIndex:0,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i?.())},children:[m.jsx(By,{children:t.avatarUrl?m.jsx("img",{src:t.avatarUrl,alt:t.name,style:{width:"100%",height:"100%",borderRadius:"50%"}}):a(t.name)}),m.jsxs(Ry,{children:[m.jsx(_y,{children:t.name}),m.jsx(jy,{children:t.role})]}),m.jsx(zy,{children:m.jsx(J,{component:jg,size:"md",color:"var(--color-main-gray-text)"})})]})]})]})};cs.displayName="Header";const Hy=P.div`
|
|
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`
|
|
1643
1649
|
display: flex;
|
|
1644
1650
|
flex-direction: column;
|
|
1645
1651
|
height: 100vh;
|
|
1646
1652
|
overflow: hidden;
|
|
1647
|
-
`,
|
|
1653
|
+
`,_y=P.main`
|
|
1648
1654
|
flex: 1;
|
|
1649
1655
|
margin-top: 4rem;
|
|
1650
1656
|
margin-left: 0;
|
|
1651
1657
|
padding: 1rem;
|
|
1652
1658
|
overflow-y: auto;
|
|
1653
1659
|
margin-left: 5rem;
|
|
1654
|
-
`,
|
|
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"})}));
|