tcce-design-system-test 0.1.8 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +203 -2
- package/dist/assets/brand/favicon.svg +7 -0
- package/dist/tcce-design-system-components.css +1 -1
- package/dist/tcce-design-system-components.d.ts +937 -13
- package/dist/tcce-design-system-components.js +9917 -864
- package/dist/tcce-design-system-components.umd.cjs +1404 -117
- package/package.json +15 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(O,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],w):(O=typeof globalThis<"u"?globalThis:O||self,w(O["tcce-design-system-components"]={},O["react/jsx-runtime"],O.React))})(this,(function(O,w,j){"use strict";var D=function(){return D=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},D.apply(this,arguments)};function G(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Qt(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var er=/^((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)-.*))$/,tr=Qt(function(e){return er.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),b="-ms-",se="-moz-",h="-webkit-",it="comm",pe="rule",ze="decl",rr="@import",at="@keyframes",nr="@layer",st=Math.abs,Re=String.fromCharCode,je=Object.assign;function or(e,t){return $(e,0)^45?(((t<<2^$(e,0))<<2^$(e,1))<<2^$(e,2))<<2^$(e,3):0}function ct(e){return e.trim()}function H(e,t){return(e=t.exec(e))?e[0]:e}function u(e,t,r){return e.replace(t,r)}function he(e,t,r){return e.indexOf(t,r)}function $(e,t){return e.charCodeAt(t)|0}function Z(e,t,r){return e.slice(t,r)}function M(e){return e.length}function lt(e){return e.length}function ce(e,t){return t.push(e),e}function ir(e,t){return e.map(t).join("")}function ut(e,t){return e.filter(function(r){return!H(r,t)})}var me=1,J=1,ft=0,_=0,N=0,Q="";function ge(e,t,r,n,o,i,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:me,column:J,length:a,return:"",siblings:c}}function B(e,t){return je(ge("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ee(e){for(;e.root;)e=B(e.root,{children:[e]});ce(e,e.siblings)}function ar(){return N}function sr(){return N=_>0?$(Q,--_):0,J--,N===10&&(J=1,me--),N}function R(){return N=_<ft?$(Q,_++):0,J++,N===10&&(J=1,me++),N}function W(){return $(Q,_)}function ye(){return _}function ve(e,t){return Z(Q,e,t)}function Me(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 cr(e){return me=J=1,ft=M(Q=e),_=0,[]}function lr(e){return Q="",e}function He(e){return ct(ve(_-1,Fe(e===91?e+2:e===40?e+1:e)))}function ur(e){for(;(N=W())&&N<33;)R();return Me(e)>2||Me(N)>3?"":" "}function fr(e,t){for(;--t&&R()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return ve(e,ye()+(t<6&&W()==32&&R()==32))}function Fe(e){for(;R();)switch(N){case e:return _;case 34:case 39:e!==34&&e!==39&&Fe(N);break;case 40:e===41&&Fe(e);break;case 92:R();break}return _}function dr(e,t){for(;R()&&e+N!==57;)if(e+N===84&&W()===47)break;return"/*"+ve(t,_-1)+"*"+Re(e===47?e:R())}function pr(e){for(;!Me(W());)R();return ve(e,_)}function hr(e){return lr(we("",null,null,null,[""],e=cr(e),0,[0],e))}function we(e,t,r,n,o,i,a,c,s){for(var m=0,y=0,p=a,v=0,g=0,x=0,A=1,T=1,P=1,C=0,S="",k=o,E=i,d=n,f=S;T;)switch(x=C,C=R()){case 40:if(x!=108&&$(f,p-1)==58){he(f+=u(He(C),"&","&\f"),"&\f",st(m?c[m-1]:0))!=-1&&(P=-1);break}case 34:case 39:case 91:f+=He(C);break;case 9:case 10:case 13:case 32:f+=ur(x);break;case 92:f+=fr(ye()-1,7);continue;case 47:switch(W()){case 42:case 47:ce(mr(dr(R(),ye()),t,r,s),s);break;default:f+="/"}break;case 123*A:c[m++]=M(f)*P;case 125*A:case 59:case 0:switch(C){case 0:case 125:T=0;case 59+y:P==-1&&(f=u(f,/\f/g,"")),g>0&&M(f)-p&&ce(g>32?pt(f+";",n,r,p-1,s):pt(u(f," ","")+";",n,r,p-2,s),s);break;case 59:f+=";";default:if(ce(d=dt(f,t,r,m,y,o,c,S,k=[],E=[],p,i),i),C===123)if(y===0)we(f,t,d,d,k,i,p,c,E);else switch(v===99&&$(f,3)===110?100:v){case 100:case 108:case 109:case 115:we(e,d,d,n&&ce(dt(e,d,d,0,0,o,c,S,o,k=[],p,E),E),o,E,p,c,n?k:E);break;default:we(f,d,d,d,[""],E,0,c,E)}}m=y=g=0,A=P=1,S=f="",p=a;break;case 58:p=1+M(f),g=x;default:if(A<1){if(C==123)--A;else if(C==125&&A++==0&&sr()==125)continue}switch(f+=Re(C),C*A){case 38:P=y>0?1:(f+="\f",-1);break;case 44:c[m++]=(M(f)-1)*P,P=1;break;case 64:W()===45&&(f+=He(R())),v=W(),y=p=M(S=f+=pr(ye())),C++;break;case 45:x===45&&M(f)==2&&(A=0)}}return i}function dt(e,t,r,n,o,i,a,c,s,m,y,p){for(var v=o-1,g=o===0?i:[""],x=lt(g),A=0,T=0,P=0;A<n;++A)for(var C=0,S=Z(e,v+1,v=st(T=a[A])),k=e;C<x;++C)(k=ct(T>0?g[C]+" "+S:u(S,/&\f/g,g[C])))&&(s[P++]=k);return ge(e,t,r,o===0?pe:c,s,m,y,p)}function mr(e,t,r,n){return ge(e,t,r,it,Re(ar()),Z(e,2,-2),0,n)}function pt(e,t,r,n,o){return ge(e,t,r,ze,Z(e,0,n),Z(e,n+1,-1),n,o)}function ht(e,t,r){switch(or(e,t)){case 5103:return h+"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 h+e+e;case 4789:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return h+e+se+e+b+e+e;case 5936:switch($(e,t+11)){case 114:return h+e+b+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return h+e+b+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return h+e+b+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return h+e+b+e+e;case 6165:return h+e+b+"flex-"+e+e;case 5187:return h+e+u(e,/(\w+).+(:[^]+)/,h+"box-$1$2"+b+"flex-$1$2")+e;case 5443:return h+e+b+"flex-item-"+u(e,/flex-|-self/g,"")+(H(e,/flex-|baseline/)?"":b+"grid-row-"+u(e,/flex-|-self/g,""))+e;case 4675:return h+e+b+"flex-line-pack"+u(e,/align-content|flex-|-self/g,"")+e;case 5548:return h+e+b+u(e,"shrink","negative")+e;case 5292:return h+e+b+u(e,"basis","preferred-size")+e;case 6060:return h+"box-"+u(e,"-grow","")+h+e+b+u(e,"grow","positive")+e;case 4554:return h+u(e,/([^-])(transform)/g,"$1"+h+"$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,h+"$1"),/(image-set)/,h+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,h+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,h+"box-pack:$3"+b+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+h+e+e;case 4200:if(!H(e,/flex-|baseline/))return b+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return b+u(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,H(n.props,/grid-\w+-end/)})?~he(e+(r=r[t].value),"span",0)?e:b+u(e,"-start","")+e+b+"grid-row-span:"+(~he(r,"span",0)?H(r,/\d+/):+H(r,/\d+/)-+H(e,/\d+/))+";":b+u(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return H(n.props,/grid-\w+-start/)})?e:b+u(u(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,h+"$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(M(e)-1-t>6)switch($(e,t+1)){case 109:if($(e,t+4)!==45)break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+h+"$2-$3$1"+se+($(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~he(e,"stretch",0)?ht(u(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return u(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,c,s,m){return b+o+":"+i+m+(a?b+o+"-span:"+(c?s:+s-+i)+m:"")+e});case 4949:if($(e,t+6)===121)return u(e,":",":"+h)+e;break;case 6444:switch($(e,$(e,14)===45?18:11)){case 120:return u(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+h+($(e,14)===45?"inline-":"")+"box$3$1"+h+"$2$3$1"+b+"$2box$3")+e;case 100:return u(e,":",":"+b)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return u(e,"scroll-","scroll-snap-")+e}return e}function be(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function gr(e,t,r,n){switch(e.type){case nr:if(e.children.length)break;case rr:case ze:return e.return=e.return||e.value;case it:return"";case at:return e.return=e.value+"{"+be(e.children,n)+"}";case pe:if(!M(e.value=e.props.join(",")))return""}return M(r=be(e.children,n))?e.return=e.value+"{"+r+"}":""}function yr(e){var t=lt(e);return function(r,n,o,i){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,i)||"";return a}}function vr(e){return function(t){t.root||(t=t.return)&&e(t)}}function wr(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ze:e.return=ht(e.value,e.length,r);return;case at:return be([B(e,{value:u(e.value,"@","@"+h)})],n);case pe:if(e.length)return ir(r=e.props,function(o){switch(H(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ee(B(e,{props:[u(o,/:(read-\w+)/,":"+se+"$1")]})),ee(B(e,{props:[o]})),je(e,{props:ut(r,n)});break;case"::placeholder":ee(B(e,{props:[u(o,/:(plac\w+)/,":"+h+"input-$1")]})),ee(B(e,{props:[u(o,/:(plac\w+)/,":"+se+"$1")]})),ee(B(e,{props:[u(o,/:(plac\w+)/,b+"input-$1")]})),ee(B(e,{props:[o]})),je(e,{props:ut(r,n)});break}return""})}}var br={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},Y=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",mt="active",gt="data-styled-version",Se="6.1.19",Be=`/*!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,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
|
+
`,wn=typeof window<"u"&&typeof document<"u",hu=!!(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"),Es=/invalid hook call/i,xn=new Set,pu=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(
|
|
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];Es.test(s)?(i=!1,xn.delete(r)):o.apply(void 0,gt([s],a,!1))},h.useRef(),i&&!xn.has(r)&&(console.warn(r),xn.add(r))}catch(s){Es.test(s.message)&&xn.delete(r)}finally{console.error=o}}},Sn=Object.freeze([]),xt=Object.freeze({});function mu(e,t,n){return n===void 0&&(n=xt),e.theme!==n.theme&&e.theme||t||n.theme}var pr=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"]),gu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yu=/(^-|-$)/g;function Ps(e){return e.replace(gu,"-").replace(yu,"")}var vu=/(a)(d)/gi,Tn=52,ks=function(e){return String.fromCharCode(e+(e>25?39:97))};function mr(e){var t,n="";for(t=Math.abs(e);t>Tn;t=t/Tn|0)n=ks(t%Tn)+n;return(ks(t%Tn)+n).replace(vu,"$1-$2")}var gr,As=5381,nt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ds=function(e){return nt(As,e)};function bu(e){return mr(Ds(e)>>>0)}function $s(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function yr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ms=typeof Symbol=="function"&&Symbol.for,Vs=Ms?Symbol.for("react.memo"):60115,wu=Ms?Symbol.for("react.forward_ref"):60112,xu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Su={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Is={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tu=((gr={})[wu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gr[Vs]=Is,gr);function Ns(e){return("type"in(t=e)&&t.type.$$typeof)===Vs?Is:"$$typeof"in e?Tu[e.$$typeof]:xu;var t}var Cu=Object.defineProperty,Eu=Object.getOwnPropertyNames,Ls=Object.getOwnPropertySymbols,Pu=Object.getOwnPropertyDescriptor,ku=Object.getPrototypeOf,Os=Object.prototype;function Fs(e,t,n){if(typeof t!="string"){if(Os){var r=ku(t);r&&r!==Os&&Fs(e,r,n)}var o=Eu(t);Ls&&(o=o.concat(Ls(t)));for(var i=Ns(e),s=Ns(t),a=0;a<o.length;++a){var l=o[a];if(!(l in Su||n&&n[l]||s&&l in s||i&&l in i)){var u=Pu(t,l);try{Cu(e,l,u)}catch{}}}}return e}function St(e){return typeof e=="function"}function vr(e){return typeof e=="object"&&"styledComponentId"in e}function rt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Bs(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Tt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function br(e,t,n){if(n===void 0&&(n=!1),!n&&!Tt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=br(e[r],t[r]);else if(Tt(t))for(var r in t)e[r]=br(e[r],t[r]);return e}function wr(e,t){Object.defineProperty(e,"toString",{value:t})}var Au=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 Rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function oe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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(Rr.apply(void 0,G([zr[e]],t,!1)).trim())}var jr=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw oe(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),s=(a=0,r.length);a<s;a++)this.tag.insertRule(c,r[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(Be);return r},e})(),Mr=1<<30,Ae=new Map,Ne=new Map,Pe=1,$e=function(e){if(Ae.has(e))return Ae.get(e);for(;Ne.has(Pe);)Pe++;var t=Pe++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Mr))throw oe(16,"".concat(t));return Ae.set(e,t),Ne.set(t,e),t},Hr=function(e,t){Pe=t+1,Ae.set(e,t),Ne.set(t,e)},Fr="style[".concat(Y,"][").concat(gt,'="').concat(Se,'"]'),Br=new RegExp("^".concat(Y,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Lr=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Vr=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Be),o=[],i=0,a=n.length;i<a;i++){var c=n[i].trim();if(c){var s=c.match(Br);if(s){var m=0|parseInt(s[1],10),y=s[2];m!==0&&(Hr(y,m),Lr(e,y,s[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(c)}}},It=function(e){for(var t=document.querySelectorAll(Fr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Y)!==mt&&(Vr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Gr(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Dt=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(c){var s=Array.from(c.querySelectorAll("style[".concat(Y,"]")));return s[s.length-1]})(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Y,mt),n.setAttribute(gt,Se);var a=Gr();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Wr=(function(){function e(t){this.element=Dt(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw oe(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),Yr=(function(){function e(t){this.element=Dt(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,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})(),qr=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),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})(),Tt=ke,Ur={isServer:!ke,useCSSOMInjection:!Sr},_t=(function(){function e(t,r,n){t===void 0&&(t=te),r===void 0&&(r={});var o=this;this.options=D(D({},Ur),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&ke&&Tt&&(Tt=!1,It(this)),Xe(this,function(){return(function(i){for(var a=i.getTag(),c=a.length,s="",m=function(p){var v=(function(P){return Ne.get(P)})(p);if(v===void 0)return"continue";var g=i.names.get(v),x=a.getGroup(p);if(g===void 0||!g.size||x.length===0)return"continue";var A="".concat(Y,".g").concat(p,'[id="').concat(v,'"]'),T="";g!==void 0&&g.forEach(function(P){P.length>0&&(T+="".concat(P,","))}),s+="".concat(x).concat(A,'{content:"').concat(T,'"}').concat(Be)},y=0;y<c;y++)m(y);return s})(o)})}return e.registerId=function(t){return $e(t)},e.prototype.rehydrate=function(){!this.server&&ke&&It(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(D(D({},this.options),t),this.gs,r&&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(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new qr(o):n?new Wr(o):new Yr(o)})(this.options),new jr(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if($e(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules($e(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup($e(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Xr=/&/g,Kr=/^\s*\/\/.*$/gm;function zt(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=zt(r.children,t)),r})}function Zr(e){var t,r,n,o=te,i=o.options,a=i===void 0?te:i,c=o.plugins,s=c===void 0?Ce:c,m=function(v,g,x){return x.startsWith(r)&&x.endsWith(r)&&x.replaceAll(r,"").length>0?".".concat(t):v},y=s.slice();y.push(function(v){v.type===pe&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Xr,r).replace(n,m))}),a.prefix&&y.push(wr),y.push(gr);var p=function(v,g,x,A){g===void 0&&(g=""),x===void 0&&(x=""),A===void 0&&(A="&"),t=A,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var T=v.replace(Kr,""),P=hr(x||g?"".concat(x," ").concat(g," { ").concat(T," }"):T);a.namespace&&(P=zt(P,a.namespace));var C=[];return be(P,yr(y.concat(vr(function(S){return C.push(S)})))),C};return p.hash=s.length?s.reduce(function(v,g){return g.name||oe(15),q(v,g.name)},bt).toString():"",p}var Jr=new _t,Ke=Zr(),Rt=j.createContext({shouldForwardProp:void 0,styleSheet:Jr,stylis:Ke});Rt.Consumer,j.createContext(void 0);function jt(){return j.useContext(Rt)}var Ze=(function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=Ke);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Xe(this,function(){throw oe(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ke),this.name+t.hash},e})(),Qr=function(e){return e>="A"&&e<="Z"};function Mt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Qr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ht=function(e){return e==null||e===!1||e===""},Ft=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ht(i)&&(Array.isArray(i)&&i.isCss||re(i)?n.push("".concat(Mt(o),":"),i,";"):ne(i)?n.push.apply(n,G(G(["".concat(o," {")],Ft(i),!1),["}"],!1)):n.push("".concat(Mt(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in br||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function X(e,t,r,n){if(Ht(e))return[];if(Ye(e))return[".".concat(e.styledComponentId)];if(re(e)){if(!re(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 Ze||ne(o)||o===null||console.error("".concat(xt(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.")),X(o,t,r,n)}var i;return e instanceof Ze?r?(e.inject(r,n),[e.getName(n)]):[e]:ne(e)?Ft(e):Array.isArray(e)?Array.prototype.concat.apply(Ce,e.map(function(a){return X(a,t,r,n)})):[e.toString()]}function en(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(re(r)&&!Ye(r))return!1}return!0}var tn=St(Se),rn=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&en(t),this.componentId=r,this.baseHash=q(tn,r),this.baseStyle=n,_t.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=U(o,this.staticRulesId);else{var i=qe(X(this.rules,t,r,n)),a=Ve(q(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}o=U(o,a),this.staticRulesId=a}else{for(var s=q(this.baseHash,n.hash),m="",y=0;y<this.rules.length;y++){var p=this.rules[y];if(typeof p=="string")m+=p,process.env.NODE_ENV!=="production"&&(s=q(s,p));else if(p){var v=qe(X(p,t,r,n));s=q(s,v+y),m+=v}}if(m){var g=Ve(s>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(m,".".concat(g),void 0,this.componentId)),o=U(o,g)}}return o},e})(),Bt=j.createContext(void 0);Bt.Consumer;var Je={},Lt=new Set;function nn(e,t,r){var n=Ye(e),o=e,i=!We(e),a=t.attrs,c=a===void 0?Ce:a,s=t.componentId,m=s===void 0?(function(k,E){var d=typeof k!="string"?"sc":vt(k);Je[d]=(Je[d]||0)+1;var f="".concat(d,"-").concat(kt(Se+d+Je[d]));return E?"".concat(E,"-").concat(f):f})(t.displayName,t.parentComponentId):s,y=t.displayName,p=y===void 0?(function(k){return We(k)?"styled.".concat(k):"Styled(".concat(xt(k),")")})(e):y,v=t.displayName&&t.componentId?"".concat(vt(t.displayName),"-").concat(t.componentId):t.componentId||m,g=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,x=t.shouldForwardProp;if(n&&o.shouldForwardProp){var A=o.shouldForwardProp;if(t.shouldForwardProp){var T=t.shouldForwardProp;x=function(k,E){return A(k,E)&&T(k,E)}}else x=A}var P=new rn(r,v,n?o.componentStyle:void 0);function C(k,E){return(function(d,f,L){var ie=d.attrs,$n=d.componentStyle,On=d.defaultProps,In=d.foldedComponentIds,Zt=d.styledComponentId,Dn=d.target,Tn=j.useContext(Bt),_n=jt(),tt=d.shouldForwardProp||_n.shouldForwardProp;process.env.NODE_ENV!=="production"&&j.useDebugValue(Zt);var Jt=xr(f,Tn,On)||te,F=(function(De,de,Te){for(var ae,K=D(D({},de),{className:void 0,theme:Te}),ot=0;ot<De.length;ot+=1){var _e=re(ae=De[ot])?ae(K):ae;for(var V in _e)K[V]=V==="className"?U(K[V],_e[V]):V==="style"?D(D({},K[V]),_e[V]):_e[V]}return de.className&&(K.className=U(K.className,de.className)),K})(ie,f,Jt),ue=F.as||Dn,fe={};for(var z in F)F[z]===void 0||z[0]==="$"||z==="as"||z==="theme"&&F.theme===Jt||(z==="forwardedAs"?fe.as=F.forwardedAs:tt&&!tt(z,ue)||(fe[z]=F[z],tt||process.env.NODE_ENV!=="development"||tr(z)||Lt.has(z)||!Le.has(ue)||(Lt.add(z),console.warn('styled-components: it looks like an unknown prop "'.concat(z,'" 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 rt=(function(De,de){var Te=jt(),ae=De.generateAndInjectStyles(de,Te.styleSheet,Te.stylis);return process.env.NODE_ENV!=="production"&&j.useDebugValue(ae),ae})($n,F);process.env.NODE_ENV!=="production"&&d.warnTooManyClasses&&d.warnTooManyClasses(rt);var nt=U(In,Zt);return rt&&(nt+=" "+rt),F.className&&(nt+=" "+F.className),fe[We(ue)&&!Le.has(ue)?"class":"className"]=nt,L&&(fe.ref=L),j.createElement(ue,fe)})(S,k,E)}C.displayName=p;var S=j.forwardRef(C);return S.attrs=g,S.componentStyle=P,S.displayName=p,S.shouldForwardProp=x,S.foldedComponentIds=n?U(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=v,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?(function(E){for(var d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];for(var L=0,ie=d;L<ie.length;L++)Ue(E,ie[L],!0);return E})({},o.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(kr(p,v),S.warnTooManyClasses=(function(k,E){var d={},f=!1;return function(L){if(!f&&(d[L]=!0,Object.keys(d).length>=200)){var ie=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(ie,`.
|
|
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,`.
|
|
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,232 +53,244 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),E=!0,S={}}}})(c,f)),wr(b,function(){return".".concat(b.styledComponentId)}),i&&Fs(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Js(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 Qs=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(St(e)||Tt(e))return Qs(ot(Js(Sn,gt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):Qs(ot(Js(r,t)))}function Tr(e,t,n){if(n===void 0&&(n=xt),!t)throw Ct(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,gt([o],i,!1)))};return r.attrs=function(o){return Tr(e,t,be(be({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Tr(e,t,be(be({},n),o))},r}var ei=function(e){return Tr(qu,e)},P=ei;pr.forEach(function(e){P[e]=ei(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 An="__sc-".concat(tt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[An]||(window[An]=0),window[An]===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[
|
|
61
|
-
display: inline-flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
color: ${({$color:e})=>e};
|
|
65
|
-
`,qt={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},et=({component:e,size:t="1.5rem",color:r="currentColor",className:n,iconProps:o={}})=>{const i=typeof t=="string"&&t in qt?qt[t]:t;return w.jsx(on,{$color:r,className:n,children:typeof e=="function"?w.jsx(e,{size:i,...o}):e})},Ut={80:l`
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[An]+=1);const ti={80:k`
|
|
66
61
|
font-family: 'Dax', serif;
|
|
67
62
|
font-size: 5rem;
|
|
68
63
|
font-style: normal;
|
|
69
64
|
font-weight: 700;
|
|
70
65
|
line-height: 163.184%;
|
|
71
|
-
`,60:
|
|
66
|
+
`,60:k`
|
|
72
67
|
font-family: 'Dax', serif;
|
|
73
68
|
font-size: 3.75rem;
|
|
74
69
|
font-style: normal;
|
|
75
70
|
font-weight: 700;
|
|
76
71
|
line-height: 161.76%;
|
|
77
|
-
`,40:
|
|
72
|
+
`,40:k`
|
|
78
73
|
font-family: 'Dax', serif;
|
|
79
74
|
font-size: 2.5rem;
|
|
80
75
|
font-style: normal;
|
|
81
76
|
font-weight: 700;
|
|
82
77
|
line-height: 161.76%;
|
|
83
|
-
`,30:
|
|
78
|
+
`,30:k`
|
|
84
79
|
font-family: 'Dax', serif;
|
|
85
80
|
font-size: 1.875rem;
|
|
86
81
|
font-style: normal;
|
|
87
82
|
font-weight: 700;
|
|
88
83
|
line-height: 161.76%;
|
|
89
|
-
`,24:
|
|
84
|
+
`,24:k`
|
|
90
85
|
font-family: 'Dax', serif;
|
|
91
86
|
font-size: 1.5rem;
|
|
92
87
|
font-style: normal;
|
|
93
88
|
font-weight: 700;
|
|
94
89
|
line-height: 163.184%;
|
|
95
|
-
`,20:
|
|
90
|
+
`,20:k`
|
|
96
91
|
font-family: 'Dax', serif;
|
|
97
92
|
font-size: 1.25rem;
|
|
98
93
|
font-style: normal;
|
|
99
94
|
font-weight: 700;
|
|
100
95
|
line-height: 161.76%;
|
|
101
|
-
`,16:
|
|
96
|
+
`,16:k`
|
|
102
97
|
font-family: 'Dax', serif;
|
|
103
98
|
font-size: 1rem;
|
|
104
99
|
font-style: normal;
|
|
105
100
|
font-weight: 700;
|
|
106
101
|
line-height: 161.76%;
|
|
107
|
-
`},
|
|
102
|
+
`},Zu={80:k`
|
|
108
103
|
font-family: 'Dax', serif;
|
|
109
104
|
font-size: 5rem;
|
|
110
105
|
font-style: normal;
|
|
111
106
|
font-weight: 400;
|
|
112
107
|
line-height: 163.184%;
|
|
113
|
-
`,60:
|
|
108
|
+
`,60:k`
|
|
114
109
|
font-family: 'Dax', serif;
|
|
115
110
|
font-size: 3.75em;
|
|
116
111
|
font-style: normal;
|
|
117
112
|
font-weight: 400;
|
|
118
113
|
line-height: 161.76%;
|
|
119
|
-
`,40:
|
|
114
|
+
`,40:k`
|
|
120
115
|
font-family: 'Dax', serif;
|
|
121
116
|
font-size: 2.5rem;
|
|
122
117
|
font-style: normal;
|
|
123
118
|
font-weight: 400;
|
|
124
119
|
line-height: 161.76%;
|
|
125
|
-
`,30:
|
|
120
|
+
`,30:k`
|
|
126
121
|
font-family: 'Dax', serif;
|
|
127
122
|
font-size: 1.875rem;
|
|
128
123
|
font-style: normal;
|
|
129
124
|
font-weight: 400;
|
|
130
125
|
line-height: 161.76%;
|
|
131
|
-
`,24:
|
|
126
|
+
`,24:k`
|
|
132
127
|
font-family: 'Dax', serif;
|
|
133
128
|
font-size: 1.5rem;
|
|
134
129
|
font-style: normal;
|
|
135
130
|
font-weight: 400;
|
|
136
131
|
line-height: 163.184%;
|
|
137
|
-
`,20:
|
|
132
|
+
`,20:k`
|
|
138
133
|
font-family: 'Dax', serif;
|
|
139
134
|
font-size: 1.25rem;
|
|
140
135
|
font-style: normal;
|
|
141
136
|
font-weight: 400;
|
|
142
137
|
line-height: 161.76%;
|
|
143
|
-
`,16:
|
|
138
|
+
`,16:k`
|
|
144
139
|
font-family: 'Dax', serif;
|
|
145
140
|
font-size: 1rem;
|
|
146
141
|
font-style: normal;
|
|
147
142
|
font-weight: 400;
|
|
148
143
|
line-height: 161.76%;
|
|
149
|
-
`},
|
|
144
|
+
`},_={80:k`
|
|
150
145
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
151
146
|
font-size: 5rem;
|
|
152
147
|
font-style: normal;
|
|
153
148
|
font-weight: 400;
|
|
154
149
|
line-height: 155.962%;
|
|
155
|
-
`,60:
|
|
150
|
+
`,60:k`
|
|
156
151
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
157
152
|
font-size: 3.75rem;
|
|
158
153
|
font-style: normal;
|
|
159
154
|
font-weight: 400;
|
|
160
155
|
line-height: 176.782%;
|
|
161
|
-
`,40:
|
|
156
|
+
`,40:k`
|
|
162
157
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
163
158
|
font-size: 2.5rem;
|
|
164
159
|
font-style: normal;
|
|
165
160
|
font-weight: 400;
|
|
166
161
|
line-height: 176.782%;
|
|
167
|
-
`,30:
|
|
162
|
+
`,30:k`
|
|
168
163
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
169
164
|
font-size: 1.875rem;
|
|
170
165
|
font-style: normal;
|
|
171
166
|
font-weight: 400;
|
|
172
167
|
line-height: 176.782%;
|
|
173
|
-
`,24:
|
|
168
|
+
`,24:k`
|
|
174
169
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
175
170
|
font-size: 1.5rem;
|
|
176
171
|
font-style: normal;
|
|
177
172
|
font-weight: 400;
|
|
178
173
|
line-height: 176.782%;
|
|
179
|
-
`,20:
|
|
174
|
+
`,20:k`
|
|
180
175
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
181
176
|
font-size: 1.25rem;
|
|
182
177
|
font-style: normal;
|
|
183
178
|
font-weight: 400;
|
|
184
179
|
line-height: 155.962%;
|
|
185
|
-
`,18:
|
|
180
|
+
`,18:k`
|
|
186
181
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
187
182
|
font-size: 1.125rem;
|
|
188
183
|
font-style: normal;
|
|
189
184
|
font-weight: 400;
|
|
190
|
-
line-height:
|
|
191
|
-
`,16:
|
|
185
|
+
line-height: 150.782%;
|
|
186
|
+
`,16:k`
|
|
192
187
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
193
188
|
font-size: 1rem;
|
|
194
189
|
font-style: normal;
|
|
195
190
|
font-weight: 400;
|
|
196
|
-
line-height:
|
|
197
|
-
`,
|
|
191
|
+
line-height: 140%;
|
|
192
|
+
`,14:k`
|
|
198
193
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
199
|
-
font-size: 0.
|
|
194
|
+
font-size: 0.875rem;
|
|
200
195
|
font-style: normal;
|
|
201
196
|
font-weight: 400;
|
|
202
|
-
line-height:
|
|
203
|
-
`
|
|
204
|
-
|
|
197
|
+
line-height: 140%;
|
|
198
|
+
`,12:k`
|
|
199
|
+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
200
|
+
font-size: 0.875rem;
|
|
201
|
+
font-style: normal;
|
|
202
|
+
font-weight: 400;
|
|
203
|
+
line-height: 133%;
|
|
204
|
+
`},Dn=P.h1`
|
|
205
|
+
${({size:e=24})=>ti[e]}
|
|
205
206
|
margin: 0;
|
|
206
|
-
color: var(--color-main-blue-primary);
|
|
207
|
-
`,
|
|
208
|
-
${({size:e=24})=>
|
|
207
|
+
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
208
|
+
`,Ju=P.h2`
|
|
209
|
+
${({size:e=24})=>Zu[e]}
|
|
209
210
|
margin: 0;
|
|
210
|
-
color: var(--color-main-blue-primary);
|
|
211
|
-
|
|
212
|
-
${({size:e=16})=>
|
|
211
|
+
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
212
|
+
`,$n=P.span`
|
|
213
|
+
${({size:e=16})=>_[e]}
|
|
213
214
|
margin: 0;
|
|
214
|
-
color: var(--color-main-blue-primary);
|
|
215
|
-
`,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
opacity: 1;
|
|
225
|
-
}
|
|
226
|
-
50% {
|
|
227
|
-
opacity: 0.5;
|
|
215
|
+
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
216
|
+
`,Qu=P.span`
|
|
217
|
+
display: inline-flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
justify-content: center;
|
|
220
|
+
color: ${({$color:e})=>e};
|
|
221
|
+
|
|
222
|
+
&:focus-visible {
|
|
223
|
+
outline: none;
|
|
224
|
+
box-shadow: var(--shadow-hover-black-card);
|
|
228
225
|
}
|
|
229
|
-
`,dn={sm:l`
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
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(`
|
|
227
|
+
[data-motion-pop-id="${o}"] {
|
|
228
|
+
position: absolute !important;
|
|
229
|
+
width: ${l}px !important;
|
|
230
|
+
height: ${u}px !important;
|
|
231
|
+
${p}px !important;
|
|
232
|
+
top: ${d}px !important;
|
|
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`
|
|
235
|
+
width: 1.25rem;
|
|
236
|
+
height: 1.25rem;
|
|
237
|
+
`,md:k`
|
|
238
|
+
width: 1.75rem;
|
|
239
|
+
height: 1.75rem;
|
|
240
|
+
`,lg:k`
|
|
236
241
|
width: 3rem;
|
|
237
242
|
height: 3rem;
|
|
238
|
-
`,xl:
|
|
243
|
+
`,xl:k`
|
|
239
244
|
width: 4rem;
|
|
240
245
|
height: 4rem;
|
|
241
|
-
`},
|
|
246
|
+
`},Xl={primary:k`
|
|
242
247
|
color: var(--color-main-blue-primary);
|
|
243
|
-
`,orange:
|
|
248
|
+
`,orange:k`
|
|
244
249
|
color: var(--color-main-orange-primary);
|
|
245
|
-
`,white:
|
|
250
|
+
`,white:k`
|
|
246
251
|
color: var(--color-main-white);
|
|
247
|
-
`,gray:
|
|
252
|
+
`,gray:k`
|
|
248
253
|
color: var(--color-main-grey);
|
|
249
|
-
`}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
`},$m=P.div`
|
|
255
|
+
position: relative;
|
|
256
|
+
display: block;
|
|
257
|
+
${({$size:e="md"})=>Dm[e]}
|
|
258
|
+
${({$color:e="primary"})=>Xl[e]}
|
|
259
|
+
user-select: none;
|
|
260
|
+
`,Mm=P.div`
|
|
254
261
|
display: flex;
|
|
255
262
|
flex-direction: column;
|
|
256
263
|
align-items: center;
|
|
257
|
-
gap: 0.
|
|
258
|
-
|
|
264
|
+
gap: 0.5rem;
|
|
265
|
+
padding: 2.5px 2.5px 2.5px 0px;
|
|
266
|
+
`,Vm=P.div`
|
|
259
267
|
display: flex;
|
|
260
268
|
align-items: center;
|
|
261
269
|
justify-content: center;
|
|
262
270
|
min-height: 12.5rem;
|
|
263
271
|
width: 100%;
|
|
264
|
-
`,
|
|
265
|
-
${
|
|
266
|
-
${({$color:e="primary"})=>
|
|
267
|
-
animation: ${fn} 2s ease-in-out infinite;
|
|
272
|
+
`,Im=P(dt.p)`
|
|
273
|
+
${_[16]}
|
|
274
|
+
${({$color:e="primary"})=>Xl[e]}
|
|
268
275
|
margin: 0;
|
|
269
|
-
`,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
276
|
+
`,Xn=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=m.jsxs(Mm,{children:[m.jsxs($m,{$size:e,$color:t,$variant:i,children:[m.jsx(dt.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
|
+
C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
|
|
278
|
+
C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
|
|
279
|
+
C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
|
|
280
|
+
C19.322153,168.738571 33.952221,141.704315 49.116634,113.682678
|
|
281
|
+
C64.235954,141.612656 78.833565,168.578873 93.908447,196.426758
|
|
282
|
+
C87.866776,196.426758 82.658516,196.426758 77.325577,196.426758
|
|
283
|
+
C85.232460,234.921478 123.925285,277.225311 178.933075,279.192719
|
|
284
|
+
C235.221680,281.205994 283.208466,242.542862 292.799011,187.509933
|
|
285
|
+
C302.126556,133.986282 269.828094,80.603485 218.135574,63.877277
|
|
286
|
+
C164.703934,46.588337 104.072327,71.370583 80.391907,129.314926
|
|
287
|
+
C72.897575,118.331955 65.656891,107.720695 58.038605,96.556068
|
|
288
|
+
C47.621204,103.552185 37.297256,110.485535 26.973309,117.418884
|
|
289
|
+
C46.211082,62.712753 82.779099,25.932369 138.202881,9.672956
|
|
290
|
+
C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
|
|
291
|
+
C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
|
|
292
|
+
C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
|
|
293
|
+
z`})})}),o&&m.jsx("title",{children:o})]}),r&&m.jsx(Im,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?m.jsx(Vm,{children:s}):s},Nm=P.div`
|
|
282
294
|
position: fixed;
|
|
283
295
|
inset: 0;
|
|
284
296
|
background-color: rgba(255, 255, 255, 0.8);
|
|
@@ -287,7 +299,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Oe]+=1);const on=I.span`
|
|
|
287
299
|
align-items: center;
|
|
288
300
|
justify-content: center;
|
|
289
301
|
z-index: 50;
|
|
290
|
-
`,
|
|
302
|
+
`,Lm=P.div`
|
|
291
303
|
background-color: var(--color-main-white);
|
|
292
304
|
border-radius: var(--border-radius-card);
|
|
293
305
|
box-shadow: var(--shadow-black-card);
|
|
@@ -296,17 +308,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Oe]+=1);const on=I.span`
|
|
|
296
308
|
flex-direction: column;
|
|
297
309
|
align-items: center;
|
|
298
310
|
gap: 1rem;
|
|
299
|
-
|
|
300
|
-
|
|
311
|
+
width: 90%;
|
|
312
|
+
max-width: 24rem;
|
|
313
|
+
`,Om=P.h2`
|
|
314
|
+
${ti[30]}
|
|
301
315
|
color: var(--color-main-blue-primary);
|
|
302
316
|
margin: 0;
|
|
303
|
-
`,
|
|
317
|
+
`,Fm=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>m.jsxs(Nm,{role:"status","aria-live":"polite",children:[m.jsx(Lm,{children:m.jsx(Xn,{size:"xl",color:t,centered:!1,title:e,variant:n})}),m.jsx(Om,{children:e})]}),Bm=P.div`
|
|
304
318
|
display: flex;
|
|
305
319
|
flex-direction: column;
|
|
306
320
|
align-items: center;
|
|
307
321
|
justify-content: center;
|
|
308
322
|
padding: 3rem 1rem;
|
|
309
|
-
`,
|
|
323
|
+
`,Rm=({message:e,color:t="primary",variant:n="rotate"})=>m.jsx(Bm,{role:"status","aria-live":"polite",children:m.jsx(Xn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),ql=({color:e="white",variant:t="rotate"})=>m.jsx(Xn,{size:"sm",color:e,centered:!1,variant:t}),_m={primary:k`
|
|
310
324
|
background-color: var(--color-main-blue-primary);
|
|
311
325
|
color: var(--color-main-white);
|
|
312
326
|
|
|
@@ -317,38 +331,50 @@ See https://s-c.sh/2BAXzed for more info.`),window[Oe]+=1);const on=I.span`
|
|
|
317
331
|
&:active {
|
|
318
332
|
background-color: var(--color-purple-400);
|
|
319
333
|
}
|
|
320
|
-
|
|
334
|
+
|
|
335
|
+
&:focus {
|
|
336
|
+
outline-color: var(--color-main-blue-primary);
|
|
337
|
+
}
|
|
338
|
+
`,secondary:k`
|
|
321
339
|
background-color: var(--color-main-orange-primary);
|
|
322
340
|
color: var(--color-main-white);
|
|
323
341
|
|
|
324
|
-
&:hover {
|
|
342
|
+
&:hover && :focus {
|
|
325
343
|
box-shadow: var(--shadow-hover-orange-button);
|
|
326
344
|
}
|
|
327
|
-
|
|
345
|
+
|
|
346
|
+
&:focus {
|
|
347
|
+
outline-color: var(--color-main-orange-primary);
|
|
348
|
+
}
|
|
349
|
+
`,cancel:k`
|
|
328
350
|
background-color: var(--color-main-warning-state);
|
|
329
351
|
color: var(--color-main-white);
|
|
330
352
|
|
|
331
353
|
&:hover {
|
|
332
354
|
box-shadow: var(--shadow-hover-black-button);
|
|
333
355
|
}
|
|
334
|
-
|
|
356
|
+
|
|
357
|
+
&:focus {
|
|
358
|
+
outline-color: var(--color-main-warning-state);
|
|
359
|
+
}
|
|
360
|
+
`},jm=k`
|
|
335
361
|
background-color: var(--color-main-grey);
|
|
336
362
|
color: var(--color-dark-200);
|
|
337
363
|
cursor: not-allowed;
|
|
338
364
|
box-shadow: none;
|
|
339
|
-
`,
|
|
365
|
+
`,zm={sm:k`
|
|
340
366
|
padding: 0.375rem 0.75rem;
|
|
341
367
|
min-height: 2.75rem;
|
|
342
|
-
${
|
|
343
|
-
`,md:
|
|
368
|
+
${_[12]}
|
|
369
|
+
`,md:k`
|
|
344
370
|
padding: 0.625rem 1.25rem;
|
|
345
371
|
min-height: 3.175rem;
|
|
346
|
-
${
|
|
347
|
-
`,lg:
|
|
372
|
+
${_[16]}
|
|
373
|
+
`,lg:k`
|
|
348
374
|
padding: 0.75rem 1.5rem;
|
|
349
375
|
min-height: 3.5rem;
|
|
350
|
-
${
|
|
351
|
-
`},
|
|
376
|
+
${_[20]}
|
|
377
|
+
`},Hm=P.button`
|
|
352
378
|
borden: none;
|
|
353
379
|
border-radius: var(--border-radius-button);
|
|
354
380
|
transition: all 0.3s ease-in-out;
|
|
@@ -357,11 +383,1272 @@ See https://s-c.sh/2BAXzed for more info.`),window[Oe]+=1);const on=I.span`
|
|
|
357
383
|
align-items: center;
|
|
358
384
|
justify-content: center;
|
|
359
385
|
gap: 0.5rem;
|
|
386
|
+
outline: 2px solid transparent;
|
|
387
|
+
outline-offset: 2px;
|
|
388
|
+
|
|
389
|
+
${({$variant:e})=>_m[e]}
|
|
390
|
+
${({$size:e})=>zm[e]}
|
|
391
|
+
|
|
392
|
+
&:disabled {
|
|
393
|
+
${jm}
|
|
394
|
+
}
|
|
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`
|
|
396
|
+
background-color: var(--color-main-white);
|
|
397
|
+
box-shadow: var(--shadow-black-card);
|
|
398
|
+
border: none;
|
|
399
|
+
|
|
400
|
+
&:hover {
|
|
401
|
+
box-shadow: var(--shadow-hover-black-card);
|
|
402
|
+
background-color: var(--color-main-alternative-secondary);
|
|
403
|
+
}
|
|
404
|
+
`,flat:k`
|
|
405
|
+
background-color: var(--color-main-white);
|
|
406
|
+
box-shadow: none;
|
|
407
|
+
border: none;
|
|
408
|
+
|
|
409
|
+
&:hover {
|
|
410
|
+
background-color: var(--color-main-alternative-secondary);
|
|
411
|
+
}
|
|
412
|
+
`,info:k`
|
|
413
|
+
background-color: var(--color-main-white);
|
|
414
|
+
box-shadow: none;
|
|
415
|
+
|
|
416
|
+
&:hover {
|
|
417
|
+
box-shadow: none;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
&:active {
|
|
421
|
+
border: none;
|
|
422
|
+
}
|
|
423
|
+
`},bg={sm:k`
|
|
424
|
+
padding: 0.75rem;
|
|
425
|
+
gap: 0.5rem;
|
|
426
|
+
`,md:k`
|
|
427
|
+
padding: 1rem;
|
|
428
|
+
gap: 0.5rem;
|
|
429
|
+
`,lg:k`
|
|
430
|
+
padding: 1.25rem;
|
|
431
|
+
gap: 0.5rem;
|
|
432
|
+
`},wg=k`
|
|
433
|
+
transition: all 0.3s ease-in-out;
|
|
434
|
+
border-bottom: 2px solid transparent;
|
|
435
|
+
|
|
436
|
+
&:hover {
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
box-shadow: var(--shadow-hover-black-card);
|
|
439
|
+
background-color: var(--color-main-alternative-secondary);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&:active {
|
|
443
|
+
border-bottom: 2px solid var(--color-main-blue-primary);
|
|
444
|
+
}
|
|
445
|
+
`,xg=k`
|
|
446
|
+
opacity: 0.6;
|
|
447
|
+
cursor: not-allowed;
|
|
448
|
+
pointer-events: none;
|
|
449
|
+
|
|
450
|
+
&:hover {
|
|
451
|
+
transform: none;
|
|
452
|
+
box-shadow: inherit;
|
|
453
|
+
}
|
|
454
|
+
`,Sg=P.div`
|
|
455
|
+
display: flex;
|
|
456
|
+
flex-direction: column;
|
|
457
|
+
border-radius: var(--border-radius-card);
|
|
458
|
+
width: 100%;
|
|
459
|
+
height: 100%;
|
|
460
|
+
${({$variant:e})=>vg[e]}
|
|
461
|
+
${({$clickable:e})=>e&&wg}
|
|
462
|
+
${({$disabled:e})=>e&&xg}
|
|
463
|
+
${({$size:e})=>bg[e]}
|
|
464
|
+
`,Tg=({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(Sg,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:s,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s(a))}:void 0,...i,children:o})},Cg=P.div`
|
|
465
|
+
display: flex;
|
|
466
|
+
align-items: center;
|
|
467
|
+
align-self: stretch;
|
|
468
|
+
gap: 0.5rem;
|
|
469
|
+
`,Eg=({children:e,...t})=>m.jsx(Cg,{...t,children:e}),Pg=P.div`
|
|
470
|
+
flex: 1;
|
|
471
|
+
display: flex;
|
|
472
|
+
flex-direction: column;
|
|
473
|
+
`,kg=({children:e,...t})=>m.jsx(Pg,{...t,children:e}),Ag=P.div`
|
|
474
|
+
display: flex;
|
|
475
|
+
align-items: center;
|
|
476
|
+
align-self: stretch;
|
|
477
|
+
gap: 0.5rem;
|
|
478
|
+
`,Dg=({children:e,...t})=>m.jsx(Ag,{...t,children:e}),$g={sm:k`
|
|
479
|
+
${_[12]}
|
|
480
|
+
`,md:k`
|
|
481
|
+
${_[16]}
|
|
482
|
+
`,lg:k`
|
|
483
|
+
${_[18]}
|
|
484
|
+
`},Mg=P.div`
|
|
485
|
+
color: var(--color-main-warning-state);
|
|
486
|
+
${({$size:e})=>$g[e]}
|
|
487
|
+
font-weight: 400;
|
|
488
|
+
margin-top: 0.25rem;
|
|
489
|
+
display: flex;
|
|
490
|
+
align-items: flex-start;
|
|
491
|
+
gap: 0.25rem;
|
|
492
|
+
`,Uo=({children:e,className:t,size:n="md",...r})=>m.jsx(Mg,{className:t,$size:n,...r,children:e}),Vg={sm:k`
|
|
493
|
+
${_[16]}
|
|
494
|
+
`,md:k`
|
|
495
|
+
${_[24]}
|
|
496
|
+
`,lg:k`
|
|
497
|
+
${_[30]}
|
|
498
|
+
`},Ig=P.label`
|
|
499
|
+
transition: all 0.3s ease-out;
|
|
500
|
+
color: var(--color-main-blue-primary);
|
|
501
|
+
${({$size:e})=>Vg[e]}
|
|
502
|
+
${({$disabled:e})=>e&&Ng}
|
|
503
|
+
cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
|
|
504
|
+
`,Ng=k`
|
|
505
|
+
cursor: not-allowed;
|
|
506
|
+
opacity: 0.6;
|
|
507
|
+
`,Zn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>m.jsxs(Ig,{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:"*"})]}),Ql=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Lg=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:Ql.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})),Og=e=>e.map(t=>({value:t.value,label:t.label})),Fg={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})},ec=(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"}}}},ft=k`
|
|
508
|
+
display: flex;
|
|
509
|
+
justify-content: space-between;
|
|
510
|
+
align-items: center;
|
|
511
|
+
gap: 0.625rem;
|
|
512
|
+
width: 100%;
|
|
513
|
+
flex-shrink: 0;
|
|
514
|
+
outline: 2px solid transparent;
|
|
515
|
+
color: var(--color-main-blue-primary);
|
|
516
|
+
border: var(--border-input);
|
|
517
|
+
border-radius: var(--border-radius-article);
|
|
518
|
+
transition: all 0.3s ease-out;
|
|
519
|
+
background-color: var(--color-main-white);
|
|
520
|
+
position: relative;
|
|
521
|
+
outline: 2px solid transparent;
|
|
522
|
+
outline-offset: -1px;
|
|
523
|
+
|
|
524
|
+
&:hover:not(:focus-within) {
|
|
525
|
+
background-color: var(--color-main-alternative-secondary);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
&:focus-within {
|
|
529
|
+
border: var(--border-input-focus);
|
|
530
|
+
outline-color: var(--color-main-blue-primary);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
&:disabled {
|
|
534
|
+
cursor: not-allowed;
|
|
535
|
+
}
|
|
536
|
+
`,Jn=k`
|
|
537
|
+
width: 100%;
|
|
538
|
+
border: none;
|
|
539
|
+
outline: none;
|
|
540
|
+
background: transparent;
|
|
541
|
+
color: inherit;
|
|
542
|
+
font-size: inherit;
|
|
543
|
+
line-height: inherit;
|
|
544
|
+
|
|
545
|
+
&:disabled {
|
|
546
|
+
cursor: not-allowed;
|
|
547
|
+
opacity: 0.6;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
&::placeholder {
|
|
551
|
+
color: var(--color-dark-200);
|
|
552
|
+
}
|
|
553
|
+
`,ht=k`
|
|
554
|
+
border: var(--border-input-error) !important;
|
|
555
|
+
|
|
556
|
+
&:focus-within {
|
|
557
|
+
border: 1px solid var(--color-main-warning-state) !important;
|
|
558
|
+
outline: none;
|
|
559
|
+
}
|
|
560
|
+
`,Ze=k`
|
|
561
|
+
border: var(--border-input-disabled) !important;
|
|
562
|
+
cursor: not-allowed;
|
|
563
|
+
opacity: 0.6;
|
|
564
|
+
`,tc=k`
|
|
565
|
+
border: none;
|
|
566
|
+
border-top: 0;
|
|
567
|
+
border-right: 0;
|
|
568
|
+
border-left: 0;
|
|
569
|
+
border-bottom: var(--border-input);
|
|
570
|
+
border-radius: 0;
|
|
571
|
+
background-color: transparent;
|
|
572
|
+
outline: none;
|
|
573
|
+
|
|
574
|
+
transition:
|
|
575
|
+
border-bottom-color 0.3s ease-in-out,
|
|
576
|
+
background-color 0.3s ease-in-out;
|
|
577
|
+
|
|
578
|
+
&:hover:not(:focus-within) {
|
|
579
|
+
background-color: var(--color-main-alternative-secondary);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
&:focus-within {
|
|
583
|
+
border: none;
|
|
584
|
+
border-top: 0;
|
|
585
|
+
border-right: 0;
|
|
586
|
+
border-left: 0;
|
|
587
|
+
border-bottom: var(--border-input-focus);
|
|
588
|
+
outline: none;
|
|
589
|
+
}
|
|
590
|
+
`,an={sm:k`
|
|
591
|
+
padding: 0.5rem 1rem;
|
|
592
|
+
height: 2.5rem;
|
|
593
|
+
${_[18]}
|
|
594
|
+
`,md:k`
|
|
595
|
+
padding: 0.5rem 1rem;
|
|
596
|
+
height: 2.75rem;
|
|
597
|
+
${_[20]}
|
|
598
|
+
`,lg:k`
|
|
599
|
+
padding: 0.5rem 1rem;
|
|
600
|
+
height: 3rem;
|
|
601
|
+
${_[20]}
|
|
602
|
+
`},ln=k`
|
|
603
|
+
display: flex;
|
|
604
|
+
align-items: center;
|
|
605
|
+
justify-content: center;
|
|
606
|
+
flex-shrink: 0;
|
|
607
|
+
user-select: none;
|
|
608
|
+
`,Bg=P.div`
|
|
609
|
+
${ft}
|
|
610
|
+
${({$size:e})=>an[e]}
|
|
611
|
+
${({$hasError:e})=>e&&ht}
|
|
612
|
+
${({$disabled:e})=>e&&Ze}
|
|
613
|
+
${({$isFlushed:e})=>e&&tc}
|
|
614
|
+
`,Rg=P.input`
|
|
615
|
+
${Jn}
|
|
616
|
+
`,Wo=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(J,{component:i,size:a,color:n?"var(--color-dark-200)":l}),m.jsx(Rg,{ref:c,type:r,$hasError:t,disabled:n,...d}),s&&m.jsx(J,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));Wo.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"})),jg=({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 15.0006L7.75732 10.758L9.17154 9.34375L12 12.1722L14.8284 9.34375L16.2426 10.758L12 15.0006Z"})),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"})),nc=({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"})),rc=({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`
|
|
617
|
+
${ft}
|
|
618
|
+
${({$size:e})=>an[e??"md"]}
|
|
619
|
+
${({$hasError:e})=>e&&ht}
|
|
620
|
+
${({$disabled:e})=>e&&Ze}
|
|
621
|
+
position: relative;
|
|
622
|
+
`,Zg=P.input`
|
|
623
|
+
${Jn}
|
|
624
|
+
`,Jg=P.span`
|
|
625
|
+
${ln}
|
|
626
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
627
|
+
`,oc=({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(J,{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(J,{component:u?Kg:Yg,size:n,color:s?"var(--color-dark-200)":r})})]})},sc=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 sc(t)},o0=P.div`
|
|
628
|
+
position: relative;
|
|
629
|
+
width: 100%;
|
|
630
|
+
`,s0=P.div`
|
|
631
|
+
${ln}
|
|
632
|
+
position: absolute;
|
|
633
|
+
right: 1rem;
|
|
634
|
+
top: 50%;
|
|
635
|
+
transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
|
|
636
|
+
pointer-events: none;
|
|
637
|
+
transition: transform 0.3s ease-out;
|
|
638
|
+
`,i0=P.button`
|
|
639
|
+
${ft}
|
|
640
|
+
${({$size:e})=>an[e]}
|
|
641
|
+
${({$hasError:e})=>e&&ht}
|
|
642
|
+
${({$disabled:e})=>e&&Ze}
|
|
643
|
+
|
|
644
|
+
width: 100%;
|
|
645
|
+
text-align: left;
|
|
646
|
+
appearance: none;
|
|
647
|
+
cursor: pointer;
|
|
648
|
+
padding-right: 2.5rem;
|
|
649
|
+
|
|
650
|
+
color: ${({$hasValue:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-200)"};
|
|
651
|
+
|
|
652
|
+
transition:
|
|
653
|
+
background-color 0.3s ease-out,
|
|
654
|
+
border-color 0.3s ease-out,
|
|
655
|
+
transform 0.3s ease-out;
|
|
656
|
+
|
|
657
|
+
&:hover {
|
|
658
|
+
background-color: var(--color-main-alternative-secondary);
|
|
659
|
+
}
|
|
660
|
+
`,a0=P(dt.ul)`
|
|
661
|
+
position: absolute;
|
|
662
|
+
z-index: 50;
|
|
663
|
+
left: 0;
|
|
664
|
+
right: 0;
|
|
665
|
+
margin-top: 0.25rem;
|
|
666
|
+
max-height: 16rem;
|
|
667
|
+
overflow: hidden;
|
|
668
|
+
|
|
669
|
+
background-color: var(--color-main-white);
|
|
670
|
+
border: var(--border-input);
|
|
671
|
+
border-radius: var(--border-radius-article);
|
|
672
|
+
box-shadow: var(--shadow-black-card);
|
|
673
|
+
|
|
674
|
+
padding: 0.25rem;
|
|
675
|
+
list-style: none;
|
|
676
|
+
transform-origin: top;
|
|
677
|
+
|
|
678
|
+
&:focus-visible {
|
|
679
|
+
border: var(--border-input-focus);
|
|
680
|
+
outline: none;
|
|
681
|
+
}
|
|
682
|
+
`,l0=P.div`
|
|
683
|
+
max-height: 15rem;
|
|
684
|
+
overflow-y: auto;
|
|
685
|
+
outline: none;
|
|
686
|
+
`,c0=P.li`
|
|
687
|
+
display: flex;
|
|
688
|
+
align-items: center;
|
|
689
|
+
gap: 0.5rem;
|
|
690
|
+
|
|
691
|
+
padding: 0.5rem 1rem;
|
|
692
|
+
border-radius: 0.5rem;
|
|
693
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
694
|
+
user-select: none;
|
|
695
|
+
|
|
696
|
+
${({$size:e})=>u0[e??"md"]}
|
|
697
|
+
|
|
698
|
+
background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
|
|
699
|
+
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
700
|
+
`,u0={sm:k`
|
|
701
|
+
${_[16]}
|
|
702
|
+
`,md:k`
|
|
703
|
+
${_[18]}
|
|
704
|
+
`,lg:k`
|
|
705
|
+
${_[18]}
|
|
706
|
+
`},Yo=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(M=>M.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 M=X=>{g.current&&(g.current.contains(X.target)||C(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[b]),h.useEffect(()=>{b||requestAnimationFrame(()=>{p?.current?.focus?.(),v.current?.focus()})},[b,p]);const D=M=>{M.disabled||(i?.(M),s&&s(t0(M.value)),C(!1),S(-1))},L=M=>{n||(M.key==="ArrowDown"||M.key==="ArrowUp"?(M.preventDefault(),C(!0)):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),C(X=>!X)))},G=M=>{if(M.key==="Escape"){M.preventDefault(),C(!1),S(-1);return}if(M.key==="ArrowDown"||M.key==="ArrowUp"){M.preventDefault();const X=M.key==="ArrowDown"?1:-1;S(e0(y,X,r))}else if(M.key==="Enter"){M.preventDefault();const X=r[y];X&&!X.disabled&&D(X)}else M.key==="Home"?(M.preventDefault(),S(sc(r))):M.key==="End"&&(M.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:M=>{v.current=M,typeof p=="function"?p(M):p&&"current"in p&&(p.current=M)},onClick:()=>!n&&C(M=>!M),onKeyDown:L,"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(J,{component:Hg,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),m.jsx(_n,{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:G,children:m.jsx(l0,{ref:x,className:c,children:r.map((M,X)=>{const te=X===y;return m.jsx(c0,{id:`${T}-option-${X}`,className:f,role:"option",$size:e,"aria-selected":a===M.value,$active:te,$disabled:M.disabled,onMouseEnter:()=>{!M.disabled&&b&&S(X)},onClick:()=>D(M),children:M.label},M.value)})})})})]})});Yo.displayName="SelectInput";const d0=P.textarea`
|
|
707
|
+
${ft}
|
|
708
|
+
${({$size:e})=>f0[e]}
|
|
709
|
+
${({$hasError:e})=>e&&ht}
|
|
710
|
+
${({$disabled:e})=>e&&Ze}
|
|
711
|
+
${_[20]}
|
|
712
|
+
|
|
713
|
+
resize: ${({$resize:e})=>e};
|
|
714
|
+
|
|
715
|
+
${({$autoResize:e})=>e&&`
|
|
716
|
+
overflow: auto;
|
|
717
|
+
resize: none;
|
|
718
|
+
`}
|
|
719
|
+
|
|
720
|
+
&::placeholder {
|
|
721
|
+
color: var(--color-dark-200);
|
|
722
|
+
opacity: 1;
|
|
723
|
+
}
|
|
724
|
+
`,f0={sm:`
|
|
725
|
+
${_[20]}
|
|
726
|
+
height: 6rem;
|
|
727
|
+
max-height: 12rem;
|
|
728
|
+
padding: 1rem 1.25rem;
|
|
729
|
+
`,md:`
|
|
730
|
+
${_[24]}
|
|
731
|
+
height: 8rem;
|
|
732
|
+
max-height: 16rem;
|
|
733
|
+
padding: 1rem 1.25rem;
|
|
734
|
+
`,lg:`
|
|
735
|
+
${_[24]}
|
|
736
|
+
height:12rem;
|
|
737
|
+
max-height: 20rem;
|
|
738
|
+
padding: 1rem 1.25rem;
|
|
739
|
+
`},Ko=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})});Ko.displayName="TextAreaInput";const h0=P.div`
|
|
740
|
+
${ft}
|
|
741
|
+
${({$size:e})=>an[e??"md"]}
|
|
742
|
+
`,p0=P.input`
|
|
743
|
+
${Jn}
|
|
744
|
+
`,ic=({size:e="md",leftIcon:t,rightIcon:n=rc,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(J,{component:t,size:r,color:o}),m.jsx(p0,{placeholder:i,onChange:l}),n?m.jsx(J,{component:n,size:r,color:o}):m.jsx(J,{component:rc,size:r,color:o})]})},m0=P.div`
|
|
745
|
+
position: relative;
|
|
746
|
+
`,g0=P.input`
|
|
747
|
+
position: absolute;
|
|
748
|
+
height: 1.5rem;
|
|
749
|
+
width: 1.5rem;
|
|
750
|
+
inset: 0;
|
|
751
|
+
cursor: pointer;
|
|
752
|
+
opacity: 0;
|
|
753
|
+
transition: all 0.3s ease-out;
|
|
754
|
+
|
|
755
|
+
&:disabled {
|
|
756
|
+
cursor: not-allowed;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
&:focus-visible + div {
|
|
760
|
+
outline-color: var(--color-main-orange-primary);
|
|
761
|
+
outline-offset: 2px;
|
|
762
|
+
}
|
|
763
|
+
`,y0=P.div`
|
|
764
|
+
height: 1.5rem;
|
|
765
|
+
width: 1.5rem;
|
|
766
|
+
border: 2px solid;
|
|
767
|
+
border-radius: 0.25rem;
|
|
768
|
+
display: flex;
|
|
769
|
+
align-items: center;
|
|
770
|
+
justify-content: center;
|
|
771
|
+
transition: all 0.3s ease-out;
|
|
772
|
+
cursor: pointer;
|
|
773
|
+
outline: 2px solid transparent;
|
|
774
|
+
outline-offset: 2px;
|
|
775
|
+
border: 2px solid var(--color-main-input-borders);
|
|
776
|
+
background-color: white;
|
|
777
|
+
|
|
778
|
+
&:hover {
|
|
779
|
+
border-color: var(--color-main-orange-primary);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
${({$hasError:e})=>e&&ht}
|
|
783
|
+
${({$disabled:e})=>e&&Ze}
|
|
784
|
+
${({$checked:e})=>e&&v0}
|
|
785
|
+
`,v0=k`
|
|
786
|
+
background-color: var(--color-main-orange-primary);
|
|
787
|
+
border-color: var(--color-main-orange-primary);
|
|
788
|
+
`,b0=P.svg`
|
|
789
|
+
height: 1.5rem;
|
|
790
|
+
width: 1.5rem;
|
|
791
|
+
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
|
|
792
|
+
fill: none;
|
|
793
|
+
stroke: currentColor;
|
|
794
|
+
`,w0=P.span`
|
|
795
|
+
display: block;
|
|
796
|
+
width: 60%;
|
|
797
|
+
height: 2px;
|
|
798
|
+
background-color: white;
|
|
799
|
+
border-radius: 1px;
|
|
800
|
+
`,Go=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,{})]})]})});Go.displayName="CheckboxInput";const ac=({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(Zn,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},x0=P.section`
|
|
801
|
+
display: flex;
|
|
802
|
+
align-items: center;
|
|
803
|
+
justify-content: center;
|
|
804
|
+
gap: 1rem;
|
|
805
|
+
`,Qn=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(Go,{ref:f,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:u,id:g,...c}),t&&m.jsx(ac,{size:e,disabled:i,htmlFor:g,onLabelClick:a,className:d,children:t})]})});Qn.displayName="Checkbox";const S0=P.div`
|
|
806
|
+
position: relative;
|
|
807
|
+
display: inline-block;
|
|
808
|
+
`,T0=P.input`
|
|
809
|
+
${ft}
|
|
810
|
+
text-align: center;
|
|
811
|
+
padding: 0;
|
|
812
|
+
|
|
813
|
+
&::-webkit-outer-spin-button,
|
|
814
|
+
&::-webkit-inner-spin-button {
|
|
815
|
+
-webkit-appearance: none;
|
|
816
|
+
margin: 0;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
&[type='number'] {
|
|
820
|
+
-moz-appearance: textfield;
|
|
821
|
+
}
|
|
822
|
+
${({$size:e})=>E0[e]}
|
|
823
|
+
${({$variant:e})=>e&&C0[e??"outlined"]}
|
|
824
|
+
${({$hasError:e})=>e&&ht}
|
|
825
|
+
${({$disabled:e})=>e&&Ze}
|
|
826
|
+
|
|
827
|
+
&:focus {
|
|
828
|
+
border: 2px solid var(--color-main-blue-primary);
|
|
829
|
+
}
|
|
830
|
+
`,C0={outlined:`
|
|
831
|
+
background-color: var(--color-main-white);
|
|
832
|
+
border: 2px solid var(--color-main-input-borders);
|
|
833
|
+
|
|
834
|
+
&:hover:not(:focus) {
|
|
835
|
+
border-color: var(--color-main-blue-primary);
|
|
836
|
+
}
|
|
837
|
+
`,filled:`
|
|
838
|
+
background-color: var(--color-main-alternative-secondary);
|
|
839
|
+
border: 2px solid transparent;
|
|
840
|
+
|
|
841
|
+
&:hover:not(:focus) {
|
|
842
|
+
background-color: var(--color-main-alternative-secondary);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
&:focus {
|
|
846
|
+
background-color: var(--color-main-white);
|
|
847
|
+
border: 2px solid var(--color-main-blue-primary);
|
|
848
|
+
}
|
|
849
|
+
`},E0={sm:`
|
|
850
|
+
padding: 0.375rem;
|
|
851
|
+
width: 2.5rem;
|
|
852
|
+
height: 2.5rem;
|
|
853
|
+
${_[24]}
|
|
854
|
+
`,md:`
|
|
855
|
+
padding: 0.625rem;
|
|
856
|
+
width: 3rem;
|
|
857
|
+
height: 3.5rem;
|
|
858
|
+
${_[30]}
|
|
859
|
+
`,lg:`
|
|
860
|
+
padding: 0.75rem;
|
|
861
|
+
width: 3.5rem;
|
|
862
|
+
height: 4rem;
|
|
863
|
+
${_[40]}
|
|
864
|
+
`},Xo=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})})});Xo.displayName="PinInput";const lc=(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)},cc=(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()},uc=(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)},dc=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
|
+
display: flex;
|
|
866
|
+
gap: 8px;
|
|
867
|
+
align-items: center;
|
|
868
|
+
`,qo=({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(()=>dc(e),[e]);return m.jsx(k0,{className:a,children:Array.from({length:e},(f,p)=>m.jsx(Xo,{className:l,size:t,variant:n,hasError:r,value:u[p],onChange:g=>lc(g,p,u,d,c,e,o,i,s),onKeyDown:g=>cc(g,p,u,c,d,i),onPaste:g=>uc(g,p,u,d,c,e,o,i,s),ref:c[p]},p))})};qo.displayName="PinInputGroup";const A0=P.div`
|
|
869
|
+
position: relative;
|
|
870
|
+
`,D0=P.input`
|
|
871
|
+
position: absolute;
|
|
872
|
+
height: 1.5rem;
|
|
873
|
+
width: 1.5rem;
|
|
874
|
+
inset: 0;
|
|
875
|
+
cursor: pointer;
|
|
876
|
+
opacity: 0;
|
|
877
|
+
border: 2px solid transparent;
|
|
878
|
+
|
|
879
|
+
&:disabled {
|
|
880
|
+
cursor: not-allowed;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
&:focus-visible + div {
|
|
884
|
+
outline-color: var(--color-main-orange-primary);
|
|
885
|
+
outline-offset: 2px;
|
|
886
|
+
}
|
|
887
|
+
`,$0=k`
|
|
888
|
+
border-color: var(--color-main-orange-primary);
|
|
889
|
+
`,M0=P.div`
|
|
890
|
+
height: 1.5rem;
|
|
891
|
+
width: 1.5rem;
|
|
892
|
+
border: 2px solid var(--color-main-input-borders);
|
|
893
|
+
border-radius: 100%;
|
|
894
|
+
display: flex;
|
|
895
|
+
align-items: center;
|
|
896
|
+
justify-content: center;
|
|
897
|
+
transition: all 0.3s ease-out;
|
|
898
|
+
cursor: pointer;
|
|
899
|
+
background-color: white;
|
|
900
|
+
outline: 2px solid transparent;
|
|
901
|
+
outline-offset: 2px;
|
|
902
|
+
|
|
903
|
+
&:hover {
|
|
904
|
+
border-color: var(--color-main-orange-primary);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
${({$hasError:e})=>e&&`
|
|
908
|
+
border-color: var(--color-main-warning-state);
|
|
909
|
+
`}
|
|
910
|
+
${({$disabled:e})=>e&&`
|
|
911
|
+
${Ze}
|
|
912
|
+
border: 2px solid var(--color-dark-200) !important;
|
|
913
|
+
`}
|
|
914
|
+
${({$checked:e})=>e&&$0}
|
|
915
|
+
`,V0=P.span`
|
|
916
|
+
display: block;
|
|
917
|
+
height: 0.625rem;
|
|
918
|
+
width: 0.625rem;
|
|
919
|
+
border-radius: 100%;
|
|
920
|
+
transition: all 0.3s ease-out;
|
|
921
|
+
background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
|
|
922
|
+
opacity: ${({$checked:e})=>e?1:0};
|
|
923
|
+
transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
|
|
924
|
+
`,Zo=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})})]})});Zo.displayName="RadioInputDot";const Jo=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>m.jsx(Zn,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});Jo.displayName="RadioInputLabel";const I0=P.section`
|
|
925
|
+
display: flex;
|
|
926
|
+
align-items: center;
|
|
927
|
+
justify-content: center;
|
|
928
|
+
gap: 1rem;
|
|
929
|
+
`,Qo=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(Zo,{ref:d,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:f,...u}),t&&m.jsx(Jo,{size:e,disabled:o,htmlFor:f,className:l,children:t})]})});Qo.displayName="RadioInput";var N0=process.env.NODE_ENV==="production";function Bt(e,t){if(!N0){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var er={exports:{}},Y={};/** @license React v16.13.1
|
|
930
|
+
* react-is.production.min.js
|
|
931
|
+
*
|
|
932
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
933
|
+
*
|
|
934
|
+
* This source code is licensed under the MIT license found in the
|
|
935
|
+
* LICENSE file in the root directory of this source tree.
|
|
936
|
+
*/var fc;function L0(){if(fc)return Y;fc=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 Y.AsyncMode=l,Y.ConcurrentMode=u,Y.ContextConsumer=a,Y.ContextProvider=s,Y.Element=t,Y.ForwardRef=d,Y.Fragment=r,Y.Lazy=g,Y.Memo=p,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=c,Y.isAsyncMode=function(y){return C(y)||b(y)===l},Y.isConcurrentMode=C,Y.isContextConsumer=function(y){return b(y)===a},Y.isContextProvider=function(y){return b(y)===s},Y.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Y.isForwardRef=function(y){return b(y)===d},Y.isFragment=function(y){return b(y)===r},Y.isLazy=function(y){return b(y)===g},Y.isMemo=function(y){return b(y)===p},Y.isPortal=function(y){return b(y)===n},Y.isProfiler=function(y){return b(y)===i},Y.isStrictMode=function(y){return b(y)===o},Y.isSuspense=function(y){return b(y)===c},Y.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)},Y.typeOf=b,Y}var K={};/** @license React v16.13.1
|
|
937
|
+
* react-is.development.js
|
|
938
|
+
*
|
|
939
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
940
|
+
*
|
|
941
|
+
* This source code is licensed under the MIT license found in the
|
|
942
|
+
* LICENSE file in the root directory of this source tree.
|
|
943
|
+
*/var hc;function O0(){return hc||(hc=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($){return typeof $=="string"||typeof $=="function"||$===r||$===u||$===i||$===o||$===c||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===p||$.$$typeof===s||$.$$typeof===a||$.$$typeof===d||$.$$typeof===x||$.$$typeof===v||$.$$typeof===T||$.$$typeof===w)}function C($){if(typeof $=="object"&&$!==null){var cn=$.$$typeof;switch(cn){case t:var Je=$.type;switch(Je){case l:case u:case r:case i:case o:case c:return Je;default:var nr=Je&&Je.$$typeof;switch(nr){case a:case d:case g:case p:case s:return nr;default:return cn}}case n:return cn}}}var y=l,S=u,E=a,D=s,L=t,G=d,M=r,X=g,te=p,ce=n,ve=i,R=o,N=c,U=!1;function B($){return U||(U=!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.")),H($)||C($)===l}function H($){return C($)===u}function j($){return C($)===a}function Q($){return C($)===s}function I($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function q($){return C($)===d}function Z($){return C($)===r}function le($){return C($)===g}function Se($){return C($)===p}function z($){return C($)===n}function me($){return C($)===i}function _e($){return C($)===o}function Ie($){return C($)===c}K.AsyncMode=y,K.ConcurrentMode=S,K.ContextConsumer=E,K.ContextProvider=D,K.Element=L,K.ForwardRef=G,K.Fragment=M,K.Lazy=X,K.Memo=te,K.Portal=ce,K.Profiler=ve,K.StrictMode=R,K.Suspense=N,K.isAsyncMode=B,K.isConcurrentMode=H,K.isContextConsumer=j,K.isContextProvider=Q,K.isElement=I,K.isForwardRef=q,K.isFragment=Z,K.isLazy=le,K.isMemo=Se,K.isPortal=z,K.isProfiler=me,K.isStrictMode=_e,K.isSuspense=Ie,K.isValidElementType=b,K.typeOf=C})()),K}var pc;function F0(){return pc||(pc=1,process.env.NODE_ENV==="production"?er.exports=L0():er.exports=O0()),er.exports}var es,mc;function B0(){if(mc)return es;mc=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 es=p,es}B0();function ts(){return ts=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},ts.apply(this,arguments)}function R0(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 tr=h.createContext(void 0);tr.displayName="FormikContext",tr.Provider,tr.Consumer;function gc(){var e=h.useContext(tr);return e||(process.env.NODE_ENV!=="production"?Bt(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Bt()),e}var _0=function(t){return t!==null&&typeof t=="object"};function j0(e){var t=gc(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=_0(e),l=a?e:{name:e},u=l.name,d=l.validate;h.useEffect(function(){return u&&i(u,{validate:d}),function(){u&&s(u)}},[i,s,u,d]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?Bt(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):Bt())),u||(process.env.NODE_ENV!=="production"?Bt(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):Bt());var c=h.useMemo(function(){return o(u)},[o,u]);return[n(l),r(u),c]}var z0=h.forwardRef(function(e,t){var n=e.action,r=R0(e,["action"]),o=n??"#",i=gc(),s=i.handleReset,a=i.handleSubmit;return h.createElement("form",ts({onSubmit:a,ref:t,onReset:s,action:o},r))});z0.displayName="Form";const yc=P.div`
|
|
944
|
+
display: flex;
|
|
945
|
+
flex-direction: column;
|
|
946
|
+
gap: 0.5rem;
|
|
947
|
+
width: 100%;
|
|
948
|
+
`,H0=P.div`
|
|
949
|
+
display: flex;
|
|
950
|
+
flex-direction: column;
|
|
951
|
+
gap: 0.75rem;
|
|
952
|
+
`,U0=({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:D,onChange:L,...G})=>{const[M,X,te]=j0(t),ce=!!(X.touched&&X.error),ve=ce?X.error:void 0,R=()=>{const N={field:M,id:e?.toString?.()||t,name:t,className:w,hasError:ce,disabled:s,size:o,placeholder:i,type:r,leftIcon:T,rightIcon:b,iconSize:C,iconColor:y,onChange:L,...G},U=ec(r,N,{options:l,onOptionSelect:H=>{te.setValue(H.value),S?.(H)}},{label:n,checked:u,checkboxLabel:d},{options:l,radioName:c,onRadioChange:E},{pinLength:f,pinType:p,onPinComplete:D},{rows:G.rows||4},{onSearch:G.onSearch}),B={...U.props,placeholder:U.props.placeholder||i,required:a,"aria-required":a||void 0,"aria-invalid":ce||void 0,"aria-describedby":ce?`${e?.toString?.()||t}-error`:void 0};switch(U.component){case"textarea":{const j=Q=>{L?L(Q):M.onChange(Q)};return m.jsx(Ko,{...B,onChange:j})}case"select":return m.jsx(Yo,{...B,placeholder:B.placeholder||"Selecciona una opción"});case"checkbox":return m.jsx(Qn,{...B,onChange:j=>te.setValue(j.target.checked)});case"radio":const H=l;return m.jsx(H0,{children:H.map(j=>m.jsx(Qo,{name:c||t,value:j.value,label:j.label,size:o,hasError:ce,disabled:s,checked:M.value===j.value,onChange:Q=>{const I=Q.target.value,q=typeof j.value=="number"?Number(I):I;te.setValue(q),E?.(Q)}},j.value))});case"pin":return m.jsx(qo,{...B,onChange:j=>te.setValue(j),onComplete:j=>{te.setValue(j),D?.(j)}});case"password":{const{rightIcon:j,type:Q,...I}=B;return m.jsx(oc,{...I,onChange:L||M.onChange})}case"search":return m.jsx(ic,{...B});default:return m.jsx(Wo,{...B,onChange:L||M.onChange})}};return r==="checkbox"?m.jsxs(yc,{className:g,children:[R(),ce&&m.jsx(Uo,{id:`${e?.toString?.()||t}-error`,size:o,className:v,children:ve})]}):m.jsxs(yc,{className:g,children:[n&&m.jsx(Zn,{htmlFor:e?.toString?.()||t,size:o,required:a,disabled:s,className:x,children:n}),R(),ce&&m.jsx(Uo,{id:`${e?.toString?.()||t}-error`,size:o,className:v,children:ve})]})},W0={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},vc={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},Y0={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"}},K0=P(dt.div)`
|
|
953
|
+
position: fixed;
|
|
954
|
+
inset: 0;
|
|
955
|
+
z-index: 50;
|
|
956
|
+
display: flex;
|
|
957
|
+
align-items: center;
|
|
958
|
+
justify-content: center;
|
|
959
|
+
padding: 1rem;
|
|
960
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
961
|
+
backdrop-filter: blur(2px);
|
|
962
|
+
|
|
963
|
+
@media (max-width: 768px) {
|
|
964
|
+
padding: 0.5rem;
|
|
965
|
+
}
|
|
966
|
+
`,G0=P(dt.div)`
|
|
967
|
+
position: relative;
|
|
968
|
+
display: flex;
|
|
969
|
+
flex-direction: column;
|
|
970
|
+
background-color: var(--color-main-white);
|
|
971
|
+
border-radius: var(--border-radius-article);
|
|
972
|
+
box-shadow: var(--shadow-black-card);
|
|
973
|
+
max-height: 90vh;
|
|
974
|
+
width: 100%;
|
|
975
|
+
overflow: hidden;
|
|
976
|
+
padding: 0.875rem;
|
|
977
|
+
|
|
978
|
+
${({$size:e})=>{switch(e){case"sm":return"max-width: 400px;";case"md":return"max-width: 500px;";case"lg":return"max-width: 700px;";default:return"max-width: 500px;"}}}
|
|
979
|
+
|
|
980
|
+
${({$fullScreen:e})=>e&&`
|
|
981
|
+
@media (max-width: 768px) {
|
|
982
|
+
max-width: 100%;
|
|
983
|
+
max-height: 100vh;
|
|
984
|
+
border-radius: 0;
|
|
985
|
+
margin: 0;
|
|
986
|
+
}
|
|
987
|
+
`}
|
|
988
|
+
|
|
989
|
+
&:focus-visible {
|
|
990
|
+
outline: none;
|
|
991
|
+
box-shadow: var(--shadow-hover-black-card);
|
|
992
|
+
}
|
|
993
|
+
`,X0=P.button`
|
|
994
|
+
position: absolute;
|
|
995
|
+
top: 1rem;
|
|
996
|
+
right: 1rem;
|
|
997
|
+
background: none;
|
|
998
|
+
border: none;
|
|
999
|
+
cursor: pointer;
|
|
1000
|
+
padding: 0.5rem;
|
|
1001
|
+
z-index: 10;
|
|
1002
|
+
transition: all 0.2s ease-in-out;
|
|
1003
|
+
|
|
1004
|
+
&:hover {
|
|
1005
|
+
transform: scale(1.1);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
&:focus-visible {
|
|
1009
|
+
transform: scale(1.1);
|
|
1010
|
+
outline: none;
|
|
1011
|
+
}
|
|
1012
|
+
`,bc=({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],D=S[S.length-1],L=document.activeElement;!y.shiftKey&&L===D?(y.preventDefault(),E.focus()):y.shiftKey&&L===E&&(y.preventDefault(),D.focus())};return document.addEventListener("keydown",C),()=>{window.clearTimeout(T),document.removeEventListener("keydown",C),p.current&&p.current.focus()}},[e]);const w=m.jsx(_n,{children:e&&m.jsx(K0,{...vc,onClick:g,children:m.jsxs(G0,{...W0,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(X0,{className:`${ln} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:m.jsx(J,{component:Ug,size:"sm"})}),n]})})});return typeof document>"u"?w:fs.createPortal(w,document.body)},q0=P.div`
|
|
1013
|
+
display: flex;
|
|
1014
|
+
align-items: center;
|
|
1015
|
+
justify-content: space-between;
|
|
1016
|
+
width: 100%;
|
|
1017
|
+
|
|
1018
|
+
${({$variant:e})=>e==="compact"?`
|
|
1019
|
+
padding: 1rem 1.5rem;
|
|
1020
|
+
gap: 0.75rem;
|
|
1021
|
+
`:`
|
|
1022
|
+
padding: 1.5rem 1.5rem 1rem 1.5rem;
|
|
1023
|
+
gap: 1rem;
|
|
1024
|
+
`}
|
|
1025
|
+
|
|
1026
|
+
${({$showDivider:e})=>e&&`
|
|
1027
|
+
border-bottom: 1px solid var(--color-main-light-borders);
|
|
1028
|
+
margin-bottom: 0;
|
|
1029
|
+
`}
|
|
1030
|
+
|
|
1031
|
+
color: var(--color-main-blue-primary);
|
|
1032
|
+
|
|
1033
|
+
& > * {
|
|
1034
|
+
margin: 0;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
& > :first-child {
|
|
1038
|
+
flex: 1;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
& > :last-child:not(:first-child) {
|
|
1042
|
+
flex-shrink: 0;
|
|
1043
|
+
margin-left: auto;
|
|
1044
|
+
}
|
|
1045
|
+
`,wc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>m.jsx(q0,{$showDivider:e,$variant:t,className:r,...o,children:n}),Z0=P.div`
|
|
1046
|
+
position: relative;
|
|
1047
|
+
display: flex;
|
|
1048
|
+
flex-direction: column;
|
|
1049
|
+
gap: 0.75rem;
|
|
1050
|
+
overflow: auto;
|
|
1051
|
+
max-height: inherit;
|
|
1052
|
+
|
|
1053
|
+
${({$padded:e})=>e?"padding: 1rem 1.5rem;":"padding: 0 1.5rem;"}
|
|
1054
|
+
|
|
1055
|
+
${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
|
|
1056
|
+
|
|
1057
|
+
${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
|
|
1058
|
+
`,xc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>m.jsx(Z0,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),J0=P.div`
|
|
1059
|
+
display: flex;
|
|
1060
|
+
align-items: center;
|
|
1061
|
+
width: 100%;
|
|
1062
|
+
gap: ${({$gap:e})=>`${e/16}rem`};
|
|
1063
|
+
padding: 1rem 1.5rem 1.5rem 1.5rem;
|
|
1064
|
+
|
|
1065
|
+
${({$align:e})=>e==="start"?"justify-content: flex-start;":e==="center"?"justify-content: center;":e==="space-between"?"justify-content: space-between;":"justify-content: flex-end;"}
|
|
1066
|
+
|
|
1067
|
+
${({$showDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
|
|
1068
|
+
|
|
1069
|
+
${({$sticky:e})=>e&&`
|
|
1070
|
+
position: sticky;
|
|
1071
|
+
bottom: 0;
|
|
1072
|
+
background: var(--color-main-white);
|
|
1073
|
+
`}
|
|
1074
|
+
`,Sc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>m.jsx(J0,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),Q0=({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(bc,{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(wc,{showDivider:!0,className:w,children:m.jsx(Dn,{id:"tac-title",size:20,children:r})}),m.jsxs(xc,{padded:!0,showBottomDivider:!0,className:x,children:[o&&m.jsx($n,{id:"tac-subtitle",size:16,children:o}),i,s]}),m.jsxs(Sc,{showDivider:!0,align:"space-between",className:v,children:[m.jsx(Qn,{label:a,checked:C,onChange:E=>S(E.target.checked)}),m.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[m.jsx(zo,{variant:"secondary",onClick:n,children:u}),m.jsx(zo,{variant:"primary",onClick:t,disabled:!C,children:l})]})]})]})},ns=h.createContext(void 0),Tc=({children:e})=>{const[t,n]=h.useState(!1),[r,o]=h.useState(!1);return m.jsx(ns.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},Cc=()=>{const e=h.useContext(ns);if(!e)throw new Error("useSidebar debe usarse dentro de SidebarProvider");return e},rs=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),ey=P.button`
|
|
1075
|
+
width: 100%;
|
|
1076
|
+
display: flex;
|
|
1077
|
+
align-items: center;
|
|
1078
|
+
justify-content: space-between;
|
|
1079
|
+
outline: 2px solid transparent;
|
|
1080
|
+
|
|
1081
|
+
// Level-based padding
|
|
1082
|
+
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
1083
|
+
|
|
1084
|
+
// Indentation for nested levels
|
|
1085
|
+
padding-left: ${({$level:e})=>e>0?`${.75+e*1.15}rem`:"0.875rem"};
|
|
1086
|
+
|
|
1087
|
+
// Background and border styles based on state
|
|
1088
|
+
background: ${({$active:e,$expanded:t,$level:n})=>e?n>0?"var(--color-light-200)":"var(--color-light-300)":t&&n===0?"var(--color-light-200)":"transparent"};
|
|
1089
|
+
|
|
1090
|
+
border: none;
|
|
1091
|
+
cursor: pointer;
|
|
1092
|
+
transition:
|
|
1093
|
+
background-color 0.3s ease-out,
|
|
1094
|
+
outline 0.3s ease-out;
|
|
1095
|
+
|
|
1096
|
+
border-left: 3px solid
|
|
1097
|
+
${({$active:e,$expanded:t})=>e||t?"var(--color-main-blue-primary)":"transparent"};
|
|
1098
|
+
|
|
1099
|
+
&:hover {
|
|
1100
|
+
background-color: ${({$level:e})=>e>0?"var(--color-light-200)":"var(--color-light-300)"};
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
&:focus-visible {
|
|
1104
|
+
outline-color: var(--color-main-blue-primary);
|
|
1105
|
+
outline-offset: -2px;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1109
|
+
`,ty=P.span`
|
|
1110
|
+
display: inline-flex;
|
|
1111
|
+
align-items: center;
|
|
1112
|
+
gap: 0.75rem;
|
|
1113
|
+
min-width: 0;
|
|
1114
|
+
`,ny=P($n)`
|
|
1115
|
+
font-weight: ${({$level:e})=>e===0?600:500};
|
|
1116
|
+
color: var(--color-main-blue-primary);
|
|
1117
|
+
white-space: nowrap;
|
|
1118
|
+
overflow: hidden;
|
|
1119
|
+
text-overflow: ellipsis;
|
|
1120
|
+
`,ry=P(dt.div)`
|
|
1121
|
+
background-color: transparent;
|
|
1122
|
+
overflow: hidden;
|
|
1123
|
+
will-change: height, opacity, transform;
|
|
1124
|
+
`,oy=P.div`
|
|
1125
|
+
width: 100%;
|
|
1126
|
+
${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
|
|
1127
|
+
`,sy=P.span`
|
|
1128
|
+
width: 0.625rem;
|
|
1129
|
+
height: 0.125rem;
|
|
1130
|
+
background: var(--color-main-blue-primary);
|
|
1131
|
+
border-radius: 1px;
|
|
1132
|
+
flex: 0 0 auto;
|
|
1133
|
+
`,iy=P.div`
|
|
1134
|
+
${ln}
|
|
1135
|
+
transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
|
|
1136
|
+
pointer-events: none;
|
|
1137
|
+
transition: transform 0.3s ease-out;
|
|
1138
|
+
`,Ec=({item:e,userRoles:t,level:n=0,onNavigate:r,activePath:o})=>{const[i,s]=h.useState(!1),{isCollapsed:a}=Cc(),l=h.useMemo(()=>(e.children||[]).filter(p=>rs(t,p.permissions)),[e.children,t]);if(!h.useMemo(()=>rs(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(oy,{$level:n,children:[m.jsxs(ey,{onClick:f,$level:n,$collapsed:a,$active:c,$expanded:i&&d,title:a?e.label:"",children:[m.jsxs(ty,{children:[n>0&&!a&&m.jsx(sy,{}),e.icon&&m.jsx(J,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&m.jsx(ny,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&d&&m.jsx(iy,{$disabled:a,$open:i,children:m.jsx(J,{component:zg,size:"sm",color:"var(--color-main-blue-primary)"})})]}),m.jsx(_n,{initial:!1,children:!a&&i&&d&&m.jsx(ry,{$level:n+1,...Y0,children:l.map(p=>m.jsx(Ec,{item:p,userRoles:t,level:n+1,onNavigate:r,activePath:o},p.id))})})]})},[ay,ly]=["/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_CC.webp","/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_CB.webp"],cy=P(dt.div)`
|
|
1139
|
+
position: fixed;
|
|
1140
|
+
inset: 0;
|
|
1141
|
+
background: rgba(0, 0, 0, 0.5);
|
|
1142
|
+
z-index: 40;
|
|
1143
|
+
display: none;
|
|
1144
|
+
@media (max-width: 767px) {
|
|
1145
|
+
display: block;
|
|
1146
|
+
}
|
|
1147
|
+
`,uy=P.aside`
|
|
1148
|
+
position: fixed;
|
|
1149
|
+
left: 0;
|
|
1150
|
+
top: 0;
|
|
1151
|
+
height: 100%;
|
|
1152
|
+
background: var(--color-main-white);
|
|
1153
|
+
border-top-right-radius: var(--border-radius-article);
|
|
1154
|
+
border-bottom-right-radius: var(--border-radius-article);
|
|
1155
|
+
border-right: 1px solid var(--color-main-light-borders);
|
|
1156
|
+
z-index: 50;
|
|
1157
|
+
box-shadow: var(--shadow-black-button);
|
|
1158
|
+
width: ${({$collapsed:e})=>e?"5rem":"16rem"};
|
|
1159
|
+
transform: translateX(${({$open:e})=>e?"0":"-100%"});
|
|
1160
|
+
transition:
|
|
1161
|
+
width 0.3s ease-out,
|
|
1162
|
+
transform 0.3s ease-out;
|
|
1163
|
+
@media (min-width: 768px) {
|
|
1164
|
+
transform: translateX(0);
|
|
1165
|
+
}
|
|
1166
|
+
`,dy=P.div`
|
|
1167
|
+
display: flex;
|
|
1168
|
+
align-items: center;
|
|
1169
|
+
justify-content: space-between;
|
|
1170
|
+
gap: 0.875rem;
|
|
1171
|
+
padding: 1rem;
|
|
1172
|
+
|
|
1173
|
+
${({$collapsed:e})=>e?"flex-direction: column":""};
|
|
1174
|
+
`,fy=P.div`
|
|
1175
|
+
display: flex;
|
|
1176
|
+
align-items: center;
|
|
1177
|
+
gap: 0.5rem;
|
|
1178
|
+
`,hy=P.img`
|
|
1179
|
+
display: block;
|
|
1180
|
+
height: 4.375rem;
|
|
1181
|
+
width: auto;
|
|
1182
|
+
object-fit: contain;
|
|
1183
|
+
`,py=P.nav`
|
|
1184
|
+
display: flex;
|
|
1185
|
+
flex-direction: column;
|
|
1186
|
+
justify-content: flex-start;
|
|
1187
|
+
align-items: stretch;
|
|
1188
|
+
flex: 1;
|
|
1189
|
+
overflow-y: auto;
|
|
1190
|
+
padding: 0.25rem 0;
|
|
1191
|
+
`,my=P.button`
|
|
1192
|
+
display: flex;
|
|
1193
|
+
align-items: center;
|
|
1194
|
+
justify-content: center;
|
|
1195
|
+
padding: 0.25rem;
|
|
1196
|
+
border: none;
|
|
1197
|
+
background: transparent;
|
|
1198
|
+
border-radius: var(--border-radius-outline);
|
|
1199
|
+
cursor: pointer;
|
|
1200
|
+
outline: 2px solid transparent;
|
|
1201
|
+
outline-offset: 0px;
|
|
1202
|
+
transition:
|
|
1203
|
+
transform 0.3s ease-out,
|
|
1204
|
+
outline 0.3s ease-out;
|
|
1205
|
+
|
|
1206
|
+
&:hover {
|
|
1207
|
+
transform: scale(1.05);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
&:focus {
|
|
1211
|
+
outline-color: var(--color-main-blue-primary);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
@media (max-width: 767px) {
|
|
1215
|
+
display: none;
|
|
1216
|
+
}
|
|
1217
|
+
`,gy=P.button`
|
|
1218
|
+
position: fixed;
|
|
1219
|
+
top: 0.5rem;
|
|
1220
|
+
left: 1rem;
|
|
1221
|
+
padding: 0.5rem;
|
|
1222
|
+
z-index: 50;
|
|
1223
|
+
border: none;
|
|
1224
|
+
display: ${({$hidden:e})=>e?"none":"flex"};
|
|
1225
|
+
@media (min-width: 768px) {
|
|
1226
|
+
display: none;
|
|
1227
|
+
}
|
|
1228
|
+
`,os=({navigationConfig:e,userRoles:t=[],onNavigate:n=()=>{},activePath:r})=>{const{isCollapsed:o,setIsCollapsed:i,isMobileOpen:s,setIsMobileOpen:a}=Cc(),l=u=>{n(u),typeof window<"u"&&window.innerWidth<768&&a(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(_n,{children:s&&m.jsx(cy,{...vc,onClick:()=>a(!1)})}),m.jsxs(uy,{$collapsed:s?!1:o,$open:s,children:[m.jsxs(dy,{$collapsed:o,children:[m.jsx(fy,{children:m.jsx(hy,{$collapsed:o,src:o?ay:ly,alt:"Total Civil Construction"})}),m.jsx(my,{onClick:()=>i(!o),"aria-label":"Toggle collapse",children:m.jsx(J,{component:nc,size:"md",color:"var(--color-main-blue-primary)"})})]}),m.jsx(py,{children:e.map(u=>m.jsx(Ec,{item:u,userRoles:t,onNavigate:l,activePath:r},u.id))})]}),m.jsx(gy,{onClick:()=>{a(!0),i(!1)},$hidden:s,children:m.jsx(J,{component:nc,size:30})})]})};os.displayName="Sidebar";const yy={underlined:k`
|
|
1229
|
+
color: var(--color-main-orange-primary);
|
|
1230
|
+
text-decoration-thickness: 1px;
|
|
1231
|
+
text-underline-offset: 2px;
|
|
1232
|
+
text-decoration: underline;
|
|
1233
|
+
|
|
1234
|
+
&:hover {
|
|
1235
|
+
color: var(--color-main-orange-primary);
|
|
1236
|
+
text-decoration-thickness: 2px;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
&:active {
|
|
1240
|
+
color: var(--color-main-orange-primary);
|
|
1241
|
+
text-decoration: underline;
|
|
1242
|
+
text-decoration-thickness: 1px;
|
|
1243
|
+
text-underline-offset: 2px;
|
|
1244
|
+
transform: translateY(0.5px);
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
&:focus-visible {
|
|
1248
|
+
outline-color: var(--color-main-orange-primary);
|
|
1249
|
+
outline-offset: 2px;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
&:visited {
|
|
1253
|
+
color: var(--color-main-alternative);
|
|
1254
|
+
text-decoration: underline;
|
|
1255
|
+
text-decoration-thickness: 1px;
|
|
1256
|
+
text-underline-offset: 2px;
|
|
1257
|
+
}
|
|
1258
|
+
`,plain:k`
|
|
1259
|
+
color: var(--color-main-orange-primary);
|
|
1260
|
+
text-decoration: none;
|
|
1261
|
+
|
|
1262
|
+
&:hover {
|
|
1263
|
+
color: var(--color-main-orange-primary);
|
|
1264
|
+
text-decoration: underline;
|
|
1265
|
+
text-decoration-thickness: 1px;
|
|
1266
|
+
text-underline-offset: 2px;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
&:active {
|
|
1270
|
+
color: var(--color-main-orange-primary);
|
|
1271
|
+
text-decoration: underline;
|
|
1272
|
+
text-decoration-thickness: 1px;
|
|
1273
|
+
text-underline-offset: 2px;
|
|
1274
|
+
transform: translateY(0.5px);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
&:focus-visible {
|
|
1278
|
+
outline-color: var(--color-main-orange-primary);
|
|
1279
|
+
outline-offset: 2px;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
&:visited {
|
|
1283
|
+
color: var(--color-main-alternative);
|
|
1284
|
+
text-decoration: underline;
|
|
1285
|
+
text-decoration-thickness: 1px;
|
|
1286
|
+
text-underline-offset: 2px;
|
|
1287
|
+
}
|
|
1288
|
+
`},vy=k`
|
|
1289
|
+
color: var(--color-dark-200);
|
|
1290
|
+
cursor: not-allowed;
|
|
1291
|
+
pointer-events: none;
|
|
1292
|
+
opacity: 0.6;
|
|
1293
|
+
text-decoration: none;
|
|
1294
|
+
|
|
1295
|
+
&:hover {
|
|
1296
|
+
color: var(--color-dark-200);
|
|
1297
|
+
text-decoration: none;
|
|
1298
|
+
transform: none;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
&:active {
|
|
1302
|
+
color: var(--color-dark-200);
|
|
1303
|
+
text-decoration: none;
|
|
1304
|
+
transform: none;
|
|
1305
|
+
}
|
|
1306
|
+
`,by={sm:k`
|
|
1307
|
+
gap: 0.25rem;
|
|
1308
|
+
${_[14]}
|
|
1309
|
+
`,md:k`
|
|
1310
|
+
gap: 0.5rem;
|
|
1311
|
+
${_[16]}
|
|
1312
|
+
`,lg:k`
|
|
1313
|
+
gap: 0.75rem;
|
|
1314
|
+
${_[20]}
|
|
1315
|
+
`},wy=P.a`
|
|
1316
|
+
display: inline-flex;
|
|
1317
|
+
align-items: center;
|
|
1318
|
+
border-radius: 0.25rem;
|
|
1319
|
+
outline: 2px solid transparent;
|
|
1320
|
+
outline-offset: 2px;
|
|
1321
|
+
transition:
|
|
1322
|
+
outline 0.3s ease-in-out,
|
|
1323
|
+
text-decoration 0.3s ease-in-out;
|
|
1324
|
+
|
|
1325
|
+
cursor: pointer;
|
|
1326
|
+
|
|
1327
|
+
${({$size:e})=>by[e]}
|
|
1328
|
+
${({$variant:e})=>yy[e]}
|
|
1329
|
+
${({$disabled:e})=>e&&vy}
|
|
1330
|
+
`,xy=P.span`
|
|
1331
|
+
flex: 1 1 auto;
|
|
1332
|
+
min-width: 0;
|
|
1333
|
+
max-width: 18ch;
|
|
1334
|
+
${({$truncate:e})=>e&&k`
|
|
1335
|
+
overflow: hidden;
|
|
1336
|
+
text-overflow: ellipsis;
|
|
1337
|
+
white-space: nowrap;
|
|
1338
|
+
`}
|
|
1339
|
+
`,Pc=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(wy,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:b,...y,children:[d&&m.jsx(J,{component:d,size:f,color:p}),m.jsx(xy,{$truncate:g,children:r}),m.jsx(J,{component:c||Wg,size:t==="lg"?"sm":f,color:p})]})});Pc.displayName="Link";const kc={default:k`
|
|
1340
|
+
thead tr:last-child th:first-child {
|
|
1341
|
+
border-radius: var(--border-radius-article) 0 0 0;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
thead tr:last-child th:last-child {
|
|
1345
|
+
border-radius: 0 var(--border-radius-article) 0 0;
|
|
1346
|
+
}
|
|
1347
|
+
`,striped:k`
|
|
1348
|
+
border-radius: var(--border-radius-article);
|
|
1349
|
+
tbody tr:nth-child(even) td {
|
|
1350
|
+
background-color: var(--color-dark-200);
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
tbody tr:nth-child(even):hover td {
|
|
1354
|
+
background-color: var(--color-main-alternative-secondary);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
thead tr:last-child th:first-child {
|
|
1358
|
+
border-radius: var(--border-radius-article) 0 0 0;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
thead tr:last-child th:last-child {
|
|
1362
|
+
border-radius: 0 var(--border-radius-article) 0 0;
|
|
1363
|
+
}
|
|
1364
|
+
`},Ac=k`
|
|
1365
|
+
tbody tr:hover td {
|
|
1366
|
+
background-color: var(--color-main-alternative-secondary);
|
|
1367
|
+
}
|
|
1368
|
+
`,Dc=k`
|
|
1369
|
+
@media (max-width: 768px) {
|
|
1370
|
+
font-size: 0.875rem;
|
|
1371
|
+
|
|
1372
|
+
th,
|
|
1373
|
+
td {
|
|
1374
|
+
padding: 0.5rem 0.75rem;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
`,ss=k`
|
|
1378
|
+
display: flex;
|
|
1379
|
+
align-items: center;
|
|
1380
|
+
gap: 0.5rem;
|
|
1381
|
+
width: 100%;
|
|
1382
|
+
overflow: hidden;
|
|
1383
|
+
`,pt={sm:k`
|
|
1384
|
+
padding: 0.5rem 1rem;
|
|
1385
|
+
min-height: 2.25rem;
|
|
1386
|
+
`,md:k`
|
|
1387
|
+
padding: 0.625rem 1.25rem;
|
|
1388
|
+
min-height: 2.5rem;
|
|
1389
|
+
`,lg:k`
|
|
1390
|
+
padding: 0.75rem 1.5rem;
|
|
1391
|
+
min-height: 2.75rem;
|
|
1392
|
+
`},is=k`
|
|
1393
|
+
display: inline-flex;
|
|
1394
|
+
align-items: center;
|
|
1395
|
+
flex-shrink: 0;
|
|
1396
|
+
`,Sy={sm:k`
|
|
1397
|
+
${pt.sm}
|
|
1398
|
+
${_[16]}
|
|
1399
|
+
`,md:k`
|
|
1400
|
+
${pt.md}
|
|
1401
|
+
${_[20]}
|
|
1402
|
+
`,lg:k`
|
|
1403
|
+
${pt.lg}
|
|
1404
|
+
${_[24]}
|
|
1405
|
+
`},Ty=P.th`
|
|
1406
|
+
background-color: var(--color-main-blue-primary);
|
|
1407
|
+
${({$size:e})=>Sy[e]}
|
|
1408
|
+
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
|
|
1409
|
+
min-width: 8rem;
|
|
1410
|
+
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
|
|
360
1411
|
|
|
361
|
-
${({$
|
|
362
|
-
|
|
1412
|
+
${({$sticky:e})=>e&&k`
|
|
1413
|
+
position: sticky;
|
|
1414
|
+
top: 0;
|
|
1415
|
+
z-index: 10;
|
|
1416
|
+
box-shadow: var(--shadow-black-card);
|
|
1417
|
+
`}
|
|
363
1418
|
|
|
364
|
-
|
|
365
|
-
|
|
1419
|
+
&:hover {
|
|
1420
|
+
background-color: var(--color-purple-600);
|
|
366
1421
|
}
|
|
367
|
-
|
|
1422
|
+
|
|
1423
|
+
${({$active:e})=>e&&k`
|
|
1424
|
+
background-color: var(--color-blue-400);
|
|
1425
|
+
`}
|
|
1426
|
+
`,Cy=P.div`
|
|
1427
|
+
${ss}
|
|
1428
|
+
justify-content: ${({$align:e})=>e||"space-between"};
|
|
1429
|
+
`,Ey=P.button`
|
|
1430
|
+
all: unset;
|
|
1431
|
+
display: inline-flex;
|
|
1432
|
+
align-items: center;
|
|
1433
|
+
justify-content: space-between;
|
|
1434
|
+
gap: 0.5rem;
|
|
1435
|
+
width: 100%;
|
|
1436
|
+
cursor: pointer;
|
|
1437
|
+
border-radius: 6px;
|
|
1438
|
+
padding: 0.125rem 0.25rem;
|
|
1439
|
+
overflow: hidden;
|
|
1440
|
+
outline: 2px solid transparent;
|
|
1441
|
+
outline-offset: 2px;
|
|
1442
|
+
transition: outline 0.3s ease-out;
|
|
1443
|
+
|
|
1444
|
+
&:focus-visible {
|
|
1445
|
+
outline-color: var(--color-main-white);
|
|
1446
|
+
outline-offset: 2px;
|
|
1447
|
+
}
|
|
1448
|
+
`,Py=P.span`
|
|
1449
|
+
transition: transform 0.3s ease-out;
|
|
1450
|
+
display: inline-flex;
|
|
1451
|
+
transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
|
|
1452
|
+
`,$c=P.span`
|
|
1453
|
+
display: inline-flex;
|
|
1454
|
+
align-items: center;
|
|
1455
|
+
gap: 0.5rem;
|
|
1456
|
+
max-width: 18ch;
|
|
1457
|
+
overflow: hidden;
|
|
1458
|
+
text-overflow: ellipsis;
|
|
1459
|
+
white-space: nowrap;
|
|
1460
|
+
flex-shrink: 1;
|
|
1461
|
+
`,ky=P(Dn)`
|
|
1462
|
+
overflow: hidden;
|
|
1463
|
+
text-overflow: ellipsis;
|
|
1464
|
+
white-space: nowrap;
|
|
1465
|
+
max-width: 100%;
|
|
1466
|
+
color: var(--color-main-white);
|
|
1467
|
+
`,Mc=P.span`
|
|
1468
|
+
${is}
|
|
1469
|
+
gap: 0.375rem;
|
|
1470
|
+
`,as=({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(Ty,{$size:t,$active:n,$width:d,$sticky:l,className:f,scope:"col","aria-sort":x,...g,children:p||c?m.jsxs(Ey,{onClick:()=>p?.(w),"aria-label":`Sort ${w}`,children:[m.jsxs($c,{children:[o&&m.jsx(J,{component:o,size:s,color:a}),m.jsx(ky,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),m.jsxs(Mc,{children:[m.jsx(Py,{$dir:r,children:m.jsx(J,{component:_g,size:s,color:a})}),i&&m.jsx(J,{component:i,size:s,color:a})]})]}):m.jsxs(Cy,{$align:u,children:[m.jsxs($c,{children:[o&&m.jsx(J,{component:o,size:s,color:a}),m.jsx(Dn,{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(Mc,{children:i&&m.jsx(J,{component:i,size:s,color:a})})]})})};as.displayName="TableHeaderCell";const Ay={sm:k`
|
|
1471
|
+
${pt.sm}
|
|
1472
|
+
${_[14]}
|
|
1473
|
+
`,md:k`
|
|
1474
|
+
${pt.md}
|
|
1475
|
+
${_[14]}
|
|
1476
|
+
`,lg:k`
|
|
1477
|
+
${pt.lg}
|
|
1478
|
+
${_[16]}
|
|
1479
|
+
`},Dy=P.td`
|
|
1480
|
+
vertical-align: middle;
|
|
1481
|
+
color: var(--color-main-blue-primary);
|
|
1482
|
+
${({$size:e})=>Ay[e]}
|
|
1483
|
+
text-align: ${({$align:e,$variant:t})=>e||(t==="numeric"?"right":"left")};
|
|
1484
|
+
border-left: 1px solid var(--color-main-light-borders);
|
|
1485
|
+
border-top: 1px solid var(--color-main-light-borders);
|
|
1486
|
+
transition: background-color 0.3s ease-out;
|
|
1487
|
+
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
|
|
1488
|
+
|
|
1489
|
+
${({$truncate:e})=>e&&k`
|
|
1490
|
+
max-width: 200px;
|
|
1491
|
+
overflow: hidden;
|
|
1492
|
+
text-overflow: ellipsis;
|
|
1493
|
+
white-space: nowrap;
|
|
1494
|
+
`}
|
|
1495
|
+
|
|
1496
|
+
${({$variant:e})=>e==="numeric"&&k`
|
|
1497
|
+
font-variant-numeric: tabular-nums;
|
|
1498
|
+
font-family: ui-monospace, monospace;
|
|
1499
|
+
`}
|
|
1500
|
+
`,$y=P.div`
|
|
1501
|
+
${ss}
|
|
1502
|
+
justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
|
|
1503
|
+
`,My=P($n)`
|
|
1504
|
+
flex: 1;
|
|
1505
|
+
min-width: 0;
|
|
1506
|
+
`,Vc=P.span`
|
|
1507
|
+
${is}
|
|
1508
|
+
`,ls=({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(Dy,{$size:t,$align:n,$width:r,$truncate:o,$variant:i,className:s,...c,children:f?m.jsxs($y,{$align:n,children:[a&&m.jsx(Vc,{children:m.jsx(J,{component:a,size:u,color:d})}),m.jsx(My,{children:e}),l&&m.jsx(Vc,{children:m.jsx(J,{component:l,size:u,color:d})})]}):e})};ls.displayName="TableCell";const Vy=P.table`
|
|
1509
|
+
width: fit-content;
|
|
1510
|
+
table-layout: auto;
|
|
1511
|
+
border-collapse: separate;
|
|
1512
|
+
border-spacing: 0;
|
|
1513
|
+
overflow: visible;
|
|
1514
|
+
box-shadow: var(--shadow-black-card);
|
|
1515
|
+
border-radius: var(--border-radius-article);
|
|
1516
|
+
border: 1px solid var(--color-main-light-borders);
|
|
1517
|
+
|
|
1518
|
+
${({$variant:e})=>kc[e]}
|
|
1519
|
+
${Dc}
|
|
1520
|
+
${Ac}
|
|
1521
|
+
`,Ic=({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(Vy,{$variant:r,className:o,children:[m.jsx("thead",{children:m.jsx("tr",{children:e.map((l,u)=>m.jsx(as,{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(ls,{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)})})]})};Ic.displayName="Table";const Iy=P.header`
|
|
1522
|
+
position: fixed;
|
|
1523
|
+
top: 0;
|
|
1524
|
+
left: 0;
|
|
1525
|
+
right: 0;
|
|
1526
|
+
height: 4rem;
|
|
1527
|
+
background: var(--color-main-white);
|
|
1528
|
+
border-bottom: 1px solid var(--color-main-light-borders);
|
|
1529
|
+
box-shadow: var(--shadow-black-button);
|
|
1530
|
+
z-index: 40;
|
|
1531
|
+
display: flex;
|
|
1532
|
+
align-items: center;
|
|
1533
|
+
justify-content: space-between;
|
|
1534
|
+
padding: 0 1rem;
|
|
1535
|
+
transition: padding-left 0.3s ease-out;
|
|
1536
|
+
|
|
1537
|
+
@media (min-width: 768px) {
|
|
1538
|
+
padding-left: ${({$sidebarCollapsed:e})=>e?"6rem":"17rem"};
|
|
1539
|
+
}
|
|
1540
|
+
`,Ny=P.div`
|
|
1541
|
+
display: flex;
|
|
1542
|
+
align-items: center;
|
|
1543
|
+
gap: 1rem;
|
|
1544
|
+
`,Ly=P.div`
|
|
1545
|
+
display: flex;
|
|
1546
|
+
align-items: center;
|
|
1547
|
+
gap: 1rem;
|
|
1548
|
+
`,Oy=P.button`
|
|
1549
|
+
position: relative;
|
|
1550
|
+
display: flex;
|
|
1551
|
+
align-items: center;
|
|
1552
|
+
justify-content: center;
|
|
1553
|
+
padding: 0.5rem;
|
|
1554
|
+
border: none;
|
|
1555
|
+
background: transparent;
|
|
1556
|
+
border-radius: var(--border-radius-outline);
|
|
1557
|
+
cursor: pointer;
|
|
1558
|
+
transition: transform 0.15s ease-out;
|
|
1559
|
+
|
|
1560
|
+
&:hover {
|
|
1561
|
+
transform: scale(1.05);
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
&:focus {
|
|
1565
|
+
outline: 2px solid var(--color-main-blue-primary);
|
|
1566
|
+
outline-offset: 2px;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
&:active {
|
|
1570
|
+
transform: scale(0.92);
|
|
1571
|
+
}
|
|
1572
|
+
`,Fy=P.span`
|
|
1573
|
+
position: absolute;
|
|
1574
|
+
top: 0.35rem;
|
|
1575
|
+
right: 0.35rem;
|
|
1576
|
+
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1577
|
+
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1578
|
+
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
1579
|
+
background-color: var(--color-main-orange-primary);
|
|
1580
|
+
color: var(--color-main-white);
|
|
1581
|
+
font-size: 0.55rem;
|
|
1582
|
+
font-weight: 600;
|
|
1583
|
+
border-radius: 100%;
|
|
1584
|
+
border: 1px solid var(--color-main-white);
|
|
1585
|
+
display: flex;
|
|
1586
|
+
align-items: center;
|
|
1587
|
+
justify-content: center;
|
|
1588
|
+
`,Nc=P.div`
|
|
1589
|
+
display: flex;
|
|
1590
|
+
align-items: center;
|
|
1591
|
+
gap: 0.75rem;
|
|
1592
|
+
padding: 0.5rem;
|
|
1593
|
+
border-radius: var(--border-radius-outline);
|
|
1594
|
+
cursor: pointer;
|
|
1595
|
+
transition: background-color 0.3s ease-out;
|
|
1596
|
+
|
|
1597
|
+
&:hover {
|
|
1598
|
+
background-color: var(--color-main-light-background);
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
&:focus {
|
|
1602
|
+
outline: 2px solid var(--color-main-blue-primary);
|
|
1603
|
+
outline-offset: 2px;
|
|
1604
|
+
}
|
|
1605
|
+
`,By=P.div`
|
|
1606
|
+
width: 2rem;
|
|
1607
|
+
height: 2rem;
|
|
1608
|
+
border-radius: 50%;
|
|
1609
|
+
background-color: var(--color-main-blue-primary);
|
|
1610
|
+
display: flex;
|
|
1611
|
+
align-items: center;
|
|
1612
|
+
justify-content: center;
|
|
1613
|
+
color: var(--color-main-white);
|
|
1614
|
+
font-weight: 600;
|
|
1615
|
+
font-size: 0.875rem;
|
|
1616
|
+
`,Ry=P.div`
|
|
1617
|
+
display: flex;
|
|
1618
|
+
flex-direction: column;
|
|
1619
|
+
align-items: flex-start;
|
|
1620
|
+
|
|
1621
|
+
@media (max-width: 640px) {
|
|
1622
|
+
display: none;
|
|
1623
|
+
}
|
|
1624
|
+
`,_y=P.span`
|
|
1625
|
+
font-weight: 600;
|
|
1626
|
+
font-size: 0.875rem;
|
|
1627
|
+
color: var(--color-main-dark-text);
|
|
1628
|
+
line-height: 1.2;
|
|
1629
|
+
`,jy=P.span`
|
|
1630
|
+
font-size: 0.75rem;
|
|
1631
|
+
color: var(--color-main-gray-text);
|
|
1632
|
+
line-height: 1.2;
|
|
1633
|
+
`,zy=P.div`
|
|
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`
|
|
1643
|
+
display: flex;
|
|
1644
|
+
flex-direction: column;
|
|
1645
|
+
height: 100vh;
|
|
1646
|
+
overflow: hidden;
|
|
1647
|
+
`,Uy=P.main`
|
|
1648
|
+
flex: 1;
|
|
1649
|
+
margin-top: 4rem;
|
|
1650
|
+
margin-left: 0;
|
|
1651
|
+
padding: 1rem;
|
|
1652
|
+
overflow-y: auto;
|
|
1653
|
+
margin-left: 5rem;
|
|
1654
|
+
`,Wy=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:i=!1,onNavigate:s,onNotificationClick:a,onUserProfileClick:l})=>m.jsxs(Hy,{children:[m.jsx(os,{navigationConfig:t,userRoles:n,onNavigate:s,activePath:r}),m.jsx(cs,{user:o,hasNotifications:i,onNotificationClick:a,onUserProfileClick:l}),m.jsx(Uy,{children:e})]}),Yy=e=>m.jsx(Tc,{children:m.jsx(Wy,{...e})});A.ALLOWED_INPUT_TYPES=Ql,A.BaseInput=Wo,A.Button=zo,A.ButtonSpinner=ql,A.Card=Tg,A.CardBody=kg,A.CardFooter=Dg,A.CardHeader=Eg,A.Checkbox=Qn,A.CheckboxInput=Go,A.CheckboxLabel=ac,A.Dialog=bc,A.DialogBody=xc,A.DialogFooter=Sc,A.DialogHeader=wc,A.ErrorMessage=Uo,A.FormField=U0,A.FullScreenSpinner=Fm,A.Header=cs,A.HeadingBold=Dn,A.HeadingRegular=Ju,A.Icon=J,A.IconWrapperStyles=ln,A.Label=Zn,A.Layout=Yy,A.Link=Pc,A.PasswordInput=oc,A.PinInput=Xo,A.PinInputGroup=qo,A.RadioInput=Qo,A.RadioInputDot=Zo,A.RadioInputLabel=Jo,A.SearchInput=ic,A.SectionSpinner=Rm,A.SelectInput=Yo,A.Sidebar=os,A.SidebarContext=ns,A.SidebarProvider=Tc,A.Spinner=Xn,A.Table=Ic,A.TableCell=ls,A.TableHeaderCell=as,A.TermsAndConditions=Q0,A.Text=$n,A.TextAreaInput=Ko,A.ToastProvider=yg,A.baseContentTableStyles=ss,A.baseFieldStyles=ft,A.baseInputStyles=Jn,A.baseTableCellsSizes=pt,A.createFieldConfig=Fg,A.createInputRefs=dc,A.disabledStyles=Ze,A.errorStyles=ht,A.flushedStyles=tc,A.getPropsForInputType=ec,A.handleDigitChange=lc,A.handleKeyDown=cc,A.handlePaste=uc,A.hasPermission=rs,A.normalizeFieldTypes=Lg,A.normalizeSelectOptions=Og,A.sizeStyles=an,A.tableHoverMixin=Ac,A.tableIconContainerStyles=is,A.tableResponsiveMixin=Dc,A.tableVariants=kc,A.validateCode=P0,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|