tcce-design-system 0.1.32 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(T,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],p):(T=typeof globalThis<"u"?globalThis:T||self,p(T["tcce-design-system-components"]={},T.React,T["react/jsx-runtime"],T.ReactDOM,T.Formik))})(this,(function(T,p,g,Yi,md){"use strict";function gd(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 lt=gd(p);var we=function(){return we=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},we.apply(this,arguments)};function ct(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 yd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vd=/^((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)-.*))$/,wd=yd(function(e){return vd.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Q="-ms-",Zt="-moz-",U="-webkit-",Xi="comm",$n="rule",xr="decl",bd="@import",Zi="@keyframes",xd="@layer",Ji=Math.abs,Sr=String.fromCharCode,Cr=Object.assign;function Sd(e,t){return le(e,0)^45?(((t<<2^le(e,0))<<2^le(e,1))<<2^le(e,2))<<2^le(e,3):0}function Qi(e){return e.trim()}function He(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function kn(e,t,n){return e.indexOf(t,n)}function le(e,t){return e.charCodeAt(t)|0}function Tt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function es(e){return e.length}function Jt(e,t){return t.push(e),e}function Cd(e,t){return e.map(t).join("")}function ts(e,t){return e.filter(function(n){return!He(n,t)})}var Pn=1,$t=1,ns=0,ke=0,ie=0,kt="";function En(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Pn,column:$t,length:s,return:"",siblings:a}}function Ze(e,t){return Cr(En("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Pt(e){for(;e.root;)e=Ze(e.root,{children:[e]});Jt(e,e.siblings)}function Td(){return ie}function $d(){return ie=ke>0?le(kt,--ke):0,$t--,ie===10&&($t=1,Pn--),ie}function Ve(){return ie=ke<ns?le(kt,ke++):0,$t++,ie===10&&($t=1,Pn++),ie}function ut(){return le(kt,ke)}function Mn(){return ke}function An(e,t){return Tt(kt,e,t)}function Tr(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 kd(e){return Pn=$t=1,ns=Oe(kt=e),ke=0,[]}function Pd(e){return kt="",e}function $r(e){return Qi(An(ke-1,kr(e===91?e+2:e===40?e+1:e)))}function Ed(e){for(;(ie=ut())&&ie<33;)Ve();return Tr(e)>2||Tr(ie)>3?"":" "}function Md(e,t){for(;--t&&Ve()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return An(e,Mn()+(t<6&&ut()==32&&Ve()==32))}function kr(e){for(;Ve();)switch(ie){case e:return ke;case 34:case 39:e!==34&&e!==39&&kr(ie);break;case 40:e===41&&kr(e);break;case 92:Ve();break}return ke}function Ad(e,t){for(;Ve()&&e+ie!==57;)if(e+ie===84&&ut()===47)break;return"/*"+An(t,ke-1)+"*"+Sr(e===47?e:Ve())}function Dd(e){for(;!Tr(ut());)Ve();return An(e,ke)}function Vd(e){return Pd(Dn("",null,null,null,[""],e=kd(e),0,[0],e))}function Dn(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,m=0,y=1,w=1,v=1,C=0,b="",k=o,S=i,P=r,E=b;w;)switch(m=C,C=Ve()){case 40:if(m!=108&&le(E,d-1)==58){kn(E+=B($r(C),"&","&\f"),"&\f",Ji(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=$r(C);break;case 9:case 10:case 13:case 32:E+=Ed(m);break;case 92:E+=Md(Mn()-1,7);continue;case 47:switch(ut()){case 42:case 47:Jt(Fd(Ad(Ve(),Mn()),t,n,l),l);break;default:E+="/"}break;case 123*y:a[c++]=Oe(E)*v;case 125*y:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+u:v==-1&&(E=B(E,/\f/g,"")),h>0&&Oe(E)-d&&Jt(h>32?os(E+";",r,n,d-1,l):os(B(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(Jt(P=rs(E,t,n,c,u,o,a,b,k=[],S=[],d,i),i),C===123)if(u===0)Dn(E,t,P,P,k,i,d,a,S);else switch(f===99&&le(E,3)===110?100:f){case 100:case 108:case 109:case 115:Dn(e,P,P,r&&Jt(rs(e,P,P,0,0,o,a,b,o,k=[],d,S),S),o,S,d,a,r?k:S);break;default:Dn(E,P,P,P,[""],S,0,a,S)}}c=u=h=0,y=v=1,b=E="",d=s;break;case 58:d=1+Oe(E),h=m;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&$d()==125)continue}switch(E+=Sr(C),C*y){case 38:v=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(Oe(E)-1)*v,v=1;break;case 64:ut()===45&&(E+=$r(Ve())),f=ut(),u=d=Oe(b=E+=Dd(Mn())),C++;break;case 45:m===45&&Oe(E)==2&&(y=0)}}return i}function rs(e,t,n,r,o,i,s,a,l,c,u,d){for(var f=o-1,h=o===0?i:[""],m=es(h),y=0,w=0,v=0;y<r;++y)for(var C=0,b=Tt(e,f+1,f=Ji(w=s[y])),k=e;C<m;++C)(k=Qi(w>0?h[C]+" "+b:B(b,/&\f/g,h[C])))&&(l[v++]=k);return En(e,t,n,o===0?$n:a,l,c,u,d)}function Fd(e,t,n,r){return En(e,t,n,Xi,Sr(Td()),Tt(e,2,-2),0,r)}function os(e,t,n,r,o){return En(e,t,n,xr,Tt(e,0,r),Tt(e,r+1,-1),r,o)}function is(e,t,n){switch(Sd(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 4789:return Zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Zt+e+Q+e+e;case 5936:switch(le(e,t+11)){case 114:return U+e+Q+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+Q+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+Q+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+Q+e+e;case 6165:return U+e+Q+"flex-"+e+e;case 5187:return U+e+B(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return U+e+Q+"flex-item-"+B(e,/flex-|-self/g,"")+(He(e,/flex-|baseline/)?"":Q+"grid-row-"+B(e,/flex-|-self/g,""))+e;case 4675:return U+e+Q+"flex-line-pack"+B(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+Q+B(e,"shrink","negative")+e;case 5292:return U+e+Q+B(e,"basis","preferred-size")+e;case 6060:return U+"box-"+B(e,"-grow","")+U+e+Q+B(e,"grow","positive")+e;case 4554:return U+B(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!He(e,/flex-|baseline/))return Q+"grid-column-align"+Tt(e,t)+e;break;case 2592:case 3360:return Q+B(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,He(r.props,/grid-\w+-end/)})?~kn(e+(n=n[t].value),"span",0)?e:Q+B(e,"-start","")+e+Q+"grid-row-span:"+(~kn(n,"span",0)?He(n,/\d+/):+He(n,/\d+/)-+He(e,/\d+/))+";":Q+B(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return He(r.props,/grid-\w+-start/)})?e:Q+B(B(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Oe(e)-1-t>6)switch(le(e,t+1)){case 109:if(le(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Zt+(le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~kn(e,"stretch",0)?is(B(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return B(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,c){return Q+o+":"+i+c+(s?Q+o+"-span:"+(a?l:+l-+i)+c:"")+e});case 4949:if(le(e,t+6)===121)return B(e,":",":"+U)+e;break;case 6444:switch(le(e,le(e,14)===45?18:11)){case 120:return B(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(le(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+Q+"$2box$3")+e;case 100:return B(e,":",":"+Q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(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 Id(e,t,n,r){switch(e.type){case xd:if(e.children.length)break;case bd:case xr:return e.return=e.return||e.value;case Xi:return"";case Zi:return e.return=e.value+"{"+Vn(e.children,r)+"}";case $n:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=Vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rd(e){var t=es(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 Ld(e){return function(t){t.root||(t=t.return)&&e(t)}}function _d(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xr:e.return=is(e.value,e.length,n);return;case Zi:return Vn([Ze(e,{value:B(e.value,"@","@"+U)})],r);case $n:if(e.length)return Cd(n=e.props,function(o){switch(He(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Pt(Ze(e,{props:[B(o,/:(read-\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[o]})),Cr(e,{props:ts(n,r)});break;case"::placeholder":Pt(Ze(e,{props:[B(o,/:(plac\w+)/,":"+U+"input-$1")]})),Pt(Ze(e,{props:[B(o,/:(plac\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[B(o,/:(plac\w+)/,Q+"input-$1")]})),Pt(Ze(e,{props:[o]})),Cr(e,{props:ts(n,r)});break}return""})}}var Nd={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},dt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ss="active",as="data-styled-version",Fn="6.1.19",Pr=`/*!sc*/
|
|
1
|
+
(function(T,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],p):(T=typeof globalThis<"u"?globalThis:T||self,p(T["tcce-design-system-components"]={},T.React,T["react/jsx-runtime"],T.ReactDOM,T.Formik))})(this,(function(T,p,g,Yi,md){"use strict";function gd(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 lt=gd(p);var we=function(){return we=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},we.apply(this,arguments)};function ct(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 yd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vd=/^((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)-.*))$/,wd=yd(function(e){return vd.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Q="-ms-",Zt="-moz-",U="-webkit-",Xi="comm",$n="rule",xr="decl",bd="@import",Zi="@keyframes",xd="@layer",Ji=Math.abs,Sr=String.fromCharCode,Cr=Object.assign;function Sd(e,t){return le(e,0)^45?(((t<<2^le(e,0))<<2^le(e,1))<<2^le(e,2))<<2^le(e,3):0}function Qi(e){return e.trim()}function He(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function kn(e,t,n){return e.indexOf(t,n)}function le(e,t){return e.charCodeAt(t)|0}function Tt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function es(e){return e.length}function Jt(e,t){return t.push(e),e}function Cd(e,t){return e.map(t).join("")}function ts(e,t){return e.filter(function(n){return!He(n,t)})}var Pn=1,$t=1,ns=0,ke=0,ie=0,kt="";function En(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Pn,column:$t,length:s,return:"",siblings:a}}function Ze(e,t){return Cr(En("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Pt(e){for(;e.root;)e=Ze(e.root,{children:[e]});Jt(e,e.siblings)}function Td(){return ie}function $d(){return ie=ke>0?le(kt,--ke):0,$t--,ie===10&&($t=1,Pn--),ie}function Ve(){return ie=ke<ns?le(kt,ke++):0,$t++,ie===10&&($t=1,Pn++),ie}function ut(){return le(kt,ke)}function Mn(){return ke}function An(e,t){return Tt(kt,e,t)}function Tr(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 kd(e){return Pn=$t=1,ns=Oe(kt=e),ke=0,[]}function Pd(e){return kt="",e}function $r(e){return Qi(An(ke-1,kr(e===91?e+2:e===40?e+1:e)))}function Ed(e){for(;(ie=ut())&&ie<33;)Ve();return Tr(e)>2||Tr(ie)>3?"":" "}function Md(e,t){for(;--t&&Ve()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return An(e,Mn()+(t<6&&ut()==32&&Ve()==32))}function kr(e){for(;Ve();)switch(ie){case e:return ke;case 34:case 39:e!==34&&e!==39&&kr(ie);break;case 40:e===41&&kr(e);break;case 92:Ve();break}return ke}function Ad(e,t){for(;Ve()&&e+ie!==57;)if(e+ie===84&&ut()===47)break;return"/*"+An(t,ke-1)+"*"+Sr(e===47?e:Ve())}function Dd(e){for(;!Tr(ut());)Ve();return An(e,ke)}function Vd(e){return Pd(Dn("",null,null,null,[""],e=kd(e),0,[0],e))}function Dn(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,m=0,y=1,w=1,v=1,C=0,x="",E=o,b=i,k=r,P=x;w;)switch(m=C,C=Ve()){case 40:if(m!=108&&le(P,d-1)==58){kn(P+=B($r(C),"&","&\f"),"&\f",Ji(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:P+=$r(C);break;case 9:case 10:case 13:case 32:P+=Ed(m);break;case 92:P+=Md(Mn()-1,7);continue;case 47:switch(ut()){case 42:case 47:Jt(Fd(Ad(Ve(),Mn()),t,n,l),l);break;default:P+="/"}break;case 123*y:a[c++]=Oe(P)*v;case 125*y:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+u:v==-1&&(P=B(P,/\f/g,"")),h>0&&Oe(P)-d&&Jt(h>32?os(P+";",r,n,d-1,l):os(B(P," ","")+";",r,n,d-2,l),l);break;case 59:P+=";";default:if(Jt(k=rs(P,t,n,c,u,o,a,x,E=[],b=[],d,i),i),C===123)if(u===0)Dn(P,t,k,k,E,i,d,a,b);else switch(f===99&&le(P,3)===110?100:f){case 100:case 108:case 109:case 115:Dn(e,k,k,r&&Jt(rs(e,k,k,0,0,o,a,x,o,E=[],d,b),b),o,b,d,a,r?E:b);break;default:Dn(P,k,k,k,[""],b,0,a,b)}}c=u=h=0,y=v=1,x=P="",d=s;break;case 58:d=1+Oe(P),h=m;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&$d()==125)continue}switch(P+=Sr(C),C*y){case 38:v=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(Oe(P)-1)*v,v=1;break;case 64:ut()===45&&(P+=$r(Ve())),f=ut(),u=d=Oe(x=P+=Dd(Mn())),C++;break;case 45:m===45&&Oe(P)==2&&(y=0)}}return i}function rs(e,t,n,r,o,i,s,a,l,c,u,d){for(var f=o-1,h=o===0?i:[""],m=es(h),y=0,w=0,v=0;y<r;++y)for(var C=0,x=Tt(e,f+1,f=Ji(w=s[y])),E=e;C<m;++C)(E=Qi(w>0?h[C]+" "+x:B(x,/&\f/g,h[C])))&&(l[v++]=E);return En(e,t,n,o===0?$n:a,l,c,u,d)}function Fd(e,t,n,r){return En(e,t,n,Xi,Sr(Td()),Tt(e,2,-2),0,r)}function os(e,t,n,r,o){return En(e,t,n,xr,Tt(e,0,r),Tt(e,r+1,-1),r,o)}function is(e,t,n){switch(Sd(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 4789:return Zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Zt+e+Q+e+e;case 5936:switch(le(e,t+11)){case 114:return U+e+Q+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+Q+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+Q+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+Q+e+e;case 6165:return U+e+Q+"flex-"+e+e;case 5187:return U+e+B(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return U+e+Q+"flex-item-"+B(e,/flex-|-self/g,"")+(He(e,/flex-|baseline/)?"":Q+"grid-row-"+B(e,/flex-|-self/g,""))+e;case 4675:return U+e+Q+"flex-line-pack"+B(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+Q+B(e,"shrink","negative")+e;case 5292:return U+e+Q+B(e,"basis","preferred-size")+e;case 6060:return U+"box-"+B(e,"-grow","")+U+e+Q+B(e,"grow","positive")+e;case 4554:return U+B(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!He(e,/flex-|baseline/))return Q+"grid-column-align"+Tt(e,t)+e;break;case 2592:case 3360:return Q+B(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,He(r.props,/grid-\w+-end/)})?~kn(e+(n=n[t].value),"span",0)?e:Q+B(e,"-start","")+e+Q+"grid-row-span:"+(~kn(n,"span",0)?He(n,/\d+/):+He(n,/\d+/)-+He(e,/\d+/))+";":Q+B(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return He(r.props,/grid-\w+-start/)})?e:Q+B(B(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Oe(e)-1-t>6)switch(le(e,t+1)){case 109:if(le(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Zt+(le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~kn(e,"stretch",0)?is(B(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return B(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,c){return Q+o+":"+i+c+(s?Q+o+"-span:"+(a?l:+l-+i)+c:"")+e});case 4949:if(le(e,t+6)===121)return B(e,":",":"+U)+e;break;case 6444:switch(le(e,le(e,14)===45?18:11)){case 120:return B(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(le(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+Q+"$2box$3")+e;case 100:return B(e,":",":"+Q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(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 Id(e,t,n,r){switch(e.type){case xd:if(e.children.length)break;case bd:case xr:return e.return=e.return||e.value;case Xi:return"";case Zi:return e.return=e.value+"{"+Vn(e.children,r)+"}";case $n:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=Vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rd(e){var t=es(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 Ld(e){return function(t){t.root||(t=t.return)&&e(t)}}function _d(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xr:e.return=is(e.value,e.length,n);return;case Zi:return Vn([Ze(e,{value:B(e.value,"@","@"+U)})],r);case $n:if(e.length)return Cd(n=e.props,function(o){switch(He(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Pt(Ze(e,{props:[B(o,/:(read-\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[o]})),Cr(e,{props:ts(n,r)});break;case"::placeholder":Pt(Ze(e,{props:[B(o,/:(plac\w+)/,":"+U+"input-$1")]})),Pt(Ze(e,{props:[B(o,/:(plac\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[B(o,/:(plac\w+)/,Q+"input-$1")]})),Pt(Ze(e,{props:[o]})),Cr(e,{props:ts(n,r)});break}return""})}}var Nd={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},dt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ss="active",as="data-styled-version",Fn="6.1.19",Pr=`/*!sc*/
|
|
2
2
|
`,In=typeof window<"u"&&typeof document<"u",Od=!!(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"),ls=/invalid hook call/i,Rn=new Set,Bd=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.
|
|
@@ -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 ef(){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 Dt(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(ef.apply(void 0,ct([Qd[e]],t,!1)).trim())}var tf=(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 Dt(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(Pr);return n},e})(),nf=1<<30,Nn=new Map,On=new Map,Bn=1,zn=function(e){if(Nn.has(e))return Nn.get(e);for(;On.has(Bn);)Bn++;var t=Bn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>nf))throw Dt(16,"".concat(t));return Nn.set(e,t),On.set(t,e),t},rf=function(e,t){Bn=t+1,Nn.set(e,t),On.set(t,e)},of="style[".concat(dt,"][").concat(as,'="').concat(Fn,'"]'),sf=new RegExp("^".concat(dt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),af=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)},lf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Pr),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(sf);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(rf(u,c),af(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},Ss=function(e){for(var t=document.querySelectorAll(of),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(dt)!==ss&&(lf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function cf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Cs=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(dt,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(dt,ss),r.setAttribute(as,Fn);var s=cf();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},uf=(function(){function e(t){this.element=Cs(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 Dt(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})(),df=(function(){function e(t){this.element=Cs(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})(),ff=(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})(),Ts=In,hf={isServer:!In,useCSSOMInjection:!Od},$s=(function(){function e(t,n,r){t===void 0&&(t=Et),n===void 0&&(n={});var o=this;this.options=we(we({},hf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&In&&Ts&&(Ts=!1,Ss(this)),Rr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",c=function(d){var f=(function(v){return On.get(v)})(d);if(f===void 0)return"continue";var h=i.names.get(f),m=s.getGroup(d);if(h===void 0||!h.size||m.length===0)return"continue";var y="".concat(dt,".g").concat(d,'[id="').concat(f,'"]'),w="";h!==void 0&&h.forEach(function(v){v.length>0&&(w+="".concat(v,","))}),l+="".concat(m).concat(y,'{content:"').concat(w,'"}').concat(Pr)},u=0;u<a;u++)c(u);return l})(o)})}return e.registerId=function(t){return zn(t)},e.prototype.rehydrate=function(){!this.server&&In&&Ss(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(we(we({},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 ff(o):r?new uf(o):new df(o)})(this.options),new tf(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(zn(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(zn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(zn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),pf=/&/g,mf=/^\s*\/\/.*$/gm;function ks(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=ks(n.children,t)),n})}function gf(e){var t,n,r,o=Et,i=o.options,s=i===void 0?Et:i,a=o.plugins,l=a===void 0?Ln:a,c=function(f,h,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):f},u=l.slice();u.push(function(f){f.type===$n&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(pf,n).replace(r,c))}),s.prefix&&u.push(_d),u.push(Id);var d=function(f,h,m,y){h===void 0&&(h=""),m===void 0&&(m=""),y===void 0&&(y="&"),t=y,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(mf,""),v=Vd(m||h?"".concat(m," ").concat(h," { ").concat(w," }"):w);s.namespace&&(v=ks(v,s.namespace));var C=[];return Vn(v,Rd(u.concat(Ld(function(b){return C.push(b)})))),C};return d.hash=l.length?l.reduce(function(f,h){return h.name||Dt(15),ft(f,h.name)},ds).toString():"",d}var yf=new $s,Lr=gf(),Ps=p.createContext({shouldForwardProp:void 0,styleSheet:yf,stylis:Lr});Ps.Consumer,p.createContext(void 0);function Es(){return p.useContext(Ps)}var _r=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Lr);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,Rr(this,function(){throw Dt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Lr),this.name+t.hash},e})(),vf=function(e){return e>="A"&&e<="Z"};function Ms(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;vf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var As=function(e){return e==null||e===!1||e===""},Ds=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!As(i)&&(Array.isArray(i)&&i.isCss||Mt(i)?r.push("".concat(Ms(o),":"),i,";"):At(i)?r.push.apply(r,ct(ct(["".concat(o," {")],Ds(i),!1),["}"],!1)):r.push("".concat(Ms(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Nd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function pt(e,t,n,r){if(As(e))return[];if(Vr(e))return[".".concat(e.styledComponentId)];if(Mt(e)){if(!Mt(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 _r||At(o)||o===null||console.error("".concat(ps(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.")),pt(o,t,n,r)}var i;return e instanceof _r?n?(e.inject(n,r),[e.getName(r)]):[e]:At(e)?Ds(e):Array.isArray(e)?Array.prototype.concat.apply(Ln,e.map(function(s){return pt(s,t,n,r)})):[e.toString()]}function wf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mt(n)&&!Vr(n))return!1}return!0}var bf=fs(Fn),xf=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&wf(t),this.componentId=n,this.baseHash=ft(bf,n),this.baseStyle=r,$s.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=ht(o,this.staticRulesId);else{var i=Fr(pt(this.rules,t,n,r)),s=Mr(ft(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=ht(o,s),this.staticRulesId=s}else{for(var l=ft(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")c+=d,process.env.NODE_ENV!=="production"&&(l=ft(l,d));else if(d){var f=Fr(pt(d,t,n,r));l=ft(l,f+u),c+=f}}if(c){var h=Mr(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),o=ht(o,h)}}return o},e})(),Vs=p.createContext(void 0);Vs.Consumer;var Nr={},Fs=new Set;function Sf(e,t,n){var r=Vr(e),o=e,i=!Dr(e),s=t.attrs,a=s===void 0?Ln:s,l=t.componentId,c=l===void 0?(function(k,S){var P=typeof k!="string"?"sc":cs(k);Nr[P]=(Nr[P]||0)+1;var E="".concat(P,"-").concat(hs(Fn+P+Nr[P]));return S?"".concat(S,"-").concat(E):E})(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?(function(k){return Dr(k)?"styled.".concat(k):"Styled(".concat(ps(k),")")})(e):u,f=t.displayName&&t.componentId?"".concat(cs(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;m=function(k,S){return y(k,S)&&w(k,S)}}else m=y}var v=new xf(n,f,r?o.componentStyle:void 0);function C(k,S){return(function(P,E,M){var A=P.attrs,V=P.componentStyle,N=P.defaultProps,H=P.foldedComponentIds,j=P.styledComponentId,K=P.target,Z=p.useContext(Vs),_=Es(),F=P.shouldForwardProp||_.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(j);var W=zd(E,Z,N)||Et,Y=(function(X,ce,Le){for(var G,Se=we(we({},ce),{className:void 0,theme:Le}),st=0;st<X.length;st+=1){var Ye=Mt(G=X[st])?G(Se):G;for(var ve in Ye)Se[ve]=ve==="className"?ht(Se[ve],Ye[ve]):ve==="style"?we(we({},Se[ve]),Ye[ve]):Ye[ve]}return ce.className&&(Se.className=ht(Se.className,ce.className)),Se})(A,E,W),J=Y.as||K,fe={};for(var ae in Y)Y[ae]===void 0||ae[0]==="$"||ae==="as"||ae==="theme"&&Y.theme===W||(ae==="forwardedAs"?fe.as=Y.forwardedAs:F&&!F(ae,J)||(fe[ae]=Y[ae],F||process.env.NODE_ENV!=="development"||wd(ae)||Fs.has(ae)||!Er.has(J)||(Fs.add(ae),console.warn('styled-components: it looks like an unknown prop "'.concat(ae,'" 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 z=(function(X,ce){var Le=Es(),G=X.generateAndInjectStyles(ce,Le.styleSheet,Le.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(G),G})(V,Y);process.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(z);var ee=ht(H,j);return z&&(ee+=" "+z),Y.className&&(ee+=" "+Y.className),fe[Dr(J)&&!Er.has(J)?"class":"className"]=ee,M&&(fe.ref=M),p.createElement(J,fe)})(b,k,S)}C.displayName=d;var b=p.forwardRef(C);return b.attrs=h,b.componentStyle=v,b.displayName=d,b.shouldForwardProp=m,b.foldedComponentIds=r?ht(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?(function(S){for(var P=[],E=1;E<arguments.length;E++)P[E-1]=arguments[E];for(var M=0,A=P;M<A.length;M++)Ir(S,A[M],!0);return S})({},o.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(Bd(d,f),b.warnTooManyClasses=(function(k,S){var P={},E=!1;return function(M){if(!E&&(P[M]=!0,Object.keys(P).length>=200)){var A=S?' with the id of "'.concat(S,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(A,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ef(){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 Dt(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(ef.apply(void 0,ct([Qd[e]],t,!1)).trim())}var tf=(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 Dt(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(Pr);return n},e})(),nf=1<<30,Nn=new Map,On=new Map,Bn=1,zn=function(e){if(Nn.has(e))return Nn.get(e);for(;On.has(Bn);)Bn++;var t=Bn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>nf))throw Dt(16,"".concat(t));return Nn.set(e,t),On.set(t,e),t},rf=function(e,t){Bn=t+1,Nn.set(e,t),On.set(t,e)},of="style[".concat(dt,"][").concat(as,'="').concat(Fn,'"]'),sf=new RegExp("^".concat(dt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),af=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)},lf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Pr),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(sf);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(rf(u,c),af(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},Ss=function(e){for(var t=document.querySelectorAll(of),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(dt)!==ss&&(lf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function cf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Cs=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(dt,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(dt,ss),r.setAttribute(as,Fn);var s=cf();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},uf=(function(){function e(t){this.element=Cs(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 Dt(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})(),df=(function(){function e(t){this.element=Cs(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})(),ff=(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})(),Ts=In,hf={isServer:!In,useCSSOMInjection:!Od},$s=(function(){function e(t,n,r){t===void 0&&(t=Et),n===void 0&&(n={});var o=this;this.options=we(we({},hf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&In&&Ts&&(Ts=!1,Ss(this)),Rr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",c=function(d){var f=(function(v){return On.get(v)})(d);if(f===void 0)return"continue";var h=i.names.get(f),m=s.getGroup(d);if(h===void 0||!h.size||m.length===0)return"continue";var y="".concat(dt,".g").concat(d,'[id="').concat(f,'"]'),w="";h!==void 0&&h.forEach(function(v){v.length>0&&(w+="".concat(v,","))}),l+="".concat(m).concat(y,'{content:"').concat(w,'"}').concat(Pr)},u=0;u<a;u++)c(u);return l})(o)})}return e.registerId=function(t){return zn(t)},e.prototype.rehydrate=function(){!this.server&&In&&Ss(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(we(we({},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 ff(o):r?new uf(o):new df(o)})(this.options),new tf(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(zn(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(zn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(zn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),pf=/&/g,mf=/^\s*\/\/.*$/gm;function ks(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=ks(n.children,t)),n})}function gf(e){var t,n,r,o=Et,i=o.options,s=i===void 0?Et:i,a=o.plugins,l=a===void 0?Ln:a,c=function(f,h,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):f},u=l.slice();u.push(function(f){f.type===$n&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(pf,n).replace(r,c))}),s.prefix&&u.push(_d),u.push(Id);var d=function(f,h,m,y){h===void 0&&(h=""),m===void 0&&(m=""),y===void 0&&(y="&"),t=y,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(mf,""),v=Vd(m||h?"".concat(m," ").concat(h," { ").concat(w," }"):w);s.namespace&&(v=ks(v,s.namespace));var C=[];return Vn(v,Rd(u.concat(Ld(function(x){return C.push(x)})))),C};return d.hash=l.length?l.reduce(function(f,h){return h.name||Dt(15),ft(f,h.name)},ds).toString():"",d}var yf=new $s,Lr=gf(),Ps=p.createContext({shouldForwardProp:void 0,styleSheet:yf,stylis:Lr});Ps.Consumer,p.createContext(void 0);function Es(){return p.useContext(Ps)}var _r=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Lr);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,Rr(this,function(){throw Dt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Lr),this.name+t.hash},e})(),vf=function(e){return e>="A"&&e<="Z"};function Ms(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;vf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var As=function(e){return e==null||e===!1||e===""},Ds=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!As(i)&&(Array.isArray(i)&&i.isCss||Mt(i)?r.push("".concat(Ms(o),":"),i,";"):At(i)?r.push.apply(r,ct(ct(["".concat(o," {")],Ds(i),!1),["}"],!1)):r.push("".concat(Ms(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Nd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function pt(e,t,n,r){if(As(e))return[];if(Vr(e))return[".".concat(e.styledComponentId)];if(Mt(e)){if(!Mt(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 _r||At(o)||o===null||console.error("".concat(ps(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.")),pt(o,t,n,r)}var i;return e instanceof _r?n?(e.inject(n,r),[e.getName(r)]):[e]:At(e)?Ds(e):Array.isArray(e)?Array.prototype.concat.apply(Ln,e.map(function(s){return pt(s,t,n,r)})):[e.toString()]}function wf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mt(n)&&!Vr(n))return!1}return!0}var bf=fs(Fn),xf=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&wf(t),this.componentId=n,this.baseHash=ft(bf,n),this.baseStyle=r,$s.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=ht(o,this.staticRulesId);else{var i=Fr(pt(this.rules,t,n,r)),s=Mr(ft(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=ht(o,s),this.staticRulesId=s}else{for(var l=ft(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")c+=d,process.env.NODE_ENV!=="production"&&(l=ft(l,d));else if(d){var f=Fr(pt(d,t,n,r));l=ft(l,f+u),c+=f}}if(c){var h=Mr(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),o=ht(o,h)}}return o},e})(),Vs=p.createContext(void 0);Vs.Consumer;var Nr={},Fs=new Set;function Sf(e,t,n){var r=Vr(e),o=e,i=!Dr(e),s=t.attrs,a=s===void 0?Ln:s,l=t.componentId,c=l===void 0?(function(E,b){var k=typeof E!="string"?"sc":cs(E);Nr[k]=(Nr[k]||0)+1;var P="".concat(k,"-").concat(hs(Fn+k+Nr[k]));return b?"".concat(b,"-").concat(P):P})(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?(function(E){return Dr(E)?"styled.".concat(E):"Styled(".concat(ps(E),")")})(e):u,f=t.displayName&&t.componentId?"".concat(cs(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;m=function(E,b){return y(E,b)&&w(E,b)}}else m=y}var v=new xf(n,f,r?o.componentStyle:void 0);function C(E,b){return(function(k,P,M){var A=k.attrs,V=k.componentStyle,N=k.defaultProps,H=k.foldedComponentIds,j=k.styledComponentId,K=k.target,Z=p.useContext(Vs),_=Es(),F=k.shouldForwardProp||_.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(j);var W=zd(P,Z,N)||Et,Y=(function(X,ce,Le){for(var G,Se=we(we({},ce),{className:void 0,theme:Le}),st=0;st<X.length;st+=1){var Ye=Mt(G=X[st])?G(Se):G;for(var ve in Ye)Se[ve]=ve==="className"?ht(Se[ve],Ye[ve]):ve==="style"?we(we({},Se[ve]),Ye[ve]):Ye[ve]}return ce.className&&(Se.className=ht(Se.className,ce.className)),Se})(A,P,W),J=Y.as||K,fe={};for(var ae in Y)Y[ae]===void 0||ae[0]==="$"||ae==="as"||ae==="theme"&&Y.theme===W||(ae==="forwardedAs"?fe.as=Y.forwardedAs:F&&!F(ae,J)||(fe[ae]=Y[ae],F||process.env.NODE_ENV!=="development"||wd(ae)||Fs.has(ae)||!Er.has(J)||(Fs.add(ae),console.warn('styled-components: it looks like an unknown prop "'.concat(ae,'" 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 z=(function(X,ce){var Le=Es(),G=X.generateAndInjectStyles(ce,Le.styleSheet,Le.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(G),G})(V,Y);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(z);var ee=ht(H,j);return z&&(ee+=" "+z),Y.className&&(ee+=" "+Y.className),fe[Dr(J)&&!Er.has(J)?"class":"className"]=ee,M&&(fe.ref=M),p.createElement(J,fe)})(x,E,b)}C.displayName=d;var x=p.forwardRef(C);return x.attrs=h,x.componentStyle=v,x.displayName=d,x.shouldForwardProp=m,x.foldedComponentIds=r?ht(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=f,x.target=r?o.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=r?(function(b){for(var k=[],P=1;P<arguments.length;P++)k[P-1]=arguments[P];for(var M=0,A=k;M<A.length;M++)Ir(b,A[M],!0);return b})({},o.defaultProps,E):E}}),process.env.NODE_ENV!=="production"&&(Bd(d,f),x.warnTooManyClasses=(function(E,b){var k={},P=!1;return function(M){if(!P&&(k[M]=!0,Object.keys(k).length>=200)){var A=b?' with the id of "'.concat(b,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(E).concat(A,`.
|
|
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,149 +53,149 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),P=!0,k={}}}})(d,f)),Rr(x,function(){return".".concat(x.styledComponentId)}),i&&xs(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Is(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 Rs=function(e){return Object.assign(e,{isCss:!0})};function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mt(e)||At(e))return Rs(pt(Is(Ln,ct([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?pt(r):Rs(pt(Is(r,t)))}function Or(e,t,n){if(n===void 0&&(n=Et),!t)throw Dt(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,S.apply(void 0,ct([o],i,!1)))};return r.attrs=function(o){return Or(e,t,we(we({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Or(e,t,we(we({},n),o))},r}var Ls=function(e){return Or(Sf,e)},$=Ls;Er.forEach(function(e){$[e]=Ls(e)});function Cf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Fr(S.apply(void 0,ct([e],t,!1))),o=hs(r);return new _r(o,r)}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
58
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Hn="__sc-".concat(dt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Hn]||(window[Hn]=0),window[Hn]===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[Hn]+=1);const Br={80:
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:S`
|
|
61
61
|
font-family: 'Dax', serif;
|
|
62
62
|
font-size: 5em;
|
|
63
63
|
font-style: normal;
|
|
64
64
|
font-weight: 700;
|
|
65
65
|
line-height: 163.184%;
|
|
66
|
-
`,60:
|
|
66
|
+
`,60:S`
|
|
67
67
|
font-family: 'Dax', serif;
|
|
68
68
|
font-size: 3.75em;
|
|
69
69
|
font-style: normal;
|
|
70
70
|
font-weight: 700;
|
|
71
71
|
line-height: 161.76%;
|
|
72
|
-
`,40:
|
|
72
|
+
`,40:S`
|
|
73
73
|
font-family: 'Dax', serif;
|
|
74
74
|
font-size: 2.5em;
|
|
75
75
|
font-style: normal;
|
|
76
76
|
font-weight: 700;
|
|
77
77
|
line-height: 161.76%;
|
|
78
|
-
`,30:
|
|
78
|
+
`,30:S`
|
|
79
79
|
font-family: 'Dax', serif;
|
|
80
80
|
font-size: 1.875em;
|
|
81
81
|
font-style: normal;
|
|
82
82
|
font-weight: 700;
|
|
83
83
|
line-height: 161.76%;
|
|
84
|
-
`,24:
|
|
84
|
+
`,24:S`
|
|
85
85
|
font-family: 'Dax', serif;
|
|
86
86
|
font-size: 1.5em;
|
|
87
87
|
font-style: normal;
|
|
88
88
|
font-weight: 700;
|
|
89
89
|
line-height: 163.184%;
|
|
90
|
-
`,20:
|
|
90
|
+
`,20:S`
|
|
91
91
|
font-family: 'Dax', serif;
|
|
92
92
|
font-size: 1.25em;
|
|
93
93
|
font-style: normal;
|
|
94
94
|
font-weight: 700;
|
|
95
95
|
line-height: 161.76%;
|
|
96
|
-
`,16:
|
|
96
|
+
`,16:S`
|
|
97
97
|
font-family: 'Dax', serif;
|
|
98
98
|
font-size: 1em;
|
|
99
99
|
font-style: normal;
|
|
100
100
|
font-weight: 700;
|
|
101
101
|
line-height: 161.76%;
|
|
102
|
-
`},_s={80:
|
|
102
|
+
`},_s={80:S`
|
|
103
103
|
font-family: 'Dax', serif;
|
|
104
104
|
font-size: 5em;
|
|
105
105
|
font-style: normal;
|
|
106
106
|
font-weight: 400;
|
|
107
107
|
line-height: 163.184%;
|
|
108
|
-
`,60:
|
|
108
|
+
`,60:S`
|
|
109
109
|
font-family: 'Dax', serif;
|
|
110
110
|
font-size: 3.75em;
|
|
111
111
|
font-style: normal;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
line-height: 161.76%;
|
|
114
|
-
`,40:
|
|
114
|
+
`,40:S`
|
|
115
115
|
font-family: 'Dax', serif;
|
|
116
116
|
font-size: 2.5em;
|
|
117
117
|
font-style: normal;
|
|
118
118
|
font-weight: 400;
|
|
119
119
|
line-height: 161.76%;
|
|
120
|
-
`,30:
|
|
120
|
+
`,30:S`
|
|
121
121
|
font-family: 'Dax', serif;
|
|
122
122
|
font-size: 1.875em;
|
|
123
123
|
font-style: normal;
|
|
124
124
|
font-weight: 400;
|
|
125
125
|
line-height: 161.76%;
|
|
126
|
-
`,24:
|
|
126
|
+
`,24:S`
|
|
127
127
|
font-family: 'Dax', serif;
|
|
128
128
|
font-size: 1.5em;
|
|
129
129
|
font-style: normal;
|
|
130
130
|
font-weight: 400;
|
|
131
131
|
line-height: 163.184%;
|
|
132
|
-
`,20:
|
|
132
|
+
`,20:S`
|
|
133
133
|
font-family: 'Dax', serif;
|
|
134
134
|
font-size: 1.25em;
|
|
135
135
|
font-style: normal;
|
|
136
136
|
font-weight: 400;
|
|
137
137
|
line-height: 161.76%;
|
|
138
|
-
`,16:
|
|
138
|
+
`,16:S`
|
|
139
139
|
font-family: 'Dax', serif;
|
|
140
140
|
font-size: 1em;
|
|
141
141
|
font-style: normal;
|
|
142
142
|
font-weight: 400;
|
|
143
143
|
line-height: 161.76%;
|
|
144
|
-
`},D={80:
|
|
144
|
+
`},D={80:S`
|
|
145
145
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
146
146
|
font-size: 5em;
|
|
147
147
|
font-style: normal;
|
|
148
148
|
font-weight: 400;
|
|
149
149
|
line-height: 155.962%;
|
|
150
|
-
`,60:
|
|
150
|
+
`,60:S`
|
|
151
151
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
152
152
|
font-size: 3.75em;
|
|
153
153
|
font-style: normal;
|
|
154
154
|
font-weight: 400;
|
|
155
155
|
line-height: 176.782%;
|
|
156
|
-
`,40:
|
|
156
|
+
`,40:S`
|
|
157
157
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
158
158
|
font-size: 2.5em;
|
|
159
159
|
font-style: normal;
|
|
160
160
|
font-weight: 400;
|
|
161
161
|
line-height: 176.782%;
|
|
162
|
-
`,30:
|
|
162
|
+
`,30:S`
|
|
163
163
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
164
164
|
font-size: 1.875em;
|
|
165
165
|
font-style: normal;
|
|
166
166
|
font-weight: 400;
|
|
167
167
|
line-height: 176.782%;
|
|
168
|
-
`,24:
|
|
168
|
+
`,24:S`
|
|
169
169
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
170
170
|
font-size: 1.5em;
|
|
171
171
|
font-style: normal;
|
|
172
172
|
font-weight: 400;
|
|
173
173
|
line-height: 176.782%;
|
|
174
|
-
`,20:
|
|
174
|
+
`,20:S`
|
|
175
175
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
176
176
|
font-size: 1.25em;
|
|
177
177
|
font-style: normal;
|
|
178
178
|
font-weight: 400;
|
|
179
179
|
line-height: 155.962%;
|
|
180
|
-
`,18:
|
|
180
|
+
`,18:S`
|
|
181
181
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
182
182
|
font-size: 1.125em;
|
|
183
183
|
font-style: normal;
|
|
184
184
|
font-weight: 400;
|
|
185
185
|
line-height: 150.782%;
|
|
186
|
-
`,16:
|
|
186
|
+
`,16:S`
|
|
187
187
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
188
188
|
font-size: 1em;
|
|
189
189
|
font-style: normal;
|
|
190
190
|
font-weight: 400;
|
|
191
191
|
line-height: 140%;
|
|
192
|
-
`,14:
|
|
192
|
+
`,14:S`
|
|
193
193
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
194
194
|
font-size: 0.875em;
|
|
195
195
|
font-style: normal;
|
|
196
196
|
font-weight: 400;
|
|
197
197
|
line-height: 140%;
|
|
198
|
-
`,12:
|
|
198
|
+
`,12:S`
|
|
199
199
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
200
200
|
font-size: 0.75em;
|
|
201
201
|
font-style: normal;
|
|
@@ -223,7 +223,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
223
223
|
outline: none;
|
|
224
224
|
box-shadow: var(--shadow-hover-black-card);
|
|
225
225
|
}
|
|
226
|
-
`,Os={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},q=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Os?Os[t]:t;return g.jsx($f,{$color:n,className:r,children:typeof e=="function"?g.jsx(e,{size:i,...o}):e})},zr=p.createContext({});function Hr(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const jr=typeof window<"u",Bs=jr?p.useLayoutEffect:p.useEffect,jn=p.createContext(null);function Gr(e,t){e.indexOf(t)===-1&&e.push(t)}function Ur(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ge=(e,t,n)=>n>t?t:n<e?e:n;function Wr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Vt=()=>{},Ue=()=>{};process.env.NODE_ENV!=="production"&&(Vt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Wr(t,n))},Ue=(e,t,n)=>{if(!e)throw new Error(Wr(t,n))});const We={},zs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Hs(e){return typeof e=="object"&&e!==null}const js=e=>/^0[^.\s]+$/u.test(e);function Kr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pe=e=>e,kf=(e,t)=>n=>t(e(n)),Qt=(...e)=>e.reduce(kf),en=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class qr{constructor(){this.subscriptions=[]}add(t){return Gr(this.subscriptions,t),()=>Ur(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 Fe=e=>e*1e3,Ee=e=>e/1e3;function Gs(e,t){return t?e*(1e3/t):0}const Us=new Set;function Yr(e,t,n){e||Us.has(t)||(console.warn(Wr(t,n)),Us.add(t))}const Ws=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Pf=1e-7,Ef=12;function Mf(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ws(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Pf&&++a<Ef);return s}function tn(e,t,n,r){if(e===t&&n===r)return Pe;const o=i=>Mf(i,0,1,e,n);return i=>i===0||i===1?i:Ws(o(i),t,r)}const Ks=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qs=e=>t=>1-e(1-t),Ys=tn(.33,1.53,.69,.99),Xr=qs(Ys),Xs=Ks(Xr),Zs=e=>(e*=2)<1?.5*Xr(e):.5*(2-Math.pow(2,-10*(e-1))),Zr=e=>1-Math.sin(Math.acos(e)),Js=qs(Zr),Qs=Ks(Zr),Af=tn(.42,0,1,1),Df=tn(0,0,.58,1),ea=tn(.42,0,.58,1),Vf=e=>Array.isArray(e)&&typeof e[0]!="number",ta=e=>Array.isArray(e)&&typeof e[0]=="number",na={linear:Pe,easeIn:Af,easeInOut:ea,easeOut:Df,circIn:Zr,circInOut:Qs,circOut:Js,backIn:Xr,backInOut:Xs,backOut:Ys,anticipate:Zs},Ff=e=>typeof e=="string",ra=e=>{if(ta(e)){Ue(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return tn(t,n,r,o)}else if(Ff(e))return Ue(na[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),na[e];return e},Gn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function If(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const m=f&&o?n:r;return d&&s.add(u),m.has(u)||m.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const Rf=40;function oa(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Gn.reduce((b,k)=>(b[k]=If(i),b),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:m}=s,y=()=>{const b=We.useManualTiming?o.timestamp:performance.now();n=!1,We.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,Rf),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),h.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Gn.reduce((b,k)=>{const S=s[k];return b[k]=(P,E=!1,M=!1)=>(n||w(),S.schedule(P,E,M)),b},{}),cancel:b=>{for(let k=0;k<Gn.length;k++)s[Gn[k]].cancel(b)},state:o,steps:s}}const{schedule:te,cancel:Je,state:de,steps:Jr}=oa(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let Un;function Lf(){Un=void 0}const be={now:()=>(Un===void 0&&be.set(de.isProcessing||We.useManualTiming?de.timestamp:performance.now()),Un),set:e=>{Un=e,queueMicrotask(Lf)}},ia=e=>t=>typeof t=="string"&&t.startsWith(e),Qr=ia("--"),_f=ia("var(--"),eo=e=>_f(e)?Nf.test(e.split("/*")[0].trim()):!1,Nf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ft={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nn={...Ft,transform:e=>Ge(0,1,e)},Wn={...Ft,default:1},rn=e=>Math.round(e*1e5)/1e5,to=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Of(e){return e==null}const Bf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,no=(e,t)=>n=>!!(typeof n=="string"&&Bf.test(n)&&n.startsWith(e)||t&&!Of(n)&&Object.prototype.hasOwnProperty.call(n,t)),sa=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(to);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zf=e=>Ge(0,255,e),ro={...Ft,transform:e=>Math.round(zf(e))},mt={test:no("rgb","red"),parse:sa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ro.transform(e)+", "+ro.transform(t)+", "+ro.transform(n)+", "+rn(nn.transform(r))+")"};function Hf(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 oo={test:no("#"),parse:Hf,transform:mt.transform},on=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=on("deg"),Be=on("%"),L=on("px"),jf=on("vh"),Gf=on("vw"),aa={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},It={test:no("hsl","hue"),parse:sa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(rn(t))+", "+Be.transform(rn(n))+", "+rn(nn.transform(r))+")"},se={test:e=>mt.test(e)||oo.test(e)||It.test(e),parse:e=>mt.test(e)?mt.parse(e):It.test(e)?It.parse(e):oo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mt.transform(e):It.transform(e),getAnimatableNone:e=>{const t=se.parse(e);return t.alpha=0,se.transform(t)}},Uf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wf(e){return isNaN(e)&&typeof e=="string"&&(e.match(to)?.length||0)+(e.match(Uf)?.length||0)>0}const la="number",ca="color",Kf="var",qf="var(",ua="${}",Yf=/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 sn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Yf,l=>(se.test(l)?(r.color.push(i),o.push(ca),n.push(se.parse(l))):l.startsWith(qf)?(r.var.push(i),o.push(Kf),n.push(l)):(r.number.push(i),o.push(la),n.push(parseFloat(l))),++i,ua)).split(ua);return{values:n,split:a,indexes:r,types:o}}function da(e){return sn(e).values}function fa(e){const{split:t,types:n}=sn(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===la?i+=rn(o[s]):a===ca?i+=se.transform(o[s]):i+=o[s]}return i}}const Xf=e=>typeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function Zf(e){const t=da(e);return fa(e)(t.map(Xf))}const et={test:Wf,parse:da,createTransformer:fa,getAnimatableNone:Zf};function io(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 Jf({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=io(l,a,e+1/3),i=io(l,a,e),s=io(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Kn(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,so=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Qf=[oo,mt,It],eh=e=>Qf.find(t=>t.test(e));function ha(e){const t=eh(e);if(Vt(!!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===It&&(n=Jf(n)),n}const pa=(e,t)=>{const n=ha(e),r=ha(t);if(!n||!r)return Kn(e,t);const o={...n};return i=>(o.red=so(n.red,r.red,i),o.green=so(n.green,r.green,i),o.blue=so(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),mt.transform(o))},ao=new Set(["none","hidden"]);function th(e,t){return ao.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nh(e,t){return n=>ne(e,t,n)}function lo(e){return typeof e=="number"?nh:typeof e=="string"?eo(e)?Kn:se.test(e)?pa:ih:Array.isArray(e)?ma:typeof e=="object"?se.test(e)?pa:rh:Kn}function ma(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>lo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function rh(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=lo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function oh(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 ih=(e,t)=>{const n=et.createTransformer(t),r=sn(e),o=sn(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?ao.has(e)&&!o.values.length||ao.has(t)&&!r.values.length?th(e,t):Qt(ma(oh(r,o),o.values),n):(Vt(!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"),Kn(e,t))};function ga(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):lo(e)(e,t)}const sh=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>te.update(t,n),stop:()=>Je(t),now:()=>de.isProcessing?de.timestamp:be.now()}},ya=(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)})`},qn=2e4;function co(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<qn;)t+=n,r=e.next(t);return t>=qn?1/0:t}function ah(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(co(r),qn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ee(o)}}const lh=5;function va(e,t,n){const r=Math.max(t-lh,0);return Gs(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},uo=.001;function ch({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Vt(e<=Fe(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ge(re.minDamping,re.maxDamping,s),e=Ge(re.minDuration,re.maxDuration,Ee(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,h=fo(c,s),m=Math.exp(-d);return uo-f/h*m},i=c=>{const d=c*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),y=fo(Math.pow(c,2),s);return(-o(c)+uo>0?-1:1)*((f-h)*m)/y}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-uo+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=dh(o,i,a);if(e=Fe(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const uh=12;function dh(e,t,n){let r=n;for(let o=1;o<uh;o++)r=r-e(r)/t(r);return r}function fo(e,t){return e*Math.sqrt(1-t*t)}const fh=["duration","bounce"],hh=["stiffness","damping","mass"];function wa(e,t){return t.some(n=>e[n]!==void 0)}function ph(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!wa(e,hh)&&wa(e,fh))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ge(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=ch(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Yn(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=ph({...n,velocity:-Ee(n.velocity||0)}),m=f||0,y=c/(2*Math.sqrt(l*u)),w=s-i,v=Ee(Math.sqrt(l/u)),C=Math.abs(w)<5;r||(r=C?re.restSpeed.granular:re.restSpeed.default),o||(o=C?re.restDelta.granular:re.restDelta.default);let b;if(y<1){const S=fo(v,y);b=P=>{const E=Math.exp(-y*v*P);return s-E*((m+y*v*w)/S*Math.sin(S*P)+w*Math.cos(S*P))}}else if(y===1)b=S=>s-Math.exp(-v*S)*(w+(m+v*w)*S);else{const S=v*Math.sqrt(y*y-1);b=P=>{const E=Math.exp(-y*v*P),M=Math.min(S*P,300);return s-E*((m+y*v*w)*Math.sinh(M)+S*w*Math.cosh(M))/S}}const k={calculatedDuration:h&&d||null,next:S=>{const P=b(S);if(h)a.done=S>=d;else{let E=S===0?m:0;y<1&&(E=S===0?Fe(m):va(b,S,P));const M=Math.abs(E)<=r,A=Math.abs(s-P)<=o;a.done=M&&A}return a.value=a.done?s:P,a},toString:()=>{const S=Math.min(co(k),qn),P=ya(E=>k.next(S*E).value,S,30);return S+"ms "+P},toTransition:()=>{}};return k}Yn.applyToOptions=e=>{const t=ah(e,100,Yn);return e.ease=t.ease,e.duration=Fe(t.duration),e.type="keyframes",e};function ho({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let y=n*t;const w=d+y,v=s===void 0?w:s(w);v!==w&&(y=v-d);const C=M=>-y*Math.exp(-M/r),b=M=>v+C(M),k=M=>{const A=C(M),V=b(M);f.done=Math.abs(A)<=c,f.value=f.done?v:V};let S,P;const E=M=>{h(f.value)&&(S=M,P=Yn({keyframes:[f.value,m(f.value)],velocity:va(b,M,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:M=>{let A=!1;return!P&&S===void 0&&(A=!0,k(M),E(M)),S!==void 0&&M>=S?P.next(M-S):(!A&&k(M),f)}}}function mh(e,t,n){const r=[],o=n||We.mix||ga,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=Qt(l,a)}r.push(a)}return r}function gh(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ue(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=mh(t,r,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=en(e[d],e[d+1],u);return a[d](f)};return n?u=>c(Ge(e[0],e[i-1],u)):c}function yh(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=en(0,t,r);e.push(ne(n,1,o))}}function vh(e){const t=[0];return yh(t,e.length-1),t}function wh(e,t){return e.map(n=>n*t)}function bh(e,t){return e.map(()=>t||ea).splice(0,e.length-1)}function Rt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Vf(r)?r.map(ra):ra(r),i={done:!1,value:t[0]},s=wh(n&&n.length===t.length?n:vh(t),e),a=gh(s,t,{ease:Array.isArray(o)?o:bh(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const xh=e=>e!==null;function po(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(xh),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Sh={decay:ho,inertia:ho,tween:Rt,keyframes:Rt,spring:Yn};function ba(e){typeof e.type=="string"&&(e.type=Sh[e.type])}class mo{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 Ch=e=>e/100;class go extends mo{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!==be.now()&&this.tick(be.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;ba(t);const{type:n=Rt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Rt;process.env.NODE_ENV!=="production"&&l!==Rt&&Ue(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Rt&&typeof a[0]!="number"&&(this.mixKeyframes=Qt(Ch,ga(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=co(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}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:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:m,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=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,k=r;if(d){const M=Math.min(this.currentTime,o)/a;let A=Math.floor(M),V=M%1;!V&&M>=1&&(V=1),V===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(f==="reverse"?(V=1-V,h&&(V-=h/a)):f==="mirror"&&(k=s)),b=Ge(0,1,V)*a}const S=C?{done:!1,value:u[0]}:k.next(b);i&&(S.value=i(S.value));let{done:P}=S;!C&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&m!==ho&&(S.value=po(u,this.options,w,this.speed)),y&&y(S.value),E&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return Ee(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(this.currentTime)}set time(t){t=Fe(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(be.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=sh,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(be.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 Th(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gt=e=>e*180/Math.PI,yo=e=>{const t=gt(Math.atan2(e[1],e[0]));return vo(t)},$h={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yo,rotateZ:yo,skewX:e=>gt(Math.atan(e[1])),skewY:e=>gt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vo=e=>(e=e%360,e<0&&(e+=360),e),xa=yo,Sa=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ca=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sa,scaleY:Ca,scale:e=>(Sa(e)+Ca(e))/2,rotateX:e=>vo(gt(Math.atan2(e[6],e[5]))),rotateY:e=>vo(gt(Math.atan2(-e[2],e[0]))),rotateZ:xa,rotate:xa,skewX:e=>gt(Math.atan(e[4])),skewY:e=>gt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wo(e){return e.includes("scale")?1:0}function bo(e,t){if(!e||e==="none")return wo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=kh,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=$h,o=a}if(!o)return wo(t);const i=r[t],s=o[1].split(",").map(Eh);return typeof i=="function"?i(s):s[i]}const Ph=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return bo(n,t)};function Eh(e){return parseFloat(e.trim())}const Lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Lt),Ta=e=>e===Ft||e===L,Mh=new Set(["x","y","z"]),Ah=Lt.filter(e=>!Mh.has(e));function Dh(e){const t=[];return Ah.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yt={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})=>bo(t,"x"),y:(e,{transform:t})=>bo(t,"y")};yt.translateX=yt.x,yt.translateY=yt.y;const vt=new Set;let xo=!1,So=!1,Co=!1;function $a(){if(So){const e=Array.from(vt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Dh(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)})}So=!1,xo=!1,vt.forEach(e=>e.complete(Co)),vt.clear()}function ka(){vt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(So=!0)})}function Vh(){Co=!0,ka(),$a(),Co=!1}class To{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?(vt.add(this),xo||(xo=!0,te.read(ka),te.resolveKeyframes($a))):(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])}Th(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vt.delete(this)}cancel(){this.state==="scheduled"&&(vt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Fh=e=>e.startsWith("--");function Ih(e,t,n){Fh(t)?e.style.setProperty(t,n):e.style[t]=n}const Rh=Kr(()=>window.ScrollTimeline!==void 0),Lh={};function _h(e,t){const n=Kr(e);return()=>Lh[t]??n()}const Pa=_h(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),an=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ea={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:an([0,.65,.55,1]),circOut:an([.55,0,1,.45]),backIn:an([.31,.01,.66,-.59]),backOut:an([.33,1.53,.69,.99])};function Ma(e,t){if(e)return typeof e=="function"?Pa()?ya(e,t):"ease-out":ta(e)?an(e):Array.isArray(e)?e.map(n=>Ma(n,t)||Ea.easeOut):Ea[e]}function Nh(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Ma(a,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function Aa(e){return typeof e=="function"&&"applyToOptions"in e}function Oh({type:e,...t}){return Aa(e)&&Pa()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Bh extends mo{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,Ue(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Oh(t);this.animation=Nh(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=po(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Ih(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ee(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Fe(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&&Rh()?(this.animation.timeline=t,Pe):n(this)}}const Da={anticipate:Zs,backInOut:Xs,circInOut:Qs};function zh(e){return e in Da}function Hh(e){typeof e.ease=="string"&&zh(e.ease)&&(e.ease=Da[e.ease])}const Va=10;class jh extends Bh{constructor(t){Hh(t),ba(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 go({...s,autoplay:!1}),l=Fe(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Va).value,a.sample(l).value,Va),a.stop()}}const Fa=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(et.test(e)||e==="0")&&!e.startsWith("url("));function Gh(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 Uh(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=Fa(o,t),a=Fa(i,t);return Vt(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:Gh(e)||(n==="spring"||Aa(n))&&r}function $o(e){e.duration=0,e.type="keyframes"}const Wh=new Set(["opacity","clipPath","filter","transform"]),Kh=Kr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qh(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:c}=t.owner.getProps();return Kh()&&n&&Wh.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Yh=40;class Xh extends mo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=be.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},h=u?.KeyframeResolver||To;this.keyframeResolver=new h(a,(m,y,w)=>this.onKeyframesResolved(m,y,f,!w),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=be.now(),Uh(t,i,s,a)||((We.instantAnimations||!l)&&u?.(po(t,r,n)),t[0]=t[t.length-1],$o(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Yh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!c&&qh(f)?new jh({...f,element:f.motionValue.owner.current}):new go(f);h.finished.then(()=>this.notifyFinished()).catch(Pe),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),Vh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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 Zh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jh(e){const t=Zh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Qh=4;function Ia(e,t,n=1){Ue(n<=Qh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Jh(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return zs(s)?parseFloat(s):s}return eo(o)?Ia(o,t,n+1):o}function ko(e,t){return e?.[t]??e?.default??e}const Ra=new Set(["width","height","top","left","right","bottom",...Lt]),ep={test:e=>e==="auto",parse:e=>e},La=e=>t=>t.test(e),_a=[Ft,L,Be,Qe,Gf,jf,ep],Na=e=>_a.find(La(e));function tp(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||js(e):!0}const np=new Set(["brightness","contrast","saturate","opacity"]);function rp(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(to)||[];if(!r)return e;const o=n.replace(r,"");let i=np.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const op=/\b([a-z-]*)\(.*?\)/gu,Po={...et,getAnimatableNone:e=>{const t=e.match(op);return t?t.map(rp).join(" "):e}},Oa={...Ft,transform:Math.round},Eo={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L,...{rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:Wn,scaleX:Wn,scaleY:Wn,scaleZ:Wn,skew:Qe,skewX:Qe,skewY:Qe,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:nn,originX:aa,originY:aa,originZ:L},zIndex:Oa,fillOpacity:nn,strokeOpacity:nn,numOctaves:Oa},ip={...Eo,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Po,WebkitFilter:Po},Ba=e=>ip[e];function za(e,t){let n=Ba(e);return n!==Po&&(n=et),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const sp=new Set(["auto","none","0"]);function ap(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!sp.has(i)&&sn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=za(n,o)}class lp extends To{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 c=t[l];if(typeof c=="string"&&(c=c.trim(),eo(c))){const u=Ia(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ra.has(r)||t.length!==2)return;const[o,i]=t,s=Na(o),a=Na(i);if(s!==a)if(Ta(s)&&Ta(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else yt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||tp(t[o]))&&r.push(o);r.length&&ap(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=yt[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]=yt[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 cp(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 Ha=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ja(e){return Hs(e)&&"offsetHeight"in e}const Ga=30,up=e=>!isNaN(parseFloat(e));class dp{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=be.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=be.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=up(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Yr(!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 qr);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ga)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ga);return Gs(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 Nt(e,t){return new dp(e,t)}const{schedule:Mo}=oa(queueMicrotask,!1),Ie={x:!1,y:!1};function Ua(){return Ie.x||Ie.y}function fp(e){return e==="x"||e==="y"?Ie[e]?null:(Ie[e]=!0,()=>{Ie[e]=!1}):Ie.x||Ie.y?null:(Ie.x=Ie.y=!0,()=>{Ie.x=Ie.y=!1})}function Wa(e,t){const n=cp(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Ka(e){return!(e.pointerType==="touch"||Ua())}function hp(e,t,n={}){const[r,o,i]=Wa(e,n),s=a=>{if(!Ka(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Ka(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const qa=(e,t)=>t?e===t?!0:qa(e,t.parentElement):!1,Ao=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,pp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mp(e){return pp.has(e.tagName)||e.tabIndex!==-1}const Xn=new WeakSet;function Ya(e){return t=>{t.key==="Enter"&&e(t)}}function Do(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const gp=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ya(()=>{if(Xn.has(n))return;Do(n,"down");const o=Ya(()=>{Do(n,"up")}),i=()=>Do(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 Xa(e){return Ao(e)&&!Ua()}function yp(e,t,n={}){const[r,o,i]=Wa(e,n),s=a=>{const l=a.currentTarget;if(!Xa(a))return;Xn.add(l);const c=t(l,a),u=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Xn.has(l)&&Xn.delete(l),Xa(h)&&typeof c=="function"&&c(h,{success:m})},d=h=>{u(h,l===window||l===document||n.useGlobalTarget||qa(l,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ja(a)&&(a.addEventListener("focus",c=>gp(c,o)),!mp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Za(e){return Hs(e)&&"ownerSVGElement"in e}function vp(e){return Za(e)&&e.tagName==="svg"}const pe=e=>!!(e&&e.getVelocity),wp=[..._a,se,et],bp=e=>wp.find(La(e)),Vo=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ja(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xp(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ja(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ja(e[o],null)}}}}function Sp(...e){return lt.useCallback(xp(...e),e)}class Cp extends lt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ja(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 Tp({children:e,isPresent:t,anchorX:n,root:r}){const o=p.useId(),i=p.useRef(null),s=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=p.useContext(Vo),l=Sp(i,e?.ref);return p.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:f,right:h}=s.current;if(t||!i.current||!c||!u)return;const m=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const w=r??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
226
|
+
`,Os={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},q=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Os?Os[t]:t;return g.jsx($f,{$color:n,className:r,children:typeof e=="function"?g.jsx(e,{size:i,...o}):e})},zr=p.createContext({});function Hr(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const jr=typeof window<"u",Bs=jr?p.useLayoutEffect:p.useEffect,jn=p.createContext(null);function Gr(e,t){e.indexOf(t)===-1&&e.push(t)}function Ur(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ge=(e,t,n)=>n>t?t:n<e?e:n;function Wr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Vt=()=>{},Ue=()=>{};process.env.NODE_ENV!=="production"&&(Vt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Wr(t,n))},Ue=(e,t,n)=>{if(!e)throw new Error(Wr(t,n))});const We={},zs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Hs(e){return typeof e=="object"&&e!==null}const js=e=>/^0[^.\s]+$/u.test(e);function Kr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pe=e=>e,kf=(e,t)=>n=>t(e(n)),Qt=(...e)=>e.reduce(kf),en=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class qr{constructor(){this.subscriptions=[]}add(t){return Gr(this.subscriptions,t),()=>Ur(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 Fe=e=>e*1e3,Ee=e=>e/1e3;function Gs(e,t){return t?e*(1e3/t):0}const Us=new Set;function Yr(e,t,n){e||Us.has(t)||(console.warn(Wr(t,n)),Us.add(t))}const Ws=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Pf=1e-7,Ef=12;function Mf(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ws(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Pf&&++a<Ef);return s}function tn(e,t,n,r){if(e===t&&n===r)return Pe;const o=i=>Mf(i,0,1,e,n);return i=>i===0||i===1?i:Ws(o(i),t,r)}const Ks=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qs=e=>t=>1-e(1-t),Ys=tn(.33,1.53,.69,.99),Xr=qs(Ys),Xs=Ks(Xr),Zs=e=>(e*=2)<1?.5*Xr(e):.5*(2-Math.pow(2,-10*(e-1))),Zr=e=>1-Math.sin(Math.acos(e)),Js=qs(Zr),Qs=Ks(Zr),Af=tn(.42,0,1,1),Df=tn(0,0,.58,1),ea=tn(.42,0,.58,1),Vf=e=>Array.isArray(e)&&typeof e[0]!="number",ta=e=>Array.isArray(e)&&typeof e[0]=="number",na={linear:Pe,easeIn:Af,easeInOut:ea,easeOut:Df,circIn:Zr,circInOut:Qs,circOut:Js,backIn:Xr,backInOut:Xs,backOut:Ys,anticipate:Zs},Ff=e=>typeof e=="string",ra=e=>{if(ta(e)){Ue(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return tn(t,n,r,o)}else if(Ff(e))return Ue(na[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),na[e];return e},Gn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function If(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const m=f&&o?n:r;return d&&s.add(u),m.has(u)||m.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const Rf=40;function oa(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Gn.reduce((x,E)=>(x[E]=If(i),x),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:m}=s,y=()=>{const x=We.useManualTiming?o.timestamp:performance.now();n=!1,We.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(x-o.timestamp,Rf),1)),o.timestamp=x,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),h.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Gn.reduce((x,E)=>{const b=s[E];return x[E]=(k,P=!1,M=!1)=>(n||w(),b.schedule(k,P,M)),x},{}),cancel:x=>{for(let E=0;E<Gn.length;E++)s[Gn[E]].cancel(x)},state:o,steps:s}}const{schedule:te,cancel:Je,state:de,steps:Jr}=oa(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let Un;function Lf(){Un=void 0}const be={now:()=>(Un===void 0&&be.set(de.isProcessing||We.useManualTiming?de.timestamp:performance.now()),Un),set:e=>{Un=e,queueMicrotask(Lf)}},ia=e=>t=>typeof t=="string"&&t.startsWith(e),Qr=ia("--"),_f=ia("var(--"),eo=e=>_f(e)?Nf.test(e.split("/*")[0].trim()):!1,Nf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ft={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nn={...Ft,transform:e=>Ge(0,1,e)},Wn={...Ft,default:1},rn=e=>Math.round(e*1e5)/1e5,to=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Of(e){return e==null}const Bf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,no=(e,t)=>n=>!!(typeof n=="string"&&Bf.test(n)&&n.startsWith(e)||t&&!Of(n)&&Object.prototype.hasOwnProperty.call(n,t)),sa=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(to);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zf=e=>Ge(0,255,e),ro={...Ft,transform:e=>Math.round(zf(e))},mt={test:no("rgb","red"),parse:sa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ro.transform(e)+", "+ro.transform(t)+", "+ro.transform(n)+", "+rn(nn.transform(r))+")"};function Hf(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 oo={test:no("#"),parse:Hf,transform:mt.transform},on=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=on("deg"),Be=on("%"),L=on("px"),jf=on("vh"),Gf=on("vw"),aa={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},It={test:no("hsl","hue"),parse:sa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(rn(t))+", "+Be.transform(rn(n))+", "+rn(nn.transform(r))+")"},se={test:e=>mt.test(e)||oo.test(e)||It.test(e),parse:e=>mt.test(e)?mt.parse(e):It.test(e)?It.parse(e):oo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mt.transform(e):It.transform(e),getAnimatableNone:e=>{const t=se.parse(e);return t.alpha=0,se.transform(t)}},Uf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wf(e){return isNaN(e)&&typeof e=="string"&&(e.match(to)?.length||0)+(e.match(Uf)?.length||0)>0}const la="number",ca="color",Kf="var",qf="var(",ua="${}",Yf=/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 sn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Yf,l=>(se.test(l)?(r.color.push(i),o.push(ca),n.push(se.parse(l))):l.startsWith(qf)?(r.var.push(i),o.push(Kf),n.push(l)):(r.number.push(i),o.push(la),n.push(parseFloat(l))),++i,ua)).split(ua);return{values:n,split:a,indexes:r,types:o}}function da(e){return sn(e).values}function fa(e){const{split:t,types:n}=sn(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===la?i+=rn(o[s]):a===ca?i+=se.transform(o[s]):i+=o[s]}return i}}const Xf=e=>typeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function Zf(e){const t=da(e);return fa(e)(t.map(Xf))}const et={test:Wf,parse:da,createTransformer:fa,getAnimatableNone:Zf};function io(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 Jf({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=io(l,a,e+1/3),i=io(l,a,e),s=io(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Kn(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,so=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Qf=[oo,mt,It],eh=e=>Qf.find(t=>t.test(e));function ha(e){const t=eh(e);if(Vt(!!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===It&&(n=Jf(n)),n}const pa=(e,t)=>{const n=ha(e),r=ha(t);if(!n||!r)return Kn(e,t);const o={...n};return i=>(o.red=so(n.red,r.red,i),o.green=so(n.green,r.green,i),o.blue=so(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),mt.transform(o))},ao=new Set(["none","hidden"]);function th(e,t){return ao.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nh(e,t){return n=>ne(e,t,n)}function lo(e){return typeof e=="number"?nh:typeof e=="string"?eo(e)?Kn:se.test(e)?pa:ih:Array.isArray(e)?ma:typeof e=="object"?se.test(e)?pa:rh:Kn}function ma(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>lo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function rh(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=lo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function oh(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 ih=(e,t)=>{const n=et.createTransformer(t),r=sn(e),o=sn(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?ao.has(e)&&!o.values.length||ao.has(t)&&!r.values.length?th(e,t):Qt(ma(oh(r,o),o.values),n):(Vt(!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"),Kn(e,t))};function ga(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):lo(e)(e,t)}const sh=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>te.update(t,n),stop:()=>Je(t),now:()=>de.isProcessing?de.timestamp:be.now()}},ya=(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)})`},qn=2e4;function co(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<qn;)t+=n,r=e.next(t);return t>=qn?1/0:t}function ah(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(co(r),qn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ee(o)}}const lh=5;function va(e,t,n){const r=Math.max(t-lh,0);return Gs(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},uo=.001;function ch({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Vt(e<=Fe(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ge(re.minDamping,re.maxDamping,s),e=Ge(re.minDuration,re.maxDuration,Ee(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,h=fo(c,s),m=Math.exp(-d);return uo-f/h*m},i=c=>{const d=c*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),y=fo(Math.pow(c,2),s);return(-o(c)+uo>0?-1:1)*((f-h)*m)/y}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-uo+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=dh(o,i,a);if(e=Fe(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const uh=12;function dh(e,t,n){let r=n;for(let o=1;o<uh;o++)r=r-e(r)/t(r);return r}function fo(e,t){return e*Math.sqrt(1-t*t)}const fh=["duration","bounce"],hh=["stiffness","damping","mass"];function wa(e,t){return t.some(n=>e[n]!==void 0)}function ph(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!wa(e,hh)&&wa(e,fh))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ge(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=ch(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Yn(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=ph({...n,velocity:-Ee(n.velocity||0)}),m=f||0,y=c/(2*Math.sqrt(l*u)),w=s-i,v=Ee(Math.sqrt(l/u)),C=Math.abs(w)<5;r||(r=C?re.restSpeed.granular:re.restSpeed.default),o||(o=C?re.restDelta.granular:re.restDelta.default);let x;if(y<1){const b=fo(v,y);x=k=>{const P=Math.exp(-y*v*k);return s-P*((m+y*v*w)/b*Math.sin(b*k)+w*Math.cos(b*k))}}else if(y===1)x=b=>s-Math.exp(-v*b)*(w+(m+v*w)*b);else{const b=v*Math.sqrt(y*y-1);x=k=>{const P=Math.exp(-y*v*k),M=Math.min(b*k,300);return s-P*((m+y*v*w)*Math.sinh(M)+b*w*Math.cosh(M))/b}}const E={calculatedDuration:h&&d||null,next:b=>{const k=x(b);if(h)a.done=b>=d;else{let P=b===0?m:0;y<1&&(P=b===0?Fe(m):va(x,b,k));const M=Math.abs(P)<=r,A=Math.abs(s-k)<=o;a.done=M&&A}return a.value=a.done?s:k,a},toString:()=>{const b=Math.min(co(E),qn),k=ya(P=>E.next(b*P).value,b,30);return b+"ms "+k},toTransition:()=>{}};return E}Yn.applyToOptions=e=>{const t=ah(e,100,Yn);return e.ease=t.ease,e.duration=Fe(t.duration),e.type="keyframes",e};function ho({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let y=n*t;const w=d+y,v=s===void 0?w:s(w);v!==w&&(y=v-d);const C=M=>-y*Math.exp(-M/r),x=M=>v+C(M),E=M=>{const A=C(M),V=x(M);f.done=Math.abs(A)<=c,f.value=f.done?v:V};let b,k;const P=M=>{h(f.value)&&(b=M,k=Yn({keyframes:[f.value,m(f.value)],velocity:va(x,M,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return P(0),{calculatedDuration:null,next:M=>{let A=!1;return!k&&b===void 0&&(A=!0,E(M),P(M)),b!==void 0&&M>=b?k.next(M-b):(!A&&E(M),f)}}}function mh(e,t,n){const r=[],o=n||We.mix||ga,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=Qt(l,a)}r.push(a)}return r}function gh(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ue(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=mh(t,r,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=en(e[d],e[d+1],u);return a[d](f)};return n?u=>c(Ge(e[0],e[i-1],u)):c}function yh(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=en(0,t,r);e.push(ne(n,1,o))}}function vh(e){const t=[0];return yh(t,e.length-1),t}function wh(e,t){return e.map(n=>n*t)}function bh(e,t){return e.map(()=>t||ea).splice(0,e.length-1)}function Rt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Vf(r)?r.map(ra):ra(r),i={done:!1,value:t[0]},s=wh(n&&n.length===t.length?n:vh(t),e),a=gh(s,t,{ease:Array.isArray(o)?o:bh(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const xh=e=>e!==null;function po(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(xh),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Sh={decay:ho,inertia:ho,tween:Rt,keyframes:Rt,spring:Yn};function ba(e){typeof e.type=="string"&&(e.type=Sh[e.type])}class mo{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 Ch=e=>e/100;class go extends mo{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!==be.now()&&this.tick(be.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;ba(t);const{type:n=Rt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Rt;process.env.NODE_ENV!=="production"&&l!==Rt&&Ue(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Rt&&typeof a[0]!="number"&&(this.mixKeyframes=Qt(Ch,ga(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=co(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}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:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:m,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,E=r;if(d){const M=Math.min(this.currentTime,o)/a;let A=Math.floor(M),V=M%1;!V&&M>=1&&(V=1),V===1&&A--,A=Math.min(A,d+1),!!(A%2)&&(f==="reverse"?(V=1-V,h&&(V-=h/a)):f==="mirror"&&(E=s)),x=Ge(0,1,V)*a}const b=C?{done:!1,value:u[0]}:E.next(x);i&&(b.value=i(b.value));let{done:k}=b;!C&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&m!==ho&&(b.value=po(u,this.options,w,this.speed)),y&&y(b.value),P&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Ee(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(this.currentTime)}set time(t){t=Fe(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(be.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=sh,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(be.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 Th(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gt=e=>e*180/Math.PI,yo=e=>{const t=gt(Math.atan2(e[1],e[0]));return vo(t)},$h={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yo,rotateZ:yo,skewX:e=>gt(Math.atan(e[1])),skewY:e=>gt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vo=e=>(e=e%360,e<0&&(e+=360),e),xa=yo,Sa=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ca=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sa,scaleY:Ca,scale:e=>(Sa(e)+Ca(e))/2,rotateX:e=>vo(gt(Math.atan2(e[6],e[5]))),rotateY:e=>vo(gt(Math.atan2(-e[2],e[0]))),rotateZ:xa,rotate:xa,skewX:e=>gt(Math.atan(e[4])),skewY:e=>gt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wo(e){return e.includes("scale")?1:0}function bo(e,t){if(!e||e==="none")return wo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=kh,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=$h,o=a}if(!o)return wo(t);const i=r[t],s=o[1].split(",").map(Eh);return typeof i=="function"?i(s):s[i]}const Ph=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return bo(n,t)};function Eh(e){return parseFloat(e.trim())}const Lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Lt),Ta=e=>e===Ft||e===L,Mh=new Set(["x","y","z"]),Ah=Lt.filter(e=>!Mh.has(e));function Dh(e){const t=[];return Ah.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yt={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})=>bo(t,"x"),y:(e,{transform:t})=>bo(t,"y")};yt.translateX=yt.x,yt.translateY=yt.y;const vt=new Set;let xo=!1,So=!1,Co=!1;function $a(){if(So){const e=Array.from(vt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Dh(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)})}So=!1,xo=!1,vt.forEach(e=>e.complete(Co)),vt.clear()}function ka(){vt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(So=!0)})}function Vh(){Co=!0,ka(),$a(),Co=!1}class To{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?(vt.add(this),xo||(xo=!0,te.read(ka),te.resolveKeyframes($a))):(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])}Th(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vt.delete(this)}cancel(){this.state==="scheduled"&&(vt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Fh=e=>e.startsWith("--");function Ih(e,t,n){Fh(t)?e.style.setProperty(t,n):e.style[t]=n}const Rh=Kr(()=>window.ScrollTimeline!==void 0),Lh={};function _h(e,t){const n=Kr(e);return()=>Lh[t]??n()}const Pa=_h(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),an=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ea={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:an([0,.65,.55,1]),circOut:an([.55,0,1,.45]),backIn:an([.31,.01,.66,-.59]),backOut:an([.33,1.53,.69,.99])};function Ma(e,t){if(e)return typeof e=="function"?Pa()?ya(e,t):"ease-out":ta(e)?an(e):Array.isArray(e)?e.map(n=>Ma(n,t)||Ea.easeOut):Ea[e]}function Nh(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Ma(a,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function Aa(e){return typeof e=="function"&&"applyToOptions"in e}function Oh({type:e,...t}){return Aa(e)&&Pa()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Bh extends mo{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,Ue(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Oh(t);this.animation=Nh(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=po(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Ih(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ee(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Fe(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&&Rh()?(this.animation.timeline=t,Pe):n(this)}}const Da={anticipate:Zs,backInOut:Xs,circInOut:Qs};function zh(e){return e in Da}function Hh(e){typeof e.ease=="string"&&zh(e.ease)&&(e.ease=Da[e.ease])}const Va=10;class jh extends Bh{constructor(t){Hh(t),ba(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 go({...s,autoplay:!1}),l=Fe(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Va).value,a.sample(l).value,Va),a.stop()}}const Fa=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(et.test(e)||e==="0")&&!e.startsWith("url("));function Gh(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 Uh(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=Fa(o,t),a=Fa(i,t);return Vt(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:Gh(e)||(n==="spring"||Aa(n))&&r}function $o(e){e.duration=0,e.type="keyframes"}const Wh=new Set(["opacity","clipPath","filter","transform"]),Kh=Kr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qh(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:c}=t.owner.getProps();return Kh()&&n&&Wh.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Yh=40;class Xh extends mo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=be.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},h=u?.KeyframeResolver||To;this.keyframeResolver=new h(a,(m,y,w)=>this.onKeyframesResolved(m,y,f,!w),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=be.now(),Uh(t,i,s,a)||((We.instantAnimations||!l)&&u?.(po(t,r,n)),t[0]=t[t.length-1],$o(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Yh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!c&&qh(f)?new jh({...f,element:f.motionValue.owner.current}):new go(f);h.finished.then(()=>this.notifyFinished()).catch(Pe),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),Vh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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 Zh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jh(e){const t=Zh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Qh=4;function Ia(e,t,n=1){Ue(n<=Qh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Jh(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return zs(s)?parseFloat(s):s}return eo(o)?Ia(o,t,n+1):o}function ko(e,t){return e?.[t]??e?.default??e}const Ra=new Set(["width","height","top","left","right","bottom",...Lt]),ep={test:e=>e==="auto",parse:e=>e},La=e=>t=>t.test(e),_a=[Ft,L,Be,Qe,Gf,jf,ep],Na=e=>_a.find(La(e));function tp(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||js(e):!0}const np=new Set(["brightness","contrast","saturate","opacity"]);function rp(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(to)||[];if(!r)return e;const o=n.replace(r,"");let i=np.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const op=/\b([a-z-]*)\(.*?\)/gu,Po={...et,getAnimatableNone:e=>{const t=e.match(op);return t?t.map(rp).join(" "):e}},Oa={...Ft,transform:Math.round},Eo={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L,...{rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:Wn,scaleX:Wn,scaleY:Wn,scaleZ:Wn,skew:Qe,skewX:Qe,skewY:Qe,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:nn,originX:aa,originY:aa,originZ:L},zIndex:Oa,fillOpacity:nn,strokeOpacity:nn,numOctaves:Oa},ip={...Eo,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Po,WebkitFilter:Po},Ba=e=>ip[e];function za(e,t){let n=Ba(e);return n!==Po&&(n=et),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const sp=new Set(["auto","none","0"]);function ap(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!sp.has(i)&&sn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=za(n,o)}class lp extends To{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 c=t[l];if(typeof c=="string"&&(c=c.trim(),eo(c))){const u=Ia(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ra.has(r)||t.length!==2)return;const[o,i]=t,s=Na(o),a=Na(i);if(s!==a)if(Ta(s)&&Ta(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else yt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||tp(t[o]))&&r.push(o);r.length&&ap(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=yt[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]=yt[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 cp(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 Ha=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ja(e){return Hs(e)&&"offsetHeight"in e}const Ga=30,up=e=>!isNaN(parseFloat(e));class dp{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=be.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=be.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=up(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Yr(!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 qr);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ga)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ga);return Gs(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 Nt(e,t){return new dp(e,t)}const{schedule:Mo}=oa(queueMicrotask,!1),Ie={x:!1,y:!1};function Ua(){return Ie.x||Ie.y}function fp(e){return e==="x"||e==="y"?Ie[e]?null:(Ie[e]=!0,()=>{Ie[e]=!1}):Ie.x||Ie.y?null:(Ie.x=Ie.y=!0,()=>{Ie.x=Ie.y=!1})}function Wa(e,t){const n=cp(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Ka(e){return!(e.pointerType==="touch"||Ua())}function hp(e,t,n={}){const[r,o,i]=Wa(e,n),s=a=>{if(!Ka(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Ka(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const qa=(e,t)=>t?e===t?!0:qa(e,t.parentElement):!1,Ao=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,pp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mp(e){return pp.has(e.tagName)||e.tabIndex!==-1}const Xn=new WeakSet;function Ya(e){return t=>{t.key==="Enter"&&e(t)}}function Do(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const gp=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ya(()=>{if(Xn.has(n))return;Do(n,"down");const o=Ya(()=>{Do(n,"up")}),i=()=>Do(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 Xa(e){return Ao(e)&&!Ua()}function yp(e,t,n={}){const[r,o,i]=Wa(e,n),s=a=>{const l=a.currentTarget;if(!Xa(a))return;Xn.add(l);const c=t(l,a),u=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Xn.has(l)&&Xn.delete(l),Xa(h)&&typeof c=="function"&&c(h,{success:m})},d=h=>{u(h,l===window||l===document||n.useGlobalTarget||qa(l,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ja(a)&&(a.addEventListener("focus",c=>gp(c,o)),!mp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Za(e){return Hs(e)&&"ownerSVGElement"in e}function vp(e){return Za(e)&&e.tagName==="svg"}const pe=e=>!!(e&&e.getVelocity),wp=[..._a,se,et],bp=e=>wp.find(La(e)),Vo=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ja(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xp(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ja(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ja(e[o],null)}}}}function Sp(...e){return lt.useCallback(xp(...e),e)}class Cp extends lt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ja(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 Tp({children:e,isPresent:t,anchorX:n,root:r}){const o=p.useId(),i=p.useRef(null),s=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=p.useContext(Vo),l=Sp(i,e?.ref);return p.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:f,right:h}=s.current;if(t||!i.current||!c||!u)return;const m=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const w=r??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
227
227
|
[data-motion-pop-id="${o}"] {
|
|
228
228
|
position: absolute !important;
|
|
229
229
|
width: ${c}px !important;
|
|
@@ -231,25 +231,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
231
231
|
${m}px !important;
|
|
232
232
|
top: ${d}px !important;
|
|
233
233
|
}
|
|
234
|
-
`),()=>{w.contains(y)&&w.removeChild(y)}},[t]),g.jsx(Cp,{isPresent:t,childRef:i,sizeRef:s,children:lt.cloneElement(e,{ref:l})})}const $p=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=Hr(kp),u=p.useId();let d=!0,f=p.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&d&&(f={...f}),p.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[n]),lt.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(Tp,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(jn.Provider,{value:f,children:e})};function kp(){return new Map}function Qa(e=!0){const t=p.useContext(jn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=p.useId();p.useEffect(()=>{if(e)return o(i)},[e]);const s=p.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Zn=e=>e.key||"";function el(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const ln=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=Qa(s),d=p.useMemo(()=>el(e),[e]),f=s&&!c?[]:d.map(Zn),h=p.useRef(!0),m=p.useRef(d),y=Hr(()=>new Map),[w,v]=p.useState(d),[C,b]=p.useState(d);Bs(()=>{h.current=!1,m.current=d;for(let P=0;P<C.length;P++){const E=Zn(C[P]);f.includes(E)?y.delete(E):y.get(E)!==!0&&y.set(E,!1)}},[C,f.length,f.join("-")]);const k=[];if(d!==w){let P=[...d];for(let E=0;E<C.length;E++){const M=C[E],A=Zn(M);f.includes(A)||(P.splice(E,0,M),k.push(M))}return i==="wait"&&k.length&&(P=k),b(el(P)),v(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&C.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:S}=p.useContext(zr);return g.jsx(g.Fragment,{children:C.map(P=>{const E=Zn(P),M=s&&!c?!1:d===C||f.includes(E),A=()=>{if(y.has(E))y.set(E,!0);else return;let V=!0;y.forEach(N=>{N||(V=!1)}),V&&(S?.(),b(m.current),s&&u?.(),r&&r())};return g.jsx($p,{isPresent:M,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:M?void 0:A,anchorX:a,children:P},E)})})},tl=p.createContext({strict:!1}),nl={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"]},Ot={};for(const e in nl)Ot[e]={isEnabled:t=>nl[e].some(n=>!!t[n])};function Pp(e){for(const t in e)Ot[t]={...Ot[t],...e[t]}}const Ep=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")||Ep.has(e)}let rl=e=>!Jn(e);function Mp(e){typeof e=="function"&&(rl=t=>t.startsWith("on")?!Jn(t):e(t))}try{Mp(require("@emotion/is-prop-valid").default)}catch{}function Ap(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rl(o)||n===!0&&Jn(o)||!t&&!Jn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Qn=p.createContext({});function er(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function cn(e){return typeof e=="string"||Array.isArray(e)}const Fo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Io=["initial",...Fo];function tr(e){return er(e.animate)||Io.some(t=>cn(e[t]))}function ol(e){return!!(tr(e)||e.variants)}function Dp(e,t){if(tr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||cn(n)?n:void 0,animate:cn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Vp(e){const{initial:t,animate:n}=Dp(e,p.useContext(Qn));return p.useMemo(()=>({initial:t,animate:n}),[il(t),il(n)])}function il(e){return Array.isArray(e)?e.join(" "):e}const un={};function Fp(e){for(const t in e)un[t]=e[t],Qr(t)&&(un[t].isCSSVariable=!0)}function sl(e,{layout:t,layoutId:n}){return _t.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!un[e]||e==="opacity")}const Ip={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rp=Lt.length;function Lp(e,t,n){let r="",o=!0;for(let i=0;i<Rp;i++){const s=Lt[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 c=Ha(a,Eo[s]);if(!l){o=!1;const u=Ip[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ro(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(_t.has(l)){s=!0;continue}else if(Qr(l)){o[l]=c;continue}else{const u=Ha(c,Eo[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=Lp(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const Lo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function al(e,t,n){for(const r in t)!pe(t[r])&&!sl(r,n)&&(e[r]=t[r])}function _p({transformTemplate:e},t){return p.useMemo(()=>{const n=Lo();return Ro(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Np(e,t){const n=e.style||{},r={};return al(r,n,e),Object.assign(r,_p(e,t)),r}function Op(e,t){const n={},r=Np(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 Bp={offset:"stroke-dashoffset",array:"stroke-dasharray"},zp={offset:"strokeDashoffset",array:"strokeDasharray"};function Hp(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Bp:zp;e[i.offset]=L.transform(-r);const s=L.transform(t),a=L.transform(n);e[i.array]=`${s} ${a}`}function ll(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(Ro(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&Hp(d,o,i,s,!1)}const cl=()=>({...Lo(),attrs:{}}),ul=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jp(e,t,n,r){const o=p.useMemo(()=>{const i=cl();return ll(i,t,ul(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};al(i,e.style,e),o.style={...i,...o.style}}return o}const Gp=["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 _o(e){return typeof e!="string"||e.includes("-")?!1:!!(Gp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Up(e,t,n,{latestValues:r},o,i=!1){const a=(_o(e)?jp:Op)(t,r,o,e),l=Ap(t,typeof e=="string",i),c=e!==p.Fragment?{...l,...a,ref:n}:{},{children:u}=t,d=p.useMemo(()=>pe(u)?u.get():u,[u]);return p.createElement(e,{...c,children:d})}function dl(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function No(e,t,n,r){if(typeof t=="function"){const[o,i]=dl(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]=dl(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function nr(e){return pe(e)?e.get():e}function Wp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Kp(n,r,o,e),renderState:t()}}function Kp(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=nr(i[f]);let{initial:s,animate:a}=e;const l=tr(e),c=ol(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!er(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const m=No(e,f[h]);if(m){const{transitionEnd:y,transition:w,...v}=m;for(const C in v){let b=v[C];if(Array.isArray(b)){const k=u?b.length-1:0;b=b[k]}b!==null&&(o[C]=b)}for(const C in y)o[C]=y[C]}}}return o}const fl=e=>(t,n)=>{const r=p.useContext(Qn),o=p.useContext(jn),i=()=>Wp(e,t,r,o);return n?i():Hr(i)};function Oo(e,t,n){const{style:r}=e,o={};for(const i in r)(pe(r[i])||t.style&&pe(t.style[i])||sl(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const qp=fl({scrapeMotionValuesFromProps:Oo,createRenderState:Lo});function hl(e,t,n){const r=Oo(e,t,n);for(const o in e)if(pe(e[o])||pe(t[o])){const i=Lt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Yp=fl({scrapeMotionValuesFromProps:hl,createRenderState:cl}),Xp=Symbol.for("motionComponentSymbol");function Bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Zp(e,t,n){return p.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bt(n)&&(n.current=r))},[t])}const Bo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pl="data-"+Bo("framerAppearId"),ml=p.createContext({});function Jp(e,t,n,r,o){const{visualElement:i}=p.useContext(Qn),s=p.useContext(tl),a=p.useContext(jn),l=p.useContext(Vo).reducedMotion,c=p.useRef(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=p.useContext(ml);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Qp(c.current,n,o,d);const f=p.useRef(!1);p.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});const h=n[pl],m=p.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return Bs(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),p.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),m.current=!1),u.enteringChildren=void 0)}),u}function Qp(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gl(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Bt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function gl(e){if(e)return e.options.allowProjection!==!1?e.projection:gl(e.parent)}function zo(e,{forwardMotionProps:t=!1}={},n,r){n&&Pp(n);const o=_o(e)?Yp:qp;function i(a,l){let c;const u={...p.useContext(Vo),...a,layoutId:em(a)},{isStatic:d}=u,f=Vp(a),h=o(a,d);if(!d&&jr){tm(u,n);const m=nm(u);c=m.MeasureLayout,f.visualElement=Jp(e,h,u,r,m.ProjectionNode)}return g.jsxs(Qn.Provider,{value:f,children:[c&&f.visualElement?g.jsx(c,{visualElement:f.visualElement,...u}):null,Up(e,a,Zp(h,f.visualElement,l),h,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=p.forwardRef(i);return s[Xp]=e,s}function em({layoutId:e}){const t=p.useContext(zr).id;return t&&e!==void 0?t+"-"+e:e}function tm(e,t){const n=p.useContext(tl).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?Vt(!1,r,"lazy-strict-mode"):Ue(!1,r,"lazy-strict-mode")}}function nm(e){const{drag:t,layout:n}=Ot;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function rm(e,t){if(typeof Proxy>"u")return zo;const n=new Map,r=(i,s)=>zo(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Yr(!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,zo(s,void 0,e,t)),n.get(s))})}function yl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function om({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function im(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 Ho(e){return e===void 0||e===1}function jo({scale:e,scaleX:t,scaleY:n}){return!Ho(e)||!Ho(t)||!Ho(n)}function wt(e){return jo(e)||vl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vl(e){return wl(e.x)||wl(e.y)}function wl(e){return e&&e!=="0%"}function rr(e,t,n){const r=e-n,o=t*r;return n+o}function bl(e,t,n,r,o){return o!==void 0&&(e=rr(e,o,r)),rr(e,n,r)+t}function Go(e,t=0,n=1,r,o){e.min=bl(e.min,t,n,r,o),e.max=bl(e.max,t,n,r,o)}function xl(e,{x:t,y:n}){Go(e.x,t.translate,t.scale,t.originPoint),Go(e.y,n.translate,n.scale,n.originPoint)}const Sl=.999999999999,Cl=1.0000000000001;function sm(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&&Ht(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,xl(e,s)),r&&wt(i.latestValues)&&Ht(e,i.latestValues))}t.x<Cl&&t.x>Sl&&(t.x=1),t.y<Cl&&t.y>Sl&&(t.y=1)}function zt(e,t){e.min=e.min+t,e.max=e.max+t}function Tl(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);Go(e,t,n,i,r)}function Ht(e,t){Tl(e.x,t.x,t.scaleX,t.scale,t.originX),Tl(e.y,t.y,t.scaleY,t.scale,t.originY)}function $l(e,t){return yl(im(e.getBoundingClientRect(),t))}function am(e,t,n){const r=$l(e,n),{scroll:o}=t;return o&&(zt(r.x,o.offset.x),zt(r.y,o.offset.y)),r}const kl=()=>({translate:0,scale:1,origin:0,originPoint:0}),jt=()=>({x:kl(),y:kl()}),Pl=()=>({min:0,max:0}),oe=()=>({x:Pl(),y:Pl()}),Uo={current:null},El={current:!1};function lm(){if(El.current=!0,!!jr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Uo.current=e.matches;e.addEventListener("change",t),t()}else Uo.current=!1}const cm=new WeakMap;function um(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,Nt(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,Nt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ml=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dm{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=To,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=be.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,te.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,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=tr(n),this.isVariantNode=ol(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&pe(h)&&h.set(l[f])}}mount(t){this.current=t,cm.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)),El.current||lm(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Uo.current,process.env.NODE_ENV!=="production"&&Yr(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(),Je(this.notifyUpdate),Je(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&&te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ot){const n=Ot[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):oe()}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<Ml.length;r++){const o=Ml[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=um(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=Nt(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"&&(zs(r)||js(r))?r=parseFloat(r):!bp(r)&&et.test(n)&&(r=za(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=No(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 qr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Mo.render(this.render)}}class Al extends dm{constructor(){super(...arguments),this.KeyframeResolver=lp}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 Dl(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 fm(e){return window.getComputedStyle(e)}class hm extends Al{constructor(){super(...arguments),this.type="html",this.renderInstance=Dl}readValueFromInstance(t,n){if(_t.has(n))return this.projection?.isProjecting?wo(n):Ph(t,n);{const r=fm(t),o=(Qr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $l(t,n)}build(t,n,r){Ro(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Oo(t,n,r)}}const Vl=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 pm(e,t,n,r){Dl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Vl.has(o)?o:Bo(o),t.attrs[o])}class mm extends Al{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=oe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_t.has(n)){const r=Ba(n);return r&&r.default||0}return n=Vl.has(n)?n:Bo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hl(t,n,r)}build(t,n,r){ll(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){pm(t,n,r,o)}mount(t){this.isSVGTag=ul(t.tagName),super.mount(t)}}const gm=(e,t)=>_o(e)?new mm(t):new hm(t,{allowProjection:e!==p.Fragment});function Gt(e,t,n){const r=e.getProps();return No(r,t,n!==void 0?n:r.custom,e)}const Wo=e=>Array.isArray(e);function ym(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nt(n))}function vm(e){return Wo(e)?e[e.length-1]||0:e}function wm(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=vm(i[s]);ym(e,s,a)}}function bm(e){return!!(pe(e)&&e.add)}function Ko(e,t){const n=e.getValue("willChange");if(bm(n))return n.add(t);if(!n&&We.WillChange){const r=new We.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Fl(e){return e.props[pl]}const xm=e=>e!==null;function Sm(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(xm),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const Cm={type:"spring",stiffness:500,damping:25,restSpeed:10},Tm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$m={type:"keyframes",duration:.8},km={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pm=(e,{keyframes:t})=>t.length>2?$m:_t.has(e)?e.startsWith("scale")?Tm(t[1]):Cm:km;function Em({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const qo=(e,t,n,r={},o,i)=>s=>{const a=ko(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fe(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,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};Em(a)||Object.assign(u,Pm(e,u)),u.duration&&(u.duration=Fe(u.duration)),u.repeatDelay&&(u.repeatDelay=Fe(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($o(u),u.delay===0&&(d=!0)),(We.instantAnimations||We.skipAnimations)&&(d=!0,$o(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=Sm(u.keyframes,a);if(f!==void 0){te.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new go(u):new Xh(u)};function Mm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Il(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),f=a[u];if(f===void 0||c&&Mm(c,u))continue;const h={delay:n,...ko(i||{},u)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Fl(e);if(v){const C=window.MotionHandoffAnimation(v,u,te);C!==null&&(h.startTime=C,y=!0)}}Ko(e,u),d.start(qo(u,d,f,e.shouldReduceMotion&&Ra.has(u)?{type:!1}:h,e,y));const w=d.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{te.update(()=>{s&&wm(e,s)})}),l}function Rl(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Yo(e,t,n={}){const r=Gt(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(Il(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return Am(e,t,l,c,u,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function Am(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(Yo(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Rl(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Dm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Yo(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Yo(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(Il(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ll(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 Vm=Io.length;function _l(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?_l(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Vm;n++){const r=Io[n],o=e.props[r];(cn(o)||o===!1)&&(t[r]=o)}return t}const Fm=[...Fo].reverse(),Im=Fo.length;function Rm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Dm(e,n,r)))}function Lm(e){let t=Rm(e),n=Nl(),r=!0;const o=l=>(c,u)=>{const d=Gt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:h,...m}=d;c={...c,...m,...h}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=_l(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let w=0;w<Im;w++){const v=Fm[w],C=n[v],b=c[v]!==void 0?c[v]:u[v],k=cn(b),S=v===l?C.isActive:null;S===!1&&(m=w);let P=b===u[v]&&b!==c[v]&&k;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),C.protectedKeys={...h},!C.isActive&&S===null||!b&&!C.prevProp||er(b)||typeof b=="boolean")continue;const E=_m(C.prevProp,b);let M=E||v===l&&C.isActive&&!P&&k||w>m&&k,A=!1;const V=Array.isArray(b)?b:[b];let N=V.reduce(o(v),{});S===!1&&(N={});const{prevResolvedValues:H={}}=C,j={...H,...N},K=F=>{M=!0,f.has(F)&&(A=!0,f.delete(F)),C.needsAnimating[F]=!0;const W=e.getValue(F);W&&(W.liveStyle=!1)};for(const F in j){const W=N[F],Y=H[F];if(h.hasOwnProperty(F))continue;let J=!1;Wo(W)&&Wo(Y)?J=!Ll(W,Y):J=W!==Y,J?W!=null?K(F):f.add(F):W!==void 0&&f.has(F)?K(F):C.protectedKeys[F]=!0}C.prevProp=b,C.prevResolvedValues=N,C.isActive&&(h={...h,...N}),r&&e.blockInitialAnimation&&(M=!1);const Z=P&&E;M&&(!Z||A)&&d.push(...V.map(F=>{const W={type:v};if(typeof F=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,J=Gt(Y,F);if(Y.enteringChildren&&J){const{delayChildren:fe}=J.transition||{};W.delay=Rl(Y.enteringChildren,e,fe)}}return{animation:F,options:W}}))}if(f.size){const w={};if(typeof c.initial!="boolean"){const v=Gt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(w.transition=v.transition)}f.forEach(v=>{const C=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),w[v]=C??null}),d.push({animation:w})}let y=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const u=s(l);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Nl(),r=!0}}}function _m(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ll(t,e):!1}function bt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nl(){return{animate:bt(!0),whileInView:bt(),whileHover:bt(),whileTap:bt(),whileDrag:bt(),whileFocus:bt(),exit:bt()}}class tt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Nm extends tt{constructor(t){super(t),t.animationState||(t.animationState=Lm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();er(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 Om=0;class Bm extends tt{constructor(){super(...arguments),this.id=Om++}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 zm={animation:{Feature:Nm},exit:{Feature:Bm}};function dn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fn(e){return{point:{x:e.pageX,y:e.pageY}}}const Hm=e=>t=>Ao(t)&&e(t,fn(t));function hn(e,t,n,r){return dn(e,t,Hm(n),r)}const Ol=1e-4,jm=1-Ol,Gm=1+Ol,Bl=.01,Um=0-Bl,Wm=0+Bl;function ye(e){return e.max-e.min}function Km(e,t,n){return Math.abs(e-t)<=n}function zl(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jm&&e.scale<=Gm||isNaN(e.scale))&&(e.scale=1),(e.translate>=Um&&e.translate<=Wm||isNaN(e.translate))&&(e.translate=0)}function pn(e,t,n,r){zl(e.x,t.x,n.x,r?r.originX:void 0),zl(e.y,t.y,n.y,r?r.originY:void 0)}function Hl(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function qm(e,t,n){Hl(e.x,t.x,n.x),Hl(e.y,t.y,n.y)}function jl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function mn(e,t,n){jl(e.x,t.x,n.x),jl(e.y,t.y,n.y)}function Me(e){return[e("x"),e("y")]}const Gl=({current:e})=>e?e.ownerDocument.defaultView:null,Ul=(e,t)=>Math.abs(e-t);function Ym(e,t){const n=Ul(e.x,t.x),r=Ul(e.y,t.y);return Math.sqrt(n**2+r**2)}class Wl{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=Zo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Ym(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:y}=f,{timestamp:w}=de;this.history.push({...y,timestamp:w});const{onStart:v,onMove:C}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Xo(h,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Zo(f.type==="pointercancel"?this.lastMoveEventInfo:Xo(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!Ao(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=fn(t),l=Xo(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=de;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Zo(l,this.history)),this.removeListeners=Qt(hn(this.contextWindow,"pointermove",this.handlePointerMove),hn(this.contextWindow,"pointerup",this.handlePointerUp),hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Je(this.updatePoint)}}function Xo(e,t){return t?{point:t(e.point)}:e}function Kl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zo({point:e},t){return{point:e,delta:Kl(e,ql(t)),offset:Kl(e,Xm(t)),velocity:Zm(t,.1)}}function Xm(e){return e[0]}function ql(e){return e[e.length-1]}function Zm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ql(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Fe(t)));)n--;if(!r)return{x:0,y:0};const i=Ee(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 Jm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Yl(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 Qm(e,{top:t,left:n,bottom:r,right:o}){return{x:Yl(e.x,n,o),y:Yl(e.y,t,r)}}function Xl(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 eg(e,t){return{x:Xl(e.x,t.x),y:Xl(e.y,t.y)}}function tg(e,t){let n=.5;const r=ye(e),o=ye(t);return o>r?n=en(t.min,t.max-r,e.min):r>o&&(n=en(e.min,e.max-o,t.min)),Ge(0,1,n)}function ng(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 Jo=.35;function rg(e=Jo){return e===!1?e=0:e===!0&&(e=Jo),{x:Zl(e,"left","right"),y:Zl(e,"top","bottom")}}function Zl(e,t,n){return{min:Jl(e,t),max:Jl(e,n)}}function Jl(e,t){return typeof e=="number"?e:e[t]||0}const og=new WeakMap;class ig{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=oe(),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=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fn(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fp(h),!this.openDragLock))return;this.latestPointerEvent=d,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),Me(v=>{let C=this.getAxisMotionValue(v).get()||0;if(Be.test(C)){const{projection:b}=this.visualElement;if(b&&b.layout){const k=b.layout.layoutBox[v];k&&(C=ye(k)*(parseFloat(C)/100))}}this.originPoint[v]=C}),y&&te.postRender(()=>y(d,f)),Ko(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=sg(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),w&&w(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Me(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Wl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Gl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&te.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!or(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Jm(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&&Bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Qm(r.layoutBox,t):this.constraints=!1,this.elastic=rg(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Me(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=ng(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bt(t))return!1;const r=t.current;Ue(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=am(r,o.root,this.visualElement.getTransformPagePoint());let s=eg(o.layout.layoutBox,i);if(n){const a=n(om(s));this.hasMutatedConstraints=!!a,a&&(s=yl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Me(u=>{if(!or(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ko(this.visualElement,t),r.start(qo(t,r,0,n,this.visualElement,!1))}stopAnimation(){Me(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Me(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){Me(n=>{const{drag:r}=this.getProps();if(!or(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Me(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=tg({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(),Me(s=>{if(!or(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;og.set(this.visualElement,this);const t=this.visualElement.current,n=hn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Bt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),te.read(r);const s=dn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Me(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Jo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function or(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ag extends tt{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new ig(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 Ql=e=>(t,n)=>{e&&te.postRender(()=>e(t,n))};class lg extends tt{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new Wl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Ql(t),onStart:Ql(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&te.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=hn(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 ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ec(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(L.test(e))e=parseFloat(e);else return e;const n=ec(e,t.target.x),r=ec(e,t.target.y);return`${n}% ${r}%`}},cg={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=et.parse(e);if(o.length>5)return r;const i=et.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 c=ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};let Qo=!1;class ug extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Fp(dg),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Qo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Qo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||te.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Mo.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Qo=!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 tc(e){const[t,n]=Qa(),r=p.useContext(zr);return g.jsx(ug,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(ml),isPresent:t,safeToRemove:n})}const dg={borderRadius:{...gn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gn,borderTopRightRadius:gn,borderBottomLeftRadius:gn,borderBottomRightRadius:gn,boxShadow:cg};function fg(e,t,n){const r=pe(e)?e:Nt(e);return r.start(qo("",r,t,n)),r.animation}const hg=(e,t)=>e.depth-t.depth;class pg{constructor(){this.children=[],this.isDirty=!1}add(t){Gr(this.children,t),this.isDirty=!0}remove(t){Ur(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hg),this.isDirty=!1,this.children.forEach(t)}}function mg(e,t){const n=be.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Je(r),e(i-t))};return te.setup(r,!0),()=>Je(r)}const nc=["TopLeft","TopRight","BottomLeft","BottomRight"],gg=nc.length,rc=e=>typeof e=="string"?parseFloat(e):e,oc=e=>typeof e=="number"||L.test(e);function yg(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,vg(r)),e.opacityExit=ne(t.opacity??1,0,wg(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<gg;s++){const a=`border${nc[s]}Radius`;let l=ic(t,a),c=ic(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||oc(l)===oc(c)?(e[a]=Math.max(ne(rc(l),rc(c),r),0),(Be.test(c)||Be.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function ic(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vg=sc(0,.5,Js),wg=sc(.5,.95,Pe);function sc(e,t,n){return r=>r<e?0:r>t?1:n(en(e,t,r))}function ac(e,t){e.min=t.min,e.max=t.max}function Ae(e,t){ac(e.x,t.x),ac(e.y,t.y)}function lc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cc(e,t,n,r,o){return e-=t,e=rr(e,1/n,r),o!==void 0&&(e=rr(e,1/o,r)),e}function bg(e,t=0,n=1,r=.5,o,i=e,s=e){if(Be.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=cc(e.min,t,n,a,o),e.max=cc(e.max,t,n,a,o)}function uc(e,t,[n,r,o],i,s){bg(e,t[n],t[r],t[o],t.scale,i,s)}const xg=["x","scaleX","originX"],Sg=["y","scaleY","originY"];function dc(e,t,n,r){uc(e.x,t,xg,n?n.x:void 0,r?r.x:void 0),uc(e.y,t,Sg,n?n.y:void 0,r?r.y:void 0)}function fc(e){return e.translate===0&&e.scale===1}function hc(e){return fc(e.x)&&fc(e.y)}function pc(e,t){return e.min===t.min&&e.max===t.max}function Cg(e,t){return pc(e.x,t.x)&&pc(e.y,t.y)}function mc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gc(e,t){return mc(e.x,t.x)&&mc(e.y,t.y)}function yc(e){return ye(e.x)/ye(e.y)}function vc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Tg{constructor(){this.members=[]}add(t){Gr(this.members,t),t.scheduleRender()}remove(t){if(Ur(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 $g(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:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}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 ei=["","X","Y","Z"],kg=1e3;let Pg=0;function ti(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function wc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&wc(r)}function bc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Pg++,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(Ag),this.nodes.forEach(Ig),this.nodes.forEach(Rg),this.nodes.forEach(Dg)},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 pg)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new qr),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=Za(s)&&!vp(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;te.read(()=>{d=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=mg(f,250),ir.hasAnimatedSinceResize&&(ir.hasAnimatedSinceResize=!1,this.nodes.forEach(Cc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Bg,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!gc(this.targetLayout,h),C=!d&&f;if(this.options.layoutRoot||this.resumeFrom||C||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...ko(m,"layout"),onPlay:y,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,C)}else d||Cc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Je(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(Lg),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&&wc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Sc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Fg),this.nodes.forEach(Eg),this.nodes.forEach(Mg)):this.nodes.forEach(Sc),this.clearAllSnapshots();const a=be.now();de.delta=Ge(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Jr.update.process(de),Jr.preRender.process(de),Jr.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vg),this.sharedNodes.forEach(_g)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=oe(),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&&!hc(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||wt(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),zg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return oe();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Hg))){const{scroll:c}=this.root;c&&(zt(a.x,c.offset.x),zt(a.y,c.offset.y))}return a}removeElementScroll(s){const a=oe();if(Ae(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&Ae(a,s),zt(a.x,u.offset.x),zt(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=oe();Ae(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ht(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),wt(u.latestValues)&&Ht(l,u.latestValues)}return wt(this.latestValues)&&Ht(l,this.latestValues),l}removeTransform(s){const a=oe();Ae(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!wt(c.latestValues))continue;jo(c.latestValues)&&c.updateSnapshot();const u=oe(),d=c.measurePageBox();Ae(u,d),dc(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return wt(this.latestValues)&&dc(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!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=de.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oe(),this.relativeTargetOrigin=oe(),mn(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=oe(),this.targetWithTransforms=oe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ae(this.target,this.layout.layoutBox),xl(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=oe(),this.relativeTargetOrigin=oe(),mn(this.relativeTargetOrigin,this.target,f.target),Ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||jo(this.parent.latestValues)||vl(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===de.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Ae(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;sm(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=oe());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lc(this.prevProjectionDelta.x,this.projectionDelta.x),lc(this.prevProjectionDelta.y,this.projectionDelta.y)),pn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!vc(this.projectionDelta.x,this.prevProjectionDelta.x)||!vc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=jt(),this.projectionDelta=jt(),this.projectionDeltaWithTransform=jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=oe(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,w=this.getStack(),v=!w||w.members.length<=1,C=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Og));this.animationProgress=0;let b;this.mixTargetDelta=k=>{const S=k/1e3;Tc(d.x,s.x,S),Tc(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ng(this.relativeTarget,this.relativeTargetOrigin,f,S),b&&Cg(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=oe()),Ae(b,this.relativeTarget)),y&&(this.animationValues=u,yg(u,c,this.latestValues,S,C,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{ir.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nt(0)),this.currentAnimation=fg(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(kg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Mc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||oe();const d=ye(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=ye(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ae(a,l),Ht(a,u),pn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Tg),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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 c=this.getStack();c&&c.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 c={};l.z&&ti("z",s,c,this.animationValues);for(let u=0;u<ei.length;u++)ti(`rotate${ei[u]}`,s,c,this.animationValues),ti(`skew${ei[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=nr(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=nr(a?.pointerEvents)||""),this.hasProjected&&!wt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=$g(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),s.transform=d;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in un){if(u[m]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:v}=un[m],C=d==="none"?u[m]:y(u[m],c);if(w){const b=w.length;for(let k=0;k<b;k++)s[w[k]]=C}else v?this.options.visualElement.renderState.vars[m]=C:s[m]=C}this.options.layoutId&&(s.pointerEvents=c===this?nr(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(xc),this.root.sharedNodes.clear()}}}function Eg(e){e.updateLayout()}function Mg(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"?Me(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=ye(d);d.min=n[u].min,d.max=d.min+f}):Mc(o,t.layoutBox,n)&&Me(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=ye(n[u]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const s=jt();pn(s,n,t.layoutBox);const a=jt();i?pn(a,e.applyTransform(r,!0),t.measuredBox):pn(a,n,t.layoutBox);const l=!hc(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const h=oe();mn(h,t.layoutBox,d.layoutBox);const m=oe();mn(m,n,f.layoutBox),gc(h,m)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Ag(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 Dg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vg(e){e.clearSnapshot()}function xc(e){e.clearMeasurements()}function Sc(e){e.isLayoutDirty=!1}function Fg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ig(e){e.resolveTargetDelta()}function Rg(e){e.calcProjection()}function Lg(e){e.resetSkewAndRotation()}function _g(e){e.removeLeadSnapshot()}function Tc(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $c(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Ng(e,t,n,r){$c(e.x,t.x,n.x,r),$c(e.y,t.y,n.y,r)}function Og(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Bg={duration:.45,ease:[.4,0,.1,1]},kc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pc=kc("applewebkit/")&&!kc("chrome/")?Math.round:Pe;function Ec(e){e.min=Pc(e.min),e.max=Pc(e.max)}function zg(e){Ec(e.x),Ec(e.y)}function Mc(e,t,n){return e==="position"||e==="preserve-aspect"&&!Km(yc(t),yc(n),.2)}function Hg(e){return e!==e.root&&e.scroll?.wasRoot}const jg=bc({attachResizeListener:(e,t)=>dn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ni={current:void 0},Ac=bc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ni.current){const e=new jg({});e.mount(window),e.setOptions({layoutScroll:!0}),ni.current=e}return ni.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gg={pan:{Feature:lg},drag:{Feature:ag,ProjectionNode:Ac,MeasureLayout:tc}};function Dc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&te.postRender(()=>i(t,fn(t)))}class Ug extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=hp(t,(n,r)=>(Dc(this.node,r,"Start"),o=>Dc(this.node,o,"End"))))}unmount(){}}class Wg extends tt{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=Qt(dn(this.node.current,"focus",()=>this.onFocus()),dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&te.postRender(()=>i(t,fn(t)))}class Kg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=yp(t,(n,r)=>(Vc(this.node,r,"Start"),(o,{success:i})=>Vc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ri=new WeakMap,oi=new WeakMap,qg=e=>{const t=ri.get(e.target);t&&t(e)},Yg=e=>{e.forEach(qg)};function Xg({root:e,...t}){const n=e||document;oi.has(n)||oi.set(n,{});const r=oi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Yg,{root:e,...t})),r[o]}function Zg(e,t,n){const r=Xg(t);return ri.set(e,n),r.observe(e),()=>{ri.delete(e),r.unobserve(e)}}const Jg={some:0,all:1};class Qg extends tt{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:Jg[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Zg(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(e0(t,n))&&this.startObserver()}unmount(){}}function e0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const t0={...zm,...{inView:{Feature:Qg},tap:{Feature:Kg},focus:{Feature:Wg},hover:{Feature:Ug}},...Gg,...{layout:{ProjectionNode:Ac,MeasureLayout:tc}}},Ke=rm(t0,gm),n0={sm:x`
|
|
234
|
+
`),()=>{w.contains(y)&&w.removeChild(y)}},[t]),g.jsx(Cp,{isPresent:t,childRef:i,sizeRef:s,children:lt.cloneElement(e,{ref:l})})}const $p=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=Hr(kp),u=p.useId();let d=!0,f=p.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&d&&(f={...f}),p.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[n]),lt.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(Tp,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(jn.Provider,{value:f,children:e})};function kp(){return new Map}function Qa(e=!0){const t=p.useContext(jn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=p.useId();p.useEffect(()=>{if(e)return o(i)},[e]);const s=p.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Zn=e=>e.key||"";function el(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const ln=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=Qa(s),d=p.useMemo(()=>el(e),[e]),f=s&&!c?[]:d.map(Zn),h=p.useRef(!0),m=p.useRef(d),y=Hr(()=>new Map),[w,v]=p.useState(d),[C,x]=p.useState(d);Bs(()=>{h.current=!1,m.current=d;for(let k=0;k<C.length;k++){const P=Zn(C[k]);f.includes(P)?y.delete(P):y.get(P)!==!0&&y.set(P,!1)}},[C,f.length,f.join("-")]);const E=[];if(d!==w){let k=[...d];for(let P=0;P<C.length;P++){const M=C[P],A=Zn(M);f.includes(A)||(k.splice(P,0,M),E.push(M))}return i==="wait"&&E.length&&(k=E),x(el(k)),v(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&C.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:b}=p.useContext(zr);return g.jsx(g.Fragment,{children:C.map(k=>{const P=Zn(k),M=s&&!c?!1:d===C||f.includes(P),A=()=>{if(y.has(P))y.set(P,!0);else return;let V=!0;y.forEach(N=>{N||(V=!1)}),V&&(b?.(),x(m.current),s&&u?.(),r&&r())};return g.jsx($p,{isPresent:M,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:M?void 0:A,anchorX:a,children:k},P)})})},tl=p.createContext({strict:!1}),nl={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"]},Ot={};for(const e in nl)Ot[e]={isEnabled:t=>nl[e].some(n=>!!t[n])};function Pp(e){for(const t in e)Ot[t]={...Ot[t],...e[t]}}const Ep=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")||Ep.has(e)}let rl=e=>!Jn(e);function Mp(e){typeof e=="function"&&(rl=t=>t.startsWith("on")?!Jn(t):e(t))}try{Mp(require("@emotion/is-prop-valid").default)}catch{}function Ap(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rl(o)||n===!0&&Jn(o)||!t&&!Jn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Qn=p.createContext({});function er(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function cn(e){return typeof e=="string"||Array.isArray(e)}const Fo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Io=["initial",...Fo];function tr(e){return er(e.animate)||Io.some(t=>cn(e[t]))}function ol(e){return!!(tr(e)||e.variants)}function Dp(e,t){if(tr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||cn(n)?n:void 0,animate:cn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Vp(e){const{initial:t,animate:n}=Dp(e,p.useContext(Qn));return p.useMemo(()=>({initial:t,animate:n}),[il(t),il(n)])}function il(e){return Array.isArray(e)?e.join(" "):e}const un={};function Fp(e){for(const t in e)un[t]=e[t],Qr(t)&&(un[t].isCSSVariable=!0)}function sl(e,{layout:t,layoutId:n}){return _t.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!un[e]||e==="opacity")}const Ip={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rp=Lt.length;function Lp(e,t,n){let r="",o=!0;for(let i=0;i<Rp;i++){const s=Lt[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 c=Ha(a,Eo[s]);if(!l){o=!1;const u=Ip[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ro(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(_t.has(l)){s=!0;continue}else if(Qr(l)){o[l]=c;continue}else{const u=Ha(c,Eo[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=Lp(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const Lo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function al(e,t,n){for(const r in t)!pe(t[r])&&!sl(r,n)&&(e[r]=t[r])}function _p({transformTemplate:e},t){return p.useMemo(()=>{const n=Lo();return Ro(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Np(e,t){const n=e.style||{},r={};return al(r,n,e),Object.assign(r,_p(e,t)),r}function Op(e,t){const n={},r=Np(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 Bp={offset:"stroke-dashoffset",array:"stroke-dasharray"},zp={offset:"strokeDashoffset",array:"strokeDasharray"};function Hp(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Bp:zp;e[i.offset]=L.transform(-r);const s=L.transform(t),a=L.transform(n);e[i.array]=`${s} ${a}`}function ll(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(Ro(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&Hp(d,o,i,s,!1)}const cl=()=>({...Lo(),attrs:{}}),ul=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jp(e,t,n,r){const o=p.useMemo(()=>{const i=cl();return ll(i,t,ul(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};al(i,e.style,e),o.style={...i,...o.style}}return o}const Gp=["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 _o(e){return typeof e!="string"||e.includes("-")?!1:!!(Gp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Up(e,t,n,{latestValues:r},o,i=!1){const a=(_o(e)?jp:Op)(t,r,o,e),l=Ap(t,typeof e=="string",i),c=e!==p.Fragment?{...l,...a,ref:n}:{},{children:u}=t,d=p.useMemo(()=>pe(u)?u.get():u,[u]);return p.createElement(e,{...c,children:d})}function dl(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function No(e,t,n,r){if(typeof t=="function"){const[o,i]=dl(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]=dl(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function nr(e){return pe(e)?e.get():e}function Wp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Kp(n,r,o,e),renderState:t()}}function Kp(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=nr(i[f]);let{initial:s,animate:a}=e;const l=tr(e),c=ol(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!er(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const m=No(e,f[h]);if(m){const{transitionEnd:y,transition:w,...v}=m;for(const C in v){let x=v[C];if(Array.isArray(x)){const E=u?x.length-1:0;x=x[E]}x!==null&&(o[C]=x)}for(const C in y)o[C]=y[C]}}}return o}const fl=e=>(t,n)=>{const r=p.useContext(Qn),o=p.useContext(jn),i=()=>Wp(e,t,r,o);return n?i():Hr(i)};function Oo(e,t,n){const{style:r}=e,o={};for(const i in r)(pe(r[i])||t.style&&pe(t.style[i])||sl(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const qp=fl({scrapeMotionValuesFromProps:Oo,createRenderState:Lo});function hl(e,t,n){const r=Oo(e,t,n);for(const o in e)if(pe(e[o])||pe(t[o])){const i=Lt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Yp=fl({scrapeMotionValuesFromProps:hl,createRenderState:cl}),Xp=Symbol.for("motionComponentSymbol");function Bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Zp(e,t,n){return p.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bt(n)&&(n.current=r))},[t])}const Bo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pl="data-"+Bo("framerAppearId"),ml=p.createContext({});function Jp(e,t,n,r,o){const{visualElement:i}=p.useContext(Qn),s=p.useContext(tl),a=p.useContext(jn),l=p.useContext(Vo).reducedMotion,c=p.useRef(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=p.useContext(ml);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Qp(c.current,n,o,d);const f=p.useRef(!1);p.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});const h=n[pl],m=p.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return Bs(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),p.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),m.current=!1),u.enteringChildren=void 0)}),u}function Qp(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gl(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Bt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function gl(e){if(e)return e.options.allowProjection!==!1?e.projection:gl(e.parent)}function zo(e,{forwardMotionProps:t=!1}={},n,r){n&&Pp(n);const o=_o(e)?Yp:qp;function i(a,l){let c;const u={...p.useContext(Vo),...a,layoutId:em(a)},{isStatic:d}=u,f=Vp(a),h=o(a,d);if(!d&&jr){tm(u,n);const m=nm(u);c=m.MeasureLayout,f.visualElement=Jp(e,h,u,r,m.ProjectionNode)}return g.jsxs(Qn.Provider,{value:f,children:[c&&f.visualElement?g.jsx(c,{visualElement:f.visualElement,...u}):null,Up(e,a,Zp(h,f.visualElement,l),h,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=p.forwardRef(i);return s[Xp]=e,s}function em({layoutId:e}){const t=p.useContext(zr).id;return t&&e!==void 0?t+"-"+e:e}function tm(e,t){const n=p.useContext(tl).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?Vt(!1,r,"lazy-strict-mode"):Ue(!1,r,"lazy-strict-mode")}}function nm(e){const{drag:t,layout:n}=Ot;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function rm(e,t){if(typeof Proxy>"u")return zo;const n=new Map,r=(i,s)=>zo(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Yr(!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,zo(s,void 0,e,t)),n.get(s))})}function yl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function om({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function im(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 Ho(e){return e===void 0||e===1}function jo({scale:e,scaleX:t,scaleY:n}){return!Ho(e)||!Ho(t)||!Ho(n)}function wt(e){return jo(e)||vl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vl(e){return wl(e.x)||wl(e.y)}function wl(e){return e&&e!=="0%"}function rr(e,t,n){const r=e-n,o=t*r;return n+o}function bl(e,t,n,r,o){return o!==void 0&&(e=rr(e,o,r)),rr(e,n,r)+t}function Go(e,t=0,n=1,r,o){e.min=bl(e.min,t,n,r,o),e.max=bl(e.max,t,n,r,o)}function xl(e,{x:t,y:n}){Go(e.x,t.translate,t.scale,t.originPoint),Go(e.y,n.translate,n.scale,n.originPoint)}const Sl=.999999999999,Cl=1.0000000000001;function sm(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&&Ht(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,xl(e,s)),r&&wt(i.latestValues)&&Ht(e,i.latestValues))}t.x<Cl&&t.x>Sl&&(t.x=1),t.y<Cl&&t.y>Sl&&(t.y=1)}function zt(e,t){e.min=e.min+t,e.max=e.max+t}function Tl(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);Go(e,t,n,i,r)}function Ht(e,t){Tl(e.x,t.x,t.scaleX,t.scale,t.originX),Tl(e.y,t.y,t.scaleY,t.scale,t.originY)}function $l(e,t){return yl(im(e.getBoundingClientRect(),t))}function am(e,t,n){const r=$l(e,n),{scroll:o}=t;return o&&(zt(r.x,o.offset.x),zt(r.y,o.offset.y)),r}const kl=()=>({translate:0,scale:1,origin:0,originPoint:0}),jt=()=>({x:kl(),y:kl()}),Pl=()=>({min:0,max:0}),oe=()=>({x:Pl(),y:Pl()}),Uo={current:null},El={current:!1};function lm(){if(El.current=!0,!!jr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Uo.current=e.matches;e.addEventListener("change",t),t()}else Uo.current=!1}const cm=new WeakMap;function um(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,Nt(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,Nt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ml=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dm{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=To,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=be.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,te.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,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=tr(n),this.isVariantNode=ol(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&pe(h)&&h.set(l[f])}}mount(t){this.current=t,cm.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)),El.current||lm(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Uo.current,process.env.NODE_ENV!=="production"&&Yr(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(),Je(this.notifyUpdate),Je(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&&te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ot){const n=Ot[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):oe()}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<Ml.length;r++){const o=Ml[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=um(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=Nt(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"&&(zs(r)||js(r))?r=parseFloat(r):!bp(r)&&et.test(n)&&(r=za(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=No(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 qr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Mo.render(this.render)}}class Al extends dm{constructor(){super(...arguments),this.KeyframeResolver=lp}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 Dl(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 fm(e){return window.getComputedStyle(e)}class hm extends Al{constructor(){super(...arguments),this.type="html",this.renderInstance=Dl}readValueFromInstance(t,n){if(_t.has(n))return this.projection?.isProjecting?wo(n):Ph(t,n);{const r=fm(t),o=(Qr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $l(t,n)}build(t,n,r){Ro(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Oo(t,n,r)}}const Vl=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 pm(e,t,n,r){Dl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Vl.has(o)?o:Bo(o),t.attrs[o])}class mm extends Al{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=oe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_t.has(n)){const r=Ba(n);return r&&r.default||0}return n=Vl.has(n)?n:Bo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hl(t,n,r)}build(t,n,r){ll(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){pm(t,n,r,o)}mount(t){this.isSVGTag=ul(t.tagName),super.mount(t)}}const gm=(e,t)=>_o(e)?new mm(t):new hm(t,{allowProjection:e!==p.Fragment});function Gt(e,t,n){const r=e.getProps();return No(r,t,n!==void 0?n:r.custom,e)}const Wo=e=>Array.isArray(e);function ym(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nt(n))}function vm(e){return Wo(e)?e[e.length-1]||0:e}function wm(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=vm(i[s]);ym(e,s,a)}}function bm(e){return!!(pe(e)&&e.add)}function Ko(e,t){const n=e.getValue("willChange");if(bm(n))return n.add(t);if(!n&&We.WillChange){const r=new We.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Fl(e){return e.props[pl]}const xm=e=>e!==null;function Sm(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(xm),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const Cm={type:"spring",stiffness:500,damping:25,restSpeed:10},Tm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$m={type:"keyframes",duration:.8},km={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pm=(e,{keyframes:t})=>t.length>2?$m:_t.has(e)?e.startsWith("scale")?Tm(t[1]):Cm:km;function Em({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const qo=(e,t,n,r={},o,i)=>s=>{const a=ko(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fe(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,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};Em(a)||Object.assign(u,Pm(e,u)),u.duration&&(u.duration=Fe(u.duration)),u.repeatDelay&&(u.repeatDelay=Fe(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($o(u),u.delay===0&&(d=!0)),(We.instantAnimations||We.skipAnimations)&&(d=!0,$o(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=Sm(u.keyframes,a);if(f!==void 0){te.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new go(u):new Xh(u)};function Mm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Il(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),f=a[u];if(f===void 0||c&&Mm(c,u))continue;const h={delay:n,...ko(i||{},u)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Fl(e);if(v){const C=window.MotionHandoffAnimation(v,u,te);C!==null&&(h.startTime=C,y=!0)}}Ko(e,u),d.start(qo(u,d,f,e.shouldReduceMotion&&Ra.has(u)?{type:!1}:h,e,y));const w=d.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{te.update(()=>{s&&wm(e,s)})}),l}function Rl(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Yo(e,t,n={}){const r=Gt(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(Il(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return Am(e,t,l,c,u,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function Am(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(Yo(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Rl(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Dm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Yo(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Yo(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(Il(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ll(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 Vm=Io.length;function _l(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?_l(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Vm;n++){const r=Io[n],o=e.props[r];(cn(o)||o===!1)&&(t[r]=o)}return t}const Fm=[...Fo].reverse(),Im=Fo.length;function Rm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Dm(e,n,r)))}function Lm(e){let t=Rm(e),n=Nl(),r=!0;const o=l=>(c,u)=>{const d=Gt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:h,...m}=d;c={...c,...m,...h}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=_l(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let w=0;w<Im;w++){const v=Fm[w],C=n[v],x=c[v]!==void 0?c[v]:u[v],E=cn(x),b=v===l?C.isActive:null;b===!1&&(m=w);let k=x===u[v]&&x!==c[v]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...h},!C.isActive&&b===null||!x&&!C.prevProp||er(x)||typeof x=="boolean")continue;const P=_m(C.prevProp,x);let M=P||v===l&&C.isActive&&!k&&E||w>m&&E,A=!1;const V=Array.isArray(x)?x:[x];let N=V.reduce(o(v),{});b===!1&&(N={});const{prevResolvedValues:H={}}=C,j={...H,...N},K=F=>{M=!0,f.has(F)&&(A=!0,f.delete(F)),C.needsAnimating[F]=!0;const W=e.getValue(F);W&&(W.liveStyle=!1)};for(const F in j){const W=N[F],Y=H[F];if(h.hasOwnProperty(F))continue;let J=!1;Wo(W)&&Wo(Y)?J=!Ll(W,Y):J=W!==Y,J?W!=null?K(F):f.add(F):W!==void 0&&f.has(F)?K(F):C.protectedKeys[F]=!0}C.prevProp=x,C.prevResolvedValues=N,C.isActive&&(h={...h,...N}),r&&e.blockInitialAnimation&&(M=!1);const Z=k&&P;M&&(!Z||A)&&d.push(...V.map(F=>{const W={type:v};if(typeof F=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,J=Gt(Y,F);if(Y.enteringChildren&&J){const{delayChildren:fe}=J.transition||{};W.delay=Rl(Y.enteringChildren,e,fe)}}return{animation:F,options:W}}))}if(f.size){const w={};if(typeof c.initial!="boolean"){const v=Gt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(w.transition=v.transition)}f.forEach(v=>{const C=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),w[v]=C??null}),d.push({animation:w})}let y=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const u=s(l);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Nl(),r=!0}}}function _m(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ll(t,e):!1}function bt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nl(){return{animate:bt(!0),whileInView:bt(),whileHover:bt(),whileTap:bt(),whileDrag:bt(),whileFocus:bt(),exit:bt()}}class tt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Nm extends tt{constructor(t){super(t),t.animationState||(t.animationState=Lm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();er(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 Om=0;class Bm extends tt{constructor(){super(...arguments),this.id=Om++}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 zm={animation:{Feature:Nm},exit:{Feature:Bm}};function dn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fn(e){return{point:{x:e.pageX,y:e.pageY}}}const Hm=e=>t=>Ao(t)&&e(t,fn(t));function hn(e,t,n,r){return dn(e,t,Hm(n),r)}const Ol=1e-4,jm=1-Ol,Gm=1+Ol,Bl=.01,Um=0-Bl,Wm=0+Bl;function ye(e){return e.max-e.min}function Km(e,t,n){return Math.abs(e-t)<=n}function zl(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jm&&e.scale<=Gm||isNaN(e.scale))&&(e.scale=1),(e.translate>=Um&&e.translate<=Wm||isNaN(e.translate))&&(e.translate=0)}function pn(e,t,n,r){zl(e.x,t.x,n.x,r?r.originX:void 0),zl(e.y,t.y,n.y,r?r.originY:void 0)}function Hl(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function qm(e,t,n){Hl(e.x,t.x,n.x),Hl(e.y,t.y,n.y)}function jl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function mn(e,t,n){jl(e.x,t.x,n.x),jl(e.y,t.y,n.y)}function Me(e){return[e("x"),e("y")]}const Gl=({current:e})=>e?e.ownerDocument.defaultView:null,Ul=(e,t)=>Math.abs(e-t);function Ym(e,t){const n=Ul(e.x,t.x),r=Ul(e.y,t.y);return Math.sqrt(n**2+r**2)}class Wl{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=Zo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Ym(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:y}=f,{timestamp:w}=de;this.history.push({...y,timestamp:w});const{onStart:v,onMove:C}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Xo(h,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Zo(f.type==="pointercancel"?this.lastMoveEventInfo:Xo(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!Ao(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=fn(t),l=Xo(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=de;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Zo(l,this.history)),this.removeListeners=Qt(hn(this.contextWindow,"pointermove",this.handlePointerMove),hn(this.contextWindow,"pointerup",this.handlePointerUp),hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Je(this.updatePoint)}}function Xo(e,t){return t?{point:t(e.point)}:e}function Kl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zo({point:e},t){return{point:e,delta:Kl(e,ql(t)),offset:Kl(e,Xm(t)),velocity:Zm(t,.1)}}function Xm(e){return e[0]}function ql(e){return e[e.length-1]}function Zm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ql(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Fe(t)));)n--;if(!r)return{x:0,y:0};const i=Ee(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 Jm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Yl(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 Qm(e,{top:t,left:n,bottom:r,right:o}){return{x:Yl(e.x,n,o),y:Yl(e.y,t,r)}}function Xl(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 eg(e,t){return{x:Xl(e.x,t.x),y:Xl(e.y,t.y)}}function tg(e,t){let n=.5;const r=ye(e),o=ye(t);return o>r?n=en(t.min,t.max-r,e.min):r>o&&(n=en(e.min,e.max-o,t.min)),Ge(0,1,n)}function ng(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 Jo=.35;function rg(e=Jo){return e===!1?e=0:e===!0&&(e=Jo),{x:Zl(e,"left","right"),y:Zl(e,"top","bottom")}}function Zl(e,t,n){return{min:Jl(e,t),max:Jl(e,n)}}function Jl(e,t){return typeof e=="number"?e:e[t]||0}const og=new WeakMap;class ig{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=oe(),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=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fn(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fp(h),!this.openDragLock))return;this.latestPointerEvent=d,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),Me(v=>{let C=this.getAxisMotionValue(v).get()||0;if(Be.test(C)){const{projection:x}=this.visualElement;if(x&&x.layout){const E=x.layout.layoutBox[v];E&&(C=ye(E)*(parseFloat(C)/100))}}this.originPoint[v]=C}),y&&te.postRender(()=>y(d,f)),Ko(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=sg(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),w&&w(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Me(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Wl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Gl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&te.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!or(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Jm(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&&Bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Qm(r.layoutBox,t):this.constraints=!1,this.elastic=rg(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Me(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=ng(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bt(t))return!1;const r=t.current;Ue(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=am(r,o.root,this.visualElement.getTransformPagePoint());let s=eg(o.layout.layoutBox,i);if(n){const a=n(om(s));this.hasMutatedConstraints=!!a,a&&(s=yl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Me(u=>{if(!or(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ko(this.visualElement,t),r.start(qo(t,r,0,n,this.visualElement,!1))}stopAnimation(){Me(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Me(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){Me(n=>{const{drag:r}=this.getProps();if(!or(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Me(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=tg({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(),Me(s=>{if(!or(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;og.set(this.visualElement,this);const t=this.visualElement.current,n=hn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Bt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),te.read(r);const s=dn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Me(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Jo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function or(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ag extends tt{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new ig(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 Ql=e=>(t,n)=>{e&&te.postRender(()=>e(t,n))};class lg extends tt{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new Wl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Ql(t),onStart:Ql(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&te.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=hn(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 ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ec(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(L.test(e))e=parseFloat(e);else return e;const n=ec(e,t.target.x),r=ec(e,t.target.y);return`${n}% ${r}%`}},cg={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=et.parse(e);if(o.length>5)return r;const i=et.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 c=ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};let Qo=!1;class ug extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Fp(dg),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Qo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Qo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||te.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Mo.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Qo=!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 tc(e){const[t,n]=Qa(),r=p.useContext(zr);return g.jsx(ug,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(ml),isPresent:t,safeToRemove:n})}const dg={borderRadius:{...gn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gn,borderTopRightRadius:gn,borderBottomLeftRadius:gn,borderBottomRightRadius:gn,boxShadow:cg};function fg(e,t,n){const r=pe(e)?e:Nt(e);return r.start(qo("",r,t,n)),r.animation}const hg=(e,t)=>e.depth-t.depth;class pg{constructor(){this.children=[],this.isDirty=!1}add(t){Gr(this.children,t),this.isDirty=!0}remove(t){Ur(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hg),this.isDirty=!1,this.children.forEach(t)}}function mg(e,t){const n=be.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Je(r),e(i-t))};return te.setup(r,!0),()=>Je(r)}const nc=["TopLeft","TopRight","BottomLeft","BottomRight"],gg=nc.length,rc=e=>typeof e=="string"?parseFloat(e):e,oc=e=>typeof e=="number"||L.test(e);function yg(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,vg(r)),e.opacityExit=ne(t.opacity??1,0,wg(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<gg;s++){const a=`border${nc[s]}Radius`;let l=ic(t,a),c=ic(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||oc(l)===oc(c)?(e[a]=Math.max(ne(rc(l),rc(c),r),0),(Be.test(c)||Be.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function ic(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vg=sc(0,.5,Js),wg=sc(.5,.95,Pe);function sc(e,t,n){return r=>r<e?0:r>t?1:n(en(e,t,r))}function ac(e,t){e.min=t.min,e.max=t.max}function Ae(e,t){ac(e.x,t.x),ac(e.y,t.y)}function lc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cc(e,t,n,r,o){return e-=t,e=rr(e,1/n,r),o!==void 0&&(e=rr(e,1/o,r)),e}function bg(e,t=0,n=1,r=.5,o,i=e,s=e){if(Be.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=cc(e.min,t,n,a,o),e.max=cc(e.max,t,n,a,o)}function uc(e,t,[n,r,o],i,s){bg(e,t[n],t[r],t[o],t.scale,i,s)}const xg=["x","scaleX","originX"],Sg=["y","scaleY","originY"];function dc(e,t,n,r){uc(e.x,t,xg,n?n.x:void 0,r?r.x:void 0),uc(e.y,t,Sg,n?n.y:void 0,r?r.y:void 0)}function fc(e){return e.translate===0&&e.scale===1}function hc(e){return fc(e.x)&&fc(e.y)}function pc(e,t){return e.min===t.min&&e.max===t.max}function Cg(e,t){return pc(e.x,t.x)&&pc(e.y,t.y)}function mc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gc(e,t){return mc(e.x,t.x)&&mc(e.y,t.y)}function yc(e){return ye(e.x)/ye(e.y)}function vc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Tg{constructor(){this.members=[]}add(t){Gr(this.members,t),t.scheduleRender()}remove(t){if(Ur(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 $g(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:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}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 ei=["","X","Y","Z"],kg=1e3;let Pg=0;function ti(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function wc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&wc(r)}function bc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Pg++,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(Ag),this.nodes.forEach(Ig),this.nodes.forEach(Rg),this.nodes.forEach(Dg)},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 pg)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new qr),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=Za(s)&&!vp(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;te.read(()=>{d=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=mg(f,250),ir.hasAnimatedSinceResize&&(ir.hasAnimatedSinceResize=!1,this.nodes.forEach(Cc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Bg,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!gc(this.targetLayout,h),C=!d&&f;if(this.options.layoutRoot||this.resumeFrom||C||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...ko(m,"layout"),onPlay:y,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,C)}else d||Cc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Je(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(Lg),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&&wc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Sc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Fg),this.nodes.forEach(Eg),this.nodes.forEach(Mg)):this.nodes.forEach(Sc),this.clearAllSnapshots();const a=be.now();de.delta=Ge(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Jr.update.process(de),Jr.preRender.process(de),Jr.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vg),this.sharedNodes.forEach(_g)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=oe(),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&&!hc(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||wt(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),zg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return oe();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Hg))){const{scroll:c}=this.root;c&&(zt(a.x,c.offset.x),zt(a.y,c.offset.y))}return a}removeElementScroll(s){const a=oe();if(Ae(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&Ae(a,s),zt(a.x,u.offset.x),zt(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=oe();Ae(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ht(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),wt(u.latestValues)&&Ht(l,u.latestValues)}return wt(this.latestValues)&&Ht(l,this.latestValues),l}removeTransform(s){const a=oe();Ae(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!wt(c.latestValues))continue;jo(c.latestValues)&&c.updateSnapshot();const u=oe(),d=c.measurePageBox();Ae(u,d),dc(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return wt(this.latestValues)&&dc(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!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=de.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oe(),this.relativeTargetOrigin=oe(),mn(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=oe(),this.targetWithTransforms=oe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ae(this.target,this.layout.layoutBox),xl(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=oe(),this.relativeTargetOrigin=oe(),mn(this.relativeTargetOrigin,this.target,f.target),Ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||jo(this.parent.latestValues)||vl(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===de.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Ae(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;sm(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=oe());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lc(this.prevProjectionDelta.x,this.projectionDelta.x),lc(this.prevProjectionDelta.y,this.projectionDelta.y)),pn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!vc(this.projectionDelta.x,this.prevProjectionDelta.x)||!vc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=jt(),this.projectionDelta=jt(),this.projectionDeltaWithTransform=jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=oe(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,w=this.getStack(),v=!w||w.members.length<=1,C=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Og));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const b=E/1e3;Tc(d.x,s.x,b),Tc(d.y,s.y,b),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ng(this.relativeTarget,this.relativeTargetOrigin,f,b),x&&Cg(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=oe()),Ae(x,this.relativeTarget)),y&&(this.animationValues=u,yg(u,c,this.latestValues,b,C,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{ir.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nt(0)),this.currentAnimation=fg(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(kg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Mc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||oe();const d=ye(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=ye(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ae(a,l),Ht(a,u),pn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Tg),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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 c=this.getStack();c&&c.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 c={};l.z&&ti("z",s,c,this.animationValues);for(let u=0;u<ei.length;u++)ti(`rotate${ei[u]}`,s,c,this.animationValues),ti(`skew${ei[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=nr(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=nr(a?.pointerEvents)||""),this.hasProjected&&!wt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=$g(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),s.transform=d;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in un){if(u[m]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:v}=un[m],C=d==="none"?u[m]:y(u[m],c);if(w){const x=w.length;for(let E=0;E<x;E++)s[w[E]]=C}else v?this.options.visualElement.renderState.vars[m]=C:s[m]=C}this.options.layoutId&&(s.pointerEvents=c===this?nr(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(xc),this.root.sharedNodes.clear()}}}function Eg(e){e.updateLayout()}function Mg(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"?Me(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=ye(d);d.min=n[u].min,d.max=d.min+f}):Mc(o,t.layoutBox,n)&&Me(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=ye(n[u]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const s=jt();pn(s,n,t.layoutBox);const a=jt();i?pn(a,e.applyTransform(r,!0),t.measuredBox):pn(a,n,t.layoutBox);const l=!hc(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const h=oe();mn(h,t.layoutBox,d.layoutBox);const m=oe();mn(m,n,f.layoutBox),gc(h,m)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Ag(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 Dg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vg(e){e.clearSnapshot()}function xc(e){e.clearMeasurements()}function Sc(e){e.isLayoutDirty=!1}function Fg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ig(e){e.resolveTargetDelta()}function Rg(e){e.calcProjection()}function Lg(e){e.resetSkewAndRotation()}function _g(e){e.removeLeadSnapshot()}function Tc(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $c(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Ng(e,t,n,r){$c(e.x,t.x,n.x,r),$c(e.y,t.y,n.y,r)}function Og(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Bg={duration:.45,ease:[.4,0,.1,1]},kc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pc=kc("applewebkit/")&&!kc("chrome/")?Math.round:Pe;function Ec(e){e.min=Pc(e.min),e.max=Pc(e.max)}function zg(e){Ec(e.x),Ec(e.y)}function Mc(e,t,n){return e==="position"||e==="preserve-aspect"&&!Km(yc(t),yc(n),.2)}function Hg(e){return e!==e.root&&e.scroll?.wasRoot}const jg=bc({attachResizeListener:(e,t)=>dn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ni={current:void 0},Ac=bc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ni.current){const e=new jg({});e.mount(window),e.setOptions({layoutScroll:!0}),ni.current=e}return ni.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gg={pan:{Feature:lg},drag:{Feature:ag,ProjectionNode:Ac,MeasureLayout:tc}};function Dc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&te.postRender(()=>i(t,fn(t)))}class Ug extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=hp(t,(n,r)=>(Dc(this.node,r,"Start"),o=>Dc(this.node,o,"End"))))}unmount(){}}class Wg extends tt{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=Qt(dn(this.node.current,"focus",()=>this.onFocus()),dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&te.postRender(()=>i(t,fn(t)))}class Kg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=yp(t,(n,r)=>(Vc(this.node,r,"Start"),(o,{success:i})=>Vc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ri=new WeakMap,oi=new WeakMap,qg=e=>{const t=ri.get(e.target);t&&t(e)},Yg=e=>{e.forEach(qg)};function Xg({root:e,...t}){const n=e||document;oi.has(n)||oi.set(n,{});const r=oi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Yg,{root:e,...t})),r[o]}function Zg(e,t,n){const r=Xg(t);return ri.set(e,n),r.observe(e),()=>{ri.delete(e),r.unobserve(e)}}const Jg={some:0,all:1};class Qg extends tt{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:Jg[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Zg(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(e0(t,n))&&this.startObserver()}unmount(){}}function e0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const t0={...zm,...{inView:{Feature:Qg},tap:{Feature:Kg},focus:{Feature:Wg},hover:{Feature:Ug}},...Gg,...{layout:{ProjectionNode:Ac,MeasureLayout:tc}}},Ke=rm(t0,gm),n0={sm:S`
|
|
235
235
|
width: 1.25rem;
|
|
236
236
|
height: 1.25rem;
|
|
237
|
-
`,md:
|
|
237
|
+
`,md:S`
|
|
238
238
|
width: 1.75rem;
|
|
239
239
|
height: 1.75rem;
|
|
240
|
-
`,lg:
|
|
240
|
+
`,lg:S`
|
|
241
241
|
width: 3rem;
|
|
242
242
|
height: 3rem;
|
|
243
|
-
`,xl:
|
|
243
|
+
`,xl:S`
|
|
244
244
|
width: 4rem;
|
|
245
245
|
height: 4rem;
|
|
246
|
-
`},Fc={primary:
|
|
246
|
+
`},Fc={primary:S`
|
|
247
247
|
color: var(--color-main-blue-primary);
|
|
248
|
-
`,orange:
|
|
248
|
+
`,orange:S`
|
|
249
249
|
color: var(--color-main-orange-primary);
|
|
250
|
-
`,white:
|
|
250
|
+
`,white:S`
|
|
251
251
|
color: var(--color-main-white);
|
|
252
|
-
`,gray:
|
|
252
|
+
`,gray:S`
|
|
253
253
|
color: var(--color-main-grey);
|
|
254
254
|
`},r0=$.div`
|
|
255
255
|
position: relative;
|
|
@@ -321,7 +321,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
321
321
|
align-items: center;
|
|
322
322
|
justify-content: center;
|
|
323
323
|
padding: 3rem 1rem;
|
|
324
|
-
`,Ic=({message:e,color:t="primary",variant:n="rotate"})=>g.jsx(f0,{role:"status","aria-live":"polite",children:g.jsx(sr,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),h0={primary:
|
|
324
|
+
`,Ic=({message:e,color:t="primary",variant:n="rotate"})=>g.jsx(f0,{role:"status","aria-live":"polite",children:g.jsx(sr,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),h0={primary:S`
|
|
325
325
|
background-color: var(--color-main-blue-primary);
|
|
326
326
|
color: var(--color-main-white);
|
|
327
327
|
|
|
@@ -336,7 +336,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
336
336
|
&:focus-visible {
|
|
337
337
|
outline-color: var(--color-main-blue-primary);
|
|
338
338
|
}
|
|
339
|
-
`,secondary:
|
|
339
|
+
`,secondary:S`
|
|
340
340
|
background-color: var(--color-main-orange-primary);
|
|
341
341
|
color: var(--color-main-white);
|
|
342
342
|
|
|
@@ -348,7 +348,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
348
348
|
&:focus-visible {
|
|
349
349
|
outline-color: var(--color-main-orange-primary);
|
|
350
350
|
}
|
|
351
|
-
`,cancel:
|
|
351
|
+
`,cancel:S`
|
|
352
352
|
background-color: var(--color-main-warning-state);
|
|
353
353
|
color: var(--color-main-white);
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
360
360
|
&:focus-visible {
|
|
361
361
|
outline-color: var(--color-main-warning-state);
|
|
362
362
|
}
|
|
363
|
-
`,outline:
|
|
363
|
+
`,outline:S`
|
|
364
364
|
background-color: transparent;
|
|
365
365
|
color: var(--color-main-blue-primary);
|
|
366
366
|
border: 2px solid var(--color-main-blue-primary);
|
|
@@ -376,20 +376,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
376
376
|
&:focus-visible {
|
|
377
377
|
outline-color: var(--color-main-blue-primary);
|
|
378
378
|
}
|
|
379
|
-
`},p0=
|
|
379
|
+
`},p0=S`
|
|
380
380
|
background-color: var(--color-main-grey);
|
|
381
381
|
color: var(--color-dark-200);
|
|
382
382
|
cursor: not-allowed;
|
|
383
383
|
box-shadow: none;
|
|
384
|
-
`,m0={sm:
|
|
384
|
+
`,m0={sm:S`
|
|
385
385
|
padding: 0.375rem 0.75rem;
|
|
386
386
|
min-height: 2.75rem;
|
|
387
387
|
${D[12]}
|
|
388
|
-
`,md:
|
|
388
|
+
`,md:S`
|
|
389
389
|
padding: 0.625rem 1.25rem;
|
|
390
390
|
min-height: 3.175rem;
|
|
391
391
|
${D[16]}
|
|
392
|
-
`,lg:
|
|
392
|
+
`,lg:S`
|
|
393
393
|
padding: 0.75rem 1.5rem;
|
|
394
394
|
min-height: 3.5rem;
|
|
395
395
|
${D[20]}
|
|
@@ -414,37 +414,37 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
414
414
|
&:disabled {
|
|
415
415
|
${p0}
|
|
416
416
|
}
|
|
417
|
-
`,Ut=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...c})=>g.jsxs(g0,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...c,children:[i&&g.jsx(q,{color:l,size:a,component:i}),r?"Loading...":e,s&&g.jsx(q,{color:l,size:a,component:s})]}),y0={sm:
|
|
417
|
+
`,Ut=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...c})=>g.jsxs(g0,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...c,children:[i&&g.jsx(q,{color:l,size:a,component:i}),r?"Loading...":e,s&&g.jsx(q,{color:l,size:a,component:s})]}),y0={sm:S`
|
|
418
418
|
padding: 0.25rem 0.625rem;
|
|
419
419
|
border-radius: var(--border-radius-button);
|
|
420
420
|
${D[12]}
|
|
421
|
-
`,md:
|
|
421
|
+
`,md:S`
|
|
422
422
|
padding: 0.375rem 0.75rem;
|
|
423
423
|
border-radius: var(--border-radius-button);
|
|
424
424
|
${D[14]}
|
|
425
|
-
`,lg:
|
|
425
|
+
`,lg:S`
|
|
426
426
|
padding: 0.5rem 1rem;
|
|
427
427
|
border-radius: var(--border-radius-button);
|
|
428
428
|
${D[16]}
|
|
429
|
-
`},v0={primary:
|
|
429
|
+
`},v0={primary:S`
|
|
430
430
|
background-color: var(--color-main-blue-primary);
|
|
431
431
|
color: var(--color-main-white);
|
|
432
|
-
`,secondary:
|
|
432
|
+
`,secondary:S`
|
|
433
433
|
background-color: var(--color-main-orange-primary);
|
|
434
434
|
color: var(--color-main-white);
|
|
435
|
-
`,success:
|
|
435
|
+
`,success:S`
|
|
436
436
|
background-color: var(--color-main-positive-state);
|
|
437
437
|
color: var(--color-main-white);
|
|
438
|
-
`,warning:
|
|
438
|
+
`,warning:S`
|
|
439
439
|
background-color: var(--color-main-yellow-primary);
|
|
440
440
|
color: var(--color-main-black);
|
|
441
|
-
`,danger:
|
|
441
|
+
`,danger:S`
|
|
442
442
|
background-color: var(--color-main-warning-state);
|
|
443
443
|
color: var(--color-main-white);
|
|
444
|
-
`,neutral:
|
|
444
|
+
`,neutral:S`
|
|
445
445
|
background-color: var(--color-light-200);
|
|
446
446
|
color: var(--color-main-grey);
|
|
447
|
-
`,outline:
|
|
447
|
+
`,outline:S``},w0=$.span`
|
|
448
448
|
display: inline-flex;
|
|
449
449
|
align-items: center;
|
|
450
450
|
gap: 0.375rem;
|
|
@@ -455,7 +455,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
455
455
|
${({$size:e})=>y0[e]}
|
|
456
456
|
${({$variant:e})=>v0[e]}
|
|
457
457
|
|
|
458
|
-
${({$variant:e,$outlineColor:t})=>e==="outline"?
|
|
458
|
+
${({$variant:e,$outlineColor:t})=>e==="outline"?S`
|
|
459
459
|
background-color: transparent;
|
|
460
460
|
color: ${t||"var(--color-main-blue-primary)"};
|
|
461
461
|
border: 1px solid ${t||"var(--color-main-blue-primary)"};
|
|
@@ -472,7 +472,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
472
472
|
`,S0=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>g.jsx(x0,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),C0=$.span`
|
|
473
473
|
${({$size:e})=>D[e]}
|
|
474
474
|
color: ${({$color:e})=>e||"var(--color-main-grey)"};
|
|
475
|
-
`,yn=({children:e,size:t=16,color:n,className:r,style:o})=>g.jsx(C0,{$size:t,$color:n,className:r,style:o,children:e});function T0(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 $0=e=>{switch(e){case"success":return E0;case"info":return A0;case"warning":return M0;case"error":return D0;default:return null}},k0=Array(12).fill(0),P0=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},k0.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),E0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),M0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.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"})),A0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),D0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),V0=p.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"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),F0=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let ii=1;class I0{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:ii++,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 c=>{if(s=["resolve",c],p.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(L0(c)&&!c.ok){i=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,m=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}else if(c instanceof Error){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}else if(n.success!==void 0){i=!1;const d=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:f,...m})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,h=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:d,...h})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,u)=>a.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||ii++;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 I0,R0=(e,t)=>{const n=t?.id||ii++;return xe.addToast({title:e,...t,id:n}),n},L0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",_0=R0,N0=()=>xe.toasts,O0=()=>xe.getActiveToasts(),B0=Object.assign(_0,{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:N0,getToasts:O0});T0("[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 ar(e){return e.label!==void 0}const z0=3,H0="24px",j0="16px",Rc=4e3,G0=356,U0=14,W0=45,K0=200;function ze(...e){return e.filter(Boolean).join(" ")}function q0(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Y0=e=>{var t,n,r,o,i,s,a,l,c;const{invert:u,toast:d,unstyled:f,interacting:h,setHeights:m,visibleToasts:y,heights:w,index:v,toasts:C,expanded:b,removeToast:k,defaultRichColors:S,closeButton:P,style:E,cancelButtonStyle:M,actionButtonStyle:A,className:V="",descriptionClassName:N="",duration:H,position:j,gap:K,expandByDefault:Z,classNames:_,icons:F,closeButtonAriaLabel:W="Close toast"}=e,[Y,J]=p.useState(null),[fe,ae]=p.useState(null),[z,ee]=p.useState(!1),[X,ce]=p.useState(!1),[Le,G]=p.useState(!1),[Se,st]=p.useState(!1),[Ye,ve]=p.useState(!1),[pb,Wi]=p.useState(0),[mb,sd]=p.useState(0),Tn=p.useRef(d.duration||H||Rc),ad=p.useRef(null),Xe=p.useRef(null),gb=v===0,yb=v+1<=y,Te=d.type,qt=d.dismissible!==!1,vb=d.className||"",wb=d.descriptionClassName||"",vr=p.useMemo(()=>w.findIndex(O=>O.toastId===d.id)||0,[w,d.id]),bb=p.useMemo(()=>{var O;return(O=d.closeButton)!=null?O:P},[d.closeButton,P]),ld=p.useMemo(()=>d.duration||H||Rc,[d.duration,H]),Ki=p.useRef(0),Yt=p.useRef(0),cd=p.useRef(0),Xt=p.useRef(null),[xb,Sb]=j.split("-"),ud=p.useMemo(()=>w.reduce((O,ue,ge)=>ge>=vr?O:O+ue.height,0),[w,vr]),dd=F0(),Cb=d.invert||u,qi=Te==="loading";Yt.current=p.useMemo(()=>vr*K+ud,[vr,ud]),p.useEffect(()=>{Tn.current=ld},[ld]),p.useEffect(()=>{ee(!0)},[]),p.useEffect(()=>{const O=Xe.current;if(O){const ue=O.getBoundingClientRect().height;return sd(ue),m(ge=>[{toastId:d.id,height:ue,position:d.position},...ge]),()=>m(ge=>ge.filter($e=>$e.toastId!==d.id))}},[m,d.id]),p.useLayoutEffect(()=>{if(!z)return;const O=Xe.current,ue=O.style.height;O.style.height="auto";const ge=O.getBoundingClientRect().height;O.style.height=ue,sd(ge),m($e=>$e.find(he=>he.toastId===d.id)?$e.map(he=>he.toastId===d.id?{...he,height:ge}:he):[{toastId:d.id,height:ge,position:d.position},...$e])},[z,d.title,d.description,m,d.id,d.jsx,d.action,d.cancel]);const at=p.useCallback(()=>{ce(!0),Wi(Yt.current),m(O=>O.filter(ue=>ue.toastId!==d.id)),setTimeout(()=>{k(d)},K0)},[d,k,m,Yt]);p.useEffect(()=>{if(d.promise&&Te==="loading"||d.duration===1/0||d.type==="loading")return;let O;return b||h||dd?(()=>{if(cd.current<Ki.current){const $e=new Date().getTime()-Ki.current;Tn.current=Tn.current-$e}cd.current=new Date().getTime()})():(()=>{Tn.current!==1/0&&(Ki.current=new Date().getTime(),O=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),at()},Tn.current))})(),()=>clearTimeout(O)},[b,h,d,Te,dd,at]),p.useEffect(()=>{d.delete&&(at(),d.onDismiss==null||d.onDismiss.call(d,d))},[at,d.delete]);function Tb(){var O;if(F?.loading){var ue;return p.createElement("div",{className:ze(_?.loader,d==null||(ue=d.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":Te==="loading"},F.loading)}return p.createElement(P0,{className:ze(_?.loader,d==null||(O=d.classNames)==null?void 0:O.loader),visible:Te==="loading"})}const $b=d.icon||F?.[Te]||$0(Te);var fd,hd;return p.createElement("li",{tabIndex:0,ref:Xe,className:ze(V,vb,_?.toast,d==null||(t=d.classNames)==null?void 0:t.toast,_?.default,_?.[Te],d==null||(n=d.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(fd=d.richColors)!=null?fd:S,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":z,"data-promise":!!d.promise,"data-swiped":Ye,"data-removed":X,"data-visible":yb,"data-y-position":xb,"data-x-position":Sb,"data-index":v,"data-front":gb,"data-swiping":Le,"data-dismissible":qt,"data-type":Te,"data-invert":Cb,"data-swipe-out":Se,"data-swipe-direction":fe,"data-expanded":!!(b||Z&&z),"data-testid":d.testId,style:{"--index":v,"--toasts-before":v,"--z-index":C.length-v,"--offset":`${X?pb:Yt.current}px`,"--initial-height":Z?"auto":`${mb}px`,...E,...d.style},onDragEnd:()=>{G(!1),J(null),Xt.current=null},onPointerDown:O=>{O.button!==2&&(qi||!qt||(ad.current=new Date,Wi(Yt.current),O.target.setPointerCapture(O.pointerId),O.target.tagName!=="BUTTON"&&(G(!0),Xt.current={x:O.clientX,y:O.clientY})))},onPointerUp:()=>{var O,ue,ge;if(Se||!qt)return;Xt.current=null;const $e=Number(((O=Xe.current)==null?void 0:O.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wr=Number(((ue=Xe.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),he=new Date().getTime()-((ge=ad.current)==null?void 0:ge.getTime()),De=Y==="x"?$e:wr,br=Math.abs(De)/he;if(Math.abs(De)>=W0||br>.11){Wi(Yt.current),d.onDismiss==null||d.onDismiss.call(d,d),ae(Y==="x"?$e>0?"right":"left":wr>0?"down":"up"),at(),st(!0);return}else{var _e,Ne;(_e=Xe.current)==null||_e.style.setProperty("--swipe-amount-x","0px"),(Ne=Xe.current)==null||Ne.style.setProperty("--swipe-amount-y","0px")}ve(!1),G(!1),J(null)},onPointerMove:O=>{var ue,ge,$e;if(!Xt.current||!qt||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;const he=O.clientY-Xt.current.y,De=O.clientX-Xt.current.x;var br;const _e=(br=e.swipeDirections)!=null?br:q0(j);!Y&&(Math.abs(De)>1||Math.abs(he)>1)&&J(Math.abs(De)>Math.abs(he)?"x":"y");let Ne={x:0,y:0};const pd=Ct=>1/(1.5+Math.abs(Ct)/20);if(Y==="y"){if(_e.includes("top")||_e.includes("bottom"))if(_e.includes("top")&&he<0||_e.includes("bottom")&&he>0)Ne.y=he;else{const Ct=he*pd(he);Ne.y=Math.abs(Ct)<Math.abs(he)?Ct:he}}else if(Y==="x"&&(_e.includes("left")||_e.includes("right")))if(_e.includes("left")&&De<0||_e.includes("right")&&De>0)Ne.x=De;else{const Ct=De*pd(De);Ne.x=Math.abs(Ct)<Math.abs(De)?Ct:De}(Math.abs(Ne.x)>0||Math.abs(Ne.y)>0)&&ve(!0),(ge=Xe.current)==null||ge.style.setProperty("--swipe-amount-x",`${Ne.x}px`),($e=Xe.current)==null||$e.style.setProperty("--swipe-amount-y",`${Ne.y}px`)}},bb&&!d.jsx&&Te!=="loading"?p.createElement("button",{"aria-label":W,"data-disabled":qi,"data-close-button":!0,onClick:qi||!qt?()=>{}:()=>{at(),d.onDismiss==null||d.onDismiss.call(d,d)},className:ze(_?.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(hd=F?.close)!=null?hd:V0):null,(Te||d.icon||d.promise)&&d.icon!==null&&(F?.[Te]!==null||d.icon)?p.createElement("div",{"data-icon":"",className:ze(_?.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Tb():null,d.type!=="loading"?$b:null):null,p.createElement("div",{"data-content":"",className:ze(_?.content,d==null||(i=d.classNames)==null?void 0:i.content)},p.createElement("div",{"data-title":"",className:ze(_?.title,d==null||(s=d.classNames)==null?void 0:s.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?p.createElement("div",{"data-description":"",className:ze(N,wb,_?.description,d==null||(a=d.classNames)==null?void 0:a.description)},typeof d.description=="function"?d.description():d.description):null),p.isValidElement(d.cancel)?d.cancel:d.cancel&&ar(d.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||M,onClick:O=>{ar(d.cancel)&&qt&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,O),at())},className:ze(_?.cancelButton,d==null||(l=d.classNames)==null?void 0:l.cancelButton)},d.cancel.label):null,p.isValidElement(d.action)?d.action:d.action&&ar(d.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||A,onClick:O=>{ar(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,O),!O.defaultPrevented&&at())},className:ze(_?.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function Lc(){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 X0(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?j0:H0;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${s}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${s}-${c}`]=a:n[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}const Z0=p.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:c,offset:u,mobileOffset:d,theme:f="light",richColors:h,duration:m,style:y,visibleToasts:w=z0,toastOptions:v,dir:C=Lc(),gap:b=U0,icons:k,containerAriaLabel:S="Notifications"}=t,[P,E]=p.useState([]),M=p.useMemo(()=>r?P.filter(z=>z.toasterId===r):P.filter(z=>!z.toasterId),[P,r]),A=p.useMemo(()=>Array.from(new Set([i].concat(M.filter(z=>z.position).map(z=>z.position)))),[M,i]),[V,N]=p.useState([]),[H,j]=p.useState(!1),[K,Z]=p.useState(!1),[_,F]=p.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=p.useRef(null),Y=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=p.useRef(null),fe=p.useRef(!1),ae=p.useCallback(z=>{E(ee=>{var X;return(X=ee.find(ce=>ce.id===z.id))!=null&&X.delete||xe.dismiss(z.id),ee.filter(({id:ce})=>ce!==z.id)})},[]);return p.useEffect(()=>xe.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{E(ee=>ee.map(X=>X.id===z.id?{...X,delete:!0}:X))});return}setTimeout(()=>{Yi.flushSync(()=>{E(ee=>{const X=ee.findIndex(ce=>ce.id===z.id);return X!==-1?[...ee.slice(0,X),{...ee[X],...z},...ee.slice(X+1)]:[z,...ee]})})})}),[P]),p.useEffect(()=>{if(f!=="system"){F(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:ee})=>{F(ee?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{F(X?"dark":"light")}catch(ce){console.error(ce)}})}},[f]),p.useEffect(()=>{P.length<=1&&j(!1)},[P]),p.useEffect(()=>{const z=ee=>{var X;if(s.every(G=>ee[G]||ee.code===G)){var Le;j(!0),(Le=W.current)==null||Le.focus()}ee.code==="Escape"&&(document.activeElement===W.current||(X=W.current)!=null&&X.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[s]),p.useEffect(()=>{if(W.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,fe.current=!1)}},[W.current]),p.createElement("section",{ref:n,"aria-label":`${S} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((z,ee)=>{var X;const[ce,Le]=z.split("-");return M.length?p.createElement("ol",{key:z,dir:C==="auto"?Lc():C,tabIndex:-1,ref:W,className:c,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":ce,"data-x-position":Le,style:{"--front-toast-height":`${((X=V[0])==null?void 0:X.height)||0}px`,"--width":`${G0}px`,"--gap":`${b}px`,...y,...X0(u,d)},onBlur:G=>{fe.current&&!G.currentTarget.contains(G.relatedTarget)&&(fe.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||fe.current||(fe.current=!0,J.current=G.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{K||j(!1)},onDragEnd:()=>j(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},M.filter(G=>!G.position&&ee===0||G.position===z).map((G,Se)=>{var st,Ye;return p.createElement(Y0,{key:G.id,icons:k,index:Se,toast:G,defaultRichColors:h,duration:(st=v?.duration)!=null?st:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(Ye=v?.closeButton)!=null?Ye:l,interacting:K,position:z,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:ae,toasts:M.filter(ve=>ve.position==G.position),heights:V.filter(ve=>ve.position==G.position),setHeights:N,expandByDefault:a,gap:b,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),J0=({spinnerColor:e="orange",...t})=>g.jsx(Z0,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:g.jsx(sr,{color:e,size:"sm"})},...t}),Q0={elevated:x`
|
|
475
|
+
`,yn=({children:e,size:t=16,color:n,className:r,style:o})=>g.jsx(C0,{$size:t,$color:n,className:r,style:o,children:e});function T0(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 $0=e=>{switch(e){case"success":return E0;case"info":return A0;case"warning":return M0;case"error":return D0;default:return null}},k0=Array(12).fill(0),P0=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},k0.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),E0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),M0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.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"})),A0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),D0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),V0=p.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"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),F0=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let ii=1;class I0{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:ii++,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 c=>{if(s=["resolve",c],p.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(L0(c)&&!c.ok){i=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,m=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}else if(c instanceof Error){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}else if(n.success!==void 0){i=!1;const d=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:f,...m})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,h=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:d,...h})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,u)=>a.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||ii++;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 I0,R0=(e,t)=>{const n=t?.id||ii++;return xe.addToast({title:e,...t,id:n}),n},L0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",_0=R0,N0=()=>xe.toasts,O0=()=>xe.getActiveToasts(),B0=Object.assign(_0,{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:N0,getToasts:O0});T0("[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 ar(e){return e.label!==void 0}const z0=3,H0="24px",j0="16px",Rc=4e3,G0=356,U0=14,W0=45,K0=200;function ze(...e){return e.filter(Boolean).join(" ")}function q0(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Y0=e=>{var t,n,r,o,i,s,a,l,c;const{invert:u,toast:d,unstyled:f,interacting:h,setHeights:m,visibleToasts:y,heights:w,index:v,toasts:C,expanded:x,removeToast:E,defaultRichColors:b,closeButton:k,style:P,cancelButtonStyle:M,actionButtonStyle:A,className:V="",descriptionClassName:N="",duration:H,position:j,gap:K,expandByDefault:Z,classNames:_,icons:F,closeButtonAriaLabel:W="Close toast"}=e,[Y,J]=p.useState(null),[fe,ae]=p.useState(null),[z,ee]=p.useState(!1),[X,ce]=p.useState(!1),[Le,G]=p.useState(!1),[Se,st]=p.useState(!1),[Ye,ve]=p.useState(!1),[mb,Wi]=p.useState(0),[gb,sd]=p.useState(0),Tn=p.useRef(d.duration||H||Rc),ad=p.useRef(null),Xe=p.useRef(null),yb=v===0,vb=v+1<=y,Te=d.type,qt=d.dismissible!==!1,wb=d.className||"",bb=d.descriptionClassName||"",vr=p.useMemo(()=>w.findIndex(O=>O.toastId===d.id)||0,[w,d.id]),xb=p.useMemo(()=>{var O;return(O=d.closeButton)!=null?O:k},[d.closeButton,k]),ld=p.useMemo(()=>d.duration||H||Rc,[d.duration,H]),Ki=p.useRef(0),Yt=p.useRef(0),cd=p.useRef(0),Xt=p.useRef(null),[Sb,Cb]=j.split("-"),ud=p.useMemo(()=>w.reduce((O,ue,ge)=>ge>=vr?O:O+ue.height,0),[w,vr]),dd=F0(),Tb=d.invert||u,qi=Te==="loading";Yt.current=p.useMemo(()=>vr*K+ud,[vr,ud]),p.useEffect(()=>{Tn.current=ld},[ld]),p.useEffect(()=>{ee(!0)},[]),p.useEffect(()=>{const O=Xe.current;if(O){const ue=O.getBoundingClientRect().height;return sd(ue),m(ge=>[{toastId:d.id,height:ue,position:d.position},...ge]),()=>m(ge=>ge.filter($e=>$e.toastId!==d.id))}},[m,d.id]),p.useLayoutEffect(()=>{if(!z)return;const O=Xe.current,ue=O.style.height;O.style.height="auto";const ge=O.getBoundingClientRect().height;O.style.height=ue,sd(ge),m($e=>$e.find(he=>he.toastId===d.id)?$e.map(he=>he.toastId===d.id?{...he,height:ge}:he):[{toastId:d.id,height:ge,position:d.position},...$e])},[z,d.title,d.description,m,d.id,d.jsx,d.action,d.cancel]);const at=p.useCallback(()=>{ce(!0),Wi(Yt.current),m(O=>O.filter(ue=>ue.toastId!==d.id)),setTimeout(()=>{E(d)},K0)},[d,E,m,Yt]);p.useEffect(()=>{if(d.promise&&Te==="loading"||d.duration===1/0||d.type==="loading")return;let O;return x||h||dd?(()=>{if(cd.current<Ki.current){const $e=new Date().getTime()-Ki.current;Tn.current=Tn.current-$e}cd.current=new Date().getTime()})():(()=>{Tn.current!==1/0&&(Ki.current=new Date().getTime(),O=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),at()},Tn.current))})(),()=>clearTimeout(O)},[x,h,d,Te,dd,at]),p.useEffect(()=>{d.delete&&(at(),d.onDismiss==null||d.onDismiss.call(d,d))},[at,d.delete]);function $b(){var O;if(F?.loading){var ue;return p.createElement("div",{className:ze(_?.loader,d==null||(ue=d.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":Te==="loading"},F.loading)}return p.createElement(P0,{className:ze(_?.loader,d==null||(O=d.classNames)==null?void 0:O.loader),visible:Te==="loading"})}const kb=d.icon||F?.[Te]||$0(Te);var fd,hd;return p.createElement("li",{tabIndex:0,ref:Xe,className:ze(V,wb,_?.toast,d==null||(t=d.classNames)==null?void 0:t.toast,_?.default,_?.[Te],d==null||(n=d.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(fd=d.richColors)!=null?fd:b,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":z,"data-promise":!!d.promise,"data-swiped":Ye,"data-removed":X,"data-visible":vb,"data-y-position":Sb,"data-x-position":Cb,"data-index":v,"data-front":yb,"data-swiping":Le,"data-dismissible":qt,"data-type":Te,"data-invert":Tb,"data-swipe-out":Se,"data-swipe-direction":fe,"data-expanded":!!(x||Z&&z),"data-testid":d.testId,style:{"--index":v,"--toasts-before":v,"--z-index":C.length-v,"--offset":`${X?mb:Yt.current}px`,"--initial-height":Z?"auto":`${gb}px`,...P,...d.style},onDragEnd:()=>{G(!1),J(null),Xt.current=null},onPointerDown:O=>{O.button!==2&&(qi||!qt||(ad.current=new Date,Wi(Yt.current),O.target.setPointerCapture(O.pointerId),O.target.tagName!=="BUTTON"&&(G(!0),Xt.current={x:O.clientX,y:O.clientY})))},onPointerUp:()=>{var O,ue,ge;if(Se||!qt)return;Xt.current=null;const $e=Number(((O=Xe.current)==null?void 0:O.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wr=Number(((ue=Xe.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),he=new Date().getTime()-((ge=ad.current)==null?void 0:ge.getTime()),De=Y==="x"?$e:wr,br=Math.abs(De)/he;if(Math.abs(De)>=W0||br>.11){Wi(Yt.current),d.onDismiss==null||d.onDismiss.call(d,d),ae(Y==="x"?$e>0?"right":"left":wr>0?"down":"up"),at(),st(!0);return}else{var _e,Ne;(_e=Xe.current)==null||_e.style.setProperty("--swipe-amount-x","0px"),(Ne=Xe.current)==null||Ne.style.setProperty("--swipe-amount-y","0px")}ve(!1),G(!1),J(null)},onPointerMove:O=>{var ue,ge,$e;if(!Xt.current||!qt||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;const he=O.clientY-Xt.current.y,De=O.clientX-Xt.current.x;var br;const _e=(br=e.swipeDirections)!=null?br:q0(j);!Y&&(Math.abs(De)>1||Math.abs(he)>1)&&J(Math.abs(De)>Math.abs(he)?"x":"y");let Ne={x:0,y:0};const pd=Ct=>1/(1.5+Math.abs(Ct)/20);if(Y==="y"){if(_e.includes("top")||_e.includes("bottom"))if(_e.includes("top")&&he<0||_e.includes("bottom")&&he>0)Ne.y=he;else{const Ct=he*pd(he);Ne.y=Math.abs(Ct)<Math.abs(he)?Ct:he}}else if(Y==="x"&&(_e.includes("left")||_e.includes("right")))if(_e.includes("left")&&De<0||_e.includes("right")&&De>0)Ne.x=De;else{const Ct=De*pd(De);Ne.x=Math.abs(Ct)<Math.abs(De)?Ct:De}(Math.abs(Ne.x)>0||Math.abs(Ne.y)>0)&&ve(!0),(ge=Xe.current)==null||ge.style.setProperty("--swipe-amount-x",`${Ne.x}px`),($e=Xe.current)==null||$e.style.setProperty("--swipe-amount-y",`${Ne.y}px`)}},xb&&!d.jsx&&Te!=="loading"?p.createElement("button",{"aria-label":W,"data-disabled":qi,"data-close-button":!0,onClick:qi||!qt?()=>{}:()=>{at(),d.onDismiss==null||d.onDismiss.call(d,d)},className:ze(_?.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(hd=F?.close)!=null?hd:V0):null,(Te||d.icon||d.promise)&&d.icon!==null&&(F?.[Te]!==null||d.icon)?p.createElement("div",{"data-icon":"",className:ze(_?.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||$b():null,d.type!=="loading"?kb:null):null,p.createElement("div",{"data-content":"",className:ze(_?.content,d==null||(i=d.classNames)==null?void 0:i.content)},p.createElement("div",{"data-title":"",className:ze(_?.title,d==null||(s=d.classNames)==null?void 0:s.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?p.createElement("div",{"data-description":"",className:ze(N,bb,_?.description,d==null||(a=d.classNames)==null?void 0:a.description)},typeof d.description=="function"?d.description():d.description):null),p.isValidElement(d.cancel)?d.cancel:d.cancel&&ar(d.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||M,onClick:O=>{ar(d.cancel)&&qt&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,O),at())},className:ze(_?.cancelButton,d==null||(l=d.classNames)==null?void 0:l.cancelButton)},d.cancel.label):null,p.isValidElement(d.action)?d.action:d.action&&ar(d.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||A,onClick:O=>{ar(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,O),!O.defaultPrevented&&at())},className:ze(_?.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function Lc(){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 X0(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?j0:H0;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${s}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${s}-${c}`]=a:n[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}const Z0=p.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:c,offset:u,mobileOffset:d,theme:f="light",richColors:h,duration:m,style:y,visibleToasts:w=z0,toastOptions:v,dir:C=Lc(),gap:x=U0,icons:E,containerAriaLabel:b="Notifications"}=t,[k,P]=p.useState([]),M=p.useMemo(()=>r?k.filter(z=>z.toasterId===r):k.filter(z=>!z.toasterId),[k,r]),A=p.useMemo(()=>Array.from(new Set([i].concat(M.filter(z=>z.position).map(z=>z.position)))),[M,i]),[V,N]=p.useState([]),[H,j]=p.useState(!1),[K,Z]=p.useState(!1),[_,F]=p.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=p.useRef(null),Y=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=p.useRef(null),fe=p.useRef(!1),ae=p.useCallback(z=>{P(ee=>{var X;return(X=ee.find(ce=>ce.id===z.id))!=null&&X.delete||xe.dismiss(z.id),ee.filter(({id:ce})=>ce!==z.id)})},[]);return p.useEffect(()=>xe.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{P(ee=>ee.map(X=>X.id===z.id?{...X,delete:!0}:X))});return}setTimeout(()=>{Yi.flushSync(()=>{P(ee=>{const X=ee.findIndex(ce=>ce.id===z.id);return X!==-1?[...ee.slice(0,X),{...ee[X],...z},...ee.slice(X+1)]:[z,...ee]})})})}),[k]),p.useEffect(()=>{if(f!=="system"){F(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:ee})=>{F(ee?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{F(X?"dark":"light")}catch(ce){console.error(ce)}})}},[f]),p.useEffect(()=>{k.length<=1&&j(!1)},[k]),p.useEffect(()=>{const z=ee=>{var X;if(s.every(G=>ee[G]||ee.code===G)){var Le;j(!0),(Le=W.current)==null||Le.focus()}ee.code==="Escape"&&(document.activeElement===W.current||(X=W.current)!=null&&X.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[s]),p.useEffect(()=>{if(W.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,fe.current=!1)}},[W.current]),p.createElement("section",{ref:n,"aria-label":`${b} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((z,ee)=>{var X;const[ce,Le]=z.split("-");return M.length?p.createElement("ol",{key:z,dir:C==="auto"?Lc():C,tabIndex:-1,ref:W,className:c,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":ce,"data-x-position":Le,style:{"--front-toast-height":`${((X=V[0])==null?void 0:X.height)||0}px`,"--width":`${G0}px`,"--gap":`${x}px`,...y,...X0(u,d)},onBlur:G=>{fe.current&&!G.currentTarget.contains(G.relatedTarget)&&(fe.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||fe.current||(fe.current=!0,J.current=G.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{K||j(!1)},onDragEnd:()=>j(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},M.filter(G=>!G.position&&ee===0||G.position===z).map((G,Se)=>{var st,Ye;return p.createElement(Y0,{key:G.id,icons:E,index:Se,toast:G,defaultRichColors:h,duration:(st=v?.duration)!=null?st:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(Ye=v?.closeButton)!=null?Ye:l,interacting:K,position:z,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:ae,toasts:M.filter(ve=>ve.position==G.position),heights:V.filter(ve=>ve.position==G.position),setHeights:N,expandByDefault:a,gap:x,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),J0=({spinnerColor:e="orange",...t})=>g.jsx(Z0,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:g.jsx(sr,{color:e,size:"sm"})},...t}),Q0={elevated:S`
|
|
476
476
|
background-color: var(--color-main-white);
|
|
477
477
|
box-shadow: var(--shadow-black-card);
|
|
478
478
|
border: none;
|
|
@@ -480,7 +480,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
480
480
|
&:hover {
|
|
481
481
|
box-shadow: var(--shadow-hover-black-card);
|
|
482
482
|
}
|
|
483
|
-
`,flat:
|
|
483
|
+
`,flat:S`
|
|
484
484
|
background-color: var(--color-main-white);
|
|
485
485
|
box-shadow: none;
|
|
486
486
|
border: none;
|
|
@@ -488,7 +488,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
488
488
|
&:hover {
|
|
489
489
|
background-color: var(--color-main-alternative-secondary);
|
|
490
490
|
}
|
|
491
|
-
`,info:
|
|
491
|
+
`,info:S`
|
|
492
492
|
background-color: var(--color-main-white);
|
|
493
493
|
box-shadow: none;
|
|
494
494
|
|
|
@@ -499,16 +499,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
499
499
|
&:active {
|
|
500
500
|
border: none;
|
|
501
501
|
}
|
|
502
|
-
`},ey={sm:
|
|
502
|
+
`},ey={sm:S`
|
|
503
503
|
padding: 0.75rem;
|
|
504
504
|
gap: 0.5rem;
|
|
505
|
-
`,md:
|
|
505
|
+
`,md:S`
|
|
506
506
|
padding: 1rem;
|
|
507
507
|
gap: 0.5rem;
|
|
508
|
-
`,lg:
|
|
508
|
+
`,lg:S`
|
|
509
509
|
padding: 1.25rem;
|
|
510
510
|
gap: 0.5rem;
|
|
511
|
-
`},ty=
|
|
511
|
+
`},ty=S`
|
|
512
512
|
transition:
|
|
513
513
|
box-shadow 0.3s ease-out,
|
|
514
514
|
background-color 0.3s ease-out,
|
|
@@ -528,7 +528,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
528
528
|
&:focus-visible {
|
|
529
529
|
outline-color: var(--color-main-blue-primary);
|
|
530
530
|
}
|
|
531
|
-
`,ny=
|
|
531
|
+
`,ny=S`
|
|
532
532
|
opacity: 0.6;
|
|
533
533
|
cursor: not-allowed;
|
|
534
534
|
pointer-events: none;
|
|
@@ -555,7 +555,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
555
555
|
align-self: stretch;
|
|
556
556
|
gap: 0.5rem;
|
|
557
557
|
|
|
558
|
-
${({$showDivider:e})=>e&&
|
|
558
|
+
${({$showDivider:e})=>e&&S`
|
|
559
559
|
border-bottom: 1px solid var(--color-divider);
|
|
560
560
|
padding-bottom: 0.5rem;
|
|
561
561
|
`}
|
|
@@ -568,13 +568,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
568
568
|
align-items: center;
|
|
569
569
|
align-self: stretch;
|
|
570
570
|
gap: 0.5rem;
|
|
571
|
-
`,uy=({children:e,...t})=>g.jsx(cy,{...t,children:e}),dy={xs:
|
|
571
|
+
`,uy=({children:e,...t})=>g.jsx(cy,{...t,children:e}),dy={xs:S`
|
|
572
572
|
${D[12]}
|
|
573
|
-
`,sm:
|
|
573
|
+
`,sm:S`
|
|
574
574
|
${D[12]}
|
|
575
|
-
`,md:
|
|
575
|
+
`,md:S`
|
|
576
576
|
${D[16]}
|
|
577
|
-
`,lg:
|
|
577
|
+
`,lg:S`
|
|
578
578
|
${D[18]}
|
|
579
579
|
`},fy=$.div`
|
|
580
580
|
color: var(--color-main-warning-state);
|
|
@@ -584,23 +584,23 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
584
584
|
display: flex;
|
|
585
585
|
align-items: flex-start;
|
|
586
586
|
gap: 0.25rem;
|
|
587
|
-
`,si=({children:e,className:t,size:n="md",...r})=>g.jsx(fy,{className:t,$size:n,...r,children:e}),hy={xs:
|
|
587
|
+
`,si=({children:e,className:t,size:n="md",...r})=>g.jsx(fy,{className:t,$size:n,...r,children:e}),hy={xs:S`
|
|
588
588
|
${D[14]}
|
|
589
|
-
`,sm:
|
|
589
|
+
`,sm:S`
|
|
590
590
|
${D[16]}
|
|
591
|
-
`,md:
|
|
591
|
+
`,md:S`
|
|
592
592
|
${D[24]}
|
|
593
|
-
`,lg:
|
|
593
|
+
`,lg:S`
|
|
594
594
|
${D[30]}
|
|
595
595
|
`},py=$.label`
|
|
596
596
|
color: var(--color-main-blue-primary);
|
|
597
597
|
${({$size:e})=>hy[e]}
|
|
598
598
|
${({$disabled:e})=>e&&my}
|
|
599
599
|
cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
|
|
600
|
-
`,my=
|
|
600
|
+
`,my=S`
|
|
601
601
|
cursor: not-allowed;
|
|
602
602
|
opacity: 0.6;
|
|
603
|
-
`,lr=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>g.jsxs(py,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:o,...s,children:[e,r&&g.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),_c=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Nc=e=>_c.includes(e),nt=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Nc(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,size:t.size||"md",inputClassName:t.inputClassName,labelClassName:t.labelClassName,messageErrorClassName:t.messageErrorClassName})),gy=e=>e.map(t=>({value:t.value,label:t.label})),yy={text:(e,t,n)=>nt([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>nt([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>nt([{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"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>nt([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>nt([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>nt([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>nt([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},vy=(e,t,n,r,o,i,s,a)=>{const{field:l,...c}=t,u={...l,...c,size:c.size,hasError:c.hasError,disabled:c.disabled,placeholder:c.placeholder,className:c.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:s?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},xt=
|
|
603
|
+
`,lr=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>g.jsxs(py,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:o,...s,children:[e,r&&g.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),_c=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Nc=e=>_c.includes(e),nt=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Nc(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,size:t.size||"md",inputClassName:t.inputClassName,labelClassName:t.labelClassName,messageErrorClassName:t.messageErrorClassName})),gy=e=>e.map(t=>({value:t.value,label:t.label})),yy={text:(e,t,n)=>nt([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>nt([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>nt([{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"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>nt([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>nt([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>nt([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>nt([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},vy=(e,t,n,r,o,i,s,a)=>{const{field:l,...c}=t,u={...l,...c,size:c.size,hasError:c.hasError,disabled:c.disabled,placeholder:c.placeholder,className:c.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:s?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},xt=S`
|
|
604
604
|
display: flex;
|
|
605
605
|
justify-content: space-between;
|
|
606
606
|
align-items: center;
|
|
@@ -630,7 +630,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
630
630
|
&:disabled {
|
|
631
631
|
cursor: not-allowed;
|
|
632
632
|
}
|
|
633
|
-
`,cr=
|
|
633
|
+
`,cr=S`
|
|
634
634
|
width: 100%;
|
|
635
635
|
border: none;
|
|
636
636
|
outline: none;
|
|
@@ -647,18 +647,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
647
647
|
&::placeholder {
|
|
648
648
|
color: var(--color-dark-200);
|
|
649
649
|
}
|
|
650
|
-
`,St=
|
|
650
|
+
`,St=S`
|
|
651
651
|
border: var(--border-input-error) !important;
|
|
652
652
|
|
|
653
653
|
&:focus-within {
|
|
654
654
|
border: 1px solid var(--color-main-warning-state) !important;
|
|
655
655
|
outline: none;
|
|
656
656
|
}
|
|
657
|
-
`,rt=
|
|
657
|
+
`,rt=S`
|
|
658
658
|
border: var(--border-input-disabled) !important;
|
|
659
659
|
cursor: not-allowed;
|
|
660
660
|
opacity: 0.6;
|
|
661
|
-
`,Oc=
|
|
661
|
+
`,Oc=S`
|
|
662
662
|
border: none;
|
|
663
663
|
border-top: 0;
|
|
664
664
|
border-right: 0;
|
|
@@ -684,23 +684,23 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
684
684
|
border-bottom: var(--border-input-focus);
|
|
685
685
|
outline: none;
|
|
686
686
|
}
|
|
687
|
-
`,vn={xs:
|
|
687
|
+
`,vn={xs:S`
|
|
688
688
|
padding: 0.375rem 0.75rem;
|
|
689
689
|
height: 2rem;
|
|
690
690
|
${D[16]}
|
|
691
|
-
`,sm:
|
|
691
|
+
`,sm:S`
|
|
692
692
|
padding: 0.5rem 1rem;
|
|
693
693
|
height: 2.5rem;
|
|
694
694
|
${D[18]}
|
|
695
|
-
`,md:
|
|
695
|
+
`,md:S`
|
|
696
696
|
padding: 0.5rem 1rem;
|
|
697
697
|
height: 2.75rem;
|
|
698
698
|
${D[20]}
|
|
699
|
-
`,lg:
|
|
699
|
+
`,lg:S`
|
|
700
700
|
padding: 0.5rem 1rem;
|
|
701
701
|
height: 3rem;
|
|
702
702
|
${D[20]}
|
|
703
|
-
`},ur=
|
|
703
|
+
`},ur=S`
|
|
704
704
|
display: flex;
|
|
705
705
|
align-items: center;
|
|
706
706
|
justify-content: center;
|
|
@@ -725,7 +725,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
725
725
|
`,Ny=$.span`
|
|
726
726
|
${ur}
|
|
727
727
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
728
|
-
`,Gc=({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[c,u]=p.useState(!1),d=()=>u(f=>!f);return g.jsxs(Ly,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&g.jsx(q,{component:t,size:n,color:s?"var(--color-dark-200)":r}),g.jsx(_y,{type:c?"text":"password",placeholder:o,disabled:s,...l}),g.jsx(Ny,{$disabled:s,onClick:s?void 0:d,children:g.jsx(q,{component:c?ky:$y,size:n,color:s?"var(--color-dark-200)":r})})]})},Uc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Oy=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},By=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},zy=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),Hy=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},jy=(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 Uc(t)},Gy=({options:e,value:t,name:n,disabled:r=!1,onChange:o,onOptionSelect:i})=>{const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),u=p.useId(),[
|
|
728
|
+
`,Gc=({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[c,u]=p.useState(!1),d=()=>u(f=>!f);return g.jsxs(Ly,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&g.jsx(q,{component:t,size:n,color:s?"var(--color-dark-200)":r}),g.jsx(_y,{type:c?"text":"password",placeholder:o,disabled:s,...l}),g.jsx(Ny,{$disabled:s,onClick:s?void 0:d,children:g.jsx(q,{component:c?ky:$y,size:n,color:s?"var(--color-dark-200)":r})})]})},Uc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Oy=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},By=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},zy=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),Hy=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},jy=(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 Uc(t)},Gy=({options:e,value:t,name:n,disabled:r=!1,onChange:o,onOptionSelect:i})=>{const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),u=p.useRef(!1),d=p.useId(),[f,h]=p.useState(!1),[m,y]=p.useState(-1),w=e.find(b=>b.value===t);p.useEffect(()=>{f&&a.current&&(a.current.focus(),y(jy(t,e)))},[f,e,t]),p.useEffect(()=>{Hy(l,m)},[m]),p.useEffect(()=>{if(!f)return;const b=k=>{s.current&&(s.current.contains(k.target)||h(!1))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[f]),p.useEffect(()=>{f?u.current=!0:u.current&&requestAnimationFrame(()=>{c.current?.focus()})},[f]);const v=b=>{b.disabled||(i?.(b),o&&o(zy(b.value,n)),h(!1),y(-1))};return{open:f,activeIndex:m,selected:w,containerRef:s,menuRef:a,menuContentRef:l,buttonRef:c,id:d,setOpen:h,setActiveIndex:y,commitSelection:v,handleKeyDownButton:b=>{r||(b.key==="ArrowDown"||b.key==="ArrowUp"?(b.preventDefault(),h(!0)):(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),h(k=>!k)))},handleKeyDownMenu:b=>{if(b.key==="Escape"){b.preventDefault(),h(!1),y(-1);return}if(b.key==="ArrowDown"||b.key==="ArrowUp"){b.preventDefault();const k=b.key==="ArrowDown"?1:-1;y(By(m,k,e))}else if(b.key==="Enter"){b.preventDefault();const k=e[m];k&&!k.disabled&&v(k)}else b.key==="Home"?(b.preventDefault(),y(Uc(e))):b.key==="End"&&(b.preventDefault(),y(Oy(e)))},handleToggle:()=>{r||h(b=>!b)}}},Uy=$.div`
|
|
729
729
|
position: relative;
|
|
730
730
|
width: 100%;
|
|
731
731
|
`,Wy=$.div`
|
|
@@ -798,15 +798,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
798
798
|
|
|
799
799
|
background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
|
|
800
800
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
801
|
-
`,Zy={xs:
|
|
801
|
+
`,Zy={xs:S`
|
|
802
802
|
${D[14]}
|
|
803
|
-
`,sm:
|
|
803
|
+
`,sm:S`
|
|
804
804
|
${D[16]}
|
|
805
|
-
`,md:
|
|
805
|
+
`,md:S`
|
|
806
806
|
${D[18]}
|
|
807
|
-
`,lg:
|
|
807
|
+
`,lg:S`
|
|
808
808
|
${D[18]}
|
|
809
|
-
`},Wc=p.forwardRef(({size:e,hasError:t,disabled:n,hasValue:r,displayText:o,open:i,inputClassName:s,onClick:a,onKeyDown:l,ariaHaspopup:c,ariaExpanded:u,ariaControls:d,ariaInvalid:f,title:h},m)=>g.jsxs(g.Fragment,{children:[g.jsx(Ky,{type:"button",$size:e,$hasError:t,$hasValue:r,$disabled:n,disabled:n,className:s,ref:m,onClick:a,onKeyDown:l,"aria-haspopup":c,"aria-expanded":u,"aria-controls":d,"aria-invalid":f,title:h,children:o}),g.jsx(Wy,{$size:e,$disabled:n,$open:i,children:g.jsx(q,{component:Bc,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));Wc.displayName="SelectTrigger";const Kc=({option:e,size:t,active:n,selected:r,id:o,className:i,onMouseEnter:s,onClick:a})=>g.jsx(Xy,{id:o,className:i,role:"option",$size:t,"aria-selected":r,$active:n,$disabled:e.disabled,onMouseEnter:s,onClick:a,children:e.label});Kc.displayName="SelectOption";const qc=({open:e,options:t,size:n,activeIndex:r,selectedValue:o,menuRef:i,menuContentRef:s,id:a,optionsClassName:l,optionClassName:c,onKeyDown:u,onOptionClick:d,onOptionMouseEnter:f})=>g.jsx(ln,{children:e&&g.jsx(qy,{ref:i,className:"custom-scrollbar",id:`${a}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":r>=0?`${a}-option-${r}`: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:u,children:g.jsx(Yy,{ref:s,className:l,children:t.map((h,m)=>{const y=m===r;return g.jsx(Kc,{option:h,size:n,active:y,selected:o===h.value,id:`${a}-option-${m}`,className:c,onMouseEnter:()=>{!h.disabled&&e&&f(m)},onClick:()=>d(h)},h.value)})})})});qc.displayName="SelectMenu";const dr=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:i,onChange:s,value:a,name:l,className:c,inputClassName:u,optionsClassName:d,optionClassName:f},h)=>{const{open:m,activeIndex:y,selected:w,containerRef:v,menuRef:C,menuContentRef:
|
|
809
|
+
`},Wc=p.forwardRef(({size:e,hasError:t,disabled:n,hasValue:r,displayText:o,open:i,inputClassName:s,onClick:a,onKeyDown:l,ariaHaspopup:c,ariaExpanded:u,ariaControls:d,ariaInvalid:f,title:h},m)=>g.jsxs(g.Fragment,{children:[g.jsx(Ky,{type:"button",$size:e,$hasError:t,$hasValue:r,$disabled:n,disabled:n,className:s,ref:m,onClick:a,onKeyDown:l,"aria-haspopup":c,"aria-expanded":u,"aria-controls":d,"aria-invalid":f,title:h,children:o}),g.jsx(Wy,{$size:e,$disabled:n,$open:i,children:g.jsx(q,{component:Bc,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));Wc.displayName="SelectTrigger";const Kc=({option:e,size:t,active:n,selected:r,id:o,className:i,onMouseEnter:s,onClick:a})=>g.jsx(Xy,{id:o,className:i,role:"option",$size:t,"aria-selected":r,$active:n,$disabled:e.disabled,onMouseEnter:s,onClick:a,children:e.label});Kc.displayName="SelectOption";const qc=({open:e,options:t,size:n,activeIndex:r,selectedValue:o,menuRef:i,menuContentRef:s,id:a,optionsClassName:l,optionClassName:c,onKeyDown:u,onOptionClick:d,onOptionMouseEnter:f})=>g.jsx(ln,{children:e&&g.jsx(qy,{ref:i,className:"custom-scrollbar",id:`${a}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":r>=0?`${a}-option-${r}`: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:u,children:g.jsx(Yy,{ref:s,className:l,children:t.map((h,m)=>{const y=m===r;return g.jsx(Kc,{option:h,size:n,active:y,selected:o===h.value,id:`${a}-option-${m}`,className:c,onMouseEnter:()=>{!h.disabled&&e&&f(m)},onClick:()=>d(h)},h.value)})})})});qc.displayName="SelectMenu";const dr=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:i,onChange:s,value:a,name:l,className:c,inputClassName:u,optionsClassName:d,optionClassName:f},h)=>{const{open:m,activeIndex:y,selected:w,containerRef:v,menuRef:C,menuContentRef:x,buttonRef:E,id:b,setActiveIndex:k,commitSelection:P,handleKeyDownButton:M,handleKeyDownMenu:A,handleToggle:V}=Gy({options:r,value:a,name:l,disabled:n,onChange:s,onOptionSelect:i}),N=H=>{E.current=H,typeof h=="function"?h(H):h&&"current"in h&&(h.current=H)};return g.jsxs(Uy,{ref:v,className:c,children:[l&&g.jsx("input",{type:"hidden",name:l,value:w?.value??""}),g.jsx(Wc,{ref:N,size:e,hasError:t,disabled:n,hasValue:!!w,displayText:w?.label??o??"",open:m,inputClassName:u,onClick:V,onKeyDown:M,ariaHaspopup:"listbox",ariaExpanded:m,ariaControls:`${b}-listbox`,ariaInvalid:t||void 0,title:w?.label??o??"Select an option"}),g.jsx(qc,{open:m,options:r,size:e,activeIndex:y,selectedValue:a,menuRef:C,menuContentRef:x,id:b,optionsClassName:d,optionClassName:f,onKeyDown:A,onOptionClick:P,onOptionMouseEnter:k})]})});dr.displayName="SelectInput";const Jy=$.textarea`
|
|
810
810
|
${xt}
|
|
811
811
|
${({$size:e})=>Qy[e]}
|
|
812
812
|
${({$hasError:e})=>e&&St}
|
|
@@ -849,34 +849,34 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
849
849
|
${({$size:e})=>vn[e??"md"]}
|
|
850
850
|
`,tv=$.input`
|
|
851
851
|
${cr}
|
|
852
|
-
`,ci=({size:e="md",leftIcon:t,rightIcon:n=jc,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a,...l})=>{const c=u=>{s?.(u.target.value)};return g.jsxs(ev,{$size:e,className:a,children:[t&&g.jsx(q,{component:t,size:r,color:o}),g.jsx(tv,{placeholder:i,onChange:c,...l}),n?g.jsx(q,{component:n,size:r,color:o}):g.jsx(q,{component:jc,size:r,color:o})]})},nv={default:
|
|
852
|
+
`,ci=({size:e="md",leftIcon:t,rightIcon:n=jc,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a,...l})=>{const c=u=>{s?.(u.target.value)};return g.jsxs(ev,{$size:e,className:a,children:[t&&g.jsx(q,{component:t,size:r,color:o}),g.jsx(tv,{placeholder:i,onChange:c,...l}),n?g.jsx(q,{component:n,size:r,color:o}):g.jsx(q,{component:jc,size:r,color:o})]})},nv={default:S`
|
|
853
853
|
min-height: 18rem;
|
|
854
854
|
padding: 2rem;
|
|
855
|
-
`,compact:
|
|
855
|
+
`,compact:S`
|
|
856
856
|
min-height: 6rem;
|
|
857
857
|
padding: 1rem;
|
|
858
858
|
flex-direction: row;
|
|
859
|
-
`},rv={xs:
|
|
859
|
+
`},rv={xs:S`
|
|
860
860
|
${D[12]}
|
|
861
|
-
`,sm:
|
|
861
|
+
`,sm:S`
|
|
862
862
|
${D[12]}
|
|
863
|
-
`,md:
|
|
863
|
+
`,md:S`
|
|
864
864
|
${D[16]}
|
|
865
|
-
`,lg:
|
|
865
|
+
`,lg:S`
|
|
866
866
|
${D[20]}
|
|
867
|
-
`},ov=
|
|
867
|
+
`},ov=S`
|
|
868
868
|
border: 2px dashed var(--color-main-input-borders);
|
|
869
869
|
background-color: var(--color-main-white);
|
|
870
|
-
`,iv=
|
|
870
|
+
`,iv=S`
|
|
871
871
|
border-color: var(--color-main-blue-primary);
|
|
872
872
|
background-color: var(--color-main-alternative-secondary);
|
|
873
|
-
`,sv=
|
|
873
|
+
`,sv=S`
|
|
874
874
|
border: 2px dashed var(--color-main-positive-state);
|
|
875
875
|
background-color: var(--color-green-100);
|
|
876
|
-
`,av=
|
|
876
|
+
`,av=S`
|
|
877
877
|
border-color: var(--color-main-warning-state);
|
|
878
878
|
background-color: var(--color-red-100);
|
|
879
|
-
`,lv=
|
|
879
|
+
`,lv=S`
|
|
880
880
|
border-color: var(--color-dark-200);
|
|
881
881
|
cursor: not-allowed;
|
|
882
882
|
opacity: 0.6;
|
|
@@ -904,7 +904,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
904
904
|
${({$variant:e})=>nv[e]}
|
|
905
905
|
${ov}
|
|
906
906
|
|
|
907
|
-
${({$disabled:e})=>e?lv:
|
|
907
|
+
${({$disabled:e})=>e?lv:S`
|
|
908
908
|
&:hover {
|
|
909
909
|
${iv}
|
|
910
910
|
}
|
|
@@ -978,7 +978,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
978
978
|
cursor: not-allowed;
|
|
979
979
|
opacity: 0.5;
|
|
980
980
|
}
|
|
981
|
-
`,gv=(e,t)=>{const[n,r]=p.useState(!1),o=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),i=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),s=p.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return p.useEffect(()=>()=>{n&&r(!1)},[n]),{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:i,onDragOver:s,onDrop:a}}},yv=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,i]=p.useState(""),s=p.useCallback(l=>{i(l),r?.(l)},[r]),a=p.useCallback(l=>{if(e&&l.some(c=>c.size>e)){const c=e/1048576,u=c>=1?`File size exceeds maximum of ${c.toFixed(1)}MB`:`File size exceeds maximum of ${Math.round(e/1024)}KB`;return s(u),!1}if(t){const c=t.split(",").map(d=>d.trim().toLowerCase());if(l.find(d=>{const f=d.type.toLowerCase(),h=`.${d.name.split(".").pop()?.toLowerCase()}`;return!c.some(m=>{if(m===f||m===h)return!0;if(m.endsWith("/*")){const y=m.slice(0,-2);return f.startsWith(`${y}/`)}return!1})})){const d=`File type not accepted. Allowed: ${t}`;return s(d),!1}}return!n&&l.length>1?(s("Only one file is allowed"),!1):(i(""),!0)},[e,t,n,s]);return{error:o,validateFiles:a,clearError:()=>i("")}},vv=e=>{const t=["Bytes","KB","MB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,n)).toFixed(2)} ${t[n]}`},Yc=({files:e,onRemove:t,disabled:n})=>e.length===0?null:g.jsx(fv,{children:e.map((r,o)=>g.jsxs(hv,{children:[g.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[g.jsx(pv,{size:14,children:r.name}),g.jsx(yn,{size:12,children:vv(r.size)})]}),g.jsx(mv,{type:"button",onClick:()=>t(o),"aria-label":`Remove ${r.name}`,disabled:n,children:g.jsx(zc,{})})]},`${r.name}-${o}`))}),wv=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:i,defaultValue:s,onChange:a,onError:l,onFileRemove:c,disabled:u=!1,hasError:d=!1,errorMessage:f="",className:h="",dropZoneContainerClassName:m="",size:y="md"})=>{const w=i!==void 0,[v,C]=p.useState(s||[]),
|
|
981
|
+
`,gv=(e,t)=>{const[n,r]=p.useState(!1),o=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),i=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),s=p.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return p.useEffect(()=>()=>{n&&r(!1)},[n]),{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:i,onDragOver:s,onDrop:a}}},yv=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,i]=p.useState(""),s=p.useCallback(l=>{i(l),r?.(l)},[r]),a=p.useCallback(l=>{if(e&&l.some(c=>c.size>e)){const c=e/1048576,u=c>=1?`File size exceeds maximum of ${c.toFixed(1)}MB`:`File size exceeds maximum of ${Math.round(e/1024)}KB`;return s(u),!1}if(t){const c=t.split(",").map(d=>d.trim().toLowerCase());if(l.find(d=>{const f=d.type.toLowerCase(),h=`.${d.name.split(".").pop()?.toLowerCase()}`;return!c.some(m=>{if(m===f||m===h)return!0;if(m.endsWith("/*")){const y=m.slice(0,-2);return f.startsWith(`${y}/`)}return!1})})){const d=`File type not accepted. Allowed: ${t}`;return s(d),!1}}return!n&&l.length>1?(s("Only one file is allowed"),!1):(i(""),!0)},[e,t,n,s]);return{error:o,validateFiles:a,clearError:()=>i("")}},vv=e=>{const t=["Bytes","KB","MB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,n)).toFixed(2)} ${t[n]}`},Yc=({files:e,onRemove:t,disabled:n})=>e.length===0?null:g.jsx(fv,{children:e.map((r,o)=>g.jsxs(hv,{children:[g.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[g.jsx(pv,{size:14,children:r.name}),g.jsx(yn,{size:12,children:vv(r.size)})]}),g.jsx(mv,{type:"button",onClick:()=>t(o),"aria-label":`Remove ${r.name}`,disabled:n,children:g.jsx(zc,{})})]},`${r.name}-${o}`))}),wv=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:i,defaultValue:s,onChange:a,onError:l,onFileRemove:c,disabled:u=!1,hasError:d=!1,errorMessage:f="",className:h="",dropZoneContainerClassName:m="",size:y="md"})=>{const w=i!==void 0,[v,C]=p.useState(s||[]),x=w?i:v,E=n*1024*1024,{error:b,validateFiles:k,clearError:P}=yv({maxFileSize:E,accept:r,multiple:t,onError:l}),M=(K,Z)=>{if(!K||K.length===0)return;const _=Array.from(K);if(!k(_))return;const F=t?[...x,..._]:_;w||C(F),a?.(F,Z)},A=K=>{const Z=x[K],_=x.filter((F,W)=>W!==K);w||C(_),c?.(Z,K),a?.(_),_.length===0&&P()},{isDragging:V,dragHandlers:N}=gv(M,u),H=d||!!b,j=f||b;return g.jsxs(cv,{$size:y,className:h,children:[g.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${m}`,children:[g.jsxs(uv,{$variant:e,$isDragging:V,$hasError:H,$disabled:u,role:"button",tabIndex:u?-1:0,"aria-disabled":u,onKeyDown:K=>{(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),K.currentTarget.querySelector("input")?.click())},...N,children:[g.jsx(q,{component:Vy,size:"lg",color:u?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),g.jsxs(dv,{$disabled:u,children:[g.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!H&&g.jsx(je,{size:14,color:"var(--color-main-grey)",children:o})]}),g.jsx("input",{type:"file",multiple:t,accept:r,disabled:u,onChange:K=>M(K.target.files,K.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),H&&j&&g.jsx(si,{size:"sm",children:j}),g.jsx(Yc,{files:x,onRemove:A,disabled:u})]})},Wt={xs:"1rem",sm:"1.25rem",md:"1.5rem",lg:"1.75rem"},bv=$.div`
|
|
982
982
|
position: relative;
|
|
983
983
|
`,xv=$.input`
|
|
984
984
|
position: absolute;
|
|
@@ -1019,7 +1019,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1019
1019
|
${({$hasError:e})=>e&&St}
|
|
1020
1020
|
${({$disabled:e})=>e&&rt}
|
|
1021
1021
|
${({$checked:e})=>e&&Cv}
|
|
1022
|
-
`,Cv=
|
|
1022
|
+
`,Cv=S`
|
|
1023
1023
|
background-color: var(--color-main-orange-primary);
|
|
1024
1024
|
border-color: var(--color-main-orange-primary);
|
|
1025
1025
|
`,Tv=$.svg`
|
|
@@ -1127,7 +1127,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1127
1127
|
outline-color: var(--color-main-orange-primary);
|
|
1128
1128
|
outline-offset: 2px;
|
|
1129
1129
|
}
|
|
1130
|
-
`,Rv=
|
|
1130
|
+
`,Rv=S`
|
|
1131
1131
|
border-color: var(--color-main-orange-primary);
|
|
1132
1132
|
`,Lv=$.div`
|
|
1133
1133
|
height: 1.5rem;
|
|
@@ -1165,16 +1165,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1165
1165
|
align-items: center;
|
|
1166
1166
|
justify-content: center;
|
|
1167
1167
|
gap: 1rem;
|
|
1168
|
-
`,mi=p.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...c},u)=>{const d=p.useId(),f=c.id??d;return g.jsxs(Nv,{className:s,children:[g.jsx(hi,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:f,...c}),t&&g.jsx(pi,{size:e,disabled:o,htmlFor:f,className:l,children:t})]})});mi.displayName="RadioInput";const Ov=({name:e,required:t=!1,onChange:n,onOptionSelect:r,onRadioChange:o,onPinComplete:i,options:s=[]})=>{const[a,l,c]=md.useField(e),u=p.useMemo(()=>!!(l.error&&(l.touched||l.value)),[l.error,l.touched,l.value]),d=p.useMemo(()=>u?l.error:void 0,[u,l.error]),f=p.useMemo(()=>a.name||e,[a.name,e]),h=p.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":u||void 0,"aria-describedby":u?`${f}-error`:void 0}),[t,u,f]),m=p.useCallback(
|
|
1168
|
+
`,mi=p.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...c},u)=>{const d=p.useId(),f=c.id??d;return g.jsxs(Nv,{className:s,children:[g.jsx(hi,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:f,...c}),t&&g.jsx(pi,{size:e,disabled:o,htmlFor:f,className:l,children:t})]})});mi.displayName="RadioInput";const Ov=({name:e,required:t=!1,onChange:n,onOptionSelect:r,onRadioChange:o,onPinComplete:i,options:s=[]})=>{const[a,l,c]=md.useField(e),u=p.useMemo(()=>!!(l.error&&(l.touched||l.value)),[l.error,l.touched,l.value]),d=p.useMemo(()=>u?l.error:void 0,[u,l.error]),f=p.useMemo(()=>a.name||e,[a.name,e]),h=p.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":u||void 0,"aria-describedby":u?`${f}-error`:void 0}),[t,u,f]),m=p.useCallback(b=>{n?n(b):a.onChange(b)},[n,a]),y=p.useCallback(b=>{n?n(b):a.onChange(b)},[n,a]),w=p.useCallback(b=>{c.setValue(b.target.checked)},[c]),v=p.useCallback(b=>{a.onChange(b);const k=s.find(P=>String(P.value)===b.target.value);k&&r?.(k)},[a,s,r]),C=p.useCallback((b,k)=>{const P=b.target.value,M=typeof k=="number"?Number(P):P;c.setValue(M),o?.(b)},[c,o]),x=p.useCallback(b=>{c.setValue(b)},[c]),E=p.useCallback(b=>{c.setValue(b),i?.(b)},[c,i]);return{field:a,meta:l,helpers:c,hasError:u,errorMessage:d,inputId:f,ariaProps:h,handleStandardChange:m,handleTextAreaChange:y,handleCheckboxChange:w,handleSelectChange:v,handleRadioChange:C,handlePinChange:x,handlePinComplete:E}},Bv=["text","email","number","tel","url","date","datetime-local","time"],zv=$.div`
|
|
1169
1169
|
display: flex;
|
|
1170
1170
|
flex-direction: column;
|
|
1171
1171
|
gap: 0.75rem;
|
|
1172
|
-
`,tu=({type:e,inputId:t,name:n,size:r,hasError:o,disabled:i,placeholder:s,inputClassName:a,fieldValue:l,ariaProps:c,options:u=[],onSelectChange:d,checkboxLabel:f,onCheckboxChange:h,radioName:m,onRadioChange:y,pinLength:w=6,pinType:v="number",onPinChange:C,onPinComplete:
|
|
1172
|
+
`,tu=({type:e,inputId:t,name:n,size:r,hasError:o,disabled:i,placeholder:s,inputClassName:a,fieldValue:l,ariaProps:c,options:u=[],onSelectChange:d,checkboxLabel:f,onCheckboxChange:h,radioName:m,onRadioChange:y,pinLength:w=6,pinType:v="number",onPinChange:C,onPinComplete:x,onStandardChange:E,onTextAreaChange:b,leftIcon:k,rightIcon:P,iconSize:M,iconColor:A,additionalProps:V={}})=>{switch(e){case"textarea":return g.jsx(li,{id:t,name:n,className:a,hasError:o,disabled:i,value:l??"",size:r,placeholder:s,onChange:b,...V,...c});case"select":return g.jsx(dr,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,value:l??"",onChange:d,options:u,placeholder:s||"Selecciona una opción",...V,...c});case"checkbox":return g.jsx(wn,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,checked:!!l,label:f,onChange:h,...V,...c});case"radio":{const N=u;return g.jsx(zv,{children:N.map(H=>g.jsx(mi,{name:m||n,value:H.value,label:H.label,size:r,hasError:o,disabled:i,checked:l===H.value,onChange:j=>y?.(j,H.value),...c},H.value))})}case"pin":return g.jsx(fi,{length:w,type:v,size:r,hasError:o,onChange:C,onComplete:x,...V,...c});case"password":{const{...N}=V;return g.jsx(Gc,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,leftIcon:k,iconSize:M,iconColor:A,onChange:E,...N,...c})}case"search":return g.jsx(ci,{className:a,size:r,placeholder:s,leftIcon:k,rightIcon:P,iconSize:M,iconColor:A,onSearch:V.onSearch,...c});default:return g.jsx(ai,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,type:Bv.includes(e)?e:"text",leftIcon:k,rightIcon:P,iconSize:M,iconColor:A,value:l??"",onChange:E,...V,...c})}};tu.displayName="FieldRenderer";const Hv=$.div`
|
|
1173
1173
|
display: flex;
|
|
1174
1174
|
flex-direction: column;
|
|
1175
1175
|
gap: 0.5rem;
|
|
1176
1176
|
width: 100%;
|
|
1177
|
-
`,jv=p.memo(({inputId:e,label:t,size:n,required:r,disabled:o,hasError:i,errorMessage:s,isCheckbox:a=!1,className:l,labelClassName:c,messageErrorClassName:u,children:d})=>g.jsxs(Hv,{className:l,children:[t&&!a&&g.jsx(lr,{htmlFor:e,size:n,required:r,disabled:o,className:c,children:t}),d,i&&s&&g.jsx(si,{id:`${e}-error`,size:n,className:u,children:s})]})),Gv=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:c,radioName:u,pinLength:d=6,pinType:f="number",rows:h=4,className:m,inputClassName:y,labelClassName:w,messageErrorClassName:v,leftIcon:C,rightIcon:
|
|
1177
|
+
`,jv=p.memo(({inputId:e,label:t,size:n,required:r,disabled:o,hasError:i,errorMessage:s,isCheckbox:a=!1,className:l,labelClassName:c,messageErrorClassName:u,children:d})=>g.jsxs(Hv,{className:l,children:[t&&!a&&g.jsx(lr,{htmlFor:e,size:n,required:r,disabled:o,className:c,children:t}),d,i&&s&&g.jsx(si,{id:`${e}-error`,size:n,className:u,children:s})]})),Gv=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:c,radioName:u,pinLength:d=6,pinType:f="number",rows:h=4,className:m,inputClassName:y,labelClassName:w,messageErrorClassName:v,leftIcon:C,rightIcon:x,iconSize:E,iconColor:b,onOptionSelect:k,onRadioChange:P,onPinComplete:M,onChange:A,...V})=>{const{field:N,hasError:H,errorMessage:j,inputId:K,ariaProps:Z,handleStandardChange:_,handleTextAreaChange:F,handleCheckboxChange:W,handleSelectChange:Y,handleRadioChange:J,handlePinChange:fe,handlePinComplete:ae}=Ov({name:t,required:a,onChange:A,onOptionSelect:k,onRadioChange:P,onPinComplete:M,options:l}),z=e?.toString?.()||K;return g.jsx(jv,{inputId:z,label:n,size:o,required:a,disabled:s,hasError:H,errorMessage:j,isCheckbox:r==="checkbox",className:m,labelClassName:w,messageErrorClassName:v,children:g.jsx(tu,{type:r,inputId:z,name:t,size:o,hasError:H,disabled:s,placeholder:i,inputClassName:y,fieldValue:N.value,ariaProps:Z,options:l,onSelectChange:Y,checkboxLabel:c,onCheckboxChange:W,radioName:u,onRadioChange:J,pinLength:d,pinType:f,rows:h,onPinChange:fe,onPinComplete:ae,onStandardChange:_,onTextAreaChange:F,leftIcon:C,rightIcon:x,iconSize:E,iconColor:b,additionalProps:V})})},nu={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},gi={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},Uv={fromBottom:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"}},fromTop:{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2,ease:"easeInOut"}},fromLeft:{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2,ease:"easeInOut"}},fromRight:{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.2,ease:"easeInOut"}}},ru={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"}},Wv=$(Ke.div)`
|
|
1178
1178
|
position: fixed;
|
|
1179
1179
|
inset: 0;
|
|
1180
1180
|
z-index: 50;
|
|
@@ -1296,7 +1296,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1296
1296
|
bottom: 0;
|
|
1297
1297
|
background: var(--color-main-white);
|
|
1298
1298
|
`}
|
|
1299
|
-
`,au=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>g.jsx(e1,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),t1=({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:c="Cancel",size:u="md",fullScreen:d=!1,showCloseButton:f=!0,closeOnBackdropClick:h=!1,containerClassName:m,headerClassName:y,bodyClassName:w,footerClassName:v,initiallyConfirmed:C=!1,onConfirmChange:
|
|
1299
|
+
`,au=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>g.jsx(e1,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),t1=({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:c="Cancel",size:u="md",fullScreen:d=!1,showCloseButton:f=!0,closeOnBackdropClick:h=!1,containerClassName:m,headerClassName:y,bodyClassName:w,footerClassName:v,initiallyConfirmed:C=!1,onConfirmChange:x})=>{const[E,b]=p.useState(C);p.useEffect(()=>{e||b(C)},[e,C]);const k=P=>{b(P),x?.(P)};return g.jsxs(ou,{isOpen:e,onClose:n,size:u,fullScreen:d,showCloseButton:f,closeOnBackdropClick:h,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${m} !h-fit !max-w-[60rem]`,children:[g.jsx(iu,{showDivider:!0,className:y,children:g.jsx(Ns,{id:"tac-title",size:20,children:r})}),g.jsxs(su,{padded:!0,showBottomDivider:!0,className:w,children:[o&&g.jsx(je,{id:"tac-subtitle",size:16,children:o}),i,s]}),g.jsxs(au,{showDivider:!0,align:"space-between",className:v,children:[g.jsx(wn,{label:a,checked:E,onChange:P=>k(P.target.checked)}),g.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[g.jsx(Ut,{variant:"secondary",onClick:n,children:c}),g.jsx(Ut,{variant:"primary",onClick:t,disabled:!E,children:l})]})]})]})},n1=Cf`
|
|
1300
1300
|
from {
|
|
1301
1301
|
opacity: 0;
|
|
1302
1302
|
}
|
|
@@ -1309,27 +1309,27 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1309
1309
|
`,o1=$.div`
|
|
1310
1310
|
display: inline-block;
|
|
1311
1311
|
cursor: pointer;
|
|
1312
|
-
`,i1=e=>{switch(e){case"top":return
|
|
1312
|
+
`,i1=e=>{switch(e){case"top":return S`
|
|
1313
1313
|
bottom: 100%;
|
|
1314
1314
|
left: 50%;
|
|
1315
1315
|
transform: translateX(-50%);
|
|
1316
1316
|
margin-bottom: 0.5rem;
|
|
1317
|
-
`;case"bottom":return
|
|
1317
|
+
`;case"bottom":return S`
|
|
1318
1318
|
top: 100%;
|
|
1319
1319
|
left: 50%;
|
|
1320
1320
|
transform: translateX(-50%);
|
|
1321
1321
|
margin-top: 0.5rem;
|
|
1322
|
-
`;case"left":return
|
|
1322
|
+
`;case"left":return S`
|
|
1323
1323
|
right: 100%;
|
|
1324
1324
|
top: 50%;
|
|
1325
1325
|
transform: translateY(-50%);
|
|
1326
1326
|
margin-right: 0.5rem;
|
|
1327
|
-
`;case"right":return
|
|
1327
|
+
`;case"right":return S`
|
|
1328
1328
|
left: 100%;
|
|
1329
1329
|
top: 50%;
|
|
1330
1330
|
transform: translateY(-50%);
|
|
1331
1331
|
margin-left: 0.5rem;
|
|
1332
|
-
`;default:return
|
|
1332
|
+
`;default:return S``}},s1=$.div`
|
|
1333
1333
|
position: absolute;
|
|
1334
1334
|
z-index: 9999;
|
|
1335
1335
|
pointer-events: auto;
|
|
@@ -1350,30 +1350,30 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1350
1350
|
|
|
1351
1351
|
/* Position based on placement */
|
|
1352
1352
|
${({$placement:e})=>i1(e)}
|
|
1353
|
-
`,a1=e=>{switch(e){case"top":return
|
|
1353
|
+
`,a1=e=>{switch(e){case"top":return S`
|
|
1354
1354
|
bottom: -0.25rem;
|
|
1355
1355
|
left: 50%;
|
|
1356
1356
|
transform: translateX(-50%) rotate(45deg);
|
|
1357
|
-
`;case"bottom":return
|
|
1357
|
+
`;case"bottom":return S`
|
|
1358
1358
|
top: -0.25rem;
|
|
1359
1359
|
left: 50%;
|
|
1360
1360
|
transform: translateX(-50%) rotate(45deg);
|
|
1361
|
-
`;case"left":return
|
|
1361
|
+
`;case"left":return S`
|
|
1362
1362
|
right: -0.25rem;
|
|
1363
1363
|
top: 50%;
|
|
1364
1364
|
transform: translateY(-50%) rotate(45deg);
|
|
1365
|
-
`;case"right":return
|
|
1365
|
+
`;case"right":return S`
|
|
1366
1366
|
left: -0.25rem;
|
|
1367
1367
|
top: 50%;
|
|
1368
1368
|
transform: translateY(-50%) rotate(45deg);
|
|
1369
|
-
`;default:return
|
|
1369
|
+
`;default:return S``}},l1=$.div`
|
|
1370
1370
|
position: absolute;
|
|
1371
1371
|
width: 0.5rem;
|
|
1372
1372
|
height: 0.5rem;
|
|
1373
1373
|
background-color: var(--color-dark-600);
|
|
1374
1374
|
|
|
1375
1375
|
${({$placement:e})=>a1(e)}
|
|
1376
|
-
`,lu=({content:e,children:t,placement:n="bottom",trigger:r="hover",className:o="",arrowClassName:i="",delay:s=200,showArrow:a=!0})=>{const[l,c]=p.useState(!1),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null);p.useEffect(()=>{if(r!=="click"||!l)return;const v=C=>{d.current&&!d.current.contains(C.target)&&f.current&&!f.current.contains(C.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l,r]),p.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const w=r==="hover"?{onMouseEnter:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>c(!0),s)},onMouseLeave:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>c(!1),100)}}:{onClick:()=>{c(v=>!v)}};return g.jsxs(r1,{children:[g.jsx(o1,{ref:f,...w,children:t}),l&&g.jsxs(s1,{ref:d,$placement:n,className:o,role:"tooltip","aria-hidden":!l,children:[e,a&&g.jsx(l1,{$placement:n,className:i})]})]})};lu.displayName="Tooltip";const yi=p.createContext(void 0),cu=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(!1);return g.jsx(yi.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},vi=()=>{const e=p.useContext(yi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},wi=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),c1=
|
|
1376
|
+
`,lu=({content:e,children:t,placement:n="bottom",trigger:r="hover",className:o="",arrowClassName:i="",delay:s=200,showArrow:a=!0})=>{const[l,c]=p.useState(!1),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null);p.useEffect(()=>{if(r!=="click"||!l)return;const v=C=>{d.current&&!d.current.contains(C.target)&&f.current&&!f.current.contains(C.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l,r]),p.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const w=r==="hover"?{onMouseEnter:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>c(!0),s)},onMouseLeave:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>c(!1),100)}}:{onClick:()=>{c(v=>!v)}};return g.jsxs(r1,{children:[g.jsx(o1,{ref:f,...w,children:t}),l&&g.jsxs(s1,{ref:d,$placement:n,className:o,role:"tooltip","aria-hidden":!l,children:[e,a&&g.jsx(l1,{$placement:n,className:i})]})]})};lu.displayName="Tooltip";const yi=p.createContext(void 0),cu=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(!1);return g.jsx(yi.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},vi=()=>{const e=p.useContext(yi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},wi=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),c1=S`
|
|
1377
1377
|
display: flex;
|
|
1378
1378
|
align-items: center;
|
|
1379
1379
|
justify-content: center;
|
|
@@ -1465,7 +1465,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1465
1465
|
transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
|
|
1466
1466
|
pointer-events: none;
|
|
1467
1467
|
transition: transform 0.3s ease-out;
|
|
1468
|
-
`,du=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[i,s]=p.useState(!1),{isCollapsed:a,setIsMobileOpen:l,setIsCollapsed:c}=vi(),u=p.useMemo(()=>(e.children||[]).filter(
|
|
1468
|
+
`,du=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[i,s]=p.useState(!1),{isCollapsed:a,setIsMobileOpen:l,setIsCollapsed:c}=vi(),u=p.useMemo(()=>(e.children||[]).filter(x=>wi(t,x.permissions)),[e.children,t]);if(!p.useMemo(()=>wi(t,e.permissions),[t,e.permissions]))return null;const f=u.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),y=()=>{a&&c(!1),s(x=>!x)},w=()=>{a&&c(!1),e.href&&o?.(e.href)},v=async()=>{if(a&&c(!1),!!e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),l&&l(!1)}catch(x){console.error("Error al navegar a microservicio:",x)}},C=()=>g.jsxs(g.Fragment,{children:[g.jsxs(f1,{children:[n>0&&!a&&g.jsx(g1,{}),e.icon&&g.jsx(q,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&g.jsx(h1,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&f&&g.jsx(y1,{$disabled:a,$open:i,children:g.jsx(q,{component:Sy,size:"sm",color:"var(--color-main-blue-primary)"})})]});return g.jsxs(m1,{$level:n,children:[e.href&&!e.path&&!f?g.jsx(u1,{type:"button",onClick:w,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:C()}):g.jsx(d1,{type:"button",onClick:f?y:e.path?v:w,$level:n,$collapsed:a,$active:m,$expanded:i&&f,title:a?e.label:"",children:C()}),g.jsx(ln,{initial:!1,children:!a&&i&&f&&g.jsx(p1,{$level:n+1,...ru,children:u.map(x=>g.jsx(du,{item:x,userRoles:t,level:n+1,onNavigate:o,activePath:r},x.id))})})]})},fu=$(Ke.div)`
|
|
1469
1469
|
position: fixed;
|
|
1470
1470
|
inset: 0;
|
|
1471
1471
|
background: rgba(0, 0, 0, 0.5);
|
|
@@ -1550,7 +1550,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1550
1550
|
@media (min-width: 768px) {
|
|
1551
1551
|
display: none;
|
|
1552
1552
|
}
|
|
1553
|
-
`,bi=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=vi(),u=d=>{i(d),typeof window<"u"&&window.innerWidth<768&&c(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(ln,{children:l&&g.jsx(fu,{...gi,onClick:()=>c(!1)})}),g.jsxs(hu,{$collapsed:l?!1:s,$open:l,children:[g.jsxs(pu,{$collapsed:s,children:[g.jsx(mu,{children:s?o:r}),g.jsx(yu,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:g.jsx(q,{component:Hc,size:"md",color:"var(--color-main-blue-primary)"})})]}),g.jsx(gu,{children:e.map(d=>g.jsx(du,{item:d,userRoles:t,onNavigate:u,activePath:n},d.id))})]}),g.jsx(vu,{onClick:()=>{c(!0),a(!1)},$hidden:l,children:g.jsx(q,{component:Hc,size:30})})]})};bi.displayName="Sidebar";const wu={underlined:
|
|
1553
|
+
`,bi=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=vi(),u=d=>{i(d),typeof window<"u"&&window.innerWidth<768&&c(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(ln,{children:l&&g.jsx(fu,{...gi,onClick:()=>c(!1)})}),g.jsxs(hu,{$collapsed:l?!1:s,$open:l,children:[g.jsxs(pu,{$collapsed:s,children:[g.jsx(mu,{children:s?o:r}),g.jsx(yu,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:g.jsx(q,{component:Hc,size:"md",color:"var(--color-main-blue-primary)"})})]}),g.jsx(gu,{children:e.map(d=>g.jsx(du,{item:d,userRoles:t,onNavigate:u,activePath:n},d.id))})]}),g.jsx(vu,{onClick:()=>{c(!0),a(!1)},$hidden:l,children:g.jsx(q,{component:Hc,size:30})})]})};bi.displayName="Sidebar";const wu={underlined:S`
|
|
1554
1554
|
color: var(--color-main-orange-primary);
|
|
1555
1555
|
text-decoration-thickness: 1px;
|
|
1556
1556
|
text-underline-offset: 2px;
|
|
@@ -1580,7 +1580,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1580
1580
|
text-decoration-thickness: 1px;
|
|
1581
1581
|
text-underline-offset: 2px;
|
|
1582
1582
|
}
|
|
1583
|
-
`,plain:
|
|
1583
|
+
`,plain:S`
|
|
1584
1584
|
color: var(--color-main-orange-primary);
|
|
1585
1585
|
text-decoration: none;
|
|
1586
1586
|
|
|
@@ -1610,7 +1610,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1610
1610
|
text-decoration-thickness: 1px;
|
|
1611
1611
|
text-underline-offset: 2px;
|
|
1612
1612
|
}
|
|
1613
|
-
`},bu=
|
|
1613
|
+
`},bu=S`
|
|
1614
1614
|
color: var(--color-dark-200);
|
|
1615
1615
|
cursor: not-allowed;
|
|
1616
1616
|
pointer-events: none;
|
|
@@ -1628,13 +1628,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1628
1628
|
text-decoration: none;
|
|
1629
1629
|
transform: none;
|
|
1630
1630
|
}
|
|
1631
|
-
`,xu={sm:
|
|
1631
|
+
`,xu={sm:S`
|
|
1632
1632
|
gap: 0.25rem;
|
|
1633
1633
|
${D[14]}
|
|
1634
|
-
`,md:
|
|
1634
|
+
`,md:S`
|
|
1635
1635
|
gap: 0.5rem;
|
|
1636
1636
|
${D[16]}
|
|
1637
|
-
`,lg:
|
|
1637
|
+
`,lg:S`
|
|
1638
1638
|
gap: 0.75rem;
|
|
1639
1639
|
${D[20]}
|
|
1640
1640
|
`},v1=$.a`
|
|
@@ -1656,12 +1656,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1656
1656
|
flex: 1 1 auto;
|
|
1657
1657
|
min-width: 0;
|
|
1658
1658
|
max-width: 18ch;
|
|
1659
|
-
${({$truncate:e})=>e&&
|
|
1659
|
+
${({$truncate:e})=>e&&S`
|
|
1660
1660
|
overflow: hidden;
|
|
1661
1661
|
text-overflow: ellipsis;
|
|
1662
1662
|
white-space: nowrap;
|
|
1663
1663
|
`}
|
|
1664
|
-
`,Su=p.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:i,rel:s,className:a,disabled:l=!1,tabIndex:c,leftIcon:u,rightIcon:d,iconSize:f="tn",iconColor:h="currentColor",truncate:m=!1,"aria-label":y,"aria-describedby":w,onClick:v,...C},
|
|
1664
|
+
`,Su=p.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:i,rel:s,className:a,disabled:l=!1,tabIndex:c,leftIcon:u,rightIcon:d,iconSize:f="tn",iconColor:h="currentColor",truncate:m=!1,"aria-label":y,"aria-describedby":w,onClick:v,...C},x)=>{const E=p.useCallback(k=>{if(l){k.preventDefault();return}v?.(k)},[l,v]),b={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:E,"aria-label":y??r,"aria-describedby":w,"aria-disabled":l,tabIndex:l?-1:c??0,...C};return g.jsxs(v1,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:x,...b,children:[u&&g.jsx(q,{component:u,size:f,color:h}),g.jsx(w1,{$truncate:m,children:r}),g.jsx(q,{component:d||Ty,size:t==="lg"?"sm":f,color:h})]})});Su.displayName="Link";/**
|
|
1665
1665
|
* table-core
|
|
1666
1666
|
*
|
|
1667
1667
|
* Copyright (c) TanStack
|
|
@@ -1673,7 +1673,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1673
1673
|
*/function b1(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function ot(e,t){return typeof e=="function"?e(t):e}function Ce(e,t){return n=>{t.setState(r=>({...r,[e]:ot(n,r[e])}))}}function fr(e){return e instanceof Function}function x1(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function S1(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function I(e,t,n){let r=[],o;return i=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(i);if(!(a.length!==r.length||a.some((u,d)=>r[d]!==u)))return o;r=a;let c;if(n.key&&n.debug&&(c=Date.now()),o=t(...a),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-s)*100)/100,d=Math.round((Date.now()-c)*100)/100,f=d/16,h=(m,y)=>{for(m=String(m);m.length<y;)m=" "+m;return m};console.info(`%c⏱ ${h(d,5)} /${h(u,5)} ms`,`
|
|
1674
1674
|
font-size: .6rem;
|
|
1675
1675
|
font-weight: bold;
|
|
1676
|
-
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n?.key)}return o}}function R(e,t,n,r){return{debug:()=>{var o;return(o=e?.debugAll)!=null?o:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function C1(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:I(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),R(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function T1(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(o=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=f=>{let h=f;for(const y of l.split(".")){var m;h=(m=h)==null?void 0:m[y],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return h}:u=f=>f[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(c)}`,accessorFn:u,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:I(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},R(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:I(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=d.columns)!=null&&h.length){let m=d.columns.flatMap(y=>y.getLeafColumns());return f(m)}return[d]},R(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const me="debugHeaders";function Cu(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const $1={createTable:e=>{e.getHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const a=(i=r?.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],l=(s=o?.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],c=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return hr(t,[...a,...c,...l],e)},R(e.options,me,"getHeaderGroups")),e.getCenterHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),hr(t,n,e,"center")),R(e.options,me,"getCenterHeaderGroups")),e.getLeftHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return hr(t,i,e,"left")},R(e.options,me,"getLeftHeaderGroups")),e.getRightHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return hr(t,i,e,"right")},R(e.options,me,"getRightHeaderGroups")),e.getFooterGroups=I(()=>[e.getHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getFooterGroups")),e.getLeftFooterGroups=I(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getLeftFooterGroups")),e.getCenterFooterGroups=I(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getCenterFooterGroups")),e.getRightFooterGroups=I(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getRightFooterGroups")),e.getFlatHeaders=I(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getFlatHeaders")),e.getLeftFlatHeaders=I(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getLeftFlatHeaders")),e.getCenterFlatHeaders=I(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getCenterFlatHeaders")),e.getRightFlatHeaders=I(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getRightFlatHeaders")),e.getCenterLeafHeaders=I(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),R(e.options,me,"getCenterLeafHeaders")),e.getLeftLeafHeaders=I(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),R(e.options,me,"getLeftLeafHeaders")),e.getRightLeafHeaders=I(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),R(e.options,me,"getRightLeafHeaders")),e.getLeafHeaders=I(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,a,l,c;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=r[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},R(e.options,me,"getLeafHeaders"))}};function hr(e,t,n,r){var o,i;let s=0;const a=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(m=>m.getIsVisible()).forEach(m=>{var y;(y=m.columns)!=null&&y.length&&a(m.columns,h+1)},0)};a(e);let l=[];const c=(f,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},y=[];f.forEach(w=>{const v=[...y].reverse()[0],C=w.column.depth===m.depth;let b,k=!1;if(C&&w.column.parent?b=w.column.parent:(b=w.column,k=!0),v&&v?.column===b)v.subHeaders.push(w);else{const S=Cu(n,b,{id:[r,h,b.id,w?.id].filter(Boolean).join("_"),isPlaceholder:k,placeholderId:k?`${y.filter(P=>P.column===b).length}`:void 0,depth:h,index:y.length});S.subHeaders.push(w),y.push(S)}m.headers.push(w),w.headerGroup=m}),l.push(m),h>0&&c(y,h-1)},u=t.map((f,h)=>Cu(n,f,{depth:s,index:h}));c(u,s-1),l.reverse();const d=f=>f.filter(m=>m.column.getIsVisible()).map(m=>{let y=0,w=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],d(m.subHeaders).forEach(b=>{let{colSpan:k,rowSpan:S}=b;y+=k,v.push(S)})):y=1;const C=Math.min(...v);return w=w+C,m.colSpan=y,m.rowSpan=w,{colSpan:y,rowSpan:w}});return d((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const xi=(e,t,n,r,o,i,s)=>{let a={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,r),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>S1(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:I(()=>[e.getAllLeafColumns()],l=>l.map(c=>C1(e,a,c,c.id)),R(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:I(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),R(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},k1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Tu=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};Tu.autoRemove=e=>Re(e);const $u=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};$u.autoRemove=e=>Re(e);const ku=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};ku.autoRemove=e=>Re(e);const Pu=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Pu.autoRemove=e=>Re(e);const Eu=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Eu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Mu=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});Mu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Au=(e,t,n)=>e.getValue(t)===n;Au.autoRemove=e=>Re(e);const Du=(e,t,n)=>e.getValue(t)==n;Du.autoRemove=e=>Re(e);const Si=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Si.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const a=i;i=s,s=a}return[i,s]},Si.autoRemove=e=>Re(e)||Re(e[0])&&Re(e[1]);const qe={includesString:Tu,includesStringSensitive:$u,equalsString:ku,arrIncludes:Pu,arrIncludesAll:Eu,arrIncludesSome:Mu,equals:Au,weakEquals:Du,inNumberRange:Si};function Re(e){return e==null||e===""}const P1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ce("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?qe.includesString:typeof r=="number"?qe.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?qe.equals:Array.isArray(r)?qe.arrIncludes:qe.weakEquals},e.getFilterFn=()=>{var n,r;return fr(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:qe[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r?.find(u=>u.id===e.id),s=ot(n,i?i.value:void 0);if(Vu(o,s,e)){var a;return(a=r?.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var c;return(c=r?.map(u=>u.id===e.id?l:u))!=null?c:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=ot(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Vu(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Vu(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Ci={sum:(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),min:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},max:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!x1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},E1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ce("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);if(typeof r=="number")return Ci.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Ci.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return fr(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Ci[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function M1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const A1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ce("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=I(n=>[bn(t,n)],n=>n.findIndex(r=>r.id===e.id),R(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=bn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=bn(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=I(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],a=[...o];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(u=>u.id===l);c>-1&&i.push(a.splice(c,1)[0])}i=[...i,...a]}return M1(i,n,r)},R(e.options,"debugTable","_getOrderColumnsFn"))}},Ti=()=>({left:[],right:[]}),D1={getInitialState:e=>({columnPinning:Ti(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ce("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var a,l;return{left:((a=o?.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=o?.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var c,u;return{left:[...((c=o?.left)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((u=o?.right)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=o?.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((s=o?.right)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=I(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},R(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=I(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),R(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=I(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),R(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Ti():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Ti())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=I(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),R(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=I(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),R(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=I(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},R(e.options,"debugColumns","getCenterLeafColumns"))}};function V1(e){return e||(typeof document<"u"?document:null)}const pr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},$i=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),F1={getDefaultColumnDef:()=>pr,getInitialState:e=>({columnSizing:{},columnSizingInfo:$i(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ce("columnSizing",e),onColumnSizingInfoChange:Ce("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:pr.minSize,(r=i??e.columnDef.size)!=null?r:pr.size),(o=e.columnDef.maxSize)!=null?o:pr.maxSize)},e.getStart=I(n=>[n,bn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),R(t.options,"debugColumns","getStart")),e.getAfter=I(n=>[n,bn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),R(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r?.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),ki(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],l=ki(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(v,C)=>{typeof C=="number"&&(t.setColumnSizingInfo(b=>{var k,S;const P=t.options.columnResizeDirection==="rtl"?-1:1,E=(C-((k=b?.startOffset)!=null?k:0))*P,M=Math.max(E/((S=b?.startSize)!=null?S:0),-.999999);return b.columnSizingStart.forEach(A=>{let[V,N]=A;c[V]=Math.round(Math.max(N+N*M,0)*100)/100}),{...b,deltaOffset:E,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(b=>({...b,...c})))},d=v=>u("move",v),f=v=>{u("end",v),t.setColumnSizingInfo(C=>({...C,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=V1(n),m={moveHandler:v=>d(v.clientX),upHandler:v=>{h?.removeEventListener("mousemove",m.moveHandler),h?.removeEventListener("mouseup",m.upHandler),f(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),d(v.touches[0].clientX),!1),upHandler:v=>{var C;h?.removeEventListener("touchmove",y.moveHandler),h?.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((C=v.touches[0])==null?void 0:C.clientX)}},w=I1()?{passive:!1}:!1;ki(i)?(h?.addEventListener("touchmove",y.moveHandler,w),h?.addEventListener("touchend",y.upHandler,w)):(h?.addEventListener("mousemove",m.moveHandler,w),h?.addEventListener("mouseup",m.upHandler,w)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?$i():(n=e.initialState.columnSizingInfo)!=null?n:$i())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let mr=null;function I1(){if(typeof mr=="boolean")return mr;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return mr=e,mr}function ki(e){return e.type==="touchstart"}const R1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ce("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=I(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),R(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=I(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],R(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>I(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),R(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function bn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const L1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},_1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ce("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>qe.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return fr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:qe[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},N1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ce("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=s;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Pi=0,Ei=10,Mi=()=>({pageIndex:Pi,pageSize:Ei}),O1={getInitialState:e=>({...e,pagination:{...Mi(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ce("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>ot(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Mi():(o=e.initialState.pagination)!=null?o:Mi())},e.setPageIndex=r=>{e.setPagination(o=>{let i=ot(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Pi:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Pi)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Ei:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Ei)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,ot(r,o.pageSize)),s=o.pageSize*o.pageIndex,a=Math.floor(s/i);return{...o,pageIndex:a,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let s=ot(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=I(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},R(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ai=()=>({top:[],bottom:[]}),B1={getInitialState:e=>({rowPinning:Ai(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ce("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=o?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,f;return{top:((d=l?.top)!=null?d:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((f=l?.bottom)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var h,m;return{top:[...((h=l?.top)!=null?h:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)],bottom:((m=l?.bottom)!=null?m:[]).filter(y=>!(a!=null&&a.has(y)))}}return{top:((c=l?.top)!=null?c:[]).filter(y=>!(a!=null&&a.has(y))),bottom:((u=l?.bottom)!=null?u:[]).filter(y=>!(a!=null&&a.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(r=i?.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Ai():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ai())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=I(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),R(e.options,"debugRows","getTopRows")),e.getBottomRows=I(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),R(e.options,"debugRows","getBottomRows")),e.getCenterRows=I(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},R(e.options,"debugRows","getCenterRows"))}},z1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ce("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Di(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=I(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Vi(e,n):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=I(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Vi(e,n):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=I(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Vi(e,n):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return Di(a,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Fi(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ii(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ii(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Di=(e,t,n,r,o)=>{var i;const s=o.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Di(e,a.id,n,r,o))};function Vi(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var c;const u=Fi(l,n);if(u&&(r.push(l),o[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),u)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Fi(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ii(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!o)&&(s.getCanSelect()&&(Fi(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Ii(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Ri=/([0-9]+)/gm,H1=(e,t,n)=>Fu(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),j1=(e,t,n)=>Fu(it(e.getValue(n)),it(t.getValue(n))),G1=(e,t,n)=>Li(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),U1=(e,t,n)=>Li(it(e.getValue(n)),it(t.getValue(n))),W1=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},K1=(e,t,n)=>Li(e.getValue(n),t.getValue(n));function Li(e,t){return e===t?0:e>t?1:-1}function it(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Fu(e,t){const n=e.split(Ri).filter(Boolean),r=t.split(Ri).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-r.length}const xn={alphanumeric:H1,alphanumericCaseSensitive:j1,text:G1,textCaseSensitive:U1,datetime:W1,basic:K1},q1=[$1,R1,A1,D1,k1,P1,L1,_1,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ce("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return xn.datetime;if(typeof i=="string"&&(r=!0,i.split(Ri).length>1))return xn.alphanumeric}return r?xn.text:xn.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return fr(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:xn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(h=>h.id===e.id),l=s?.findIndex(h=>h.id===e.id);let c=[],u,d=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?a?u="toggle":u="add":s!=null&&s.length&&l!==s.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(i||o||(u="remove")),u==="add"){var f;c=[...s,{id:e.id,desc:d}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=s.map(h=>h.id===e.id?{...h,desc:d}:h):u==="remove"?c=s.filter(h=>h.id!==e.id):c=[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},E1,N1,O1,B1,z1,F1];function Y1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...q1,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const c=[];let u=!1;const d={_features:r,options:{...i,...e},initialState:l,_queue:f=>{c.push(f),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const h=ot(f,o.options);o.options=s(h)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,h,m)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(f,h,m))!=null?y:`${m?[m.id,h].join("."):h}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,h)=>{let m=(h?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!m&&(m=o.getCoreRowModel().rowsById[f],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return m},_getDefaultColumnDef:I(()=>[o.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:m=>{const y=m.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:m=>{var y,w;return(y=(w=m.renderValue())==null||w.toString==null?void 0:w.toString())!=null?y:null},...o._features.reduce((m,y)=>Object.assign(m,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...f}},R(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:I(()=>[o._getColumnDefs()],f=>{const h=function(m,y,w){return w===void 0&&(w=0),m.map(v=>{const C=T1(o,v,w,y),b=v;return C.columns=b.columns?h(b.columns,C,w+1):[],C})};return h(f)},R(e,"debugColumns","getAllColumns")),getAllFlatColumns:I(()=>[o.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),R(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:I(()=>[o.getAllFlatColumns()],f=>f.reduce((h,m)=>(h[m.id]=m,h),{}),R(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:I(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,h)=>{let m=f.flatMap(y=>y.getLeafColumns());return h(m)},R(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=o._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(o,d);for(let f=0;f<o._features.length;f++){const h=o._features[f];h==null||h.createTable==null||h.createTable(o)}return o}function X1(){return e=>I(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const a=[];for(let c=0;c<o.length;c++){const u=xi(e,e._getRowId(o[c],c,s),o[c],c,i,void 0,s?.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(o[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=r(u.originalSubRows,i+1,u))}}return a};return n.rows=r(t),n},R(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Z1(e,t,n){return n.options.filterFromLeafRows?J1(e,t,n):Q1(e,t,n)}function J1(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let f=0;f<l.length;f++){var d;let h=l[f];const m=xi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(m.columnFilters=h.columnFilters,(d=h.subRows)!=null&&d.length&&c<s){if(m.subRows=a(h.subRows,c+1),h=m,t(h)&&!m.subRows.length){u.push(h),i[h.id]=h,o.push(h);continue}if(t(h)||m.subRows.length){u.push(h),i[h.id]=h,o.push(h);continue}}else h=m,t(h)&&(u.push(h),i[h.id]=h,o.push(h))}return u};return{rows:a(e),flatRows:o,rowsById:i}}function Q1(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let f=0;f<l.length;f++){let h=l[f];if(t(h)){var d;if((d=h.subRows)!=null&&d.length&&c<s){const y=xi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);y.subRows=a(h.subRows,c+1),h=y}u.push(h),o.push(h),i[h.id]=h}}return u};return{rows:a(e),flatRows:o,rowsById:i}}function ew(){return e=>I(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<t.flatRows.length;f++)t.flatRows[f].columnFilters={},t.flatRows[f].columnFiltersMeta={};return t}const o=[],i=[];(n??[]).forEach(f=>{var h;const m=e.getColumn(f.id);if(!m)return;const y=m.getFilterFn();if(!y){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${m.id}.`);return}o.push({id:f.id,filterFn:y,resolvedValue:(h=y.resolveFilterValue==null?void 0:y.resolveFilterValue(f.value))!=null?h:f.value})});const s=(n??[]).map(f=>f.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&a&&l.length&&(s.push("__global__"),l.forEach(f=>{var h;i.push({id:f.id,filterFn:a,resolvedValue:(h=a.resolveFilterValue==null?void 0:a.resolveFilterValue(r))!=null?h:r})}));let c,u;for(let f=0;f<t.flatRows.length;f++){const h=t.flatRows[f];if(h.columnFilters={},o.length)for(let m=0;m<o.length;m++){c=o[m];const y=c.id;h.columnFilters[y]=c.filterFn(h,y,c.resolvedValue,w=>{h.columnFiltersMeta[y]=w})}if(i.length){for(let m=0;m<i.length;m++){u=i[m];const y=u.id;if(u.filterFn(h,y,u.resolvedValue,w=>{h.columnFiltersMeta[y]=w})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const d=f=>{for(let h=0;h<s.length;h++)if(f.columnFilters[s[h]]===!1)return!1;return!0};return Z1(t.rows,d,e)},R(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function tw(){return e=>I(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],i=r.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(u=>({...u}));return c.sort((u,d)=>{for(let h=0;h<i.length;h+=1){var f;const m=i[h],y=s[m.id],w=y.sortUndefined,v=(f=m?.desc)!=null?f:!1;let C=0;if(w){const b=u.getValue(m.id),k=d.getValue(m.id),S=b===void 0,P=k===void 0;if(S||P){if(w==="first")return S?-1:1;if(w==="last")return S?1:-1;C=S&&P?0:S?w:-w}}if(C===0&&(C=y.sortingFn(u,d,m.id)),C!==0)return v&&(C*=-1),y.invertSorting&&(C*=-1),C}return u.index-d.index}),c.forEach(u=>{var d;o.push(u),(d=u.subRows)!=null&&d.length&&(u.subRows=a(u.subRows))}),c};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}},R(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
|
1676
|
+
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n?.key)}return o}}function R(e,t,n,r){return{debug:()=>{var o;return(o=e?.debugAll)!=null?o:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function C1(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:I(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),R(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function T1(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(o=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=f=>{let h=f;for(const y of l.split(".")){var m;h=(m=h)==null?void 0:m[y],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return h}:u=f=>f[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(c)}`,accessorFn:u,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:I(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},R(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:I(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=d.columns)!=null&&h.length){let m=d.columns.flatMap(y=>y.getLeafColumns());return f(m)}return[d]},R(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const me="debugHeaders";function Cu(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const $1={createTable:e=>{e.getHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const a=(i=r?.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],l=(s=o?.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],c=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return hr(t,[...a,...c,...l],e)},R(e.options,me,"getHeaderGroups")),e.getCenterHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),hr(t,n,e,"center")),R(e.options,me,"getCenterHeaderGroups")),e.getLeftHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return hr(t,i,e,"left")},R(e.options,me,"getLeftHeaderGroups")),e.getRightHeaderGroups=I(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return hr(t,i,e,"right")},R(e.options,me,"getRightHeaderGroups")),e.getFooterGroups=I(()=>[e.getHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getFooterGroups")),e.getLeftFooterGroups=I(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getLeftFooterGroups")),e.getCenterFooterGroups=I(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getCenterFooterGroups")),e.getRightFooterGroups=I(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),R(e.options,me,"getRightFooterGroups")),e.getFlatHeaders=I(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getFlatHeaders")),e.getLeftFlatHeaders=I(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getLeftFlatHeaders")),e.getCenterFlatHeaders=I(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getCenterFlatHeaders")),e.getRightFlatHeaders=I(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),R(e.options,me,"getRightFlatHeaders")),e.getCenterLeafHeaders=I(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),R(e.options,me,"getCenterLeafHeaders")),e.getLeftLeafHeaders=I(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),R(e.options,me,"getLeftLeafHeaders")),e.getRightLeafHeaders=I(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),R(e.options,me,"getRightLeafHeaders")),e.getLeafHeaders=I(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,a,l,c;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=r[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},R(e.options,me,"getLeafHeaders"))}};function hr(e,t,n,r){var o,i;let s=0;const a=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(m=>m.getIsVisible()).forEach(m=>{var y;(y=m.columns)!=null&&y.length&&a(m.columns,h+1)},0)};a(e);let l=[];const c=(f,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},y=[];f.forEach(w=>{const v=[...y].reverse()[0],C=w.column.depth===m.depth;let x,E=!1;if(C&&w.column.parent?x=w.column.parent:(x=w.column,E=!0),v&&v?.column===x)v.subHeaders.push(w);else{const b=Cu(n,x,{id:[r,h,x.id,w?.id].filter(Boolean).join("_"),isPlaceholder:E,placeholderId:E?`${y.filter(k=>k.column===x).length}`:void 0,depth:h,index:y.length});b.subHeaders.push(w),y.push(b)}m.headers.push(w),w.headerGroup=m}),l.push(m),h>0&&c(y,h-1)},u=t.map((f,h)=>Cu(n,f,{depth:s,index:h}));c(u,s-1),l.reverse();const d=f=>f.filter(m=>m.column.getIsVisible()).map(m=>{let y=0,w=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],d(m.subHeaders).forEach(x=>{let{colSpan:E,rowSpan:b}=x;y+=E,v.push(b)})):y=1;const C=Math.min(...v);return w=w+C,m.colSpan=y,m.rowSpan=w,{colSpan:y,rowSpan:w}});return d((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const xi=(e,t,n,r,o,i,s)=>{let a={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,r),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>S1(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:I(()=>[e.getAllLeafColumns()],l=>l.map(c=>C1(e,a,c,c.id)),R(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:I(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),R(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},k1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Tu=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};Tu.autoRemove=e=>Re(e);const $u=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};$u.autoRemove=e=>Re(e);const ku=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};ku.autoRemove=e=>Re(e);const Pu=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Pu.autoRemove=e=>Re(e);const Eu=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Eu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Mu=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});Mu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Au=(e,t,n)=>e.getValue(t)===n;Au.autoRemove=e=>Re(e);const Du=(e,t,n)=>e.getValue(t)==n;Du.autoRemove=e=>Re(e);const Si=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Si.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const a=i;i=s,s=a}return[i,s]},Si.autoRemove=e=>Re(e)||Re(e[0])&&Re(e[1]);const qe={includesString:Tu,includesStringSensitive:$u,equalsString:ku,arrIncludes:Pu,arrIncludesAll:Eu,arrIncludesSome:Mu,equals:Au,weakEquals:Du,inNumberRange:Si};function Re(e){return e==null||e===""}const P1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ce("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?qe.includesString:typeof r=="number"?qe.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?qe.equals:Array.isArray(r)?qe.arrIncludes:qe.weakEquals},e.getFilterFn=()=>{var n,r;return fr(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:qe[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r?.find(u=>u.id===e.id),s=ot(n,i?i.value:void 0);if(Vu(o,s,e)){var a;return(a=r?.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var c;return(c=r?.map(u=>u.id===e.id?l:u))!=null?c:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=ot(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Vu(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Vu(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Ci={sum:(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),min:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},max:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!x1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},E1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ce("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);if(typeof r=="number")return Ci.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Ci.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return fr(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Ci[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function M1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const A1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ce("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=I(n=>[bn(t,n)],n=>n.findIndex(r=>r.id===e.id),R(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=bn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=bn(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=I(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],a=[...o];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(u=>u.id===l);c>-1&&i.push(a.splice(c,1)[0])}i=[...i,...a]}return M1(i,n,r)},R(e.options,"debugTable","_getOrderColumnsFn"))}},Ti=()=>({left:[],right:[]}),D1={getInitialState:e=>({columnPinning:Ti(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ce("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var a,l;return{left:((a=o?.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=o?.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var c,u;return{left:[...((c=o?.left)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((u=o?.right)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=o?.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((s=o?.right)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=I(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},R(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=I(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),R(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=I(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),R(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Ti():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Ti())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=I(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),R(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=I(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),R(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=I(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},R(e.options,"debugColumns","getCenterLeafColumns"))}};function V1(e){return e||(typeof document<"u"?document:null)}const pr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},$i=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),F1={getDefaultColumnDef:()=>pr,getInitialState:e=>({columnSizing:{},columnSizingInfo:$i(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ce("columnSizing",e),onColumnSizingInfoChange:Ce("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:pr.minSize,(r=i??e.columnDef.size)!=null?r:pr.size),(o=e.columnDef.maxSize)!=null?o:pr.maxSize)},e.getStart=I(n=>[n,bn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),R(t.options,"debugColumns","getStart")),e.getAfter=I(n=>[n,bn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),R(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r?.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),ki(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],l=ki(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(v,C)=>{typeof C=="number"&&(t.setColumnSizingInfo(x=>{var E,b;const k=t.options.columnResizeDirection==="rtl"?-1:1,P=(C-((E=x?.startOffset)!=null?E:0))*k,M=Math.max(P/((b=x?.startSize)!=null?b:0),-.999999);return x.columnSizingStart.forEach(A=>{let[V,N]=A;c[V]=Math.round(Math.max(N+N*M,0)*100)/100}),{...x,deltaOffset:P,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(x=>({...x,...c})))},d=v=>u("move",v),f=v=>{u("end",v),t.setColumnSizingInfo(C=>({...C,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=V1(n),m={moveHandler:v=>d(v.clientX),upHandler:v=>{h?.removeEventListener("mousemove",m.moveHandler),h?.removeEventListener("mouseup",m.upHandler),f(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),d(v.touches[0].clientX),!1),upHandler:v=>{var C;h?.removeEventListener("touchmove",y.moveHandler),h?.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((C=v.touches[0])==null?void 0:C.clientX)}},w=I1()?{passive:!1}:!1;ki(i)?(h?.addEventListener("touchmove",y.moveHandler,w),h?.addEventListener("touchend",y.upHandler,w)):(h?.addEventListener("mousemove",m.moveHandler,w),h?.addEventListener("mouseup",m.upHandler,w)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?$i():(n=e.initialState.columnSizingInfo)!=null?n:$i())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let mr=null;function I1(){if(typeof mr=="boolean")return mr;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return mr=e,mr}function ki(e){return e.type==="touchstart"}const R1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ce("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=I(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),R(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=I(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],R(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>I(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),R(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function bn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const L1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},_1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ce("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>qe.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return fr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:qe[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},N1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ce("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=s;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Pi=0,Ei=10,Mi=()=>({pageIndex:Pi,pageSize:Ei}),O1={getInitialState:e=>({...e,pagination:{...Mi(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ce("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>ot(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Mi():(o=e.initialState.pagination)!=null?o:Mi())},e.setPageIndex=r=>{e.setPagination(o=>{let i=ot(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Pi:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Pi)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Ei:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Ei)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,ot(r,o.pageSize)),s=o.pageSize*o.pageIndex,a=Math.floor(s/i);return{...o,pageIndex:a,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let s=ot(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=I(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},R(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ai=()=>({top:[],bottom:[]}),B1={getInitialState:e=>({rowPinning:Ai(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ce("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=o?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,f;return{top:((d=l?.top)!=null?d:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((f=l?.bottom)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var h,m;return{top:[...((h=l?.top)!=null?h:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)],bottom:((m=l?.bottom)!=null?m:[]).filter(y=>!(a!=null&&a.has(y)))}}return{top:((c=l?.top)!=null?c:[]).filter(y=>!(a!=null&&a.has(y))),bottom:((u=l?.bottom)!=null?u:[]).filter(y=>!(a!=null&&a.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(r=i?.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Ai():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ai())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=I(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),R(e.options,"debugRows","getTopRows")),e.getBottomRows=I(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),R(e.options,"debugRows","getBottomRows")),e.getCenterRows=I(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},R(e.options,"debugRows","getCenterRows"))}},z1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ce("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Di(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=I(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Vi(e,n):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=I(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Vi(e,n):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=I(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Vi(e,n):{rows:[],flatRows:[],rowsById:{}},R(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return Di(a,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Fi(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ii(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ii(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Di=(e,t,n,r,o)=>{var i;const s=o.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Di(e,a.id,n,r,o))};function Vi(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var c;const u=Fi(l,n);if(u&&(r.push(l),o[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),u)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Fi(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ii(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!o)&&(s.getCanSelect()&&(Fi(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Ii(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Ri=/([0-9]+)/gm,H1=(e,t,n)=>Fu(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),j1=(e,t,n)=>Fu(it(e.getValue(n)),it(t.getValue(n))),G1=(e,t,n)=>Li(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),U1=(e,t,n)=>Li(it(e.getValue(n)),it(t.getValue(n))),W1=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},K1=(e,t,n)=>Li(e.getValue(n),t.getValue(n));function Li(e,t){return e===t?0:e>t?1:-1}function it(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Fu(e,t){const n=e.split(Ri).filter(Boolean),r=t.split(Ri).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-r.length}const xn={alphanumeric:H1,alphanumericCaseSensitive:j1,text:G1,textCaseSensitive:U1,datetime:W1,basic:K1},q1=[$1,R1,A1,D1,k1,P1,L1,_1,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ce("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return xn.datetime;if(typeof i=="string"&&(r=!0,i.split(Ri).length>1))return xn.alphanumeric}return r?xn.text:xn.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return fr(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:xn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(h=>h.id===e.id),l=s?.findIndex(h=>h.id===e.id);let c=[],u,d=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?a?u="toggle":u="add":s!=null&&s.length&&l!==s.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(i||o||(u="remove")),u==="add"){var f;c=[...s,{id:e.id,desc:d}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=s.map(h=>h.id===e.id?{...h,desc:d}:h):u==="remove"?c=s.filter(h=>h.id!==e.id):c=[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},E1,N1,O1,B1,z1,F1];function Y1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...q1,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const c=[];let u=!1;const d={_features:r,options:{...i,...e},initialState:l,_queue:f=>{c.push(f),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const h=ot(f,o.options);o.options=s(h)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,h,m)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(f,h,m))!=null?y:`${m?[m.id,h].join("."):h}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,h)=>{let m=(h?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!m&&(m=o.getCoreRowModel().rowsById[f],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return m},_getDefaultColumnDef:I(()=>[o.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:m=>{const y=m.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:m=>{var y,w;return(y=(w=m.renderValue())==null||w.toString==null?void 0:w.toString())!=null?y:null},...o._features.reduce((m,y)=>Object.assign(m,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...f}},R(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:I(()=>[o._getColumnDefs()],f=>{const h=function(m,y,w){return w===void 0&&(w=0),m.map(v=>{const C=T1(o,v,w,y),x=v;return C.columns=x.columns?h(x.columns,C,w+1):[],C})};return h(f)},R(e,"debugColumns","getAllColumns")),getAllFlatColumns:I(()=>[o.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),R(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:I(()=>[o.getAllFlatColumns()],f=>f.reduce((h,m)=>(h[m.id]=m,h),{}),R(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:I(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,h)=>{let m=f.flatMap(y=>y.getLeafColumns());return h(m)},R(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=o._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(o,d);for(let f=0;f<o._features.length;f++){const h=o._features[f];h==null||h.createTable==null||h.createTable(o)}return o}function X1(){return e=>I(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const a=[];for(let c=0;c<o.length;c++){const u=xi(e,e._getRowId(o[c],c,s),o[c],c,i,void 0,s?.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(o[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=r(u.originalSubRows,i+1,u))}}return a};return n.rows=r(t),n},R(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Z1(e,t,n){return n.options.filterFromLeafRows?J1(e,t,n):Q1(e,t,n)}function J1(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let f=0;f<l.length;f++){var d;let h=l[f];const m=xi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(m.columnFilters=h.columnFilters,(d=h.subRows)!=null&&d.length&&c<s){if(m.subRows=a(h.subRows,c+1),h=m,t(h)&&!m.subRows.length){u.push(h),i[h.id]=h,o.push(h);continue}if(t(h)||m.subRows.length){u.push(h),i[h.id]=h,o.push(h);continue}}else h=m,t(h)&&(u.push(h),i[h.id]=h,o.push(h))}return u};return{rows:a(e),flatRows:o,rowsById:i}}function Q1(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let f=0;f<l.length;f++){let h=l[f];if(t(h)){var d;if((d=h.subRows)!=null&&d.length&&c<s){const y=xi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);y.subRows=a(h.subRows,c+1),h=y}u.push(h),o.push(h),i[h.id]=h}}return u};return{rows:a(e),flatRows:o,rowsById:i}}function ew(){return e=>I(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<t.flatRows.length;f++)t.flatRows[f].columnFilters={},t.flatRows[f].columnFiltersMeta={};return t}const o=[],i=[];(n??[]).forEach(f=>{var h;const m=e.getColumn(f.id);if(!m)return;const y=m.getFilterFn();if(!y){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${m.id}.`);return}o.push({id:f.id,filterFn:y,resolvedValue:(h=y.resolveFilterValue==null?void 0:y.resolveFilterValue(f.value))!=null?h:f.value})});const s=(n??[]).map(f=>f.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&a&&l.length&&(s.push("__global__"),l.forEach(f=>{var h;i.push({id:f.id,filterFn:a,resolvedValue:(h=a.resolveFilterValue==null?void 0:a.resolveFilterValue(r))!=null?h:r})}));let c,u;for(let f=0;f<t.flatRows.length;f++){const h=t.flatRows[f];if(h.columnFilters={},o.length)for(let m=0;m<o.length;m++){c=o[m];const y=c.id;h.columnFilters[y]=c.filterFn(h,y,c.resolvedValue,w=>{h.columnFiltersMeta[y]=w})}if(i.length){for(let m=0;m<i.length;m++){u=i[m];const y=u.id;if(u.filterFn(h,y,u.resolvedValue,w=>{h.columnFiltersMeta[y]=w})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const d=f=>{for(let h=0;h<s.length;h++)if(f.columnFilters[s[h]]===!1)return!1;return!0};return Z1(t.rows,d,e)},R(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function tw(){return e=>I(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],i=r.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(u=>({...u}));return c.sort((u,d)=>{for(let h=0;h<i.length;h+=1){var f;const m=i[h],y=s[m.id],w=y.sortUndefined,v=(f=m?.desc)!=null?f:!1;let C=0;if(w){const x=u.getValue(m.id),E=d.getValue(m.id),b=x===void 0,k=E===void 0;if(b||k){if(w==="first")return b?-1:1;if(w==="last")return b?1:-1;C=b&&k?0:b?w:-w}}if(C===0&&(C=y.sortingFn(u,d,m.id)),C!==0)return v&&(C*=-1),y.invertSorting&&(C*=-1),C}return u.index-d.index}),c.forEach(u=>{var d;o.push(u),(d=u.subRows)!=null&&d.length&&(u.subRows=a(u.subRows))}),c};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}},R(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
|
1677
1677
|
* react-table
|
|
1678
1678
|
*
|
|
1679
1679
|
* Copyright (c) TanStack
|
|
@@ -1682,7 +1682,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1682
1682
|
* LICENSE.md file in the root directory of this source tree.
|
|
1683
1683
|
*
|
|
1684
1684
|
* @license MIT
|
|
1685
|
-
*/function gr(e,t){return e?nw(e)?lt.createElement(e,t):e:null}function nw(e){return rw(e)||typeof e=="function"||ow(e)}function rw(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ow(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function iw(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=lt.useState(()=>({current:Y1(t)})),[r,o]=lt.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const sw=
|
|
1685
|
+
*/function gr(e,t){return e?nw(e)?lt.createElement(e,t):e:null}function nw(e){return rw(e)||typeof e=="function"||ow(e)}function rw(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ow(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function iw(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=lt.useState(()=>({current:Y1(t)})),[r,o]=lt.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const sw=S`
|
|
1686
1686
|
@media (max-width: 768px) {
|
|
1687
1687
|
font-size: 0.875rem;
|
|
1688
1688
|
|
|
@@ -1691,7 +1691,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1691
1691
|
padding: 0.5rem 0.75rem;
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
|
-
`,aw={default:
|
|
1694
|
+
`,aw={default:S`
|
|
1695
1695
|
thead tr:last-child th:first-child {
|
|
1696
1696
|
border-top-left-radius: var(--border-radius-article);
|
|
1697
1697
|
}
|
|
@@ -1707,7 +1707,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1707
1707
|
tbody tr:last-child td:last-child {
|
|
1708
1708
|
border-bottom-right-radius: var(--border-radius-article);
|
|
1709
1709
|
}
|
|
1710
|
-
`,striped:
|
|
1710
|
+
`,striped:S`
|
|
1711
1711
|
border-radius: var(--border-radius-article);
|
|
1712
1712
|
tbody tr:nth-child(even) td {
|
|
1713
1713
|
background-color: var(--color-main-alternative-secondary);
|
|
@@ -1728,16 +1728,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1728
1728
|
tbody tr:last-child td:last-child {
|
|
1729
1729
|
border-bottom-right-radius: var(--border-radius-article);
|
|
1730
1730
|
}
|
|
1731
|
-
`},Kt={sm:
|
|
1731
|
+
`},Kt={sm:S`
|
|
1732
1732
|
padding: 0.5rem 1rem;
|
|
1733
1733
|
min-height: 2.25rem;
|
|
1734
|
-
`,md:
|
|
1734
|
+
`,md:S`
|
|
1735
1735
|
padding: 0.625rem 1.25rem;
|
|
1736
1736
|
min-height: 2.5rem;
|
|
1737
|
-
`,lg:
|
|
1737
|
+
`,lg:S`
|
|
1738
1738
|
padding: 0.75rem 1.5rem;
|
|
1739
1739
|
min-height: 2.75rem;
|
|
1740
|
-
`},Iu=
|
|
1740
|
+
`},Iu=S`
|
|
1741
1741
|
display: flex;
|
|
1742
1742
|
align-items: center;
|
|
1743
1743
|
gap: 0.5rem;
|
|
@@ -1758,7 +1758,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1758
1758
|
${({$variant:e})=>aw[e]}
|
|
1759
1759
|
${sw}
|
|
1760
1760
|
`,cw=$.thead`
|
|
1761
|
-
${({$sticky:e})=>e&&
|
|
1761
|
+
${({$sticky:e})=>e&&S`
|
|
1762
1762
|
position: sticky;
|
|
1763
1763
|
top: 0;
|
|
1764
1764
|
z-index: 10;
|
|
@@ -1767,7 +1767,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1767
1767
|
&:hover {
|
|
1768
1768
|
background-color: var(--color-main-alternative-secondary);
|
|
1769
1769
|
}
|
|
1770
|
-
${({$clickable:e})=>e&&
|
|
1770
|
+
${({$clickable:e})=>e&&S`
|
|
1771
1771
|
cursor: pointer;
|
|
1772
1772
|
`}
|
|
1773
1773
|
`;$.span`
|
|
@@ -1777,13 +1777,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1777
1777
|
transition: transform 0.2s ease-out;
|
|
1778
1778
|
opacity: ${({$direction:e})=>e==="none"?.5:1};
|
|
1779
1779
|
transform: ${({$direction:e})=>e==="asc"?"rotate(180deg)":"none"};
|
|
1780
|
-
`;const uw={sm:
|
|
1780
|
+
`;const uw={sm:S`
|
|
1781
1781
|
${Kt.sm}
|
|
1782
1782
|
${D[12]}
|
|
1783
|
-
`,md:
|
|
1783
|
+
`,md:S`
|
|
1784
1784
|
${Kt.md}
|
|
1785
1785
|
${D[16]}
|
|
1786
|
-
`,lg:
|
|
1786
|
+
`,lg:S`
|
|
1787
1787
|
${Kt.lg}
|
|
1788
1788
|
${D[16]}
|
|
1789
1789
|
`},dw=$.th`
|
|
@@ -1798,7 +1798,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1798
1798
|
background-color: var(--color-purple-600);
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
|
-
${({$active:e})=>e&&
|
|
1801
|
+
${({$active:e})=>e&&S`
|
|
1802
1802
|
background-color: var(--color-blue-400);
|
|
1803
1803
|
`}
|
|
1804
1804
|
`,_u=$.div`
|
|
@@ -1934,24 +1934,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1934
1934
|
align-items: center;
|
|
1935
1935
|
gap: 0.25rem;
|
|
1936
1936
|
width: 100%;
|
|
1937
|
-
`,Gu=({header:e})=>{const{size:t,getUniqueValues:n}=Sn(),{selectedValues:r,handleChange:o}=Hu(e.column.id),i=e.column.columnDef.meta,s=e.column.getCanSort()&&i?.sortable!==!1,a=i?.filterable!==!1&&e.column.getCanFilter(),l=e.column.getIsSorted(),c=l||"none",u=e.column.id,d=a?n(u):[];return g.jsx(dw,{$size:i?.size||t,$active:!!l,colSpan:e.colSpan,$width:e.getSize(),children:s?g.jsxs("section",{className:"flex",onClick:e.column.getToggleSortingHandler(),children:[g.jsx(Nu,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${gr(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:g.jsx(_u,{$align:i?.align,children:g.jsxs(ju,{children:[gr(e.column.columnDef.header,e.getContext()),g.jsx(fw,{$direction:c,children:c==="none"?g.jsx(q,{component:Cy,size:"tn"}):g.jsx(q,{component:xy,size:"tn"})})]})})}),a&&g.jsx(yr,{column:e.column,uniqueValues:d,selectedValues:r,onChange:o})]}):g.jsx(_u,{$align:i?.align,children:g.jsxs(ju,{children:[gr(e.column.columnDef.header,e.getContext()),a&&g.jsx(yr,{column:e.column,uniqueValues:d,selectedValues:r,onChange:o})]})})})},Uu=({headerGroup:e})=>g.jsx(Lu,{children:e.headers.map(t=>g.jsx(Gu,{header:t},t.id))}),Bi=({headerGroups:e,stickyHeader:t,className:n})=>g.jsx(cw,{$sticky:t,className:n,children:e.map(r=>g.jsx(Uu,{headerGroup:r},r.id))}),$w={sm:
|
|
1937
|
+
`,Gu=({header:e})=>{const{size:t,getUniqueValues:n}=Sn(),{selectedValues:r,handleChange:o}=Hu(e.column.id),i=e.column.columnDef.meta,s=e.column.getCanSort()&&i?.sortable!==!1,a=i?.filterable!==!1&&e.column.getCanFilter(),l=e.column.getIsSorted(),c=l||"none",u=e.column.id,d=a?n(u):[];return g.jsx(dw,{$size:i?.size||t,$active:!!l,colSpan:e.colSpan,$width:e.getSize(),children:s?g.jsxs("section",{className:"flex",onClick:e.column.getToggleSortingHandler(),children:[g.jsx(Nu,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${gr(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:g.jsx(_u,{$align:i?.align,children:g.jsxs(ju,{children:[gr(e.column.columnDef.header,e.getContext()),g.jsx(fw,{$direction:c,children:c==="none"?g.jsx(q,{component:Cy,size:"tn"}):g.jsx(q,{component:xy,size:"tn"})})]})})}),a&&g.jsx(yr,{column:e.column,uniqueValues:d,selectedValues:r,onChange:o})]}):g.jsx(_u,{$align:i?.align,children:g.jsxs(ju,{children:[gr(e.column.columnDef.header,e.getContext()),a&&g.jsx(yr,{column:e.column,uniqueValues:d,selectedValues:r,onChange:o})]})})})},Uu=({headerGroup:e})=>g.jsx(Lu,{children:e.headers.map(t=>g.jsx(Gu,{header:t},t.id))}),Bi=({headerGroups:e,stickyHeader:t,className:n})=>g.jsx(cw,{$sticky:t,className:n,children:e.map(r=>g.jsx(Uu,{headerGroup:r},r.id))}),$w={sm:S`
|
|
1938
1938
|
${Kt.sm}
|
|
1939
1939
|
${D[14]}
|
|
1940
|
-
`,md:
|
|
1940
|
+
`,md:S`
|
|
1941
1941
|
${Kt.md}
|
|
1942
1942
|
${D[14]}
|
|
1943
|
-
`,lg:
|
|
1943
|
+
`,lg:S`
|
|
1944
1944
|
${Kt.lg}
|
|
1945
1945
|
${D[16]}
|
|
1946
1946
|
`},kw=$.td`
|
|
1947
1947
|
min-width: 0;
|
|
1948
1948
|
max-width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
|
|
1949
1949
|
|
|
1950
|
-
${({$width:e})=>e?
|
|
1950
|
+
${({$width:e})=>e?S`
|
|
1951
1951
|
min-width: ${typeof e=="number"?`${e}px`:e};
|
|
1952
1952
|
max-width: ${typeof e=="number"?`${e}px`:e};
|
|
1953
1953
|
width: ${typeof e=="number"?`${e}px`:e};
|
|
1954
|
-
`:
|
|
1954
|
+
`:S`
|
|
1955
1955
|
min-width: 0;
|
|
1956
1956
|
width: auto;
|
|
1957
1957
|
`}
|
|
@@ -1970,13 +1970,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
1970
1970
|
width: 100%;
|
|
1971
1971
|
`,Ew=$.span`
|
|
1972
1972
|
width: 100%;
|
|
1973
|
-
${({$ellipsis:e})=>e&&
|
|
1973
|
+
${({$ellipsis:e})=>e&&S`
|
|
1974
1974
|
min-width: 0;
|
|
1975
1975
|
overflow: hidden;
|
|
1976
1976
|
text-overflow: ellipsis;
|
|
1977
1977
|
white-space: nowrap;
|
|
1978
1978
|
`}
|
|
1979
|
-
`,Wu=({cell:e})=>{const{size:
|
|
1979
|
+
`,Wu=({cell:e,rowClassName:t})=>{const{size:n}=Sn(),r=e.column.columnDef.meta,o=e.getValue(),i=typeof o=="string"||typeof o=="number"?String(o):void 0,s=[r?.className||"",t||""].filter(Boolean).join(" ");return g.jsx(kw,{$size:r?.size||n,$align:r?.align,$width:e.column.getSize(),title:r?.ellipsis&&i?i:void 0,className:s,children:g.jsx(Pw,{$align:r?.align,children:g.jsx(Ew,{$ellipsis:r?.ellipsis,children:gr(e.column.columnDef.cell,e.getContext())})})})};function Mw({row:e,className:t,cellClassName:n}){const{onRowClick:r}=Sn(),o=!!r;return g.jsx(Lu,{$clickable:o,onClick:()=>o&&r(e.original),role:o?"button":void 0,tabIndex:o?0:void 0,className:t,children:e.getVisibleCells().map(i=>g.jsx(Wu,{cell:i,rowClassName:n},i.id))})}const Ku=p.memo(Mw),zi=({rows:e,className:t,rowClassName:n,cellClassName:r})=>g.jsxs("tbody",{className:t,children:[e.map(o=>{const i=typeof n=="function"?n(o):n,s=typeof r=="function"?r(o):r;return g.jsx(Ku,{row:o,className:i,cellClassName:s},o.id)}),e.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:100,className:"py-4 text-center text-[var(--color-main-grey)]",children:"No results found"})})]}),Aw=$.section`
|
|
1980
1980
|
display: flex;
|
|
1981
1981
|
align-items: center;
|
|
1982
1982
|
gap: 0.5rem;
|
|
@@ -2031,9 +2031,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2031
2031
|
height: 1rem;
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
|
-
`,
|
|
2034
|
+
`,Dw=$(qu)`
|
|
2035
2035
|
min-width: 2rem;
|
|
2036
|
-
`,
|
|
2036
|
+
`,Vw=$.span`
|
|
2037
2037
|
${D[14]}
|
|
2038
2038
|
display: flex;
|
|
2039
2039
|
align-items: center;
|
|
@@ -2042,7 +2042,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2042
2042
|
height: 2rem;
|
|
2043
2043
|
color: var(--color-main-blue-primary);
|
|
2044
2044
|
user-select: none;
|
|
2045
|
-
`,
|
|
2045
|
+
`,Fw=$.div`
|
|
2046
2046
|
display: flex;
|
|
2047
2047
|
align-items: center;
|
|
2048
2048
|
gap: 0.5rem;
|
|
@@ -2061,7 +2061,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2061
2061
|
justify-content: center;
|
|
2062
2062
|
order: 10; /* Move to bottom on mobile */
|
|
2063
2063
|
}
|
|
2064
|
-
`,
|
|
2064
|
+
`,Iw=$(dr)`
|
|
2065
2065
|
button {
|
|
2066
2066
|
${D[14]}
|
|
2067
2067
|
height: 2rem;
|
|
@@ -2077,7 +2077,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2077
2077
|
div {
|
|
2078
2078
|
right: 10%;
|
|
2079
2079
|
}
|
|
2080
|
-
`,
|
|
2080
|
+
`,Rw=({onPageChange:e,onPerPageChange:t,perPage:n=10,page:r=1,totalPages:o,totalRecords:i,rowsPerPageOptions:s})=>{const l=(()=>{const h=[];if(o<=7)for(let y=1;y<=o;y++)h.push(y);else{h.push(1),r>3&&h.push("...");const y=Math.max(2,r-1),w=Math.min(o-1,r+1);for(let v=y;v<=w;v++)h.push(v);r<o-2&&h.push("..."),h.push(o)}return h})(),c=[{value:10,label:"10"},{value:25,label:"25"},{value:50,label:"50"},{value:100,label:"100"}],u=i!==void 0&&i>0,d=u?(r-1)*n+1:0,f=u?Math.min(r*n,i):0;return g.jsxs(Aw,{children:[u&&g.jsxs(yn,{size:14,children:["Showing ",d,"-",f," of ",i]}),g.jsxs(Yu,{onClick:()=>e(r-1),$disabled:r===1,disabled:r===1,"aria-label":"Previous page",children:[g.jsx(Iy,{size:24}),"Previous"]}),l.map((h,m)=>h==="..."?g.jsx(Vw,{children:"..."},`ellipsis-${m}`):g.jsx(Dw,{onClick:()=>e(h),$active:r===h,"aria-label":`Go to page ${h}`,"aria-current":r===h?"page":void 0,children:h},h)),g.jsxs(Yu,{onClick:()=>e(r+1),$disabled:r===o,disabled:r===o,"aria-label":"Next page",children:["Next",g.jsx(Ry,{size:24})]}),g.jsxs(Fw,{children:[g.jsx(Iw,{size:"sm",value:n,options:s||c,onOptionSelect:h=>t(Number(h.value))}),g.jsx(yn,{size:12,children:"Rows per page"})]})]})},Xu=({sorting:e,defaultSorting:t=[],onSortingChange:n})=>{const[r,o]=p.useState(t),i=e!==void 0,s=i?e:r,a=p.useCallback(c=>{const u=typeof c=="function"?c(s):c;i||o(u),n?.(u)},[i,s,n]),l=p.useCallback(c=>{i||o(c),n?.(c)},[i,n]);return{sortingState:s,handleSortingChange:a,isControlled:i,setSorting:l}},Zu=({columnFilters:e,defaultColumnFilters:t=[],onColumnFiltersChange:n})=>{const[r,o]=p.useState(t),i=e!==void 0,s=i?e:r,a=p.useCallback(c=>{const u=typeof c=="function"?c(s):c;i||o(u),n?.(u)},[i,s,n]),l=p.useCallback(c=>{i||o(c),n?.(c)},[i,n]);return{columnFiltersState:s,handleColumnFiltersChange:a,isControlled:i,setColumnFilters:l}},Ju=p.createContext(void 0),Sn=()=>{const e=p.useContext(Ju);if(!e)throw new Error("useTableContext debe usarse dentro de Table");return e},Qu=({data:e,columns:t,size:n="md",variant:r="default",stickyHeader:o=!1,maxHeight:i,sorting:s,defaultSorting:a,onSortingChange:l,columnFilters:c,defaultColumnFilters:u,onColumnFiltersChange:d,onRowClick:f,classNames:h,enableSorting:m=!0,manualSorting:y=!1,enableFiltering:w=!0,manualFiltering:v=!1,isLoading:C=!1,getUniqueValues:x})=>{const{sortingState:E,handleSortingChange:b,setSorting:k}=Xu({sorting:s,defaultSorting:a,onSortingChange:l}),{columnFiltersState:P,handleColumnFiltersChange:M,setColumnFilters:A}=Zu({columnFilters:c,defaultColumnFilters:u,onColumnFiltersChange:d}),V=p.useMemo(()=>{if(x)return null;const Z=new Map;return t.forEach(_=>{const F=_.id??("accessorKey"in _&&_.accessorKey?String(_.accessorKey):void 0);if(!F)return;const W="accessorFn"in _?_.accessorFn:void 0;Z.set(F,Ni(e,F,W))}),Z},[e,t,x]),N=p.useMemo(()=>x||(Z=>V?.get(Z)||[]),[V,x]),H=p.useMemo(()=>t.map(Z=>{const F=Z.meta?.filterable!==!1;return w&&F&&!Z.filterFn?{...Z,filterFn:"multiSelect"}:Z}),[t,w]),j=iw({data:e,columns:H,state:{sorting:E,columnFilters:P},onSortingChange:b,onColumnFiltersChange:M,getCoreRowModel:X1(),getSortedRowModel:y?void 0:tw(),getFilteredRowModel:v?void 0:ew(),enableSorting:m,enableSortingRemoval:!0,manualSorting:y,enableColumnFilters:w,manualFiltering:v,filterFns:{multiSelect:Ou},globalFilterFn:"includesString"}),K={size:n,variant:r,sorting:E,setSorting:k,columnFilters:P,setColumnFilters:A,getUniqueValues:N,onRowClick:f};return g.jsx(Ju.Provider,{value:K,children:g.jsx(lw,{$maxHeight:i,$stickyHeader:o,className:h?.wrapper,children:C?g.jsx(Ic,{message:"Loading data..."}):e.length===0?g.jsxs(Ru,{$variant:r,className:h?.table,children:[g.jsx(Bi,{headerGroups:j.getHeaderGroups(),stickyHeader:o,className:h?.header}),g.jsx(zi,{rows:[],className:h?.body,rowClassName:h?.row})]}):g.jsxs(Ru,{$variant:r,className:h?.table,children:[g.jsx(Bi,{headerGroups:j.getHeaderGroups(),stickyHeader:o,className:h?.header}),g.jsx(zi,{rows:j.getRowModel().rows,className:h?.body,rowClassName:h?.row,cellClassName:h?.cell})]})})})};Qu.displayName="Table";function ed(e){const t={};for(const n of e)t[n.id]=n.desc?"desc":"asc";return t}function Lw(e){return Object.entries(e).map(([t,n])=>({id:t,desc:n==="desc"}))}function td(e){return e.length===0?"":JSON.stringify(ed(e))}function _w(e){const t=new URLSearchParams;return e.sorting&&e.sorting.length>0&&t.append("sorts",td(e.sorting)),e.perPage&&t.append("perPage",e.perPage.toString()),e.genericSearch&&t.append("genericSearch",e.genericSearch),e.filters&&Object.keys(e.filters).length>0&&t.append("filters",JSON.stringify(e.filters)),t}const Nw=({data:e,columns:t,initialPage:n=1,initialPerPage:r=10,initialSorting:o=[],initialColumnFilters:i=[]})=>{const[s,a]=p.useState(n),[l,c]=p.useState(r),[u,d]=p.useState(o),[f,h]=p.useState(i),m=p.useMemo(()=>{const M=new Map;return t.forEach(A=>{const V=A.id??("accessorKey"in A&&A.accessorKey?String(A.accessorKey):void 0);if(!V)return;const N="accessorFn"in A?A.accessorFn:void 0;M.set(V,Ni(e,V,N))}),M},[e,t]),y=p.useMemo(()=>M=>m.get(M)||[],[m]),w=p.useMemo(()=>f.length===0?e:e.filter(M=>f.every(A=>{const V=A.value;if(!V||V.length===0)return!0;const N=M[A.id];return N==null?!1:V.includes(String(N))})),[e,f]),v=p.useMemo(()=>u.length===0?w:[...w].sort((M,A)=>{for(const V of u){const N=M[V.id],H=A[V.id];if(N==null&&H==null)continue;if(N==null)return V.desc?-1:1;if(H==null)return V.desc?1:-1;let j=0;if(typeof N=="string"&&typeof H=="string"?j=N.localeCompare(H):typeof N=="number"&&typeof H=="number"?j=N-H:j=String(N).localeCompare(String(H)),j!==0)return V.desc?-j:j}return 0}),[w,u]),C=p.useMemo(()=>{const M=(s-1)*l,A=M+l;return v.slice(M,A)},[v,s,l]),x=e.length,E=v.length,b=Math.max(1,Math.ceil(E/l)),k=p.useCallback(M=>{a(Math.min(M,b))},[b]),P=p.useCallback(M=>{c(M),a(1)},[]);return p.useMemo(()=>{s>b&&a(1)},[s,b]),{paginatedData:C,processedData:v,page:s,perPage:l,totalPages:b,totalRecords:x,filteredRecords:E,setPage:k,setPerPage:P,sorting:u,setSorting:d,columnFilters:f,setColumnFilters:h,getUniqueValues:y}};function nd(e){const t={};return e.forEach(n=>{t[n.id]=n.value}),t}function rd(e){return JSON.stringify(nd(e))}function Ow(e,t=","){const n={};return e.forEach(r=>{const o=r.value;o&&o.length>0&&(n[`filter[${r.id}]`]=o.join(t))}),n}function Bw(e){const t={};return e.forEach(n=>{const r=n.value;r&&r.length>0&&(t[`filter[${n.id}]`]=r)}),t}function zw({filters:e,sorts:t,page:n,perPage:r}){const o={};if(n!==void 0&&(o.page=n),r!==void 0&&(o.per_page=r),t&&t.length>0){const i=t.map(a=>a.id).join(","),s=t.map(a=>a.desc?"desc":"asc").join(",");o.sort_by=i,o.sort_order=s}return e&&e.length>0&&(o.filters=rd(e)),o}function Hw(e,t=","){const n=typeof e=="string"?new URLSearchParams(e):e,r=[];return n.forEach((o,i)=>{const s=i.match(/^filter\[(.+)\]$/);if(s){const a=s[1],l=o.split(t).filter(Boolean);l.length>0&&r.push({id:a,value:l})}}),r}function jw(e){try{const t=JSON.parse(e);return Object.entries(t).map(([n,r])=>({id:n,value:r}))}catch{return[]}}function Gw(...e){const t=new Map;return e.forEach(n=>{n.forEach(r=>{t.set(r.id,r.value)})}),Array.from(t.entries()).map(([n,r])=>({id:n,value:r}))}const Uw=$.div`
|
|
2081
2081
|
position: relative;
|
|
2082
2082
|
display: flex;
|
|
2083
2083
|
align-items: center;
|
|
@@ -2095,7 +2095,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2095
2095
|
outline: 2px solid var(--color-main-blue-primary);
|
|
2096
2096
|
outline-offset: 2px;
|
|
2097
2097
|
}
|
|
2098
|
-
`,
|
|
2098
|
+
`,Ww=$.div`
|
|
2099
2099
|
width: 2rem;
|
|
2100
2100
|
height: 2rem;
|
|
2101
2101
|
border-radius: 50%;
|
|
@@ -2103,7 +2103,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2103
2103
|
display: flex;
|
|
2104
2104
|
align-items: center;
|
|
2105
2105
|
justify-content: center;
|
|
2106
|
-
`,
|
|
2106
|
+
`,Kw=$.div`
|
|
2107
2107
|
display: flex;
|
|
2108
2108
|
flex-direction: column;
|
|
2109
2109
|
align-items: flex-start;
|
|
@@ -2111,7 +2111,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2111
2111
|
@media (max-width: 640px) {
|
|
2112
2112
|
display: none;
|
|
2113
2113
|
}
|
|
2114
|
-
`,
|
|
2114
|
+
`,qw=$(Ke.div)`
|
|
2115
2115
|
display: flex;
|
|
2116
2116
|
align-items: center;
|
|
2117
2117
|
justify-content: center;
|
|
@@ -2120,7 +2120,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2120
2120
|
@media (max-width: 640px) {
|
|
2121
2121
|
display: none;
|
|
2122
2122
|
}
|
|
2123
|
-
`,
|
|
2123
|
+
`,Yw=$(Ke.div)`
|
|
2124
2124
|
position: absolute;
|
|
2125
2125
|
top: 100%;
|
|
2126
2126
|
right: 0;
|
|
@@ -2132,7 +2132,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2132
2132
|
box-shadow: var(--shadow-black-card);
|
|
2133
2133
|
z-index: 100;
|
|
2134
2134
|
overflow: hidden;
|
|
2135
|
-
`,
|
|
2135
|
+
`,Xw=$.button`
|
|
2136
2136
|
width: 100%;
|
|
2137
2137
|
display: flex;
|
|
2138
2138
|
align-items: center;
|
|
@@ -2156,7 +2156,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2156
2156
|
&.danger {
|
|
2157
2157
|
color: var(--color-main-waringn-state);
|
|
2158
2158
|
}
|
|
2159
|
-
`,Hi=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,i]=p.useState(!1),s=p.useRef(null);p.useEffect(()=>{if(!o)return;const u=d=>{s.current&&!s.current.contains(d.target)&&i(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),p.useEffect(()=>{if(!o)return;const u=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(d=>d[0]).join("").toUpperCase().slice(0,2),c=[...[{id:"profile",label:"Profile",icon:Fy,onClick:()=>{i(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:My,onClick:()=>{i(!1),n?.()},variant:"danger"}],...r];return g.jsxs("div",{ref:s,children:[g.jsxs(
|
|
2159
|
+
`,Hi=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,i]=p.useState(!1),s=p.useRef(null);p.useEffect(()=>{if(!o)return;const u=d=>{s.current&&!s.current.contains(d.target)&&i(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),p.useEffect(()=>{if(!o)return;const u=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(d=>d[0]).join("").toUpperCase().slice(0,2),c=[...[{id:"profile",label:"Profile",icon:Fy,onClick:()=>{i(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:My,onClick:()=>{i(!1),n?.()},variant:"danger"}],...r];return g.jsxs("div",{ref:s,children:[g.jsxs(Uw,{onClick:()=>i(!o),role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),i(!o))},children:[g.jsx(Ww,{children:e.avatarUrl?g.jsx("img",{src:e.avatarUrl,alt:e.name}):g.jsx(je,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),g.jsxs(Kw,{children:[g.jsx(je,{size:14,className:"!font-semibold",children:e.name}),g.jsx(je,{size:12,children:e.role})]}),g.jsx(qw,{animate:{rotate:o?-180:0},transition:{duration:.3},children:g.jsx(q,{component:Bc,size:"sm",color:"var(--color-main-blue-primary)"})})]}),g.jsx(ln,{children:o&&g.jsx(Yw,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},children:c.map(u=>g.jsx(p.Fragment,{children:g.jsxs(Xw,{onClick:u.onClick,className:u.variant==="danger"?"danger":"",children:[g.jsx(q,{component:u.icon,size:"sm",color:u.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),g.jsx(je,{size:14,color:`${u.variant==="danger"&&"var(--color-main-warning-state)"}`,children:u.label})]})},u.id))})})]})};Hi.displayName="UserProfile";const od=({hasNotifications:e=!1,notificationCount:t})=>{const n=(t??0)>0||e,r=t&&t>0?t:void 0,o=r?`${r} notification${r===1?"":"s"}`:n?"New notifications":"No notifications",i=`Notifications: ${o}`;return{effectiveHasNotifications:n,displayCount:r,badgeLabel:o,bellAriaLabel:i}},Zw=$.button`
|
|
2160
2160
|
position: relative;
|
|
2161
2161
|
background: transparent;
|
|
2162
2162
|
border: none;
|
|
@@ -2180,7 +2180,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2180
2180
|
&:active {
|
|
2181
2181
|
transform: scale(0.92);
|
|
2182
2182
|
}
|
|
2183
|
-
`,
|
|
2183
|
+
`,Jw=$.span`
|
|
2184
2184
|
position: absolute;
|
|
2185
2185
|
top: 0.35rem;
|
|
2186
2186
|
right: 0.35rem;
|
|
@@ -2196,7 +2196,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2196
2196
|
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
2197
2197
|
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
2198
2198
|
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
2199
|
-
`,ji=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:r,displayCount:o,bellAriaLabel:i}=od({hasNotifications:e,notificationCount:t});return g.jsxs(
|
|
2199
|
+
`,ji=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:r,displayCount:o,bellAriaLabel:i}=od({hasNotifications:e,notificationCount:t});return g.jsxs(Zw,{onClick:n,"aria-label":i,title:i,"data-has":r||void 0,children:[g.jsx(q,{component:r?Ay:Dy,size:"md",color:"var(--color-main-blue-primary)"}),r&&g.jsx(Jw,{$withCount:!!o,"aria-hidden":!!o,children:o&&(o>99?"99+":o)})]})};ji.displayName="NotificationButton";const Qw=$.header`
|
|
2200
2200
|
position: fixed;
|
|
2201
2201
|
top: 0;
|
|
2202
2202
|
left: 0;
|
|
@@ -2212,15 +2212,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2212
2212
|
padding: 0 1rem;
|
|
2213
2213
|
transition: padding-left 0.3s ease-out;
|
|
2214
2214
|
padding-left: 5rem;
|
|
2215
|
-
`,
|
|
2215
|
+
`,eb=$.div`
|
|
2216
2216
|
display: flex;
|
|
2217
2217
|
align-items: center;
|
|
2218
2218
|
gap: 1rem;
|
|
2219
|
-
`,
|
|
2219
|
+
`,tb=$.div`
|
|
2220
2220
|
display: flex;
|
|
2221
2221
|
align-items: center;
|
|
2222
2222
|
gap: 1rem;
|
|
2223
|
-
`,Gi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:i,userMenuItems:s,children:a})=>g.jsxs(
|
|
2223
|
+
`,Gi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:i,userMenuItems:s,children:a})=>g.jsxs(Qw,{children:[g.jsx(eb,{children:a}),g.jsxs(tb,{children:[g.jsx(ji,{hasNotifications:t,notificationCount:n,onNotificationClick:r}),e&&g.jsx(Hi,{user:e,onProfileClick:o,onLogout:i,menuItems:s})]})]});Gi.displayName="Header";const nb=$.main`
|
|
2224
2224
|
flex: 1;
|
|
2225
2225
|
margin-top: 4rem;
|
|
2226
2226
|
/* Mobile-first: no lateral offset so content occupies full width */
|
|
@@ -2236,20 +2236,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2236
2236
|
@media (min-width: 1200px) {
|
|
2237
2237
|
margin-left: 5rem;
|
|
2238
2238
|
}
|
|
2239
|
-
`,Ui=({children:e,className:t})=>g.jsx(
|
|
2239
|
+
`,Ui=({children:e,className:t})=>g.jsx(nb,{className:t,children:e});Ui.displayName="LayoutMainContent";const rb=$.div`
|
|
2240
2240
|
display: flex;
|
|
2241
2241
|
flex-direction: column;
|
|
2242
2242
|
height: 100vh;
|
|
2243
2243
|
overflow: hidden;
|
|
2244
|
-
`,
|
|
2244
|
+
`,ob=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:i=!1,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onNavigate:c,onLogout:u,userMenuItems:d=[],contentClassName:f,logoImgCollapsed:h,logoImgExpanded:m})=>g.jsxs(rb,{children:[g.jsx(bi,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:h,logoImgExpanded:m,onNavigate:c}),g.jsx(Gi,{user:o,hasNotifications:i,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onLogout:u,userMenuItems:d}),g.jsx(Ui,{className:f,children:e})]}),ib=e=>g.jsx(cu,{children:g.jsx(ob,{...e})});function sb(e,t,n){let r=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const o=new Date(Date.now()+n*864e5).toUTCString();r+=`; expires=${o}`}document.cookie=r}function ab(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function lb(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const Cn={sm:{circle:"2rem",fontSize:D[14],line:"2px"},md:{circle:"2.5rem",fontSize:D[18],line:"2px"},lg:{circle:"3.25rem",fontSize:D[20],line:"3px"}},cb=$.div`
|
|
2245
2245
|
display: flex;
|
|
2246
2246
|
width: 100%;
|
|
2247
|
-
`,
|
|
2247
|
+
`,ub=$.div`
|
|
2248
2248
|
display: flex;
|
|
2249
2249
|
flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
|
|
2250
2250
|
align-items: center;
|
|
2251
2251
|
width: 100%;
|
|
2252
|
-
`,
|
|
2252
|
+
`,db=$.div`
|
|
2253
2253
|
display: flex;
|
|
2254
2254
|
align-items: center;
|
|
2255
2255
|
justify-content: center;
|
|
@@ -2275,19 +2275,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2275
2275
|
|
|
2276
2276
|
${({$size:e})=>Cn[e].fontSize}
|
|
2277
2277
|
|
|
2278
|
-
${({$isCompleted:e,$isActive:t})=>t?
|
|
2278
|
+
${({$isCompleted:e,$isActive:t})=>t?S`
|
|
2279
2279
|
background-color: var(--color-main-blue-primary);
|
|
2280
2280
|
color: var(--color-main-white);
|
|
2281
2281
|
box-shadow: var(--shadow-hover-black-button);
|
|
2282
|
-
`:e?
|
|
2282
|
+
`:e?S`
|
|
2283
2283
|
background-color: var(--color-main-blue-primary);
|
|
2284
2284
|
color: var(--color-main-white);
|
|
2285
|
-
`:
|
|
2285
|
+
`:S`
|
|
2286
2286
|
background-color: var(--color-dark-300);
|
|
2287
2287
|
color: var(--color-main-white);
|
|
2288
2288
|
`}
|
|
2289
2289
|
|
|
2290
|
-
${({$isClickable:e})=>e&&
|
|
2290
|
+
${({$isClickable:e})=>e&&S`
|
|
2291
2291
|
cursor: pointer;
|
|
2292
2292
|
|
|
2293
2293
|
&:hover {
|
|
@@ -2300,19 +2300,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2300
2300
|
box-shadow: var(--shadow-hover-black-button);
|
|
2301
2301
|
}
|
|
2302
2302
|
`}
|
|
2303
|
-
`,
|
|
2303
|
+
`,fb=$.div`
|
|
2304
2304
|
background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
|
|
2305
2305
|
transition: background-color 0.3s ease;
|
|
2306
2306
|
|
|
2307
|
-
${({$orientation:e,$size:t})=>e==="vertical"?
|
|
2307
|
+
${({$orientation:e,$size:t})=>e==="vertical"?S`
|
|
2308
2308
|
width: ${Cn[t].line};
|
|
2309
2309
|
height: 2rem;
|
|
2310
|
-
`:
|
|
2310
|
+
`:S`
|
|
2311
2311
|
height: ${Cn[t].line};
|
|
2312
2312
|
flex: 1;
|
|
2313
2313
|
min-width: 2rem;
|
|
2314
2314
|
`}
|
|
2315
|
-
`,
|
|
2315
|
+
`,hb=$.span`
|
|
2316
2316
|
position: absolute;
|
|
2317
2317
|
${D[14]}
|
|
2318
2318
|
font-weight: 500;
|
|
@@ -2345,4 +2345,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[Hn]+=1);const Br={80:x`
|
|
|
2345
2345
|
${id}:hover & {
|
|
2346
2346
|
opacity: 1;
|
|
2347
2347
|
}
|
|
2348
|
-
`,
|
|
2348
|
+
`,pb=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:i})=>{const s=a=>{o?.(a)};return g.jsx(cb,{$orientation:n,className:i,children:g.jsx(ub,{$orientation:n,children:e.map((a,l)=>{const c=l===t,u=l<t,d=o!=null;return g.jsxs(g.Fragment,{children:[g.jsx(db,{$orientation:n,children:g.jsxs(id,{$isActive:c,$isCompleted:u,$size:r,$isClickable:d,onClick:()=>d&&s(l),role:d?"button":void 0,tabIndex:d?0:void 0,"aria-current":c?"step":void 0,"aria-label":a.label,onKeyDown:f=>{d&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s(l))},children:[a.content??l+1,a.label&&n==="vertical"&&g.jsx(hb,{children:a.label})]})}),l<e.length-1&&g.jsx(fb,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};T.ALLOWED_INPUT_TYPES=_c,T.Aside=hu,T.Badge=b0,T.BaseInput=ai,T.BrandLogo=mu,T.Button=Ut,T.Card=oy,T.CardBody=ly,T.CardFooter=uy,T.CardHeader=sy,T.Checkbox=wn,T.CheckboxInput=ui,T.CheckboxLabel=Xc,T.CloseOpenButton=yu,T.ColumnFilter=yr,T.ColumnFilterMenu=Oi,T.Dialog=ou,T.DialogBody=su,T.DialogFooter=au,T.DialogHeader=iu,T.Divider=S0,T.ErrorMessage=si,T.FileList=Yc,T.FileUpload=wv,T.FilterOption=_i,T.FormField=Gv,T.FullScreenSpinner=d0,T.Header=Gi,T.HeadingBold=Ns,T.HeadingRegular=Tf,T.Icon=q,T.IconWrapperStyles=ur,T.InfoLabel=yn,T.Label=lr,T.Layout=ib,T.LayoutMainContent=Ui,T.Link=Su,T.LinkDisabledStyles=bu,T.LinkSizeStyles=xu,T.LinkVariantStyles=wu,T.MobileOpenBtn=vu,T.Nav=gu,T.NotificationButton=ji,T.Overlay=fu,T.PasswordInput=Gc,T.PinInput=di,T.PinInputGroup=fi,T.RadioInput=mi,T.RadioInputDot=hi,T.RadioInputLabel=pi,T.SearchInput=ci,T.SectionSpinner=Ic,T.SelectInput=dr,T.Sidebar=bi,T.SidebarContext=yi,T.SidebarHeader=pu,T.SidebarProvider=cu,T.Spinner=sr,T.Stepper=pb,T.Table=Qu,T.TableBody=zi,T.TableCell=Wu,T.TableHeader=Bi,T.TableHeaderCell=Gu,T.TableHeaderRow=Uu,T.TablePagination=Rw,T.TableRow=Ku,T.TermsAndConditions=t1,T.Text=je,T.TextAreaInput=li,T.ToastProvider=J0,T.Tooltip=lu,T.UserProfile=Hi,T.baseFieldStyles=xt,T.baseInputStyles=cr,T.bodyTextStyles=D,T.columnFiltersToArrayQueryParams=Bw,T.columnFiltersToJsonString=rd,T.columnFiltersToQueryParams=Ow,T.columnFiltersToRecord=nd,T.createBackendParams=_w,T.createBackendParamsWithFilters=zw,T.createColumnHelper=b1,T.createFieldConfig=yy,T.createInputRefs=eu,T.deleteCookie=lb,T.disabledStyles=rt,T.errorStyles=St,T.flushedStyles=Oc,T.getActiveFilterCount=gw,T.getActiveFilterValues=zu,T.getColumnValueCounts=pw,T.getCookie=ab,T.getPropsForInputType=vy,T.getUniqueColumnValues=Ni,T.handleDigitChange=Zc,T.handleKeyDown=Jc,T.handlePaste=Qc,T.hasActiveFilters=mw,T.hasPermission=wi,T.headingBoldStyles=Br,T.headingRegularStyles=_s,T.isAllowedInputType=Nc,T.mergeFilters=Gw,T.multiSelectFilter=Ou,T.normalizeFieldTypes=nt,T.normalizeSelectOptions=gy,T.overlayAnimation=gi,T.parseJsonToFilters=jw,T.parseQueryParamsToFilters=Hw,T.searchInArray=Bu,T.setCookie=sb,T.sizeStyles=vn,T.slideAnimation=Uv,T.smartAnimation=nu,T.sortRecordToSortingState=Lw,T.sortingStateToJsonString=td,T.sortingStateToRecord=ed,T.submenuAnimationTopDown=ru,T.toast=B0,T.useColumnFilter=Hu,T.useNotifications=od,T.useSidebar=vi,T.useTableContext=Sn,T.useTableData=Nw,T.useTableFiltering=Zu,T.useTableSorting=Xu,T.validateCode=Dv,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|