@harpercollins/harpercollins-design-system 1.8.70 → 1.8.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +813 -808
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/index.d.ts +27 -25
- package/dist/cjs/types/src/components/inputs/Input/Input.d.ts +1 -1
- package/dist/esm/index.js +813 -808
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/index.d.ts +27 -25
- package/dist/esm/types/src/components/inputs/Input/Input.d.ts +1 -1
- package/dist/index.d.ts +159 -146
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import r,{useRef as o,useDebugValue as a,createElement as i,useContext as l,useState as s,useEffect as c,useLayoutEffect as u,forwardRef as d,useCallback as p}from"react";import*as f from"react-dom";var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)};function g(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var v=/^((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)-.*))$/,b=h((function(e){return v.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w="-ms-",x="-moz-",S="-webkit-",C="comm",k="rule",O="decl",I="@import",E="@keyframes",P="@layer",N=Math.abs,$=String.fromCharCode,z=Object.assign;function R(e){return e.trim()}function D(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,n){return e.replace(t,n)}function M(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function V(e,t,n){return e.slice(t,n)}function _(e){return e.length}function L(e){return e.length}function F(e,t){return t.push(e),e}function j(e,t){return e.filter((function(e){return!D(e,t)}))}var B=1,H=1,W=0,G=0,q=0,U="";function Y(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:B,column:H,length:i,return:"",siblings:l}}function K(e,t){return z(Y("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function J(e){for(;e.root;)e=K(e.root,{children:[e]});F(e,e.siblings)}function X(){return q=G<W?A(U,G++):0,H++,10===q&&(H=1,B++),q}function Q(){return A(U,G)}function Z(){return G}function ee(e,t){return V(U,e,t)}function te(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 ne(e){return R(ee(G-1,ae(91===e?e+2:40===e?e+1:e)))}function re(e){for(;(q=Q())&&q<33;)X();return te(e)>2||te(q)>3?"":" "}function oe(e,t){for(;--t&&X()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return ee(e,Z()+(t<6&&32==Q()&&32==X()))}function ae(e){for(;X();)switch(q){case e:return G;case 34:case 39:34!==e&&39!==e&&ae(q);break;case 40:41===e&&ae(e);break;case 92:X()}return G}function ie(e,t){for(;X()&&e+q!==57&&(e+q!==84||47!==Q()););return"/*"+ee(t,G-1)+"*"+$(47===e?e:X())}function le(e){for(;!te(Q());)X();return ee(e,G)}function se(e){return function(e){return U="",e}(ce("",null,null,null,[""],e=function(e){return B=H=1,W=_(U=e),G=0,[]}(e),0,[0],e))}function ce(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",w=o,x=a,S=r,C=y;h;)switch(m=b,b=X()){case 40:if(108!=m&&58==A(C,d-1)){-1!=M(C+=T(ne(b),"&","&\f"),"&\f",N(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=ne(b);break;case 9:case 10:case 13:case 32:C+=re(m);break;case 92:C+=oe(Z()-1,7);continue;case 47:switch(Q()){case 42:case 47:F(de(ie(X(),Z()),t,n,s),s);break;default:C+="/"}break;case 123*g:l[c++]=_(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(C=T(C,/\f/g,"")),f>0&&_(C)-d&&F(f>32?pe(C+";",r,n,d-1,s):pe(T(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(F(S=ue(C,t,n,c,u,o,l,y,w=[],x=[],d,a),a),123===b)if(0===u)ce(C,t,S,S,w,a,d,l,x);else switch(99===p&&110===A(C,3)?100:p){case 100:case 108:case 109:case 115:ce(e,S,S,r&&F(ue(e,S,S,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:ce(C,S,S,S,[""],x,0,l,x)}}c=u=f=0,g=v=1,y=C="",d=i;break;case 58:d=1+_(C),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==(q=G>0?A(U,--G):0,H--,10===q&&(H=1,B--),q))continue;switch(C+=$(b),b*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(_(C)-1)*v,v=1;break;case 64:45===Q()&&(C+=ne(X())),p=Q(),u=d=_(y=C+=le(Z())),b++;break;case 45:45===m&&2==_(C)&&(g=0)}}return a}function ue(e,t,n,r,o,a,i,l,s,c,u,d){for(var p=o-1,f=0===o?a:[""],m=L(f),g=0,h=0,v=0;g<r;++g)for(var b=0,y=V(e,p+1,p=N(h=i[g])),w=e;b<m;++b)(w=R(h>0?f[b]+" "+y:T(y,/&\f/g,f[b])))&&(s[v++]=w);return Y(e,t,n,0===o?k:l,s,c,u,d)}function de(e,t,n,r){return Y(e,t,n,C,$(q),V(e,2,-2),0,r)}function pe(e,t,n,r,o){return Y(e,t,n,O,V(e,0,r),V(e,r+1,-1),r,o)}function fe(e,t,n){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return S+"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 S+e+e;case 4789:return x+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+x+e+w+e+e;case 5936:switch(A(e,t+11)){case 114:return S+e+w+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+w+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+w+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return S+e+w+e+e;case 6165:return S+e+w+"flex-"+e+e;case 5187:return S+e+T(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+w+"flex-$1$2")+e;case 5443:return S+e+w+"flex-item-"+T(e,/flex-|-self/g,"")+(D(e,/flex-|baseline/)?"":w+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return S+e+w+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return S+e+w+T(e,"shrink","negative")+e;case 5292:return S+e+w+T(e,"basis","preferred-size")+e;case 6060:return S+"box-"+T(e,"-grow","")+S+e+w+T(e,"grow","positive")+e;case 4554:return S+T(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+w+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4200:if(!D(e,/flex-|baseline/))return w+"grid-column-align"+V(e,t)+e;break;case 2592:case 3360:return w+T(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,D(e.props,/grid-\w+-end/)}))?~M(e+(n=n[t].value),"span",0)?e:w+T(e,"-start","")+e+w+"grid-row-span:"+(~M(n,"span",0)?D(n,/\d+/):+D(n,/\d+/)-+D(e,/\d+/))+";":w+T(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return D(e.props,/grid-\w+-start/)}))?e:w+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,S+"$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(_(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+x+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch",0)?fe(T(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,i,l){return w+n+":"+r+l+(o?w+n+"-span:"+(a?i:+i-+r)+l:"")+e}));case 4949:if(121===A(e,t+6))return T(e,":",":"+S)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+S+(45===A(e,14)?"inline-":"")+"box$3$1"+S+"$2$3$1"+w+"$2box$3")+e;case 100:return T(e,":",":"+w)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function me(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ge(e,t,n,r){switch(e.type){case P:if(e.children.length)break;case I:case O:return e.return=e.return||e.value;case C:return"";case E:return e.return=e.value+"{"+me(e.children,r)+"}";case k:if(!_(e.value=e.props.join(",")))return""}return _(n=me(e.children,r))?e.return=e.value+"{"+n+"}":""}function he(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case O:return void(e.return=fe(e.value,e.length,n));case E:return me([K(e,{value:T(e.value,"@","@"+S)})],r);case k:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(D(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":J(K(e,{props:[T(t,/:(read-\w+)/,":"+x+"$1")]})),J(K(e,{props:[t]})),z(e,{props:j(n,r)});break;case"::placeholder":J(K(e,{props:[T(t,/:(plac\w+)/,":"+S+"input-$1")]})),J(K(e,{props:[T(t,/:(plac\w+)/,":"+x+"$1")]})),J(K(e,{props:[T(t,/:(plac\w+)/,w+"input-$1")]})),J(K(e,{props:[t]})),z(e,{props:j(n,r)})}return""}))}}var ve={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},be="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ye="active",we="data-styled-version",xe="6.1.11",Se="/*!sc*/\n",Ce="undefined"!=typeof window&&"HTMLElement"in window,ke=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Oe=/invalid hook call/i,Ie=new Set,Ee=function(e,t){if("production"!==process.env.NODE_ENV){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Oe.test(e)?(i=!1,Ie.delete(r)):a.apply(void 0,g([e],t,!1))},o(),i&&!Ie.has(r)&&(console.warn(r),Ie.add(r))}catch(e){Oe.test(e.message)&&Ie.delete(r)}finally{console.error=a}}},Pe=Object.freeze([]),Ne=Object.freeze({});var $e=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ze=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Re=/(^-|-$)/g;function De(e){return e.replace(ze,"-").replace(Re,"")}var Te=/(a)(d)/gi,Me=52,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ve(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Ae(t%Me)+n;return(Ae(t%Me)+n).replace(Te,"$1-$2")}var _e,Le=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fe=function(e){return Le(5381,e)};function je(e){return Ve(Fe(e)>>>0)}function Be(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function He(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var We="function"==typeof Symbol&&Symbol.for,Ge=We?Symbol.for("react.memo"):60115,qe=We?Symbol.for("react.forward_ref"):60112,Ue={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ye={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ke={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Je=((_e={})[qe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_e[Ge]=Ke,_e);function Xe(e){return("type"in(t=e)&&t.type.$$typeof)===Ge?Ke:"$$typeof"in e?Je[e.$$typeof]:Ue;var t}var Qe=Object.defineProperty,Ze=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,nt=Object.getPrototypeOf,rt=Object.prototype;function ot(e,t,n){if("string"!=typeof t){if(rt){var r=nt(t);r&&r!==rt&&ot(e,r,n)}var o=Ze(t);et&&(o=o.concat(et(t)));for(var a=Xe(e),i=Xe(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ye||n&&n[s]||i&&s in i||a&&s in a)){var c=tt(t,s);try{Qe(e,s,c)}catch(e){}}}}return e}function at(e){return"function"==typeof e}function it(e){return"object"==typeof e&&"styledComponentId"in e}function lt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function st(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ct(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ut(e,t,n){if(void 0===n&&(n=!1),!n&&!ct(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ut(e[r],t[r]);else if(ct(t))for(var r in t)e[r]=ut(e[r],t[r]);return e}function dt(e,t){Object.defineProperty(e,"toString",{value:t})}var pt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s 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.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,a=e.length;o<a;o+=1)r.push(e[o]);return r.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function mt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?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(ft.apply(void 0,g([pt[e]],t,!1)).trim())}var gt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw mt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=(a=0,t.length);a<l;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(Se);return t},e}(),ht=1<<30,vt=new Map,bt=new Map,yt=1,wt=function(e){if(vt.has(e))return vt.get(e);for(;bt.has(yt);)yt++;var t=yt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ht))throw mt(16,"".concat(t));return vt.set(e,t),bt.set(t,e),t},xt=function(e,t){yt=t+1,vt.set(e,t),bt.set(t,e)},St="style[".concat(be,"][").concat(we,'="').concat(xe,'"]'),Ct=new RegExp("^".concat(be,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),kt=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},Ot=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Se),o=[],a=0,i=r.length;a<i;a++){var l=r[a].trim();if(l){var s=l.match(Ct);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(xt(u,c),kt(e,u,s[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}};var It=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(be,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(be,ye),r.setAttribute(we,xe);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},Et=function(){function e(e){this.element=It(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw mt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Pt=function(){function e(e){this.element=It(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Nt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$t=Ce,zt={isServer:!Ce,useCSSOMInjection:!ke},Rt=function(){function e(e,t,n){void 0===e&&(e=Ne),void 0===t&&(t={});var r=this;this.options=m(m({},zt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ce&&$t&&($t=!1,function(e){for(var t=document.querySelectorAll(St),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(be)!==ye&&(Ot(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),dt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return bt.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||0===i.length)return"continue";var l="".concat(be,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(i).concat(l,'{content:"').concat(s,'"}').concat(Se)},a=0;a<n;a++)o(a);return r}(r)}))}return e.registerId=function(e){return wt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(m(m({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Nt(n):t?new Et(n):new Pt(n)}(this.options),new gt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(wt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(wt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(wt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Dt=/&/g,Tt=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}var At=new Rt,Vt=function(e){var t,n,r,o=Ne,a=o.options,i=void 0===a?Ne:a,l=o.plugins,s=void 0===l?Pe:l,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=s.slice();u.push((function(e){e.type===k&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Dt,n).replace(r,c))})),i.prefix&&u.push(he),u.push(ge);var d=function(e,o,a,l){void 0===o&&(o=""),void 0===a&&(a=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Tt,""),c=se(a||o?"".concat(a," ").concat(o," { ").concat(s," }"):s);i.namespace&&(c=Mt(c,i.namespace));var d,p=[];return me(c,function(e){var t=L(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||mt(15),Le(e,t.name)}),5381).toString():"",d}(),_t=r.createContext({shouldForwardProp:void 0,styleSheet:At,stylis:Vt});function Lt(){return l(_t)}_t.Consumer,r.createContext(void 0);var Ft=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Vt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,dt(this,(function(){throw mt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Vt),this.name+e.hash},e}(),jt=function(e){return e>="A"&&e<="Z"};function Bt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;jt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ht=function(e){return null==e||!1===e||""===e},Wt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Ht(a)&&(Array.isArray(a)&&a.isCss||at(a)?r.push("".concat(Bt(o),":"),a,";"):ct(a)?r.push.apply(r,g(g(["".concat(o," {")],Wt(a),!1),["}"],!1)):r.push("".concat(Bt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in ve||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Gt(e,t,n,r){if(Ht(e))return[];if(it(e))return[".".concat(e.styledComponentId)];if(at(e)){if(!at(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Ft||ct(o)||null===o||console.error("".concat(Be(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.")),Gt(o,t,n,r)}var a;return e instanceof Ft?n?(e.inject(n,r),[e.getName(r)]):[e]:ct(e)?Wt(e):Array.isArray(e)?Array.prototype.concat.apply(Pe,e.map((function(e){return Gt(e,t,n,r)}))):[e.toString()]}var qt=Fe(xe),Ut=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(at(n)&&!it(n))return!1}return!0}(e),this.componentId=t,this.baseHash=Le(qt,t),this.baseStyle=n,Rt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=lt(r,this.staticRulesId);else{var o=st(Gt(this.rules,e,t,n)),a=Ve(Le(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=lt(r,a),this.staticRulesId=a}else{for(var l=Le(this.baseHash,n.hash),s="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)s+=u,"production"!==process.env.NODE_ENV&&(l=Le(l,u));else if(u){var d=st(Gt(u,e,t,n));l=Le(l,d+c),s+=d}}if(s){var p=Ve(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=lt(r,p)}}return r},e}(),Yt=r.createContext(void 0);Yt.Consumer;var Kt={},Jt=new Set;function Xt(e,t,n){var o=it(e),l=e,s=!He(e),c=t.attrs,u=void 0===c?Pe:c,d=t.componentId,p=void 0===d?function(e,t){var n="string"!=typeof e?"sc":De(e);Kt[n]=(Kt[n]||0)+1;var r="".concat(n,"-").concat(je(xe+n+Kt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,f=t.displayName,g=void 0===f?function(e){return He(e)?"styled.".concat(e):"Styled(".concat(Be(e),")")}(e):f,h=t.displayName&&t.componentId?"".concat(De(t.displayName),"-").concat(t.componentId):t.componentId||p,v=o&&l.attrs?l.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(o&&l.shouldForwardProp){var w=l.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;y=function(e,t){return w(e,t)&&x(e,t)}}else y=w}var S=new Ut(n,h,o?l.componentStyle:void 0);function C(e,t){return function(e,t,n){var o=e.attrs,l=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,p=r.useContext(Yt),f=Lt(),g=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&a(u);var h=function(e,t,n){return void 0===n&&(n=Ne),e.theme!==n.theme&&e.theme||t||n.theme}(t,p,s)||Ne,v=function(e,t,n){for(var r,o=m(m({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var i=at(r=e[a])?r(o):r;for(var l in i)o[l]="className"===l?lt(o[l],i[l]):"style"===l?m(m({},o[l]),i[l]):i[l]}return t.className&&(o.className=lt(o.className,t.className)),o}(o,t,h),y=v.as||d,w={};for(var x in v)void 0===v[x]||"$"===x[0]||"as"===x||"theme"===x&&v.theme===h||("forwardedAs"===x?w.as=v.forwardedAs:g&&!g(x,y)||(w[x]=v[x],g||"development"!==process.env.NODE_ENV||b(x)||Jt.has(x)||!$e.has(y)||(Jt.add(x),console.warn('styled-components: it looks like an unknown prop "'.concat(x,'" 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 S=function(e,t){var n=Lt(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&a(r),r}(l,v);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(S);var C=lt(c,u);return S&&(C+=" "+S),v.className&&(C+=" "+v.className),w[He(y)&&!$e.has(y)?"class":"className"]=C,w.ref=n,i(y,w)}(k,e,t)}C.displayName=g;var k=r.forwardRef(C);return k.attrs=v,k.componentStyle=S,k.displayName=g,k.shouldForwardProp=y,k.foldedComponentIds=o?lt(l.foldedComponentIds,l.styledComponentId):"",k.styledComponentId=h,k.target=o?l.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)ut(e,o[r],!0);return e}({},l.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Ee(g,h),k.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(g,h)),dt(k,(function(){return".".concat(k.styledComponentId)})),s&&ot(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Qt(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 Zt=function(e){return Object.assign(e,{isCss:!0})};function en(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(at(e)||ct(e))return Zt(Gt(Qt(Pe,g([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Gt(r):Zt(Gt(Qt(r,t)))}function tn(e,t,n){if(void 0===n&&(n=Ne),!t)throw mt(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,en.apply(void 0,g([r],o,!1)))};return r.attrs=function(r){return tn(e,t,m(m({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return tn(e,t,m(m({},n),r))},r}var nn=function(e){return tn(Xt,e)},rn=nn;function on(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=st(en.apply(void 0,g([e],t,!1))),o=je(r);return new Ft(o,r)}$e.forEach((function(e){rn[e]=nn(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var an="__sc-".concat(be,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[an]||(window[an]=0),1===window[an]&&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.\n\nSee https://s-c.sh/2BAXzed for more info."),window[an]+=1);const ln=rn.div`
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import r,{useRef as o,useDebugValue as a,createElement as i,useContext as l,useState as s,useEffect as c,forwardRef as u,useLayoutEffect as d,useCallback as p}from"react";import*as f from"react-dom";var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)};function g(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var v=/^((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)-.*))$/,b=h((function(e){return v.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w="-ms-",x="-moz-",S="-webkit-",C="comm",k="rule",O="decl",I="@import",E="@keyframes",P="@layer",N=Math.abs,$=String.fromCharCode,z=Object.assign;function R(e){return e.trim()}function D(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,n){return e.replace(t,n)}function M(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function V(e,t,n){return e.slice(t,n)}function _(e){return e.length}function L(e){return e.length}function F(e,t){return t.push(e),e}function j(e,t){return e.filter((function(e){return!D(e,t)}))}var B=1,H=1,W=0,G=0,q=0,U="";function Y(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:B,column:H,length:i,return:"",siblings:l}}function K(e,t){return z(Y("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function J(e){for(;e.root;)e=K(e.root,{children:[e]});F(e,e.siblings)}function X(){return q=G<W?A(U,G++):0,H++,10===q&&(H=1,B++),q}function Q(){return A(U,G)}function Z(){return G}function ee(e,t){return V(U,e,t)}function te(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 ne(e){return R(ee(G-1,ae(91===e?e+2:40===e?e+1:e)))}function re(e){for(;(q=Q())&&q<33;)X();return te(e)>2||te(q)>3?"":" "}function oe(e,t){for(;--t&&X()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return ee(e,Z()+(t<6&&32==Q()&&32==X()))}function ae(e){for(;X();)switch(q){case e:return G;case 34:case 39:34!==e&&39!==e&&ae(q);break;case 40:41===e&&ae(e);break;case 92:X()}return G}function ie(e,t){for(;X()&&e+q!==57&&(e+q!==84||47!==Q()););return"/*"+ee(t,G-1)+"*"+$(47===e?e:X())}function le(e){for(;!te(Q());)X();return ee(e,G)}function se(e){return function(e){return U="",e}(ce("",null,null,null,[""],e=function(e){return B=H=1,W=_(U=e),G=0,[]}(e),0,[0],e))}function ce(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",w=o,x=a,S=r,C=y;h;)switch(m=b,b=X()){case 40:if(108!=m&&58==A(C,d-1)){-1!=M(C+=T(ne(b),"&","&\f"),"&\f",N(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=ne(b);break;case 9:case 10:case 13:case 32:C+=re(m);break;case 92:C+=oe(Z()-1,7);continue;case 47:switch(Q()){case 42:case 47:F(de(ie(X(),Z()),t,n,s),s);break;default:C+="/"}break;case 123*g:l[c++]=_(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(C=T(C,/\f/g,"")),f>0&&_(C)-d&&F(f>32?pe(C+";",r,n,d-1,s):pe(T(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(F(S=ue(C,t,n,c,u,o,l,y,w=[],x=[],d,a),a),123===b)if(0===u)ce(C,t,S,S,w,a,d,l,x);else switch(99===p&&110===A(C,3)?100:p){case 100:case 108:case 109:case 115:ce(e,S,S,r&&F(ue(e,S,S,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:ce(C,S,S,S,[""],x,0,l,x)}}c=u=f=0,g=v=1,y=C="",d=i;break;case 58:d=1+_(C),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==(q=G>0?A(U,--G):0,H--,10===q&&(H=1,B--),q))continue;switch(C+=$(b),b*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(_(C)-1)*v,v=1;break;case 64:45===Q()&&(C+=ne(X())),p=Q(),u=d=_(y=C+=le(Z())),b++;break;case 45:45===m&&2==_(C)&&(g=0)}}return a}function ue(e,t,n,r,o,a,i,l,s,c,u,d){for(var p=o-1,f=0===o?a:[""],m=L(f),g=0,h=0,v=0;g<r;++g)for(var b=0,y=V(e,p+1,p=N(h=i[g])),w=e;b<m;++b)(w=R(h>0?f[b]+" "+y:T(y,/&\f/g,f[b])))&&(s[v++]=w);return Y(e,t,n,0===o?k:l,s,c,u,d)}function de(e,t,n,r){return Y(e,t,n,C,$(q),V(e,2,-2),0,r)}function pe(e,t,n,r,o){return Y(e,t,n,O,V(e,0,r),V(e,r+1,-1),r,o)}function fe(e,t,n){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return S+"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 S+e+e;case 4789:return x+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+x+e+w+e+e;case 5936:switch(A(e,t+11)){case 114:return S+e+w+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+w+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+w+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return S+e+w+e+e;case 6165:return S+e+w+"flex-"+e+e;case 5187:return S+e+T(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+w+"flex-$1$2")+e;case 5443:return S+e+w+"flex-item-"+T(e,/flex-|-self/g,"")+(D(e,/flex-|baseline/)?"":w+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return S+e+w+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return S+e+w+T(e,"shrink","negative")+e;case 5292:return S+e+w+T(e,"basis","preferred-size")+e;case 6060:return S+"box-"+T(e,"-grow","")+S+e+w+T(e,"grow","positive")+e;case 4554:return S+T(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+w+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4200:if(!D(e,/flex-|baseline/))return w+"grid-column-align"+V(e,t)+e;break;case 2592:case 3360:return w+T(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,D(e.props,/grid-\w+-end/)}))?~M(e+(n=n[t].value),"span",0)?e:w+T(e,"-start","")+e+w+"grid-row-span:"+(~M(n,"span",0)?D(n,/\d+/):+D(n,/\d+/)-+D(e,/\d+/))+";":w+T(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return D(e.props,/grid-\w+-start/)}))?e:w+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,S+"$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(_(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+x+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch",0)?fe(T(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,i,l){return w+n+":"+r+l+(o?w+n+"-span:"+(a?i:+i-+r)+l:"")+e}));case 4949:if(121===A(e,t+6))return T(e,":",":"+S)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+S+(45===A(e,14)?"inline-":"")+"box$3$1"+S+"$2$3$1"+w+"$2box$3")+e;case 100:return T(e,":",":"+w)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function me(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ge(e,t,n,r){switch(e.type){case P:if(e.children.length)break;case I:case O:return e.return=e.return||e.value;case C:return"";case E:return e.return=e.value+"{"+me(e.children,r)+"}";case k:if(!_(e.value=e.props.join(",")))return""}return _(n=me(e.children,r))?e.return=e.value+"{"+n+"}":""}function he(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case O:return void(e.return=fe(e.value,e.length,n));case E:return me([K(e,{value:T(e.value,"@","@"+S)})],r);case k:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(D(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":J(K(e,{props:[T(t,/:(read-\w+)/,":"+x+"$1")]})),J(K(e,{props:[t]})),z(e,{props:j(n,r)});break;case"::placeholder":J(K(e,{props:[T(t,/:(plac\w+)/,":"+S+"input-$1")]})),J(K(e,{props:[T(t,/:(plac\w+)/,":"+x+"$1")]})),J(K(e,{props:[T(t,/:(plac\w+)/,w+"input-$1")]})),J(K(e,{props:[t]})),z(e,{props:j(n,r)})}return""}))}}var ve={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},be="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ye="active",we="data-styled-version",xe="6.1.11",Se="/*!sc*/\n",Ce="undefined"!=typeof window&&"HTMLElement"in window,ke=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Oe=/invalid hook call/i,Ie=new Set,Ee=function(e,t){if("production"!==process.env.NODE_ENV){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Oe.test(e)?(i=!1,Ie.delete(r)):a.apply(void 0,g([e],t,!1))},o(),i&&!Ie.has(r)&&(console.warn(r),Ie.add(r))}catch(e){Oe.test(e.message)&&Ie.delete(r)}finally{console.error=a}}},Pe=Object.freeze([]),Ne=Object.freeze({});var $e=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ze=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Re=/(^-|-$)/g;function De(e){return e.replace(ze,"-").replace(Re,"")}var Te=/(a)(d)/gi,Me=52,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ve(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Ae(t%Me)+n;return(Ae(t%Me)+n).replace(Te,"$1-$2")}var _e,Le=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fe=function(e){return Le(5381,e)};function je(e){return Ve(Fe(e)>>>0)}function Be(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function He(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var We="function"==typeof Symbol&&Symbol.for,Ge=We?Symbol.for("react.memo"):60115,qe=We?Symbol.for("react.forward_ref"):60112,Ue={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ye={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ke={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Je=((_e={})[qe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_e[Ge]=Ke,_e);function Xe(e){return("type"in(t=e)&&t.type.$$typeof)===Ge?Ke:"$$typeof"in e?Je[e.$$typeof]:Ue;var t}var Qe=Object.defineProperty,Ze=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,nt=Object.getPrototypeOf,rt=Object.prototype;function ot(e,t,n){if("string"!=typeof t){if(rt){var r=nt(t);r&&r!==rt&&ot(e,r,n)}var o=Ze(t);et&&(o=o.concat(et(t)));for(var a=Xe(e),i=Xe(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ye||n&&n[s]||i&&s in i||a&&s in a)){var c=tt(t,s);try{Qe(e,s,c)}catch(e){}}}}return e}function at(e){return"function"==typeof e}function it(e){return"object"==typeof e&&"styledComponentId"in e}function lt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function st(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ct(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ut(e,t,n){if(void 0===n&&(n=!1),!n&&!ct(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ut(e[r],t[r]);else if(ct(t))for(var r in t)e[r]=ut(e[r],t[r]);return e}function dt(e,t){Object.defineProperty(e,"toString",{value:t})}var pt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s 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.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,a=e.length;o<a;o+=1)r.push(e[o]);return r.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function mt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?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(ft.apply(void 0,g([pt[e]],t,!1)).trim())}var gt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw mt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=(a=0,t.length);a<l;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(Se);return t},e}(),ht=1<<30,vt=new Map,bt=new Map,yt=1,wt=function(e){if(vt.has(e))return vt.get(e);for(;bt.has(yt);)yt++;var t=yt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ht))throw mt(16,"".concat(t));return vt.set(e,t),bt.set(t,e),t},xt=function(e,t){yt=t+1,vt.set(e,t),bt.set(t,e)},St="style[".concat(be,"][").concat(we,'="').concat(xe,'"]'),Ct=new RegExp("^".concat(be,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),kt=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},Ot=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Se),o=[],a=0,i=r.length;a<i;a++){var l=r[a].trim();if(l){var s=l.match(Ct);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(xt(u,c),kt(e,u,s[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}};var It=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(be,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(be,ye),r.setAttribute(we,xe);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},Et=function(){function e(e){this.element=It(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw mt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Pt=function(){function e(e){this.element=It(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Nt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$t=Ce,zt={isServer:!Ce,useCSSOMInjection:!ke},Rt=function(){function e(e,t,n){void 0===e&&(e=Ne),void 0===t&&(t={});var r=this;this.options=m(m({},zt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ce&&$t&&($t=!1,function(e){for(var t=document.querySelectorAll(St),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(be)!==ye&&(Ot(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),dt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return bt.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||0===i.length)return"continue";var l="".concat(be,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(i).concat(l,'{content:"').concat(s,'"}').concat(Se)},a=0;a<n;a++)o(a);return r}(r)}))}return e.registerId=function(e){return wt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(m(m({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Nt(n):t?new Et(n):new Pt(n)}(this.options),new gt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(wt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(wt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(wt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Dt=/&/g,Tt=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}var At=new Rt,Vt=function(e){var t,n,r,o=Ne,a=o.options,i=void 0===a?Ne:a,l=o.plugins,s=void 0===l?Pe:l,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=s.slice();u.push((function(e){e.type===k&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Dt,n).replace(r,c))})),i.prefix&&u.push(he),u.push(ge);var d=function(e,o,a,l){void 0===o&&(o=""),void 0===a&&(a=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Tt,""),c=se(a||o?"".concat(a," ").concat(o," { ").concat(s," }"):s);i.namespace&&(c=Mt(c,i.namespace));var d,p=[];return me(c,function(e){var t=L(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||mt(15),Le(e,t.name)}),5381).toString():"",d}(),_t=r.createContext({shouldForwardProp:void 0,styleSheet:At,stylis:Vt});function Lt(){return l(_t)}_t.Consumer,r.createContext(void 0);var Ft=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Vt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,dt(this,(function(){throw mt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Vt),this.name+e.hash},e}(),jt=function(e){return e>="A"&&e<="Z"};function Bt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;jt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ht=function(e){return null==e||!1===e||""===e},Wt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Ht(a)&&(Array.isArray(a)&&a.isCss||at(a)?r.push("".concat(Bt(o),":"),a,";"):ct(a)?r.push.apply(r,g(g(["".concat(o," {")],Wt(a),!1),["}"],!1)):r.push("".concat(Bt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in ve||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Gt(e,t,n,r){if(Ht(e))return[];if(it(e))return[".".concat(e.styledComponentId)];if(at(e)){if(!at(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Ft||ct(o)||null===o||console.error("".concat(Be(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.")),Gt(o,t,n,r)}var a;return e instanceof Ft?n?(e.inject(n,r),[e.getName(r)]):[e]:ct(e)?Wt(e):Array.isArray(e)?Array.prototype.concat.apply(Pe,e.map((function(e){return Gt(e,t,n,r)}))):[e.toString()]}var qt=Fe(xe),Ut=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(at(n)&&!it(n))return!1}return!0}(e),this.componentId=t,this.baseHash=Le(qt,t),this.baseStyle=n,Rt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=lt(r,this.staticRulesId);else{var o=st(Gt(this.rules,e,t,n)),a=Ve(Le(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=lt(r,a),this.staticRulesId=a}else{for(var l=Le(this.baseHash,n.hash),s="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)s+=u,"production"!==process.env.NODE_ENV&&(l=Le(l,u));else if(u){var d=st(Gt(u,e,t,n));l=Le(l,d+c),s+=d}}if(s){var p=Ve(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=lt(r,p)}}return r},e}(),Yt=r.createContext(void 0);Yt.Consumer;var Kt={},Jt=new Set;function Xt(e,t,n){var o=it(e),l=e,s=!He(e),c=t.attrs,u=void 0===c?Pe:c,d=t.componentId,p=void 0===d?function(e,t){var n="string"!=typeof e?"sc":De(e);Kt[n]=(Kt[n]||0)+1;var r="".concat(n,"-").concat(je(xe+n+Kt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,f=t.displayName,g=void 0===f?function(e){return He(e)?"styled.".concat(e):"Styled(".concat(Be(e),")")}(e):f,h=t.displayName&&t.componentId?"".concat(De(t.displayName),"-").concat(t.componentId):t.componentId||p,v=o&&l.attrs?l.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(o&&l.shouldForwardProp){var w=l.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;y=function(e,t){return w(e,t)&&x(e,t)}}else y=w}var S=new Ut(n,h,o?l.componentStyle:void 0);function C(e,t){return function(e,t,n){var o=e.attrs,l=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,p=r.useContext(Yt),f=Lt(),g=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&a(u);var h=function(e,t,n){return void 0===n&&(n=Ne),e.theme!==n.theme&&e.theme||t||n.theme}(t,p,s)||Ne,v=function(e,t,n){for(var r,o=m(m({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var i=at(r=e[a])?r(o):r;for(var l in i)o[l]="className"===l?lt(o[l],i[l]):"style"===l?m(m({},o[l]),i[l]):i[l]}return t.className&&(o.className=lt(o.className,t.className)),o}(o,t,h),y=v.as||d,w={};for(var x in v)void 0===v[x]||"$"===x[0]||"as"===x||"theme"===x&&v.theme===h||("forwardedAs"===x?w.as=v.forwardedAs:g&&!g(x,y)||(w[x]=v[x],g||"development"!==process.env.NODE_ENV||b(x)||Jt.has(x)||!$e.has(y)||(Jt.add(x),console.warn('styled-components: it looks like an unknown prop "'.concat(x,'" 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 S=function(e,t){var n=Lt(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&a(r),r}(l,v);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(S);var C=lt(c,u);return S&&(C+=" "+S),v.className&&(C+=" "+v.className),w[He(y)&&!$e.has(y)?"class":"className"]=C,w.ref=n,i(y,w)}(k,e,t)}C.displayName=g;var k=r.forwardRef(C);return k.attrs=v,k.componentStyle=S,k.displayName=g,k.shouldForwardProp=y,k.foldedComponentIds=o?lt(l.foldedComponentIds,l.styledComponentId):"",k.styledComponentId=h,k.target=o?l.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)ut(e,o[r],!0);return e}({},l.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Ee(g,h),k.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(g,h)),dt(k,(function(){return".".concat(k.styledComponentId)})),s&&ot(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Qt(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 Zt=function(e){return Object.assign(e,{isCss:!0})};function en(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(at(e)||ct(e))return Zt(Gt(Qt(Pe,g([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Gt(r):Zt(Gt(Qt(r,t)))}function tn(e,t,n){if(void 0===n&&(n=Ne),!t)throw mt(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,en.apply(void 0,g([r],o,!1)))};return r.attrs=function(r){return tn(e,t,m(m({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return tn(e,t,m(m({},n),r))},r}var nn=function(e){return tn(Xt,e)},rn=nn;function on(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=st(en.apply(void 0,g([e],t,!1))),o=je(r);return new Ft(o,r)}$e.forEach((function(e){rn[e]=nn(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var an="__sc-".concat(be,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[an]||(window[an]=0),1===window[an]&&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.\n\nSee https://s-c.sh/2BAXzed for more info."),window[an]+=1);const ln=rn.div`
|
|
2
2
|
color: var(--color--grey-dark);
|
|
3
3
|
font-weight: var(--font-weight--bold);
|
|
4
4
|
|
|
@@ -120,68 +120,38 @@ object-assign
|
|
|
120
120
|
&:hover {
|
|
121
121
|
background-color: var(--color--grey-lightest);
|
|
122
122
|
}
|
|
123
|
-
`;function _i({title:n,children:r,open:a=!1}){const[i,l]=s(a),u=o(null);return c((()=>{i&&u.current?u.current.style.maxHeight=`${u.current.scrollHeight}px`:u.current&&(u.current.style.maxHeight="0px")}),[i]),t(Ti,{children:[e(Mi,{children:e(sn,{as:"h3",children:t(Vi,{type:"button","aria-expanded":i,onClick:()=>l(!i),"aria-controls":"accordion-content",role:"button",isOpen:i,children:[n,e("span",{children:e(Di,{name:["fas","chevron-up"]})})]})})}),e(Ai,{ref:u,"aria-labelledby":"accordion-button",isOpen:i,role:"region",children:r})]})}const Li=en`
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
text-decoration: none;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
font-weight: 500;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
font-size: var(--font-size--xsmall);
|
|
144
|
-
font-weight: 500;
|
|
145
|
-
`,xxsmall:en`
|
|
146
|
-
padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
|
|
147
|
-
font-size: var(--font-size--xxsmall);
|
|
148
|
-
font-weight: 500;
|
|
149
|
-
`},ji={default:en`
|
|
150
|
-
background-color: transaprent;
|
|
151
|
-
color: var(--color--body);
|
|
152
|
-
border: 1px solid var(--color--grey-line);
|
|
153
|
-
`,danger:en`
|
|
154
|
-
background-color: var(--color--white);
|
|
155
|
-
color: var(--color--danger);
|
|
156
|
-
border: 1px solid var(--color--danger-light);
|
|
157
|
-
`,warning:en`
|
|
158
|
-
background-color: var(--color--white);
|
|
159
|
-
color: var(--color--warning);
|
|
160
|
-
border: 1px solid var(--color--warning-light);
|
|
161
|
-
`,grey:en`
|
|
162
|
-
background-color: var(--color--grey-line);
|
|
163
|
-
color: var(--color--grey-dark);
|
|
164
|
-
border: 1px solid var(--color--grey-line);
|
|
165
|
-
`},Bi=rn.div`
|
|
166
|
-
${Li}
|
|
167
|
-
|
|
168
|
-
${({size:e})=>Fi[e||"medium"]}
|
|
169
|
-
${({kind:e})=>ji[e||"default"]}
|
|
170
|
-
`;function Hi({children:t,...n}){return e(Bi,{...n,children:t})}const Wi=rn.hr`
|
|
171
|
-
border: 0;
|
|
172
|
-
border-bottom: 1px solid var(--color--grey-line);
|
|
173
|
-
`;function Gi({size:n="medium",value:r=0,kind:o="default",trafficLightRanges:a={red:{min:0,max:20,text:""},redLow:{min:20,max:40,text:""},orange:{min:40,max:60,text:""},green:{min:60,max:80,text:""},greenHigh:{min:80,max:100,text:""}}}){const i={mini:"0.8rem",tiny:"1rem",small:"1.2rem",medium:"1.6rem",large:"2rem"}[n],l={mini:50,tiny:75,small:100,medium:150,large:200}[n],u=(({kind:e,percentage:t,trafficLightRanges:n})=>{const r="var(--color--primary)",o="var(--color--danger)",a="var(--color--green-dark)",i="var(--color--red)",l="var(--color--orange-dark)",s="var(--color--green-dark)";return(()=>{if("traffic-light"===e){const e=Object.entries(n).find((([,e])=>t>=e.min&&t<=e.max))?.[0];return"red"===e||"redLow"===e?i:"orange"===e?l:"green"===e||"greenHigh"===e?s:"#d7d7d7"}return"danger"===e?o:"success"===e?a:"default"===e?r:"#d7d7d7"})()})({kind:o,percentage:Math.round(r),trafficLightRanges:a}),d=l/7,[p,f]=s(0);c((()=>{f(r)}),[r]);const m=(l-d)/2,g=m*Math.PI*2,h=p*g/100;return t("svg",{width:l,height:l,viewBox:`0 0 ${l} ${l}`,children:[e("circle",{fill:"white",stroke:"#d7d7d7",cx:l/2,cy:l/2,r:m,strokeWidth:`${d}px`}),e("circle",{fill:"none",stroke:u,cx:l/2,cy:l/2,r:m,strokeWidth:`${d}px`,transform:`rotate(-90 ${l/2} ${l/2})`,strokeDasharray:`${h}, ${g-h}`,strokeLinecap:"round",style:{transition:"all 0.5s"}}),e("text",{fill:"black",fontSize:i,fontWeight:"bold",x:"50%",y:"50%",dy:"6%",textAnchor:"middle",children:(v=r,v>=0&&v<=100?`${r}%`:"-")})]});var v}function qi({size:n=80,strokeWidth:r=8,color:o="#4c3fdd"}){return t("svg",{width:n,height:n,viewBox:"0 0 200 200",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("defs",{children:[t("linearGradient",{id:"spinner-secondHalf",children:[e("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),t("linearGradient",{id:"spinner-firstHalf",children:[e("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),t("g",{strokeWidth:r,children:[e("path",{stroke:"url(#spinner-secondHalf)",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${200-r/2} 100`}),e("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} 100`}),e("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} ${100-r/4}`})]}),e("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const Ui=rn.div`
|
|
123
|
+
`;function _i({title:n,children:r,open:a=!1}){const[i,l]=s(a),u=o(null);return c((()=>{i&&u.current?u.current.style.maxHeight=`${u.current.scrollHeight}px`:u.current&&(u.current.style.maxHeight="0px")}),[i]),t(Ti,{children:[e(Mi,{children:e(sn,{as:"h3",children:t(Vi,{type:"button","aria-expanded":i,onClick:()=>l(!i),"aria-controls":"accordion-content",role:"button",isOpen:i,children:[n,e("span",{children:e(Di,{name:["fas","chevron-up"]})})]})})}),e(Ai,{ref:u,"aria-labelledby":"accordion-button",isOpen:i,role:"region",children:r})]})}const Li={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};var Fi="$$joy";function ji(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bi.apply(null,arguments)}var Hi=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Wi="-ms-",Gi="-moz-",qi="-webkit-",Ui="comm",Yi="rule",Ki="decl",Ji="@keyframes",Xi=Math.abs,Qi=String.fromCharCode,Zi=Object.assign;function el(e){return e.trim()}function tl(e,t,n){return e.replace(t,n)}function nl(e,t){return e.indexOf(t)}function rl(e,t){return 0|e.charCodeAt(t)}function ol(e,t,n){return e.slice(t,n)}function al(e){return e.length}function il(e){return e.length}function ll(e,t){return t.push(e),e}var sl=1,cl=1,ul=0,dl=0,pl=0,fl="";function ml(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:sl,column:cl,length:i,return:""}}function gl(e,t){return Zi(ml("",null,null,"",null,null,0),e,{length:-e.length},t)}function hl(){return pl=dl>0?rl(fl,--dl):0,cl--,10===pl&&(cl=1,sl--),pl}function vl(){return pl=dl<ul?rl(fl,dl++):0,cl++,10===pl&&(cl=1,sl++),pl}function bl(){return rl(fl,dl)}function yl(){return dl}function wl(e,t){return ol(fl,e,t)}function xl(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 Sl(e){return sl=cl=1,ul=al(fl=e),dl=0,[]}function Cl(e){return fl="",e}function kl(e){return el(wl(dl-1,El(91===e?e+2:40===e?e+1:e)))}function Ol(e){for(;(pl=bl())&&pl<33;)vl();return xl(e)>2||xl(pl)>3?"":" "}function Il(e,t){for(;--t&&vl()&&!(pl<48||pl>102||pl>57&&pl<65||pl>70&&pl<97););return wl(e,yl()+(t<6&&32==bl()&&32==vl()))}function El(e){for(;vl();)switch(pl){case e:return dl;case 34:case 39:34!==e&&39!==e&&El(pl);break;case 40:41===e&&El(e);break;case 92:vl()}return dl}function Pl(e,t){for(;vl()&&e+pl!==57&&(e+pl!==84||47!==bl()););return"/*"+wl(t,dl-1)+"*"+Qi(47===e?e:vl())}function Nl(e){for(;!xl(bl());)vl();return wl(e,dl)}function $l(e){return Cl(zl("",null,null,null,[""],e=Sl(e),0,[0],e))}function zl(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",w=o,x=a,S=r,C=y;h;)switch(m=b,b=vl()){case 40:if(108!=m&&58==rl(C,d-1)){-1!=nl(C+=tl(kl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=kl(b);break;case 9:case 10:case 13:case 32:C+=Ol(m);break;case 92:C+=Il(yl()-1,7);continue;case 47:switch(bl()){case 42:case 47:ll(Dl(Pl(vl(),yl()),t,n),s);break;default:C+="/"}break;case 123*g:l[c++]=al(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(C=tl(C,/\f/g,"")),f>0&&al(C)-d&&ll(f>32?Tl(C+";",r,n,d-1):Tl(tl(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(ll(S=Rl(C,t,n,c,u,o,l,y,w=[],x=[],d),a),123===b)if(0===u)zl(C,t,S,S,w,a,d,l,x);else switch(99===p&&110===rl(C,3)?100:p){case 100:case 108:case 109:case 115:zl(e,S,S,r&&ll(Rl(e,S,S,0,0,o,l,y,o,w=[],d),x),o,x,d,l,r?w:x);break;default:zl(C,S,S,S,[""],x,0,l,x)}}c=u=f=0,g=v=1,y=C="",d=i;break;case 58:d=1+al(C),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==hl())continue;switch(C+=Qi(b),b*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(al(C)-1)*v,v=1;break;case 64:45===bl()&&(C+=kl(vl())),p=bl(),u=d=al(y=C+=Nl(yl())),b++;break;case 45:45===m&&2==al(C)&&(g=0)}}return a}function Rl(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=il(p),m=0,g=0,h=0;m<r;++m)for(var v=0,b=ol(e,d+1,d=Xi(g=i[m])),y=e;v<f;++v)(y=el(g>0?p[v]+" "+b:tl(b,/&\f/g,p[v])))&&(s[h++]=y);return ml(e,t,n,0===o?Yi:l,s,c,u)}function Dl(e,t,n){return ml(e,t,n,Ui,Qi(pl),ol(e,2,-2),0)}function Tl(e,t,n,r){return ml(e,t,n,Ki,ol(e,0,r),ol(e,r+1,-1),r)}function Ml(e,t){for(var n="",r=il(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Al(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ki:return e.return=e.return||e.value;case Ui:return"";case Ji:return e.return=e.value+"{"+Ml(e.children,r)+"}";case Yi:e.value=e.props.join(",")}return al(n=Ml(e.children,r))?e.return=e.value+"{"+n+"}":""}function Vl(e){var t=il(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var _l=function(e,t,n){for(var r=0,o=0;r=o,o=bl(),38===r&&12===o&&(t[n]=1),!xl(o);)vl();return wl(e,dl)},Ll=function(e,t){return Cl(function(e,t){var n=-1,r=44;do{switch(xl(r)){case 0:38===r&&12===bl()&&(t[n]=1),e[n]+=_l(dl-1,t,n);break;case 2:e[n]+=kl(r);break;case 4:if(44===r){e[++n]=58===bl()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Qi(r)}}while(r=vl());return e}(Sl(e),t))},Fl=new WeakMap,jl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Fl.get(n))&&!r){Fl.set(e,!0);for(var o=[],a=Ll(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Bl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Hl=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Wl=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Gl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ql=function(e,t,n){Wl(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Gl(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Wl(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Gl(e)))};function Ul(e,t){switch(function(e,t){return 45^rl(e,0)?(((t<<2^rl(e,0))<<2^rl(e,1))<<2^rl(e,2))<<2^rl(e,3):0}(e,t)){case 5103:return qi+"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 qi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qi+e+Gi+e+Wi+e+e;case 6828:case 4268:return qi+e+Wi+e+e;case 6165:return qi+e+Wi+"flex-"+e+e;case 5187:return qi+e+tl(e,/(\w+).+(:[^]+)/,qi+"box-$1$2"+Wi+"flex-$1$2")+e;case 5443:return qi+e+Wi+"flex-item-"+tl(e,/flex-|-self/,"")+e;case 4675:return qi+e+Wi+"flex-line-pack"+tl(e,/align-content|flex-|-self/,"")+e;case 5548:return qi+e+Wi+tl(e,"shrink","negative")+e;case 5292:return qi+e+Wi+tl(e,"basis","preferred-size")+e;case 6060:return qi+"box-"+tl(e,"-grow","")+qi+e+Wi+tl(e,"grow","positive")+e;case 4554:return qi+tl(e,/([^-])(transform)/g,"$1"+qi+"$2")+e;case 6187:return tl(tl(tl(e,/(zoom-|grab)/,qi+"$1"),/(image-set)/,qi+"$1"),e,"")+e;case 5495:case 3959:return tl(e,/(image-set\([^]*)/,qi+"$1$`$1");case 4968:return tl(tl(e,/(.+:)(flex-)?(.*)/,qi+"box-pack:$3"+Wi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qi+e+e;case 4095:case 3583:case 4068:case 2532:return tl(e,/(.+)-inline(.+)/,qi+"$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(al(e)-1-t>6)switch(rl(e,t+1)){case 109:if(45!==rl(e,t+4))break;case 102:return tl(e,/(.+:)(.+)-([^]+)/,"$1"+qi+"$2-$3$1"+Gi+(108==rl(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nl(e,"stretch")?Ul(tl(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==rl(e,t+1))break;case 6444:switch(rl(e,al(e)-3-(~nl(e,"!important")&&10))){case 107:return tl(e,":",":"+qi)+e;case 101:return tl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qi+(45===rl(e,14)?"inline-":"")+"box$3$1"+qi+"$2$3$1"+Wi+"$2box$3")+e}break;case 5936:switch(rl(e,t+11)){case 114:return qi+e+Wi+tl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qi+e+Wi+tl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qi+e+Wi+tl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qi+e+Wi+e+e}return e}var Yl,Kl,Jl="undefined"!=typeof document,Xl=Jl?void 0:(Yl=function(){return h((function(){var e={};return function(t){return e[t]}}))},Kl=new WeakMap,function(e){if(Kl.has(e))return Kl.get(e);var t=Yl(e);return Kl.set(e,t),t}),Ql=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ki:e.return=Ul(e.value,e.length);break;case Ji:return Ml([gl(e,{value:tl(e.value,"@","@"+qi)})],r);case Yi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ml([gl(e,{props:[tl(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ml([gl(e,{props:[tl(t,/:(plac\w+)/,":"+qi+"input-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,":-moz-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,Wi+"input-$1")]})],r)}return""}))}}],Zl=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(Jl&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Ql;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},l=[];Jl&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[jl,Bl];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent?t.parent.children:r,i=a.length-1;i>=0;i--){var l=a[i];if(l.line<t.line)break;if(l.column<t.column){if(Hl(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return v.compat}}),ql),Jl){var u,d=[Al,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Ui&&u.insert(e.value+"{}"))}:(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Vl(c.concat(r,d));a=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),function(e){Ml($l(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Al],m=Vl(c.concat(r,f)),g=Xl(r)(t),h=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=function(e){return Ml($l(e),m)}(e?e+"{"+t.styles+"}":t.styles)),g[n]};a=function(e,t,n,r){var o=t.name,a=h(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new Hi({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return v.sheet.hydrate(l),v},es=Ya(),ts={};ts[es.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ts[es.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var ns="undefined"!=typeof document;function rs(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var os=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===ns&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},as=function(e,t,n){os(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);ns||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!ns&&0!==o.length)return o}};var is="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ls="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ss=/[A-Z]|^ms/g,cs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,us=function(e){return 45===e.charCodeAt(1)},ds=function(e){return null!=e&&"boolean"!=typeof e},ps=h((function(e){return us(e)?e:e.replace(ss,"-$&").toLowerCase()})),fs=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(cs,(function(e,t,n){return Cs={name:t,styles:n,next:Cs},t}))}return 1===ve[e]||us(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var ms=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,gs=["normal","none","initial","inherit","unset"],hs=fs,vs=/^-ms-/,bs=/-(.)/g,ys={};fs=function(e,t){if("content"===e&&("string"!=typeof t||-1===gs.indexOf(t)&&!ms.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=hs(e,t);return""===n||us(e)||-1===e.indexOf("-")||void 0!==ys[e]||(ys[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(vs,"ms-").replace(bs,(function(e,t){return t.toUpperCase()}))+"?")),n}}var ws="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function xs(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(ws);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Cs={name:n.name,styles:n.styles,next:Cs},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Cs={name:r.name,styles:r.styles,next:Cs},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xs(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":ds(i)&&(r+=ps(a)+":"+fs(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(ws);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=xs(e,t,i);switch(a){case"animation":case"animationName":r+=ps(a)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(ls),r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)ds(i[s])&&(r+=ps(a)+":"+fs(a,i[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Cs,i=n(e);return Cs=a,xs(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(cs,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var Ss,Cs,ks=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Ss=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Os=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Cs=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=xs(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(is),o+=i[0]);for(var l=1;l<e.length;l++)o+=xs(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===i[l]&&console.error(is),o+=i[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(Ss,(function(e){return a=e,""}))),ks.lastIndex=0;for(var s,c="";null!==(s=ks.exec(o));)c+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:Cs,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Cs}},Is="undefined"!=typeof document,Es=function(e){return e()},Ps=!!n.useInsertionEffect&&n.useInsertionEffect,Ns=Is&&Ps||Es,$s=Ps||n.useLayoutEffect,zs="undefined"!=typeof document,Rs={}.hasOwnProperty,Ds=n.createContext("undefined"!=typeof HTMLElement?Zl({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Ds.displayName="EmotionCacheContext"),Ds.Provider;var Ts=function(e){return u((function(t,n){var r=l(Ds);return e(t,r,n)}))};zs||(Ts=function(e){return function(t){var r=l(Ds);return null===r?(r=Zl({key:"css"}),n.createElement(Ds.Provider,{value:r},e(t,r))):e(t,r)}});var Ms=n.createContext({});"production"!==process.env.NODE_ENV&&(Ms.displayName="EmotionThemeContext");var As="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vs="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",_s=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;os(t,r,o);var a=Ns((function(){return as(t,r,o)}));if(!zs&&void 0!==a){for(var i,l=r.name,s=r.next;void 0!==s;)l+=" "+s.name,s=s.next;return n.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},Ls=Ts((function(e,t,r){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[As],i=[o],l="";"string"==typeof e.className?l=rs(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var s=Os(i,void 0,n.useContext(Ms));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=e[Vs];c&&(s=Os([s,"label:"+c+";"]))}l+=t.key+"-"+s.name;var u={};for(var d in e)!Rs.call(e,d)||"css"===d||d===As||"production"!==process.env.NODE_ENV&&d===Vs||(u[d]=e[d]);return u.ref=r,u.className=l,n.createElement(n.Fragment,null,n.createElement(_s,{cache:t,serialized:s,isStringTag:"string"==typeof a}),n.createElement(a,u))}));"production"!==process.env.NODE_ENV&&(Ls.displayName="EmotionCssPropInternal");var Fs=!1,js=Ts((function(e,t){"production"===process.env.NODE_ENV||Fs||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Fs=!0);var r=e.styles,o=Os([r],void 0,n.useContext(Ms));if(!zs){for(var a,i=o.name,l=o.styles,s=o.next;void 0!==s;)i+=" "+s.name,l+=s.styles,s=s.next;var c=!0===t.compat,u=t.insert("",{name:i,styles:l},t.sheet,c);return c?null:n.createElement("style",((a={})["data-emotion"]=t.key+"-global "+i,a.dangerouslySetInnerHTML={__html:u},a.nonce=t.sheet.nonce,a))}var d=n.useRef();return $s((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),d.current=[n,r],function(){n.flush()}}),[t]),$s((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&as(t,o.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",o,n,!1)}}),[t,o.name]),null}));function Bs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Os(t)}"production"!==process.env.NODE_ENV&&(js.displayName="EmotionGlobal");var Hs=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};var Ws=function(e){var t,r=e.cache,o=e.serializedArr,a=Ns((function(){for(var e="",t=0;t<o.length;t++){var n=as(r,o[t],!1);zs||void 0===n||(e+=n)}if(!zs)return e}));return zs||0===a.length?null:n.createElement("style",((t={})["data-emotion"]=r.key+" "+o.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:a},t.nonce=r.sheet.nonce,t))},Gs=Ts((function(e,t){var r=!1,o=[],a=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];var i=Os(n,t.registered);return o.push(i),os(t,i,!1),t.key+"-"+i.name},i={css:a,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=rs(e,r,n);return r.length<2?n:o+t(r)}(t.registered,a,Hs(n))},theme:n.useContext(Ms)},l=e.children(i);return r=!0,n.createElement(n.Fragment,null,n.createElement(Ws,{cache:t,serializedArr:o}),l)}));if("production"!==process.env.NODE_ENV&&(Gs.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var qs="undefined"!=typeof document,Us="undefined"!=typeof jest||"undefined"!=typeof vi;if(qs&&!Us){var Ys="undefined"!=typeof globalThis?globalThis:qs?window:global,Ks="__EMOTION_REACT_"+"11.11.4".split(".")[0]+"__";Ys[Ks]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Ys[Ks]=!0}}var Js=b,Xs=function(e){return"theme"!==e},Qs=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Js:Xs},Zs=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ec="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",tc="undefined"!=typeof document,nc=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;os(t,r,o);var a=Ns((function(){return as(t,r,o)}));if(!tc&&void 0!==a){for(var i,l=r.name,s=r.next;void 0!==s;)l+=" "+s.name,s=s.next;return n.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},rc=function e(t,r){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,a,i=t.__emotion_real===t,l=i&&t.__emotion_base||t;void 0!==r&&(o=r.label,a=r.target);var s=Zs(t,r,i),c=s||Qs(l),u=!c("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(ec),p.push(d[0][0]);for(var f=d.length,m=1;m<f;m++)"production"!==process.env.NODE_ENV&&void 0===d[0][m]&&console.error(ec),p.push(d[m],d[0][m])}var g=Ts((function(e,t,r){var o=u&&e.as||l,i="",d=[],f=e;if(null==e.theme){for(var m in f={},e)f[m]=e[m];f.theme=n.useContext(Ms)}"string"==typeof e.className?i=rs(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var g=Os(p.concat(d),t.registered,f);i+=t.key+"-"+g.name,void 0!==a&&(i+=" "+a);var h=u&&void 0===s?Qs(o):c,v={};for(var b in e)u&&"as"===b||h(b)&&(v[b]=e[b]);return v.className=i,v.ref=r,n.createElement(n.Fragment,null,n.createElement(nc,{cache:t,serialized:g,isStringTag:"string"==typeof o}),n.createElement(o,v))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(t,n){return e(t,Bi({},r,n,{shouldForwardProp:Zs(g,n,!0)})).apply(void 0,p)},g}}.bind();function oc(t){const{styles:n,defaultTheme:r={}}=t;return e(js,{styles:"function"==typeof n?e=>{return n(null==(t=e)||0===Object.keys(t).length?r:e);var t}:n})}
|
|
124
|
+
/**
|
|
125
|
+
* @mui/styled-engine v5.15.14
|
|
126
|
+
*
|
|
127
|
+
* @license MIT
|
|
128
|
+
* This source code is licensed under the MIT license found in the
|
|
129
|
+
* LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/
|
|
131
|
+
function ac(e,t){const n=rc(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){rc[e]=rc(e)})),"production"!==process.env.NODE_ENV&&(oc.propTypes={defaultTheme:Za.object,styles:Za.oneOfType([Za.array,Za.string,Za.object,Za.func])});function ic(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lc(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function sc(e){if(!lc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=sc(e[n])})),t}function cc(e,t,n={clone:!0}){const r=n.clone?Bi({},e):e;return lc(e)&&lc(t)&&Object.keys(t).forEach((o=>{lc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lc(e[o])?r[o]=cc(e[o],t[o],n):n.clone?r[o]=lc(t[o])?sc(t[o]):t[o]:r[o]=t[o]})),r}const uc=["values","unit","step"],dc=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Bi({},e,{[t.key]:t.val})),{})};function pc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ic(e,uc),a=dc(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return Bi({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const fc={borderRadius:4},mc="production"!==process.env.NODE_ENV?Za.oneOfType([Za.number,Za.string,Za.object,Za.array]):{};function gc(e,t){return t?cc(e,t,{clone:!1}):e}const hc={xs:0,sm:600,md:900,lg:1200,xl:1536},vc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hc[e]}px)`};function bc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||vc;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||vc;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||hc).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function yc(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":ji(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wc(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function xc(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:wc(e,n)||r,t&&(o=t(o,r,e)),o}function Sc(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=wc(e.theme,r)||{};return bc(e,a,(e=>{let r=xc(i,o,e);return e===r&&"string"==typeof e&&(r=xc(i,o,`${t}${"default"===e?"":yc(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:mc}:{},a.filterProps=[t],a}const Cc={m:"margin",p:"padding"},kc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Oc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ic=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Oc[e])return[e];e=Oc[e]}const[t,n]=e.split(""),r=Cc[t],o=kc[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Ec=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Nc=[...Ec,...Pc];function $c(e,t,n,r){var o;const a=null!=(o=wc(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),a*e):Array.isArray(a)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>a.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${e} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),a[e]):"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function zc(e){return $c(e,"spacing",8,"spacing")}function Rc(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Dc(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Rc(t,n),e)),{})}(Ic(n),r);return bc(e,e[n],o)}function Tc(e,t){const n=zc(e.theme);return Object.keys(e).map((r=>Dc(e,t,r,n))).reduce(gc,{})}function Mc(e){return Tc(e,Ec)}function Ac(e){return Tc(e,Pc)}function Vc(e=8){if(e.mui)return e;const t=zc({spacing:e}),n=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}function _c(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?gc(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Lc(e){return"number"!=typeof e?e:`${e}px solid`}function Fc(e,t){return Sc({prop:e,themeKey:"borders",transform:t})}Mc.propTypes="production"!==process.env.NODE_ENV?Ec.reduce(((e,t)=>(e[t]=mc,e)),{}):{},Mc.filterProps=Ec,Ac.propTypes="production"!==process.env.NODE_ENV?Pc.reduce(((e,t)=>(e[t]=mc,e)),{}):{},Ac.filterProps=Pc,"production"===process.env.NODE_ENV||Nc.reduce(((e,t)=>(e[t]=mc,e)),{});const jc=Fc("border",Lc),Bc=Fc("borderTop",Lc),Hc=Fc("borderRight",Lc),Wc=Fc("borderBottom",Lc),Gc=Fc("borderLeft",Lc),qc=Fc("borderColor"),Uc=Fc("borderTopColor"),Yc=Fc("borderRightColor"),Kc=Fc("borderBottomColor"),Jc=Fc("borderLeftColor"),Xc=Fc("outline",Lc),Qc=Fc("outlineColor"),Zc=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=$c(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Rc(t,e)});return bc(e,e.borderRadius,n)}return null};Zc.propTypes="production"!==process.env.NODE_ENV?{borderRadius:mc}:{},Zc.filterProps=["borderRadius"],_c(jc,Bc,Hc,Wc,Gc,qc,Uc,Yc,Kc,Jc,Zc,Xc,Qc);const eu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=$c(e.theme,"spacing",8,"gap"),n=e=>({gap:Rc(t,e)});return bc(e,e.gap,n)}return null};eu.propTypes="production"!==process.env.NODE_ENV?{gap:mc}:{},eu.filterProps=["gap"];const tu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=$c(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Rc(t,e)});return bc(e,e.columnGap,n)}return null};tu.propTypes="production"!==process.env.NODE_ENV?{columnGap:mc}:{},tu.filterProps=["columnGap"];const nu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=$c(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Rc(t,e)});return bc(e,e.rowGap,n)}return null};nu.propTypes="production"!==process.env.NODE_ENV?{rowGap:mc}:{},nu.filterProps=["rowGap"];function ru(e,t){return"grey"===t?t:e}_c(eu,tu,nu,Sc({prop:"gridColumn"}),Sc({prop:"gridRow"}),Sc({prop:"gridAutoFlow"}),Sc({prop:"gridAutoColumns"}),Sc({prop:"gridAutoRows"}),Sc({prop:"gridTemplateColumns"}),Sc({prop:"gridTemplateRows"}),Sc({prop:"gridTemplateAreas"}),Sc({prop:"gridArea"}));function ou(e){return e<=1&&0!==e?100*e+"%":e}_c(Sc({prop:"color",themeKey:"palette",transform:ru}),Sc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ru}),Sc({prop:"backgroundColor",themeKey:"palette",transform:ru}));const au=Sc({prop:"width",transform:ou}),iu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||hc[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ou(t)}};return bc(e,e.maxWidth,t)}return null};iu.filterProps=["maxWidth"];const lu=Sc({prop:"minWidth",transform:ou}),su=Sc({prop:"height",transform:ou}),cu=Sc({prop:"maxHeight",transform:ou}),uu=Sc({prop:"minHeight",transform:ou});Sc({prop:"size",cssProperty:"width",transform:ou}),Sc({prop:"size",cssProperty:"height",transform:ou});_c(au,iu,lu,su,cu,uu,Sc({prop:"boxSizing"}));const du={border:{themeKey:"borders",transform:Lc},borderTop:{themeKey:"borders",transform:Lc},borderRight:{themeKey:"borders",transform:Lc},borderBottom:{themeKey:"borders",transform:Lc},borderLeft:{themeKey:"borders",transform:Lc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zc},color:{themeKey:"palette",transform:ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ru},backgroundColor:{themeKey:"palette",transform:ru},p:{style:Ac},pt:{style:Ac},pr:{style:Ac},pb:{style:Ac},pl:{style:Ac},px:{style:Ac},py:{style:Ac},padding:{style:Ac},paddingTop:{style:Ac},paddingRight:{style:Ac},paddingBottom:{style:Ac},paddingLeft:{style:Ac},paddingX:{style:Ac},paddingY:{style:Ac},paddingInline:{style:Ac},paddingInlineStart:{style:Ac},paddingInlineEnd:{style:Ac},paddingBlock:{style:Ac},paddingBlockStart:{style:Ac},paddingBlockEnd:{style:Ac},m:{style:Mc},mt:{style:Mc},mr:{style:Mc},mb:{style:Mc},ml:{style:Mc},mx:{style:Mc},my:{style:Mc},margin:{style:Mc},marginTop:{style:Mc},marginRight:{style:Mc},marginBottom:{style:Mc},marginLeft:{style:Mc},marginX:{style:Mc},marginY:{style:Mc},marginInline:{style:Mc},marginInlineStart:{style:Mc},marginInlineEnd:{style:Mc},marginBlock:{style:Mc},marginBlockStart:{style:Mc},marginBlockEnd:{style:Mc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:eu},rowGap:{style:nu},columnGap:{style:tu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ou},maxWidth:{style:iu},minWidth:{transform:ou},height:{transform:ou},maxHeight:{transform:ou},minHeight:{transform:ou},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const pu=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=wc(n,l)||{};if(c)return c(o);return bc(o,t,(t=>{let n=xc(u,s,t);return t===n&&"string"==typeof t&&(n=xc(u,s,`${e}${"default"===t?"":yc(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:du;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=gc(s,e(n,o,a,i));else{const e=bc({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=gc(s,e):s[n]=t({sx:o,theme:a})}else s=gc(s,e(n,o,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();function fu(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}pu.filterProps=["sx"];const mu=["breakpoints","palette","spacing","shape"];function gu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=ic(e,mu),l=pc(n),s=Vc(o);let c=cc({breakpoints:l,direction:"ltr",components:{},palette:Bi({mode:"light"},r),spacing:s,shape:Bi({},fc,a)},i);return c.applyStyles=fu,c=t.reduce(((e,t)=>cc(e,t)),c),c.unstable_sxConfig=Bi({},du,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return pu({sx:e,theme:this})},c}function hu(e=null){const t=n.useContext(Ms);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const vu=gu();function bu(e=vu){return hu(e)}const yu=["sx"],wu=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:du;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function xu(e){const{sx:t}=e,n=ic(e,yu),{systemProps:r,otherProps:o}=wu(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return lc(n)?Bi({},r,n):r}:Bi({},r,t),Bi({},o,{sx:a})}const Su=e=>e,Cu=(()=>{let e=Su;return{configure(t){e=t},generate:t=>e(t),reset(){e=Su}}})();function ku(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ku(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ou(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ku(e))&&(r&&(r+=" "),r+=t);return r}const Iu=["className","component"];const Eu={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Pu(e,t,n="Mui"){const r=Eu[t];return r?`${n}-${r}`:`${Cu.generate(e)}-${t}`}function Nu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Pu(e,t,n)})),r}var $u,zu={exports:{}},Ru={};var Du,Tu={};
|
|
132
|
+
/**
|
|
133
|
+
* @license React
|
|
134
|
+
* react-is.development.js
|
|
135
|
+
*
|
|
136
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the MIT license found in the
|
|
139
|
+
* LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/"production"===process.env.NODE_ENV?zu.exports=function(){if($u)return Ru;$u=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case f:case p:case i:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),Ru.ContextConsumer=l,Ru.ContextProvider=i,Ru.Element=t,Ru.ForwardRef=c,Ru.Fragment=r,Ru.Lazy=f,Ru.Memo=p,Ru.Portal=n,Ru.Profiler=a,Ru.StrictMode=o,Ru.Suspense=u,Ru.SuspenseList=d,Ru.isAsyncMode=function(){return!1},Ru.isConcurrentMode=function(){return!1},Ru.isContextConsumer=function(e){return g(e)===l},Ru.isContextProvider=function(e){return g(e)===i},Ru.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ru.isForwardRef=function(e){return g(e)===c},Ru.isFragment=function(e){return g(e)===r},Ru.isLazy=function(e){return g(e)===f},Ru.isMemo=function(e){return g(e)===p},Ru.isPortal=function(e){return g(e)===n},Ru.isProfiler=function(e){return g(e)===a},Ru.isStrictMode=function(e){return g(e)===o},Ru.isSuspense=function(e){return g(e)===u},Ru.isSuspenseList=function(e){return g(e)===d},Ru.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Ru.typeOf=g,Ru}():zu.exports=(Du||(Du=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var g=e.type;switch(g){case r:case a:case o:case u:case d:return g;default:var h=g&&g.$$typeof;switch(h){case s:case l:case c:case f:case p:case i:return h;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var h=l,v=i,b=t,y=c,w=r,x=f,S=p,C=n,k=a,O=o,I=u,E=d,P=!1,N=!1;Tu.ContextConsumer=h,Tu.ContextProvider=v,Tu.Element=b,Tu.ForwardRef=y,Tu.Fragment=w,Tu.Lazy=x,Tu.Memo=S,Tu.Portal=C,Tu.Profiler=k,Tu.StrictMode=O,Tu.Suspense=I,Tu.SuspenseList=E,Tu.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Tu.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Tu.isContextConsumer=function(e){return g(e)===l},Tu.isContextProvider=function(e){return g(e)===i},Tu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Tu.isForwardRef=function(e){return g(e)===c},Tu.isFragment=function(e){return g(e)===r},Tu.isLazy=function(e){return g(e)===f},Tu.isMemo=function(e){return g(e)===p},Tu.isPortal=function(e){return g(e)===n},Tu.isProfiler=function(e){return g(e)===a},Tu.isStrictMode=function(e){return g(e)===o},Tu.isSuspense=function(e){return g(e)===u},Tu.isSuspenseList=function(e){return g(e)===d},Tu.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Tu.typeOf=g}()),Tu);var Mu=zu.exports;const Au=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Vu(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(Au);return t&&t[1]||""}(e)||t}function _u(e,t,n){const r=Vu(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const Lu=["ownerState"],Fu=["variants"],ju=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Hu=gu(),Wu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Gu({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function qu(e){return e?(t,n)=>n[e]:null}function Uu(e,t){let{ownerState:n}=t,r=ic(t,Lu);const o="function"==typeof e?e(Bi({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Uu(e,Bi({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=ic(o,Fu);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Bi({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Bi({ownerState:n},r,n)):e.style))})),t}return o}function Yu(e={}){const{themeId:t,defaultTheme:n=Hu,rootShouldForwardProp:r=Bu,slotShouldForwardProp:o=Bu}=e,a=e=>pu(Bi({},e,{theme:Gu(Bi({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=qu(Wu(s))}=i,p=ic(i,ju),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,m=u||!1;let g;"production"!==process.env.NODE_ENV&&l&&(g=`${l}-${Wu(s||"Root")}`);let h=Bu;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=ac(e,Bi({shouldForwardProp:h,label:g},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||lc(e)?r=>Uu(e,Bi({},r,{theme:Gu({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...o)=>{let i=b(r);const c=o?o.map(b):[];l&&d&&c.push((e=>{const r=Gu(Bi({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=Uu(n,Bi({},e,{theme:r}))})),d(e,a)})),l&&!f&&c.push((e=>{var r;const o=Gu(Bi({},e,{defaultTheme:n,themeId:t}));return Uu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Bi({},e,{theme:o}))})),m||c.push(a);const u=c.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const p=v(i,...c);if("production"!==process.env.NODE_ENV){let t;l&&(t=`${l}${yc(s||"")}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Vu(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Mu.ForwardRef:return _u(e,e.render,"ForwardRef");case Mu.Memo:return _u(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return v.withConfig&&(y.withConfig=v.withConfig),y}}const Ku=Yu();function Ju(e,t){const n=Bi({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Bi({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=Bi({},a),Object.keys(o).forEach((e=>{n[r][e]=Ju(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Xu(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Ju(t.components[n].defaultProps,r):r}function Qu({props:e,name:t,defaultTheme:n,themeId:r}){let o=bu(n);r&&(o=o[r]||o);return Xu({theme:o,name:t,props:e})}const Zu="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function ed(e){if(e.type)return e;if("#"===e.charAt(0))return ed(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ji(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ji(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const td=e=>{const t=ed(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function nd(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function rd(e,t,n,r,o){const a=e[t],i=o||t;if(null==a||"undefined"==typeof window)return null;let l;const s=a.type;return"function"!=typeof s||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(s)||(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const od=nd(Za.element,rd);od.isRequired=nd(Za.element.isRequired,rd);const ad="exact-prop: ";function id(e){return"production"===process.env.NODE_ENV?e:Bi({},e,{[ad]:t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}function ld(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const a=e[t],i=o||t;return null==a?null:a&&1!==a.nodeType?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const sd=Za.oneOfType([Za.func,Za.object]);function cd(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ud(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}function dd(e){return e&&e.ownerDocument||document}function pd(e){return dd(e).defaultView||window}function fd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let md=0;const gd=n["useId".toString()];function hd(e){if(void 0!==gd){const t=gd();return null!=e?e:t}return function(e){const[t,r]=n.useState(e),o=e||t;return n.useEffect((()=>{null==t&&(md+=1,r(`mui-${md}`))}),[t]),o}(e)}function vd({controlled:e,default:t,name:r,state:o="value"}){const{current:a}=n.useRef(void 0!==e),[i,l]=n.useState(t),s=a?e:i;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{a!==(void 0!==e)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${o} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,r,e]);const{current:i}=n.useRef(t);n.useEffect((()=>{a||Object.is(i,t)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[s,n.useCallback((e=>{a||l(e)}),[])]}function bd(e){const t=n.useRef(e);return Zu((()=>{t.current=e})),n.useRef(((...e)=>(0,t.current)(...e))).current}function yd(...e){return n.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{fd(e,t)}))}),e)}class wd{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wd}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let xd=!0,Sd=!1;const Cd=new wd,kd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Od(e){e.metaKey||e.altKey||e.ctrlKey||(xd=!0)}function Id(){xd=!1}function Ed(){"hidden"===this.visibilityState&&Sd&&(xd=!0)}function Pd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return xd||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!kd[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Nd(){const e=n.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Od,!0),t.addEventListener("mousedown",Id,!0),t.addEventListener("pointerdown",Id,!0),t.addEventListener("touchstart",Id,!0),t.addEventListener("visibilitychange",Ed,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Pd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Sd=!0,Cd.start(100,(()=>{Sd=!1})),t.current=!1,!0)},ref:e}}const $d=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function zd(e,t,n,r){const o=e[t];if(null==o||!$d(o)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Rd(e,t,...n){return void 0===e[t]?null:zd(e,t,...n)}function Dd(){return null}Rd.isRequired=zd,Dd.isRequired=Dd;var Td="production"===process.env.NODE_ENV?Dd:Rd;function Md(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Ad=n.createContext(null);function Vd(){const e=n.useContext(Ad);return"production"!==process.env.NODE_ENV&&n.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(Ad.displayName="ThemeContext");var _d="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ld(t){const{children:r,theme:o}=t,a=Vd();"production"!==process.env.NODE_ENV&&null===a&&"function"==typeof o&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=n.useMemo((()=>{const e=null===a?o:function(e,t){if("function"==typeof t){const n=t(e);return"production"!==process.env.NODE_ENV&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),n}return Bi({},e,t)}(a,o);return null!=e&&(e[_d]=null!==a),e}),[o,a]);return e(Ad.Provider,{value:i,children:r})}"production"!==process.env.NODE_ENV&&(Ld.propTypes={children:Za.node,theme:Za.oneOfType([Za.object,Za.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Ld.propTypes=id(Ld.propTypes));const Fd=["value"],jd=n.createContext();function Bd(t){let{value:n}=t,r=ic(t,Fd);return e(jd.Provider,Bi({value:null==n||n},r))}"production"!==process.env.NODE_ENV&&(Bd.propTypes={children:Za.node,value:Za.bool});const Hd=n.createContext(void 0);function Wd({value:t,children:n}){return e(Hd.Provider,{value:t,children:n})}"production"!==process.env.NODE_ENV&&(Wd.propTypes={children:Za.node,value:Za.object});const Gd={};function qd(e,t,r,o=!1){return n.useMemo((()=>{const n=e&&t[e]||t;if("function"==typeof r){const a=r(n),i=e?Bi({},t,{[e]:a}):a;return o?()=>i:i}return Bi({},t,e?{[e]:r}:r)}),[e,t,r,o])}function Ud(t){const{children:n,theme:r,themeId:o}=t,a=hu(Gd),i=Vd()||Gd;"production"!==process.env.NODE_ENV&&(null===a&&"function"==typeof r||o&&a&&!a[o]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const l=qd(o,a,r),s=qd(o,i,r,!0),c="rtl"===l.direction;return e(Ld,{theme:s,children:e(Ms.Provider,{value:l,children:e(Bd,{value:c,children:e(Wd,{value:null==l?void 0:l.components,children:n})})})})}"production"!==process.env.NODE_ENV&&(Ud.propTypes={children:Za.node,theme:Za.oneOfType([Za.func,Za.object]).isRequired,themeId:Za.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Ud.propTypes=id(Ud.propTypes));const Yd="mode",Kd="color-scheme",Jd="data-color-scheme";function Xd(e){if("undefined"!=typeof window&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function Qd(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function Zd(e,t){if("undefined"==typeof window)return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch(e){}return n||t}function ep(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:o,supportedColorSchemes:a=[],modeStorageKey:i=Yd,colorSchemeStorageKey:l=Kd,storageWindow:s=("undefined"==typeof window?void 0:window)}=e,c=a.join(","),[u,d]=n.useState((()=>{const e=Zd(i,t),n=Zd(`${l}-light`,r),a=Zd(`${l}-dark`,o);return{mode:e,systemMode:Xd(e),lightColorScheme:n,darkColorScheme:a}})),p=function(e){return Qd(e,(t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0))}(u),f=n.useCallback((e=>{d((n=>{if(e===n.mode)return n;const r=null!=e?e:t;try{localStorage.setItem(i,r)}catch(e){}return Bi({},n,{mode:r,systemMode:Xd(r)})}))}),[i,t]),m=n.useCallback((e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d((t=>{const n=Bi({},t);return Qd(t,(t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)})),n})):d((t=>{const n=Bi({},t),a=null===e.light?r:e.light,i=null===e.dark?o:e.dark;if(a)if(c.includes(a)){n.lightColorScheme=a;try{localStorage.setItem(`${l}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`);if(i)if(c.includes(i)){n.darkColorScheme=i;try{localStorage.setItem(`${l}-dark`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`);return n})):d((e=>{try{localStorage.setItem(`${l}-light`,r),localStorage.setItem(`${l}-dark`,o)}catch(e){}return Bi({},e,{lightColorScheme:r,darkColorScheme:o})}))}),[c,l,r,o]),g=n.useCallback((e=>{"system"===u.mode&&d((t=>{const n=null!=e&&e.matches?"dark":"light";return t.systemMode===n?t:Bi({},t,{systemMode:n})}))}),[u.mode]),h=n.useRef(g);return h.current=g,n.useEffect((()=>{const e=(...e)=>h.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}}),[]),n.useEffect((()=>{if(s){const e=e=>{const n=e.newValue;"string"!=typeof e.key||!e.key.startsWith(l)||n&&!c.match(n)||(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key!==i||n&&!["light","dark","system"].includes(n)||f(n||t)};return s.addEventListener("storage",e),()=>{s.removeEventListener("storage",e)}}}),[m,f,i,l,c,t,s]),Bi({},u,{colorScheme:p,setMode:f,setColorScheme:m})}const tp=["colorSchemes","components","generateCssVars","cssVarPrefix"];function np(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const rp=(e,t,n,r=[])=>{let o=e;t.forEach(((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))},op=(e,t,n)=>{!function e(r,o=[],a=[]){Object.entries(r).forEach((([r,i])=>{(!n||n&&!n([...o,r]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,r],Array.isArray(i)?[...a,r]:a):t([...o,r],i,a))}))}(e)},ap=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t))))return t;return e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function ip(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return op(e,((e,t,l)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:ap(e,t)}),rp(a,e,`var(${r})`,l),rp(i,e,`var(${r}, ${t})`,l)}}),(e=>"vars"===e[0])),{css:o,vars:a,varsWithDefaults:i}}function lp(e){return lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lp(e)}function sp(e){var t=function(e,t){if("object"!=lp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=lp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==lp(t)?t:t+""}const cp=["colorSchemes","components","defaultColorScheme"];const up=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,a=Object.keys(t),o.filter((e=>a.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const a=t[o];void 0!==a&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),a)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,a};function dp(e){return e?`Level${e}`:""}function pp(e){return e.unstable_level>0&&e.container}function fp(e){return function(t){return`var(--Grid-${t}Spacing${dp(e.unstable_level)})`}}function mp(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${dp(e.unstable_level-1)})`}}function gp(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${dp(e.unstable_level-1)})`}const hp=({theme:e,ownerState:t})=>{const n=fp(t),r={};return up(e.breakpoints,t.gridSize,((e,o)=>{let a={};!0===o&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===o&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof o&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / ${gp(t)}${pp(t)?` + ${n("column")}`:""})`}),e(r,a)})),r},vp=({theme:e,ownerState:t})=>{const n={};return up(e.breakpoints,t.gridOffset,((e,r)=>{let o={};"auto"===r&&(o={marginLeft:"auto"}),"number"==typeof r&&(o={marginLeft:0===r?"0px":`calc(100% * ${r} / ${gp(t)})`}),e(n,o)})),n},bp=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=pp(t)?{[`--Grid-columns${dp(t.unstable_level)}`]:gp(t)}:{"--Grid-columns":12};return up(e.breakpoints,t.columns,((e,r)=>{e(n,{[`--Grid-columns${dp(t.unstable_level)}`]:r})})),n},yp=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=mp(t),r=pp(t)?{[`--Grid-rowSpacing${dp(t.unstable_level)}`]:n("row")}:{};return up(e.breakpoints,t.rowSpacing,((n,o)=>{var a;n(r,{[`--Grid-rowSpacing${dp(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},wp=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=mp(t),r=pp(t)?{[`--Grid-columnSpacing${dp(t.unstable_level)}`]:n("column")}:{};return up(e.breakpoints,t.columnSpacing,((n,o)=>{var a;n(r,{[`--Grid-columnSpacing${dp(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},xp=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return up(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},Sp=({ownerState:e})=>{const t=fp(e),n=mp(e);return Bi({minWidth:0,boxSizing:"border-box"},e.container&&Bi({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||pp(e))&&Bi({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},Cp=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},kp=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},Op=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`],Ip=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ep=gu(),Pp=Ku("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Np(e){return Qu({props:e,name:"MuiGrid",defaultTheme:Ep})}const $p=Bi({},du,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function zp(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}const Rp=(e,t)=>Pu(e,t,"Mui"),Dp=(e,t)=>Nu(e,t,"Mui"),Tp=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},Mp=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach((([t,o])=>{if(t.match(new RegExp(`${e}(color|bg|border)`,"i"))&&o){const e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),Tp(r,t,e)}})),r},Ap=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach((t=>{const[a,i]=t;(e=>e&&"object"==typeof e&&Object.keys(e).some((e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)})))(i)&&"object"==typeof i&&(n=Bi({},n,{[a]:Mp(e,i,(e=>`var(--variant-${e}, ${r(`palette-${a}-${e}`,o[a][e])})`))}))}))}return n.context=Mp(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},Vp=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],_p=["colorSchemes"];function Lp(e){var t,n,r,o,a,i,l,s,c,u;const d=e||{},{cssVarPrefix:p="joy",breakpoints:f,spacing:m,components:g,variants:h,shouldSkipGeneratingVar:v=zp}=d,b=ic(d,Vp),y=((e="joy")=>np(e))(p),w={primary:Li.blue,neutral:Li.grey,danger:Li.red,success:Li.green,warning:Li.yellow,common:{white:"#FFF",black:"#000"}},x=e=>{var t;const n=e.split("-"),r=n[1],o=n[2];return y(e,null==(t=w[r])?void 0:t[o])},S=e=>({plainColor:x(`palette-${e}-500`),plainHoverBg:x(`palette-${e}-100`),plainActiveBg:x(`palette-${e}-200`),plainDisabledColor:x("palette-neutral-400"),outlinedColor:x(`palette-${e}-500`),outlinedBorder:x(`palette-${e}-300`),outlinedHoverBg:x(`palette-${e}-100`),outlinedActiveBg:x(`palette-${e}-200`),outlinedDisabledColor:x("palette-neutral-400"),outlinedDisabledBorder:x("palette-neutral-200"),softColor:x(`palette-${e}-700`),softBg:x(`palette-${e}-100`),softHoverBg:x(`palette-${e}-200`),softActiveColor:x(`palette-${e}-800`),softActiveBg:x(`palette-${e}-300`),softDisabledColor:x("palette-neutral-400"),softDisabledBg:x("palette-neutral-50"),solidColor:x("palette-common-white"),solidBg:x(`palette-${e}-500`),solidHoverBg:x(`palette-${e}-600`),solidActiveBg:x(`palette-${e}-700`),solidDisabledColor:x("palette-neutral-400"),solidDisabledBg:x("palette-neutral-100")}),C=e=>({plainColor:x(`palette-${e}-300`),plainHoverBg:x(`palette-${e}-800`),plainActiveBg:x(`palette-${e}-700`),plainDisabledColor:x("palette-neutral-500"),outlinedColor:x(`palette-${e}-200`),outlinedBorder:x(`palette-${e}-700`),outlinedHoverBg:x(`palette-${e}-800`),outlinedActiveBg:x(`palette-${e}-700`),outlinedDisabledColor:x("palette-neutral-500"),outlinedDisabledBorder:x("palette-neutral-800"),softColor:x(`palette-${e}-200`),softBg:x(`palette-${e}-800`),softHoverBg:x(`palette-${e}-700`),softActiveColor:x(`palette-${e}-100`),softActiveBg:x(`palette-${e}-600`),softDisabledColor:x("palette-neutral-500"),softDisabledBg:x("palette-neutral-800"),solidColor:x("palette-common-white"),solidBg:x(`palette-${e}-500`),solidHoverBg:x(`palette-${e}-600`),solidActiveBg:x(`palette-${e}-700`),solidDisabledColor:x("palette-neutral-500"),solidDisabledBg:x("palette-neutral-800")}),k={palette:{mode:"light",primary:Bi({},w.primary,S("primary")),neutral:Bi({},w.neutral,S("neutral"),{plainColor:x("palette-neutral-700"),plainHoverColor:x("palette-neutral-900"),outlinedColor:x("palette-neutral-700")}),danger:Bi({},w.danger,S("danger")),success:Bi({},w.success,S("success")),warning:Bi({},w.warning,S("warning")),common:{white:"#FFF",black:"#000"},text:{primary:x("palette-neutral-800"),secondary:x("palette-neutral-700"),tertiary:x("palette-neutral-600"),icon:x("palette-neutral-500")},background:{body:x("palette-common-white"),surface:x("palette-neutral-50"),popup:x("palette-common-white"),level1:x("palette-neutral-100"),level2:x("palette-neutral-200"),level3:x("palette-neutral-300"),tooltip:x("palette-neutral-500"),backdrop:`rgba(${y("palette-neutral-darkChannel",td(w.neutral[900]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",td(w.neutral[500]))} / 0.2)`,focusVisible:x("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},O={palette:{mode:"dark",primary:Bi({},w.primary,C("primary")),neutral:Bi({},w.neutral,C("neutral"),{plainColor:x("palette-neutral-300"),plainHoverColor:x("palette-neutral-300")}),danger:Bi({},w.danger,C("danger")),success:Bi({},w.success,C("success")),warning:Bi({},w.warning,C("warning")),common:{white:"#FFF",black:"#000"},text:{primary:x("palette-neutral-100"),secondary:x("palette-neutral-300"),tertiary:x("palette-neutral-400"),icon:x("palette-neutral-400")},background:{body:x("palette-common-black"),surface:x("palette-neutral-900"),popup:x("palette-common-black"),level1:x("palette-neutral-800"),level2:x("palette-neutral-700"),level3:x("palette-neutral-600"),tooltip:x("palette-neutral-600"),backdrop:`rgba(${y("palette-neutral-darkChannel",td(w.neutral[50]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",td(w.neutral[500]))} / 0.16)`,focusVisible:x("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},I='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',E=Bi({body:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,display:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:I},b.fontFamily),P=Bi({sm:300,md:500,lg:600,xl:700},b.fontWeight),N=Bi({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},b.fontSize),$=Bi({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},b.lineHeight),z=null!=(t=null==(n=b.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:k.shadowRing,R=null!=(r=null==(o=b.colorSchemes)||null==(o=o.light)?void 0:o.shadowChannel)?r:k.shadowChannel,D=null!=(a=null==(i=b.colorSchemes)||null==(i=i.light)?void 0:i.shadowOpacity)?a:k.shadowOpacity,T={colorSchemes:{light:k,dark:O},fontSize:N,fontFamily:E,fontWeight:P,focus:{thickness:"2px",selector:`&.${Rp("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${y("focus-thickness",null!=(l=null==(s=b.focus)?void 0:s.thickness)?l:"2px")})`,outline:`${y("focus-thickness",null!=(c=null==(u=b.focus)?void 0:u.thickness)?c:"2px")} solid ${y("palette-focusVisible",w.primary[500])}`}},lineHeight:$,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,sm:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 2px 4px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,md:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 6px 12px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,lg:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 12px 16px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,xl:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 20px 24px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl4, ${N.xl4}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h2:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl3, ${N.xl3}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h3:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl2, ${N.xl2}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h4:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl, ${N.xl}`),lineHeight:y(`lineHeight-md, ${$.md}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-sm, ${$.sm}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"body-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)},"body-xs":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-xs, ${N.xs}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)}}},M=b?cc(T,b):T,{colorSchemes:A}=M,V=ic(M,_p),_=Bi({colorSchemes:A},V,{breakpoints:pc(null!=f?f:{}),components:cc({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;const r=e.instanceFontSize;return Bi({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&Bi({color:`var(--Icon-color, ${_.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`}),r&&"inherit"!==r&&{"--Icon-fontSize":t.vars.fontSize[r]})}}}},g),cssVarPrefix:p,getCssVar:y,spacing:Vc(m)});Object.entries(_.colorSchemes).forEach((([e,t])=>{!function(e,t){Object.keys(t).forEach((n=>{const r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=td(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=td(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=td(t[n][r.dark]))}))}(e,t.palette)}));const L={prefix:p,shouldSkipGeneratingVar:v},{vars:F,generateCssVars:j}=function(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=ic(e,cp),{vars:a,css:i,varsWithDefaults:l}=ip(o,t);let s=l;const c={},{[r]:u}=n,d=ic(n,[r].map(sp));if(Object.entries(d||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=ip(n,t);s=cc(s,a),c[e]={css:o,vars:r}})),u){const{css:e,vars:n,varsWithDefaults:o}=ip(u,t);s=cc(s,o),c[r]={css:e,vars:n}}return{vars:s,generateCssVars:e=>{var n;if(!e){var r;const n=Bi({},i);return{css:n,vars:a,selector:(null==t||null==(r=t.getSelector)?void 0:r.call(t,e,n))||":root"}}const o=Bi({},c[e].css);return{css:o,vars:c[e].vars,selector:(null==t||null==(n=t.getSelector)?void 0:n.call(t,e,o))||":root"}}}}(Bi({colorSchemes:A},V),L);_.vars=F,_.generateCssVars=j,_.unstable_sxConfig=Bi({},$p,null==e?void 0:e.unstable_sxConfig),_.unstable_sx=function(e){return pu({sx:e,theme:this})},_.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;const B={getCssVar:y,palette:_.colorSchemes.light.palette};return _.variants=cc({plain:Ap("plain",B),plainHover:Ap("plainHover",B),plainActive:Ap("plainActive",B),plainDisabled:Ap("plainDisabled",B),outlined:Ap("outlined",B),outlinedHover:Ap("outlinedHover",B),outlinedActive:Ap("outlinedActive",B),outlinedDisabled:Ap("outlinedDisabled",B),soft:Ap("soft",B),softHover:Ap("softHover",B),softActive:Ap("softActive",B),softDisabled:Ap("softDisabled",B),solid:Ap("solid",B),solidHover:Ap("solidHover",B),solidActive:Ap("solidActive",B),solidDisabled:Ap("solidDisabled",B)},h),_.palette=Bi({},_.colorSchemes.light.palette,{colorScheme:"light"}),_.shouldSkipGeneratingVar=v,_.applyStyles=fu,_}const Fp=Lp(),jp="data-joy-color-scheme",Bp="joy-color-scheme",Hp="light",Wp="dark",Gp="joy-mode",{CssVarsProvider:qp,useColorScheme:Up,getInitColorSchemeScript:Yp}=function(r){const{themeId:o,theme:a={},attribute:i=Jd,modeStorageKey:l=Yd,colorSchemeStorageKey:s=Kd,defaultMode:c="light",defaultColorScheme:u,disableTransitionOnChange:d=!1,resolveTheme:p,excludeVariablesFromRoot:f}=r;(!a.colorSchemes||"string"==typeof u&&!a.colorSchemes[u]||"object"==typeof u&&!a.colorSchemes[null==u?void 0:u.light]||"object"==typeof u&&!a.colorSchemes[null==u?void 0:u.dark])&&console.error(`MUI: \`${u}\` does not exist in \`theme.colorSchemes\`.`);const m=n.createContext(void 0);function g(r){const{children:g,theme:h=a,modeStorageKey:v=l,colorSchemeStorageKey:b=s,attribute:y=i,defaultMode:w=c,defaultColorScheme:x=u,disableTransitionOnChange:S=d,storageWindow:C=("undefined"==typeof window?void 0:window),documentNode:k=("undefined"==typeof document?void 0:document),colorSchemeNode:O=("undefined"==typeof document?void 0:document.documentElement),colorSchemeSelector:I=":root",disableNestedContext:E=!1,disableStyleSheetGeneration:P=!1}=r,N=n.useRef(!1),$=Vd(),z=n.useContext(m),R=!!z&&!E,D=h[o],T=D||h,{colorSchemes:M={},components:A={},generateCssVars:V=(()=>({vars:{},css:{}})),cssVarPrefix:_}=T,L=ic(T,tp),F=Object.keys(M),j="string"==typeof x?x:x.light,B="string"==typeof x?x:x.dark,{mode:H,setMode:W,systemMode:G,lightColorScheme:q,darkColorScheme:U,colorScheme:Y,setColorScheme:K}=ep({supportedColorSchemes:F,defaultLightColorScheme:j,defaultDarkColorScheme:B,modeStorageKey:v,colorSchemeStorageKey:b,defaultMode:w,storageWindow:C});let J=H,X=Y;R&&(J=z.mode,X=z.colorScheme);const Q=X||("dark"===(J||("system"===w?c:w))?B:j),{css:Z,vars:ee}=V(),te=Bi({},L,{components:A,colorSchemes:M,cssVarPrefix:_,vars:ee,getColorSchemeSelector:e=>`[${y}="${e}"] &`}),ne={},re={};Object.entries(M).forEach((([e,t])=>{const{css:n,vars:r}=V(e);te.vars=cc(te.vars,r),e===Q&&(Object.keys(t).forEach((e=>{t[e]&&"object"==typeof t[e]?te[e]=Bi({},te[e],t[e]):te[e]=t[e]})),te.palette&&(te.palette.colorScheme=e));if(e===("string"==typeof x?x:"dark"===w?x.dark:x.light)){if(f){const t={};f(_).forEach((e=>{t[e]=n[e],delete n[e]})),ne[`[${y}="${e}"]`]=t}ne[`${I}, [${y}="${e}"]`]=n}else re[`${":root"===I?"":I}[${y}="${e}"]`]=n})),te.vars=cc(te.vars,ee),n.useEffect((()=>{X&&O&&O.setAttribute(y,X)}),[X,y,O]),n.useEffect((()=>{let e;if(S&&N.current&&k){const t=k.createElement("style");t.appendChild(k.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),k.head.appendChild(t),window.getComputedStyle(k.body),e=setTimeout((()=>{k.head.removeChild(t)}),1)}return()=>{clearTimeout(e)}}),[X,S,k]),n.useEffect((()=>(N.current=!0,()=>{N.current=!1})),[]);const oe=n.useMemo((()=>({allColorSchemes:F,colorScheme:X,darkColorScheme:U,lightColorScheme:q,mode:J,setColorScheme:K,setMode:W,systemMode:G})),[F,X,U,q,J,K,W,G]);let ae=!0;(P||R&&(null==$?void 0:$.cssVarPrefix)===_)&&(ae=!1);const ie=t(n.Fragment,{children:[ae&&t(n.Fragment,{children:[e(oc,{styles:{[I]:Z}}),e(oc,{styles:ne}),e(oc,{styles:re})]}),e(Ud,{themeId:D?o:void 0,theme:p?p(te):te,children:g})]});return R?ie:e(m.Provider,{value:oe,children:ie})}"production"!==process.env.NODE_ENV&&(m.displayName="ColorSchemeContext"),"production"!==process.env.NODE_ENV&&(g.propTypes={attribute:Za.string,children:Za.node,colorSchemeNode:Za.any,colorSchemeSelector:Za.string,colorSchemeStorageKey:Za.string,defaultColorScheme:Za.oneOfType([Za.string,Za.object]),defaultMode:Za.string,disableNestedContext:Za.bool,disableStyleSheetGeneration:Za.bool,disableTransitionOnChange:Za.bool,documentNode:Za.any,modeStorageKey:Za.string,storageWindow:Za.any,theme:Za.object});const h="string"==typeof u?u:u.light,v="string"==typeof u?u:u.dark;return{CssVarsProvider:g,useColorScheme:()=>{const e=n.useContext(m);if(!e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `useColorScheme` must be called under <CssVarsProvider />":ji(19));return e},getInitColorSchemeScript:t=>function(t){const{defaultMode:n="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:a=Yd,colorSchemeStorageKey:i=Kd,attribute:l=Jd,colorSchemeNode:s="document.documentElement",nonce:c}=t||{};return e("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n var mode = localStorage.getItem('${a}') || '${n}';\n var colorScheme = '';\n if (mode === 'system') {\n // handle system mode\n var mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n } else {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n }\n if (mode === 'light') {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n if (mode === 'dark') {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n }\n if (colorScheme) {\n ${s}.setAttribute('${l}', colorScheme);\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}(Bi({attribute:i,colorSchemeStorageKey:s,defaultMode:c,defaultLightColorScheme:h,defaultDarkColorScheme:v,modeStorageKey:l},t))}}({themeId:Fi,theme:Fp,attribute:jp,modeStorageKey:Gp,colorSchemeStorageKey:Bp,defaultColorScheme:{light:Hp,dark:Wp}}),Kp=Yu({defaultTheme:Fp,themeId:Fi});function Jp({props:e,name:t}){return Qu({props:e,name:t,defaultTheme:Bi({},Fp,{components:{}}),themeId:Fi})}function Xp(e,t,n){return void 0===e||"string"==typeof e?t:Bi({},t,{ownerState:Bi({},t.ownerState,n)})}function Qp(e,t,n=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}const Zp={disableDefaultClasses:!1},ef=n.createContext(Zp);function tf(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function nf(e,t,n){return"function"==typeof e?e(t,n):e}function rf(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function of(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Ou(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=Bi({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=Bi({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=tf(Bi({},o,r)),l=rf(r),s=rf(o),c=t(i),u=Ou(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=Bi({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Bi({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}"production"!==process.env.NODE_ENV&&(ef.displayName="ClassNameConfiguratorContext");const af=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function lf(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=ic(e,af),l=a?{}:nf(r,o),{props:s,internalRef:c}=of(Bi({},i,{externalSlotProps:l}));return Xp(n,Bi({},s,{ref:yd(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const sf="base";function cf(e,t){const n=Eu[t];return n?`${sf}--${n}`:function(e,t){return`${sf}-${e}-${t}`}(e,t)}function uf(e={}){const{disabled:t=!1,focusableWhenDisabled:r,href:o,rootRef:a,tabIndex:i,to:l,type:s,rootElementName:c}=e,u=n.useRef(),[d,p]=n.useState(!1),{isFocusVisibleRef:f,onFocus:m,onBlur:g,ref:h}=Nd(),[v,b]=n.useState(!1);t&&!r&&v&&b(!1),n.useEffect((()=>{f.current=v}),[v,f]);const[y,w]=function(e){const{rootElementName:t="",componentName:r}=e,[o,a]=n.useState(t.toUpperCase());"production"!==process.env.NODE_ENV&&n.useEffect((()=>{t&&o!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${r?`the ${r} component`:"a component"} expected the '${t}' element, but a '${o.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app")}),[t,o,r]);const i=n.useCallback((e=>{var t;a(null!=(t=null==e?void 0:e.tagName)?t:"")}),[]);return[o,i]}({rootElementName:null!=c?c:o||l?"a":void 0,componentName:"Button"}),x=e=>t=>{var n;v&&t.preventDefault(),null==(n=e.onMouseLeave)||n.call(e,t)},S=e=>t=>{var n,r;(u.current||(u.current=t.currentTarget),m(t),!0===f.current)&&(b(!0),null==(r=e.onFocusVisible)||r.call(e,t));null==(n=e.onFocus)||n.call(e,t)},C=()=>{const e=u.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},k=e=>n=>{var r;t||(null==(r=e.onClick)||r.call(e,n))},O=e=>n=>{var r;t||(p(!0),document.addEventListener("mouseup",(()=>{p(!1)}),{once:!0})),null==(r=e.onMouseDown)||r.call(e,n)},I=e=>n=>{var r,o;(null==(r=e.onKeyDown)||r.call(e,n),n.defaultMuiPrevented)||(n.target!==n.currentTarget||C()||" "!==n.key||n.preventDefault(),n.target!==n.currentTarget||" "!==n.key||t||p(!0),n.target!==n.currentTarget||C()||"Enter"!==n.key||t||(null==(o=e.onClick)||o.call(e,n),n.preventDefault()))},E=e=>n=>{var r,o;(n.target===n.currentTarget&&p(!1),null==(r=e.onKeyUp)||r.call(e,n),n.target!==n.currentTarget||C()||t||" "!==n.key||n.defaultMuiPrevented)||(null==(o=e.onClick)||o.call(e,n))},P=yd(w,a,h,u),N={};void 0!==i&&(N.tabIndex=i),"BUTTON"===y?(N.type=null!=s?s:"button",r?N["aria-disabled"]=t:N.disabled=t):"INPUT"===y?s&&["button","submit","reset"].includes(s)&&(r?N["aria-disabled"]=t:N.disabled=t):""!==y&&(o||l||(N.role="button",N.tabIndex=null!=i?i:0),t&&(N["aria-disabled"]=t,N.tabIndex=r?null!=i?i:0:-1));return{getRootProps:(t={})=>{const n=Bi({},tf(e),tf(t)),r=Bi({type:s},n,N,t,{onBlur:(o=n,e=>{var t;g(e),!1===f.current&&b(!1),null==(t=o.onBlur)||t.call(o,e)}),onClick:k(n),onFocus:S(n),onKeyDown:I(n),onKeyUp:E(n),onMouseDown:O(n),onMouseLeave:x(n),ref:P});var o;return delete r.onFocusVisible,r},focusVisible:v,setFocusVisible:b,active:d,rootRef:P}}const df=n.createContext(null);function pf(e,t){return e===t}"production"!==process.env.NODE_ENV&&(df.displayName="DropdownContext");const ff={},mf=()=>{};function gf(e,t){const n=Bi({},e);return Object.keys(t).forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n}function hf(e){const t=n.useRef(null),{reducer:r,initialState:o,controlledProps:a=ff,stateComparers:i=ff,onStateChange:l=mf,actionContext:s,componentName:c=""}=e,u=n.useRef(a);"production"!==process.env.NODE_ENV&&n.useEffect((()=>{Object.keys(a).forEach((e=>{void 0!==u.current[e]&&void 0===a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing a controlled prop to be uncontrolled: ${e}`),void 0===u.current[e]&&void 0!==a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing an uncontrolled prop to be controlled: ${e}`)}))}),[a,c]);const d=n.useCallback(((e,n)=>{t.current=n;const o=gf(e,a);return r(o,n)}),[a,r]),[p,f]=n.useReducer(d,o),m=n.useCallback((e=>{f(Bi({},e,{context:s}))}),[s]);return function(e){const{nextState:t,initialState:r,stateComparers:o,onStateChange:a,controlledProps:i,lastActionRef:l}=e,s=n.useRef(r);n.useEffect((()=>{if(null===l.current)return;const e=gf(s.current,i);Object.keys(t).forEach((n=>{var r;const i=null!=(r=o[n])?r:pf,s=t[n],c=e[n];var u,d;(null==c&&null!=s||null!=c&&null==s||null!=c&&null!=s&&!i(s,c))&&(null==a||a(null!=(u=l.current.event)?u:null,n,s,null!=(d=l.current.type)?d:"",t))})),s.current=t,l.current=null}),[s,t,l,a,o,i])}({nextState:p,initialState:o,stateComparers:null!=i?i:ff,onStateChange:null!=l?l:mf,controlledProps:a,lastActionRef:t}),[gf(p,a),m]}const vf={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"};function bf(e,t){switch(t.type){case vf.blur:case vf.escapeKeyDown:return{open:!1,changeReason:t.event};case vf.toggle:return{open:!e.open,changeReason:t.event};case vf.open:return{open:!0,changeReason:t.event};case vf.close:return{open:!1,changeReason:t.event};default:throw new Error("Unhandled action")}}function yf(t){const{children:r,open:o,defaultOpen:a,onOpenChange:i}=t,{contextValue:l}=function(e={}){const{defaultOpen:t,onOpenChange:r,open:o,componentName:a="useDropdown"}=e,[i,l]=n.useState(""),[s,c]=n.useState(null),u=n.useRef(null),d=n.useCallback(((e,t,n,o)=>{"open"===t&&(null==r||r(e,n)),u.current=o}),[r]),p=n.useMemo((()=>void 0!==o?{open:o}:{}),[o]),[f,m]=hf({controlledProps:p,initialState:t?{open:!0,changeReason:null}:{open:!1,changeReason:null},onStateChange:d,reducer:bf,componentName:a});return n.useEffect((()=>{f.open||null===u.current||u.current===vf.blur||null==s||s.focus()}),[f.open,s]),{contextValue:{state:f,dispatch:m,popupId:i,registerPopup:l,registerTrigger:c,triggerElement:s},open:f.open}}({defaultOpen:a,onOpenChange:i,open:o});return e(df.Provider,{value:l,children:r})}"production"!==process.env.NODE_ENV&&(yf.propTypes={children:Za.node,defaultOpen:Za.bool,onOpenChange:Za.func,open:Za.bool}),"production"!==process.env.NODE_ENV&&(yf.propTypes=id(yf.propTypes));const wf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xf(e){const t=[],n=[];return Array.from(e.querySelectorAll(wf)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Sf(){return!0}function Cf(r){const{children:o,disableAutoFocus:a=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=xf,isEnabled:c=Sf,open:u}=r,d=n.useRef(!1),p=n.useRef(null),f=n.useRef(null),m=n.useRef(null),g=n.useRef(null),h=n.useRef(!1),v=n.useRef(null),b=yd(o.ref,v),y=n.useRef(null);n.useEffect((()=>{u&&v.current&&(h.current=!a)}),[a,u]),n.useEffect((()=>{if(!u||!v.current)return;const e=dd(v.current);return v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),v.current.setAttribute("tabIndex","-1")),h.current&&v.current.focus()),()=>{l||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}}),[u]),n.useEffect((()=>{if(!u||!v.current)return;const e=dd(v.current),t=t=>{y.current=t,!i&&c()&&"Tab"===t.key&&e.activeElement===v.current&&t.shiftKey&&(d.current=!0,f.current&&f.current.focus())},n=()=>{const t=v.current;if(null===t)return;if(!e.hasFocus()||!c()||d.current)return void(d.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==p.current&&e.activeElement!==f.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!h.current)return;let n=[];if(e.activeElement!==p.current&&e.activeElement!==f.current||(n=s(v.current)),n.length>0){var r,o;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=n[0],a=n[n.length-1];"string"!=typeof t&&"string"!=typeof a&&(e?a.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[a,i,l,c,u,s]);const w=e=>{null===m.current&&(m.current=e.relatedTarget),h.current=!0};return t(n.Fragment,{children:[e("div",{tabIndex:u?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),n.cloneElement(o,{ref:b,onFocus:e=>{null===m.current&&(m.current=e.relatedTarget),h.current=!0,g.current=e.target;const t=o.props.onFocus;t&&t(e)}}),e("div",{tabIndex:u?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(Cf.propTypes={children:od,disableAutoFocus:Za.bool,disableEnforceFocus:Za.bool,disableRestoreFocus:Za.bool,getTabbable:Za.func,isEnabled:Za.func,open:Za.bool.isRequired}),"production"!==process.env.NODE_ENV&&(Cf.propTypes=id(Cf.propTypes));const kf=n.createContext(void 0);function Of(e={}){const{defaultValue:t,disabled:r=!1,error:o=!1,onBlur:a,onChange:i,onFocus:l,required:s=!1,value:c,inputRef:u}=e,d=n.useContext(kf);let p,f,m,g,h;var v,b,y;if(d){if(p=void 0,f=null!=(v=d.disabled)&&v,m=null!=(b=d.error)&&b,g=null!=(y=d.required)&&y,h=d.value,"production"!==process.env.NODE_ENV){const t=["defaultValue","disabled","error","required","value"].filter((t=>void 0!==e[t]));t.length>0&&console.warn(["MUI: You have set props on an input that is inside a FormControl.","Set these props on a FormControl instead. Otherwise they will be ignored.",`Ignored props: ${t.join(", ")}`].join("\n"))}}else p=t,f=r,m=o,g=s,h=c;const{current:w}=n.useRef(null!=h),x=n.useCallback((e=>{"production"!==process.env.NODE_ENV&&e&&"INPUT"!==e.nodeName&&!e.focus&&console.error(["MUI: You have provided a `slots.input` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join("\n"))}),[]),S=n.useRef(null),C=yd(S,u,x),[k,O]=n.useState(!1);n.useEffect((()=>{!d&&f&&k&&(O(!1),null==a||a())}),[d,f,k,a]);const I=e=>t=>{var n,r;null!=d&&d.disabled?t.stopPropagation():(null==(n=e.onFocus)||n.call(e,t),d&&d.onFocus?null==d||null==(r=d.onFocus)||r.call(d):O(!0))},E=e=>(t,...n)=>{var r,o;if(!w){if(null==(t.target||S.current))throw new Error("production"!==process.env.NODE_ENV?"MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":ji(17))}null==d||null==(r=d.onChange)||r.call(d,t),null==(o=e.onChange)||o.call(e,t,...n)};return{disabled:f,error:m,focused:k,formControlContext:d,getInputProps:(e={})=>{const t=Bi({},{onBlur:a,onChange:i,onFocus:l},tf(e)),n=Bi({},t,{onBlur:(r=t,e=>{var t;null==(t=r.onBlur)||t.call(r,e),d&&d.onBlur?d.onBlur():O(!1)}),onChange:E(t),onFocus:I(t)});var r;return Bi({},n,{"aria-invalid":m||void 0,defaultValue:p,value:h,required:g,disabled:f},e,{ref:C},n)},getRootProps:(t={})=>{const n=Bi({},tf(e,["onBlur","onChange","onFocus"]),tf(t));return Bi({},t,n,{onClick:(r=n,e=>{var t;S.current&&e.currentTarget===e.target&&S.current.focus(),null==(t=r.onClick)||t.call(r,e)})});var r},inputRef:C,required:g,value:h}}"production"!==process.env.NODE_ENV&&(kf.displayName="FormControlContext");const If={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function Ef(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:i,disabledItemsFocusable:l,itemComparer:s,focusManagement:c}=n,u="DOM"===c?0:-1,d=o.length-1,p=null==e?-1:o.findIndex((t=>s(t,e)));let f,m,g=!i;switch(t){case"reset":if(-1===u)return null;f=0,m="next",g=!1;break;case"start":f=0,m="next",g=!1;break;case"end":f=d,m="previous",g=!1;break;default:{const e=p+t;e<0?!g&&-1!==p||Math.abs(t)>1?(f=0,m="next"):(f=d,m="previous"):e>d?!g||Math.abs(t)>1?(f=d,m="previous"):(f=0,m="next"):(f=e,m=t>=0?"next":"previous")}}const h=function(e,t,n,r,o,a){if(0===n.length||!r&&n.every(((e,t)=>o(e,t))))return-1;let i=e;for(;;){if(!a&&"next"===t&&i===n.length||!a&&"previous"===t&&-1===i)return-1;if(r||!o(n[i],i))return i;i+="next"===t?1:-1,a&&(i=(i+n.length)%n.length)}}(f,m,o,l,a,g);return-1!==h||null===e||a(e,p)?null!=(r=o[h])?r:null:e}function Pf(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:i}=n,{selectedValues:l}=t,s=i.findIndex((t=>r(e,t)));if(o(e,s))return t;const c=function(e,t,n,r){return"none"===n?[]:"single"===n?r(t[0],e)?t:[e]:t.some((t=>r(t,e)))?t.filter((t=>!r(t,e))):[...t,e]}(e,l,a,r);return Bi({},t,{selectedValues:c,highlightedValue:e})}function Nf(e,t,n){var r;const o=null==(r=n(e))?void 0:r.trim().toLowerCase();return!(!o||0===o.length)&&0===o.indexOf(t)}function $f(e,t){const{type:n,context:r}=t;switch(n){case If.keyDown:return function(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return Bi({},t,{highlightedValue:Ef(r,"start",n)});case"End":return Bi({},t,{highlightedValue:Ef(r,"end",n)});case"PageUp":return Bi({},t,{highlightedValue:Ef(r,-a,n)});case"PageDown":return Bi({},t,{highlightedValue:Ef(r,a,n)});case"ArrowUp":if("vertical"!==o)break;return Bi({},t,{highlightedValue:Ef(r,-1,n)});case"ArrowDown":if("vertical"!==o)break;return Bi({},t,{highlightedValue:Ef(r,1,n)});case"ArrowLeft":if("vertical"===o)break;return Bi({},t,{highlightedValue:Ef(r,"horizontal-ltr"===o?-1:1,n)});case"ArrowRight":if("vertical"===o)break;return Bi({},t,{highlightedValue:Ef(r,"horizontal-ltr"===o?1:-1,n)});case"Enter":case" ":return null===t.highlightedValue?t:Pf(t.highlightedValue,t,n)}return t}(t.key,e,r);case If.itemClick:return Pf(t.item,e,r);case If.blur:return function(e,t){return"DOM"===t.focusManagement?e:Bi({},e,{highlightedValue:null})}(e,r);case If.textNavigation:return function(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:i}=n,l=t.length>1;let s=l?e.highlightedValue:Ef(e.highlightedValue,1,n);for(let c=0;c<r.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(Nf(s,t,i)&&(!o(s,r.indexOf(s))||a))return Bi({},e,{highlightedValue:s});s=Ef(s,1,n)}return e}(e,t.searchString,r);case If.itemsChange:return function(e,t,n,r){var o;const{itemComparer:a,focusManagement:i}=r;let l=null;var s;null!=n.highlightedValue?l=null!=(s=e.find((e=>a(e,n.highlightedValue))))?s:null:"DOM"===i&&0===t.length&&(l=Ef(null,"reset",r));const c=(null!=(o=n.selectedValues)?o:[]).filter((t=>e.some((e=>a(e,t)))));return Bi({},n,{highlightedValue:l,selectedValues:c})}(t.items,t.previousItems,e,r);case If.resetHighlight:return function(e,t){return Bi({},e,{highlightedValue:Ef(null,"reset",t)})}(e,r);case If.highlightLast:return function(e,t){return Bi({},e,{highlightedValue:Ef(null,"end",t)})}(e,r);case If.clearSelection:return function(e,t){return Bi({},e,{selectedValues:[],highlightedValue:Ef(null,"reset",t)})}(e,r);default:return e}}const zf=500;const Rf={},Df=()=>{},Tf=(e,t)=>e===t,Mf=()=>!1,Af=e=>"string"==typeof e?e:String(e),Vf=()=>({highlightedValue:null,selectedValues:[]});function _f(e){const{controlledProps:t=Rf,disabledItemsFocusable:r=!1,disableListWrap:o=!1,focusManagement:a="activeDescendant",getInitialState:i=Vf,getItemDomElement:l,getItemId:s,isItemDisabled:c=Mf,rootRef:u,onStateChange:d=Df,items:p,itemComparer:f=Tf,getItemAsString:m=Af,onChange:g,onHighlightChange:h,onItemsChange:v,orientation:b="vertical",pageSize:y=5,reducerActionContext:w=Rf,selectionMode:x="single",stateReducer:S,componentName:C="useList"}=e;if("production"!==process.env.NODE_ENV){if("DOM"===a&&null==l)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if("activeDescendant"===a&&null==s)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}const k=n.useRef(null),O=yd(u,k),I=n.useCallback(((e,t,n)=>{var r;(null==h||h(e,t,n),"DOM"!==a||null==t||n!==If.itemClick&&n!==If.keyDown&&n!==If.textNavigation)||(null==l||null==(r=l(t))||r.focus())}),[l,h,a]),E=n.useMemo((()=>({highlightedValue:f,selectedValues:(e,t)=>Qp(e,t,f)})),[f]),P=n.useCallback(((e,t,n,r,o)=>{switch(null==d||d(e,t,n,r,o),t){case"highlightedValue":I(e,n,r);break;case"selectedValues":null==g||g(e,n,r)}}),[I,g,d]),N=n.useMemo((()=>({disabledItemsFocusable:r,disableListWrap:o,focusManagement:a,isItemDisabled:c,itemComparer:f,items:p,getItemAsString:m,onHighlightChange:I,orientation:b,pageSize:y,selectionMode:x,stateComparers:E})),[r,o,a,c,f,p,m,I,b,y,x,E]),$=i(),z=null!=S?S:$f,R=n.useMemo((()=>Bi({},w,N)),[w,N]),[D,T]=hf({reducer:z,actionContext:R,initialState:$,controlledProps:t,stateComparers:E,onStateChange:P,componentName:C}),{highlightedValue:M,selectedValues:A}=D,V=function(e){const t=n.useRef({searchString:"",lastTime:null});return n.useCallback((n=>{if(1===n.key.length&&" "!==n.key){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>zf?r.searchString=o:1===r.searchString.length&&o===r.searchString||(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}}),[e])}(((e,t)=>T({type:If.textNavigation,event:t,searchString:e}))),_=n.useRef([]);n.useEffect((()=>{Qp(_.current,p,f)||(T({type:If.itemsChange,event:null,items:p,previousItems:_.current}),_.current=p,null==v||v(p))}),[p,f,T,v]);const L=e=>t=>{var n;if(null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented)return;const r=["Home","End","PageUp","PageDown"];"vertical"===b?r.push("ArrowUp","ArrowDown"):r.push("ArrowLeft","ArrowRight"),"activeDescendant"===a&&r.push(" ","Enter"),r.includes(t.key)&&t.preventDefault(),T({type:If.keyDown,key:t.key,event:t}),V(t)},F=n.useCallback((e=>{const t=(null!=A?A:[]).some((t=>null!=t&&f(e,t))),n=null!=M&&f(e,M);return{focusable:"DOM"===a,highlighted:n,selected:t}}),[f,A,M,a]),j=n.useMemo((()=>({dispatch:T,getItemState:F})),[T,F]);return n.useDebugValue({state:D}),{contextValue:j,dispatch:T,getRootProps:(e={})=>{const t=tf(e);return Bi({},e,{"aria-activedescendant":"activeDescendant"===a&&null!=M?s(M):void 0,tabIndex:"DOM"===a?-1:0,ref:O},t,{onBlur:(n=t,e=>{var t,r;null==(t=n.onBlur)||t.call(n,e),e.defaultMuiPrevented||null!=(r=k.current)&&r.contains(e.relatedTarget)||T({type:If.blur,event:e})}),onKeyDown:L(t)});var n},rootRef:O,state:D}}const Lf=n.createContext(null);function Ff(e,t){if(t.type===If.itemHover)return Bi({},e,{highlightedValue:t.item});const n=$f(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return Bi({},n,{highlightedValue:t.context.items[0]});if(t.type===If.keyDown&&"Escape"===t.event.key)return Bi({},n,{open:!1});var r;if(t.type===If.blur&&(null==(r=t.context.listboxRef.current)||!r.contains(t.event.relatedTarget))){var o,a;const e=null==(o=t.context.listboxRef.current)?void 0:o.getAttribute("id"),r=null==(a=t.event.relatedTarget)?void 0:a.getAttribute("aria-controls");return e&&r&&e===r?n:Bi({},n,{open:!1,highlightedValue:t.context.items[0]})}return n}"production"!==process.env.NODE_ENV&&(Lf.displayName="ListContext");const jf=n.createContext(null);function Bf(){const[e,t]=n.useState(new Map),r=n.useRef(new Set),o=n.useCallback((function(e){r.current.delete(e),t((t=>{const n=new Map(t);return n.delete(e),n}))}),[]),a=n.useCallback((function(e,n){let a;return a="function"==typeof e?e(r.current):e,r.current.add(a),t((e=>{const t=new Map(e);return t.set(a,n),t})),{id:a,deregister:()=>o(a)}}),[o]),i=n.useMemo((()=>function(e){const t=Array.from(e.keys()).map((t=>({key:t,subitem:e.get(t)})));return t.sort(((e,t)=>{const n=e.subitem.ref.current,r=t.subitem.ref.current;return null===n||null===r||n===r?0:n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})),new Map(t.map((e=>[e.key,e.subitem])))}(e)),[e]),l=n.useCallback((function(e){return Array.from(i.keys()).indexOf(e)}),[i]);return{contextValue:n.useMemo((()=>({getItemIndex:l,registerItem:a,totalSubitemCount:e.size})),[l,a,e.size]),subitems:i}}function Hf(e,t){return function(n={}){const r=Bi({},n,e(n));return Bi({},r,t(r))}}"production"!==process.env.NODE_ENV&&(jf.displayName="CompoundComponentContext");const Wf={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function Gf(t){const{value:r,children:o}=t,{dispatch:a,getItemIndex:i,getItemState:l,registerItem:s,totalSubitemCount:c}=r,u=n.useMemo((()=>({dispatch:a,getItemState:l,getItemIndex:i})),[a,i,l]),d=n.useMemo((()=>({getItemIndex:i,registerItem:s,totalSubitemCount:c})),[s,i,c]);return e(jf.Provider,{value:d,children:e(Lf.Provider,{value:u,children:o})})}const qf=n.forwardRef((function(t,r){const{children:o,container:a,disablePortal:i=!1}=t,[l,s]=n.useState(null),c=yd(n.isValidElement(o)?o.ref:null,r);if(Zu((()=>{i||s(function(e){return"function"==typeof e?e():e}(a)||document.body)}),[a,i]),Zu((()=>{if(l&&!i)return fd(r,l),()=>{fd(r,null)}}),[r,l,i]),i){if(n.isValidElement(o)){const e={ref:c};return n.cloneElement(o,e)}return e(n.Fragment,{children:o})}return e(n.Fragment,{children:l?f.createPortal(o,l):l})}));function Uf(e){return`menu-item-${e.size}`}"production"!==process.env.NODE_ENV&&(qf.propTypes={children:Za.node,container:Za.oneOfType([ld,Za.func]),disablePortal:Za.bool}),"production"!==process.env.NODE_ENV&&(qf.propTypes=id(qf.propTypes));const Yf={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function Kf(e){var t;const{disabled:r=!1,id:o,rootRef:a,label:i,disableFocusOnHover:l=!1}=e,s=hd(o),c=n.useRef(null),u=n.useMemo((()=>({disabled:r,id:null!=s?s:"",label:i,ref:c})),[r,s,i]),{dispatch:d}=null!=(t=n.useContext(df))?t:Yf,{getRootProps:p,highlighted:f}=function(e){const{handlePointerOverEvents:t=!1,item:r}=e,o=n.useContext(Lf);if(!o)throw new Error("useListItem must be used within a ListProvider");const{dispatch:a,getItemState:i}=o,{highlighted:l,selected:s,focusable:c}=i(r),u=n.useCallback((e=>t=>{var n;if(null==(n=e.onClick)||n.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===r)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:If.itemClick,item:r,event:t})}}),[a,r]),d=n.useCallback((e=>t=>{var n;if(null==(n=e.onMouseOver)||n.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===r)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:If.itemHover,item:r,event:t})}}),[a,r]);let p;return c&&(p=l?0:-1),{getRootProps:(e={})=>{const n=tf(e);return Bi({},e,{onClick:u(n),onPointerOver:t?d(n):void 0,tabIndex:p})},highlighted:l,selected:s}}({item:s,handlePointerOverEvents:!l}),{index:m,totalItemCount:g}=function(e,t){const r=n.useContext(jf);if(null===r)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:o}=r,[a,i]=n.useState("function"==typeof e?void 0:e);return Zu((()=>{const{id:n,deregister:r}=o(e,t);return i(n),r}),[o,t,e]),{id:a,index:void 0!==a?r.getItemIndex(a):-1,totalItemCount:r.totalSubitemCount}}(null!=s?s:Uf,u),{getRootProps:h,focusVisible:v,rootRef:b}=uf({disabled:r,focusableWhenDisabled:!0}),y=yd(b,a,c);n.useDebugValue({id:s,highlighted:f,disabled:r,label:i});const w=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||d({type:vf.close,event:t})},x=(e={})=>Bi({},e,{onClick:w(e)});function S(e={}){const t=tf(e);return Bi({},e,t,Hf(x,Hf(h,p))(t),{id:s,ref:y,role:"menuitem"})}return void 0===s?{getRootProps:S,disabled:!1,focusVisible:v,highlighted:!1,index:-1,totalItemCount:0,rootRef:y}:{getRootProps:S,disabled:r,focusVisible:v,highlighted:f,index:m,totalItemCount:g,rootRef:y}}function Jf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Xf(e){return parseInt(pd(e).getComputedStyle(e).paddingRight,10)||0}function Qf(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Jf(e,o)}))}function Zf(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function em(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=dd(e);return t.body===e?pd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(dd(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Xf(r)+e}px`;const t=dd(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Xf(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=dd(r).body;else{const t=r.parentElement,n=pd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const tm=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Jf(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Qf(t,e.mount,e.modalRef,r,!0);const o=Zf(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Zf(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=em(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Zf(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Jf(e.modalRef,t),Qf(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Jf(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function nm(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:a=tm,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,f=n.useRef({}),m=n.useRef(null),g=n.useRef(null),h=yd(g,p),[v,b]=n.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const x=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),S=()=>{a.mount(x(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},C=bd((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||dd(m.current).body;a.add(x(),e),g.current&&S()})),k=n.useCallback((()=>a.isTopModal(x())),[a]),O=bd((e=>{m.current=e,e&&(d&&k()?S():g.current&&Jf(g.current,w))})),I=n.useCallback((()=>{a.remove(x(),w)}),[w,a]);n.useEffect((()=>()=>{I()}),[I]),n.useEffect((()=>{d?C():y&&i||I()}),[d,I,y,i,C]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=tf(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Bi({},n,t);return Bi({role:"presentation"},r,{onKeyDown:E(r),ref:h})},getBackdropProps:(e={})=>Bi({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:cd((()=>{b(!1),l&&l()}),null==c?void 0:c.props.onEnter),onExited:cd((()=>{b(!0),s&&s(),i&&I()}),null==c?void 0:c.props.onExited)}),rootRef:h,portalRef:O,isTopModal:k,exited:v,hasTransition:y}}var rm="top",om="bottom",am="right",im="left",lm="auto",sm=[rm,om,am,im],cm="start",um="end",dm="clippingParents",pm="viewport",fm="popper",mm="reference",gm=sm.reduce((function(e,t){return e.concat([t+"-"+cm,t+"-"+um])}),[]),hm=[].concat(sm,[lm]).reduce((function(e,t){return e.concat([t,t+"-"+cm,t+"-"+um])}),[]),vm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bm(e){return e?(e.nodeName||"").toLowerCase():null}function ym(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wm(e){return e instanceof ym(e).Element||e instanceof Element}function xm(e){return e instanceof ym(e).HTMLElement||e instanceof HTMLElement}function Sm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ym(e).ShadowRoot||e instanceof ShadowRoot)}var Cm={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];xm(o)&&bm(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});xm(r)&&bm(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function km(e){return e.split("-")[0]}var Om=Math.max,Im=Math.min,Em=Math.round;function Pm(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Nm(){return!/^((?!chrome|android).)*safari/i.test(Pm())}function $m(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&xm(e)&&(o=e.offsetWidth>0&&Em(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Em(r.height)/e.offsetHeight||1);var i=(wm(e)?ym(e):window).visualViewport,l=!Nm()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function zm(e){var t=$m(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dm(e){return ym(e).getComputedStyle(e)}function Tm(e){return["table","td","th"].indexOf(bm(e))>=0}function Mm(e){return((wm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Am(e){return"html"===bm(e)?e:e.assignedSlot||e.parentNode||(Sm(e)?e.host:null)||Mm(e)}function Vm(e){return xm(e)&&"fixed"!==Dm(e).position?e.offsetParent:null}function _m(e){for(var t=ym(e),n=Vm(e);n&&Tm(n)&&"static"===Dm(n).position;)n=Vm(n);return n&&("html"===bm(n)||"body"===bm(n)&&"static"===Dm(n).position)?t:n||function(e){var t=/firefox/i.test(Pm());if(/Trident/i.test(Pm())&&xm(e)&&"fixed"===Dm(e).position)return null;var n=Am(e);for(Sm(n)&&(n=n.host);xm(n)&&["html","body"].indexOf(bm(n))<0;){var r=Dm(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Lm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fm(e,t,n){return Om(e,Im(t,n))}function jm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bm(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Hm={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=km(n.placement),s=Lm(l),c=[im,am].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return jm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bm(e,sm))}(o.padding,n),d=zm(a),p="y"===s?rm:im,f="y"===s?om:am,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=_m(a),v=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,b=m/2-g/2,y=u[p],w=v-d[c]-u[f],x=v/2-d[c]/2+b,S=Fm(y,x,w),C=s;n.modifiersData[r]=((t={})[C]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Rm(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wm(e){return e.split("-")[1]}var Gm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=h.x,g=h.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=im,w=rm,x=window;if(c){var S=_m(n),C="clientHeight",k="clientWidth";if(S===ym(n)&&"static"!==Dm(S=Mm(n)).position&&"absolute"===l&&(C="scrollHeight",k="scrollWidth"),o===rm||(o===im||o===am)&&a===um)w=om,g-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[C])-r.height,g*=s?1:-1;if(o===im||(o===rm||o===om)&&a===um)y=am,f-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-r.width,f*=s?1:-1}var O,I=Object.assign({position:l},c&&Gm),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Em(n*o)/o||0,y:Em(r*o)/o||0}}({x:f,y:g},ym(n)):{x:f,y:g};return f=E.x,g=E.y,s?Object.assign({},I,((O={})[w]=b?"0":"",O[y]=v?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",O)):Object.assign({},I,((t={})[w]=b?g+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Um={passive:!0};var Ym={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=ym(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Um)})),l&&s.addEventListener("resize",n.update,Um),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Um)})),l&&s.removeEventListener("resize",n.update,Um)}},data:{}},Km={left:"right",right:"left",bottom:"top",top:"bottom"};function Jm(e){return e.replace(/left|right|bottom|top/g,(function(e){return Km[e]}))}var Xm={start:"end",end:"start"};function Qm(e){return e.replace(/start|end/g,(function(e){return Xm[e]}))}function Zm(e){var t=ym(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function eg(e){return $m(Mm(e)).left+Zm(e).scrollLeft}function tg(e){var t=Dm(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ng(e){return["html","body","#document"].indexOf(bm(e))>=0?e.ownerDocument.body:xm(e)&&tg(e)?e:ng(Am(e))}function rg(e,t){var n;void 0===t&&(t=[]);var r=ng(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ym(r),i=o?[a].concat(a.visualViewport||[],tg(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(rg(Am(i)))}function og(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ag(e,t,n){return t===pm?og(function(e,t){var n=ym(e),r=Mm(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Nm();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+eg(e),y:s}}(e,n)):wm(t)?function(e,t){var n=$m(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):og(function(e){var t,n=Mm(e),r=Zm(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Om(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Om(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+eg(e),s=-r.scrollTop;return"rtl"===Dm(o||n).direction&&(l+=Om(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Mm(e)))}function ig(e,t,n,r){var o="clippingParents"===t?function(e){var t=rg(Am(e)),n=["absolute","fixed"].indexOf(Dm(e).position)>=0&&xm(e)?_m(e):e;return wm(n)?t.filter((function(e){return wm(e)&&Rm(e,n)&&"body"!==bm(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=ag(e,n,r);return t.top=Om(o.top,t.top),t.right=Im(o.right,t.right),t.bottom=Im(o.bottom,t.bottom),t.left=Om(o.left,t.left),t}),ag(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function lg(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?km(o):null,i=o?Wm(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case rm:t={x:l,y:n.y-r.height};break;case om:t={x:l,y:n.y+n.height};break;case am:t={x:n.x+n.width,y:s};break;case im:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?Lm(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case cm:t[c]=t[c]-(n[u]/2-r[u]/2);break;case um:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function sg(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?dm:l,c=n.rootBoundary,u=void 0===c?pm:c,d=n.elementContext,p=void 0===d?fm:d,f=n.altBoundary,m=void 0!==f&&f,g=n.padding,h=void 0===g?0:g,v=jm("number"!=typeof h?h:Bm(h,sm)),b=p===fm?mm:fm,y=e.rects.popper,w=e.elements[m?b:p],x=ig(wm(w)?w:w.contextElement||Mm(e.elements.popper),s,u,i),S=$m(e.elements.reference),C=lg({reference:S,element:y,strategy:"absolute",placement:o}),k=og(Object.assign({},y,C)),O=p===fm?k:S,I={top:x.top-O.top+v.top,bottom:O.bottom-x.bottom+v.bottom,left:x.left-O.left+v.left,right:O.right-x.right+v.right},E=e.modifiersData.offset;if(p===fm&&E){var P=E[o];Object.keys(I).forEach((function(e){var t=[am,om].indexOf(e)>=0?1:-1,n=[rm,om].indexOf(e)>=0?"y":"x";I[e]+=P[n]*t}))}return I}function cg(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?hm:s,u=Wm(r),d=u?l?gm:gm.filter((function(e){return Wm(e)===u})):sm,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=sg(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[km(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var ug={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,v=km(h),b=s||(v===h||!m?[Jm(h)]:function(e){if(km(e)===lm)return[];var t=Jm(e);return[Qm(e),t,Qm(t)]}(h)),y=[h].concat(b).reduce((function(e,n){return e.concat(km(n)===lm?cg(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,k=y[0],O=0;O<y.length;O++){var I=y[O],E=km(I),P=Wm(I)===cm,N=[rm,om].indexOf(E)>=0,$=N?"width":"height",z=sg(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=N?P?am:im:P?om:rm;w[$]>x[$]&&(R=Jm(R));var D=Jm(R),T=[];if(a&&T.push(z[E]<=0),l&&T.push(z[R]<=0,z[D]<=0),T.every((function(e){return e}))){k=I,C=!1;break}S.set(I,T)}if(C)for(var M=function(e){var t=y.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},A=m?3:1;A>0;A--){if("break"===M(A))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dg(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pg(e){return[rm,am,om,im].some((function(t){return e[t]>=0}))}var fg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=sg(t,{elementContext:"reference"}),l=sg(t,{altBoundary:!0}),s=dg(i,r),c=dg(l,o,a),u=pg(s),d=pg(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var mg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=hm.reduce((function(e,n){return e[n]=function(e,t,n){var r=km(e),o=[im,rm].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[im,am].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var gg={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=lg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var hg={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,h=sg(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=km(t.placement),b=Wm(t.placement),y=!b,w=Lm(v),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(a){var N,$="y"===w?rm:im,z="y"===w?om:am,R="y"===w?"height":"width",D=S[w],T=D+h[$],M=D-h[z],A=f?-k[R]/2:0,V=b===cm?C[R]:k[R],_=b===cm?-k[R]:-C[R],L=t.elements.arrow,F=f&&L?zm(L):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=j[$],H=j[z],W=Fm(0,C[R],F[R]),G=y?C[R]/2-A-W-B-I.mainAxis:V-W-B-I.mainAxis,q=y?-C[R]/2+A+W+H+I.mainAxis:_+W+H+I.mainAxis,U=t.elements.arrow&&_m(t.elements.arrow),Y=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,K=null!=(N=null==E?void 0:E[w])?N:0,J=D+q-K,X=Fm(f?Im(T,D+G-K-Y):T,D,f?Om(M,J):M);S[w]=X,P[w]=X-D}if(l){var Q,Z="x"===w?rm:im,ee="x"===w?om:am,te=S[x],ne="y"===x?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[rm,im].indexOf(v),ie=null!=(Q=null==E?void 0:E[x])?Q:0,le=ae?re:te-C[ne]-k[ne]-ie+I.altAxis,se=ae?te+C[ne]+k[ne]-ie-I.altAxis:oe,ce=f&&ae?function(e,t,n){var r=Fm(e,t,n);return r>n?n:r}(le,te,se):Fm(f?le:re,te,f?se:oe);S[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function vg(e,t,n){void 0===n&&(n=!1);var r=xm(t),o=xm(t)&&function(e){var t=e.getBoundingClientRect(),n=Em(t.width)/e.offsetWidth||1,r=Em(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Mm(t),i=$m(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==bm(t)||tg(a))&&(l=function(e){return e!==ym(e)&&xm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Zm(e);var t}(t)),xm(t)?((s=$m(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=eg(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function bg(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var yg={placement:"bottom",modifiers:[],strategy:"absolute"};function wg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function xg(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?yg:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},yg,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:wm(e)?rg(e):e.contextElement?rg(e.contextElement):[],popper:rg(t)};var i,c,p=function(e){var t=bg(e);return vm.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(wg(t,n)){l.rects={reference:vg(t,_m(n),"fixed"===l.options.strategy),popper:zm(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!wg(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Sg=xg({defaultModifiers:[Ym,gg,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:km(t.placement),variation:Wm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Cm,mg,ug,hg,Hm,fg]});const Cg="Popper";function kg(e){return cf(Cg,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=cf(e,t)}))}(Cg,["root"]);const Og=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ig=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Eg(e){return"function"==typeof e?e():e}function Pg(e){return void 0!==e.nodeType}const Ng=()=>Md({root:["root"]},function(e){const{disableDefaultClasses:t}=n.useContext(ef);return n=>t?"":e(n)}(kg)),$g={},zg=n.forwardRef((function(t,r){var o;const{anchorEl:a,children:i,direction:l,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:f,slotProps:m={},slots:g={},TransitionProps:h}=t,v=ic(t,Og),b=n.useRef(null),y=yd(b,r),w=n.useRef(null),x=yd(w,f),S=n.useRef(x);Zu((()=>{S.current=x}),[x]),n.useImperativeHandle(f,(()=>w.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,l),[k,O]=n.useState(C),[I,E]=n.useState(Eg(a));n.useEffect((()=>{w.current&&w.current.forceUpdate()})),n.useEffect((()=>{a&&E(Eg(a))}),[a]),Zu((()=>{if(!I||!u)return;if("production"!==process.env.NODE_ENV&&I&&Pg(I)&&1===I.nodeType){const e=I.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{O(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=Sg(I,b.current,Bi({placement:C},p,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[I,s,c,u,p,C]);const P={placement:k};null!==h&&(P.TransitionProps=h);const N=Ng(),$=null!=(o=g.root)?o:"div",z=lf({elementType:$,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:N.root});return e($,Bi({},z,{children:"function"==typeof i?i(P):i}))})),Rg=n.forwardRef((function(t,r){const{anchorEl:o,children:a,container:i,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=$g,popperRef:m,style:g,transition:h=!1,slotProps:v={},slots:b={}}=t,y=ic(t,Ig),[w,x]=n.useState(!0);if(!c&&!d&&(!h||w))return null;let S;if(i)S=i;else if(o){const e=Eg(o);S=e&&Pg(e)?dd(e).body:dd(null).body}const C=h?{in:d,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return e(qf,{disablePortal:s,container:S,children:e(zg,Bi({anchorEl:o,direction:l,disablePortal:s,modifiers:u,ref:r,open:h?!w:d,placement:p,popperOptions:f,popperRef:m,slotProps:v,slots:b},y,{style:Bi({position:"fixed",top:0,left:0,display:d||!c||h&&!w?void 0:"none"},g),TransitionProps:C,children:a}))})}));function Dg(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Tg(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}"production"!==process.env.NODE_ENV&&(Rg.propTypes={anchorEl:nd(Za.oneOfType([ld,Za.object,Za.func]),(e=>{if(e.open){const t=Eg(e.anchorEl);if(t&&Pg(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||!Pg(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join("\n"))}return null})),children:Za.oneOfType([Za.node,Za.func]),container:Za.oneOfType([ld,Za.func]),direction:Za.oneOf(["ltr","rtl"]),disablePortal:Za.bool,keepMounted:Za.bool,modifiers:Za.arrayOf(Za.shape({data:Za.object,effect:Za.func,enabled:Za.bool,fn:Za.func,name:Za.any,options:Za.object,phase:Za.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Za.arrayOf(Za.string),requiresIfExists:Za.arrayOf(Za.string)})),open:Za.bool.isRequired,placement:Za.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:Za.shape({modifiers:Za.array,onFirstUpdate:Za.func,placement:Za.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:Za.oneOf(["absolute","fixed"])}),popperRef:sd,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),transition:Za.bool});const Mg=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=Dg(c));const u=c?e.filter((e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=Dg(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),Ag=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Vg(e){const{unstable_isActiveElementInListbox:t=Ag,unstable_classNamePrefix:r="Mui",autoComplete:o=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:h=!1,filterOptions:v=Mg,filterSelectedOptions:b=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:S=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:k=!e.freeSolo,id:O,includeInputInList:I=!1,inputValue:E,isOptionEqualToValue:P=((e,t)=>e===t),multiple:N=!1,onChange:$,onClose:z,onHighlightChange:R,onInputChange:D,onOpen:T,open:M,openOnFocus:A=!1,options:V,readOnly:_=!1,selectOnFocus:L=!e.freeSolo,value:F}=e,j=hd(O);let B=S;B=e=>{const t=S(e);if("string"!=typeof t){if("production"!==process.env.NODE_ENV){const n=void 0===t?"undefined":`${typeof t} (${t})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${n} instead of a string for ${JSON.stringify(e)}.`)}return String(t)}return t};const H=n.useRef(!1),W=n.useRef(!0),G=n.useRef(null),q=n.useRef(null),[U,Y]=n.useState(null),[K,J]=n.useState(-1),X=a?0:-1,Q=n.useRef(X),[Z,ee]=vd({controlled:F,default:d,name:u}),[te,ne]=vd({controlled:E,default:"",name:u,state:"inputValue"}),[re,oe]=n.useState(!1),ae=n.useCallback(((e,t)=>{if(!(N?Z.length<t.length:null!==t)&&!s)return;let n;if(N)n="";else if(null==t)n="";else{const e=B(t);n="string"==typeof e?e:""}te!==n&&(ne(n),D&&D(e,n,"reset"))}),[B,te,N,D,ne,s,Z]),[ie,le]=vd({controlled:M,default:!1,name:u,state:"open"}),[se,ce]=n.useState(!0),ue=!N&&null!=Z&&te===B(Z),de=ie&&!_,pe=de?v(V.filter((e=>!b||!(N?Z:[Z]).some((t=>null!==t&&P(e,t))))),{inputValue:ue&&se?"":te,getOptionLabel:B}):[],fe=(e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current})({filteredOptions:pe,value:Z,inputValue:te});n.useEffect((()=>{const e=Z!==fe.value;re&&!e||y&&!e||ae(null,Z)}),[Z,ae,re,fe.value,y]);const me=ie&&pe.length>0&&!_;if("production"!==process.env.NODE_ENV&&null!==Z&&!y&&V.length>0){const e=(N?Z:[Z]).filter((e=>!V.some((t=>P(t,e)))));e.length>0&&console.warn([`MUI: The value provided to ${u} is invalid.`,`None of the options match with \`${e.length>1?JSON.stringify(e):JSON.stringify(e[0])}\`.`,"You can use the `isOptionEqualToValue` prop to customize the equality test."].join("\n"))}const ge=bd((e=>{-1===e?G.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));n.useEffect((()=>{N&&K>Z.length-1&&(J(-1),ge(-1))}),[Z,N,K,ge]);const he=bd((({event:e,index:t,reason:n="auto"})=>{if(Q.current=t,-1===t?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${j}-option-${t}`),R&&R(e,-1===t?null:pe[t],n),!q.current)return;const o=q.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let a=q.current;if("listbox"!==q.current.getAttribute("role")&&(a=q.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=q.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${r}-focused`),"keyboard"===n&&i.classList.add(`${r}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=i,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ve=bd((({event:e,diff:t,direction:n="next",reason:r="auto"})=>{if(!de)return;const a=function(e,t){if(!q.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),o=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return X;if("start"===t)return 0;if("end"===t)return e;const n=Q.current+t;return n<0?-1===n&&I?-1:h&&-1!==Q.current||Math.abs(t)>1?0:e:n>e?n===e+1&&I?-1:h||Math.abs(t)>1?e:0:n})(),n);if(he({index:a,reason:r,event:e}),o&&"reset"!==t)if(-1===a)G.current.value=te;else{const e=B(pe[a]);G.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&G.current.setSelectionRange(te.length,e.length)}})),be=n.useCallback((()=>{if(!de)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==pe.length&&fe.inputValue===te&&(N?Z.length===fe.value.length&&fe.value.every(((e,t)=>B(Z[t])===B(e))):(e=fe.value,t=Z,(e?B(e):"")===(t?B(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return Tg(pe,(t=>B(t)===B(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=N?Z[0]:Z;if(0!==pe.length&&null!=t){if(q.current)if(null==t)Q.current>=pe.length-1?he({index:pe.length-1}):he({index:Q.current});else{const e=pe[Q.current];if(N&&e&&-1!==Tg(Z,(t=>P(e,t))))return;const n=Tg(pe,(e=>P(e,t)));-1===n?ve({diff:"reset"}):he({index:n})}}else ve({diff:"reset"})}),[pe.length,!N&&Z,b,ve,he,de,te,N]),ye=bd((e=>{fd(q,e),e&&be()}));"production"!==process.env.NODE_ENV&&n.useEffect((()=>{G.current&&"INPUT"===G.current.nodeName||(G.current&&"TEXTAREA"===G.current.nodeName?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join("\n")):console.error([`MUI: Unable to find the input element. It was resolved to ${G.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"","useAutocomplete"===u?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join("\n")))}),[u]),n.useEffect((()=>{be()}),[be]);const we=e=>{ie||(le(!0),ce(!0),T&&T(e))},xe=(e,t)=>{ie&&(le(!1),z&&z(e,t))},Se=(e,t,n,r)=>{if(N){if(Z.length===t.length&&Z.every(((e,n)=>e===t[n])))return}else if(Z===t)return;$&&$(e,t,n,r),ee(t)},Ce=n.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,a=t;if(N){if(a=Array.isArray(Z)?Z.slice():[],"production"!==process.env.NODE_ENV){const e=a.filter((e=>P(t,e)));e.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"))}const e=Tg(a,(e=>P(t,e)));-1===e?a.push(t):"freeSolo"!==r&&(a.splice(e,1),o="removeOption")}ae(e,a),Se(e,a,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||xe(e,o),(!0===l||"touch"===l&&Ce.current||"mouse"===l&&!Ce.current)&&G.current.blur()};const Oe=(e,t)=>{if(!N)return;""===te&&xe(e,"toggleInput");let n=K;-1===K?""===te&&"previous"===t&&(n=Z.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Z.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Z.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),J(n),ge(n)},Ie=e=>{H.current=!0,ne(""),D&&D(e,"","clear"),Se(e,N?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(J(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":de&&k&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&k&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Oe(t,"previous");break;case"ArrowRight":Oe(t,"next");break;case"Enter":if(-1!==Q.current&&de){const e=pe[Q.current],n=!!w&&w(e);if(t.preventDefault(),n)return;ke(t,e,"selectOption"),o&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else y&&""!==te&&!1===ue&&(N&&t.preventDefault(),ke(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),xe(t,"escape")):c&&(""!==te||N&&Z.length>0)&&(t.preventDefault(),t.stopPropagation(),Ie(t));break;case"Backspace":if(N&&!_&&""===te&&Z.length>0){const e=-1===K?Z.length-1:K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}break;case"Delete":if(N&&!_&&""===te&&Z.length>0&&-1!==K){const e=K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}}},Pe=e=>{oe(!0),A&&!H.current&&we(e)},Ne=e=>{t(q)?G.current.focus():(oe(!1),W.current=!0,H.current=!1,i&&-1!==Q.current&&de?ke(e,pe[Q.current],"blur"):i&&y&&""!==te?ke(e,te,"blur","freeSolo"):s&&ae(e,Z),xe(e,"blur"))},$e=e=>{const t=e.target.value;te!==t&&(ne(t),ce(!1),D&&D(e,t,"input")),""===t?p||N||Se(e,null,"clear"):we(e)},ze=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&he({event:e,index:t,reason:"mouse"})},Re=e=>{he({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},De=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,pe[t],"selectOption"),Ce.current=!1},Te=e=>t=>{const n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})},Me=e=>{ie?xe(e,"toggleInput"):we(e)},Ae=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==j&&e.preventDefault()},Ve=e=>{e.currentTarget.contains(e.target)&&(G.current.focus(),L&&W.current&&G.current.selectionEnd-G.current.selectionStart==0&&G.current.select(),W.current=!1)},_e=e=>{m||""!==te&&ie||Me(e)};let Le=y&&te.length>0;Le=Le||(N?Z.length>0:null!==Z);let Fe=pe;if(C){const e=new Map;let t=!1;Fe=pe.reduce(((n,r,o)=>{const a=C(r);return n.length>0&&n[n.length-1].group===a?n[n.length-1].options.push(r):("production"!==process.env.NODE_ENV&&(e.get(a)&&!t&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),t=!0),e.set(a,!0)),n.push({key:o,index:o,group:a,options:[r]})),n}),[])}return m&&re&&Ne(),{getRootProps:(e={})=>Bi({"aria-owns":me?`${j}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:Ae,onClick:Ve}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:te,onBlur:Ne,onFocus:Pe,onChange:$e,onMouseDown:_e,"aria-activedescendant":de?"":null,"aria-autocomplete":o?"both":"list","aria-controls":me?`${j}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ie}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Me}),getTagProps:({index:e})=>Bi({key:e,"data-tag-index":e,tabIndex:-1},!_&&{onDelete:Te(e)}),getListboxProps:()=>({role:"listbox",id:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(N?Z:[Z]).some((e=>null!=e&&P(t,e))),o=!!w&&w(t);return{key:null!=(n=null==x?void 0:x(t))?n:B(t),tabIndex:-1,role:"option",id:`${j}-option-${e}`,onMouseMove:ze,onClick:De,onTouchStart:Re,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:j,inputValue:te,value:Z,dirty:Le,expanded:de&&U,popupOpen:de,focused:re||-1!==K,anchorEl:U,setAnchorEl:Y,focusedTag:K,groupedOptions:Fe}}const _g=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Lg=["component","slots","slotProps"],Fg=["component"];function jg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,s=ic(t,_g),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=ic(a,Lg),f=u[e]||r,m=nf(d[e],o),g=of(Bi({className:n},s,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),{props:{component:h},internalRef:v}=g,b=ic(g.props,Fg),y=yd(v,null==m?void 0:m.ref,t.ref),w=i?i(b):{},x=Bi({},o,w),S="root"===e?h||c:h,C=Xp(f,Bi({},"root"===e&&!c&&!u[e]&&l,"root"!==e&&!u[e]&&l,b,S&&{as:S},{ref:y}),x);return Object.keys(w).forEach((e=>{delete C[e]})),[f,C]}function Bg(e){return Rp("MuiListItem",e)}const Hg=Dp("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),Wg=n.createContext(!1);"production"!==process.env.NODE_ENV&&(Wg.displayName="NestedListContext");const Gg=n.createContext(!1);"production"!==process.env.NODE_ENV&&(Gg.displayName="RowListContext");const qg=n.createContext(!1);"production"!==process.env.NODE_ENV&&(qg.displayName="WrapListContext");const Ug=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ug.displayName="ComponentListContext");const Yg=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Yg.displayName="ListSubheaderContext");const Kg=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Kg.displayName="GroupListContext");const Jg=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],Xg=Kp("li")((({theme:e,ownerState:t})=>{var n;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",gap:"var(--ListItem-gap)",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},Bi({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"var(--_ListItem-display)","&:not([hidden])":{"--_ListItem-display":"var(--_List-markerDisplay, flex)"},flex:"none",listStyleType:"var(--_List-markerType, disc)",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&Bi({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackground, ${e.vars.palette.background.body})`},{[`.${Hg.nested} > &`]:{"--_ListItem-display":"flex"}}),null==(n=e.variants[t.variant])?void 0:n[t.color]]})),Qg=Kp(Xg,{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zg=Kp("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1}))),eh=Kp("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"}))),th=n.forwardRef((function(r,o){const a=Jp({props:r,name:"JoyListItem"}),i=n.useContext(Kg),l=n.useContext(Ug),s=n.useContext(Gg),c=n.useContext(qg),u=n.useContext(Wg),{component:d,className:p,children:f,nested:m=!1,sticky:g=!1,variant:h="plain",color:v="neutral",startAction:b,endAction:y,role:w,slots:x={},slotProps:S={}}=a,C=ic(a,Jg),[k,O]=n.useState(""),[I,E]=(null==l?void 0:l.split(":"))||["",""],P=d||(I&&!I.match(/^(ul|ol|menu)$/)?"div":void 0);let N="menu"===i?"none":void 0;l&&(N={menu:"none",menubar:"none",group:"presentation"}[E]),w&&(N=w);const $=Bi({},a,{sticky:g,startAction:b,endAction:y,row:s,wrap:c,variant:h,color:v,nesting:u,nested:m,component:P,role:N}),z=(e=>{const{sticky:t,nested:n,nesting:r,variant:o,color:a}=e;return Md({root:["root",n&&"nested",r&&"nesting",t&&"sticky",a&&`color${yc(a)}`,o&&`variant${yc(o)}`],startAction:["startAction"],endAction:["endAction"]},Bg,{})})($),R=Bi({},C,{component:P,slots:x,slotProps:S}),[D,T]=jg("root",{additionalProps:{role:N},ref:o,className:Ou(z.root,p),elementType:Qg,externalForwardedProps:R,ownerState:$}),[M,A]=jg("startAction",{className:z.startAction,elementType:Zg,externalForwardedProps:R,ownerState:$}),[V,_]=jg("endAction",{className:z.endAction,elementType:eh,externalForwardedProps:R,ownerState:$});return e(Yg.Provider,{value:O,children:e(Wg.Provider,{value:!!m&&(k||!0),children:t(D,Bi({},T,{children:[b&&e(M,Bi({},A,{children:b})),n.Children.map(f,((e,t)=>n.isValidElement(e)?n.cloneElement(e,Bi({},0===t&&{"data-first-child":""},ud(e,["ListItem"])&&{component:e.props.component||"div"})):e)),y&&e(V,Bi({},_,{children:y}))]}))})})}));"production"!==process.env.NODE_ENV&&(th.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,endAction:Za.node,nested:Za.bool,role:Za.string,slotProps:Za.shape({endAction:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startAction:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({endAction:Za.elementType,root:Za.elementType,startAction:Za.elementType}),startAction:Za.node,sticky:Za.bool,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),th.muiName="ListItem";const nh={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function rh(t){const{children:r,nested:o,row:a=!1,wrap:i=!1}=t,l=e(Gg.Provider,{value:a,children:e(qg.Provider,{value:i,children:n.Children.map(r,((e,t)=>n.isValidElement(e)?n.cloneElement(e,Bi({},0===t&&{"data-first-child":""},t===n.Children.count(r)-1&&{"data-last-child":""})):e))})});return void 0===o?l:e(Wg.Provider,{value:o,children:l})}const oh=({theme:e,ownerState:t},n)=>{let r={};return t.sx&&(!function t(n){"function"==typeof n?t(n(e)):Array.isArray(n)?n.forEach((e=>{"boolean"!=typeof e&&t(e)})):"object"==typeof n&&(r=Bi({},r,n))}(t.sx),n.forEach((t=>{const n=r[t];var o;"string"==typeof n||"number"==typeof n?"borderRadius"===t?r[t]="number"==typeof n?`${n}px`:(null==(o=e.vars)?void 0:o.radius[n])||n:-1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof n?r[t]=e.spacing(n):r[t]=n:r[t]="function"==typeof n?n(e):void 0}))),r};function ah(e){return Rp("MuiList",e)}var ih=Dp("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const lh=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(lh.displayName="RadioGroupContext");const sh=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],ch=Kp("ul")((({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:a}=oh({theme:e,ownerState:t},["p","padding","borderRadius"]);function i(n){return"sm"===n?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===n?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===n?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&Bi({},i(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&Bi({},i(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.marker&&{"--_List-markerDeduct":"1ch"},{"--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?Bi({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"},t.marker&&{paddingInlineStart:"3ch"}),Bi({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},null==(n=e.variants[t.variant])?void 0:n[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==o&&{"--List-padding":o})]})),uh=Kp(ch,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dh=n.forwardRef((function(t,r){var o;const a=n.useContext(Wg),i=n.useContext(Kg),l=n.useContext(lh),s=Jp({props:t,name:"JoyList"}),{component:c,className:u,children:d,size:p,orientation:f="vertical",wrap:m=!1,variant:g="plain",color:h="neutral",role:v,slots:b={},slotProps:y={}}=s,w=ic(s,sh),x=p||(null!=(o=t.size)?o:"md");let S;i&&(S="group"),l&&(S="presentation"),v&&(S=v);const C=Bi({},s,{instanceSize:t.size,size:x,nesting:a,orientation:f,wrap:m,variant:g,color:h,role:S}),k=(e=>{const{variant:t,color:n,size:r,nesting:o,orientation:a,instanceSize:i}=e;return Md({root:["root",a,t&&`variant${yc(t)}`,n&&`color${yc(n)}`,!i&&!o&&r&&`size${yc(r)}`,i&&`size${yc(i)}`,o&&"nesting"]},ah,{})})(C),O=Bi({},w,{component:c,slots:b,slotProps:y}),[I,E]=jg("root",{ref:r,className:Ou(k.root,u),elementType:uh,externalForwardedProps:O,ownerState:C,additionalProps:{as:c,role:S,"aria-labelledby":"string"==typeof a?a:void 0}});return e(I,Bi({},E,{children:e(Ug.Provider,{value:`${"string"==typeof c?c:""}:${S||""}`,children:e(rh,{row:"horizontal"===f,wrap:m,children:d})})}))}));function ph(e){return Rp("MuiListItemButton",e)}"production"!==process.env.NODE_ENV&&(dh.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,marker:Za.string,orientation:Za.oneOf(["horizontal","vertical"]),role:Za.string,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string]),wrap:Za.bool});const fh=Dp("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),mh=n.createContext("horizontal");"production"!==process.env.NODE_ENV&&(mh.displayName="ListItemButtonOrientationContext");const gh=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],hh=Kp("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;return Bi({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:"var(--ListItem-gap)"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:Bi({},e.focus.default,{zIndex:1})},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],[`.${Hg.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${fh.selected}`]:Bi({},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${fh.selected}, [aria-selected="true"])`]:{"&:hover":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color],"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},[`&.${fh.disabled}`]:Bi({},null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color])})})),vh=Kp(hh,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>Bi({},!e.row&&{[`&.${fh.selected}`]:{fontWeight:t.vars.fontWeight.md}}))),bh=n.forwardRef((function(t,r){const o=Jp({props:t,name:"JoyListItemButton"}),a=n.useContext(Gg),{children:i,className:l,action:s,component:c="div",orientation:u="horizontal",role:d,selected:p=!1,color:f="neutral",variant:m="plain",slots:g={},slotProps:h={}}=o,v=ic(o,gh),b=n.useRef(null),y=yd(b,r),{focusVisible:w,setFocusVisible:x,getRootProps:S}=uf(Bi({},o,{rootRef:y}));n.useImperativeHandle(s,(()=>({focusVisible:()=>{var e;x(!0),null==(e=b.current)||e.focus()}})),[x]);const C=Bi({},o,{component:c,color:f,focusVisible:w,orientation:u,row:a,selected:p,variant:m}),k=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,selected:a,variant:i}=e,l=Md({root:["root",n&&"disabled",r&&"focusVisible",t&&`color${yc(t)}`,a&&"selected",i&&`variant${yc(i)}`]},ph,{});return r&&o&&(l.root+=` ${o}`),l})(C),O=Bi({},v,{component:c,slots:g,slotProps:h}),[I,E]=jg("root",{ref:r,className:Ou(k.root,l),elementType:vh,externalForwardedProps:O,ownerState:C,getSlotProps:S});return e(mh.Provider,{value:u,children:e(I,Bi({},E,{role:null!=d?d:E.role,children:i}))})}));function yh(e){return Rp("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(bh.propTypes={action:Za.oneOfType([Za.func,Za.shape({current:Za.shape({focusVisible:Za.func.isRequired})})]),autoFocus:Za.bool,children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,focusVisibleClassName:Za.string,orientation:Za.oneOf(["horizontal","vertical"]),role:Za.string,selected:Za.bool,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Dp("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const wh=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],xh={sm:"xl",md:"xl2",lg:"xl3"},Sh=Kp("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n;return Bi({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[xh[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[xh[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&Bi({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1)`}))})),Ch=n.forwardRef((function(r,o){const a=Jp({props:r,name:"JoySvgIcon"}),{children:i,className:l,color:s,component:c="svg",fontSize:u,htmlColor:d,inheritViewBox:p=!1,titleAccess:f,viewBox:m="0 0 24 24",size:g="md",slots:h={},slotProps:v={}}=a,b=ic(a,wh),y=n.isValidElement(i)&&"svg"===i.type,w=Bi({},a,{color:s,component:c,size:g,instanceSize:r.size,fontSize:u,instanceFontSize:r.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:y}),x=(e=>{const{color:t,size:n,fontSize:r}=e;return Md({root:["root",t&&"inherit"!==t&&`color${yc(t)}`,n&&`size${yc(n)}`,r&&`fontSize${yc(r)}`]},yh,{})})(w),S=Bi({},b,{component:c,slots:h,slotProps:v}),[C,k]=jg("root",{ref:o,className:Ou(x.root,l),elementType:Sh,externalForwardedProps:S,ownerState:w,additionalProps:Bi({color:d,focusable:!1},f&&{role:"img"},!f&&{"aria-hidden":!0},!p&&{viewBox:m},y&&i.props)});return t(C,Bi({},k,{children:[y?i.props.children:i,f?e("title",{children:f}):null]}))}));function kh(t,r){function o(n,o){return e(Ch,Bi({"data-testid":`${r}Icon`,ref:o},n,{children:t}))}return"production"!==process.env.NODE_ENV&&(o.displayName=`${r}Icon`),o.muiName=Ch.muiName,n.memo(n.forwardRef(o))}"production"!==process.env.NODE_ENV&&(Ch.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","inherit","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,fontSize:Za.oneOfType([Za.oneOf(["inherit","lg","md","sm","xl","xl2","xl3","xl4","xs"]),Za.string]),htmlColor:Za.string,inheritViewBox:Za.bool,shapeRendering:Za.string,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),titleAccess:Za.string,viewBox:Za.string});const Oh=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Ih="data-skip-inverted-colors",Eh=`& :not([${Ih}], [${Ih}] *)`,Ph=e=>{var t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,v,b,y,w,x,S;const C=Oh(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[C("--palette-focusVisible")]:`${null==(t=e.colorSchemes.light)?void 0:t.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(n=e.colorSchemes.light)?void 0:n.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(r=e.colorSchemes.light)?void 0:r.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(o=e.colorSchemes.light)?void 0:o.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(a=e.colorSchemes.light)?void 0:a.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(i=e.colorSchemes.light)?void 0:i.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(l=e.colorSchemes.light)?void 0:l.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(s=e.colorSchemes.light)?void 0:s.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(c=e.colorSchemes.light)?void 0:c.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(u=e.colorSchemes.light)?void 0:u.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(d=e.colorSchemes.light)?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[C("--palette-focusVisible")]:`${null==(p=e.colorSchemes.dark)?void 0:p.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(f=e.colorSchemes.dark)?void 0:f.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(m=e.colorSchemes.dark)?void 0:m.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(g=e.colorSchemes.dark)?void 0:g.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(h=e.colorSchemes.dark)?void 0:h.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(v=e.colorSchemes.dark)?void 0:v.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(b=e.colorSchemes.dark)?void 0:b.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(y=e.colorSchemes.dark)?void 0:y.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(w=e.colorSchemes.dark)?void 0:w.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(x=e.colorSchemes.dark)?void 0:x.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(S=e.colorSchemes.dark)?void 0:S.palette.divider} !important`}}};const Nh=e=>t=>{const n=void 0!==t.theme?t.theme:t;const r=np(n.cssVarPrefix),o=Oh(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[Eh]:{"--Badge-ringColor":a(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[o("--palette-focusVisible")]:a(`palette-${e}-200`),[o("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[o("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[o("--palette-background-popup")]:a(`palette-${e}-700`),[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.36)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.6)`,[o("--palette-text-primary")]:a("palette-common-white"),[o("--palette-text-secondary")]:a(`palette-${e}-200`),[o("--palette-text-tertiary")]:a(`palette-${e}-300`),[o("--palette-text-icon")]:a(`palette-${e}-200`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${e}-${"neutral"===e?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${Ih}]`]:Ph(n)}},$h=e=>t=>{const{theme:n=t}=t,r=np(n.cssVarPrefix),o=Oh(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[Eh]:{"--Badge-ringColor":a(`palette-${e}-softBg`),"--Icon-color":"currentColor",[n.getColorSchemeSelector("dark")]:{[o("--palette-focusVisible")]:a(`palette-${e}-300`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,[o("--palette-text-primary")]:a(`palette-${e}-100`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-text-icon")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${e}-200`),"--variant-softBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`},[n.getColorSchemeSelector("light")]:{[o("--palette-focusVisible")]:a(`palette-${e}-500`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,[o("--palette-text-primary")]:a(`palette-${e}-700`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.68)`,[o("--palette-text-icon")]:a(`palette-${e}-500`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${e}-600`),"--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${e}-600`),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${e}-700`),"--variant-softHoverBg":a(`palette-${e}-200`),"--variant-softActiveBg":a(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${e}-${"neutral"===e?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${Ih}]`]:Ph(n)}};var zh=kh(e("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Rh=kh(e("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Dh=n.createContext(void 0);function Th(e,t){let n=t,r=e;return"outlined"===e&&(n="neutral",r="plain"),"plain"===e&&(n="neutral"),{variant:r,color:n}}function Mh(e,t,r=!1){const o=n.useContext(Dh),[a,i]="string"==typeof o?o.split(":"):[],l=Th(a||void 0,i||void 0);return l.variant=e||l.variant,l.color=t||(r?i:l.color),l}function Ah({children:t,color:n,variant:r}){return e(Dh.Provider,{value:`${r||""}:${n||""}`,children:t})}function Vh(e){return Rp("MuiIconButton",e)}"production"!==process.env.NODE_ENV&&(Dh.displayName="VariantColorContext"),Dp("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]);const _h=n.createContext({});"production"!==process.env.NODE_ENV&&(_h.displayName="ButtonGroupContext");const Lh=n.createContext(void 0);function Fh(e){return Rp("MuiCircularProgress",e)}"production"!==process.env.NODE_ENV&&(Lh.displayName="ToggleButtonGroupContext"),Dp("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let jh,Bh=e=>e;const Hh=["color","backgroundColor"],Wh=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],Gh=function(){var e=Bs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}});function qh(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}const Uh=Kp("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>{var n,r,o,a;const i=(null==(n=t.variants[e.variant])?void 0:n[e.color])||{},{color:l,backgroundColor:s}=i,c=ic(i,Hh);return Bi({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":l,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":qh("track","3px"),"--_progress-thickness":qh("progress","3px")},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--_track-thickness":qh("track","6px"),"--_progress-thickness":qh("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--_track-thickness":qh("track","8px"),"--_progress-thickness":qh("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:l},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},c,"outlined"===e.variant&&{"&::before":Bi({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},c)},"soft"===e.variant&&{"--CircularProgress-trackColor":t.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":null==(r=t.variants.solid)?void 0:r[e.color].backgroundColor},"solid"===e.variant&&{"--CircularProgress-trackColor":null==(o=t.variants.softHover)?void 0:o[e.color].backgroundColor,"--CircularProgress-progressColor":null==(a=t.variants.solid)?void 0:a[e.color].backgroundColor})})),Yh=Kp("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),Kh=Kp("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),Jh=Kp("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},(({ownerState:e})=>!e.determinate&&Bs(jh||(jh=Bh`
|
|
141
|
+
animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
|
|
142
|
+
${0};
|
|
143
|
+
`),Gh))),Xh=n.forwardRef((function(n,r){const o=Jp({props:n,name:"JoyCircularProgress"}),{children:a,className:i,color:l="primary",size:s="md",variant:c="soft",thickness:u,determinate:d=!1,value:p=(d?0:25),component:f,slots:m={},slotProps:g={}}=o,h=ic(o,Wh),v=Bi({},o,{color:l,size:s,variant:c,thickness:u,value:p,determinate:d,instanceSize:n.size}),b=(e=>{const{determinate:t,color:n,variant:r,size:o}=e;return Md({root:["root",t&&"determinate",n&&`color${yc(n)}`,r&&`variant${yc(r)}`,o&&`size${yc(o)}`],svg:["svg"],track:["track"],progress:["progress"]},Fh,{})})(v),y=Bi({},h,{component:f,slots:m,slotProps:g}),[w,x]=jg("root",{ref:r,className:Ou(b.root,i),elementType:Uh,externalForwardedProps:y,ownerState:v,additionalProps:Bi({role:"progressbar",style:{"--CircularProgress-percent":p}},p&&d&&{"aria-valuenow":"number"==typeof p?Math.round(p):Math.round(Number(p||0))})}),[S,C]=jg("svg",{className:b.svg,elementType:Yh,externalForwardedProps:y,ownerState:v}),[k,O]=jg("track",{className:b.track,elementType:Kh,externalForwardedProps:y,ownerState:v}),[I,E]=jg("progress",{className:b.progress,elementType:Jh,externalForwardedProps:y,ownerState:v});return t(w,Bi({},x,{children:[t(S,Bi({},C,{children:[e(k,Bi({},O)),e(I,Bi({},E))]})),a]}))}));"production"!==process.env.NODE_ENV&&(Xh.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,determinate:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({progress:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),svg:Za.oneOfType([Za.func,Za.object]),track:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({progress:Za.elementType,root:Za.elementType,svg:Za.elementType,track:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),thickness:Za.number,value:Za.number,variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});const Qh=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],Zh=Kp("button")((({theme:e,ownerState:t})=>{var n,r,o,a;return[Bi({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:Bi({"--Icon-color":"currentColor"},e.focus.default)}),Bi({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":Bi({"--Icon-color":"currentColor"},null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color])},'&:active, &[aria-pressed="true"]':Bi({"--Icon-color":"currentColor"},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]),"&:disabled":null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]})]})),ev=Kp(Zh,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tv=Kp("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e,ownerState:t})=>{var n,r;return Bi({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),nv=n.forwardRef((function(t,r){var o;const a=Jp({props:t,name:"JoyIconButton"}),{children:i,action:l,component:s="button",color:c="neutral",disabled:u,variant:d="plain",loading:p=!1,loadingIndicator:f,size:m="md",slots:g={},slotProps:h={}}=a,v=ic(a,Qh),b=n.useContext(_h),y=n.useContext(Lh),w=t.variant||b.variant||d,x=t.size||b.size||m,S=t.color||b.color||c,C=null!=(o=t.loading||t.disabled)?o:b.disabled||p||u,k=n.useRef(null),O=yd(k,r),{focusVisible:I,setFocusVisible:E,getRootProps:P}=uf(Bi({},a,{disabled:C,rootRef:O})),N=null!=f?f:e(Xh,{color:S,thickness:{sm:2,md:3,lg:4}[x]||3});n.useImperativeHandle(l,(()=>({focusVisible:()=>{var e;E(!0),null==(e=k.current)||e.focus()}})),[E]);const $=Bi({},a,{component:s,color:S,disabled:C,variant:w,loading:p,size:x,focusVisible:I,instanceSize:t.size}),z=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,size:a,variant:i,loading:l}=e,s=Md({root:["root",n&&"disabled",r&&"focusVisible",i&&`variant${yc(i)}`,t&&`color${yc(t)}`,a&&`size${yc(a)}`,l&&"loading"],loadingIndicator:["loadingIndicator"]},Vh,{});return r&&o&&(s.root+=` ${o}`),s})($);let R=a["aria-pressed"];"function"==typeof h.root?R=h.root($)["aria-pressed"]:h.root&&(R=h.root["aria-pressed"]),null!=y&&y.value&&(R=Array.isArray(y.value)?-1!==y.value.indexOf(a.value):y.value===a.value);const D=Bi({},v,{component:s,slots:g,slotProps:h}),[T,M]=jg("root",{ref:r,className:z.root,elementType:ev,getSlotProps:P,externalForwardedProps:D,ownerState:$,additionalProps:{onClick:e=>{var t;let n=a.onClick;var r;("function"==typeof h.root?n=h.root($).onClick:h.root&&(n=h.root.onClick),null==(t=n)||t(e),y)&&(null==(r=y.onClick)||r.call(y,e,a.value))},"aria-pressed":R}}),[A,V]=jg("loadingIndicator",{className:z.loadingIndicator,elementType:tv,externalForwardedProps:D,ownerState:$});return e(T,Bi({},M,{children:p?e(A,Bi({},V,{children:N})):i}))}));function rv(e){return Rp("MuiChip",e)}"production"!==process.env.NODE_ENV&&(nv.propTypes={action:Za.oneOfType([Za.func,Za.shape({current:Za.shape({focusVisible:Za.func.isRequired})})]),children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,focusVisibleClassName:Za.string,loading:Za.bool,loadingIndicator:Za.node,onClick:Za.func,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({loadingIndicator:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({loadingIndicator:Za.elementType,root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,value:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),nv.muiName="IconButton";const ov=Dp("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),av=n.createContext({disabled:void 0,variant:void 0,color:void 0});"production"!==process.env.NODE_ENV&&(av.displayName="ChipColorContext");const iv=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],lv=Kp("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r,o;const a=null==(n=e.variants[t.variant])?void 0:n[t.color],{borderRadius:i}=oh({theme:e,ownerState:t},["borderRadius"]);return[Bi({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--Icon-color":"currentColor","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-paddingInline":"0.375rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.sm,"--_Chip-minHeight":"var(--Chip-minHeight, 1.25rem)",gap:"3px"},"md"===t.size&&{"--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.md,"--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",gap:"0.25rem"},"lg"===t.size&&{"--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.lg,"--_Chip-minHeight":"var(--Chip-minHeight, 1.75rem)",gap:"0.375rem"},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],{fontWeight:e.vars.fontWeight.md,[`&.${ov.disabled}`]:{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==a?void 0:a.color}]:[Bi({backgroundColor:e.vars.palette.background.surface},a,{[`&.${ov.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]})],void 0!==i&&{"--_Chip-radius":i}]})),sv=Kp("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})((({ownerState:e})=>Bi({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"}))),cv=Kp("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})((({theme:e,ownerState:t})=>{var n,r,o,a;return[{"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},Bi({backgroundColor:e.vars.palette.background.surface},null==(n=e.variants[t.variant])?void 0:n[t.color]),{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]}},{"&:active":null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]},{[`&.${ov.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]})),uv=Kp("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--IconButton-margin":"0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",order:0,zIndex:1,pointerEvents:"none"}),dv=Kp("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--IconButton-margin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",order:2,zIndex:1,pointerEvents:"none"}),pv=n.forwardRef((function(r,o){const a=Jp({props:r,name:"JoyChip"}),{children:i,className:l,color:s="neutral",onClick:c,disabled:u=!1,size:d="md",variant:p="soft",startDecorator:f,endDecorator:m,component:g,slots:h={},slotProps:v={}}=a,b=ic(a,iv),y=!!c||!!v.action,w=Bi({},a,{disabled:u,size:d,color:s,variant:p,clickable:y,focusVisible:!1}),x="function"==typeof v.action?v.action(w):v.action,S=n.useRef(null),{focusVisible:C,getRootProps:k}=uf(Bi({},x,{disabled:u,rootRef:S}));w.focusVisible=C;const O=(e=>{const{disabled:t,size:n,color:r,clickable:o,variant:a,focusVisible:i}=e;return Md({root:["root",t&&"disabled",r&&`color${yc(r)}`,n&&`size${yc(n)}`,a&&`variant${yc(a)}`,o&&"clickable"],action:["action",t&&"disabled",i&&"focusVisible"],label:["label",n&&`label${yc(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},rv,{})})(w),I=Bi({},b,{component:g,slots:h,slotProps:v}),[E,P]=jg("root",{ref:o,className:Ou(O.root,l),elementType:lv,externalForwardedProps:I,ownerState:w}),[N,$]=jg("label",{className:O.label,elementType:sv,externalForwardedProps:I,ownerState:w}),z=hd($.id),[R,D]=jg("action",{className:O.action,elementType:cv,externalForwardedProps:I,ownerState:w,getSlotProps:k,additionalProps:{"aria-labelledby":z,as:null==x?void 0:x.component,onClick:c}}),[T,M]=jg("startDecorator",{className:O.startDecorator,elementType:uv,externalForwardedProps:I,ownerState:w}),[A,V]=jg("endDecorator",{className:O.endDecorator,elementType:dv,externalForwardedProps:I,ownerState:w}),_=n.useMemo((()=>({disabled:u})),[u]);return e(av.Provider,{value:_,children:e(Ah,{variant:p,color:s,children:t(E,Bi({},P,{children:[y&&e(R,Bi({},D)),e(N,Bi({},$,{id:z,children:i})),f&&e(T,Bi({},M,{children:f})),m&&e(A,Bi({},V,{children:m}))]}))})})}));"production"!==process.env.NODE_ENV&&(pv.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,endDecorator:Za.node,onClick:Za.func,size:Za.oneOfType([Za.oneOf(["lg","md","sm"]),Za.string]),slotProps:Za.shape({action:Za.oneOfType([Za.func,Za.object]),endDecorator:Za.oneOfType([Za.func,Za.object]),label:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({action:Za.elementType,endDecorator:Za.elementType,label:Za.elementType,root:Za.elementType,startDecorator:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});var fv,mv=kh(e("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Cancel");function gv(e){return Rp("MuiChipDelete",e)}Dp("MuiChipDelete",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSolid","variantSoft","variantOutlined"]);const hv=["children","variant","color","disabled","onKeyDown","onDelete","onClick","component","slots","slotProps"],vv=["onDelete"],bv=Kp(Zh,{name:"JoyChipDelete",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({"--IconButton-size":"var(--Chip-deleteSize, 2rem)","--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.3)",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px",pointerEvents:"visible",borderRadius:"var(--Chip-deleteRadius, 50%)",zIndex:1,padding:0}))),yv=n.forwardRef((function(t,r){const o=Jp({props:t,name:"JoyChipDelete"}),{children:a,variant:i="plain",color:l="neutral",disabled:s,onKeyDown:c,onDelete:u,onClick:d,component:p,slots:f={},slotProps:m={}}=o,g=ic(o,hv),h=n.useContext(av),{variant:v=i,color:b=l}=Mh(t.variant,t.color,!0),y=t.color||b,w=null!=s?s:h.disabled,x=yd(n.useRef(null),r),{focusVisible:S,getRootProps:C}=uf(Bi({},o,{disabled:w,rootRef:x})),k=Bi({},o,{disabled:w,variant:v,color:y,focusVisible:S}),O=(e=>{const{focusVisible:t,variant:n,color:r,disabled:o}=e;return Md({root:["root",o&&"disabled",t&&"focusVisible",n&&`variant${yc(n)}`,r&&`color${yc(r)}`]},gv,{})})(k),I=Bi({},g,{component:p,slots:f,slotProps:m}),[E,P]=jg("root",{ref:r,elementType:bv,getSlotProps:C,externalForwardedProps:I,ownerState:k,additionalProps:{as:p,onKeyDown:e=>{["Backspace","Enter","Delete"].includes(e.key)&&(e.preventDefault(),!w&&u&&u(e)),c&&c(e)},onClick:e=>{!w&&u&&u(e),d&&d(e)}},className:O.root}),N=ic(P,vv);return e(E,Bi({},N,{children:null!=a?a:fv||(fv=e(mv,{}))}))}));function wv(e){return Rp("MuiInput",e)}"production"!==process.env.NODE_ENV&&(yv.propTypes={children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,onClick:Za.func,onDelete:Za.func,onKeyDown:Za.func,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});const xv=Dp("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),Sv=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Sv.displayName="FormControlContext");const Cv=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];const kv=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],Ov=Kp("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;const s=null==(n=e.variants[`${t.variant}`])?void 0:n[t.color];return[Bi({"--Input-radius":e.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":e.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":e.vars.focus.thickness,"--Input-focusedHighlight":null==(r=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:r[500],[`&:not([${Ih}])`]:Bi({},t.instanceColor&&{"--_Input-focusedHighlight":null==(o=e.vars.palette["neutral"===t.instanceColor?"primary":t.instanceColor])?void 0:o[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${e.vars.palette.focusVisible})`})},"sm"===t.size&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},t.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},e.typography[`body-${t.size}`],s,{backgroundColor:null!=(a=null==s?void 0:s.backgroundColor)?a:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":Bi({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null}),[`&.${xv.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Input-focused":"1"}}]})),Iv=Kp("input")((({ownerState:e})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":Bi({paddingInline:"var(--Input-paddingInline)"},!e.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!e.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}}))),Ev=Kp("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),Pv=Kp("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),Nv=Kp(Ov,{name:"JoyInput",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$v=Kp(Iv,{name:"JoyInput",slot:"Input",overridesResolver:(e,t)=>t.input})({}),zv=Kp(Ev,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),Rv=Kp(Pv,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({}),Dv=n.forwardRef((function(r,o){var a,i,l,s,c,u;const d=Jp({props:r,name:"JoyInput"}),p=function(e,t){var r;const o=n.useContext(Sv),{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,className:u,defaultValue:d,disabled:p,disabledInProp:f,error:m,id:g,name:h,onClick:v,onChange:b,onKeyDown:y,onKeyUp:w,onFocus:x,onBlur:S,placeholder:C,readOnly:k,required:O,type:I,value:E}=e,P=ic(e,Cv),{getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D}=Of({disabled:null!=(r=null!=f?f:null==o?void 0:o.disabled)?r:p,defaultValue:d,error:m,onBlur:S,onClick:v,onChange:b,onFocus:x,required:null!=O?O:null==o?void 0:o.required,value:E});return Bi({formControl:o,propsToForward:{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,disabled:D,id:g,onKeyDown:y,onKeyUp:w,name:h,placeholder:C,readOnly:k,type:I},rootStateClasses:{[t.disabled]:D,[t.error]:R,[t.focused]:z,[t.formControl]:Boolean(o),[u]:u},inputStateClasses:{[t.disabled]:D},getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D},P)}(Bi({},d,{disabledInProp:r.disabled}),xv),{propsToForward:f,rootStateClasses:m,inputStateClasses:g,getRootProps:h,getInputProps:v,formControl:b,focused:y,error:w=!1,disabled:x,fullWidth:S=!1,size:C="md",color:k="neutral",variant:O="outlined",startDecorator:I,endDecorator:E,component:P,slots:N={},slotProps:$={}}=p,z=ic(p,kv);if("production"!==process.env.NODE_ENV){const e=null==b?void 0:b.registerEffect;n.useEffect((()=>{if(e)return e()}),[e])}const R=null!=(a=null!=(i=r.error)?i:null==b?void 0:b.error)?a:w,D=null!=(l=null!=(s=r.size)?s:null==b?void 0:b.size)?l:C,T=null!=(c=r.color)?c:R?"danger":null!=(u=null==b?void 0:b.color)?u:k,M=Bi({instanceColor:R?"danger":r.color},d,{fullWidth:S,color:T,disabled:x,error:R,focused:y,size:D,variant:O}),A=(e=>{const{disabled:t,fullWidth:n,variant:r,color:o,size:a}=e;return Md({root:["root",t&&"disabled",n&&"fullWidth",r&&`variant${yc(r)}`,o&&`color${yc(o)}`,a&&`size${yc(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},wv,{})})(M),V=Bi({},z,{component:P,slots:N,slotProps:$}),[_,L]=jg("root",{ref:o,className:[A.root,m],elementType:Nv,getSlotProps:h,externalForwardedProps:V,ownerState:M}),[F,j]=jg("input",Bi({},b&&{additionalProps:{id:b.htmlFor,"aria-describedby":b["aria-describedby"]}},{className:[A.input,g],elementType:$v,getSlotProps:v,internalForwardedProps:f,externalForwardedProps:V,ownerState:M})),[B,H]=jg("startDecorator",{className:A.startDecorator,elementType:zv,externalForwardedProps:V,ownerState:M}),[W,G]=jg("endDecorator",{className:A.endDecorator,elementType:Rv,externalForwardedProps:V,ownerState:M});return t(_,Bi({},L,{children:[I&&e(B,Bi({},H,{children:I})),e(F,Bi({},j)),E&&e(W,Bi({},G,{children:E}))]}))}));function Tv(e){return Rp("MuiListSubheader",e)}"production"!==process.env.NODE_ENV&&(Dv.propTypes={autoComplete:Za.string,autoFocus:Za.bool,children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),defaultValue:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),disabled:Za.bool,endDecorator:Za.node,error:Za.bool,fullWidth:Za.bool,id:Za.string,name:Za.string,onChange:Za.func,placeholder:Za.string,readOnly:Za.bool,required:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),value:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Dp("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const Mv=["component","className","children","id","sticky","variant","color","slots","slotProps"],Av=Kp("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;return Bi({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)"},e.typography["body-xs"],{fontSize:"max(0.75em, 0.625rem)",textTransform:"uppercase",letterSpacing:"0.1em"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:t.color?`var(--_Link-color, rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1))`:e.vars.palette.text.tertiary},t.instanceColor&&{[`&:not([${Ih}])`]:{"--_Link-color":e.vars.palette.text.secondary}},null==(r=e.variants[t.variant])?void 0:r[t.color])})),Vv=n.forwardRef((function(t,r){const o=Jp({props:t,name:"JoyListSubheader"}),{component:a,className:i,children:l,id:s,sticky:c=!1,variant:u,color:d,slots:p={},slotProps:f={}}=o,m=ic(o,Mv),g=hd(s),h=n.useContext(Yg);n.useEffect((()=>{h&&h(g||"")}),[h,g]);const v=Bi({instanceColor:t.color},o,{id:g,sticky:c,variant:u,color:u?null!=d?d:"neutral":d}),b=(e=>{const{variant:t,color:n,sticky:r}=e;return Md({root:["root",r&&"sticky",n&&`color${yc(n)}`,t&&`variant${yc(t)}`]},Tv,{})})(v),y=Bi({},m,{component:a,slots:p,slotProps:f}),[w,x]=jg("root",{ref:r,className:Ou(b.root,i),elementType:Av,externalForwardedProps:y,ownerState:v,additionalProps:{as:a,id:g}});return e(w,Bi({},x,{children:l}))}));function _v(e){return Rp("MuiAutocomplete",e)}"production"!==process.env.NODE_ENV&&(Vv.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,id:Za.string,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sticky:Za.bool,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});const Lv=Dp("MuiAutocomplete",["root","wrapper","input","startDecorator","endDecorator","formControl","focused","disabled","error","multiple","limitTag","hasPopupIcon","hasClearIcon","clearIndicator","popupIndicator","popupIndicatorOpen","listbox","option","loading","noOptions","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);function Fv(e){return Rp("MuiAutocompleteListbox",e)}Dp("MuiAutocompleteListbox",["root","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const jv=["anchorEl","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","TransitionProps"],Bv=["children","className","component","color","variant","size","slots","slotProps"],Hv=Kp(ch)((({theme:e,ownerState:t})=>{var n;const r=null==(n=e.variants[t.variant])?void 0:n[t.color];return Bi({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==r?void 0:r.backgroundColor)||(null==r?void 0:r.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},nh,{boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`},!(null!=r&&r.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},{zIndex:e.vars.zIndex.popup,overflow:"auto",maxHeight:"40vh",position:"relative","&:empty":{visibility:"hidden"},[`& .${Hg.nested}, & .${Hg.nested} .${ih.root}`]:{position:"initial"}})})),Wv=Kp(Hv,{name:"JoyAutocompleteListbox",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gv=n.forwardRef((function(t,n){const r=Jp({props:t,name:"JoyAutocompleteListbox"}),{children:o,className:a,component:i,color:l="neutral",variant:s="outlined",size:c="md",slots:u={},slotProps:d={}}=r,p=ic(r,Bv),f=Bi({},r,{size:c,color:l,variant:s,nesting:!1,row:!1,wrap:!1}),m=(e=>ic(e,jv))(p),g=(e=>{const{variant:t,color:n,size:r}=e;return Md({root:["root",t&&`variant${yc(t)}`,n&&`color${yc(n)}`,r&&`size${yc(r)}`]},Fv,{})})(f),h=Bi({},m,{component:i,slots:u,slotProps:d}),[v,b]=jg("root",{ref:n,className:Ou(g.root,a),elementType:Wv,externalForwardedProps:h,ownerState:f,additionalProps:{role:"listbox"}});return e(Ah,{variant:s,color:l,children:e(v,Bi({},b,{children:o}))})}));function qv(e){return Rp("MuiAutocompleteOption",e)}"production"!==process.env.NODE_ENV&&(Gv.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,size:Za.oneOf(["sm","md","lg"]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["contained","light","outlined","text"]),Za.string])}),Dp("MuiAutocompleteOption",["root","focused","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const Uv=["children","component","color","variant","className","slots","slotProps"],Yv=Kp(hh)((({theme:e,ownerState:t})=>{var n,r;return{'&[aria-disabled="true"]':null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color],'&[aria-selected="true"]':Bi({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{fontWeight:e.vars.fontWeight.md})}})),Kv=Kp(Yv,{name:"JoyAutocompleteOption",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jv=n.forwardRef((function(t,n){const r=Jp({props:t,name:"JoyAutocompleteOption"}),{children:o,component:a="li",color:i="neutral",variant:l="plain",className:s,slots:c={},slotProps:u={}}=r,d=ic(r,Uv),{variant:p=l,color:f=i}=Mh(t.variant,t.color),m=Bi({},r,{component:a,color:f,variant:p}),g=(e=>{const{color:t,variant:n}=e;return Md({root:["root",t&&`color${yc(t)}`,n&&`variant${yc(n)}`]},qv,{})})(m),h=Bi({},d,{component:a,slots:c,slotProps:u}),[v,b]=jg("root",{ref:n,className:Ou(g.root,s),elementType:Kv,externalForwardedProps:h,ownerState:m,additionalProps:{as:a,role:"option"}});return e(v,Bi({},b,{children:o}))}));var Xv,Qv;"production"!==process.env.NODE_ENV&&(Jv.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["contained","light","outlined","text"]),Za.string])});const Zv=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoHighlight","autoSelect","autoFocus","blurOnSelect","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","defaultValue","disableCloseOnSelect","disabledItemsFocusable","disableListWrap","disableClearable","disabled","endDecorator","error","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","handleHomeEndKeys","includeInputInList","isOptionEqualToValue","groupBy","id","inputValue","limitTags","loading","loadingText","multiple","name","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","placeholder","popupIcon","readOnly","renderGroup","renderOption","renderTags","required","type","startDecorator","size","color","variant","value","component","selectOnFocus","slots","slotProps"],eb=["onDelete"],tb=["onBlur","onFocus","onMouseDown"],nb=e=>null!==e.current&&e.current.contains(document.activeElement),rb=e=>{var t;return null!=(t=e.label)?t:e},ob=e=>`+${e}`,ab=n=>t(th,{nested:!0,children:[e(Vv,{sticky:!0,children:n.group}),e(dh,{children:n.children})]},n.key),ib=Kp(Ov,{name:"JoyAutocomplete",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Bi({},"sm"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"md"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"lg"===e.size&&{"--Autocomplete-wrapperGap":"4px"},{"@media (pointer: fine)":{[`&:hover .${Lv.clearIndicator}`]:{visibility:"visible"}}},e.multiple&&!e.startDecorator&&{paddingInlineStart:0}))),lb=Kp("div",{name:"JoyAutocomplete",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>({flex:1,minWidth:0,display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--Autocomplete-wrapperGap)",[`&.${Lv.multiple}`]:Bi({paddingBlock:"var(--Autocomplete-wrapperGap)"},!e.startDecorator&&{paddingInlineStart:"var(--Autocomplete-wrapperGap)"},!e.endDecorator&&{paddingInlineEnd:"var(--Autocomplete-wrapperGap)"})}))),sb=Kp(Iv,{name:"JoyAutocomplete",slot:"Input",overridesResolver:(e,t)=>t.input})((({ownerState:e})=>Bi({minWidth:30,minHeight:"var(--Chip-minHeight)"},e.multiple&&{marginInlineStart:"calc(var(--Autocomplete-wrapperGap) * 2.5)"}))),cb=Kp(Ev,{name:"JoyAutocomplete",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),ub=Kp(Pv,{name:"JoyAutocomplete",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})((({ownerState:e})=>Bi({},(e.hasClearIcon||e.hasPopupIcon)&&{"--Button-margin":"0px","--IconButton-margin":"0px","--Icon-margin":"0px"}))),db=Kp(Zh,{name:"JoyAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})((({ownerState:e})=>Bi({alignSelf:"center"},!e.hasPopupIcon&&{marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)"},{marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",visibility:e.focused?"visible":"hidden"}))),pb=Kp(Zh,{name:"JoyAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>t.popupIndicator})({alignSelf:"center",marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)",[`&.${Lv.popupIndicatorOpen}`]:{transform:"rotate(180deg)","--Icon-color":"currentColor"}}),fb=Kp(Hv,{name:"JoyAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`}))),mb=Kp(Yv,{name:"JoyAutocomplete",slot:"Option",overridesResolver:(e,t)=>t.option})({}),gb=Kp(th,{name:"JoyAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),hb=Kp(th,{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),vb=Kp("div",{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})({marginInlineStart:"calc(var(--Input-paddingInline) / 2)",marginBlockStart:"var(--_Input-paddingBlock)"}),bb=n.forwardRef((function(r,o){var a,i,l,s,c,u,d;const p=Jp({props:r,name:"JoyAutocomplete"}),{"aria-describedby":f,"aria-label":m,"aria-labelledby":g,autoFocus:h,clearIcon:v=Xv||(Xv=e(zh,{fontSize:"md"})),clearText:b="Clear",closeText:y="Close",disableClearable:w=!1,disabled:x,endDecorator:S,error:C=!1,forcePopupIcon:k="auto",freeSolo:O=!1,getLimitTagsText:I=ob,getOptionLabel:E=rb,groupBy:P,id:N,limitTags:$=-1,loading:z=!1,loadingText:R="Loading…",multiple:D=!1,name:T,noOptionsText:M="No options",openText:A="Open",placeholder:V,popupIcon:_=Qv||(Qv=e(Rh,{})),readOnly:L=!1,renderGroup:F=ab,renderOption:j,renderTags:B,required:H,type:W,startDecorator:G,size:q="md",color:U="neutral",variant:Y="outlined",component:K,slots:J={},slotProps:X={}}=p,Q=ic(p,Zv),Z=n.useContext(Sv),ee=null!=(a=null!=(i=r.error)?i:null==Z?void 0:Z.error)?a:C,te=null!=(l=null!=(s=r.size)?s:null==Z?void 0:Z.size)?l:q,ne=null!=(c=r.color)?c:ee?"danger":null!=(u=null==Z?void 0:Z.color)?u:U,re=null!=(d=null!=x?x:null==Z?void 0:Z.disabled)&&d,{getRootProps:oe,getInputProps:ae,getPopupIndicatorProps:ie,getClearProps:le,getTagProps:se,getListboxProps:ce,getOptionProps:ue,value:de,dirty:pe,popupOpen:fe,focused:me,focusedTag:ge,anchorEl:he,setAnchorEl:ve,inputValue:be,groupedOptions:ye}=Vg(Bi({},p,{id:null!=N?N:null==Z?void 0:Z.htmlFor,componentName:"Autocomplete",unstable_classNamePrefix:"Mui",unstable_isActiveElementInListbox:nb})),{onMouseDown:we}=ae(),{onClick:xe}=oe(),Se=!w&&!re&&pe&&!L,Ce=(!O||!0===k)&&!1!==k,ke=Bi({instanceColor:r.color},p,{value:de,disabled:re,focused:me,getOptionLabel:E,hasOptions:!!ye.length,hasClearIcon:Se,hasPopupIcon:Ce,inputFocused:-1===ge,popupOpen:fe,size:te,color:ne,variant:Y}),Oe=(e=>{const{disabled:t,focused:n,hasClearIcon:r,hasPopupIcon:o,popupOpen:a,variant:i,color:l,size:s,multiple:c}=e;return Md({root:["root",n&&"focused",r&&"hasClearIcon",o&&"hasPopupIcon",i&&`variant${yc(i)}`,l&&`color${yc(l)}`,s&&`size${yc(s)}`],wrapper:["wrapper",c&&"multiple"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",a&&"popupIndicatorOpen",t&&"disabled"],listbox:["listbox"],option:["option"],loading:["loading"],noOptions:["noOptions"],limitTag:["limitTag"]},_v,{})})(ke),Ie=Bi({},Q,{component:K,slots:J,slotProps:X});let Ee;if(D&&de.length>0){const t=e=>{const t=se(e),{onDelete:n}=t,r=ic(t,eb);return Bi({disabled:re,size:te,onClick:n},r)};Ee=B?B(de,t,ke):de.map(((n,r)=>e(pv,{size:te,variant:"soft",color:"neutral",endDecorator:e(yv,Bi({},t({index:r}))),sx:{minWidth:0},children:E(n)},r)))}const Pe=yd(o,ve),Ne={[Lv.disabled]:re,[Lv.error]:ee,[Lv.focused]:me,[Lv.formControl]:Boolean(Z)},[$e,ze]=jg("root",{ref:Pe,className:[Oe.root,Ne],elementType:ib,externalForwardedProps:Ie,ownerState:ke,getSlotProps:oe,additionalProps:{onClick:e=>{xe&&xe(e),e.currentTarget===e.target&&we&&we(e)}}}),[Re,De]=jg("wrapper",{className:Oe.wrapper,elementType:lb,externalForwardedProps:Ie,ownerState:ke}),Te={[Lv.disabled]:re},[Me,Ae]=jg("input",{className:[Oe.input,Te],elementType:sb,getSlotProps:e=>{const t=ae(),{onBlur:n,onFocus:r,onMouseDown:o}=t;return Bi({},ic(t,tb),{onBlur:t=>{var r;null==n||n(t),null==(r=e.onBlur)||r.call(e,t)},onFocus:t=>{var n;null==r||r(t),null==(n=e.onFocus)||n.call(e,t)},onMouseDown:t=>{var n;null==o||o(t),null==(n=e.onMouseDown)||n.call(e,t)}})},externalForwardedProps:Ie,ownerState:ke,additionalProps:{autoFocus:h,placeholder:V,name:T,readOnly:L,disabled:re,required:null!=H?H:null==Z?void 0:Z.required,type:W,"aria-invalid":ee||void 0,"aria-label":m,"aria-labelledby":g,"aria-describedby":null!=f?f:null==Z?void 0:Z["aria-describedby"]}}),[Ve,_e]=jg("startDecorator",{className:Oe.startDecorator,elementType:cb,externalForwardedProps:Ie,ownerState:ke}),[Le,Fe]=jg("endDecorator",{className:Oe.endDecorator,elementType:ub,externalForwardedProps:Ie,ownerState:ke}),[je,Be]=jg("clearIndicator",{className:Oe.clearIndicator,elementType:db,getSlotProps:le,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({size:e.size||te,variant:e.variant||Th(Y,ne).variant||"plain",color:e.color||Th(Y,ne).color||"neutral",disableColorInversion:!!r.color}),additionalProps:{"aria-label":b,title:b}}),[He,We]=jg("popupIndicator",{className:Oe.popupIndicator,elementType:pb,getSlotProps:ie,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({size:e.size||te,variant:e.variant||Th(Y,ne).variant||"plain",color:e.color||Th(Y,ne).color||"neutral",disableColorInversion:!!r.color}),additionalProps:{disabled:re,"aria-label":fe?y:A,title:fe?y:A,type:"button"}}),[Ge,qe]=jg("listbox",{className:Oe.listbox,elementType:fb,getSlotProps:ce,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({size:e.size||te,variant:e.variant||Y,color:e.color||ne,disableColorInversion:!e.disablePortal}),additionalProps:{anchorEl:he,open:fe,style:he?{width:he.clientWidth}:{}}}),[Ue,Ye]=jg("loading",{className:Oe.loading,elementType:gb,externalForwardedProps:Ie,ownerState:ke}),[Ke,Je]=jg("noOptions",{className:Oe.noOptions,elementType:hb,externalForwardedProps:Ie,ownerState:ke,additionalProps:{role:"presentation",onMouseDown:e=>{e.preventDefault()}}}),[Xe,Qe]=jg("limitTag",{className:Oe.limitTag,elementType:vb,externalForwardedProps:Ie,ownerState:ke});if($>-1&&Array.isArray(Ee)){const t=Ee.length-$;!me&&t>0&&(Ee=Ee.splice(0,$),Ee.push(e(Xe,Bi({},Qe,{children:I(t)}),Ee.length)))}const[Ze,et]=jg("option",{className:Oe.option,elementType:mb,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({variant:e.variant||Th(Y,ne).variant||"plain",color:e.color||Th(Y,ne).color||"neutral",disableColorInversion:!qe.disablePortal}),additionalProps:{as:"li"}}),tt=j||((t,n)=>e(Ze,Bi({},t,{children:E(n)}))),nt=(e,t)=>{const n=ue({option:e,index:t});return tt(Bi({},et,n),e,{selected:!!n["aria-selected"],inputValue:be,ownerState:ke})},rt=n.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...qe.modifiers||[]]),[qe.modifiers]);let ot=null;var at;he&&(ot=e(Ah,{variant:Y,color:ne,children:e(rh,{nested:!0,children:t(Ge,Bi({},qe,{className:Ou(qe.className),modifiers:rt},!(null!=(at=p.slots)&&at.listbox)&&{as:Rg,slots:{root:qe.as||"ul"}},{children:[ye.map(((e,t)=>{if(P){const t=e;return F({key:String(t.key),group:t.group,children:t.options.map(((e,n)=>nt(e,t.index+n)))})}return nt(e,t)})),z&&0===ye.length?e(Ue,Bi({},Ye,{children:R})):null,0!==ye.length||O||z?null:e(Ke,Bi({},Je,{children:M}))]}))})}));return t(n.Fragment,{children:[t($e,Bi({},ze,{children:[G&&e(Ve,Bi({},_e,{children:G})),t(Re,Bi({},De,{children:[Ee,e(Me,Bi({},Ae))]})),S&&e(Le,Bi({},Fe,{children:S})),Se?e(je,Bi({},Be,{children:v})):null,Ce?e(He,Bi({},We,{children:_})):null]})),ot]})}));"production"!==process.env.NODE_ENV&&(bb.propTypes={"aria-describedby":Za.string,"aria-label":Za.string,"aria-labelledby":Za.string,autoComplete:Za.bool,autoFocus:Za.bool,autoHighlight:Za.bool,autoSelect:Za.bool,blurOnSelect:Za.oneOfType([Za.oneOf(["mouse","touch"]),Za.bool]),clearIcon:Za.node,clearOnBlur:Za.bool,clearOnEscape:Za.bool,clearText:Za.string,closeText:Za.string,color:Za.oneOf(["danger","neutral","primary","success","warning"]),defaultValue:nd(Za.any,(e=>e.multiple&&void 0!==e.defaultValue&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join("\n")):null)),disableClearable:Za.bool,disableCloseOnSelect:Za.bool,disabled:Za.bool,disabledItemsFocusable:Za.bool,disableListWrap:Za.bool,endDecorator:Za.node,error:Za.bool,filterOptions:Za.func,filterSelectedOptions:Za.bool,forcePopupIcon:Za.oneOfType([Za.oneOf(["auto"]),Za.bool]),freeSolo:Za.bool,getLimitTagsText:Za.func,getOptionDisabled:Za.func,getOptionKey:Za.func,getOptionLabel:Za.func,groupBy:Za.func,handleHomeEndKeys:Za.bool,id:Za.string,includeInputInList:Za.bool,inputValue:Za.string,isOptionEqualToValue:Za.func,limitTags:Td,loading:Za.bool,loadingText:Za.node,multiple:Za.bool,name:Za.string,noOptionsText:Za.node,onChange:Za.func,onClose:Za.func,onHighlightChange:Za.func,onInputChange:Za.func,onKeyDown:Za.func,onOpen:Za.func,open:Za.bool,openOnFocus:Za.bool,openText:Za.string,options:Za.array.isRequired,placeholder:Za.string,popupIcon:Za.node,readOnly:Za.bool,renderGroup:Za.func,renderOption:Za.func,renderTags:Za.func,required:Za.bool,selectOnFocus:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({clearIndicator:Za.oneOfType([Za.func,Za.object]),endDecorator:Za.oneOfType([Za.func,Za.object]),input:Za.oneOfType([Za.func,Za.object]),limitTag:Za.oneOfType([Za.func,Za.object]),listbox:Za.oneOfType([Za.func,Za.object]),loading:Za.oneOfType([Za.func,Za.object]),noOptions:Za.oneOfType([Za.func,Za.object]),option:Za.oneOfType([Za.func,Za.object]),popupIndicator:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object]),wrapper:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({clearIndicator:Za.elementType,endDecorator:Za.elementType,input:Za.elementType,limitTag:Za.elementType,listbox:Za.elementType,loading:Za.elementType,noOptions:Za.elementType,option:Za.elementType,popupIndicator:Za.elementType,root:Za.elementType,startDecorator:Za.elementType,wrapper:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),type:Za.string,value:nd(Za.any,(e=>e.multiple&&void 0!==e.value&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join("\n")):null)),variant:Za.oneOf(["outlined","plain","soft","solid"])});const yb=Nu("MuiBox",["root"]),wb=function(t={}){const{themeId:r,defaultTheme:o,defaultClassName:a="MuiBox-root",generateClassName:i}=t,l=ac("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(pu);return n.forwardRef((function(t,n){const s=bu(o),c=xu(t),{className:u,component:d="div"}=c,p=ic(c,Iu);return e(l,Bi({as:d,ref:n,className:Ou(u,i?i(a):a),theme:r&&s[r]||s},p))}))}({themeId:Fi,defaultTheme:Fp,defaultClassName:yb.root,generateClassName:Cu.generate});function xb(e){return Rp("MuiButton",e)}"production"!==process.env.NODE_ENV&&(wb.propTypes={children:Za.node,component:Za.elementType,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])});const Sb=Dp("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),Cb=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],kb=Kp("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Ob=Kp("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),Ib=Kp("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return Bi({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),Eb=({theme:e,ownerState:t})=>{var n,r,o,a;return[Bi({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},"sm"===t.size&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:e.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:e.vars.lineHeight.md},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),Bi({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},'&:active, &[aria-pressed="true"]':null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],[`&.${Sb.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]},"center"===t.loadingPosition&&{[`&.${Sb.loading}`]:{color:"transparent"}})]},Pb=Kp("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(Eb),Nb=n.forwardRef((function(r,o){var a;const i=Jp({props:r,name:"JoyButton"}),{children:l,action:s,color:c="primary",variant:u="solid",size:d="md",fullWidth:p=!1,startDecorator:f,endDecorator:m,loading:g=!1,loadingPosition:h="center",loadingIndicator:v,disabled:b,component:y,slots:w={},slotProps:x={}}=i,S=ic(i,Cb),C=n.useContext(_h),k=n.useContext(Lh),O=r.variant||C.variant||u,I=r.size||C.size||d,E=r.color||C.color||c,P=null!=(a=r.loading||r.disabled)?a:C.disabled||g||b,N=n.useRef(null),$=yd(N,o),{focusVisible:z,setFocusVisible:R,getRootProps:D}=uf(Bi({},i,{disabled:P,rootRef:$})),T=null!=v?v:e(Xh,{color:E,thickness:{sm:2,md:3,lg:4}[I]||3});n.useImperativeHandle(s,(()=>({focusVisible:()=>{var e;R(!0),null==(e=N.current)||e.focus()}})),[R]);const M=Bi({},i,{color:E,fullWidth:p,variant:O,size:I,focusVisible:z,loading:g,loadingPosition:h,disabled:P}),A=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,fullWidth:a,size:i,variant:l,loading:s}=e,c=Md({root:["root",n&&"disabled",r&&"focusVisible",a&&"fullWidth",l&&`variant${yc(l)}`,t&&`color${yc(t)}`,i&&`size${yc(i)}`,s&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},xb,{});return r&&o&&(c.root+=` ${o}`),c})(M);let V=i["aria-pressed"];"function"==typeof x.root?V=x.root(M)["aria-pressed"]:x.root&&(V=x.root["aria-pressed"]),null!=k&&k.value&&(V=Array.isArray(k.value)?-1!==k.value.indexOf(i.value):k.value===i.value);const _=Bi({},S,{component:y,slots:w,slotProps:x}),[L,F]=jg("root",{ref:o,className:A.root,elementType:Pb,externalForwardedProps:_,getSlotProps:D,ownerState:M,additionalProps:{onClick:e=>{var t;let n=i.onClick;var r;("function"==typeof x.root?n=x.root(M).onClick:x.root&&(n=x.root.onClick),null==(t=n)||t(e),k)&&(null==(r=k.onClick)||r.call(k,e,i.value))},"aria-pressed":V}}),[j,B]=jg("startDecorator",{className:A.startDecorator,elementType:kb,externalForwardedProps:_,ownerState:M}),[H,W]=jg("endDecorator",{className:A.endDecorator,elementType:Ob,externalForwardedProps:_,ownerState:M}),[G,q]=jg("loadingIndicatorCenter",{className:A.loadingIndicatorCenter,elementType:Ib,externalForwardedProps:_,ownerState:M});return t(L,Bi({},F,{children:[(f||g&&"start"===h)&&e(j,Bi({},B,{children:g&&"start"===h?T:f})),l,g&&"center"===h&&e(G,Bi({},q,{children:T})),(m||g&&"end"===h)&&e(H,Bi({},W,{children:g&&"end"===h?T:m}))]}))}));"production"!==process.env.NODE_ENV&&(Nb.propTypes={action:Za.oneOfType([Za.func,Za.shape({current:Za.shape({focusVisible:Za.func.isRequired})})]),children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,endDecorator:Za.node,focusVisibleClassName:Za.string,fullWidth:Za.bool,loading:Za.bool,loadingIndicator:Za.node,loadingPosition:Za.oneOf(["center","end","start"]),onClick:Za.func,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({endDecorator:Za.oneOfType([Za.func,Za.object]),loadingIndicatorCenter:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({endDecorator:Za.elementType,loadingIndicatorCenter:Za.elementType,root:Za.elementType,startDecorator:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,value:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Nb.muiName="Button";const $b=n.createContext(void 0);"production"!==process.env.NODE_ENV&&($b.displayName="ModalDialogVariantColorContext");const zb=Dp("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),Rb=n.createContext(void 0);function Db(e){return Rp("MuiModal",e)}"production"!==process.env.NODE_ENV&&(Rb.displayName="ModalDialogSizeContext"),Dp("MuiModal",["root","hidden","backdrop"]);const Tb=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Tb.displayName="CloseModalContext");const Mb=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],Ab=Kp("div")((({ownerState:e,theme:t})=>Bi({"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:t.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&{visibility:"hidden"}))),Vb=Kp(Ab,{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_b=Kp("div")((({theme:e})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:e.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"}))),Lb=Kp(_b,{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({}),Fb=n.forwardRef((function(r,o){const a=Jp({props:r,name:"JoyModal"}),{children:i,container:l,disableAutoFocus:s=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:u=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:f=!1,hideBackdrop:m=!1,keepMounted:g=!1,onClose:h,open:v,component:b,slots:y={},slotProps:w={}}=a,x=ic(a,Mb),S=Bi({},a,{disableAutoFocus:s,disableEnforceFocus:c,disableEscapeKeyDown:u,disablePortal:d,disableRestoreFocus:p,disableScrollLock:f,hideBackdrop:m,keepMounted:g}),{getRootProps:C,getBackdropProps:k,rootRef:O,portalRef:I,isTopModal:E}=nm(Bi({},S,{rootRef:o})),P=(e=>{const{open:t}=e;return Md({root:["root",!t&&"hidden"],backdrop:["backdrop"]},Db,{})})(S),N=Bi({},x,{component:b,slots:y,slotProps:w}),[$,z]=jg("root",{ref:O,className:P.root,elementType:Vb,externalForwardedProps:N,getSlotProps:C,ownerState:S}),[R,D]=jg("backdrop",{className:P.backdrop,elementType:Lb,externalForwardedProps:N,getSlotProps:k,ownerState:S});return g||v?e(Tb.Provider,{value:h,children:e(qf,{ref:I,container:l,disablePortal:d,children:t($,Bi({},z,{children:[m?null:e(R,Bi({},D)),e(Cf,{disableEnforceFocus:c,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:E,open:v,children:n.Children.only(i)&&n.cloneElement(i,Bi({},void 0===i.props.tabIndex&&{tabIndex:-1}))})]}))})}):null}));function jb(e){return Rp("MuiDrawer",e)}"production"!==process.env.NODE_ENV&&(Fb.propTypes={children:od.isRequired,component:Za.elementType,container:Za.oneOfType([ld,Za.func]),disableAutoFocus:Za.bool,disableEnforceFocus:Za.bool,disableEscapeKeyDown:Za.bool,disablePortal:Za.bool,disableRestoreFocus:Za.bool,disableScrollLock:Za.bool,hideBackdrop:Za.bool,keepMounted:Za.bool,onClose:Za.func,onKeyDown:Za.func,open:Za.bool.isRequired,slotProps:Za.shape({backdrop:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({backdrop:Za.elementType,root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])}),Dp("MuiDrawer",["root","hidden","backdrop","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const Bb=["children","anchor","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","color","variant","invertedColors","size","onClose","onKeyDown","open","component","slots","slotProps"],Hb=Kp(Ab,{name:"JoyDrawer",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Bi({"--Drawer-transitionDuration":"0.3s","--Drawer-transitionFunction":"ease","--ModalClose-radius":"max((var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(350px, 30%, 100%)","--Drawer-horizontalSize":"clamp(256px, 20%, 100%)","--Drawer-titleMargin":"0.625rem 0.75rem calc(0.625rem / 2)"},"md"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(400px, 45%, 100%)","--Drawer-horizontalSize":"clamp(300px, 30%, 100%)","--Drawer-titleMargin":"0.75rem 0.75rem calc(0.75rem / 2)"},"lg"===e.size&&{"--ModalClose-inset":"0.75rem","--Drawer-verticalSize":"clamp(500px, 60%, 100%)","--Drawer-horizontalSize":"clamp(440px, 60%, 100%)","--Drawer-titleMargin":"1rem 1rem calc(1rem / 2)"},{transitionProperty:"visibility",transitionDelay:e.open?"0s":"var(--Drawer-transitionDuration)"},!e.open&&{visibility:"hidden"}))),Wb=Kp(_b,{name:"JoyDrawer",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})((({ownerState:e})=>({opacity:e.open?1:0,transition:"opacity var(--Drawer-transitionDuration) ease-in-out"}))),Gb=Kp("div",{name:"JoyDrawer",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>{var n;return Bi({},e.typography[`body-${t.size}`],{boxShadow:e.shadow.md,backgroundColor:e.vars.palette.background.surface,outline:0,display:"flex",flexDirection:"column",position:"fixed",boxSizing:"border-box",overflow:"auto"},"left"===t.anchor&&{top:0,left:0,transform:t.open?"translateX(0)":"translateX(-100%)"},"right"===t.anchor&&{top:0,right:0,transform:t.open?"translateX(0)":"translateX(100%)"},"top"===t.anchor&&{top:0,transform:t.open?"translateY(0)":"translateY(-100%)"},"bottom"===t.anchor&&{bottom:0,transform:t.open?"translateY(0)":"translateY(100%)"},{height:t.anchor.match(/(left|right)/)?"100%":"min(100vh, var(--Drawer-verticalSize))",width:t.anchor.match(/(top|bottom)/)?"100vw":"min(100vw, var(--Drawer-horizontalSize))",transition:"transform var(--Drawer-transitionDuration) var(--Drawer-transitionFunction)"},"solid"===t.variant&&t.color&&t.invertedColors&&Nh(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&$h(t.color)(e),null==(n=e.variants[t.variant])?void 0:n[t.color],{[`& > .${zb.root}`]:{"--unstable_DialogTitle-margin":"var(--Drawer-titleMargin)"}})})),qb=n.forwardRef((function(r,o){const a=Jp({props:r,name:"JoyDrawer"}),{children:i,anchor:l="left",container:s,disableAutoFocus:c=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:d=!1,disablePortal:p=!1,disableRestoreFocus:f=!1,disableScrollLock:m=!1,hideBackdrop:g=!1,color:h="neutral",variant:v="plain",invertedColors:b=!1,size:y="md",onClose:w,open:x,component:S,slots:C={},slotProps:k={}}=a,O=ic(a,Bb),I=Bi({},a,{anchor:l,disableAutoFocus:c,disableEnforceFocus:u,disableEscapeKeyDown:d,disablePortal:p,disableRestoreFocus:f,disableScrollLock:m,hideBackdrop:g,invertedColors:b,color:h,variant:v,size:y}),{getRootProps:E,getBackdropProps:P,rootRef:N,portalRef:$,isTopModal:z}=nm(Bi({},I,{rootRef:o,children:null})),R=(e=>{const{open:t,variant:n,color:r,size:o}=e;return Md({root:["root",!t&&"hidden",n&&`variant${yc(n)}`,r&&`color${yc(r)}`,o&&`size${yc(o)}`],backdrop:["backdrop"],content:["content"]},jb,{})})(I),D=Bi({},O,{component:S,slots:C,slotProps:k}),T=hd(),M=hd(),A=n.useMemo((()=>({variant:v,color:h,labelledBy:T,describedBy:M})),[h,v,T,M]),[V,_]=jg("root",{ref:N,className:R.root,elementType:Hb,externalForwardedProps:D,getSlotProps:E,ownerState:I}),[L,F]=jg("backdrop",{className:R.backdrop,elementType:Wb,externalForwardedProps:D,getSlotProps:P,ownerState:I}),[j,B]=jg("content",{className:R.content,elementType:Gb,additionalProps:{tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":T,"aria-describedby":M},externalForwardedProps:D,ownerState:I});return e(Tb.Provider,{value:w,children:e(Rb.Provider,{value:y,children:e($b.Provider,{value:A,children:e(qf,{ref:$,container:s,disablePortal:p,children:t(V,Bi({},_,{children:[g?null:e(L,Bi({},F)),e(Cf,{disableEnforceFocus:u,disableAutoFocus:c,disableRestoreFocus:f,isEnabled:z,open:x,children:e(j,Bi({},B,{children:i}))})]}))})})})})}));"production"!==process.env.NODE_ENV&&(qb.propTypes={anchor:Za.oneOf(["bottom","left","right","top"]),children:Za.node,color:Za.oneOf(["danger","neutral","primary","success","warning"]),component:Za.elementType,container:Za.oneOfType([ld,Za.func]),disableAutoFocus:Za.bool,disableEnforceFocus:Za.bool,disableEscapeKeyDown:Za.bool,disablePortal:Za.bool,disableRestoreFocus:Za.bool,disableScrollLock:Za.bool,hideBackdrop:Za.bool,invertedColors:Za.bool,onClose:Za.func,onKeyDown:Za.func,open:Za.bool.isRequired,size:Za.oneOf(["sm","md","lg"]),slotProps:Za.shape({backdrop:Za.oneOfType([Za.func,Za.object]),content:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({backdrop:Za.elementType,content:Za.elementType,root:Za.elementType}),variant:Za.oneOf(["outlined","plain","soft","solid"])});const Ub=function(t={}){const{createStyledComponent:r=Pp,useThemeProps:o=Np,componentName:a="MuiGrid"}=t,i=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(i.displayName="GridOverflowContext");const l=r(bp,wp,yp,hp,xp,Sp,vp),s=n.forwardRef((function(t,r){var s,c,u,d,p,f,m,g;const h=bu(),v=xu(o(t)),b=n.useContext(i),{className:y,children:w,columns:x=12,container:S=!1,component:C="div",direction:k="row",wrap:O="wrap",spacing:I=0,rowSpacing:E=I,columnSpacing:P=I,disableEqualOverflow:N,unstable_level:$=0}=v,z=ic(v,Ip);let R=N;$&&void 0!==N&&(R=t.disableEqualOverflow);const D={},T={},M={};Object.entries(z).forEach((([e,t])=>{void 0!==h.breakpoints.values[e]?D[e]=t:void 0!==h.breakpoints.values[e.replace("Offset","")]?T[e.replace("Offset","")]=t:M[e]=t}));const A=null!=(s=t.columns)?s:$?void 0:x,V=null!=(c=t.spacing)?c:$?void 0:I,_=null!=(u=null!=(d=t.rowSpacing)?d:t.spacing)?u:$?void 0:E,L=null!=(p=null!=(f=t.columnSpacing)?f:t.spacing)?p:$?void 0:P,F=Bi({},v,{level:$,columns:A,container:S,direction:k,wrap:O,spacing:V,rowSpacing:_,columnSpacing:L,gridSize:D,gridOffset:T,disableEqualOverflow:null!=(m=null!=(g=R)?g:b)&&m,parentDisableEqualOverflow:b}),j=((e,t)=>{const{container:n,direction:r,spacing:o,wrap:i,gridSize:l}=e;return Md({root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...Op(r),...Cp(l),...n?kp(o,t.breakpoints.keys[0]):[]]},(e=>Pu(a,e)),{})})(F,h);let B=e(l,Bi({ref:r,as:C,ownerState:F,className:Ou(j.root,y)},M,{children:n.Children.map(w,(e=>{var t;return n.isValidElement(e)&&ud(e,["Grid"])?n.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:$+1}):e}))}));return void 0!==R&&R!==(null!=b&&b)&&(B=e(i.Provider,{value:R,children:B})),B}));return"production"!==process.env.NODE_ENV&&(s.propTypes={children:Za.node,className:Za.string,columns:Za.oneOfType([Za.arrayOf(Za.number),Za.number,Za.object]),columnSpacing:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.number,Za.string])),Za.number,Za.object,Za.string]),component:Za.elementType,container:Za.bool,direction:Za.oneOfType([Za.oneOf(["column-reverse","column","row-reverse","row"]),Za.arrayOf(Za.oneOf(["column-reverse","column","row-reverse","row"])),Za.object]),disableEqualOverflow:Za.bool,lg:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),lgOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),md:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),mdOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),rowSpacing:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.number,Za.string])),Za.number,Za.object,Za.string]),sm:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),smOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),spacing:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.number,Za.string])),Za.number,Za.object,Za.string]),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),wrap:Za.oneOf(["nowrap","wrap-reverse","wrap"]),xl:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),xlOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),xs:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),xsOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number])}),s.muiName="Grid",s}({createStyledComponent:Kp("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Jp({props:e,name:"JoyGrid"})});function Yb(e){return Rp("MuiListItemDecorator",e)}"production"!==process.env.NODE_ENV&&(Ub.propTypes={children:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])}),Dp("MuiListItemDecorator",["root"]);const Kb=["component","className","children","slots","slotProps"],Jb=Kp("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Bi({boxSizing:"border-box",display:"inline-flex",alignItems:`var(--unstable_ListItemDecorator-alignItems, ${"horizontal"===e.parentOrientation?"center":"initial"})`},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",marginInlineEnd:"calc(-1 * var(--ListItem-gap))"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center",marginBlockEnd:"calc(-1 * var(--ListItem-gap))"}))),Xb=n.forwardRef((function(t,r){const o=Jp({props:t,name:"JoyListItemDecorator"}),{component:a,className:i,children:l,slots:s={},slotProps:c={}}=o,u=ic(o,Kb),d=Bi({parentOrientation:n.useContext(mh)},o),p=Md({root:["root"]},Yb,{}),f=Bi({},u,{component:a,slots:s,slotProps:c}),[m,g]=jg("root",{ref:r,className:Ou(p.root,i),elementType:Jb,externalForwardedProps:f,ownerState:d});return e(m,Bi({},g,{children:l}))}));function Qb(e){return Rp("MuiMenu",e)}"production"!==process.env.NODE_ENV&&(Xb.propTypes={children:Za.node,className:Za.string,component:Za.elementType,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])}),Dp("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const Zb=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],ey=Kp(ch,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;const o=null==(n=e.variants[t.variant])?void 0:n[t.color];return[Bi({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==o?void 0:o.backgroundColor)||(null==o?void 0:o.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},nh,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=o&&o.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},"solid"===t.variant&&t.color&&t.invertedColors&&Nh(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&$h(t.color)(e),null==(r=e.variants[t.variant])?void 0:r[t.color])]})),ty=n.forwardRef((function(t,r){var o;const a=Jp({props:t,name:"JoyMenu"}),{actions:i,children:l,color:s="neutral",component:c,disablePortal:u=!1,keepMounted:d=!1,id:p,invertedColors:f=!1,onItemsChange:m,modifiers:g,variant:h="outlined",size:v="md",slots:b={},slotProps:y={}}=a,w=ic(a,Zb),{contextValue:x,getListboxProps:S,dispatch:C,open:k,triggerElement:O}=function(e={}){var t,r;const{listboxRef:o,onItemsChange:a,id:i,disabledItemsFocusable:l=!0,disableListWrap:s=!1,autoFocus:c=!0,componentName:u="useMenu"}=e,d=n.useRef(null),p=yd(d,o),f=null!=(t=hd(i))?t:"",{state:{open:m,changeReason:g},dispatch:h,triggerElement:v,registerPopup:b}=null!=(r=n.useContext(df))?r:Wf,y=n.useRef(m),{subitems:w,contextValue:x}=Bf(),S=n.useMemo((()=>Array.from(w.keys())),[w]),C=n.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=w.get(e))?void 0:n.ref.current)?t:null}),[w]),k=n.useCallback((e=>{var t;return(null==w||null==(t=w.get(e))?void 0:t.disabled)||!1}),[w]),O=n.useCallback((e=>{var t,n;return(null==(t=w.get(e))?void 0:t.label)||(null==(n=w.get(e))||null==(n=n.ref.current)?void 0:n.innerText)}),[w]),I=n.useMemo((()=>({listboxRef:d})),[d]),{dispatch:E,getRootProps:P,contextValue:N,state:{highlightedValue:$},rootRef:z}=_f({disabledItemsFocusable:l,disableListWrap:s,focusManagement:"DOM",getItemDomElement:C,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:k,items:S,getItemAsString:O,rootRef:p,onItemsChange:a,reducerActionContext:I,selectionMode:"none",stateReducer:Ff,componentName:u});Zu((()=>{b(f)}),[f,b]),Zu((()=>{m&&"keydown"===(null==g?void 0:g.type)&&"ArrowUp"===g.key&&E({type:If.highlightLast,event:g})}),[m,g,E]),n.useEffect((()=>{var e;m&&c&&$&&!y.current&&(null==(e=w.get($))||null==(e=e.ref)||null==(e=e.current)||e.focus())}),[m,c,$,w,S]),n.useEffect((()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==$&&(null==w||null==(t=w.get($))||null==(t=t.ref.current)||t.focus())}),[$,w]);const R=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===v||h({type:vf.blur,event:t})},D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"===t.key&&h({type:vf.escapeKeyDown,event:t})},T=(e={})=>({onBlur:R(e),onKeyDown:D(e)});return n.useDebugValue({subitems:w,highlightedValue:$}),{contextValue:Bi({},x,N),dispatch:E,getListboxProps:(e={})=>{const t=Hf(T,P),n=tf(e);return Bi({},e,n,t(n),{id:f,role:"menu"})},highlightedValue:$,listboxRef:z,menuItems:w,open:m,triggerElement:v}}({onItemsChange:m,id:p,listboxRef:r});n.useImperativeHandle(i,(()=>({dispatch:C,resetHighlight:()=>C({type:If.resetHighlight,event:null})})),[C]);const I=Bi({},a,{disablePortal:u,invertedColors:f,color:s,variant:h,size:v,open:k,nesting:!1,row:!1}),E=(e=>{const{open:t,variant:n,color:r,size:o}=e;return Md({root:["root",t&&"expanded",n&&`variant${yc(n)}`,r&&`color${yc(r)}`,o&&`size${yc(o)}`],listbox:["listbox"]},Qb,{})})(I),P=Bi({},w,{component:c,slots:b,slotProps:y}),N=n.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...g||[]]),[g]),$=lf({elementType:ey,getSlotProps:S,externalForwardedProps:P,externalSlotProps:{},ownerState:I,additionalProps:{anchorEl:O,open:k&&null!==O,disablePortal:u,keepMounted:d,modifiers:N},className:E.root});return e(ey,Bi({},$,!(null!=(o=a.slots)&&o.root)&&{as:Rg,slots:{root:c||"ul"}},{children:e(Gf,{value:x,children:e(Ah,{variant:f?void 0:h,color:s,children:e(Kg.Provider,{value:"menu",children:e(rh,{nested:!0,children:l})})})})}))}));function ny(e){return Rp("MuiMenuButton",e)}"production"!==process.env.NODE_ENV&&(ty.propTypes={actions:sd,children:Za.node,color:Za.oneOf(["danger","neutral","primary","success","warning"]),component:Za.elementType,disablePortal:Za.bool,id:Za.string,invertedColors:Za.bool,keepMounted:Za.bool,modifiers:Za.arrayOf(Za.shape({data:Za.object,effect:Za.func,enabled:Za.bool,fn:Za.func,name:Za.any,options:Za.object,phase:Za.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Za.arrayOf(Za.string),requiresIfExists:Za.arrayOf(Za.string)})),onClose:Za.func,onItemsChange:Za.func,open:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Dp("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);const ry=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],oy=Kp("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(Eb),ay=Kp("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),iy=Kp("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),ly=Kp("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return Bi({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),sy=n.forwardRef((function(r,o){var a;const i=Jp({props:r,name:"JoyMenuButton"}),{children:l,color:s="neutral",component:c,disabled:u=!1,endDecorator:d,loading:p=!1,loadingPosition:f="center",loadingIndicator:m,size:g="md",slotProps:h={},slots:v={},startDecorator:b,variant:y="outlined"}=i,w=ic(i,ry),x=n.useContext(_h),S=r.variant||x.variant||y,C=r.size||x.size||g,k=null!=(a=r.disabled)?a:x.disabled||u||p,{getRootProps:O,open:I,active:E}=function(e={}){const{disabled:t=!1,focusableWhenDisabled:r,rootRef:o}=e,a=n.useContext(df);if(null===a)throw new Error("useMenuButton: no menu context available.");const{state:i,dispatch:l,registerTrigger:s,popupId:c}=a,{getRootProps:u,rootRef:d,active:p}=uf({disabled:t,focusableWhenDisabled:r,rootRef:o}),f=yd(d,s),m=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||l({type:vf.toggle,event:t})},g=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),l({type:vf.open,event:t}))},h=(e={})=>({onClick:m(e),onKeyDown:g(e)});return{active:p,getRootProps:(e={})=>{const t=tf(e),n=Hf(h,u);return Bi({"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":c},e,t,n(t),{tabIndex:0,ref:f})},open:i.open,rootRef:f}}({rootRef:o,disabled:k}),P=null!=m?m:e(Xh,{color:s,thickness:{sm:2,md:3,lg:4}[C]||3}),N=Bi({},i,{active:E,color:s,disabled:k,open:I,size:C,variant:S}),$=(e=>{const{color:t,disabled:n,fullWidth:r,size:o,variant:a,loading:i}=e;return Md({root:["root",n&&"disabled",r&&"fullWidth",a&&`variant${yc(a)}`,t&&`color${yc(t)}`,o&&`size${yc(o)}`,i&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},ny,{})})(N),z=Bi({},w,{component:c,slots:v,slotProps:h}),[R,D]=jg("root",{elementType:oy,getSlotProps:O,externalForwardedProps:z,ref:o,ownerState:N,className:$.root}),[T,M]=jg("startDecorator",{className:$.startDecorator,elementType:ay,externalForwardedProps:z,ownerState:N}),[A,V]=jg("endDecorator",{className:$.endDecorator,elementType:iy,externalForwardedProps:z,ownerState:N}),[_,L]=jg("loadingIndicatorCenter",{className:$.loadingIndicatorCenter,elementType:ly,externalForwardedProps:z,ownerState:N});return t(R,Bi({},D,{children:[(b||p&&"start"===f)&&e(T,Bi({},M,{children:p&&"start"===f?P:b})),l,p&&"center"===f&&e(_,Bi({},L,{children:P})),(d||p&&"end"===f)&&e(A,Bi({},V,{children:p&&"end"===f?P:d}))]}))}));function cy(e){return Rp("MuiMenuItem",e)}"production"!==process.env.NODE_ENV&&(sy.propTypes={children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","info","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,endDecorator:Za.node,fullWidth:Za.bool,loading:Za.bool,loadingIndicator:Za.node,loadingPosition:Za.oneOf(["center","end","start"]),size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({endDecorator:Za.oneOfType([Za.func,Za.object]),loadingIndicatorCenter:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({endDecorator:Za.elementType,loadingIndicatorCenter:Za.elementType,root:Za.elementType,startDecorator:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Dp("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const uy=["children","disabled","component","selected","color","orientation","variant","slots","slotProps","id"],dy=Kp(hh,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),py=n.memo(n.forwardRef((function(t,r){const o=Jp({props:t,name:"JoyMenuItem"}),a=n.useContext(Gg),{children:i,disabled:l=!1,component:s="li",selected:c=!1,color:u="neutral",orientation:d="horizontal",variant:p="plain",slots:f={},slotProps:m={},id:g}=o,h=ic(o,uy),{variant:v=p,color:b=u}=Mh(t.variant,t.color),{getRootProps:y,disabled:w,focusVisible:x}=Kf({id:g,disabled:l,rootRef:r}),S=Bi({},o,{component:s,color:b,disabled:w,focusVisible:x,orientation:d,selected:c,row:a,variant:v}),C=(e=>{const{focusVisible:t,disabled:n,selected:r,color:o,variant:a}=e;return Md({root:["root",t&&"focusVisible",n&&"disabled",r&&"selected",o&&`color${yc(o)}`,a&&`variant${yc(a)}`]},cy,{})})(S),k=Bi({},h,{component:s,slots:f,slotProps:m}),[O,I]=jg("root",{ref:r,elementType:dy,getSlotProps:y,externalForwardedProps:k,className:C.root,ownerState:S});return e(mh.Provider,{value:d,children:e(O,Bi({},I,{children:i}))})}))),fy=n.forwardRef((function(t,r){const{contextValue:o,id:a}=function(e){const t=n.useContext(Lf);if(!t)throw new Error("MenuItem: ListContext was not found.");const r=hd(e),{getItemState:o,dispatch:a}=t;let i;i=null!=r?o(r):{focusable:!0,highlighted:!1,selected:!1};const{highlighted:l,selected:s,focusable:c}=i,u=n.useCallback((e=>{if(e!==r)throw new Error(["Base UI MenuItem: Tried to access the state of another MenuItem.",`itemValue: ${e} | id: ${r}`,"This is unsupported when the MenuItem uses the MenuItemContextStabilizer as a performance optimization."].join("/n"));return{highlighted:l,selected:s,focusable:c}}),[l,s,c,r]);return{contextValue:n.useMemo((()=>({dispatch:a,getItemState:u})),[a,u]),id:r}}(t.id);return e(Lf.Provider,{value:o,children:e(py,Bi({},t,{id:a,ref:r}))})}));"production"!==process.env.NODE_ENV&&(fy.propTypes={children:Za.node,id:Za.string});var my=function(){throw new Error(["MUI: `TextField` component has been removed in favor of Input composition.","","To migrate, run `npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>`.","For the codemod detail, visit https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-text-field-to-input\n\nTo learn more why it has been removed, visit the RFC https://github.com/mui/material-ui/issues/34176"].join("\n"))};function gy({size:n=80,strokeWidth:r=8,color:o="#4c3fdd"}){return t("svg",{width:n,height:n,viewBox:"0 0 200 200",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("defs",{children:[t("linearGradient",{id:"spinner-secondHalf",children:[e("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),t("linearGradient",{id:"spinner-firstHalf",children:[e("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),t("g",{strokeWidth:r,children:[e("path",{stroke:"url(#spinner-secondHalf)",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${200-r/2} 100`}),e("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} 100`}),e("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} ${100-r/4}`})]}),e("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const hy=rn.div`
|
|
174
144
|
position: absolute;
|
|
175
145
|
left: calc(50% - 40px);
|
|
176
146
|
top: calc(50% - 40px);
|
|
177
|
-
`,
|
|
147
|
+
`,vy=rn.div`
|
|
178
148
|
position: absolute;
|
|
179
149
|
top: 28px;
|
|
180
150
|
font-size: var(---font-size--small);
|
|
181
151
|
color: black;
|
|
182
152
|
width: 80px;
|
|
183
153
|
text-align: center;
|
|
184
|
-
`;function
|
|
154
|
+
`;function by(n){return t(hy,{children:[e(gy,{...n}),e(vy,{children:"Loading"})]})}const yy=en`
|
|
185
155
|
position: relative;
|
|
186
156
|
transition:
|
|
187
157
|
background-color 0.1s ease,
|
|
@@ -210,15 +180,15 @@ object-assign
|
|
|
210
180
|
width: 90%;
|
|
211
181
|
max-height: 90%;
|
|
212
182
|
}
|
|
213
|
-
`,
|
|
183
|
+
`,wy=en`
|
|
214
184
|
padding: var(--spacing--small) var(--spacing--medium);
|
|
215
185
|
font-size: 0.9rem;
|
|
216
186
|
font-weight: 600;
|
|
217
|
-
`,
|
|
187
|
+
`,xy=en`
|
|
218
188
|
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
219
189
|
font-size: 0.8rem;
|
|
220
190
|
font-weight: 500;
|
|
221
|
-
`,
|
|
191
|
+
`,Sy=en`
|
|
222
192
|
background-color: var(--color--primary);
|
|
223
193
|
color: var(--color--white);
|
|
224
194
|
border: none;
|
|
@@ -230,7 +200,7 @@ object-assign
|
|
|
230
200
|
&:disabled {
|
|
231
201
|
background-color: #767676;
|
|
232
202
|
}
|
|
233
|
-
`,
|
|
203
|
+
`,Cy=en`
|
|
234
204
|
background-color: var(--color--white);
|
|
235
205
|
color: var(--color--primary);
|
|
236
206
|
border: 1px solid var(--color--primary);
|
|
@@ -245,7 +215,7 @@ object-assign
|
|
|
245
215
|
color: #767676;
|
|
246
216
|
border-color: #767676;
|
|
247
217
|
}
|
|
248
|
-
`,
|
|
218
|
+
`,ky=en`
|
|
249
219
|
background-color: var(--color--red);
|
|
250
220
|
color: white;
|
|
251
221
|
border: none;
|
|
@@ -257,7 +227,7 @@ object-assign
|
|
|
257
227
|
&:disabled {
|
|
258
228
|
background-color: #767676;
|
|
259
229
|
}
|
|
260
|
-
`,
|
|
230
|
+
`,Oy=en`
|
|
261
231
|
background-color: transparent;
|
|
262
232
|
color: var(--color--primary-light);
|
|
263
233
|
border: none;
|
|
@@ -272,7 +242,7 @@ object-assign
|
|
|
272
242
|
color: #767676;
|
|
273
243
|
border-color: #767676;
|
|
274
244
|
}
|
|
275
|
-
`,
|
|
245
|
+
`,Iy=en`
|
|
276
246
|
background-color: var(--color--debug);
|
|
277
247
|
color: var(--color--white);
|
|
278
248
|
border: none;
|
|
@@ -284,24 +254,24 @@ object-assign
|
|
|
284
254
|
&:disabled {
|
|
285
255
|
background-color: var(--color--debug-very-light);
|
|
286
256
|
}
|
|
287
|
-
`,
|
|
288
|
-
${
|
|
257
|
+
`,Ey=rn.a`
|
|
258
|
+
${yy}
|
|
289
259
|
|
|
290
|
-
${({size:e})=>"small"===e?
|
|
260
|
+
${({size:e})=>"small"===e?xy:wy}
|
|
291
261
|
|
|
292
|
-
${({kind:e})=>"secondary"===e?
|
|
293
|
-
`,
|
|
294
|
-
${
|
|
262
|
+
${({kind:e})=>"secondary"===e?Cy:"danger"===e?ky:"basic"===e?Oy:"debug"===e?Iy:Sy}
|
|
263
|
+
`,Py=rn.button`
|
|
264
|
+
${yy}
|
|
295
265
|
|
|
296
|
-
${({size:e})=>"small"===e?
|
|
266
|
+
${({size:e})=>"small"===e?xy:wy}
|
|
297
267
|
|
|
298
|
-
${({kind:e})=>"secondary"===e?
|
|
268
|
+
${({kind:e})=>"secondary"===e?Cy:"danger"===e?ky:"basic"===e?Oy:"debug"===e?Iy:Sy}
|
|
299
269
|
|
|
300
270
|
${({$isSubmitting:e})=>e?en`
|
|
301
271
|
padding-left: 33px;
|
|
302
272
|
pointer-events: none;
|
|
303
273
|
`:en``}
|
|
304
|
-
`,
|
|
274
|
+
`,Ny=rn.span`
|
|
305
275
|
position: absolute;
|
|
306
276
|
left: 10px;
|
|
307
277
|
top: calc(50% - 8px);
|
|
@@ -311,460 +281,426 @@ object-assign
|
|
|
311
281
|
width: 16px;
|
|
312
282
|
height: 16px;
|
|
313
283
|
}
|
|
314
|
-
`;function ll({children:n,...r}){const{type:o,kind:a}=r;if("link"===o)return e(ol,{...r,children:n});if("submit"===o){const{hideSpinner:o=!1,isSubmitting:i}=r;return t(al,{$isSubmitting:i,...r,children:[i&&!o&&e(il,{children:e(qi,{strokeWidth:32,color:"primary"===a?"var(--color--white)":"inherit"})}),n]})}return e(al,{...r,children:n})}const sl=rn.div`
|
|
284
|
+
`;function $y({children:n,...r}){const{type:o,kind:a}=r;if("link"===o)return e(Ey,{...r,children:n});if("submit"===o){const{hideSpinner:o=!1,isSubmitting:i}=r;return t(Py,{$isSubmitting:i,...r,children:[i&&!o&&e(Ny,{children:e(gy,{strokeWidth:32,color:"primary"===a?"var(--color--white)":"inherit"})}),n]})}return e(Py,{...r,children:n})}function zy(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e("defs",{children:e("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function Ry(){return e(zy,{})}const Dy=rn.header`
|
|
315
285
|
display: flex;
|
|
316
|
-
flex-
|
|
317
|
-
align-items:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
overflow: hidden;
|
|
324
|
-
|
|
325
|
-
@media print {
|
|
326
|
-
-webkit-line-clamp: unset;
|
|
327
|
-
}
|
|
328
|
-
`,ul=rn(ll)`
|
|
329
|
-
margin: auto;
|
|
286
|
+
flex-flow: row;
|
|
287
|
+
align-items: center;
|
|
288
|
+
background-color: var(--color--primary);
|
|
289
|
+
width: 100%;
|
|
290
|
+
height: 70px;
|
|
291
|
+
padding: 1rem;
|
|
292
|
+
gap: 1rem;
|
|
330
293
|
|
|
331
294
|
@media print {
|
|
332
295
|
display: none;
|
|
333
296
|
}
|
|
334
|
-
`;function dl({children:n,maxLines:r=3}){const[a,i]=s(!1),l=o(null),[d,p]=s(!1),f=()=>{const{offsetHeight:e,scrollHeight:t}=l.current||{};p(!!(e&&t&&e<t))};return u((()=>(window.addEventListener("resize",f),()=>window.removeEventListener("resize",f))),[l]),c((()=>{f()}),[]),t(sl,{children:[e(cl,{$maxLines:a?void 0:r,ref:l,children:n}),r&&d&&e(ul,{type:"button",kind:"basic",onClick:()=>i(!a),children:a?"Read less":"Read more"})]})}const pl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fl({time:t}){const[n,o]=r.useState((()=>new Date)),a=r.useMemo((()=>new Date(t)),[t]);r.useEffect((()=>{o(new Date)}),[t]),r.useEffect((()=>{if(Math.abs(a.getTime()/1e3-n.getTime()/1e3)<86400){const e=setTimeout((()=>{o(new Date)}),1e4);return()=>{clearTimeout(e)}}return()=>{}}),[n,a]);const i=r.useMemo((()=>{const e=Math.abs(a.getTime()/1e3-n.getTime()/1e3),t=a>n;if(e<60&&!t)return"just now";if(e>604800)return`${a.getDate()} ${pl[a.getMonth()]} ${a.getFullYear()}`;let r;return r=e<120?"a minute":e<2700?`${Math.ceil(e/60).toString()} minutes`:e<5400?"an hour":e<86400?`${Math.ceil(e/3600).toString()} hours`:e<172800?"one day":`${Math.ceil(e/86400).toString()} days`,t?`in ${r}`:`${r} ago`}),[a,n]);return e("time",{dateTime:a.toISOString(),title:a.toLocaleString(),children:i})}var ml=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},gl="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,hl="top",vl="bottom",bl="right",yl="left",wl="auto",xl=[hl,vl,bl,yl],Sl="start",Cl="end",kl="clippingParents",Ol="viewport",Il="popper",El="reference",Pl=xl.reduce((function(e,t){return e.concat([t+"-"+Sl,t+"-"+Cl])}),[]),Nl=[].concat(xl,[wl]).reduce((function(e,t){return e.concat([t,t+"-"+Sl,t+"-"+Cl])}),[]),$l=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zl(e){return e?(e.nodeName||"").toLowerCase():null}function Rl(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dl(e){return e instanceof Rl(e).Element||e instanceof Element}function Tl(e){return e instanceof Rl(e).HTMLElement||e instanceof HTMLElement}function Ml(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Rl(e).ShadowRoot||e instanceof ShadowRoot)}var Al={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Tl(o)&&zl(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Tl(r)&&zl(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Vl(e){return e.split("-")[0]}var _l=Math.max,Ll=Math.min,Fl=Math.round;function jl(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Bl(){return!/^((?!chrome|android).)*safari/i.test(jl())}function Hl(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Tl(e)&&(o=e.offsetWidth>0&&Fl(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Fl(r.height)/e.offsetHeight||1);var i=(Dl(e)?Rl(e):window).visualViewport,l=!Bl()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Wl(e){var t=Hl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Gl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ml(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ql(e){return Rl(e).getComputedStyle(e)}function Ul(e){return["table","td","th"].indexOf(zl(e))>=0}function Yl(e){return((Dl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kl(e){return"html"===zl(e)?e:e.assignedSlot||e.parentNode||(Ml(e)?e.host:null)||Yl(e)}function Jl(e){return Tl(e)&&"fixed"!==ql(e).position?e.offsetParent:null}function Xl(e){for(var t=Rl(e),n=Jl(e);n&&Ul(n)&&"static"===ql(n).position;)n=Jl(n);return n&&("html"===zl(n)||"body"===zl(n)&&"static"===ql(n).position)?t:n||function(e){var t=/firefox/i.test(jl());if(/Trident/i.test(jl())&&Tl(e)&&"fixed"===ql(e).position)return null;var n=Kl(e);for(Ml(n)&&(n=n.host);Tl(n)&&["html","body"].indexOf(zl(n))<0;){var r=ql(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Ql(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zl(e,t,n){return _l(e,Ll(t,n))}function es(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ts(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ns={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Vl(n.placement),s=Ql(l),c=[yl,bl].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return es("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ts(e,xl))}(o.padding,n),d=Wl(a),p="y"===s?hl:yl,f="y"===s?vl:bl,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=Xl(a),v=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,b=m/2-g/2,y=u[p],w=v-d[c]-u[f],x=v/2-d[c]/2+b,S=Zl(y,x,w),C=s;n.modifiersData[r]=((t={})[C]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Gl(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rs(e){return e.split("-")[1]}var os={top:"auto",right:"auto",bottom:"auto",left:"auto"};function as(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=h.x,g=h.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=yl,w=hl,x=window;if(c){var S=Xl(n),C="clientHeight",k="clientWidth";if(S===Rl(n)&&"static"!==ql(S=Yl(n)).position&&"absolute"===l&&(C="scrollHeight",k="scrollWidth"),o===hl||(o===yl||o===bl)&&a===Cl)w=vl,g-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[C])-r.height,g*=s?1:-1;if(o===yl||(o===hl||o===vl)&&a===Cl)y=bl,f-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-r.width,f*=s?1:-1}var O,I=Object.assign({position:l},c&&os),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Fl(n*o)/o||0,y:Fl(r*o)/o||0}}({x:f,y:g},Rl(n)):{x:f,y:g};return f=E.x,g=E.y,s?Object.assign({},I,((O={})[w]=b?"0":"",O[y]=v?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",O)):Object.assign({},I,((t={})[w]=b?g+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var is={passive:!0};var ls={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=Rl(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,is)})),l&&s.addEventListener("resize",n.update,is),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,is)})),l&&s.removeEventListener("resize",n.update,is)}},data:{}},ss={left:"right",right:"left",bottom:"top",top:"bottom"};function cs(e){return e.replace(/left|right|bottom|top/g,(function(e){return ss[e]}))}var us={start:"end",end:"start"};function ds(e){return e.replace(/start|end/g,(function(e){return us[e]}))}function ps(e){var t=Rl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fs(e){return Hl(Yl(e)).left+ps(e).scrollLeft}function ms(e){var t=ql(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gs(e){return["html","body","#document"].indexOf(zl(e))>=0?e.ownerDocument.body:Tl(e)&&ms(e)?e:gs(Kl(e))}function hs(e,t){var n;void 0===t&&(t=[]);var r=gs(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Rl(r),i=o?[a].concat(a.visualViewport||[],ms(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(hs(Kl(i)))}function vs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bs(e,t,n){return t===Ol?vs(function(e,t){var n=Rl(e),r=Yl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Bl();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+fs(e),y:s}}(e,n)):Dl(t)?function(e,t){var n=Hl(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):vs(function(e){var t,n=Yl(e),r=ps(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=_l(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=_l(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+fs(e),s=-r.scrollTop;return"rtl"===ql(o||n).direction&&(l+=_l(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Yl(e)))}function ys(e,t,n,r){var o="clippingParents"===t?function(e){var t=hs(Kl(e)),n=["absolute","fixed"].indexOf(ql(e).position)>=0&&Tl(e)?Xl(e):e;return Dl(n)?t.filter((function(e){return Dl(e)&&Gl(e,n)&&"body"!==zl(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=bs(e,n,r);return t.top=_l(o.top,t.top),t.right=Ll(o.right,t.right),t.bottom=Ll(o.bottom,t.bottom),t.left=_l(o.left,t.left),t}),bs(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ws(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Vl(o):null,i=o?rs(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case hl:t={x:l,y:n.y-r.height};break;case vl:t={x:l,y:n.y+n.height};break;case bl:t={x:n.x+n.width,y:s};break;case yl:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?Ql(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Sl:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Cl:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function xs(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?kl:l,c=n.rootBoundary,u=void 0===c?Ol:c,d=n.elementContext,p=void 0===d?Il:d,f=n.altBoundary,m=void 0!==f&&f,g=n.padding,h=void 0===g?0:g,v=es("number"!=typeof h?h:ts(h,xl)),b=p===Il?El:Il,y=e.rects.popper,w=e.elements[m?b:p],x=ys(Dl(w)?w:w.contextElement||Yl(e.elements.popper),s,u,i),S=Hl(e.elements.reference),C=ws({reference:S,element:y,strategy:"absolute",placement:o}),k=vs(Object.assign({},y,C)),O=p===Il?k:S,I={top:x.top-O.top+v.top,bottom:O.bottom-x.bottom+v.bottom,left:x.left-O.left+v.left,right:O.right-x.right+v.right},E=e.modifiersData.offset;if(p===Il&&E){var P=E[o];Object.keys(I).forEach((function(e){var t=[bl,vl].indexOf(e)>=0?1:-1,n=[hl,vl].indexOf(e)>=0?"y":"x";I[e]+=P[n]*t}))}return I}function Ss(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Nl:s,u=rs(r),d=u?l?Pl:Pl.filter((function(e){return rs(e)===u})):xl,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=xs(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Vl(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Cs={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,v=Vl(h),b=s||(v===h||!m?[cs(h)]:function(e){if(Vl(e)===wl)return[];var t=cs(e);return[ds(e),t,ds(t)]}(h)),y=[h].concat(b).reduce((function(e,n){return e.concat(Vl(n)===wl?Ss(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,k=y[0],O=0;O<y.length;O++){var I=y[O],E=Vl(I),P=rs(I)===Sl,N=[hl,vl].indexOf(E)>=0,$=N?"width":"height",z=xs(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=N?P?bl:yl:P?vl:hl;w[$]>x[$]&&(R=cs(R));var D=cs(R),T=[];if(a&&T.push(z[E]<=0),l&&T.push(z[R]<=0,z[D]<=0),T.every((function(e){return e}))){k=I,C=!1;break}S.set(I,T)}if(C)for(var M=function(e){var t=y.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},A=m?3:1;A>0;A--){if("break"===M(A))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ks(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[hl,bl,vl,yl].some((function(t){return e[t]>=0}))}var Is={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=xs(t,{elementContext:"reference"}),l=xs(t,{altBoundary:!0}),s=ks(i,r),c=ks(l,o,a),u=Os(s),d=Os(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Es={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Nl.reduce((function(e,n){return e[n]=function(e,t,n){var r=Vl(e),o=[yl,hl].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[yl,bl].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Ps={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ws({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Ns={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,h=xs(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Vl(t.placement),b=rs(t.placement),y=!b,w=Ql(v),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(a){var N,$="y"===w?hl:yl,z="y"===w?vl:bl,R="y"===w?"height":"width",D=S[w],T=D+h[$],M=D-h[z],A=f?-k[R]/2:0,V=b===Sl?C[R]:k[R],_=b===Sl?-k[R]:-C[R],L=t.elements.arrow,F=f&&L?Wl(L):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=j[$],H=j[z],W=Zl(0,C[R],F[R]),G=y?C[R]/2-A-W-B-I.mainAxis:V-W-B-I.mainAxis,q=y?-C[R]/2+A+W+H+I.mainAxis:_+W+H+I.mainAxis,U=t.elements.arrow&&Xl(t.elements.arrow),Y=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,K=null!=(N=null==E?void 0:E[w])?N:0,J=D+q-K,X=Zl(f?Ll(T,D+G-K-Y):T,D,f?_l(M,J):M);S[w]=X,P[w]=X-D}if(l){var Q,Z="x"===w?hl:yl,ee="x"===w?vl:bl,te=S[x],ne="y"===x?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[hl,yl].indexOf(v),ie=null!=(Q=null==E?void 0:E[x])?Q:0,le=ae?re:te-C[ne]-k[ne]-ie+I.altAxis,se=ae?te+C[ne]+k[ne]-ie-I.altAxis:oe,ce=f&&ae?function(e,t,n){var r=Zl(e,t,n);return r>n?n:r}(le,te,se):Zl(f?le:re,te,f?se:oe);S[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function $s(e,t,n){void 0===n&&(n=!1);var r=Tl(t),o=Tl(t)&&function(e){var t=e.getBoundingClientRect(),n=Fl(t.width)/e.offsetWidth||1,r=Fl(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Yl(t),i=Hl(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==zl(t)||ms(a))&&(l=function(e){return e!==Rl(e)&&Tl(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ps(e);var t}(t)),Tl(t)?((s=Hl(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=fs(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function zs(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Rs={placement:"bottom",modifiers:[],strategy:"absolute"};function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ts(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Rs:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rs,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Dl(e)?hs(e):e.contextElement?hs(e.contextElement):[],popper:hs(t)};var i,c,p=function(e){var t=zs(e);return $l.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Ds(t,n)){l.rects={reference:$s(t,Xl(n),"fixed"===l.options.strategy),popper:Wl(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!Ds(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Ms=Ts({defaultModifiers:[ls,Ps,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:Vl(t.placement),variation:rs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,as(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,as(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Al,Es,Cs,Ns,ns,Is]}),As="undefined"!=typeof Element,Vs="function"==typeof Map,_s="function"==typeof Set,Ls="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Fs(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Fs(e[r],t[r]))return!1;return!0}if(Vs&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Fs(r.value[1],t.get(r.value[0])))return!1;return!0}if(_s&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Ls&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(As&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Fs(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var js=y((function(e,t){try{return Fs(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}})),Bs=[],Hs=function(e,t,r){void 0===r&&(r={});var o=n.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Bs},i=n.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=i[0],s=i[1],c=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);f.flushSync((function(){s({styles:ml(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ml(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=n.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return js(o.current,e)?o.current||e:(o.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),d=n.useRef();return gl((function(){d.current&&d.current.setOptions(u)}),[u]),gl((function(){if(null!=e&&null!=t){var n=(r.createPopper||Ms)(e,t,u);return d.current=n,function(){n.destroy(),d.current=null}}}),[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const Ws=rn.div`
|
|
297
|
+
`,Ty=rn.a`
|
|
298
|
+
flex-shrink: 0;
|
|
335
299
|
display: inline-flex;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
300
|
+
`,My=rn.div`
|
|
301
|
+
margin-left: auto;
|
|
302
|
+
display: flex;
|
|
303
|
+
flex-flow: row;
|
|
304
|
+
align-items: center;
|
|
305
|
+
height: 100%;
|
|
306
|
+
gap: var(--spacing--small);
|
|
307
|
+
`,Ay=en`
|
|
308
|
+
&& {
|
|
309
|
+
color: white;
|
|
310
|
+
opacity: 0.9;
|
|
311
|
+
font-size: var(--font-size--small);
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
314
|
+
transition: background-color 0.2s;
|
|
315
|
+
display: flex;
|
|
316
|
+
align-items: center;
|
|
317
|
+
border-radius: var(--border-radius--medium);
|
|
318
|
+
user-select: none;
|
|
319
|
+
font-weight: var(--font-weight--medium);
|
|
320
|
+
border: none;
|
|
321
|
+
text-decoration: none;
|
|
322
|
+
&:hover {
|
|
323
|
+
background-color: rgb(255, 255, 255, 0.1);
|
|
324
|
+
cursor: pointer;
|
|
325
|
+
opacity: 1;
|
|
326
|
+
text-decoration: none;
|
|
327
|
+
}
|
|
360
328
|
}
|
|
329
|
+
`,Vy=rn($y)`
|
|
330
|
+
${Ay}
|
|
331
|
+
gap: var(--spacing--small);
|
|
332
|
+
`,_y=rn(sy)`
|
|
333
|
+
${Ay}
|
|
361
334
|
|
|
362
|
-
|
|
363
|
-
|
|
335
|
+
svg {
|
|
336
|
+
width: 1rem;
|
|
364
337
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
left 0.3s ease-in,
|
|
376
|
-
right 0.3s ease-in;
|
|
338
|
+
`,Ly=rn.div``,Fy=rn.div`
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
`;function jy({currentApp:n,apps:r}){const o=e("svg",{viewBox:"0 0 32 32",children:t("g",{children:[e("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return t(yf,{children:[e(_y,{size:"sm",startDecorator:o,children:n&&e(Fy,{children:n})}),r]})}function By({apps:n,currentApp:r,leftSide:o,rightSide:a,myAccountMenu:i,helpButton:l}){return t(Dy,{children:[e(Ty,{href:"/",children:e(Ry,{})}),e(jy,{apps:n,currentApp:r}),e(Ly,{children:o}),t(My,{children:[a,l?t(Vy,{type:"link",as:l.as,href:l.href,children:[e(Di,{name:["far","circle-question"],size:"small"})," ",l.text||"Help"]}):null,i?t(yf,{children:[e(_y,{size:"sm",startDecorator:e(Di,{name:["far","user"],size:"small"}),children:"My Account"}),i]}):null]})]})}const Hy=rn.div`
|
|
342
|
+
.MuiAutocomplete-root {
|
|
343
|
+
background-color: #f5f5f5;
|
|
344
|
+
border-radius: 8px;
|
|
345
|
+
padding: 6px var(--spacing--medium);
|
|
346
|
+
box-shadow: none;
|
|
347
|
+
border: 1px solid var(--color--grey-line);
|
|
377
348
|
}
|
|
378
349
|
|
|
379
|
-
.
|
|
380
|
-
|
|
350
|
+
.field-has-error & {
|
|
351
|
+
border: 1px solid var(--color--red);
|
|
381
352
|
}
|
|
382
|
-
|
|
383
|
-
.
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
353
|
+
`;function Wy({id:n,options:o,onChange:a,name:i,...l}){const[s,c]=r.useState(l.defaultValue),[u,d]=r.useState(l.defaultValue?.value);return t(Hy,{children:[e(bb,{...l,id:n,options:o,onChange:(e,t,n)=>{c(t),d(t?t?.value:""),a&&a(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:s,renderOption:l.renderOption,name:""}),e(Dv,{name:i,value:u,type:"hidden",sx:{display:"none"}})]})}function Gy(t){return e(dh,{...t})}const qy=rn.div`
|
|
354
|
+
.MuiAutocomplete-root {
|
|
355
|
+
background-color: #f5f5f5;
|
|
356
|
+
border-radius: 8px;
|
|
357
|
+
padding: 6px var(--spacing--small);
|
|
358
|
+
box-shadow: none;
|
|
359
|
+
border: 1px solid var(--color--grey-line);
|
|
387
360
|
}
|
|
388
361
|
|
|
389
|
-
|
|
390
|
-
|
|
362
|
+
.field-has-error & .MuiAutocomplete-root {
|
|
363
|
+
border: 1px solid var(--color--red);
|
|
391
364
|
}
|
|
365
|
+
`,Uy=rn.button`
|
|
366
|
+
float: right;
|
|
367
|
+
border: none;
|
|
368
|
+
background: none;
|
|
369
|
+
color: var(--color--grey-light);
|
|
370
|
+
cursor: pointer;
|
|
371
|
+
margin-left: auto;
|
|
392
372
|
|
|
393
|
-
|
|
394
|
-
|
|
373
|
+
&:hover {
|
|
374
|
+
color: var(--color--grey);
|
|
395
375
|
}
|
|
376
|
+
`;function Yy({defaultValue:n,id:o,name:a,inline:l,onChange:s,SelectedOption:c,...u}){const[d,p]=r.useState((()=>(n||[]).map((e=>{const t=u.options.find((t=>String(t.value)===String(e)));return t?{label:t.label,value:t.value}:null})).filter((e=>null!==e))));return t(qy,{children:[e(bb,{...u,multiple:!0,value:d,onChange:(e,t,n)=>{p(t),s&&s(e,t,n)},renderTags:(t,n)=>l?t.map(((t,r)=>i(pv,{component:"div",...n({index:r}),key:t.label,endDecorator:e(Di,{size:"small",name:["fas","times"]})},t.label))):null,isOptionEqualToValue:(e,t)=>e.value===t.value,name:""}),Array.isArray(d)&&d.map((t=>e(Dv,{name:a,value:t.value,type:"hidden",sx:{display:"none"}},t.value))),!l&&e(Gy,{children:Array.isArray(d)&&d.length>0?d.map((n=>t(th,{children:[c?e(c,{option:n}):n.label,e(Uy,{type:"button",onClick:()=>{p(d.filter((e=>e.value!==n.value)))},children:e(Di,{name:["fas","xmark"]})})]},n.value))):null})]})}const Ky=en`
|
|
377
|
+
position: relative;
|
|
378
|
+
display: inline-flex;
|
|
379
|
+
flex-flow: row nowrap;
|
|
380
|
+
gap: 0.4rem;
|
|
381
|
+
align-items: center;
|
|
382
|
+
justify-content: center;
|
|
383
|
+
border-radius: var(--border-radius--medium);
|
|
384
|
+
text-decoration: none;
|
|
385
|
+
white-space: nowrap;
|
|
386
|
+
`,Jy={medium:en`
|
|
387
|
+
padding: var(--spacing--small) var(--spacing--medium);
|
|
388
|
+
font-size: var(--font-size--medium);
|
|
389
|
+
font-weight: 600;
|
|
390
|
+
`,small:en`
|
|
391
|
+
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
392
|
+
font-size: var(--font-size--small);
|
|
393
|
+
font-weight: 500;
|
|
394
|
+
`,xsmall:en`
|
|
395
|
+
padding: var(--spacing--xxsmall) var(--spacing--xsmall);
|
|
396
|
+
font-size: var(--font-size--xsmall);
|
|
397
|
+
font-weight: 500;
|
|
398
|
+
`,xxsmall:en`
|
|
399
|
+
padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
|
|
400
|
+
font-size: var(--font-size--xxsmall);
|
|
401
|
+
font-weight: 500;
|
|
402
|
+
`},Xy={default:en`
|
|
403
|
+
background-color: transaprent;
|
|
404
|
+
color: var(--color--body);
|
|
405
|
+
border: 1px solid var(--color--grey-line);
|
|
406
|
+
`,danger:en`
|
|
407
|
+
background-color: var(--color--white);
|
|
408
|
+
color: var(--color--danger);
|
|
409
|
+
border: 1px solid var(--color--danger-light);
|
|
410
|
+
`,warning:en`
|
|
411
|
+
background-color: var(--color--white);
|
|
412
|
+
color: var(--color--warning);
|
|
413
|
+
border: 1px solid var(--color--warning-light);
|
|
414
|
+
`,grey:en`
|
|
415
|
+
background-color: var(--color--grey-line);
|
|
416
|
+
color: var(--color--grey-dark);
|
|
417
|
+
border: 1px solid var(--color--grey-line);
|
|
418
|
+
`},Qy=rn.div`
|
|
419
|
+
${Ky}
|
|
396
420
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
421
|
+
${({size:e})=>Jy[e||"medium"]}
|
|
422
|
+
${({kind:e})=>Xy[e||"default"]}
|
|
423
|
+
`;function Zy({children:t,...n}){return e(Qy,{...n,children:t})}const ew=rn.div`
|
|
424
|
+
display: flex;
|
|
425
|
+
flex-flow: wrap;
|
|
426
|
+
justify-content: space-between;
|
|
427
|
+
width: 100%;
|
|
400
428
|
|
|
401
|
-
|
|
402
|
-
|
|
429
|
+
@media print {
|
|
430
|
+
display: none;
|
|
403
431
|
}
|
|
432
|
+
`,tw=rn.ul`
|
|
433
|
+
display: flex;
|
|
434
|
+
flex-flow: row;
|
|
435
|
+
width: 100%;
|
|
436
|
+
flex-wrap: wrap;
|
|
437
|
+
`,nw=rn.li`
|
|
438
|
+
display: inline-block;
|
|
439
|
+
color: var(--color--grey);
|
|
440
|
+
overflow: hidden;
|
|
441
|
+
text-overflow: ellipsis;
|
|
442
|
+
white-space: nowrap;
|
|
443
|
+
max-width: 400px;
|
|
404
444
|
|
|
405
|
-
|
|
406
|
-
|
|
445
|
+
&:not(:last-child) {
|
|
446
|
+
&:after {
|
|
447
|
+
content: "/";
|
|
448
|
+
margin-left: 5px;
|
|
449
|
+
margin-right: 5px;
|
|
450
|
+
color: var(--color--grey-borders);
|
|
451
|
+
}
|
|
452
|
+
a {
|
|
453
|
+
font-weight: 600;
|
|
454
|
+
}
|
|
407
455
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
display: flex;
|
|
415
|
-
align-items: center;
|
|
416
|
-
justify-content: center;
|
|
417
|
-
svg {
|
|
418
|
-
outline: 2px solid var(--color--white);
|
|
419
|
-
background-color: var(--color--white);
|
|
420
|
-
border-radius: 50%;
|
|
456
|
+
`;function rw({children:t}){return e(ew,{children:e(tw,{children:t})})}function ow(t){return e(pv,{...t})}rw.Item=nw;const aw=rn.hr`
|
|
457
|
+
border: 0;
|
|
458
|
+
border-bottom: 1px solid var(--color--grey-line);
|
|
459
|
+
`,iw=rn(qb)`
|
|
460
|
+
&.MuiDrawer-root {
|
|
461
|
+
--Drawer-horizontalSize: clamp(305px, 38%, 100%);
|
|
421
462
|
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
*
|
|
428
|
-
* This source code is licensed under the MIT license found in the
|
|
429
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
430
|
-
*
|
|
431
|
-
* @license MIT
|
|
432
|
-
*/function tc(e,t){return"function"==typeof e?e(t):e}function nc(e,t){return n=>{t.setState((t=>({...t,[e]:tc(n,t[e])})))}}function rc(e){return e instanceof Function}function oc(e,t,n){let r,o=[];return a=>{let i;n.key&&n.debug&&(i=Date.now());const l=e(a);if(!(l.length!==o.length||l.some(((e,t)=>o[t]!==e))))return r;let s;if(o=l,n.key&&n.debug&&(s=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function ac(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:"development"===process.env.NODE_ENV&&n,onChange:r}}const ic="debugHeaders";function lc(e,t,n){var r;let o={id:null!=(r=n.id)?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 e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const sc={createTable:e=>{e.getHeaderGroups=oc((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var a,i;const l=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],c=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))));return cc(t,[...l,...c,...s],e)}),ac(e.options,ic,"getHeaderGroups")),e.getCenterHeaderGroups=oc((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>(n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),cc(t,n,e,"center"))),ac(e.options,ic,"getCenterHeaderGroups")),e.getLeftHeaderGroups=oc((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return cc(t,a,e,"left")}),ac(e.options,ic,"getLeftHeaderGroups")),e.getRightHeaderGroups=oc((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return cc(t,a,e,"right")}),ac(e.options,ic,"getRightHeaderGroups")),e.getFooterGroups=oc((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),ac(e.options,ic,"getFooterGroups")),e.getLeftFooterGroups=oc((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),ac(e.options,ic,"getLeftFooterGroups")),e.getCenterFooterGroups=oc((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),ac(e.options,ic,"getCenterFooterGroups")),e.getRightFooterGroups=oc((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),ac(e.options,ic,"getRightFooterGroups")),e.getFlatHeaders=oc((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ac(e.options,ic,"getFlatHeaders")),e.getLeftFlatHeaders=oc((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ac(e.options,ic,"getLeftFlatHeaders")),e.getCenterFlatHeaders=oc((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ac(e.options,ic,"getCenterFlatHeaders")),e.getRightFlatHeaders=oc((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ac(e.options,ic,"getRightFlatHeaders")),e.getCenterLeafHeaders=oc((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),ac(e.options,ic,"getCenterLeafHeaders")),e.getLeftLeafHeaders=oc((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),ac(e.options,ic,"getLeftLeafHeaders")),e.getRightLeafHeaders=oc((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),ac(e.options,ic,"getRightLeafHeaders")),e.getLeafHeaders=oc((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,a,i,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),ac(e.options,ic,"getLeafHeaders"))}};function cc(e,t,n,r){var o,a;let i=0;const l=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach((e=>{const i=[...a].reverse()[0];let l,s=!1;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),i&&(null==i?void 0:i.column)===l)i.subHeaders.push(e);else{const o=lc(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${a.filter((e=>e.column===l)).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&c(a,t-1)},u=t.map(((e,t)=>lc(n,e,{depth:i,index:t})));c(u,i-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(a=s[0])?void 0:a.headers)?o:[]),s}const uc=(e,t,n,r,o,a,i)=>{let l={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,r),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:oc((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:oc((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),ac(e.options,"debugCells","cell.getContext"))};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,l,t,t.id)))),ac(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:oc((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),ac(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l},dc={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()}}},pc=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};pc.autoRemove=e=>Sc(e);const fc=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};fc.autoRemove=e=>Sc(e);const mc=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};mc.autoRemove=e=>Sc(e);const gc=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};gc.autoRemove=e=>Sc(e)||!(null!=e&&e.length);const hc=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));hc.autoRemove=e=>Sc(e)||!(null!=e&&e.length);const vc=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));vc.autoRemove=e=>Sc(e)||!(null!=e&&e.length);const bc=(e,t,n)=>e.getValue(t)===n;bc.autoRemove=e=>Sc(e);const yc=(e,t,n)=>e.getValue(t)==n;yc.autoRemove=e=>Sc(e);const wc=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};wc.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o;if(a>i){const e=a;a=i,i=e}return[a,i]},wc.autoRemove=e=>Sc(e)||Sc(e[0])&&Sc(e[1]);const xc={includesString:pc,includesStringSensitive:fc,equalsString:mc,arrIncludes:gc,arrIncludesAll:hc,arrIncludesSome:vc,equals:bc,weakEquals:yc,inNumberRange:wc};function Sc(e){return null==e||""===e}const Cc={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:nc("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?xc.includesString:"number"==typeof r?xc.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?xc.equals:Array.isArray(r)?xc.arrIncludes:xc.weakEquals},e.getFilterFn=()=>{var n,r;return rc(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:xc[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),a=tc(n,o?o.value:void 0);var i;if(kc(r,a,e))return null!=(i=null==t?void 0:t.filter((t=>t.id!==e.id)))?i:[];const l={id:e.id,value:a};var s;return o?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=tc(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(kc(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?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 kc(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Oc={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))})),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},Ic={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:nc("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?Oc.sum:"[object Date]"===Object.prototype.toString.call(r)?Oc.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return rc(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Oc[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?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 null!=r&&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 t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const Ec={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:nc("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=oc((e=>[Tc(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),ac(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return(null==(r=Tc(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Tc(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=oc((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));if("remove"===n)return r;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]}(o,t,n)}),ac(e.options,"debugTable","_getOrderColumnsFn"))}},Pc={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:nc("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,a,i,l,s;return"right"===n?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=oc((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),ac(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=oc((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})));return n}),ac(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=oc((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})));return n}),ac(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))},e.getLeftLeafColumns=oc((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),ac(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=oc((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),ac(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=oc((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),ac(e.options,"debugColumns","getCenterLeafColumns"))}},Nc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},$c={getDefaultColumnDef:()=>Nc,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:nc("columnSizing",e),onColumnSizingInfoChange:nc("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Nc.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:Nc.size),null!=(o=e.columnDef.maxSize)?o:Nc.maxSize)},e.getStart=oc((e=>[e,Tc(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),ac(t.options,"debugColumns","getStart")),e.getAfter=oc((e=>[e,Tc(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),ac(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{if(!r||!o)return;if(null==a.persist||a.persist(),Rc(a)&&a.touches&&a.touches.length>1)return;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],s=Rc(a)?Math.round(a.touches[0].clientX):a.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,l=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*l,0))/100})),{...e,deltaOffset:i,deltaPercentage:l}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),p=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",m.moveHandler),null==f||f.removeEventListener("mouseup",m.upHandler),p(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof zc)return zc;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return zc=e,zc}()&&{passive:!1};Rc(a)?(null==f||f.addEventListener("touchmove",g.moveHandler,h),null==f||f.addEventListener("touchend",g.upHandler,h)):(null==f||f.addEventListener("mousemove",m.moveHandler,h),null==f||f.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let zc=null;function Rc(e){return"touchstart"===e.type}const Dc={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:nc("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=oc((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),ac(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=oc((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),ac(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(t,n)=>oc((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),ac(e.options,"debugColumns",t));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=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function Tc(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Mc={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:nc("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,a;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>xc.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return rc(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:xc[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ac={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:nc("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},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 a=!0===r||!(null==r||!r[e.id]);let i={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=r,n=null!=(o=n)?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:t,...n}=i;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!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 t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Vc={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:nc("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>tc(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=tc(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,tc(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let o=tc(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=oc((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),ac(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+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 t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},_c={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:nc("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...i,e.id,...a]);t.setRowPinning((e=>{var t,r,o,a,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==a?void 0:a.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))},e._getPinnedRows=oc((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:r})))}),ac(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=oc((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),ac(e.options,"debugRows","getCenterRows"))}},Lc={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:nc("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{Fc(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=oc((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}}),ac(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=oc((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}}),ac(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=oc((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}}),ac(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.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((a=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const l={...a};return Fc(l,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),l}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Bc(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Hc(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Hc(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Fc=(e,t,n,r,o)=>{var a;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>Fc(e,t.id,n,r,o)))};function jc(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){return e.map((e=>{var t;const i=Bc(e,n);if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e})).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function Bc(e,t){var n;return null!=(n=t[e.id])&&n}function Hc(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,a=!1;return e.subRows.forEach((e=>{if((!a||o)&&(e.getCanSelect()&&(Bc(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){const n=Hc(e,t);"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}})),o?"all":!!a&&"some"}const Wc=/([0-9]+)/gm;function Gc(e,t){return e===t?0:e>t?1:-1}function qc(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Uc(e,t){const n=e.split(Wc).filter(Boolean),r=t.split(Wc).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}return n.length-r.length}const Yc={alphanumeric:(e,t,n)=>Uc(qc(e.getValue(n)).toLowerCase(),qc(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Uc(qc(e.getValue(n)),qc(t.getValue(n))),text:(e,t,n)=>Gc(qc(e.getValue(n)).toLowerCase(),qc(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Gc(qc(e.getValue(n)),qc(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>Gc(e.getValue(n),t.getValue(n))},Kc={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:nc("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Yc.datetime;if("string"==typeof n&&(r=!0,n.split(Wc).length>1))return Yc.alphanumeric}return r?Yc.text:Yc.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return rc(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:Yc[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n;t.setSorting((i=>{const l=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let c,u=[],d=a?n:"desc"===o;var p;(c=null!=i&&i.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":l?"toggle":"replace","toggle"===c&&(a||o||(c="remove")),"add"===c)?(u=[...i,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?i.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===a||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?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())}},Jc=[sc,Dc,Ec,Pc,dc,Cc,{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()}}},Mc,Kc,Ic,Ac,Vc,_c,Lc,$c];function Xc(e){var t,n;"production"!==process.env.NODE_ENV&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...Jc,...null!=(t=e._features)?t:[]];let o={_features:r};const a=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{});let i={...null!=(n=e.initialState)?n:{}};o._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const l=[];let s=!1;const c={_features:r,options:{...a,...e},initialState:i,_queue:e=>{l.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;l.length;)l.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=tc(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n)){if("production"!==process.env.NODE_ENV)throw new Error(`getRow could not find row with ID: ${e}`);throw new Error}return n},_getDefaultColumnDef:oc((()=>[o.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),ac(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:oc((()=>[o._getColumnDefs()]),(e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map((e=>{const a=function(e,t,n,r){var o,a;const i={...e._getDefaultColumnDef(),...t},l=i.accessorKey;let s,c=null!=(o=null!=(a=i.id)?a:l?l.replace(".","_"):void 0)?o:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?s=i.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[i.accessorKey]),!c){if("production"!==process.env.NODE_ENV)throw new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");throw new Error}let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:oc((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),ac(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:oc((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),ac(e.options,"debugColumns","column.getLeafColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a}))};return t(e)}),ac(e,"debugColumns","getAllColumns")),getAllFlatColumns:oc((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),ac(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:oc((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),ac(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:oc((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>{let n=e.flatMap((e=>e.getLeafColumns()));return t(n)}),ac(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{const t=o._getAllFlatColumnsById()[e];return"production"===process.env.NODE_ENV||t||console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
|
|
433
|
-
/**
|
|
434
|
-
* react-table
|
|
435
|
-
*
|
|
436
|
-
* Copyright (c) TanStack
|
|
437
|
-
*
|
|
438
|
-
* This source code is licensed under the MIT license found in the
|
|
439
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
440
|
-
*
|
|
441
|
-
* @license MIT
|
|
442
|
-
*/
|
|
443
|
-
function Qc(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?n.createElement(e,t):e:null;var r}function Zc(e,t){const[n,r]=s((()=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}}));return[n,t=>{try{const o=t instanceof Function?t(n):t;r(o),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(o))}catch(e){console.log(e)}}]}const eu=rn.div`
|
|
444
|
-
overflow-x: auto;
|
|
445
|
-
width: 100%;
|
|
446
|
-
max-height: 90vh;
|
|
447
|
-
`,tu=rn.table`
|
|
448
|
-
border-collapse: collapse;
|
|
449
|
-
position: relative;
|
|
463
|
+
`,lw=rn.div`
|
|
464
|
+
min-height: 100%;
|
|
465
|
+
padding-left: 60px;
|
|
466
|
+
padding-right: 60px;
|
|
467
|
+
padding-top: 40px;
|
|
450
468
|
|
|
451
|
-
|
|
452
|
-
|
|
469
|
+
@media only screen and (max-width: 600px) {
|
|
470
|
+
padding-left: 30px;
|
|
471
|
+
padding-right: 30px;
|
|
453
472
|
}
|
|
454
473
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
table-layout: fixed;
|
|
460
|
-
background-color: white;
|
|
474
|
+
h2 {
|
|
475
|
+
font-size: var(--font-size--xlarge);
|
|
476
|
+
font-weight: 600;
|
|
477
|
+
color: var(--color--grey-dark);
|
|
461
478
|
}
|
|
479
|
+
`,sw=on`
|
|
480
|
+
from {
|
|
481
|
+
transform: translate(-100%, 0);
|
|
482
|
+
}
|
|
462
483
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
484
|
+
to {
|
|
485
|
+
transform: none;
|
|
486
|
+
}
|
|
487
|
+
`,cw=on`
|
|
488
|
+
from {
|
|
489
|
+
transform: none;
|
|
490
|
+
}
|
|
469
491
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
position: relative;
|
|
492
|
+
to {
|
|
493
|
+
transform: translate(-100%, 0);
|
|
494
|
+
}
|
|
495
|
+
`,uw=on`
|
|
496
|
+
from {
|
|
497
|
+
transform: translate(100%, 0);
|
|
498
|
+
}
|
|
478
499
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
cursor: pointer;
|
|
487
|
-
padding: 0;
|
|
488
|
-
text-align: left;
|
|
500
|
+
to {
|
|
501
|
+
transform: none;
|
|
502
|
+
}
|
|
503
|
+
`,dw=on`
|
|
504
|
+
from {
|
|
505
|
+
transform: none;
|
|
506
|
+
}
|
|
489
507
|
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
508
|
+
to {
|
|
509
|
+
transform: translate(100%, 0);
|
|
510
|
+
}
|
|
511
|
+
`,pw=on`
|
|
512
|
+
from {
|
|
513
|
+
transform: translate(0, 100%);
|
|
514
|
+
}
|
|
494
515
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
516
|
+
to {
|
|
517
|
+
transform: none;
|
|
518
|
+
}
|
|
519
|
+
`,fw=on`
|
|
520
|
+
from {
|
|
521
|
+
transform: none;
|
|
522
|
+
}
|
|
499
523
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
524
|
+
to {
|
|
525
|
+
transform: translate(0, 100%);
|
|
503
526
|
}
|
|
527
|
+
`,mw=rn.div`
|
|
528
|
+
position: fixed;
|
|
529
|
+
top: 0;
|
|
530
|
+
right: 0;
|
|
531
|
+
bottom: 0;
|
|
532
|
+
left: 0;
|
|
533
|
+
z-index: 1001;
|
|
534
|
+
overflow: hidden;
|
|
535
|
+
|
|
536
|
+
&.left {
|
|
537
|
+
animation: ${sw} 0.2s ease;
|
|
504
538
|
}
|
|
505
539
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
540
|
+
&.left.closing {
|
|
541
|
+
animation: ${cw} 0.2s ease;
|
|
542
|
+
transform: translate(-100%, 0);
|
|
509
543
|
}
|
|
510
544
|
|
|
511
|
-
|
|
512
|
-
|
|
545
|
+
&.right {
|
|
546
|
+
animation: ${uw} 0.2s ease;
|
|
513
547
|
}
|
|
514
548
|
|
|
515
|
-
|
|
516
|
-
|
|
549
|
+
&.right.closing {
|
|
550
|
+
animation: ${dw} 0.2s ease;
|
|
551
|
+
transform: translate(100%, 0);
|
|
517
552
|
}
|
|
518
553
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
line-height: 1.5;
|
|
523
|
-
color: var(--color--grey-dark);
|
|
524
|
-
text-align: left;
|
|
525
|
-
padding: var(--spacing--small);
|
|
526
|
-
display: table-cell;
|
|
527
|
-
vertical-align: middle;
|
|
528
|
-
overflow: hidden;
|
|
529
|
-
text-overflow: ellipsis;
|
|
554
|
+
&.center {
|
|
555
|
+
animation: ${pw} 0.2s ease;
|
|
556
|
+
}
|
|
530
557
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
558
|
+
&.center.closing {
|
|
559
|
+
animation: ${fw} 0.2s ease;
|
|
560
|
+
transform: translate(0, 100%);
|
|
534
561
|
}
|
|
562
|
+
`,gw=rn.div`
|
|
563
|
+
z-index: 1010;
|
|
564
|
+
height: 100vh;
|
|
565
|
+
background-color: #fff;
|
|
566
|
+
display: flex;
|
|
567
|
+
flex-direction: column;
|
|
568
|
+
overflow: auto;
|
|
569
|
+
width: 100%;
|
|
535
570
|
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
th:last-child,
|
|
539
|
-
td:last-child {
|
|
540
|
-
padding-left: var(--spacing--medium);
|
|
571
|
+
${mw}.left & {
|
|
572
|
+
margin-right: auto;
|
|
541
573
|
}
|
|
542
574
|
|
|
543
|
-
.
|
|
544
|
-
|
|
575
|
+
${mw}.right & {
|
|
576
|
+
margin-left: auto;
|
|
545
577
|
}
|
|
546
578
|
|
|
547
|
-
.
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
579
|
+
${mw}.center & {
|
|
580
|
+
margin: auto;
|
|
581
|
+
height: 95vh;
|
|
582
|
+
}
|
|
583
|
+
`,hw=rn.div`
|
|
584
|
+
display: flex;
|
|
585
|
+
|
|
586
|
+
${mw}.left & {
|
|
587
|
+
flex-flow: row-reverse nowrap;
|
|
554
588
|
}
|
|
555
589
|
|
|
556
|
-
.
|
|
557
|
-
|
|
558
|
-
flex-direction: column;
|
|
590
|
+
${mw}.right & {
|
|
591
|
+
flex-flow: row nowrap;
|
|
559
592
|
}
|
|
560
593
|
|
|
561
|
-
.
|
|
562
|
-
|
|
594
|
+
${mw}.center & {
|
|
595
|
+
flex-flow: row nowrap;
|
|
563
596
|
}
|
|
597
|
+
`,vw=rn.div`
|
|
598
|
+
display: flex;
|
|
599
|
+
flex-flow: row nowrap;
|
|
600
|
+
align-items: center;
|
|
601
|
+
gap: 20px;
|
|
602
|
+
padding: 15px 20px;
|
|
603
|
+
color: var(--color--indigo);
|
|
604
|
+
font-size: 15px;
|
|
605
|
+
font-weight: 400;
|
|
606
|
+
margin-top: 0;
|
|
564
607
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
top: 0;
|
|
569
|
-
height: 100%;
|
|
570
|
-
width: 3px;
|
|
571
|
-
background: var(--color--grey-line);
|
|
572
|
-
cursor: col-resize;
|
|
573
|
-
user-select: none;
|
|
574
|
-
touch-action: none;
|
|
575
|
-
z-index: 1;
|
|
608
|
+
svg {
|
|
609
|
+
height: 18px;
|
|
610
|
+
flex-shrink: 0;
|
|
576
611
|
}
|
|
577
612
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
opacity: 9;
|
|
581
|
-
transition: opacity 0.2s ease-in-out;
|
|
613
|
+
p {
|
|
614
|
+
margin: 0;
|
|
582
615
|
}
|
|
583
616
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
617
|
+
strong {
|
|
618
|
+
font-weight: 700;
|
|
619
|
+
}
|
|
620
|
+
`,bw=on`
|
|
621
|
+
from {
|
|
622
|
+
margin-top: -50px;
|
|
587
623
|
}
|
|
588
624
|
|
|
589
|
-
|
|
590
|
-
|
|
625
|
+
to {
|
|
626
|
+
margin-top: 0
|
|
591
627
|
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
gap: var(--spacing--medium);
|
|
628
|
+
`,yw=rn(vw)`
|
|
629
|
+
background-color: #ffdadd;
|
|
630
|
+
animation: ${bw} 0.5s ease;
|
|
596
631
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
display: inline-flex;
|
|
600
|
-
align-items: center;
|
|
601
|
-
justify-content: center;
|
|
602
|
-
padding: var(--spacing--small);
|
|
603
|
-
line-height: 1.5;
|
|
604
|
-
text-decoration: none;
|
|
605
|
-
cursor: pointer;
|
|
606
|
-
color: var(--color--grey-dark);
|
|
607
|
-
border: none;
|
|
608
|
-
background-color: var(--color--white);
|
|
609
|
-
font-size: var(--font-size--small);
|
|
610
|
-
font-weight: var(--font-weight--bold);
|
|
611
|
-
transition: background-color 0.2s ease-in-out;
|
|
612
|
-
border-radius: 50%;
|
|
613
|
-
width: 2rem;
|
|
614
|
-
height: 2rem;
|
|
615
|
-
|
|
616
|
-
&:hover {
|
|
617
|
-
background-color: var(--color--grey-lightest);
|
|
618
|
-
}
|
|
619
|
-
&[disabled] {
|
|
620
|
-
color: var(--color--grey-light);
|
|
621
|
-
cursor: not-allowed;
|
|
622
|
-
pointer-events: none;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
`;function ru({id:o,data:a,columns:i,pageCount:l,totalCount:s,next:c,previous:u,page:d,pageable:p,pageSize:f}){const[m,g]=r.useState((()=>[...a])),[h,v]=r.useState([]),[b,y]=r.useState({pageIndex:0,pageSize:f||10}),[w,x]=Zc(`table.${o}.columnSizing`,{}),S=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=n.useState((()=>({current:Xc(t)}))),[o,a]=n.useState((()=>r.current.initialState));return r.current.setOptions((t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),r.current}({columns:i,data:m,getCoreRowModel:e=>oc((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=uc(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),ac(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>oc((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),ac(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:v,pageCount:l,state:{pagination:r.useMemo((()=>({pageIndex:b.pageIndex,pageSize:b.pageSize})),[b.pageIndex,b.pageSize]),sorting:h,columnSizing:w},onPaginationChange:y,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:x});return r.useEffect((()=>{void 0!==d&&S.setPageIndex(Number(d-1))}),[d,S]),r.useEffect((()=>{g(a)}),[a]),t(eu,{children:[t(tu,{children:[S.getHeaderGroups().map((n=>e("thead",{children:e("tr",{children:n.headers.map((n=>t("th",{colSpan:n.colSpan,style:{width:n.getSize()},children:[n.isPlaceholder?null:t("button",{type:"button",className:n.column.getCanSort()?"cursor-pointer select-none":"",onClick:n.column.getToggleSortingHandler(),onKeyDown:n.column.getToggleSortingHandler(),title:n.column.getCanSort()?"asc"===n.column.getNextSortingOrder()?"Sort ascending":"desc"===n.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e(Di,{name:["fas","arrow-up"],size:"small"}),desc:e(Di,{name:["fas","arrow-down"],size:"small"})}[n.column.getIsSorted()]??(n.column.getCanSort()&&e(Di,{name:["fas","arrow-up"],size:"small",className:"fade"})),Qc(n.column.columnDef.header,n.getContext())]}),n.column.getCanResize()&&e("button",{type:"button","aria-label":"Resize column",onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),className:"resizer "+(n.column.getIsResizing()?"isResizing":"")})]},n.id)))})},n.id))),e("tbody",{children:S.getRowModel().rows.length>0?S.getRowModel().rows.map((t=>e("tr",{children:t.getVisibleCells().map((t=>e("td",{style:{width:t.column.getSize()},children:Qc(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e("tr",{children:e("td",{colSpan:i.length,style:{textAlign:"center"},children:"No data"})})})]}),t("div",{children:[void 0!==s?t("div",{children:["Total: ",s]}):null,p?t(nu,{children:[e(ll,{type:"link",href:S.getCanPreviousPage()?window.location.href:"",disabled:!S.getCanPreviousPage(),children:"<<"}),e(ll,{type:"link",href:S.getCanPreviousPage()&&u?u:"",disabled:!S.getCanPreviousPage(),children:"<"}),e(ll,{type:"link",href:S.getCanNextPage()&&c?c:"",disabled:!S.getCanNextPage(),children:">"}),e(ll,{href:S.getCanNextPage()?`${window.location.href}?page=${String(l)}`:"",type:"link",disabled:!S.getCanNextPage(),children:">>"}),t("span",{children:[e("div",{children:"Page"}),t("strong",{children:[S.getState().pagination.pageIndex+1," of"," ",S.getPageCount()]})]})]}):null]})]})}const ou=rn.div`
|
|
626
|
-
background-color: transparent;
|
|
627
|
-
border-bottom: 2px solid transparent;
|
|
628
|
-
color: var(--color--grey-dark);
|
|
629
|
-
font-weight: 500;
|
|
630
|
-
transition: border-bottom 0.2s ease-in-out;
|
|
631
|
-
margin-top: var(--spacing--medium);
|
|
632
|
-
margin-bottom: var(--spacing--medium);
|
|
633
|
-
`,au=rn.div`
|
|
634
|
-
display: flex;
|
|
635
|
-
border-bottom: 3px solid var(--color--grey-borders);
|
|
636
|
-
@media print {
|
|
637
|
-
display: none;
|
|
638
|
-
}
|
|
639
|
-
`,iu=rn.div`
|
|
640
|
-
display: flex;
|
|
641
|
-
width: 100%;
|
|
642
|
-
overflow: auto;
|
|
643
|
-
margin-bottom: -3px;
|
|
644
|
-
|
|
645
|
-
&::-webkit-scrollbar {
|
|
646
|
-
display: none;
|
|
632
|
+
svg {
|
|
633
|
+
color: var(--color--red);
|
|
647
634
|
}
|
|
648
|
-
`,
|
|
635
|
+
`,ww=rn.div`
|
|
649
636
|
position: relative;
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
border-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
&[aria-selected="true"] {
|
|
672
|
-
border-bottom: 3px solid var(--color--primary);
|
|
673
|
-
color: var(--color--black);
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
@media print {
|
|
677
|
-
display: none;
|
|
678
|
-
}
|
|
679
|
-
`,su=rn.button`
|
|
680
|
-
background: transparent;
|
|
681
|
-
border: 0;
|
|
682
|
-
cursor: pointer;
|
|
683
|
-
transition: color 0.2s ease-in-out;
|
|
684
|
-
|
|
685
|
-
i {
|
|
686
|
-
color: var(--color--grey-borders);
|
|
687
|
-
&:hover,
|
|
688
|
-
&:focus,
|
|
689
|
-
&:active,
|
|
690
|
-
&:focus {
|
|
691
|
-
color: var(--color--grey);
|
|
637
|
+
`;let xw=1;const Sw=u((({children:n,side:a,size:i="md",open:l=!1,closeBlocked:s,onClose:u=(()=>{}),onCloseCompleted:d=(()=>{}),closeRequested:p=!1,...f},m)=>{const g=o(null);g.current||(g.current=`overlay-${xw}`,xw+=1);const h=o(null),[v,b]=r.useState(!1);r.useEffect((()=>{if(v){const e=setTimeout(d,200);return()=>{clearTimeout(e)}}return()=>{}})),c((()=>{p&&b(!0)}),[p]),g.current||(g.current=`modal-${xw}`,xw+=1),c((()=>{document.body.style.overflow=l?"hidden":"auto"}),[l]),c((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),u())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[u]);return e(iw,{open:l&&!v,anchor:a,className:`${a} ${l?"open":"closing"}`,size:i,...f,children:e(hw,{children:t(gw,{ref:h,children:[s&&t(yw,{role:"alert","aria-live":"assertive",children:[e(Di,{name:["fas","exclamation-triangle"]}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(ww,{ref:m,children:e(lw,{children:n})})]})})})}));function Cw(t){return e(yf,{...t})}function kw({label:t,...n}){return e(Ub,{...n,children:t})}const Ow=rn(Dv)`
|
|
638
|
+
&& .MuiInput-input {
|
|
639
|
+
background-color: var(--color--grey-hover);
|
|
640
|
+
padding: var(--spacing--small) var(--spacing--small);
|
|
641
|
+
border-color: var(--color--grey-line);
|
|
642
|
+
border-radius: var(--border-radius--medium);
|
|
643
|
+
& fieldset {
|
|
644
|
+
top: 0;
|
|
645
|
+
border-color: var(--color--grey-line);
|
|
646
|
+
& legend span {
|
|
647
|
+
display: none;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
&:hover fieldset {
|
|
651
|
+
border-color: var(--color--grey-light);
|
|
652
|
+
}
|
|
653
|
+
&.Mui-focused fieldset {
|
|
654
|
+
border-color: var(--color--primary);
|
|
655
|
+
}
|
|
656
|
+
& .MuiInputBase-input {
|
|
657
|
+
padding: 0;
|
|
692
658
|
}
|
|
693
659
|
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
margin-top: var(--spacing--medium);
|
|
704
|
-
background-color: var(--color--white);
|
|
705
|
-
padding: var(--spacing--large);
|
|
706
|
-
border-radius: var(--border-radius--medium);
|
|
707
|
-
box-shadow: var(--box-shadow--medium);
|
|
708
|
-
text-align: left;
|
|
709
|
-
font-weight: 400;
|
|
710
|
-
|
|
711
|
-
@media print {
|
|
660
|
+
& .MuiInputLabel-root {
|
|
661
|
+
color: var(--color--grey);
|
|
662
|
+
font-weight: var(--font-weight--bold);
|
|
663
|
+
font-size: var(--font-size--small);
|
|
664
|
+
position: relative;
|
|
665
|
+
margin-bottom: 0.2rem;
|
|
666
|
+
top: 0;
|
|
667
|
+
left: 0;
|
|
668
|
+
background-color: transparent;
|
|
712
669
|
padding: 0;
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
`,uu=rn.section`
|
|
717
|
-
display: ${({$show:e})=>e?"flex":"none"};
|
|
718
|
-
flex-direction: column;
|
|
719
|
-
|
|
720
|
-
// display on print
|
|
721
|
-
@media print {
|
|
722
|
-
display: flex;
|
|
723
|
-
page-break-after: always;
|
|
724
|
-
&:last-child {
|
|
725
|
-
page-break-after: avoid;
|
|
670
|
+
transform: translate(0, 0) scale(1);
|
|
671
|
+
&.MuiInputLabel-shrink {
|
|
672
|
+
color: var(--color--grey);
|
|
726
673
|
}
|
|
727
674
|
}
|
|
728
|
-
`;function
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
675
|
+
`;function Iw(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Iw('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');const Ew=Lp({colorSchemes:{light:{palette:{primary:{50:"#dbd9f8",100:"#b7b2f1",200:"#a69fee",300:"#8279e7",400:"#7065e4",500:"#4c3fdd",600:"#3d32b1",700:"#2e2685",800:"#1e1958",900:"#0f0d2c"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#aaacaf",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"}}}},components:{}});Iw(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--dark-blue: #192a3c;\n\n --color--primary: #4c3fdd;\n --color--primary-light: #4c3fdddb;\n --color--primary-verylight: #a8a0f7;\n --color--body: var(--color--dark-blue);\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif: system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace: source-code-pro, Menlo, Monaco, Consolas,\n "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nol,\nul {\n margin-bottom: 1rem;\n margin-left: 2rem;\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const Pw=rn.div`
|
|
676
|
+
height: 100%;
|
|
677
|
+
position: absolute;
|
|
678
|
+
width: 100%;
|
|
679
|
+
top: 0;
|
|
680
|
+
left: 0;
|
|
681
|
+
`,Nw=rn.main`
|
|
682
|
+
width: 100%;
|
|
683
|
+
height: calc(100% - 136px); // TODO: calculate the height of the header
|
|
684
|
+
position: relative;
|
|
685
|
+
`;function $w({children:n,header:r,footer:o}){return e(qp,{theme:Ew,children:t(Pw,{children:[r,e(Nw,{children:n}),o]})})}function zw(t){return e(ty,{...t})}const Rw=rn(th)`
|
|
686
|
+
text-transform: uppercase;
|
|
687
|
+
font-size: var(--font-size--xsmall);
|
|
738
688
|
font-weight: var(--font-weight--bold);
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
${({$size:e})=>pu[e||"medium"]}
|
|
742
|
-
`,mu=rn.div`
|
|
743
|
-
font-weight: 400;
|
|
744
|
-
${({$size:e})=>pu[e||"medium"]}
|
|
745
|
-
`,gu=rn.div`
|
|
746
|
-
grid-gap: var(--spacing--medium);
|
|
747
|
-
${({$inline:e})=>e?en`
|
|
748
|
-
display: grid;
|
|
749
|
-
grid-template-columns: 1fr 3fr;
|
|
750
|
-
@media (max-width: 768px) {
|
|
751
|
-
grid-template-columns: 1fr;
|
|
752
|
-
}
|
|
753
|
-
`:""}
|
|
754
|
-
`;function hu({label:n,content:r,size:o,inline:a=!1}){return t(gu,{$inline:a,children:[n?e(fu,{$size:o,children:n}):null,r?e(mu,{$size:o,children:r}):null]})}const vu=on`
|
|
689
|
+
margin: 0;
|
|
690
|
+
`,Dw=rn(fy)``,Tw=on`
|
|
755
691
|
0% {
|
|
756
692
|
background-position: 0% 50%;
|
|
757
693
|
}
|
|
758
694
|
100% {
|
|
759
695
|
background-position: 200% 50%;
|
|
760
696
|
}
|
|
761
|
-
`,
|
|
697
|
+
`,Mw=rn.div`
|
|
762
698
|
position: relative;
|
|
763
699
|
width: 100%;
|
|
764
700
|
height: 6px;
|
|
765
701
|
background-color: #d7d7d7;
|
|
766
702
|
border-radius: 3px;
|
|
767
|
-
`,
|
|
703
|
+
`,Aw=rn.div`
|
|
768
704
|
position: absolute;
|
|
769
705
|
left: 0;
|
|
770
706
|
top: 0;
|
|
@@ -777,447 +713,516 @@ function Qc(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
|
|
|
777
713
|
background-size: 200% 200%;
|
|
778
714
|
border-radius: 3px;
|
|
779
715
|
transition: width 1s ease;
|
|
780
|
-
animation: ${
|
|
716
|
+
animation: ${Tw} 3s ease infinite;
|
|
781
717
|
transform: rotate(180deg);
|
|
782
|
-
`;function
|
|
783
|
-
position: fixed;
|
|
784
|
-
bottom: 2rem;
|
|
785
|
-
width: 100%;
|
|
786
|
-
z-index: 2000;
|
|
787
|
-
pointer-events: none;
|
|
788
|
-
`,Su=rn.div`
|
|
789
|
-
position: absolute;
|
|
790
|
-
top: 0;
|
|
791
|
-
width: 100%;
|
|
718
|
+
`;function Vw({ariaLabel:t,percentage:n}){return e(Mw,{role:"progressbar","aria-label":t,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:e(Aw,{style:{width:`${n}%`}})})}function _w({size:n="medium",value:r=0,kind:o="default",trafficLightRanges:a={red:{min:0,max:20,text:""},redLow:{min:20,max:40,text:""},orange:{min:40,max:60,text:""},green:{min:60,max:80,text:""},greenHigh:{min:80,max:100,text:""}}}){const i={mini:"0.8rem",tiny:"1rem",small:"1.2rem",medium:"1.6rem",large:"2rem"}[n],l={mini:50,tiny:75,small:100,medium:150,large:200}[n],u=(({kind:e,percentage:t,trafficLightRanges:n})=>{const r="var(--color--primary)",o="var(--color--danger)",a="var(--color--green-dark)",i="var(--color--red)",l="var(--color--orange-dark)",s="var(--color--green-dark)";return(()=>{if("traffic-light"===e){const e=Object.entries(n).find((([,e])=>t>=e.min&&t<=e.max))?.[0];return"red"===e||"redLow"===e?i:"orange"===e?l:"green"===e||"greenHigh"===e?s:"#d7d7d7"}return"danger"===e?o:"success"===e?a:"default"===e?r:"#d7d7d7"})()})({kind:o,percentage:Math.round(r),trafficLightRanges:a}),d=l/7,[p,f]=s(0);c((()=>{f(r)}),[r]);const m=(l-d)/2,g=m*Math.PI*2,h=p*g/100;return t("svg",{width:l,height:l,viewBox:`0 0 ${l} ${l}`,children:[e("circle",{fill:"white",stroke:"#d7d7d7",cx:l/2,cy:l/2,r:m,strokeWidth:`${d}px`}),e("circle",{fill:"none",stroke:u,cx:l/2,cy:l/2,r:m,strokeWidth:`${d}px`,transform:`rotate(-90 ${l/2} ${l/2})`,strokeDasharray:`${h}, ${g-h}`,strokeLinecap:"round",style:{transition:"all 0.5s"}}),e("text",{fill:"black",fontSize:i,fontWeight:"bold",x:"50%",y:"50%",dy:"6%",textAnchor:"middle",children:(v=r,v>=0&&v<=100?`${r}%`:"-")})]});var v}const Lw=rn.div`
|
|
792
719
|
display: flex;
|
|
793
720
|
flex-direction: column;
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
border-radius: var(--border-radius--medium);
|
|
802
|
-
box-sizing: border-box;
|
|
803
|
-
font-size: var(--font-size--small);
|
|
804
|
-
font-weight: var(--font-weight--bold);
|
|
805
|
-
display: flex;
|
|
806
|
-
align-items: center;
|
|
807
|
-
justify-content: center;
|
|
721
|
+
align-items: flex-start;
|
|
722
|
+
padding: var(--spacing--medium);
|
|
723
|
+
`,Fw=rn.div`
|
|
724
|
+
display: -webkit-box;
|
|
725
|
+
-webkit-line-clamp: ${e=>e.$maxLines};
|
|
726
|
+
-webkit-box-orient: vertical;
|
|
727
|
+
overflow: hidden;
|
|
808
728
|
|
|
809
|
-
|
|
810
|
-
|
|
729
|
+
@media print {
|
|
730
|
+
-webkit-line-clamp: unset;
|
|
811
731
|
}
|
|
732
|
+
`,jw=rn($y)`
|
|
733
|
+
margin: auto;
|
|
812
734
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
735
|
+
@media print {
|
|
736
|
+
display: none;
|
|
737
|
+
}
|
|
738
|
+
`;function Bw({children:n,maxLines:r=3}){const[a,i]=s(!1),l=o(null),[u,p]=s(!1),f=()=>{const{offsetHeight:e,scrollHeight:t}=l.current||{};p(!!(e&&t&&e<t))};return d((()=>(window.addEventListener("resize",f),()=>window.removeEventListener("resize",f))),[l]),c((()=>{f()}),[]),t(Lw,{children:[e(Fw,{$maxLines:a?void 0:r,ref:l,children:n}),r&&u&&e(jw,{type:"button",kind:"basic",onClick:()=>i(!a),children:a?"Read less":"Read more"})]})}const Hw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ww({time:t}){const[n,o]=r.useState((()=>new Date)),a=r.useMemo((()=>new Date(t)),[t]);r.useEffect((()=>{o(new Date)}),[t]),r.useEffect((()=>{if(Math.abs(a.getTime()/1e3-n.getTime()/1e3)<86400){const e=setTimeout((()=>{o(new Date)}),1e4);return()=>{clearTimeout(e)}}return()=>{}}),[n,a]);const i=r.useMemo((()=>{const e=Math.abs(a.getTime()/1e3-n.getTime()/1e3),t=a>n;if(e<60&&!t)return"just now";if(e>604800)return`${a.getDate()} ${Hw[a.getMonth()]} ${a.getFullYear()}`;let r;return r=e<120?"a minute":e<2700?`${Math.ceil(e/60).toString()} minutes`:e<5400?"an hour":e<86400?`${Math.ceil(e/3600).toString()} hours`:e<172800?"one day":`${Math.ceil(e/86400).toString()} days`,t?`in ${r}`:`${r} ago`}),[a,n]);return e("time",{dateTime:a.toISOString(),title:a.toLocaleString(),children:i})}var Gw=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},qw="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,Uw="undefined"!=typeof Element,Yw="function"==typeof Map,Kw="function"==typeof Set,Jw="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Xw(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Xw(e[r],t[r]))return!1;return!0}if(Yw&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Xw(r.value[1],t.get(r.value[0])))return!1;return!0}if(Kw&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Jw&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Uw&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Xw(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Qw=y((function(e,t){try{return Xw(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}})),Zw=[],ex=function(e,t,r){void 0===r&&(r={});var o=n.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Zw},i=n.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=i[0],s=i[1],c=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);f.flushSync((function(){s({styles:Gw(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Gw(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=n.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Qw(o.current,e)?o.current||e:(o.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),d=n.useRef();return qw((function(){d.current&&d.current.setOptions(u)}),[u]),qw((function(){if(null!=e&&null!=t){var n=(r.createPopper||Sg)(e,t,u);return d.current=n,function(){n.destroy(),d.current=null}}}),[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const tx=rn.div`
|
|
739
|
+
display: inline-flex;
|
|
740
|
+
position: relative;
|
|
816
741
|
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
742
|
+
@media print {
|
|
743
|
+
display: none;
|
|
744
|
+
}
|
|
745
|
+
`,nx=rn.div`
|
|
746
|
+
text-align: left;
|
|
747
|
+
position: relative;
|
|
748
|
+
font-size: var(--font-size--xsmall);
|
|
749
|
+
max-width: 300px;
|
|
750
|
+
width: max-content;
|
|
751
|
+
visibility: hidden;
|
|
752
|
+
border-radius: var(--border-radius--small);
|
|
753
|
+
padding: var(--spacing--small) var(--spacing--medium);
|
|
754
|
+
color: ${"var(--color--grey-dark)"};
|
|
755
|
+
background: ${"var(--color--white)"};
|
|
756
|
+
box-shadow: var(--box-shadow--medium);
|
|
757
|
+
border: 1px solid var(--color--grey-borders);
|
|
758
|
+
font-weight: 400;
|
|
759
|
+
line-height: 1.4;
|
|
760
|
+
z-index: 9;
|
|
823
761
|
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
`:"error"===e.level?en`
|
|
828
|
-
background-color: #ffdadd;
|
|
829
|
-
color: var(--color--dark-blue);
|
|
762
|
+
> div {
|
|
763
|
+
white-space: initial;
|
|
764
|
+
}
|
|
830
765
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
`:en``}
|
|
766
|
+
&[data-show="true"] {
|
|
767
|
+
visibility: visible;
|
|
768
|
+
}
|
|
835
769
|
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
`}
|
|
851
|
-
`;function ku({message:n}){const r="success"===n.level?e(Di,{name:["fas","check-circle"]}):e(Di,{name:["fas","exclamation-triangle"]});return t(Cu,"html"in n?{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,e("span",{dangerouslySetInnerHTML:{__html:n.html}})]}:{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,n.text]})}function Ou({messages:t}){return e(xu,{children:e(Su,{style:{top:`-${55*t.length}px`},children:t.map((t=>e(ku,{message:t},String(t))))})})}const Iu={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};var Eu="$$joy";function Pu(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nu.apply(null,arguments)}var $u=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),zu="-ms-",Ru="-moz-",Du="-webkit-",Tu="comm",Mu="rule",Au="decl",Vu="@keyframes",_u=Math.abs,Lu=String.fromCharCode,Fu=Object.assign;function ju(e){return e.trim()}function Bu(e,t,n){return e.replace(t,n)}function Hu(e,t){return e.indexOf(t)}function Wu(e,t){return 0|e.charCodeAt(t)}function Gu(e,t,n){return e.slice(t,n)}function qu(e){return e.length}function Uu(e){return e.length}function Yu(e,t){return t.push(e),e}var Ku=1,Ju=1,Xu=0,Qu=0,Zu=0,ed="";function td(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Ku,column:Ju,length:i,return:""}}function nd(e,t){return Fu(td("",null,null,"",null,null,0),e,{length:-e.length},t)}function rd(){return Zu=Qu>0?Wu(ed,--Qu):0,Ju--,10===Zu&&(Ju=1,Ku--),Zu}function od(){return Zu=Qu<Xu?Wu(ed,Qu++):0,Ju++,10===Zu&&(Ju=1,Ku++),Zu}function ad(){return Wu(ed,Qu)}function id(){return Qu}function ld(e,t){return Gu(ed,e,t)}function sd(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 cd(e){return Ku=Ju=1,Xu=qu(ed=e),Qu=0,[]}function ud(e){return ed="",e}function dd(e){return ju(ld(Qu-1,md(91===e?e+2:40===e?e+1:e)))}function pd(e){for(;(Zu=ad())&&Zu<33;)od();return sd(e)>2||sd(Zu)>3?"":" "}function fd(e,t){for(;--t&&od()&&!(Zu<48||Zu>102||Zu>57&&Zu<65||Zu>70&&Zu<97););return ld(e,id()+(t<6&&32==ad()&&32==od()))}function md(e){for(;od();)switch(Zu){case e:return Qu;case 34:case 39:34!==e&&39!==e&&md(Zu);break;case 40:41===e&&md(e);break;case 92:od()}return Qu}function gd(e,t){for(;od()&&e+Zu!==57&&(e+Zu!==84||47!==ad()););return"/*"+ld(t,Qu-1)+"*"+Lu(47===e?e:od())}function hd(e){for(;!sd(ad());)od();return ld(e,Qu)}function vd(e){return ud(bd("",null,null,null,[""],e=cd(e),0,[0],e))}function bd(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",w=o,x=a,S=r,C=y;h;)switch(m=b,b=od()){case 40:if(108!=m&&58==Wu(C,d-1)){-1!=Hu(C+=Bu(dd(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=dd(b);break;case 9:case 10:case 13:case 32:C+=pd(m);break;case 92:C+=fd(id()-1,7);continue;case 47:switch(ad()){case 42:case 47:Yu(wd(gd(od(),id()),t,n),s);break;default:C+="/"}break;case 123*g:l[c++]=qu(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(C=Bu(C,/\f/g,"")),f>0&&qu(C)-d&&Yu(f>32?xd(C+";",r,n,d-1):xd(Bu(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(Yu(S=yd(C,t,n,c,u,o,l,y,w=[],x=[],d),a),123===b)if(0===u)bd(C,t,S,S,w,a,d,l,x);else switch(99===p&&110===Wu(C,3)?100:p){case 100:case 108:case 109:case 115:bd(e,S,S,r&&Yu(yd(e,S,S,0,0,o,l,y,o,w=[],d),x),o,x,d,l,r?w:x);break;default:bd(C,S,S,S,[""],x,0,l,x)}}c=u=f=0,g=v=1,y=C="",d=i;break;case 58:d=1+qu(C),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==rd())continue;switch(C+=Lu(b),b*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(qu(C)-1)*v,v=1;break;case 64:45===ad()&&(C+=dd(od())),p=ad(),u=d=qu(y=C+=hd(id())),b++;break;case 45:45===m&&2==qu(C)&&(g=0)}}return a}function yd(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Uu(p),m=0,g=0,h=0;m<r;++m)for(var v=0,b=Gu(e,d+1,d=_u(g=i[m])),y=e;v<f;++v)(y=ju(g>0?p[v]+" "+b:Bu(b,/&\f/g,p[v])))&&(s[h++]=y);return td(e,t,n,0===o?Mu:l,s,c,u)}function wd(e,t,n){return td(e,t,n,Tu,Lu(Zu),Gu(e,2,-2),0)}function xd(e,t,n,r){return td(e,t,n,Au,Gu(e,0,r),Gu(e,r+1,-1),r)}function Sd(e,t){for(var n="",r=Uu(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Cd(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Au:return e.return=e.return||e.value;case Tu:return"";case Vu:return e.return=e.value+"{"+Sd(e.children,r)+"}";case Mu:e.value=e.props.join(",")}return qu(n=Sd(e.children,r))?e.return=e.value+"{"+n+"}":""}function kd(e){var t=Uu(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var Od=function(e,t,n){for(var r=0,o=0;r=o,o=ad(),38===r&&12===o&&(t[n]=1),!sd(o);)od();return ld(e,Qu)},Id=function(e,t){return ud(function(e,t){var n=-1,r=44;do{switch(sd(r)){case 0:38===r&&12===ad()&&(t[n]=1),e[n]+=Od(Qu-1,t,n);break;case 2:e[n]+=dd(r);break;case 4:if(44===r){e[++n]=58===ad()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Lu(r)}}while(r=od());return e}(cd(e),t))},Ed=new WeakMap,Pd=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ed.get(n))&&!r){Ed.set(e,!0);for(var o=[],a=Id(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Nd=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},$d=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},zd=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Rd=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Dd=function(e,t,n){zd(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Rd(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!zd(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Rd(e)))};function Td(e,t){switch(function(e,t){return 45^Wu(e,0)?(((t<<2^Wu(e,0))<<2^Wu(e,1))<<2^Wu(e,2))<<2^Wu(e,3):0}(e,t)){case 5103:return Du+"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 Du+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Du+e+Ru+e+zu+e+e;case 6828:case 4268:return Du+e+zu+e+e;case 6165:return Du+e+zu+"flex-"+e+e;case 5187:return Du+e+Bu(e,/(\w+).+(:[^]+)/,Du+"box-$1$2"+zu+"flex-$1$2")+e;case 5443:return Du+e+zu+"flex-item-"+Bu(e,/flex-|-self/,"")+e;case 4675:return Du+e+zu+"flex-line-pack"+Bu(e,/align-content|flex-|-self/,"")+e;case 5548:return Du+e+zu+Bu(e,"shrink","negative")+e;case 5292:return Du+e+zu+Bu(e,"basis","preferred-size")+e;case 6060:return Du+"box-"+Bu(e,"-grow","")+Du+e+zu+Bu(e,"grow","positive")+e;case 4554:return Du+Bu(e,/([^-])(transform)/g,"$1"+Du+"$2")+e;case 6187:return Bu(Bu(Bu(e,/(zoom-|grab)/,Du+"$1"),/(image-set)/,Du+"$1"),e,"")+e;case 5495:case 3959:return Bu(e,/(image-set\([^]*)/,Du+"$1$`$1");case 4968:return Bu(Bu(e,/(.+:)(flex-)?(.*)/,Du+"box-pack:$3"+zu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Du+e+e;case 4095:case 3583:case 4068:case 2532:return Bu(e,/(.+)-inline(.+)/,Du+"$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(qu(e)-1-t>6)switch(Wu(e,t+1)){case 109:if(45!==Wu(e,t+4))break;case 102:return Bu(e,/(.+:)(.+)-([^]+)/,"$1"+Du+"$2-$3$1"+Ru+(108==Wu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hu(e,"stretch")?Td(Bu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wu(e,t+1))break;case 6444:switch(Wu(e,qu(e)-3-(~Hu(e,"!important")&&10))){case 107:return Bu(e,":",":"+Du)+e;case 101:return Bu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Du+(45===Wu(e,14)?"inline-":"")+"box$3$1"+Du+"$2$3$1"+zu+"$2box$3")+e}break;case 5936:switch(Wu(e,t+11)){case 114:return Du+e+zu+Bu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Du+e+zu+Bu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Du+e+zu+Bu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Du+e+zu+e+e}return e}var Md,Ad,Vd="undefined"!=typeof document,_d=Vd?void 0:(Md=function(){return h((function(){var e={};return function(t){return e[t]}}))},Ad=new WeakMap,function(e){if(Ad.has(e))return Ad.get(e);var t=Md(e);return Ad.set(e,t),t}),Ld=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Au:e.return=Td(e.value,e.length);break;case Vu:return Sd([nd(e,{value:Bu(e.value,"@","@"+Du)})],r);case Mu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sd([nd(e,{props:[Bu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Sd([nd(e,{props:[Bu(t,/:(plac\w+)/,":"+Du+"input-$1")]}),nd(e,{props:[Bu(t,/:(plac\w+)/,":-moz-$1")]}),nd(e,{props:[Bu(t,/:(plac\w+)/,zu+"input-$1")]})],r)}return""}))}}],Fd=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(Vd&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Ld;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},l=[];Vd&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[Pd,Nd];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent?t.parent.children:r,i=a.length-1;i>=0;i--){var l=a[i];if(l.line<t.line)break;if(l.column<t.column){if($d(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return v.compat}}),Dd),Vd){var u,d=[Cd,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Tu&&u.insert(e.value+"{}"))}:(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=kd(c.concat(r,d));a=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),function(e){Sd(vd(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Cd],m=kd(c.concat(r,f)),g=_d(r)(t),h=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=function(e){return Sd(vd(e),m)}(e?e+"{"+t.styles+"}":t.styles)),g[n]};a=function(e,t,n,r){var o=t.name,a=h(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new $u({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return v.sheet.hydrate(l),v},jd=Ya(),Bd={};Bd[jd.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Bd[jd.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Hd="undefined"!=typeof document;function Wd(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Gd=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Hd&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},qd=function(e,t,n){Gd(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);Hd||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Hd&&0!==o.length)return o}};var Ud="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Yd="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Kd=/[A-Z]|^ms/g,Jd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xd=function(e){return 45===e.charCodeAt(1)},Qd=function(e){return null!=e&&"boolean"!=typeof e},Zd=h((function(e){return Xd(e)?e:e.replace(Kd,"-$&").toLowerCase()})),ep=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Jd,(function(e,t,n){return up={name:t,styles:n,next:up},t}))}return 1===ve[e]||Xd(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var tp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,np=["normal","none","initial","inherit","unset"],rp=ep,op=/^-ms-/,ap=/-(.)/g,ip={};ep=function(e,t){if("content"===e&&("string"!=typeof t||-1===np.indexOf(t)&&!tp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=rp(e,t);return""===n||Xd(e)||-1===e.indexOf("-")||void 0!==ip[e]||(ip[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(op,"ms-").replace(ap,(function(e,t){return t.toUpperCase()}))+"?")),n}}var lp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function sp(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(lp);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return up={name:n.name,styles:n.styles,next:up},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)up={name:r.name,styles:r.styles,next:up},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sp(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Qd(i)&&(r+=Zd(a)+":"+ep(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(lp);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=sp(e,t,i);switch(a){case"animation":case"animationName":r+=Zd(a)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(Yd),r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Qd(i[s])&&(r+=Zd(a)+":"+ep(a,i[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=up,i=n(e);return up=a,sp(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(Jd,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var cp,up,dp=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(cp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var pp=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";up=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=sp(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(Ud),o+=i[0]);for(var l=1;l<e.length;l++)o+=sp(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===i[l]&&console.error(Ud),o+=i[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(cp,(function(e){return a=e,""}))),dp.lastIndex=0;for(var s,c="";null!==(s=dp.exec(o));)c+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:up,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:up}},fp="undefined"!=typeof document,mp=function(e){return e()},gp=!!n.useInsertionEffect&&n.useInsertionEffect,hp=fp&&gp||mp,vp=gp||n.useLayoutEffect,bp="undefined"!=typeof document,yp={}.hasOwnProperty,wp=n.createContext("undefined"!=typeof HTMLElement?Fd({key:"css"}):null);"production"!==process.env.NODE_ENV&&(wp.displayName="EmotionCacheContext"),wp.Provider;var xp=function(e){return d((function(t,n){var r=l(wp);return e(t,r,n)}))};bp||(xp=function(e){return function(t){var r=l(wp);return null===r?(r=Fd({key:"css"}),n.createElement(wp.Provider,{value:r},e(t,r))):e(t,r)}});var Sp=n.createContext({});"production"!==process.env.NODE_ENV&&(Sp.displayName="EmotionThemeContext");var Cp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Op=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;Gd(t,r,o);var a=hp((function(){return qd(t,r,o)}));if(!bp&&void 0!==a){for(var i,l=r.name,s=r.next;void 0!==s;)l+=" "+s.name,s=s.next;return n.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},Ip=xp((function(e,t,r){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[Cp],i=[o],l="";"string"==typeof e.className?l=Wd(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var s=pp(i,void 0,n.useContext(Sp));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=e[kp];c&&(s=pp([s,"label:"+c+";"]))}l+=t.key+"-"+s.name;var u={};for(var d in e)!yp.call(e,d)||"css"===d||d===Cp||"production"!==process.env.NODE_ENV&&d===kp||(u[d]=e[d]);return u.ref=r,u.className=l,n.createElement(n.Fragment,null,n.createElement(Op,{cache:t,serialized:s,isStringTag:"string"==typeof a}),n.createElement(a,u))}));"production"!==process.env.NODE_ENV&&(Ip.displayName="EmotionCssPropInternal");var Ep=!1,Pp=xp((function(e,t){"production"===process.env.NODE_ENV||Ep||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ep=!0);var r=e.styles,o=pp([r],void 0,n.useContext(Sp));if(!bp){for(var a,i=o.name,l=o.styles,s=o.next;void 0!==s;)i+=" "+s.name,l+=s.styles,s=s.next;var c=!0===t.compat,u=t.insert("",{name:i,styles:l},t.sheet,c);return c?null:n.createElement("style",((a={})["data-emotion"]=t.key+"-global "+i,a.dangerouslySetInnerHTML={__html:u},a.nonce=t.sheet.nonce,a))}var d=n.useRef();return vp((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),d.current=[n,r],function(){n.flush()}}),[t]),vp((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&qd(t,o.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",o,n,!1)}}),[t,o.name]),null}));function Np(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pp(t)}"production"!==process.env.NODE_ENV&&(Pp.displayName="EmotionGlobal");var $p=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};var zp=function(e){var t,r=e.cache,o=e.serializedArr,a=hp((function(){for(var e="",t=0;t<o.length;t++){var n=qd(r,o[t],!1);bp||void 0===n||(e+=n)}if(!bp)return e}));return bp||0===a.length?null:n.createElement("style",((t={})["data-emotion"]=r.key+" "+o.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:a},t.nonce=r.sheet.nonce,t))},Rp=xp((function(e,t){var r=!1,o=[],a=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];var i=pp(n,t.registered);return o.push(i),Gd(t,i,!1),t.key+"-"+i.name},i={css:a,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=Wd(e,r,n);return r.length<2?n:o+t(r)}(t.registered,a,$p(n))},theme:n.useContext(Sp)},l=e.children(i);return r=!0,n.createElement(n.Fragment,null,n.createElement(zp,{cache:t,serializedArr:o}),l)}));if("production"!==process.env.NODE_ENV&&(Rp.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Dp="undefined"!=typeof document,Tp="undefined"!=typeof jest||"undefined"!=typeof vi;if(Dp&&!Tp){var Mp="undefined"!=typeof globalThis?globalThis:Dp?window:global,Ap="__EMOTION_REACT_"+"11.11.4".split(".")[0]+"__";Mp[Ap]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Mp[Ap]=!0}}var Vp=b,_p=function(e){return"theme"!==e},Lp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Vp:_p},Fp=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},jp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Bp="undefined"!=typeof document,Hp=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;Gd(t,r,o);var a=hp((function(){return qd(t,r,o)}));if(!Bp&&void 0!==a){for(var i,l=r.name,s=r.next;void 0!==s;)l+=" "+s.name,s=s.next;return n.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},Wp=function e(t,r){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,a,i=t.__emotion_real===t,l=i&&t.__emotion_base||t;void 0!==r&&(o=r.label,a=r.target);var s=Fp(t,r,i),c=s||Lp(l),u=!c("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(jp),p.push(d[0][0]);for(var f=d.length,m=1;m<f;m++)"production"!==process.env.NODE_ENV&&void 0===d[0][m]&&console.error(jp),p.push(d[m],d[0][m])}var g=xp((function(e,t,r){var o=u&&e.as||l,i="",d=[],f=e;if(null==e.theme){for(var m in f={},e)f[m]=e[m];f.theme=n.useContext(Sp)}"string"==typeof e.className?i=Wd(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var g=pp(p.concat(d),t.registered,f);i+=t.key+"-"+g.name,void 0!==a&&(i+=" "+a);var h=u&&void 0===s?Lp(o):c,v={};for(var b in e)u&&"as"===b||h(b)&&(v[b]=e[b]);return v.className=i,v.ref=r,n.createElement(n.Fragment,null,n.createElement(Hp,{cache:t,serialized:g,isStringTag:"string"==typeof o}),n.createElement(o,v))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(t,n){return e(t,Nu({},r,n,{shouldForwardProp:Fp(g,n,!0)})).apply(void 0,p)},g}}.bind();function Gp(t){const{styles:n,defaultTheme:r={}}=t;return e(Pp,{styles:"function"==typeof n?e=>{return n(null==(t=e)||0===Object.keys(t).length?r:e);var t}:n})}
|
|
852
|
-
/**
|
|
853
|
-
* @mui/styled-engine v5.15.14
|
|
854
|
-
*
|
|
855
|
-
* @license MIT
|
|
856
|
-
* This source code is licensed under the MIT license found in the
|
|
857
|
-
* LICENSE file in the root directory of this source tree.
|
|
858
|
-
*/
|
|
859
|
-
function qp(e,t){const n=Wp(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Wp[e]=Wp(e)})),"production"!==process.env.NODE_ENV&&(Gp.propTypes={defaultTheme:Za.object,styles:Za.oneOfType([Za.array,Za.string,Za.object,Za.func])});function Up(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Yp(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Kp(e){if(!Yp(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Kp(e[n])})),t}function Jp(e,t,n={clone:!0}){const r=n.clone?Nu({},e):e;return Yp(e)&&Yp(t)&&Object.keys(t).forEach((o=>{Yp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Yp(e[o])?r[o]=Jp(e[o],t[o],n):n.clone?r[o]=Yp(t[o])?Kp(t[o]):t[o]:r[o]=t[o]})),r}const Xp=["values","unit","step"],Qp=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Nu({},e,{[t.key]:t.val})),{})};function Zp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Up(e,Xp),a=Qp(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return Nu({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const ef={borderRadius:4},tf="production"!==process.env.NODE_ENV?Za.oneOfType([Za.number,Za.string,Za.object,Za.array]):{};function nf(e,t){return t?Jp(e,t,{clone:!1}):e}const rf={xs:0,sm:600,md:900,lg:1200,xl:1536},of={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rf[e]}px)`};function af(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||of;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||of;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||rf).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function lf(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Pu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sf(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function cf(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:sf(e,n)||r,t&&(o=t(o,r,e)),o}function uf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=sf(e.theme,r)||{};return af(e,a,(e=>{let r=cf(i,o,e);return e===r&&"string"==typeof e&&(r=cf(i,o,`${t}${"default"===e?"":lf(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:tf}:{},a.filterProps=[t],a}const df={m:"margin",p:"padding"},pf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ff={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mf=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ff[e])return[e];e=ff[e]}const[t,n]=e.split(""),r=df[t],o=pf[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),gf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vf=[...gf,...hf];function bf(e,t,n,r){var o;const a=null!=(o=sf(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),a*e):Array.isArray(a)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>a.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${e} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),a[e]):"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function yf(e){return bf(e,"spacing",8,"spacing")}function wf(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function xf(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=wf(t,n),e)),{})}(mf(n),r);return af(e,e[n],o)}function Sf(e,t){const n=yf(e.theme);return Object.keys(e).map((r=>xf(e,t,r,n))).reduce(nf,{})}function Cf(e){return Sf(e,gf)}function kf(e){return Sf(e,hf)}function Of(e=8){if(e.mui)return e;const t=yf({spacing:e}),n=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}function If(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?nf(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ef(e){return"number"!=typeof e?e:`${e}px solid`}function Pf(e,t){return uf({prop:e,themeKey:"borders",transform:t})}Cf.propTypes="production"!==process.env.NODE_ENV?gf.reduce(((e,t)=>(e[t]=tf,e)),{}):{},Cf.filterProps=gf,kf.propTypes="production"!==process.env.NODE_ENV?hf.reduce(((e,t)=>(e[t]=tf,e)),{}):{},kf.filterProps=hf,"production"===process.env.NODE_ENV||vf.reduce(((e,t)=>(e[t]=tf,e)),{});const Nf=Pf("border",Ef),$f=Pf("borderTop",Ef),zf=Pf("borderRight",Ef),Rf=Pf("borderBottom",Ef),Df=Pf("borderLeft",Ef),Tf=Pf("borderColor"),Mf=Pf("borderTopColor"),Af=Pf("borderRightColor"),Vf=Pf("borderBottomColor"),_f=Pf("borderLeftColor"),Lf=Pf("outline",Ef),Ff=Pf("outlineColor"),jf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=bf(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:wf(t,e)});return af(e,e.borderRadius,n)}return null};jf.propTypes="production"!==process.env.NODE_ENV?{borderRadius:tf}:{},jf.filterProps=["borderRadius"],If(Nf,$f,zf,Rf,Df,Tf,Mf,Af,Vf,_f,jf,Lf,Ff);const Bf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=bf(e.theme,"spacing",8,"gap"),n=e=>({gap:wf(t,e)});return af(e,e.gap,n)}return null};Bf.propTypes="production"!==process.env.NODE_ENV?{gap:tf}:{},Bf.filterProps=["gap"];const Hf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=bf(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:wf(t,e)});return af(e,e.columnGap,n)}return null};Hf.propTypes="production"!==process.env.NODE_ENV?{columnGap:tf}:{},Hf.filterProps=["columnGap"];const Wf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=bf(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:wf(t,e)});return af(e,e.rowGap,n)}return null};Wf.propTypes="production"!==process.env.NODE_ENV?{rowGap:tf}:{},Wf.filterProps=["rowGap"];function Gf(e,t){return"grey"===t?t:e}If(Bf,Hf,Wf,uf({prop:"gridColumn"}),uf({prop:"gridRow"}),uf({prop:"gridAutoFlow"}),uf({prop:"gridAutoColumns"}),uf({prop:"gridAutoRows"}),uf({prop:"gridTemplateColumns"}),uf({prop:"gridTemplateRows"}),uf({prop:"gridTemplateAreas"}),uf({prop:"gridArea"}));function qf(e){return e<=1&&0!==e?100*e+"%":e}If(uf({prop:"color",themeKey:"palette",transform:Gf}),uf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gf}),uf({prop:"backgroundColor",themeKey:"palette",transform:Gf}));const Uf=uf({prop:"width",transform:qf}),Yf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||rf[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:qf(t)}};return af(e,e.maxWidth,t)}return null};Yf.filterProps=["maxWidth"];const Kf=uf({prop:"minWidth",transform:qf}),Jf=uf({prop:"height",transform:qf}),Xf=uf({prop:"maxHeight",transform:qf}),Qf=uf({prop:"minHeight",transform:qf});uf({prop:"size",cssProperty:"width",transform:qf}),uf({prop:"size",cssProperty:"height",transform:qf});If(Uf,Yf,Kf,Jf,Xf,Qf,uf({prop:"boxSizing"}));const Zf={border:{themeKey:"borders",transform:Ef},borderTop:{themeKey:"borders",transform:Ef},borderRight:{themeKey:"borders",transform:Ef},borderBottom:{themeKey:"borders",transform:Ef},borderLeft:{themeKey:"borders",transform:Ef},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ef},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jf},color:{themeKey:"palette",transform:Gf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gf},backgroundColor:{themeKey:"palette",transform:Gf},p:{style:kf},pt:{style:kf},pr:{style:kf},pb:{style:kf},pl:{style:kf},px:{style:kf},py:{style:kf},padding:{style:kf},paddingTop:{style:kf},paddingRight:{style:kf},paddingBottom:{style:kf},paddingLeft:{style:kf},paddingX:{style:kf},paddingY:{style:kf},paddingInline:{style:kf},paddingInlineStart:{style:kf},paddingInlineEnd:{style:kf},paddingBlock:{style:kf},paddingBlockStart:{style:kf},paddingBlockEnd:{style:kf},m:{style:Cf},mt:{style:Cf},mr:{style:Cf},mb:{style:Cf},ml:{style:Cf},mx:{style:Cf},my:{style:Cf},margin:{style:Cf},marginTop:{style:Cf},marginRight:{style:Cf},marginBottom:{style:Cf},marginLeft:{style:Cf},marginX:{style:Cf},marginY:{style:Cf},marginInline:{style:Cf},marginInlineStart:{style:Cf},marginInlineEnd:{style:Cf},marginBlock:{style:Cf},marginBlockStart:{style:Cf},marginBlockEnd:{style:Cf},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Bf},rowGap:{style:Wf},columnGap:{style:Hf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qf},maxWidth:{style:Yf},minWidth:{transform:qf},height:{transform:qf},maxHeight:{transform:qf},minHeight:{transform:qf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const em=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=sf(n,l)||{};if(c)return c(o);return af(o,t,(t=>{let n=cf(u,s,t);return t===n&&"string"==typeof t&&(n=cf(u,s,`${e}${"default"===t?"":lf(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Zf;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=nf(s,e(n,o,a,i));else{const e=af({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=nf(s,e):s[n]=t({sx:o,theme:a})}else s=nf(s,e(n,o,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();function tm(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}em.filterProps=["sx"];const nm=["breakpoints","palette","spacing","shape"];function rm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Up(e,nm),l=Zp(n),s=Of(o);let c=Jp({breakpoints:l,direction:"ltr",components:{},palette:Nu({mode:"light"},r),spacing:s,shape:Nu({},ef,a)},i);return c.applyStyles=tm,c=t.reduce(((e,t)=>Jp(e,t)),c),c.unstable_sxConfig=Nu({},Zf,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return em({sx:e,theme:this})},c}function om(e=null){const t=n.useContext(Sp);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const am=rm();function im(e=am){return om(e)}const lm=["sx"],sm=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Zf;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function cm(e){const{sx:t}=e,n=Up(e,lm),{systemProps:r,otherProps:o}=sm(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Yp(n)?Nu({},r,n):r}:Nu({},r,t),Nu({},o,{sx:a})}const um=e=>e,dm=(()=>{let e=um;return{configure(t){e=t},generate:t=>e(t),reset(){e=um}}})();function pm(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=pm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pm(e))&&(r&&(r+=" "),r+=t);return r}const mm=["className","component"];const gm={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function hm(e,t,n="Mui"){const r=gm[t];return r?`${n}-${r}`:`${dm.generate(e)}-${t}`}function vm(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=hm(e,t,n)})),r}var bm,ym={exports:{}},wm={};var xm,Sm={};
|
|
860
|
-
/**
|
|
861
|
-
* @license React
|
|
862
|
-
* react-is.development.js
|
|
863
|
-
*
|
|
864
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
865
|
-
*
|
|
866
|
-
* This source code is licensed under the MIT license found in the
|
|
867
|
-
* LICENSE file in the root directory of this source tree.
|
|
868
|
-
*/"production"===process.env.NODE_ENV?ym.exports=function(){if(bm)return wm;bm=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case f:case p:case i:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),wm.ContextConsumer=l,wm.ContextProvider=i,wm.Element=t,wm.ForwardRef=c,wm.Fragment=r,wm.Lazy=f,wm.Memo=p,wm.Portal=n,wm.Profiler=a,wm.StrictMode=o,wm.Suspense=u,wm.SuspenseList=d,wm.isAsyncMode=function(){return!1},wm.isConcurrentMode=function(){return!1},wm.isContextConsumer=function(e){return g(e)===l},wm.isContextProvider=function(e){return g(e)===i},wm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},wm.isForwardRef=function(e){return g(e)===c},wm.isFragment=function(e){return g(e)===r},wm.isLazy=function(e){return g(e)===f},wm.isMemo=function(e){return g(e)===p},wm.isPortal=function(e){return g(e)===n},wm.isProfiler=function(e){return g(e)===a},wm.isStrictMode=function(e){return g(e)===o},wm.isSuspense=function(e){return g(e)===u},wm.isSuspenseList=function(e){return g(e)===d},wm.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},wm.typeOf=g,wm}():ym.exports=(xm||(xm=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var g=e.type;switch(g){case r:case a:case o:case u:case d:return g;default:var h=g&&g.$$typeof;switch(h){case s:case l:case c:case f:case p:case i:return h;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var h=l,v=i,b=t,y=c,w=r,x=f,S=p,C=n,k=a,O=o,I=u,E=d,P=!1,N=!1;Sm.ContextConsumer=h,Sm.ContextProvider=v,Sm.Element=b,Sm.ForwardRef=y,Sm.Fragment=w,Sm.Lazy=x,Sm.Memo=S,Sm.Portal=C,Sm.Profiler=k,Sm.StrictMode=O,Sm.Suspense=I,Sm.SuspenseList=E,Sm.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Sm.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Sm.isContextConsumer=function(e){return g(e)===l},Sm.isContextProvider=function(e){return g(e)===i},Sm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sm.isForwardRef=function(e){return g(e)===c},Sm.isFragment=function(e){return g(e)===r},Sm.isLazy=function(e){return g(e)===f},Sm.isMemo=function(e){return g(e)===p},Sm.isPortal=function(e){return g(e)===n},Sm.isProfiler=function(e){return g(e)===a},Sm.isStrictMode=function(e){return g(e)===o},Sm.isSuspense=function(e){return g(e)===u},Sm.isSuspenseList=function(e){return g(e)===d},Sm.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Sm.typeOf=g}()),Sm);var Cm=ym.exports;const km=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Om(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(km);return t&&t[1]||""}(e)||t}function Im(e,t,n){const r=Om(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const Em=["ownerState"],Pm=["variants"],Nm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const zm=rm(),Rm=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Dm({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Tm(e){return e?(t,n)=>n[e]:null}function Mm(e,t){let{ownerState:n}=t,r=Up(t,Em);const o="function"==typeof e?e(Nu({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Mm(e,Nu({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Up(o,Pm);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Nu({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Nu({ownerState:n},r,n)):e.style))})),t}return o}function Am(e={}){const{themeId:t,defaultTheme:n=zm,rootShouldForwardProp:r=$m,slotShouldForwardProp:o=$m}=e,a=e=>em(Nu({},e,{theme:Dm(Nu({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Tm(Rm(s))}=i,p=Up(i,Nm),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,m=u||!1;let g;"production"!==process.env.NODE_ENV&&l&&(g=`${l}-${Rm(s||"Root")}`);let h=$m;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=qp(e,Nu({shouldForwardProp:h,label:g},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Yp(e)?r=>Mm(e,Nu({},r,{theme:Dm({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...o)=>{let i=b(r);const c=o?o.map(b):[];l&&d&&c.push((e=>{const r=Dm(Nu({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=Mm(n,Nu({},e,{theme:r}))})),d(e,a)})),l&&!f&&c.push((e=>{var r;const o=Dm(Nu({},e,{defaultTheme:n,themeId:t}));return Mm({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Nu({},e,{theme:o}))})),m||c.push(a);const u=c.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const p=v(i,...c);if("production"!==process.env.NODE_ENV){let t;l&&(t=`${l}${lf(s||"")}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Om(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Cm.ForwardRef:return Im(e,e.render,"ForwardRef");case Cm.Memo:return Im(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return v.withConfig&&(y.withConfig=v.withConfig),y}}const Vm=Am();function _m(e,t){const n=Nu({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Nu({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=Nu({},a),Object.keys(o).forEach((e=>{n[r][e]=_m(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Lm(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?_m(t.components[n].defaultProps,r):r}function Fm({props:e,name:t,defaultTheme:n,themeId:r}){let o=im(n);r&&(o=o[r]||o);return Lm({theme:o,name:t,props:e})}const jm="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function Bm(e){if(e.type)return e;if("#"===e.charAt(0))return Bm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Pu(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Pu(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Hm=e=>{const t=Bm(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function Wm(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Gm(e,t,n,r,o){const a=e[t],i=o||t;if(null==a||"undefined"==typeof window)return null;let l;const s=a.type;return"function"!=typeof s||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(s)||(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const qm=Wm(Za.element,Gm);qm.isRequired=Wm(Za.element.isRequired,Gm);const Um="exact-prop: ";function Ym(e){return"production"===process.env.NODE_ENV?e:Nu({},e,{[Um]:t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}function Km(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const a=e[t],i=o||t;return null==a?null:a&&1!==a.nodeType?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Jm=Za.oneOfType([Za.func,Za.object]);function Xm(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Qm(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}function Zm(e){return e&&e.ownerDocument||document}function eg(e){return Zm(e).defaultView||window}function tg(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let ng=0;const rg=n["useId".toString()];function og(e){if(void 0!==rg){const t=rg();return null!=e?e:t}return function(e){const[t,r]=n.useState(e),o=e||t;return n.useEffect((()=>{null==t&&(ng+=1,r(`mui-${ng}`))}),[t]),o}(e)}function ag({controlled:e,default:t,name:r,state:o="value"}){const{current:a}=n.useRef(void 0!==e),[i,l]=n.useState(t),s=a?e:i;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{a!==(void 0!==e)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${o} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,r,e]);const{current:i}=n.useRef(t);n.useEffect((()=>{a||Object.is(i,t)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[s,n.useCallback((e=>{a||l(e)}),[])]}function ig(e){const t=n.useRef(e);return jm((()=>{t.current=e})),n.useRef(((...e)=>(0,t.current)(...e))).current}function lg(...e){return n.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{tg(e,t)}))}),e)}class sg{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sg}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let cg=!0,ug=!1;const dg=new sg,pg={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fg(e){e.metaKey||e.altKey||e.ctrlKey||(cg=!0)}function mg(){cg=!1}function gg(){"hidden"===this.visibilityState&&ug&&(cg=!0)}function hg(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cg||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!pg[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function vg(){const e=n.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fg,!0),t.addEventListener("mousedown",mg,!0),t.addEventListener("pointerdown",mg,!0),t.addEventListener("touchstart",mg,!0),t.addEventListener("visibilitychange",gg,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!hg(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ug=!0,dg.start(100,(()=>{ug=!1})),t.current=!1,!0)},ref:e}}const bg=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function yg(e,t,n,r){const o=e[t];if(null==o||!bg(o)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function wg(e,t,...n){return void 0===e[t]?null:yg(e,t,...n)}function xg(){return null}wg.isRequired=yg,xg.isRequired=xg;var Sg="production"===process.env.NODE_ENV?xg:wg;function Cg(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const kg=n.createContext(null);function Og(){const e=n.useContext(kg);return"production"!==process.env.NODE_ENV&&n.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(kg.displayName="ThemeContext");var Ig="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Eg(t){const{children:r,theme:o}=t,a=Og();"production"!==process.env.NODE_ENV&&null===a&&"function"==typeof o&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=n.useMemo((()=>{const e=null===a?o:function(e,t){if("function"==typeof t){const n=t(e);return"production"!==process.env.NODE_ENV&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),n}return Nu({},e,t)}(a,o);return null!=e&&(e[Ig]=null!==a),e}),[o,a]);return e(kg.Provider,{value:i,children:r})}"production"!==process.env.NODE_ENV&&(Eg.propTypes={children:Za.node,theme:Za.oneOfType([Za.object,Za.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Eg.propTypes=Ym(Eg.propTypes));const Pg=["value"],Ng=n.createContext();function $g(t){let{value:n}=t,r=Up(t,Pg);return e(Ng.Provider,Nu({value:null==n||n},r))}"production"!==process.env.NODE_ENV&&($g.propTypes={children:Za.node,value:Za.bool});const zg=n.createContext(void 0);function Rg({value:t,children:n}){return e(zg.Provider,{value:t,children:n})}"production"!==process.env.NODE_ENV&&(Rg.propTypes={children:Za.node,value:Za.object});const Dg={};function Tg(e,t,r,o=!1){return n.useMemo((()=>{const n=e&&t[e]||t;if("function"==typeof r){const a=r(n),i=e?Nu({},t,{[e]:a}):a;return o?()=>i:i}return Nu({},t,e?{[e]:r}:r)}),[e,t,r,o])}function Mg(t){const{children:n,theme:r,themeId:o}=t,a=om(Dg),i=Og()||Dg;"production"!==process.env.NODE_ENV&&(null===a&&"function"==typeof r||o&&a&&!a[o]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const l=Tg(o,a,r),s=Tg(o,i,r,!0),c="rtl"===l.direction;return e(Eg,{theme:s,children:e(Sp.Provider,{value:l,children:e($g,{value:c,children:e(Rg,{value:null==l?void 0:l.components,children:n})})})})}"production"!==process.env.NODE_ENV&&(Mg.propTypes={children:Za.node,theme:Za.oneOfType([Za.func,Za.object]).isRequired,themeId:Za.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Mg.propTypes=Ym(Mg.propTypes));const Ag="mode",Vg="color-scheme",_g="data-color-scheme";function Lg(e){if("undefined"!=typeof window&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function Fg(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function jg(e,t){if("undefined"==typeof window)return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch(e){}return n||t}function Bg(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:o,supportedColorSchemes:a=[],modeStorageKey:i=Ag,colorSchemeStorageKey:l=Vg,storageWindow:s=("undefined"==typeof window?void 0:window)}=e,c=a.join(","),[u,d]=n.useState((()=>{const e=jg(i,t),n=jg(`${l}-light`,r),a=jg(`${l}-dark`,o);return{mode:e,systemMode:Lg(e),lightColorScheme:n,darkColorScheme:a}})),p=function(e){return Fg(e,(t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0))}(u),f=n.useCallback((e=>{d((n=>{if(e===n.mode)return n;const r=null!=e?e:t;try{localStorage.setItem(i,r)}catch(e){}return Nu({},n,{mode:r,systemMode:Lg(r)})}))}),[i,t]),m=n.useCallback((e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d((t=>{const n=Nu({},t);return Fg(t,(t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)})),n})):d((t=>{const n=Nu({},t),a=null===e.light?r:e.light,i=null===e.dark?o:e.dark;if(a)if(c.includes(a)){n.lightColorScheme=a;try{localStorage.setItem(`${l}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`);if(i)if(c.includes(i)){n.darkColorScheme=i;try{localStorage.setItem(`${l}-dark`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`);return n})):d((e=>{try{localStorage.setItem(`${l}-light`,r),localStorage.setItem(`${l}-dark`,o)}catch(e){}return Nu({},e,{lightColorScheme:r,darkColorScheme:o})}))}),[c,l,r,o]),g=n.useCallback((e=>{"system"===u.mode&&d((t=>{const n=null!=e&&e.matches?"dark":"light";return t.systemMode===n?t:Nu({},t,{systemMode:n})}))}),[u.mode]),h=n.useRef(g);return h.current=g,n.useEffect((()=>{const e=(...e)=>h.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}}),[]),n.useEffect((()=>{if(s){const e=e=>{const n=e.newValue;"string"!=typeof e.key||!e.key.startsWith(l)||n&&!c.match(n)||(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key!==i||n&&!["light","dark","system"].includes(n)||f(n||t)};return s.addEventListener("storage",e),()=>{s.removeEventListener("storage",e)}}}),[m,f,i,l,c,t,s]),Nu({},u,{colorScheme:p,setMode:f,setColorScheme:m})}const Hg=["colorSchemes","components","generateCssVars","cssVarPrefix"];function Wg(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Gg=(e,t,n,r=[])=>{let o=e;t.forEach(((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))},qg=(e,t,n)=>{!function e(r,o=[],a=[]){Object.entries(r).forEach((([r,i])=>{(!n||n&&!n([...o,r]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,r],Array.isArray(i)?[...a,r]:a):t([...o,r],i,a))}))}(e)},Ug=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t))))return t;return e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function Yg(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return qg(e,((e,t,l)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:Ug(e,t)}),Gg(a,e,`var(${r})`,l),Gg(i,e,`var(${r}, ${t})`,l)}}),(e=>"vars"===e[0])),{css:o,vars:a,varsWithDefaults:i}}function Kg(e){return Kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kg(e)}function Jg(e){var t=function(e,t){if("object"!=Kg(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Kg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Kg(t)?t:t+""}const Xg=["colorSchemes","components","defaultColorScheme"];const Qg=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,a=Object.keys(t),o.filter((e=>a.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const a=t[o];void 0!==a&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),a)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,a};function Zg(e){return e?`Level${e}`:""}function eh(e){return e.unstable_level>0&&e.container}function th(e){return function(t){return`var(--Grid-${t}Spacing${Zg(e.unstable_level)})`}}function nh(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${Zg(e.unstable_level-1)})`}}function rh(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${Zg(e.unstable_level-1)})`}const oh=({theme:e,ownerState:t})=>{const n=th(t),r={};return Qg(e.breakpoints,t.gridSize,((e,o)=>{let a={};!0===o&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===o&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof o&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / ${rh(t)}${eh(t)?` + ${n("column")}`:""})`}),e(r,a)})),r},ah=({theme:e,ownerState:t})=>{const n={};return Qg(e.breakpoints,t.gridOffset,((e,r)=>{let o={};"auto"===r&&(o={marginLeft:"auto"}),"number"==typeof r&&(o={marginLeft:0===r?"0px":`calc(100% * ${r} / ${rh(t)})`}),e(n,o)})),n},ih=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=eh(t)?{[`--Grid-columns${Zg(t.unstable_level)}`]:rh(t)}:{"--Grid-columns":12};return Qg(e.breakpoints,t.columns,((e,r)=>{e(n,{[`--Grid-columns${Zg(t.unstable_level)}`]:r})})),n},lh=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=nh(t),r=eh(t)?{[`--Grid-rowSpacing${Zg(t.unstable_level)}`]:n("row")}:{};return Qg(e.breakpoints,t.rowSpacing,((n,o)=>{var a;n(r,{[`--Grid-rowSpacing${Zg(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},sh=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=nh(t),r=eh(t)?{[`--Grid-columnSpacing${Zg(t.unstable_level)}`]:n("column")}:{};return Qg(e.breakpoints,t.columnSpacing,((n,o)=>{var a;n(r,{[`--Grid-columnSpacing${Zg(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},ch=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Qg(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},uh=({ownerState:e})=>{const t=th(e),n=nh(e);return Nu({minWidth:0,boxSizing:"border-box"},e.container&&Nu({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||eh(e))&&Nu({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},dh=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},ph=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},fh=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`],mh=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],gh=rm(),hh=Vm("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function vh(e){return Fm({props:e,name:"MuiGrid",defaultTheme:gh})}const bh=Nu({},Zf,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function yh(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}const wh=(e,t)=>hm(e,t,"Mui"),xh=(e,t)=>vm(e,t,"Mui"),Sh=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},Ch=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach((([t,o])=>{if(t.match(new RegExp(`${e}(color|bg|border)`,"i"))&&o){const e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),Sh(r,t,e)}})),r},kh=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach((t=>{const[a,i]=t;(e=>e&&"object"==typeof e&&Object.keys(e).some((e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)})))(i)&&"object"==typeof i&&(n=Nu({},n,{[a]:Ch(e,i,(e=>`var(--variant-${e}, ${r(`palette-${a}-${e}`,o[a][e])})`))}))}))}return n.context=Ch(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},Oh=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],Ih=["colorSchemes"];function Eh(e){var t,n,r,o,a,i,l,s,c,u;const d=e||{},{cssVarPrefix:p="joy",breakpoints:f,spacing:m,components:g,variants:h,shouldSkipGeneratingVar:v=yh}=d,b=Up(d,Oh),y=((e="joy")=>Wg(e))(p),w={primary:Iu.blue,neutral:Iu.grey,danger:Iu.red,success:Iu.green,warning:Iu.yellow,common:{white:"#FFF",black:"#000"}},x=e=>{var t;const n=e.split("-"),r=n[1],o=n[2];return y(e,null==(t=w[r])?void 0:t[o])},S=e=>({plainColor:x(`palette-${e}-500`),plainHoverBg:x(`palette-${e}-100`),plainActiveBg:x(`palette-${e}-200`),plainDisabledColor:x("palette-neutral-400"),outlinedColor:x(`palette-${e}-500`),outlinedBorder:x(`palette-${e}-300`),outlinedHoverBg:x(`palette-${e}-100`),outlinedActiveBg:x(`palette-${e}-200`),outlinedDisabledColor:x("palette-neutral-400"),outlinedDisabledBorder:x("palette-neutral-200"),softColor:x(`palette-${e}-700`),softBg:x(`palette-${e}-100`),softHoverBg:x(`palette-${e}-200`),softActiveColor:x(`palette-${e}-800`),softActiveBg:x(`palette-${e}-300`),softDisabledColor:x("palette-neutral-400"),softDisabledBg:x("palette-neutral-50"),solidColor:x("palette-common-white"),solidBg:x(`palette-${e}-500`),solidHoverBg:x(`palette-${e}-600`),solidActiveBg:x(`palette-${e}-700`),solidDisabledColor:x("palette-neutral-400"),solidDisabledBg:x("palette-neutral-100")}),C=e=>({plainColor:x(`palette-${e}-300`),plainHoverBg:x(`palette-${e}-800`),plainActiveBg:x(`palette-${e}-700`),plainDisabledColor:x("palette-neutral-500"),outlinedColor:x(`palette-${e}-200`),outlinedBorder:x(`palette-${e}-700`),outlinedHoverBg:x(`palette-${e}-800`),outlinedActiveBg:x(`palette-${e}-700`),outlinedDisabledColor:x("palette-neutral-500"),outlinedDisabledBorder:x("palette-neutral-800"),softColor:x(`palette-${e}-200`),softBg:x(`palette-${e}-800`),softHoverBg:x(`palette-${e}-700`),softActiveColor:x(`palette-${e}-100`),softActiveBg:x(`palette-${e}-600`),softDisabledColor:x("palette-neutral-500"),softDisabledBg:x("palette-neutral-800"),solidColor:x("palette-common-white"),solidBg:x(`palette-${e}-500`),solidHoverBg:x(`palette-${e}-600`),solidActiveBg:x(`palette-${e}-700`),solidDisabledColor:x("palette-neutral-500"),solidDisabledBg:x("palette-neutral-800")}),k={palette:{mode:"light",primary:Nu({},w.primary,S("primary")),neutral:Nu({},w.neutral,S("neutral"),{plainColor:x("palette-neutral-700"),plainHoverColor:x("palette-neutral-900"),outlinedColor:x("palette-neutral-700")}),danger:Nu({},w.danger,S("danger")),success:Nu({},w.success,S("success")),warning:Nu({},w.warning,S("warning")),common:{white:"#FFF",black:"#000"},text:{primary:x("palette-neutral-800"),secondary:x("palette-neutral-700"),tertiary:x("palette-neutral-600"),icon:x("palette-neutral-500")},background:{body:x("palette-common-white"),surface:x("palette-neutral-50"),popup:x("palette-common-white"),level1:x("palette-neutral-100"),level2:x("palette-neutral-200"),level3:x("palette-neutral-300"),tooltip:x("palette-neutral-500"),backdrop:`rgba(${y("palette-neutral-darkChannel",Hm(w.neutral[900]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",Hm(w.neutral[500]))} / 0.2)`,focusVisible:x("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},O={palette:{mode:"dark",primary:Nu({},w.primary,C("primary")),neutral:Nu({},w.neutral,C("neutral"),{plainColor:x("palette-neutral-300"),plainHoverColor:x("palette-neutral-300")}),danger:Nu({},w.danger,C("danger")),success:Nu({},w.success,C("success")),warning:Nu({},w.warning,C("warning")),common:{white:"#FFF",black:"#000"},text:{primary:x("palette-neutral-100"),secondary:x("palette-neutral-300"),tertiary:x("palette-neutral-400"),icon:x("palette-neutral-400")},background:{body:x("palette-common-black"),surface:x("palette-neutral-900"),popup:x("palette-common-black"),level1:x("palette-neutral-800"),level2:x("palette-neutral-700"),level3:x("palette-neutral-600"),tooltip:x("palette-neutral-600"),backdrop:`rgba(${y("palette-neutral-darkChannel",Hm(w.neutral[50]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",Hm(w.neutral[500]))} / 0.16)`,focusVisible:x("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},I='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',E=Nu({body:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,display:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:I},b.fontFamily),P=Nu({sm:300,md:500,lg:600,xl:700},b.fontWeight),N=Nu({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},b.fontSize),$=Nu({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},b.lineHeight),z=null!=(t=null==(n=b.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:k.shadowRing,R=null!=(r=null==(o=b.colorSchemes)||null==(o=o.light)?void 0:o.shadowChannel)?r:k.shadowChannel,D=null!=(a=null==(i=b.colorSchemes)||null==(i=i.light)?void 0:i.shadowOpacity)?a:k.shadowOpacity,T={colorSchemes:{light:k,dark:O},fontSize:N,fontFamily:E,fontWeight:P,focus:{thickness:"2px",selector:`&.${wh("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${y("focus-thickness",null!=(l=null==(s=b.focus)?void 0:s.thickness)?l:"2px")})`,outline:`${y("focus-thickness",null!=(c=null==(u=b.focus)?void 0:u.thickness)?c:"2px")} solid ${y("palette-focusVisible",w.primary[500])}`}},lineHeight:$,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,sm:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 2px 4px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,md:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 6px 12px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,lg:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 12px 16px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,xl:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 20px 24px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl4, ${N.xl4}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h2:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl3, ${N.xl3}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h3:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl2, ${N.xl2}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h4:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl, ${N.xl}`),lineHeight:y(`lineHeight-md, ${$.md}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-sm, ${$.sm}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"body-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)},"body-xs":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-xs, ${N.xs}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)}}},M=b?Jp(T,b):T,{colorSchemes:A}=M,V=Up(M,Ih),_=Nu({colorSchemes:A},V,{breakpoints:Zp(null!=f?f:{}),components:Jp({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;const r=e.instanceFontSize;return Nu({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&Nu({color:`var(--Icon-color, ${_.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`}),r&&"inherit"!==r&&{"--Icon-fontSize":t.vars.fontSize[r]})}}}},g),cssVarPrefix:p,getCssVar:y,spacing:Of(m)});Object.entries(_.colorSchemes).forEach((([e,t])=>{!function(e,t){Object.keys(t).forEach((n=>{const r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=Hm(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=Hm(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=Hm(t[n][r.dark]))}))}(e,t.palette)}));const L={prefix:p,shouldSkipGeneratingVar:v},{vars:F,generateCssVars:j}=function(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=Up(e,Xg),{vars:a,css:i,varsWithDefaults:l}=Yg(o,t);let s=l;const c={},{[r]:u}=n,d=Up(n,[r].map(Jg));if(Object.entries(d||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=Yg(n,t);s=Jp(s,a),c[e]={css:o,vars:r}})),u){const{css:e,vars:n,varsWithDefaults:o}=Yg(u,t);s=Jp(s,o),c[r]={css:e,vars:n}}return{vars:s,generateCssVars:e=>{var n;if(!e){var r;const n=Nu({},i);return{css:n,vars:a,selector:(null==t||null==(r=t.getSelector)?void 0:r.call(t,e,n))||":root"}}const o=Nu({},c[e].css);return{css:o,vars:c[e].vars,selector:(null==t||null==(n=t.getSelector)?void 0:n.call(t,e,o))||":root"}}}}(Nu({colorSchemes:A},V),L);_.vars=F,_.generateCssVars=j,_.unstable_sxConfig=Nu({},bh,null==e?void 0:e.unstable_sxConfig),_.unstable_sx=function(e){return em({sx:e,theme:this})},_.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;const B={getCssVar:y,palette:_.colorSchemes.light.palette};return _.variants=Jp({plain:kh("plain",B),plainHover:kh("plainHover",B),plainActive:kh("plainActive",B),plainDisabled:kh("plainDisabled",B),outlined:kh("outlined",B),outlinedHover:kh("outlinedHover",B),outlinedActive:kh("outlinedActive",B),outlinedDisabled:kh("outlinedDisabled",B),soft:kh("soft",B),softHover:kh("softHover",B),softActive:kh("softActive",B),softDisabled:kh("softDisabled",B),solid:kh("solid",B),solidHover:kh("solidHover",B),solidActive:kh("solidActive",B),solidDisabled:kh("solidDisabled",B)},h),_.palette=Nu({},_.colorSchemes.light.palette,{colorScheme:"light"}),_.shouldSkipGeneratingVar=v,_.applyStyles=tm,_}const Ph=Eh(),Nh="data-joy-color-scheme",$h="joy-color-scheme",zh="light",Rh="dark",Dh="joy-mode",{CssVarsProvider:Th,useColorScheme:Mh,getInitColorSchemeScript:Ah}=function(r){const{themeId:o,theme:a={},attribute:i=_g,modeStorageKey:l=Ag,colorSchemeStorageKey:s=Vg,defaultMode:c="light",defaultColorScheme:u,disableTransitionOnChange:d=!1,resolveTheme:p,excludeVariablesFromRoot:f}=r;(!a.colorSchemes||"string"==typeof u&&!a.colorSchemes[u]||"object"==typeof u&&!a.colorSchemes[null==u?void 0:u.light]||"object"==typeof u&&!a.colorSchemes[null==u?void 0:u.dark])&&console.error(`MUI: \`${u}\` does not exist in \`theme.colorSchemes\`.`);const m=n.createContext(void 0);function g(r){const{children:g,theme:h=a,modeStorageKey:v=l,colorSchemeStorageKey:b=s,attribute:y=i,defaultMode:w=c,defaultColorScheme:x=u,disableTransitionOnChange:S=d,storageWindow:C=("undefined"==typeof window?void 0:window),documentNode:k=("undefined"==typeof document?void 0:document),colorSchemeNode:O=("undefined"==typeof document?void 0:document.documentElement),colorSchemeSelector:I=":root",disableNestedContext:E=!1,disableStyleSheetGeneration:P=!1}=r,N=n.useRef(!1),$=Og(),z=n.useContext(m),R=!!z&&!E,D=h[o],T=D||h,{colorSchemes:M={},components:A={},generateCssVars:V=(()=>({vars:{},css:{}})),cssVarPrefix:_}=T,L=Up(T,Hg),F=Object.keys(M),j="string"==typeof x?x:x.light,B="string"==typeof x?x:x.dark,{mode:H,setMode:W,systemMode:G,lightColorScheme:q,darkColorScheme:U,colorScheme:Y,setColorScheme:K}=Bg({supportedColorSchemes:F,defaultLightColorScheme:j,defaultDarkColorScheme:B,modeStorageKey:v,colorSchemeStorageKey:b,defaultMode:w,storageWindow:C});let J=H,X=Y;R&&(J=z.mode,X=z.colorScheme);const Q=X||("dark"===(J||("system"===w?c:w))?B:j),{css:Z,vars:ee}=V(),te=Nu({},L,{components:A,colorSchemes:M,cssVarPrefix:_,vars:ee,getColorSchemeSelector:e=>`[${y}="${e}"] &`}),ne={},re={};Object.entries(M).forEach((([e,t])=>{const{css:n,vars:r}=V(e);te.vars=Jp(te.vars,r),e===Q&&(Object.keys(t).forEach((e=>{t[e]&&"object"==typeof t[e]?te[e]=Nu({},te[e],t[e]):te[e]=t[e]})),te.palette&&(te.palette.colorScheme=e));if(e===("string"==typeof x?x:"dark"===w?x.dark:x.light)){if(f){const t={};f(_).forEach((e=>{t[e]=n[e],delete n[e]})),ne[`[${y}="${e}"]`]=t}ne[`${I}, [${y}="${e}"]`]=n}else re[`${":root"===I?"":I}[${y}="${e}"]`]=n})),te.vars=Jp(te.vars,ee),n.useEffect((()=>{X&&O&&O.setAttribute(y,X)}),[X,y,O]),n.useEffect((()=>{let e;if(S&&N.current&&k){const t=k.createElement("style");t.appendChild(k.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),k.head.appendChild(t),window.getComputedStyle(k.body),e=setTimeout((()=>{k.head.removeChild(t)}),1)}return()=>{clearTimeout(e)}}),[X,S,k]),n.useEffect((()=>(N.current=!0,()=>{N.current=!1})),[]);const oe=n.useMemo((()=>({allColorSchemes:F,colorScheme:X,darkColorScheme:U,lightColorScheme:q,mode:J,setColorScheme:K,setMode:W,systemMode:G})),[F,X,U,q,J,K,W,G]);let ae=!0;(P||R&&(null==$?void 0:$.cssVarPrefix)===_)&&(ae=!1);const ie=t(n.Fragment,{children:[ae&&t(n.Fragment,{children:[e(Gp,{styles:{[I]:Z}}),e(Gp,{styles:ne}),e(Gp,{styles:re})]}),e(Mg,{themeId:D?o:void 0,theme:p?p(te):te,children:g})]});return R?ie:e(m.Provider,{value:oe,children:ie})}"production"!==process.env.NODE_ENV&&(m.displayName="ColorSchemeContext"),"production"!==process.env.NODE_ENV&&(g.propTypes={attribute:Za.string,children:Za.node,colorSchemeNode:Za.any,colorSchemeSelector:Za.string,colorSchemeStorageKey:Za.string,defaultColorScheme:Za.oneOfType([Za.string,Za.object]),defaultMode:Za.string,disableNestedContext:Za.bool,disableStyleSheetGeneration:Za.bool,disableTransitionOnChange:Za.bool,documentNode:Za.any,modeStorageKey:Za.string,storageWindow:Za.any,theme:Za.object});const h="string"==typeof u?u:u.light,v="string"==typeof u?u:u.dark;return{CssVarsProvider:g,useColorScheme:()=>{const e=n.useContext(m);if(!e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `useColorScheme` must be called under <CssVarsProvider />":Pu(19));return e},getInitColorSchemeScript:t=>function(t){const{defaultMode:n="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:a=Ag,colorSchemeStorageKey:i=Vg,attribute:l=_g,colorSchemeNode:s="document.documentElement",nonce:c}=t||{};return e("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n var mode = localStorage.getItem('${a}') || '${n}';\n var colorScheme = '';\n if (mode === 'system') {\n // handle system mode\n var mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n } else {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n }\n if (mode === 'light') {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n if (mode === 'dark') {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n }\n if (colorScheme) {\n ${s}.setAttribute('${l}', colorScheme);\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}(Nu({attribute:i,colorSchemeStorageKey:s,defaultMode:c,defaultLightColorScheme:h,defaultDarkColorScheme:v,modeStorageKey:l},t))}}({themeId:Eu,theme:Ph,attribute:Nh,modeStorageKey:Dh,colorSchemeStorageKey:$h,defaultColorScheme:{light:zh,dark:Rh}}),Vh=Am({defaultTheme:Ph,themeId:Eu});function _h({props:e,name:t}){return Fm({props:e,name:t,defaultTheme:Nu({},Ph,{components:{}}),themeId:Eu})}function Lh(e,t,n){return void 0===e||"string"==typeof e?t:Nu({},t,{ownerState:Nu({},t.ownerState,n)})}function Fh(e,t,n=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}const jh={disableDefaultClasses:!1},Bh=n.createContext(jh);function Hh(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Wh(e,t,n){return"function"==typeof e?e(t,n):e}function Gh(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function qh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=fm(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=Nu({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=Nu({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=Hh(Nu({},o,r)),l=Gh(r),s=Gh(o),c=t(i),u=fm(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=Nu({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Nu({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}"production"!==process.env.NODE_ENV&&(Bh.displayName="ClassNameConfiguratorContext");const Uh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Yh(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Up(e,Uh),l=a?{}:Wh(r,o),{props:s,internalRef:c}=qh(Nu({},i,{externalSlotProps:l}));return Lh(n,Nu({},s,{ref:lg(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const Kh="base";function Jh(e,t){const n=gm[t];return n?`${Kh}--${n}`:function(e,t){return`${Kh}-${e}-${t}`}(e,t)}function Xh(e={}){const{disabled:t=!1,focusableWhenDisabled:r,href:o,rootRef:a,tabIndex:i,to:l,type:s,rootElementName:c}=e,u=n.useRef(),[d,p]=n.useState(!1),{isFocusVisibleRef:f,onFocus:m,onBlur:g,ref:h}=vg(),[v,b]=n.useState(!1);t&&!r&&v&&b(!1),n.useEffect((()=>{f.current=v}),[v,f]);const[y,w]=function(e){const{rootElementName:t="",componentName:r}=e,[o,a]=n.useState(t.toUpperCase());"production"!==process.env.NODE_ENV&&n.useEffect((()=>{t&&o!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${r?`the ${r} component`:"a component"} expected the '${t}' element, but a '${o.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app")}),[t,o,r]);const i=n.useCallback((e=>{var t;a(null!=(t=null==e?void 0:e.tagName)?t:"")}),[]);return[o,i]}({rootElementName:null!=c?c:o||l?"a":void 0,componentName:"Button"}),x=e=>t=>{var n;v&&t.preventDefault(),null==(n=e.onMouseLeave)||n.call(e,t)},S=e=>t=>{var n,r;(u.current||(u.current=t.currentTarget),m(t),!0===f.current)&&(b(!0),null==(r=e.onFocusVisible)||r.call(e,t));null==(n=e.onFocus)||n.call(e,t)},C=()=>{const e=u.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},k=e=>n=>{var r;t||(null==(r=e.onClick)||r.call(e,n))},O=e=>n=>{var r;t||(p(!0),document.addEventListener("mouseup",(()=>{p(!1)}),{once:!0})),null==(r=e.onMouseDown)||r.call(e,n)},I=e=>n=>{var r,o;(null==(r=e.onKeyDown)||r.call(e,n),n.defaultMuiPrevented)||(n.target!==n.currentTarget||C()||" "!==n.key||n.preventDefault(),n.target!==n.currentTarget||" "!==n.key||t||p(!0),n.target!==n.currentTarget||C()||"Enter"!==n.key||t||(null==(o=e.onClick)||o.call(e,n),n.preventDefault()))},E=e=>n=>{var r,o;(n.target===n.currentTarget&&p(!1),null==(r=e.onKeyUp)||r.call(e,n),n.target!==n.currentTarget||C()||t||" "!==n.key||n.defaultMuiPrevented)||(null==(o=e.onClick)||o.call(e,n))},P=lg(w,a,h,u),N={};void 0!==i&&(N.tabIndex=i),"BUTTON"===y?(N.type=null!=s?s:"button",r?N["aria-disabled"]=t:N.disabled=t):"INPUT"===y?s&&["button","submit","reset"].includes(s)&&(r?N["aria-disabled"]=t:N.disabled=t):""!==y&&(o||l||(N.role="button",N.tabIndex=null!=i?i:0),t&&(N["aria-disabled"]=t,N.tabIndex=r?null!=i?i:0:-1));return{getRootProps:(t={})=>{const n=Nu({},Hh(e),Hh(t)),r=Nu({type:s},n,N,t,{onBlur:(o=n,e=>{var t;g(e),!1===f.current&&b(!1),null==(t=o.onBlur)||t.call(o,e)}),onClick:k(n),onFocus:S(n),onKeyDown:I(n),onKeyUp:E(n),onMouseDown:O(n),onMouseLeave:x(n),ref:P});var o;return delete r.onFocusVisible,r},focusVisible:v,setFocusVisible:b,active:d,rootRef:P}}const Qh=n.createContext(null);function Zh(e,t){return e===t}"production"!==process.env.NODE_ENV&&(Qh.displayName="DropdownContext");const ev={},tv=()=>{};function nv(e,t){const n=Nu({},e);return Object.keys(t).forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n}function rv(e){const t=n.useRef(null),{reducer:r,initialState:o,controlledProps:a=ev,stateComparers:i=ev,onStateChange:l=tv,actionContext:s,componentName:c=""}=e,u=n.useRef(a);"production"!==process.env.NODE_ENV&&n.useEffect((()=>{Object.keys(a).forEach((e=>{void 0!==u.current[e]&&void 0===a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing a controlled prop to be uncontrolled: ${e}`),void 0===u.current[e]&&void 0!==a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing an uncontrolled prop to be controlled: ${e}`)}))}),[a,c]);const d=n.useCallback(((e,n)=>{t.current=n;const o=nv(e,a);return r(o,n)}),[a,r]),[p,f]=n.useReducer(d,o),m=n.useCallback((e=>{f(Nu({},e,{context:s}))}),[s]);return function(e){const{nextState:t,initialState:r,stateComparers:o,onStateChange:a,controlledProps:i,lastActionRef:l}=e,s=n.useRef(r);n.useEffect((()=>{if(null===l.current)return;const e=nv(s.current,i);Object.keys(t).forEach((n=>{var r;const i=null!=(r=o[n])?r:Zh,s=t[n],c=e[n];var u,d;(null==c&&null!=s||null!=c&&null==s||null!=c&&null!=s&&!i(s,c))&&(null==a||a(null!=(u=l.current.event)?u:null,n,s,null!=(d=l.current.type)?d:"",t))})),s.current=t,l.current=null}),[s,t,l,a,o,i])}({nextState:p,initialState:o,stateComparers:null!=i?i:ev,onStateChange:null!=l?l:tv,controlledProps:a,lastActionRef:t}),[nv(p,a),m]}const ov={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"};function av(e,t){switch(t.type){case ov.blur:case ov.escapeKeyDown:return{open:!1,changeReason:t.event};case ov.toggle:return{open:!e.open,changeReason:t.event};case ov.open:return{open:!0,changeReason:t.event};case ov.close:return{open:!1,changeReason:t.event};default:throw new Error("Unhandled action")}}function iv(t){const{children:r,open:o,defaultOpen:a,onOpenChange:i}=t,{contextValue:l}=function(e={}){const{defaultOpen:t,onOpenChange:r,open:o,componentName:a="useDropdown"}=e,[i,l]=n.useState(""),[s,c]=n.useState(null),u=n.useRef(null),d=n.useCallback(((e,t,n,o)=>{"open"===t&&(null==r||r(e,n)),u.current=o}),[r]),p=n.useMemo((()=>void 0!==o?{open:o}:{}),[o]),[f,m]=rv({controlledProps:p,initialState:t?{open:!0,changeReason:null}:{open:!1,changeReason:null},onStateChange:d,reducer:av,componentName:a});return n.useEffect((()=>{f.open||null===u.current||u.current===ov.blur||null==s||s.focus()}),[f.open,s]),{contextValue:{state:f,dispatch:m,popupId:i,registerPopup:l,registerTrigger:c,triggerElement:s},open:f.open}}({defaultOpen:a,onOpenChange:i,open:o});return e(Qh.Provider,{value:l,children:r})}"production"!==process.env.NODE_ENV&&(iv.propTypes={children:Za.node,defaultOpen:Za.bool,onOpenChange:Za.func,open:Za.bool}),"production"!==process.env.NODE_ENV&&(iv.propTypes=Ym(iv.propTypes));const lv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sv(e){const t=[],n=[];return Array.from(e.querySelectorAll(lv)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function cv(){return!0}function uv(r){const{children:o,disableAutoFocus:a=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=sv,isEnabled:c=cv,open:u}=r,d=n.useRef(!1),p=n.useRef(null),f=n.useRef(null),m=n.useRef(null),g=n.useRef(null),h=n.useRef(!1),v=n.useRef(null),b=lg(o.ref,v),y=n.useRef(null);n.useEffect((()=>{u&&v.current&&(h.current=!a)}),[a,u]),n.useEffect((()=>{if(!u||!v.current)return;const e=Zm(v.current);return v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),v.current.setAttribute("tabIndex","-1")),h.current&&v.current.focus()),()=>{l||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}}),[u]),n.useEffect((()=>{if(!u||!v.current)return;const e=Zm(v.current),t=t=>{y.current=t,!i&&c()&&"Tab"===t.key&&e.activeElement===v.current&&t.shiftKey&&(d.current=!0,f.current&&f.current.focus())},n=()=>{const t=v.current;if(null===t)return;if(!e.hasFocus()||!c()||d.current)return void(d.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==p.current&&e.activeElement!==f.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!h.current)return;let n=[];if(e.activeElement!==p.current&&e.activeElement!==f.current||(n=s(v.current)),n.length>0){var r,o;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=n[0],a=n[n.length-1];"string"!=typeof t&&"string"!=typeof a&&(e?a.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[a,i,l,c,u,s]);const w=e=>{null===m.current&&(m.current=e.relatedTarget),h.current=!0};return t(n.Fragment,{children:[e("div",{tabIndex:u?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),n.cloneElement(o,{ref:b,onFocus:e=>{null===m.current&&(m.current=e.relatedTarget),h.current=!0,g.current=e.target;const t=o.props.onFocus;t&&t(e)}}),e("div",{tabIndex:u?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(uv.propTypes={children:qm,disableAutoFocus:Za.bool,disableEnforceFocus:Za.bool,disableRestoreFocus:Za.bool,getTabbable:Za.func,isEnabled:Za.func,open:Za.bool.isRequired}),"production"!==process.env.NODE_ENV&&(uv.propTypes=Ym(uv.propTypes));const dv=n.createContext(void 0);function pv(e={}){const{defaultValue:t,disabled:r=!1,error:o=!1,onBlur:a,onChange:i,onFocus:l,required:s=!1,value:c,inputRef:u}=e,d=n.useContext(dv);let p,f,m,g,h;var v,b,y;if(d){if(p=void 0,f=null!=(v=d.disabled)&&v,m=null!=(b=d.error)&&b,g=null!=(y=d.required)&&y,h=d.value,"production"!==process.env.NODE_ENV){const t=["defaultValue","disabled","error","required","value"].filter((t=>void 0!==e[t]));t.length>0&&console.warn(["MUI: You have set props on an input that is inside a FormControl.","Set these props on a FormControl instead. Otherwise they will be ignored.",`Ignored props: ${t.join(", ")}`].join("\n"))}}else p=t,f=r,m=o,g=s,h=c;const{current:w}=n.useRef(null!=h),x=n.useCallback((e=>{"production"!==process.env.NODE_ENV&&e&&"INPUT"!==e.nodeName&&!e.focus&&console.error(["MUI: You have provided a `slots.input` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join("\n"))}),[]),S=n.useRef(null),C=lg(S,u,x),[k,O]=n.useState(!1);n.useEffect((()=>{!d&&f&&k&&(O(!1),null==a||a())}),[d,f,k,a]);const I=e=>t=>{var n,r;null!=d&&d.disabled?t.stopPropagation():(null==(n=e.onFocus)||n.call(e,t),d&&d.onFocus?null==d||null==(r=d.onFocus)||r.call(d):O(!0))},E=e=>(t,...n)=>{var r,o;if(!w){if(null==(t.target||S.current))throw new Error("production"!==process.env.NODE_ENV?"MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Pu(17))}null==d||null==(r=d.onChange)||r.call(d,t),null==(o=e.onChange)||o.call(e,t,...n)};return{disabled:f,error:m,focused:k,formControlContext:d,getInputProps:(e={})=>{const t=Nu({},{onBlur:a,onChange:i,onFocus:l},Hh(e)),n=Nu({},t,{onBlur:(r=t,e=>{var t;null==(t=r.onBlur)||t.call(r,e),d&&d.onBlur?d.onBlur():O(!1)}),onChange:E(t),onFocus:I(t)});var r;return Nu({},n,{"aria-invalid":m||void 0,defaultValue:p,value:h,required:g,disabled:f},e,{ref:C},n)},getRootProps:(t={})=>{const n=Nu({},Hh(e,["onBlur","onChange","onFocus"]),Hh(t));return Nu({},t,n,{onClick:(r=n,e=>{var t;S.current&&e.currentTarget===e.target&&S.current.focus(),null==(t=r.onClick)||t.call(r,e)})});var r},inputRef:C,required:g,value:h}}"production"!==process.env.NODE_ENV&&(dv.displayName="FormControlContext");const fv={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function mv(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:i,disabledItemsFocusable:l,itemComparer:s,focusManagement:c}=n,u="DOM"===c?0:-1,d=o.length-1,p=null==e?-1:o.findIndex((t=>s(t,e)));let f,m,g=!i;switch(t){case"reset":if(-1===u)return null;f=0,m="next",g=!1;break;case"start":f=0,m="next",g=!1;break;case"end":f=d,m="previous",g=!1;break;default:{const e=p+t;e<0?!g&&-1!==p||Math.abs(t)>1?(f=0,m="next"):(f=d,m="previous"):e>d?!g||Math.abs(t)>1?(f=d,m="previous"):(f=0,m="next"):(f=e,m=t>=0?"next":"previous")}}const h=function(e,t,n,r,o,a){if(0===n.length||!r&&n.every(((e,t)=>o(e,t))))return-1;let i=e;for(;;){if(!a&&"next"===t&&i===n.length||!a&&"previous"===t&&-1===i)return-1;if(r||!o(n[i],i))return i;i+="next"===t?1:-1,a&&(i=(i+n.length)%n.length)}}(f,m,o,l,a,g);return-1!==h||null===e||a(e,p)?null!=(r=o[h])?r:null:e}function gv(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:i}=n,{selectedValues:l}=t,s=i.findIndex((t=>r(e,t)));if(o(e,s))return t;const c=function(e,t,n,r){return"none"===n?[]:"single"===n?r(t[0],e)?t:[e]:t.some((t=>r(t,e)))?t.filter((t=>!r(t,e))):[...t,e]}(e,l,a,r);return Nu({},t,{selectedValues:c,highlightedValue:e})}function hv(e,t,n){var r;const o=null==(r=n(e))?void 0:r.trim().toLowerCase();return!(!o||0===o.length)&&0===o.indexOf(t)}function vv(e,t){const{type:n,context:r}=t;switch(n){case fv.keyDown:return function(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return Nu({},t,{highlightedValue:mv(r,"start",n)});case"End":return Nu({},t,{highlightedValue:mv(r,"end",n)});case"PageUp":return Nu({},t,{highlightedValue:mv(r,-a,n)});case"PageDown":return Nu({},t,{highlightedValue:mv(r,a,n)});case"ArrowUp":if("vertical"!==o)break;return Nu({},t,{highlightedValue:mv(r,-1,n)});case"ArrowDown":if("vertical"!==o)break;return Nu({},t,{highlightedValue:mv(r,1,n)});case"ArrowLeft":if("vertical"===o)break;return Nu({},t,{highlightedValue:mv(r,"horizontal-ltr"===o?-1:1,n)});case"ArrowRight":if("vertical"===o)break;return Nu({},t,{highlightedValue:mv(r,"horizontal-ltr"===o?1:-1,n)});case"Enter":case" ":return null===t.highlightedValue?t:gv(t.highlightedValue,t,n)}return t}(t.key,e,r);case fv.itemClick:return gv(t.item,e,r);case fv.blur:return function(e,t){return"DOM"===t.focusManagement?e:Nu({},e,{highlightedValue:null})}(e,r);case fv.textNavigation:return function(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:i}=n,l=t.length>1;let s=l?e.highlightedValue:mv(e.highlightedValue,1,n);for(let c=0;c<r.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(hv(s,t,i)&&(!o(s,r.indexOf(s))||a))return Nu({},e,{highlightedValue:s});s=mv(s,1,n)}return e}(e,t.searchString,r);case fv.itemsChange:return function(e,t,n,r){var o;const{itemComparer:a,focusManagement:i}=r;let l=null;var s;null!=n.highlightedValue?l=null!=(s=e.find((e=>a(e,n.highlightedValue))))?s:null:"DOM"===i&&0===t.length&&(l=mv(null,"reset",r));const c=(null!=(o=n.selectedValues)?o:[]).filter((t=>e.some((e=>a(e,t)))));return Nu({},n,{highlightedValue:l,selectedValues:c})}(t.items,t.previousItems,e,r);case fv.resetHighlight:return function(e,t){return Nu({},e,{highlightedValue:mv(null,"reset",t)})}(e,r);case fv.highlightLast:return function(e,t){return Nu({},e,{highlightedValue:mv(null,"end",t)})}(e,r);case fv.clearSelection:return function(e,t){return Nu({},e,{selectedValues:[],highlightedValue:mv(null,"reset",t)})}(e,r);default:return e}}const bv=500;const yv={},wv=()=>{},xv=(e,t)=>e===t,Sv=()=>!1,Cv=e=>"string"==typeof e?e:String(e),kv=()=>({highlightedValue:null,selectedValues:[]});function Ov(e){const{controlledProps:t=yv,disabledItemsFocusable:r=!1,disableListWrap:o=!1,focusManagement:a="activeDescendant",getInitialState:i=kv,getItemDomElement:l,getItemId:s,isItemDisabled:c=Sv,rootRef:u,onStateChange:d=wv,items:p,itemComparer:f=xv,getItemAsString:m=Cv,onChange:g,onHighlightChange:h,onItemsChange:v,orientation:b="vertical",pageSize:y=5,reducerActionContext:w=yv,selectionMode:x="single",stateReducer:S,componentName:C="useList"}=e;if("production"!==process.env.NODE_ENV){if("DOM"===a&&null==l)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if("activeDescendant"===a&&null==s)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}const k=n.useRef(null),O=lg(u,k),I=n.useCallback(((e,t,n)=>{var r;(null==h||h(e,t,n),"DOM"!==a||null==t||n!==fv.itemClick&&n!==fv.keyDown&&n!==fv.textNavigation)||(null==l||null==(r=l(t))||r.focus())}),[l,h,a]),E=n.useMemo((()=>({highlightedValue:f,selectedValues:(e,t)=>Fh(e,t,f)})),[f]),P=n.useCallback(((e,t,n,r,o)=>{switch(null==d||d(e,t,n,r,o),t){case"highlightedValue":I(e,n,r);break;case"selectedValues":null==g||g(e,n,r)}}),[I,g,d]),N=n.useMemo((()=>({disabledItemsFocusable:r,disableListWrap:o,focusManagement:a,isItemDisabled:c,itemComparer:f,items:p,getItemAsString:m,onHighlightChange:I,orientation:b,pageSize:y,selectionMode:x,stateComparers:E})),[r,o,a,c,f,p,m,I,b,y,x,E]),$=i(),z=null!=S?S:vv,R=n.useMemo((()=>Nu({},w,N)),[w,N]),[D,T]=rv({reducer:z,actionContext:R,initialState:$,controlledProps:t,stateComparers:E,onStateChange:P,componentName:C}),{highlightedValue:M,selectedValues:A}=D,V=function(e){const t=n.useRef({searchString:"",lastTime:null});return n.useCallback((n=>{if(1===n.key.length&&" "!==n.key){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>bv?r.searchString=o:1===r.searchString.length&&o===r.searchString||(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}}),[e])}(((e,t)=>T({type:fv.textNavigation,event:t,searchString:e}))),_=n.useRef([]);n.useEffect((()=>{Fh(_.current,p,f)||(T({type:fv.itemsChange,event:null,items:p,previousItems:_.current}),_.current=p,null==v||v(p))}),[p,f,T,v]);const L=e=>t=>{var n;if(null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented)return;const r=["Home","End","PageUp","PageDown"];"vertical"===b?r.push("ArrowUp","ArrowDown"):r.push("ArrowLeft","ArrowRight"),"activeDescendant"===a&&r.push(" ","Enter"),r.includes(t.key)&&t.preventDefault(),T({type:fv.keyDown,key:t.key,event:t}),V(t)},F=n.useCallback((e=>{const t=(null!=A?A:[]).some((t=>null!=t&&f(e,t))),n=null!=M&&f(e,M);return{focusable:"DOM"===a,highlighted:n,selected:t}}),[f,A,M,a]),j=n.useMemo((()=>({dispatch:T,getItemState:F})),[T,F]);return n.useDebugValue({state:D}),{contextValue:j,dispatch:T,getRootProps:(e={})=>{const t=Hh(e);return Nu({},e,{"aria-activedescendant":"activeDescendant"===a&&null!=M?s(M):void 0,tabIndex:"DOM"===a?-1:0,ref:O},t,{onBlur:(n=t,e=>{var t,r;null==(t=n.onBlur)||t.call(n,e),e.defaultMuiPrevented||null!=(r=k.current)&&r.contains(e.relatedTarget)||T({type:fv.blur,event:e})}),onKeyDown:L(t)});var n},rootRef:O,state:D}}const Iv=n.createContext(null);function Ev(e,t){if(t.type===fv.itemHover)return Nu({},e,{highlightedValue:t.item});const n=vv(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return Nu({},n,{highlightedValue:t.context.items[0]});if(t.type===fv.keyDown&&"Escape"===t.event.key)return Nu({},n,{open:!1});var r;if(t.type===fv.blur&&(null==(r=t.context.listboxRef.current)||!r.contains(t.event.relatedTarget))){var o,a;const e=null==(o=t.context.listboxRef.current)?void 0:o.getAttribute("id"),r=null==(a=t.event.relatedTarget)?void 0:a.getAttribute("aria-controls");return e&&r&&e===r?n:Nu({},n,{open:!1,highlightedValue:t.context.items[0]})}return n}"production"!==process.env.NODE_ENV&&(Iv.displayName="ListContext");const Pv=n.createContext(null);function Nv(){const[e,t]=n.useState(new Map),r=n.useRef(new Set),o=n.useCallback((function(e){r.current.delete(e),t((t=>{const n=new Map(t);return n.delete(e),n}))}),[]),a=n.useCallback((function(e,n){let a;return a="function"==typeof e?e(r.current):e,r.current.add(a),t((e=>{const t=new Map(e);return t.set(a,n),t})),{id:a,deregister:()=>o(a)}}),[o]),i=n.useMemo((()=>function(e){const t=Array.from(e.keys()).map((t=>({key:t,subitem:e.get(t)})));return t.sort(((e,t)=>{const n=e.subitem.ref.current,r=t.subitem.ref.current;return null===n||null===r||n===r?0:n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})),new Map(t.map((e=>[e.key,e.subitem])))}(e)),[e]),l=n.useCallback((function(e){return Array.from(i.keys()).indexOf(e)}),[i]);return{contextValue:n.useMemo((()=>({getItemIndex:l,registerItem:a,totalSubitemCount:e.size})),[l,a,e.size]),subitems:i}}function $v(e,t){return function(n={}){const r=Nu({},n,e(n));return Nu({},r,t(r))}}"production"!==process.env.NODE_ENV&&(Pv.displayName="CompoundComponentContext");const zv={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function Rv(t){const{value:r,children:o}=t,{dispatch:a,getItemIndex:i,getItemState:l,registerItem:s,totalSubitemCount:c}=r,u=n.useMemo((()=>({dispatch:a,getItemState:l,getItemIndex:i})),[a,i,l]),d=n.useMemo((()=>({getItemIndex:i,registerItem:s,totalSubitemCount:c})),[s,i,c]);return e(Pv.Provider,{value:d,children:e(Iv.Provider,{value:u,children:o})})}const Dv=n.forwardRef((function(t,r){const{children:o,container:a,disablePortal:i=!1}=t,[l,s]=n.useState(null),c=lg(n.isValidElement(o)?o.ref:null,r);if(jm((()=>{i||s(function(e){return"function"==typeof e?e():e}(a)||document.body)}),[a,i]),jm((()=>{if(l&&!i)return tg(r,l),()=>{tg(r,null)}}),[r,l,i]),i){if(n.isValidElement(o)){const e={ref:c};return n.cloneElement(o,e)}return e(n.Fragment,{children:o})}return e(n.Fragment,{children:l?f.createPortal(o,l):l})}));function Tv(e){return`menu-item-${e.size}`}"production"!==process.env.NODE_ENV&&(Dv.propTypes={children:Za.node,container:Za.oneOfType([Km,Za.func]),disablePortal:Za.bool}),"production"!==process.env.NODE_ENV&&(Dv.propTypes=Ym(Dv.propTypes));const Mv={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function Av(e){var t;const{disabled:r=!1,id:o,rootRef:a,label:i,disableFocusOnHover:l=!1}=e,s=og(o),c=n.useRef(null),u=n.useMemo((()=>({disabled:r,id:null!=s?s:"",label:i,ref:c})),[r,s,i]),{dispatch:d}=null!=(t=n.useContext(Qh))?t:Mv,{getRootProps:p,highlighted:f}=function(e){const{handlePointerOverEvents:t=!1,item:r}=e,o=n.useContext(Iv);if(!o)throw new Error("useListItem must be used within a ListProvider");const{dispatch:a,getItemState:i}=o,{highlighted:l,selected:s,focusable:c}=i(r),u=n.useCallback((e=>t=>{var n;if(null==(n=e.onClick)||n.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===r)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:fv.itemClick,item:r,event:t})}}),[a,r]),d=n.useCallback((e=>t=>{var n;if(null==(n=e.onMouseOver)||n.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===r)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:fv.itemHover,item:r,event:t})}}),[a,r]);let p;return c&&(p=l?0:-1),{getRootProps:(e={})=>{const n=Hh(e);return Nu({},e,{onClick:u(n),onPointerOver:t?d(n):void 0,tabIndex:p})},highlighted:l,selected:s}}({item:s,handlePointerOverEvents:!l}),{index:m,totalItemCount:g}=function(e,t){const r=n.useContext(Pv);if(null===r)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:o}=r,[a,i]=n.useState("function"==typeof e?void 0:e);return jm((()=>{const{id:n,deregister:r}=o(e,t);return i(n),r}),[o,t,e]),{id:a,index:void 0!==a?r.getItemIndex(a):-1,totalItemCount:r.totalSubitemCount}}(null!=s?s:Tv,u),{getRootProps:h,focusVisible:v,rootRef:b}=Xh({disabled:r,focusableWhenDisabled:!0}),y=lg(b,a,c);n.useDebugValue({id:s,highlighted:f,disabled:r,label:i});const w=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||d({type:ov.close,event:t})},x=(e={})=>Nu({},e,{onClick:w(e)});function S(e={}){const t=Hh(e);return Nu({},e,t,$v(x,$v(h,p))(t),{id:s,ref:y,role:"menuitem"})}return void 0===s?{getRootProps:S,disabled:!1,focusVisible:v,highlighted:!1,index:-1,totalItemCount:0,rootRef:y}:{getRootProps:S,disabled:r,focusVisible:v,highlighted:f,index:m,totalItemCount:g,rootRef:y}}function Vv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _v(e){return parseInt(eg(e).getComputedStyle(e).paddingRight,10)||0}function Lv(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Vv(e,o)}))}function Fv(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function jv(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Zm(e);return t.body===e?eg(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Zm(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_v(r)+e}px`;const t=Zm(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${_v(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Zm(r).body;else{const t=r.parentElement,n=eg(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Bv=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Vv(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Lv(t,e.mount,e.modalRef,r,!0);const o=Fv(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Fv(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=jv(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Fv(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Vv(e.modalRef,t),Lv(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Vv(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Hv(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:a=Bv,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,f=n.useRef({}),m=n.useRef(null),g=n.useRef(null),h=lg(g,p),[v,b]=n.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const x=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),S=()=>{a.mount(x(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},C=ig((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zm(m.current).body;a.add(x(),e),g.current&&S()})),k=n.useCallback((()=>a.isTopModal(x())),[a]),O=ig((e=>{m.current=e,e&&(d&&k()?S():g.current&&Vv(g.current,w))})),I=n.useCallback((()=>{a.remove(x(),w)}),[w,a]);n.useEffect((()=>()=>{I()}),[I]),n.useEffect((()=>{d?C():y&&i||I()}),[d,I,y,i,C]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Hh(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Nu({},n,t);return Nu({role:"presentation"},r,{onKeyDown:E(r),ref:h})},getBackdropProps:(e={})=>Nu({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:Xm((()=>{b(!1),l&&l()}),null==c?void 0:c.props.onEnter),onExited:Xm((()=>{b(!0),s&&s(),i&&I()}),null==c?void 0:c.props.onExited)}),rootRef:h,portalRef:O,isTopModal:k,exited:v,hasTransition:y}}const Wv="Popper";function Gv(e){return Jh(Wv,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=Jh(e,t)}))}(Wv,["root"]);const qv=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Uv=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Yv(e){return"function"==typeof e?e():e}function Kv(e){return void 0!==e.nodeType}const Jv=()=>Cg({root:["root"]},function(e){const{disableDefaultClasses:t}=n.useContext(Bh);return n=>t?"":e(n)}(Gv)),Xv={},Qv=n.forwardRef((function(t,r){var o;const{anchorEl:a,children:i,direction:l,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:f,slotProps:m={},slots:g={},TransitionProps:h}=t,v=Up(t,qv),b=n.useRef(null),y=lg(b,r),w=n.useRef(null),x=lg(w,f),S=n.useRef(x);jm((()=>{S.current=x}),[x]),n.useImperativeHandle(f,(()=>w.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,l),[k,O]=n.useState(C),[I,E]=n.useState(Yv(a));n.useEffect((()=>{w.current&&w.current.forceUpdate()})),n.useEffect((()=>{a&&E(Yv(a))}),[a]),jm((()=>{if(!I||!u)return;if("production"!==process.env.NODE_ENV&&I&&Kv(I)&&1===I.nodeType){const e=I.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{O(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=Ms(I,b.current,Nu({placement:C},p,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[I,s,c,u,p,C]);const P={placement:k};null!==h&&(P.TransitionProps=h);const N=Jv(),$=null!=(o=g.root)?o:"div",z=Yh({elementType:$,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:N.root});return e($,Nu({},z,{children:"function"==typeof i?i(P):i}))})),Zv=n.forwardRef((function(t,r){const{anchorEl:o,children:a,container:i,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=Xv,popperRef:m,style:g,transition:h=!1,slotProps:v={},slots:b={}}=t,y=Up(t,Uv),[w,x]=n.useState(!0);if(!c&&!d&&(!h||w))return null;let S;if(i)S=i;else if(o){const e=Yv(o);S=e&&Kv(e)?Zm(e).body:Zm(null).body}const C=h?{in:d,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return e(Dv,{disablePortal:s,container:S,children:e(Qv,Nu({anchorEl:o,direction:l,disablePortal:s,modifiers:u,ref:r,open:h?!w:d,placement:p,popperOptions:f,popperRef:m,slotProps:v,slots:b},y,{style:Nu({position:"fixed",top:0,left:0,display:d||!c||h&&!w?void 0:"none"},g),TransitionProps:C,children:a}))})}));function eb(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function tb(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}"production"!==process.env.NODE_ENV&&(Zv.propTypes={anchorEl:Wm(Za.oneOfType([Km,Za.object,Za.func]),(e=>{if(e.open){const t=Yv(e.anchorEl);if(t&&Kv(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||!Kv(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join("\n"))}return null})),children:Za.oneOfType([Za.node,Za.func]),container:Za.oneOfType([Km,Za.func]),direction:Za.oneOf(["ltr","rtl"]),disablePortal:Za.bool,keepMounted:Za.bool,modifiers:Za.arrayOf(Za.shape({data:Za.object,effect:Za.func,enabled:Za.bool,fn:Za.func,name:Za.any,options:Za.object,phase:Za.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Za.arrayOf(Za.string),requiresIfExists:Za.arrayOf(Za.string)})),open:Za.bool.isRequired,placement:Za.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:Za.shape({modifiers:Za.array,onFirstUpdate:Za.func,placement:Za.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:Za.oneOf(["absolute","fixed"])}),popperRef:Jm,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),transition:Za.bool});const nb=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=eb(c));const u=c?e.filter((e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=eb(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),rb=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function ob(e){const{unstable_isActiveElementInListbox:t=rb,unstable_classNamePrefix:r="Mui",autoComplete:o=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:h=!1,filterOptions:v=nb,filterSelectedOptions:b=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:S=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:k=!e.freeSolo,id:O,includeInputInList:I=!1,inputValue:E,isOptionEqualToValue:P=((e,t)=>e===t),multiple:N=!1,onChange:$,onClose:z,onHighlightChange:R,onInputChange:D,onOpen:T,open:M,openOnFocus:A=!1,options:V,readOnly:_=!1,selectOnFocus:L=!e.freeSolo,value:F}=e,j=og(O);let B=S;B=e=>{const t=S(e);if("string"!=typeof t){if("production"!==process.env.NODE_ENV){const n=void 0===t?"undefined":`${typeof t} (${t})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${n} instead of a string for ${JSON.stringify(e)}.`)}return String(t)}return t};const H=n.useRef(!1),W=n.useRef(!0),G=n.useRef(null),q=n.useRef(null),[U,Y]=n.useState(null),[K,J]=n.useState(-1),X=a?0:-1,Q=n.useRef(X),[Z,ee]=ag({controlled:F,default:d,name:u}),[te,ne]=ag({controlled:E,default:"",name:u,state:"inputValue"}),[re,oe]=n.useState(!1),ae=n.useCallback(((e,t)=>{if(!(N?Z.length<t.length:null!==t)&&!s)return;let n;if(N)n="";else if(null==t)n="";else{const e=B(t);n="string"==typeof e?e:""}te!==n&&(ne(n),D&&D(e,n,"reset"))}),[B,te,N,D,ne,s,Z]),[ie,le]=ag({controlled:M,default:!1,name:u,state:"open"}),[se,ce]=n.useState(!0),ue=!N&&null!=Z&&te===B(Z),de=ie&&!_,pe=de?v(V.filter((e=>!b||!(N?Z:[Z]).some((t=>null!==t&&P(e,t))))),{inputValue:ue&&se?"":te,getOptionLabel:B}):[],fe=(e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current})({filteredOptions:pe,value:Z,inputValue:te});n.useEffect((()=>{const e=Z!==fe.value;re&&!e||y&&!e||ae(null,Z)}),[Z,ae,re,fe.value,y]);const me=ie&&pe.length>0&&!_;if("production"!==process.env.NODE_ENV&&null!==Z&&!y&&V.length>0){const e=(N?Z:[Z]).filter((e=>!V.some((t=>P(t,e)))));e.length>0&&console.warn([`MUI: The value provided to ${u} is invalid.`,`None of the options match with \`${e.length>1?JSON.stringify(e):JSON.stringify(e[0])}\`.`,"You can use the `isOptionEqualToValue` prop to customize the equality test."].join("\n"))}const ge=ig((e=>{-1===e?G.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));n.useEffect((()=>{N&&K>Z.length-1&&(J(-1),ge(-1))}),[Z,N,K,ge]);const he=ig((({event:e,index:t,reason:n="auto"})=>{if(Q.current=t,-1===t?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${j}-option-${t}`),R&&R(e,-1===t?null:pe[t],n),!q.current)return;const o=q.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let a=q.current;if("listbox"!==q.current.getAttribute("role")&&(a=q.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=q.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${r}-focused`),"keyboard"===n&&i.classList.add(`${r}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=i,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ve=ig((({event:e,diff:t,direction:n="next",reason:r="auto"})=>{if(!de)return;const a=function(e,t){if(!q.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),o=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return X;if("start"===t)return 0;if("end"===t)return e;const n=Q.current+t;return n<0?-1===n&&I?-1:h&&-1!==Q.current||Math.abs(t)>1?0:e:n>e?n===e+1&&I?-1:h||Math.abs(t)>1?e:0:n})(),n);if(he({index:a,reason:r,event:e}),o&&"reset"!==t)if(-1===a)G.current.value=te;else{const e=B(pe[a]);G.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&G.current.setSelectionRange(te.length,e.length)}})),be=n.useCallback((()=>{if(!de)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==pe.length&&fe.inputValue===te&&(N?Z.length===fe.value.length&&fe.value.every(((e,t)=>B(Z[t])===B(e))):(e=fe.value,t=Z,(e?B(e):"")===(t?B(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return tb(pe,(t=>B(t)===B(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=N?Z[0]:Z;if(0!==pe.length&&null!=t){if(q.current)if(null==t)Q.current>=pe.length-1?he({index:pe.length-1}):he({index:Q.current});else{const e=pe[Q.current];if(N&&e&&-1!==tb(Z,(t=>P(e,t))))return;const n=tb(pe,(e=>P(e,t)));-1===n?ve({diff:"reset"}):he({index:n})}}else ve({diff:"reset"})}),[pe.length,!N&&Z,b,ve,he,de,te,N]),ye=ig((e=>{tg(q,e),e&&be()}));"production"!==process.env.NODE_ENV&&n.useEffect((()=>{G.current&&"INPUT"===G.current.nodeName||(G.current&&"TEXTAREA"===G.current.nodeName?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join("\n")):console.error([`MUI: Unable to find the input element. It was resolved to ${G.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"","useAutocomplete"===u?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join("\n")))}),[u]),n.useEffect((()=>{be()}),[be]);const we=e=>{ie||(le(!0),ce(!0),T&&T(e))},xe=(e,t)=>{ie&&(le(!1),z&&z(e,t))},Se=(e,t,n,r)=>{if(N){if(Z.length===t.length&&Z.every(((e,n)=>e===t[n])))return}else if(Z===t)return;$&&$(e,t,n,r),ee(t)},Ce=n.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,a=t;if(N){if(a=Array.isArray(Z)?Z.slice():[],"production"!==process.env.NODE_ENV){const e=a.filter((e=>P(t,e)));e.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"))}const e=tb(a,(e=>P(t,e)));-1===e?a.push(t):"freeSolo"!==r&&(a.splice(e,1),o="removeOption")}ae(e,a),Se(e,a,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||xe(e,o),(!0===l||"touch"===l&&Ce.current||"mouse"===l&&!Ce.current)&&G.current.blur()};const Oe=(e,t)=>{if(!N)return;""===te&&xe(e,"toggleInput");let n=K;-1===K?""===te&&"previous"===t&&(n=Z.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Z.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Z.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),J(n),ge(n)},Ie=e=>{H.current=!0,ne(""),D&&D(e,"","clear"),Se(e,N?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(J(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":de&&k&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&k&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Oe(t,"previous");break;case"ArrowRight":Oe(t,"next");break;case"Enter":if(-1!==Q.current&&de){const e=pe[Q.current],n=!!w&&w(e);if(t.preventDefault(),n)return;ke(t,e,"selectOption"),o&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else y&&""!==te&&!1===ue&&(N&&t.preventDefault(),ke(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),xe(t,"escape")):c&&(""!==te||N&&Z.length>0)&&(t.preventDefault(),t.stopPropagation(),Ie(t));break;case"Backspace":if(N&&!_&&""===te&&Z.length>0){const e=-1===K?Z.length-1:K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}break;case"Delete":if(N&&!_&&""===te&&Z.length>0&&-1!==K){const e=K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}}},Pe=e=>{oe(!0),A&&!H.current&&we(e)},Ne=e=>{t(q)?G.current.focus():(oe(!1),W.current=!0,H.current=!1,i&&-1!==Q.current&&de?ke(e,pe[Q.current],"blur"):i&&y&&""!==te?ke(e,te,"blur","freeSolo"):s&&ae(e,Z),xe(e,"blur"))},$e=e=>{const t=e.target.value;te!==t&&(ne(t),ce(!1),D&&D(e,t,"input")),""===t?p||N||Se(e,null,"clear"):we(e)},ze=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&he({event:e,index:t,reason:"mouse"})},Re=e=>{he({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},De=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,pe[t],"selectOption"),Ce.current=!1},Te=e=>t=>{const n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})},Me=e=>{ie?xe(e,"toggleInput"):we(e)},Ae=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==j&&e.preventDefault()},Ve=e=>{e.currentTarget.contains(e.target)&&(G.current.focus(),L&&W.current&&G.current.selectionEnd-G.current.selectionStart==0&&G.current.select(),W.current=!1)},_e=e=>{m||""!==te&&ie||Me(e)};let Le=y&&te.length>0;Le=Le||(N?Z.length>0:null!==Z);let Fe=pe;if(C){const e=new Map;let t=!1;Fe=pe.reduce(((n,r,o)=>{const a=C(r);return n.length>0&&n[n.length-1].group===a?n[n.length-1].options.push(r):("production"!==process.env.NODE_ENV&&(e.get(a)&&!t&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),t=!0),e.set(a,!0)),n.push({key:o,index:o,group:a,options:[r]})),n}),[])}return m&&re&&Ne(),{getRootProps:(e={})=>Nu({"aria-owns":me?`${j}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:Ae,onClick:Ve}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:te,onBlur:Ne,onFocus:Pe,onChange:$e,onMouseDown:_e,"aria-activedescendant":de?"":null,"aria-autocomplete":o?"both":"list","aria-controls":me?`${j}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ie}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Me}),getTagProps:({index:e})=>Nu({key:e,"data-tag-index":e,tabIndex:-1},!_&&{onDelete:Te(e)}),getListboxProps:()=>({role:"listbox",id:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(N?Z:[Z]).some((e=>null!=e&&P(t,e))),o=!!w&&w(t);return{key:null!=(n=null==x?void 0:x(t))?n:B(t),tabIndex:-1,role:"option",id:`${j}-option-${e}`,onMouseMove:ze,onClick:De,onTouchStart:Re,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:j,inputValue:te,value:Z,dirty:Le,expanded:de&&U,popupOpen:de,focused:re||-1!==K,anchorEl:U,setAnchorEl:Y,focusedTag:K,groupedOptions:Fe}}const ab=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],ib=["component","slots","slotProps"],lb=["component"];function sb(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,s=Up(t,ab),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=Up(a,ib),f=u[e]||r,m=Wh(d[e],o),g=qh(Nu({className:n},s,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),{props:{component:h},internalRef:v}=g,b=Up(g.props,lb),y=lg(v,null==m?void 0:m.ref,t.ref),w=i?i(b):{},x=Nu({},o,w),S="root"===e?h||c:h,C=Lh(f,Nu({},"root"===e&&!c&&!u[e]&&l,"root"!==e&&!u[e]&&l,b,S&&{as:S},{ref:y}),x);return Object.keys(w).forEach((e=>{delete C[e]})),[f,C]}function cb(e){return wh("MuiListItem",e)}const ub=xh("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),db=n.createContext(!1);"production"!==process.env.NODE_ENV&&(db.displayName="NestedListContext");const pb=n.createContext(!1);"production"!==process.env.NODE_ENV&&(pb.displayName="RowListContext");const fb=n.createContext(!1);"production"!==process.env.NODE_ENV&&(fb.displayName="WrapListContext");const mb=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(mb.displayName="ComponentListContext");const gb=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(gb.displayName="ListSubheaderContext");const hb=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(hb.displayName="GroupListContext");const vb=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],bb=Vh("li")((({theme:e,ownerState:t})=>{var n;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",gap:"var(--ListItem-gap)",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},Nu({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"var(--_ListItem-display)","&:not([hidden])":{"--_ListItem-display":"var(--_List-markerDisplay, flex)"},flex:"none",listStyleType:"var(--_List-markerType, disc)",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&Nu({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackground, ${e.vars.palette.background.body})`},{[`.${ub.nested} > &`]:{"--_ListItem-display":"flex"}}),null==(n=e.variants[t.variant])?void 0:n[t.color]]})),yb=Vh(bb,{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wb=Vh("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1}))),xb=Vh("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"}))),Sb=n.forwardRef((function(r,o){const a=_h({props:r,name:"JoyListItem"}),i=n.useContext(hb),l=n.useContext(mb),s=n.useContext(pb),c=n.useContext(fb),u=n.useContext(db),{component:d,className:p,children:f,nested:m=!1,sticky:g=!1,variant:h="plain",color:v="neutral",startAction:b,endAction:y,role:w,slots:x={},slotProps:S={}}=a,C=Up(a,vb),[k,O]=n.useState(""),[I,E]=(null==l?void 0:l.split(":"))||["",""],P=d||(I&&!I.match(/^(ul|ol|menu)$/)?"div":void 0);let N="menu"===i?"none":void 0;l&&(N={menu:"none",menubar:"none",group:"presentation"}[E]),w&&(N=w);const $=Nu({},a,{sticky:g,startAction:b,endAction:y,row:s,wrap:c,variant:h,color:v,nesting:u,nested:m,component:P,role:N}),z=(e=>{const{sticky:t,nested:n,nesting:r,variant:o,color:a}=e;return Cg({root:["root",n&&"nested",r&&"nesting",t&&"sticky",a&&`color${lf(a)}`,o&&`variant${lf(o)}`],startAction:["startAction"],endAction:["endAction"]},cb,{})})($),R=Nu({},C,{component:P,slots:x,slotProps:S}),[D,T]=sb("root",{additionalProps:{role:N},ref:o,className:fm(z.root,p),elementType:yb,externalForwardedProps:R,ownerState:$}),[M,A]=sb("startAction",{className:z.startAction,elementType:wb,externalForwardedProps:R,ownerState:$}),[V,_]=sb("endAction",{className:z.endAction,elementType:xb,externalForwardedProps:R,ownerState:$});return e(gb.Provider,{value:O,children:e(db.Provider,{value:!!m&&(k||!0),children:t(D,Nu({},T,{children:[b&&e(M,Nu({},A,{children:b})),n.Children.map(f,((e,t)=>n.isValidElement(e)?n.cloneElement(e,Nu({},0===t&&{"data-first-child":""},Qm(e,["ListItem"])&&{component:e.props.component||"div"})):e)),y&&e(V,Nu({},_,{children:y}))]}))})})}));"production"!==process.env.NODE_ENV&&(Sb.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,endAction:Za.node,nested:Za.bool,role:Za.string,slotProps:Za.shape({endAction:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startAction:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({endAction:Za.elementType,root:Za.elementType,startAction:Za.elementType}),startAction:Za.node,sticky:Za.bool,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Sb.muiName="ListItem";const Cb={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function kb(t){const{children:r,nested:o,row:a=!1,wrap:i=!1}=t,l=e(pb.Provider,{value:a,children:e(fb.Provider,{value:i,children:n.Children.map(r,((e,t)=>n.isValidElement(e)?n.cloneElement(e,Nu({},0===t&&{"data-first-child":""},t===n.Children.count(r)-1&&{"data-last-child":""})):e))})});return void 0===o?l:e(db.Provider,{value:o,children:l})}const Ob=({theme:e,ownerState:t},n)=>{let r={};return t.sx&&(!function t(n){"function"==typeof n?t(n(e)):Array.isArray(n)?n.forEach((e=>{"boolean"!=typeof e&&t(e)})):"object"==typeof n&&(r=Nu({},r,n))}(t.sx),n.forEach((t=>{const n=r[t];var o;"string"==typeof n||"number"==typeof n?"borderRadius"===t?r[t]="number"==typeof n?`${n}px`:(null==(o=e.vars)?void 0:o.radius[n])||n:-1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof n?r[t]=e.spacing(n):r[t]=n:r[t]="function"==typeof n?n(e):void 0}))),r};function Ib(e){return wh("MuiList",e)}var Eb=xh("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const Pb=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Pb.displayName="RadioGroupContext");const Nb=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],$b=Vh("ul")((({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:a}=Ob({theme:e,ownerState:t},["p","padding","borderRadius"]);function i(n){return"sm"===n?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===n?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===n?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&Nu({},i(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&Nu({},i(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.marker&&{"--_List-markerDeduct":"1ch"},{"--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?Nu({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"},t.marker&&{paddingInlineStart:"3ch"}),Nu({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},null==(n=e.variants[t.variant])?void 0:n[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==o&&{"--List-padding":o})]})),zb=Vh($b,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rb=n.forwardRef((function(t,r){var o;const a=n.useContext(db),i=n.useContext(hb),l=n.useContext(Pb),s=_h({props:t,name:"JoyList"}),{component:c,className:u,children:d,size:p,orientation:f="vertical",wrap:m=!1,variant:g="plain",color:h="neutral",role:v,slots:b={},slotProps:y={}}=s,w=Up(s,Nb),x=p||(null!=(o=t.size)?o:"md");let S;i&&(S="group"),l&&(S="presentation"),v&&(S=v);const C=Nu({},s,{instanceSize:t.size,size:x,nesting:a,orientation:f,wrap:m,variant:g,color:h,role:S}),k=(e=>{const{variant:t,color:n,size:r,nesting:o,orientation:a,instanceSize:i}=e;return Cg({root:["root",a,t&&`variant${lf(t)}`,n&&`color${lf(n)}`,!i&&!o&&r&&`size${lf(r)}`,i&&`size${lf(i)}`,o&&"nesting"]},Ib,{})})(C),O=Nu({},w,{component:c,slots:b,slotProps:y}),[I,E]=sb("root",{ref:r,className:fm(k.root,u),elementType:zb,externalForwardedProps:O,ownerState:C,additionalProps:{as:c,role:S,"aria-labelledby":"string"==typeof a?a:void 0}});return e(I,Nu({},E,{children:e(mb.Provider,{value:`${"string"==typeof c?c:""}:${S||""}`,children:e(kb,{row:"horizontal"===f,wrap:m,children:d})})}))}));function Db(e){return wh("MuiListItemButton",e)}"production"!==process.env.NODE_ENV&&(Rb.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,marker:Za.string,orientation:Za.oneOf(["horizontal","vertical"]),role:Za.string,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string]),wrap:Za.bool});const Tb=xh("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),Mb=n.createContext("horizontal");"production"!==process.env.NODE_ENV&&(Mb.displayName="ListItemButtonOrientationContext");const Ab=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],Vb=Vh("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;return Nu({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:"var(--ListItem-gap)"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:Nu({},e.focus.default,{zIndex:1})},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],[`.${ub.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${Tb.selected}`]:Nu({},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${Tb.selected}, [aria-selected="true"])`]:{"&:hover":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color],"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},[`&.${Tb.disabled}`]:Nu({},null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color])})})),_b=Vh(Vb,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>Nu({},!e.row&&{[`&.${Tb.selected}`]:{fontWeight:t.vars.fontWeight.md}}))),Lb=n.forwardRef((function(t,r){const o=_h({props:t,name:"JoyListItemButton"}),a=n.useContext(pb),{children:i,className:l,action:s,component:c="div",orientation:u="horizontal",role:d,selected:p=!1,color:f="neutral",variant:m="plain",slots:g={},slotProps:h={}}=o,v=Up(o,Ab),b=n.useRef(null),y=lg(b,r),{focusVisible:w,setFocusVisible:x,getRootProps:S}=Xh(Nu({},o,{rootRef:y}));n.useImperativeHandle(s,(()=>({focusVisible:()=>{var e;x(!0),null==(e=b.current)||e.focus()}})),[x]);const C=Nu({},o,{component:c,color:f,focusVisible:w,orientation:u,row:a,selected:p,variant:m}),k=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,selected:a,variant:i}=e,l=Cg({root:["root",n&&"disabled",r&&"focusVisible",t&&`color${lf(t)}`,a&&"selected",i&&`variant${lf(i)}`]},Db,{});return r&&o&&(l.root+=` ${o}`),l})(C),O=Nu({},v,{component:c,slots:g,slotProps:h}),[I,E]=sb("root",{ref:r,className:fm(k.root,l),elementType:_b,externalForwardedProps:O,ownerState:C,getSlotProps:S});return e(Mb.Provider,{value:u,children:e(I,Nu({},E,{role:null!=d?d:E.role,children:i}))})}));function Fb(e){return wh("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(Lb.propTypes={action:Za.oneOfType([Za.func,Za.shape({current:Za.shape({focusVisible:Za.func.isRequired})})]),autoFocus:Za.bool,children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,focusVisibleClassName:Za.string,orientation:Za.oneOf(["horizontal","vertical"]),role:Za.string,selected:Za.bool,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),xh("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const jb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],Bb={sm:"xl",md:"xl2",lg:"xl3"},Hb=Vh("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n;return Nu({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[Bb[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[Bb[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&Nu({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1)`}))})),Wb=n.forwardRef((function(r,o){const a=_h({props:r,name:"JoySvgIcon"}),{children:i,className:l,color:s,component:c="svg",fontSize:u,htmlColor:d,inheritViewBox:p=!1,titleAccess:f,viewBox:m="0 0 24 24",size:g="md",slots:h={},slotProps:v={}}=a,b=Up(a,jb),y=n.isValidElement(i)&&"svg"===i.type,w=Nu({},a,{color:s,component:c,size:g,instanceSize:r.size,fontSize:u,instanceFontSize:r.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:y}),x=(e=>{const{color:t,size:n,fontSize:r}=e;return Cg({root:["root",t&&"inherit"!==t&&`color${lf(t)}`,n&&`size${lf(n)}`,r&&`fontSize${lf(r)}`]},Fb,{})})(w),S=Nu({},b,{component:c,slots:h,slotProps:v}),[C,k]=sb("root",{ref:o,className:fm(x.root,l),elementType:Hb,externalForwardedProps:S,ownerState:w,additionalProps:Nu({color:d,focusable:!1},f&&{role:"img"},!f&&{"aria-hidden":!0},!p&&{viewBox:m},y&&i.props)});return t(C,Nu({},k,{children:[y?i.props.children:i,f?e("title",{children:f}):null]}))}));function Gb(t,r){function o(n,o){return e(Wb,Nu({"data-testid":`${r}Icon`,ref:o},n,{children:t}))}return"production"!==process.env.NODE_ENV&&(o.displayName=`${r}Icon`),o.muiName=Wb.muiName,n.memo(n.forwardRef(o))}"production"!==process.env.NODE_ENV&&(Wb.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","inherit","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,fontSize:Za.oneOfType([Za.oneOf(["inherit","lg","md","sm","xl","xl2","xl3","xl4","xs"]),Za.string]),htmlColor:Za.string,inheritViewBox:Za.bool,shapeRendering:Za.string,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),titleAccess:Za.string,viewBox:Za.string});const qb=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Ub="data-skip-inverted-colors",Yb=`& :not([${Ub}], [${Ub}] *)`,Kb=e=>{var t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,v,b,y,w,x,S;const C=qb(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[C("--palette-focusVisible")]:`${null==(t=e.colorSchemes.light)?void 0:t.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(n=e.colorSchemes.light)?void 0:n.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(r=e.colorSchemes.light)?void 0:r.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(o=e.colorSchemes.light)?void 0:o.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(a=e.colorSchemes.light)?void 0:a.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(i=e.colorSchemes.light)?void 0:i.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(l=e.colorSchemes.light)?void 0:l.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(s=e.colorSchemes.light)?void 0:s.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(c=e.colorSchemes.light)?void 0:c.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(u=e.colorSchemes.light)?void 0:u.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(d=e.colorSchemes.light)?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[C("--palette-focusVisible")]:`${null==(p=e.colorSchemes.dark)?void 0:p.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(f=e.colorSchemes.dark)?void 0:f.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(m=e.colorSchemes.dark)?void 0:m.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(g=e.colorSchemes.dark)?void 0:g.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(h=e.colorSchemes.dark)?void 0:h.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(v=e.colorSchemes.dark)?void 0:v.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(b=e.colorSchemes.dark)?void 0:b.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(y=e.colorSchemes.dark)?void 0:y.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(w=e.colorSchemes.dark)?void 0:w.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(x=e.colorSchemes.dark)?void 0:x.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(S=e.colorSchemes.dark)?void 0:S.palette.divider} !important`}}};const Jb=e=>t=>{const n=void 0!==t.theme?t.theme:t;const r=Wg(n.cssVarPrefix),o=qb(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[Yb]:{"--Badge-ringColor":a(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[o("--palette-focusVisible")]:a(`palette-${e}-200`),[o("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[o("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[o("--palette-background-popup")]:a(`palette-${e}-700`),[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.36)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.6)`,[o("--palette-text-primary")]:a("palette-common-white"),[o("--palette-text-secondary")]:a(`palette-${e}-200`),[o("--palette-text-tertiary")]:a(`palette-${e}-300`),[o("--palette-text-icon")]:a(`palette-${e}-200`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${e}-${"neutral"===e?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${Ub}]`]:Kb(n)}},Xb=e=>t=>{const{theme:n=t}=t,r=Wg(n.cssVarPrefix),o=qb(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[Yb]:{"--Badge-ringColor":a(`palette-${e}-softBg`),"--Icon-color":"currentColor",[n.getColorSchemeSelector("dark")]:{[o("--palette-focusVisible")]:a(`palette-${e}-300`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,[o("--palette-text-primary")]:a(`palette-${e}-100`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-text-icon")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${e}-200`),"--variant-softBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`},[n.getColorSchemeSelector("light")]:{[o("--palette-focusVisible")]:a(`palette-${e}-500`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,[o("--palette-text-primary")]:a(`palette-${e}-700`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.68)`,[o("--palette-text-icon")]:a(`palette-${e}-500`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${e}-600`),"--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${e}-600`),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${e}-700`),"--variant-softHoverBg":a(`palette-${e}-200`),"--variant-softActiveBg":a(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${e}-${"neutral"===e?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${Ub}]`]:Kb(n)}};var Qb=Gb(e("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Zb=Gb(e("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ey=n.createContext(void 0);function ty(e,t){let n=t,r=e;return"outlined"===e&&(n="neutral",r="plain"),"plain"===e&&(n="neutral"),{variant:r,color:n}}function ny(e,t,r=!1){const o=n.useContext(ey),[a,i]="string"==typeof o?o.split(":"):[],l=ty(a||void 0,i||void 0);return l.variant=e||l.variant,l.color=t||(r?i:l.color),l}function ry({children:t,color:n,variant:r}){return e(ey.Provider,{value:`${r||""}:${n||""}`,children:t})}function oy(e){return wh("MuiIconButton",e)}"production"!==process.env.NODE_ENV&&(ey.displayName="VariantColorContext"),xh("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]);const ay=n.createContext({});"production"!==process.env.NODE_ENV&&(ay.displayName="ButtonGroupContext");const iy=n.createContext(void 0);function ly(e){return wh("MuiCircularProgress",e)}"production"!==process.env.NODE_ENV&&(iy.displayName="ToggleButtonGroupContext"),xh("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let sy,cy=e=>e;const uy=["color","backgroundColor"],dy=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],py=function(){var e=Np.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}});function fy(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}const my=Vh("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>{var n,r,o,a;const i=(null==(n=t.variants[e.variant])?void 0:n[e.color])||{},{color:l,backgroundColor:s}=i,c=Up(i,uy);return Nu({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":l,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":fy("track","3px"),"--_progress-thickness":fy("progress","3px")},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--_track-thickness":fy("track","6px"),"--_progress-thickness":fy("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--_track-thickness":fy("track","8px"),"--_progress-thickness":fy("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:l},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},c,"outlined"===e.variant&&{"&::before":Nu({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},c)},"soft"===e.variant&&{"--CircularProgress-trackColor":t.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":null==(r=t.variants.solid)?void 0:r[e.color].backgroundColor},"solid"===e.variant&&{"--CircularProgress-trackColor":null==(o=t.variants.softHover)?void 0:o[e.color].backgroundColor,"--CircularProgress-progressColor":null==(a=t.variants.solid)?void 0:a[e.color].backgroundColor})})),gy=Vh("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),hy=Vh("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),vy=Vh("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},(({ownerState:e})=>!e.determinate&&Np(sy||(sy=cy`
|
|
869
|
-
animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
|
|
870
|
-
${0};
|
|
871
|
-
`),py))),by=n.forwardRef((function(n,r){const o=_h({props:n,name:"JoyCircularProgress"}),{children:a,className:i,color:l="primary",size:s="md",variant:c="soft",thickness:u,determinate:d=!1,value:p=(d?0:25),component:f,slots:m={},slotProps:g={}}=o,h=Up(o,dy),v=Nu({},o,{color:l,size:s,variant:c,thickness:u,value:p,determinate:d,instanceSize:n.size}),b=(e=>{const{determinate:t,color:n,variant:r,size:o}=e;return Cg({root:["root",t&&"determinate",n&&`color${lf(n)}`,r&&`variant${lf(r)}`,o&&`size${lf(o)}`],svg:["svg"],track:["track"],progress:["progress"]},ly,{})})(v),y=Nu({},h,{component:f,slots:m,slotProps:g}),[w,x]=sb("root",{ref:r,className:fm(b.root,i),elementType:my,externalForwardedProps:y,ownerState:v,additionalProps:Nu({role:"progressbar",style:{"--CircularProgress-percent":p}},p&&d&&{"aria-valuenow":"number"==typeof p?Math.round(p):Math.round(Number(p||0))})}),[S,C]=sb("svg",{className:b.svg,elementType:gy,externalForwardedProps:y,ownerState:v}),[k,O]=sb("track",{className:b.track,elementType:hy,externalForwardedProps:y,ownerState:v}),[I,E]=sb("progress",{className:b.progress,elementType:vy,externalForwardedProps:y,ownerState:v});return t(w,Nu({},x,{children:[t(S,Nu({},C,{children:[e(k,Nu({},O)),e(I,Nu({},E))]})),a]}))}));"production"!==process.env.NODE_ENV&&(by.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,determinate:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({progress:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),svg:Za.oneOfType([Za.func,Za.object]),track:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({progress:Za.elementType,root:Za.elementType,svg:Za.elementType,track:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),thickness:Za.number,value:Za.number,variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});const yy=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],wy=Vh("button")((({theme:e,ownerState:t})=>{var n,r,o,a;return[Nu({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:Nu({"--Icon-color":"currentColor"},e.focus.default)}),Nu({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":Nu({"--Icon-color":"currentColor"},null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color])},'&:active, &[aria-pressed="true"]':Nu({"--Icon-color":"currentColor"},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]),"&:disabled":null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]})]})),xy=Vh(wy,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sy=Vh("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e,ownerState:t})=>{var n,r;return Nu({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),Cy=n.forwardRef((function(t,r){var o;const a=_h({props:t,name:"JoyIconButton"}),{children:i,action:l,component:s="button",color:c="neutral",disabled:u,variant:d="plain",loading:p=!1,loadingIndicator:f,size:m="md",slots:g={},slotProps:h={}}=a,v=Up(a,yy),b=n.useContext(ay),y=n.useContext(iy),w=t.variant||b.variant||d,x=t.size||b.size||m,S=t.color||b.color||c,C=null!=(o=t.loading||t.disabled)?o:b.disabled||p||u,k=n.useRef(null),O=lg(k,r),{focusVisible:I,setFocusVisible:E,getRootProps:P}=Xh(Nu({},a,{disabled:C,rootRef:O})),N=null!=f?f:e(by,{color:S,thickness:{sm:2,md:3,lg:4}[x]||3});n.useImperativeHandle(l,(()=>({focusVisible:()=>{var e;E(!0),null==(e=k.current)||e.focus()}})),[E]);const $=Nu({},a,{component:s,color:S,disabled:C,variant:w,loading:p,size:x,focusVisible:I,instanceSize:t.size}),z=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,size:a,variant:i,loading:l}=e,s=Cg({root:["root",n&&"disabled",r&&"focusVisible",i&&`variant${lf(i)}`,t&&`color${lf(t)}`,a&&`size${lf(a)}`,l&&"loading"],loadingIndicator:["loadingIndicator"]},oy,{});return r&&o&&(s.root+=` ${o}`),s})($);let R=a["aria-pressed"];"function"==typeof h.root?R=h.root($)["aria-pressed"]:h.root&&(R=h.root["aria-pressed"]),null!=y&&y.value&&(R=Array.isArray(y.value)?-1!==y.value.indexOf(a.value):y.value===a.value);const D=Nu({},v,{component:s,slots:g,slotProps:h}),[T,M]=sb("root",{ref:r,className:z.root,elementType:xy,getSlotProps:P,externalForwardedProps:D,ownerState:$,additionalProps:{onClick:e=>{var t;let n=a.onClick;var r;("function"==typeof h.root?n=h.root($).onClick:h.root&&(n=h.root.onClick),null==(t=n)||t(e),y)&&(null==(r=y.onClick)||r.call(y,e,a.value))},"aria-pressed":R}}),[A,V]=sb("loadingIndicator",{className:z.loadingIndicator,elementType:Sy,externalForwardedProps:D,ownerState:$});return e(T,Nu({},M,{children:p?e(A,Nu({},V,{children:N})):i}))}));function ky(e){return wh("MuiChip",e)}"production"!==process.env.NODE_ENV&&(Cy.propTypes={action:Za.oneOfType([Za.func,Za.shape({current:Za.shape({focusVisible:Za.func.isRequired})})]),children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,focusVisibleClassName:Za.string,loading:Za.bool,loadingIndicator:Za.node,onClick:Za.func,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({loadingIndicator:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({loadingIndicator:Za.elementType,root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,value:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Cy.muiName="IconButton";const Oy=xh("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),Iy=n.createContext({disabled:void 0,variant:void 0,color:void 0});"production"!==process.env.NODE_ENV&&(Iy.displayName="ChipColorContext");const Ey=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],Py=Vh("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r,o;const a=null==(n=e.variants[t.variant])?void 0:n[t.color],{borderRadius:i}=Ob({theme:e,ownerState:t},["borderRadius"]);return[Nu({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--Icon-color":"currentColor","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-paddingInline":"0.375rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.sm,"--_Chip-minHeight":"var(--Chip-minHeight, 1.25rem)",gap:"3px"},"md"===t.size&&{"--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.md,"--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",gap:"0.25rem"},"lg"===t.size&&{"--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.lg,"--_Chip-minHeight":"var(--Chip-minHeight, 1.75rem)",gap:"0.375rem"},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],{fontWeight:e.vars.fontWeight.md,[`&.${Oy.disabled}`]:{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==a?void 0:a.color}]:[Nu({backgroundColor:e.vars.palette.background.surface},a,{[`&.${Oy.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]})],void 0!==i&&{"--_Chip-radius":i}]})),Ny=Vh("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})((({ownerState:e})=>Nu({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"}))),$y=Vh("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})((({theme:e,ownerState:t})=>{var n,r,o,a;return[{"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},Nu({backgroundColor:e.vars.palette.background.surface},null==(n=e.variants[t.variant])?void 0:n[t.color]),{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]}},{"&:active":null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]},{[`&.${Oy.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]})),zy=Vh("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--IconButton-margin":"0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",order:0,zIndex:1,pointerEvents:"none"}),Ry=Vh("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--IconButton-margin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",order:2,zIndex:1,pointerEvents:"none"}),Dy=n.forwardRef((function(r,o){const a=_h({props:r,name:"JoyChip"}),{children:i,className:l,color:s="neutral",onClick:c,disabled:u=!1,size:d="md",variant:p="soft",startDecorator:f,endDecorator:m,component:g,slots:h={},slotProps:v={}}=a,b=Up(a,Ey),y=!!c||!!v.action,w=Nu({},a,{disabled:u,size:d,color:s,variant:p,clickable:y,focusVisible:!1}),x="function"==typeof v.action?v.action(w):v.action,S=n.useRef(null),{focusVisible:C,getRootProps:k}=Xh(Nu({},x,{disabled:u,rootRef:S}));w.focusVisible=C;const O=(e=>{const{disabled:t,size:n,color:r,clickable:o,variant:a,focusVisible:i}=e;return Cg({root:["root",t&&"disabled",r&&`color${lf(r)}`,n&&`size${lf(n)}`,a&&`variant${lf(a)}`,o&&"clickable"],action:["action",t&&"disabled",i&&"focusVisible"],label:["label",n&&`label${lf(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},ky,{})})(w),I=Nu({},b,{component:g,slots:h,slotProps:v}),[E,P]=sb("root",{ref:o,className:fm(O.root,l),elementType:Py,externalForwardedProps:I,ownerState:w}),[N,$]=sb("label",{className:O.label,elementType:Ny,externalForwardedProps:I,ownerState:w}),z=og($.id),[R,D]=sb("action",{className:O.action,elementType:$y,externalForwardedProps:I,ownerState:w,getSlotProps:k,additionalProps:{"aria-labelledby":z,as:null==x?void 0:x.component,onClick:c}}),[T,M]=sb("startDecorator",{className:O.startDecorator,elementType:zy,externalForwardedProps:I,ownerState:w}),[A,V]=sb("endDecorator",{className:O.endDecorator,elementType:Ry,externalForwardedProps:I,ownerState:w}),_=n.useMemo((()=>({disabled:u})),[u]);return e(Iy.Provider,{value:_,children:e(ry,{variant:p,color:s,children:t(E,Nu({},P,{children:[y&&e(R,Nu({},D)),e(N,Nu({},$,{id:z,children:i})),f&&e(T,Nu({},M,{children:f})),m&&e(A,Nu({},V,{children:m}))]}))})})}));"production"!==process.env.NODE_ENV&&(Dy.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,endDecorator:Za.node,onClick:Za.func,size:Za.oneOfType([Za.oneOf(["lg","md","sm"]),Za.string]),slotProps:Za.shape({action:Za.oneOfType([Za.func,Za.object]),endDecorator:Za.oneOfType([Za.func,Za.object]),label:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({action:Za.elementType,endDecorator:Za.elementType,label:Za.elementType,root:Za.elementType,startDecorator:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});var Ty,My=Gb(e("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Cancel");function Ay(e){return wh("MuiChipDelete",e)}xh("MuiChipDelete",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSolid","variantSoft","variantOutlined"]);const Vy=["children","variant","color","disabled","onKeyDown","onDelete","onClick","component","slots","slotProps"],_y=["onDelete"],Ly=Vh(wy,{name:"JoyChipDelete",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({"--IconButton-size":"var(--Chip-deleteSize, 2rem)","--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.3)",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px",pointerEvents:"visible",borderRadius:"var(--Chip-deleteRadius, 50%)",zIndex:1,padding:0}))),Fy=n.forwardRef((function(t,r){const o=_h({props:t,name:"JoyChipDelete"}),{children:a,variant:i="plain",color:l="neutral",disabled:s,onKeyDown:c,onDelete:u,onClick:d,component:p,slots:f={},slotProps:m={}}=o,g=Up(o,Vy),h=n.useContext(Iy),{variant:v=i,color:b=l}=ny(t.variant,t.color,!0),y=t.color||b,w=null!=s?s:h.disabled,x=lg(n.useRef(null),r),{focusVisible:S,getRootProps:C}=Xh(Nu({},o,{disabled:w,rootRef:x})),k=Nu({},o,{disabled:w,variant:v,color:y,focusVisible:S}),O=(e=>{const{focusVisible:t,variant:n,color:r,disabled:o}=e;return Cg({root:["root",o&&"disabled",t&&"focusVisible",n&&`variant${lf(n)}`,r&&`color${lf(r)}`]},Ay,{})})(k),I=Nu({},g,{component:p,slots:f,slotProps:m}),[E,P]=sb("root",{ref:r,elementType:Ly,getSlotProps:C,externalForwardedProps:I,ownerState:k,additionalProps:{as:p,onKeyDown:e=>{["Backspace","Enter","Delete"].includes(e.key)&&(e.preventDefault(),!w&&u&&u(e)),c&&c(e)},onClick:e=>{!w&&u&&u(e),d&&d(e)}},className:O.root}),N=Up(P,_y);return e(E,Nu({},N,{children:null!=a?a:Ty||(Ty=e(My,{}))}))}));function jy(e){return wh("MuiInput",e)}"production"!==process.env.NODE_ENV&&(Fy.propTypes={children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,onClick:Za.func,onDelete:Za.func,onKeyDown:Za.func,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});const By=xh("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),Hy=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Hy.displayName="FormControlContext");const Wy=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];const Gy=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],qy=Vh("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;const s=null==(n=e.variants[`${t.variant}`])?void 0:n[t.color];return[Nu({"--Input-radius":e.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":e.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":e.vars.focus.thickness,"--Input-focusedHighlight":null==(r=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:r[500],[`&:not([${Ub}])`]:Nu({},t.instanceColor&&{"--_Input-focusedHighlight":null==(o=e.vars.palette["neutral"===t.instanceColor?"primary":t.instanceColor])?void 0:o[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${e.vars.palette.focusVisible})`})},"sm"===t.size&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},t.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},e.typography[`body-${t.size}`],s,{backgroundColor:null!=(a=null==s?void 0:s.backgroundColor)?a:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":Nu({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null}),[`&.${By.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Input-focused":"1"}}]})),Uy=Vh("input")((({ownerState:e})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":Nu({paddingInline:"var(--Input-paddingInline)"},!e.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!e.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}}))),Yy=Vh("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),Ky=Vh("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),Jy=Vh(qy,{name:"JoyInput",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xy=Vh(Uy,{name:"JoyInput",slot:"Input",overridesResolver:(e,t)=>t.input})({}),Qy=Vh(Yy,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),Zy=Vh(Ky,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({}),ew=n.forwardRef((function(r,o){var a,i,l,s,c,u;const d=_h({props:r,name:"JoyInput"}),p=function(e,t){var r;const o=n.useContext(Hy),{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,className:u,defaultValue:d,disabled:p,disabledInProp:f,error:m,id:g,name:h,onClick:v,onChange:b,onKeyDown:y,onKeyUp:w,onFocus:x,onBlur:S,placeholder:C,readOnly:k,required:O,type:I,value:E}=e,P=Up(e,Wy),{getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D}=pv({disabled:null!=(r=null!=f?f:null==o?void 0:o.disabled)?r:p,defaultValue:d,error:m,onBlur:S,onClick:v,onChange:b,onFocus:x,required:null!=O?O:null==o?void 0:o.required,value:E});return Nu({formControl:o,propsToForward:{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,disabled:D,id:g,onKeyDown:y,onKeyUp:w,name:h,placeholder:C,readOnly:k,type:I},rootStateClasses:{[t.disabled]:D,[t.error]:R,[t.focused]:z,[t.formControl]:Boolean(o),[u]:u},inputStateClasses:{[t.disabled]:D},getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D},P)}(Nu({},d,{disabledInProp:r.disabled}),By),{propsToForward:f,rootStateClasses:m,inputStateClasses:g,getRootProps:h,getInputProps:v,formControl:b,focused:y,error:w=!1,disabled:x,fullWidth:S=!1,size:C="md",color:k="neutral",variant:O="outlined",startDecorator:I,endDecorator:E,component:P,slots:N={},slotProps:$={}}=p,z=Up(p,Gy);if("production"!==process.env.NODE_ENV){const e=null==b?void 0:b.registerEffect;n.useEffect((()=>{if(e)return e()}),[e])}const R=null!=(a=null!=(i=r.error)?i:null==b?void 0:b.error)?a:w,D=null!=(l=null!=(s=r.size)?s:null==b?void 0:b.size)?l:C,T=null!=(c=r.color)?c:R?"danger":null!=(u=null==b?void 0:b.color)?u:k,M=Nu({instanceColor:R?"danger":r.color},d,{fullWidth:S,color:T,disabled:x,error:R,focused:y,size:D,variant:O}),A=(e=>{const{disabled:t,fullWidth:n,variant:r,color:o,size:a}=e;return Cg({root:["root",t&&"disabled",n&&"fullWidth",r&&`variant${lf(r)}`,o&&`color${lf(o)}`,a&&`size${lf(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},jy,{})})(M),V=Nu({},z,{component:P,slots:N,slotProps:$}),[_,L]=sb("root",{ref:o,className:[A.root,m],elementType:Jy,getSlotProps:h,externalForwardedProps:V,ownerState:M}),[F,j]=sb("input",Nu({},b&&{additionalProps:{id:b.htmlFor,"aria-describedby":b["aria-describedby"]}},{className:[A.input,g],elementType:Xy,getSlotProps:v,internalForwardedProps:f,externalForwardedProps:V,ownerState:M})),[B,H]=sb("startDecorator",{className:A.startDecorator,elementType:Qy,externalForwardedProps:V,ownerState:M}),[W,G]=sb("endDecorator",{className:A.endDecorator,elementType:Zy,externalForwardedProps:V,ownerState:M});return t(_,Nu({},L,{children:[I&&e(B,Nu({},H,{children:I})),e(F,Nu({},j)),E&&e(W,Nu({},G,{children:E}))]}))}));function tw(e){return wh("MuiListSubheader",e)}"production"!==process.env.NODE_ENV&&(ew.propTypes={autoComplete:Za.string,autoFocus:Za.bool,children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),defaultValue:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),disabled:Za.bool,endDecorator:Za.node,error:Za.bool,fullWidth:Za.bool,id:Za.string,name:Za.string,onChange:Za.func,placeholder:Za.string,readOnly:Za.bool,required:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),value:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),xh("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const nw=["component","className","children","id","sticky","variant","color","slots","slotProps"],rw=Vh("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;return Nu({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)"},e.typography["body-xs"],{fontSize:"max(0.75em, 0.625rem)",textTransform:"uppercase",letterSpacing:"0.1em"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:t.color?`var(--_Link-color, rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1))`:e.vars.palette.text.tertiary},t.instanceColor&&{[`&:not([${Ub}])`]:{"--_Link-color":e.vars.palette.text.secondary}},null==(r=e.variants[t.variant])?void 0:r[t.color])})),ow=n.forwardRef((function(t,r){const o=_h({props:t,name:"JoyListSubheader"}),{component:a,className:i,children:l,id:s,sticky:c=!1,variant:u,color:d,slots:p={},slotProps:f={}}=o,m=Up(o,nw),g=og(s),h=n.useContext(gb);n.useEffect((()=>{h&&h(g||"")}),[h,g]);const v=Nu({instanceColor:t.color},o,{id:g,sticky:c,variant:u,color:u?null!=d?d:"neutral":d}),b=(e=>{const{variant:t,color:n,sticky:r}=e;return Cg({root:["root",r&&"sticky",n&&`color${lf(n)}`,t&&`variant${lf(t)}`]},tw,{})})(v),y=Nu({},m,{component:a,slots:p,slotProps:f}),[w,x]=sb("root",{ref:r,className:fm(b.root,i),elementType:rw,externalForwardedProps:y,ownerState:v,additionalProps:{as:a,id:g}});return e(w,Nu({},x,{children:l}))}));function aw(e){return wh("MuiAutocomplete",e)}"production"!==process.env.NODE_ENV&&(ow.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,id:Za.string,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sticky:Za.bool,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])});const iw=xh("MuiAutocomplete",["root","wrapper","input","startDecorator","endDecorator","formControl","focused","disabled","error","multiple","limitTag","hasPopupIcon","hasClearIcon","clearIndicator","popupIndicator","popupIndicatorOpen","listbox","option","loading","noOptions","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);function lw(e){return wh("MuiAutocompleteListbox",e)}xh("MuiAutocompleteListbox",["root","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const sw=["anchorEl","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","TransitionProps"],cw=["children","className","component","color","variant","size","slots","slotProps"],uw=Vh($b)((({theme:e,ownerState:t})=>{var n;const r=null==(n=e.variants[t.variant])?void 0:n[t.color];return Nu({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==r?void 0:r.backgroundColor)||(null==r?void 0:r.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},Cb,{boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`},!(null!=r&&r.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},{zIndex:e.vars.zIndex.popup,overflow:"auto",maxHeight:"40vh",position:"relative","&:empty":{visibility:"hidden"},[`& .${ub.nested}, & .${ub.nested} .${Eb.root}`]:{position:"initial"}})})),dw=Vh(uw,{name:"JoyAutocompleteListbox",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pw=n.forwardRef((function(t,n){const r=_h({props:t,name:"JoyAutocompleteListbox"}),{children:o,className:a,component:i,color:l="neutral",variant:s="outlined",size:c="md",slots:u={},slotProps:d={}}=r,p=Up(r,cw),f=Nu({},r,{size:c,color:l,variant:s,nesting:!1,row:!1,wrap:!1}),m=(e=>Up(e,sw))(p),g=(e=>{const{variant:t,color:n,size:r}=e;return Cg({root:["root",t&&`variant${lf(t)}`,n&&`color${lf(n)}`,r&&`size${lf(r)}`]},lw,{})})(f),h=Nu({},m,{component:i,slots:u,slotProps:d}),[v,b]=sb("root",{ref:n,className:fm(g.root,a),elementType:dw,externalForwardedProps:h,ownerState:f,additionalProps:{role:"listbox"}});return e(ry,{variant:s,color:l,children:e(v,Nu({},b,{children:o}))})}));function fw(e){return wh("MuiAutocompleteOption",e)}"production"!==process.env.NODE_ENV&&(pw.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,size:Za.oneOf(["sm","md","lg"]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["contained","light","outlined","text"]),Za.string])}),xh("MuiAutocompleteOption",["root","focused","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const mw=["children","component","color","variant","className","slots","slotProps"],gw=Vh(Vb)((({theme:e,ownerState:t})=>{var n,r;return{'&[aria-disabled="true"]':null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color],'&[aria-selected="true"]':Nu({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{fontWeight:e.vars.fontWeight.md})}})),hw=Vh(gw,{name:"JoyAutocompleteOption",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vw=n.forwardRef((function(t,n){const r=_h({props:t,name:"JoyAutocompleteOption"}),{children:o,component:a="li",color:i="neutral",variant:l="plain",className:s,slots:c={},slotProps:u={}}=r,d=Up(r,mw),{variant:p=l,color:f=i}=ny(t.variant,t.color),m=Nu({},r,{component:a,color:f,variant:p}),g=(e=>{const{color:t,variant:n}=e;return Cg({root:["root",t&&`color${lf(t)}`,n&&`variant${lf(n)}`]},fw,{})})(m),h=Nu({},d,{component:a,slots:c,slotProps:u}),[v,b]=sb("root",{ref:n,className:fm(g.root,s),elementType:hw,externalForwardedProps:h,ownerState:m,additionalProps:{as:a,role:"option"}});return e(v,Nu({},b,{children:o}))}));var bw,yw;"production"!==process.env.NODE_ENV&&(vw.propTypes={children:Za.node,className:Za.string,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["contained","light","outlined","text"]),Za.string])});const ww=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoHighlight","autoSelect","autoFocus","blurOnSelect","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","defaultValue","disableCloseOnSelect","disabledItemsFocusable","disableListWrap","disableClearable","disabled","endDecorator","error","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","handleHomeEndKeys","includeInputInList","isOptionEqualToValue","groupBy","id","inputValue","limitTags","loading","loadingText","multiple","name","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","placeholder","popupIcon","readOnly","renderGroup","renderOption","renderTags","required","type","startDecorator","size","color","variant","value","component","selectOnFocus","slots","slotProps"],xw=["onDelete"],Sw=["onBlur","onFocus","onMouseDown"],Cw=e=>null!==e.current&&e.current.contains(document.activeElement),kw=e=>{var t;return null!=(t=e.label)?t:e},Ow=e=>`+${e}`,Iw=n=>t(Sb,{nested:!0,children:[e(ow,{sticky:!0,children:n.group}),e(Rb,{children:n.children})]},n.key),Ew=Vh(qy,{name:"JoyAutocomplete",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Nu({},"sm"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"md"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"lg"===e.size&&{"--Autocomplete-wrapperGap":"4px"},{"@media (pointer: fine)":{[`&:hover .${iw.clearIndicator}`]:{visibility:"visible"}}},e.multiple&&!e.startDecorator&&{paddingInlineStart:0}))),Pw=Vh("div",{name:"JoyAutocomplete",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>({flex:1,minWidth:0,display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--Autocomplete-wrapperGap)",[`&.${iw.multiple}`]:Nu({paddingBlock:"var(--Autocomplete-wrapperGap)"},!e.startDecorator&&{paddingInlineStart:"var(--Autocomplete-wrapperGap)"},!e.endDecorator&&{paddingInlineEnd:"var(--Autocomplete-wrapperGap)"})}))),Nw=Vh(Uy,{name:"JoyAutocomplete",slot:"Input",overridesResolver:(e,t)=>t.input})((({ownerState:e})=>Nu({minWidth:30,minHeight:"var(--Chip-minHeight)"},e.multiple&&{marginInlineStart:"calc(var(--Autocomplete-wrapperGap) * 2.5)"}))),$w=Vh(Yy,{name:"JoyAutocomplete",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),zw=Vh(Ky,{name:"JoyAutocomplete",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})((({ownerState:e})=>Nu({},(e.hasClearIcon||e.hasPopupIcon)&&{"--Button-margin":"0px","--IconButton-margin":"0px","--Icon-margin":"0px"}))),Rw=Vh(wy,{name:"JoyAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})((({ownerState:e})=>Nu({alignSelf:"center"},!e.hasPopupIcon&&{marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)"},{marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",visibility:e.focused?"visible":"hidden"}))),Dw=Vh(wy,{name:"JoyAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>t.popupIndicator})({alignSelf:"center",marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)",[`&.${iw.popupIndicatorOpen}`]:{transform:"rotate(180deg)","--Icon-color":"currentColor"}}),Tw=Vh(uw,{name:"JoyAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`}))),Mw=Vh(gw,{name:"JoyAutocomplete",slot:"Option",overridesResolver:(e,t)=>t.option})({}),Aw=Vh(Sb,{name:"JoyAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),Vw=Vh(Sb,{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),_w=Vh("div",{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})({marginInlineStart:"calc(var(--Input-paddingInline) / 2)",marginBlockStart:"var(--_Input-paddingBlock)"}),Lw=n.forwardRef((function(r,o){var a,i,l,s,c,u,d;const p=_h({props:r,name:"JoyAutocomplete"}),{"aria-describedby":f,"aria-label":m,"aria-labelledby":g,autoFocus:h,clearIcon:v=bw||(bw=e(Qb,{fontSize:"md"})),clearText:b="Clear",closeText:y="Close",disableClearable:w=!1,disabled:x,endDecorator:S,error:C=!1,forcePopupIcon:k="auto",freeSolo:O=!1,getLimitTagsText:I=Ow,getOptionLabel:E=kw,groupBy:P,id:N,limitTags:$=-1,loading:z=!1,loadingText:R="Loading…",multiple:D=!1,name:T,noOptionsText:M="No options",openText:A="Open",placeholder:V,popupIcon:_=yw||(yw=e(Zb,{})),readOnly:L=!1,renderGroup:F=Iw,renderOption:j,renderTags:B,required:H,type:W,startDecorator:G,size:q="md",color:U="neutral",variant:Y="outlined",component:K,slots:J={},slotProps:X={}}=p,Q=Up(p,ww),Z=n.useContext(Hy),ee=null!=(a=null!=(i=r.error)?i:null==Z?void 0:Z.error)?a:C,te=null!=(l=null!=(s=r.size)?s:null==Z?void 0:Z.size)?l:q,ne=null!=(c=r.color)?c:ee?"danger":null!=(u=null==Z?void 0:Z.color)?u:U,re=null!=(d=null!=x?x:null==Z?void 0:Z.disabled)&&d,{getRootProps:oe,getInputProps:ae,getPopupIndicatorProps:ie,getClearProps:le,getTagProps:se,getListboxProps:ce,getOptionProps:ue,value:de,dirty:pe,popupOpen:fe,focused:me,focusedTag:ge,anchorEl:he,setAnchorEl:ve,inputValue:be,groupedOptions:ye}=ob(Nu({},p,{id:null!=N?N:null==Z?void 0:Z.htmlFor,componentName:"Autocomplete",unstable_classNamePrefix:"Mui",unstable_isActiveElementInListbox:Cw})),{onMouseDown:we}=ae(),{onClick:xe}=oe(),Se=!w&&!re&&pe&&!L,Ce=(!O||!0===k)&&!1!==k,ke=Nu({instanceColor:r.color},p,{value:de,disabled:re,focused:me,getOptionLabel:E,hasOptions:!!ye.length,hasClearIcon:Se,hasPopupIcon:Ce,inputFocused:-1===ge,popupOpen:fe,size:te,color:ne,variant:Y}),Oe=(e=>{const{disabled:t,focused:n,hasClearIcon:r,hasPopupIcon:o,popupOpen:a,variant:i,color:l,size:s,multiple:c}=e;return Cg({root:["root",n&&"focused",r&&"hasClearIcon",o&&"hasPopupIcon",i&&`variant${lf(i)}`,l&&`color${lf(l)}`,s&&`size${lf(s)}`],wrapper:["wrapper",c&&"multiple"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",a&&"popupIndicatorOpen",t&&"disabled"],listbox:["listbox"],option:["option"],loading:["loading"],noOptions:["noOptions"],limitTag:["limitTag"]},aw,{})})(ke),Ie=Nu({},Q,{component:K,slots:J,slotProps:X});let Ee;if(D&&de.length>0){const t=e=>{const t=se(e),{onDelete:n}=t,r=Up(t,xw);return Nu({disabled:re,size:te,onClick:n},r)};Ee=B?B(de,t,ke):de.map(((n,r)=>e(Dy,{size:te,variant:"soft",color:"neutral",endDecorator:e(Fy,Nu({},t({index:r}))),sx:{minWidth:0},children:E(n)},r)))}const Pe=lg(o,ve),Ne={[iw.disabled]:re,[iw.error]:ee,[iw.focused]:me,[iw.formControl]:Boolean(Z)},[$e,ze]=sb("root",{ref:Pe,className:[Oe.root,Ne],elementType:Ew,externalForwardedProps:Ie,ownerState:ke,getSlotProps:oe,additionalProps:{onClick:e=>{xe&&xe(e),e.currentTarget===e.target&&we&&we(e)}}}),[Re,De]=sb("wrapper",{className:Oe.wrapper,elementType:Pw,externalForwardedProps:Ie,ownerState:ke}),Te={[iw.disabled]:re},[Me,Ae]=sb("input",{className:[Oe.input,Te],elementType:Nw,getSlotProps:e=>{const t=ae(),{onBlur:n,onFocus:r,onMouseDown:o}=t;return Nu({},Up(t,Sw),{onBlur:t=>{var r;null==n||n(t),null==(r=e.onBlur)||r.call(e,t)},onFocus:t=>{var n;null==r||r(t),null==(n=e.onFocus)||n.call(e,t)},onMouseDown:t=>{var n;null==o||o(t),null==(n=e.onMouseDown)||n.call(e,t)}})},externalForwardedProps:Ie,ownerState:ke,additionalProps:{autoFocus:h,placeholder:V,name:T,readOnly:L,disabled:re,required:null!=H?H:null==Z?void 0:Z.required,type:W,"aria-invalid":ee||void 0,"aria-label":m,"aria-labelledby":g,"aria-describedby":null!=f?f:null==Z?void 0:Z["aria-describedby"]}}),[Ve,_e]=sb("startDecorator",{className:Oe.startDecorator,elementType:$w,externalForwardedProps:Ie,ownerState:ke}),[Le,Fe]=sb("endDecorator",{className:Oe.endDecorator,elementType:zw,externalForwardedProps:Ie,ownerState:ke}),[je,Be]=sb("clearIndicator",{className:Oe.clearIndicator,elementType:Rw,getSlotProps:le,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({size:e.size||te,variant:e.variant||ty(Y,ne).variant||"plain",color:e.color||ty(Y,ne).color||"neutral",disableColorInversion:!!r.color}),additionalProps:{"aria-label":b,title:b}}),[He,We]=sb("popupIndicator",{className:Oe.popupIndicator,elementType:Dw,getSlotProps:ie,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({size:e.size||te,variant:e.variant||ty(Y,ne).variant||"plain",color:e.color||ty(Y,ne).color||"neutral",disableColorInversion:!!r.color}),additionalProps:{disabled:re,"aria-label":fe?y:A,title:fe?y:A,type:"button"}}),[Ge,qe]=sb("listbox",{className:Oe.listbox,elementType:Tw,getSlotProps:ce,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({size:e.size||te,variant:e.variant||Y,color:e.color||ne,disableColorInversion:!e.disablePortal}),additionalProps:{anchorEl:he,open:fe,style:he?{width:he.clientWidth}:{}}}),[Ue,Ye]=sb("loading",{className:Oe.loading,elementType:Aw,externalForwardedProps:Ie,ownerState:ke}),[Ke,Je]=sb("noOptions",{className:Oe.noOptions,elementType:Vw,externalForwardedProps:Ie,ownerState:ke,additionalProps:{role:"presentation",onMouseDown:e=>{e.preventDefault()}}}),[Xe,Qe]=sb("limitTag",{className:Oe.limitTag,elementType:_w,externalForwardedProps:Ie,ownerState:ke});if($>-1&&Array.isArray(Ee)){const t=Ee.length-$;!me&&t>0&&(Ee=Ee.splice(0,$),Ee.push(e(Xe,Nu({},Qe,{children:I(t)}),Ee.length)))}const[Ze,et]=sb("option",{className:Oe.option,elementType:Mw,externalForwardedProps:Ie,ownerState:ke,getSlotOwnerState:e=>({variant:e.variant||ty(Y,ne).variant||"plain",color:e.color||ty(Y,ne).color||"neutral",disableColorInversion:!qe.disablePortal}),additionalProps:{as:"li"}}),tt=j||((t,n)=>e(Ze,Nu({},t,{children:E(n)}))),nt=(e,t)=>{const n=ue({option:e,index:t});return tt(Nu({},et,n),e,{selected:!!n["aria-selected"],inputValue:be,ownerState:ke})},rt=n.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...qe.modifiers||[]]),[qe.modifiers]);let ot=null;var at;he&&(ot=e(ry,{variant:Y,color:ne,children:e(kb,{nested:!0,children:t(Ge,Nu({},qe,{className:fm(qe.className),modifiers:rt},!(null!=(at=p.slots)&&at.listbox)&&{as:Zv,slots:{root:qe.as||"ul"}},{children:[ye.map(((e,t)=>{if(P){const t=e;return F({key:String(t.key),group:t.group,children:t.options.map(((e,n)=>nt(e,t.index+n)))})}return nt(e,t)})),z&&0===ye.length?e(Ue,Nu({},Ye,{children:R})):null,0!==ye.length||O||z?null:e(Ke,Nu({},Je,{children:M}))]}))})}));return t(n.Fragment,{children:[t($e,Nu({},ze,{children:[G&&e(Ve,Nu({},_e,{children:G})),t(Re,Nu({},De,{children:[Ee,e(Me,Nu({},Ae))]})),S&&e(Le,Nu({},Fe,{children:S})),Se?e(je,Nu({},Be,{children:v})):null,Ce?e(He,Nu({},We,{children:_})):null]})),ot]})}));"production"!==process.env.NODE_ENV&&(Lw.propTypes={"aria-describedby":Za.string,"aria-label":Za.string,"aria-labelledby":Za.string,autoComplete:Za.bool,autoFocus:Za.bool,autoHighlight:Za.bool,autoSelect:Za.bool,blurOnSelect:Za.oneOfType([Za.oneOf(["mouse","touch"]),Za.bool]),clearIcon:Za.node,clearOnBlur:Za.bool,clearOnEscape:Za.bool,clearText:Za.string,closeText:Za.string,color:Za.oneOf(["danger","neutral","primary","success","warning"]),defaultValue:Wm(Za.any,(e=>e.multiple&&void 0!==e.defaultValue&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join("\n")):null)),disableClearable:Za.bool,disableCloseOnSelect:Za.bool,disabled:Za.bool,disabledItemsFocusable:Za.bool,disableListWrap:Za.bool,endDecorator:Za.node,error:Za.bool,filterOptions:Za.func,filterSelectedOptions:Za.bool,forcePopupIcon:Za.oneOfType([Za.oneOf(["auto"]),Za.bool]),freeSolo:Za.bool,getLimitTagsText:Za.func,getOptionDisabled:Za.func,getOptionKey:Za.func,getOptionLabel:Za.func,groupBy:Za.func,handleHomeEndKeys:Za.bool,id:Za.string,includeInputInList:Za.bool,inputValue:Za.string,isOptionEqualToValue:Za.func,limitTags:Sg,loading:Za.bool,loadingText:Za.node,multiple:Za.bool,name:Za.string,noOptionsText:Za.node,onChange:Za.func,onClose:Za.func,onHighlightChange:Za.func,onInputChange:Za.func,onKeyDown:Za.func,onOpen:Za.func,open:Za.bool,openOnFocus:Za.bool,openText:Za.string,options:Za.array.isRequired,placeholder:Za.string,popupIcon:Za.node,readOnly:Za.bool,renderGroup:Za.func,renderOption:Za.func,renderTags:Za.func,required:Za.bool,selectOnFocus:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({clearIndicator:Za.oneOfType([Za.func,Za.object]),endDecorator:Za.oneOfType([Za.func,Za.object]),input:Za.oneOfType([Za.func,Za.object]),limitTag:Za.oneOfType([Za.func,Za.object]),listbox:Za.oneOfType([Za.func,Za.object]),loading:Za.oneOfType([Za.func,Za.object]),noOptions:Za.oneOfType([Za.func,Za.object]),option:Za.oneOfType([Za.func,Za.object]),popupIndicator:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object]),wrapper:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({clearIndicator:Za.elementType,endDecorator:Za.elementType,input:Za.elementType,limitTag:Za.elementType,listbox:Za.elementType,loading:Za.elementType,noOptions:Za.elementType,option:Za.elementType,popupIndicator:Za.elementType,root:Za.elementType,startDecorator:Za.elementType,wrapper:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),type:Za.string,value:Wm(Za.any,(e=>e.multiple&&void 0!==e.value&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join("\n")):null)),variant:Za.oneOf(["outlined","plain","soft","solid"])});const Fw=vm("MuiBox",["root"]),jw=function(t={}){const{themeId:r,defaultTheme:o,defaultClassName:a="MuiBox-root",generateClassName:i}=t,l=qp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(em);return n.forwardRef((function(t,n){const s=im(o),c=cm(t),{className:u,component:d="div"}=c,p=Up(c,mm);return e(l,Nu({as:d,ref:n,className:fm(u,i?i(a):a),theme:r&&s[r]||s},p))}))}({themeId:Eu,defaultTheme:Ph,defaultClassName:Fw.root,generateClassName:dm.generate});function Bw(e){return wh("MuiButton",e)}"production"!==process.env.NODE_ENV&&(jw.propTypes={children:Za.node,component:Za.elementType,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])});const Hw=xh("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),Ww=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],Gw=Vh("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),qw=Vh("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),Uw=Vh("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return Nu({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),Yw=({theme:e,ownerState:t})=>{var n,r,o,a;return[Nu({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},"sm"===t.size&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:e.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:e.vars.lineHeight.md},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),Nu({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},'&:active, &[aria-pressed="true"]':null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],[`&.${Hw.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]},"center"===t.loadingPosition&&{[`&.${Hw.loading}`]:{color:"transparent"}})]},Kw=Vh("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(Yw),Jw=n.forwardRef((function(r,o){var a;const i=_h({props:r,name:"JoyButton"}),{children:l,action:s,color:c="primary",variant:u="solid",size:d="md",fullWidth:p=!1,startDecorator:f,endDecorator:m,loading:g=!1,loadingPosition:h="center",loadingIndicator:v,disabled:b,component:y,slots:w={},slotProps:x={}}=i,S=Up(i,Ww),C=n.useContext(ay),k=n.useContext(iy),O=r.variant||C.variant||u,I=r.size||C.size||d,E=r.color||C.color||c,P=null!=(a=r.loading||r.disabled)?a:C.disabled||g||b,N=n.useRef(null),$=lg(N,o),{focusVisible:z,setFocusVisible:R,getRootProps:D}=Xh(Nu({},i,{disabled:P,rootRef:$})),T=null!=v?v:e(by,{color:E,thickness:{sm:2,md:3,lg:4}[I]||3});n.useImperativeHandle(s,(()=>({focusVisible:()=>{var e;R(!0),null==(e=N.current)||e.focus()}})),[R]);const M=Nu({},i,{color:E,fullWidth:p,variant:O,size:I,focusVisible:z,loading:g,loadingPosition:h,disabled:P}),A=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,fullWidth:a,size:i,variant:l,loading:s}=e,c=Cg({root:["root",n&&"disabled",r&&"focusVisible",a&&"fullWidth",l&&`variant${lf(l)}`,t&&`color${lf(t)}`,i&&`size${lf(i)}`,s&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},Bw,{});return r&&o&&(c.root+=` ${o}`),c})(M);let V=i["aria-pressed"];"function"==typeof x.root?V=x.root(M)["aria-pressed"]:x.root&&(V=x.root["aria-pressed"]),null!=k&&k.value&&(V=Array.isArray(k.value)?-1!==k.value.indexOf(i.value):k.value===i.value);const _=Nu({},S,{component:y,slots:w,slotProps:x}),[L,F]=sb("root",{ref:o,className:A.root,elementType:Kw,externalForwardedProps:_,getSlotProps:D,ownerState:M,additionalProps:{onClick:e=>{var t;let n=i.onClick;var r;("function"==typeof x.root?n=x.root(M).onClick:x.root&&(n=x.root.onClick),null==(t=n)||t(e),k)&&(null==(r=k.onClick)||r.call(k,e,i.value))},"aria-pressed":V}}),[j,B]=sb("startDecorator",{className:A.startDecorator,elementType:Gw,externalForwardedProps:_,ownerState:M}),[H,W]=sb("endDecorator",{className:A.endDecorator,elementType:qw,externalForwardedProps:_,ownerState:M}),[G,q]=sb("loadingIndicatorCenter",{className:A.loadingIndicatorCenter,elementType:Uw,externalForwardedProps:_,ownerState:M});return t(L,Nu({},F,{children:[(f||g&&"start"===h)&&e(j,Nu({},B,{children:g&&"start"===h?T:f})),l,g&&"center"===h&&e(G,Nu({},q,{children:T})),(m||g&&"end"===h)&&e(H,Nu({},W,{children:g&&"end"===h?T:m}))]}))}));"production"!==process.env.NODE_ENV&&(Jw.propTypes={action:Za.oneOfType([Za.func,Za.shape({current:Za.shape({focusVisible:Za.func.isRequired})})]),children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,endDecorator:Za.node,focusVisibleClassName:Za.string,fullWidth:Za.bool,loading:Za.bool,loadingIndicator:Za.node,loadingPosition:Za.oneOf(["center","end","start"]),onClick:Za.func,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({endDecorator:Za.oneOfType([Za.func,Za.object]),loadingIndicatorCenter:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({endDecorator:Za.elementType,loadingIndicatorCenter:Za.elementType,root:Za.elementType,startDecorator:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,value:Za.oneOfType([Za.arrayOf(Za.string),Za.number,Za.string]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),Jw.muiName="Button";const Xw=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Xw.displayName="ModalDialogVariantColorContext");const Qw=xh("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),Zw=n.createContext(void 0);function ex(e){return wh("MuiModal",e)}"production"!==process.env.NODE_ENV&&(Zw.displayName="ModalDialogSizeContext"),xh("MuiModal",["root","hidden","backdrop"]);const tx=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(tx.displayName="CloseModalContext");const nx=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],rx=Vh("div")((({ownerState:e,theme:t})=>Nu({"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:t.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&{visibility:"hidden"}))),ox=Vh(rx,{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ax=Vh("div")((({theme:e})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:e.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"}))),ix=Vh(ax,{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({}),lx=n.forwardRef((function(r,o){const a=_h({props:r,name:"JoyModal"}),{children:i,container:l,disableAutoFocus:s=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:u=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:f=!1,hideBackdrop:m=!1,keepMounted:g=!1,onClose:h,open:v,component:b,slots:y={},slotProps:w={}}=a,x=Up(a,nx),S=Nu({},a,{disableAutoFocus:s,disableEnforceFocus:c,disableEscapeKeyDown:u,disablePortal:d,disableRestoreFocus:p,disableScrollLock:f,hideBackdrop:m,keepMounted:g}),{getRootProps:C,getBackdropProps:k,rootRef:O,portalRef:I,isTopModal:E}=Hv(Nu({},S,{rootRef:o})),P=(e=>{const{open:t}=e;return Cg({root:["root",!t&&"hidden"],backdrop:["backdrop"]},ex,{})})(S),N=Nu({},x,{component:b,slots:y,slotProps:w}),[$,z]=sb("root",{ref:O,className:P.root,elementType:ox,externalForwardedProps:N,getSlotProps:C,ownerState:S}),[R,D]=sb("backdrop",{className:P.backdrop,elementType:ix,externalForwardedProps:N,getSlotProps:k,ownerState:S});return g||v?e(tx.Provider,{value:h,children:e(Dv,{ref:I,container:l,disablePortal:d,children:t($,Nu({},z,{children:[m?null:e(R,Nu({},D)),e(uv,{disableEnforceFocus:c,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:E,open:v,children:n.Children.only(i)&&n.cloneElement(i,Nu({},void 0===i.props.tabIndex&&{tabIndex:-1}))})]}))})}):null}));function sx(e){return wh("MuiDrawer",e)}"production"!==process.env.NODE_ENV&&(lx.propTypes={children:qm.isRequired,component:Za.elementType,container:Za.oneOfType([Km,Za.func]),disableAutoFocus:Za.bool,disableEnforceFocus:Za.bool,disableEscapeKeyDown:Za.bool,disablePortal:Za.bool,disableRestoreFocus:Za.bool,disableScrollLock:Za.bool,hideBackdrop:Za.bool,keepMounted:Za.bool,onClose:Za.func,onKeyDown:Za.func,open:Za.bool.isRequired,slotProps:Za.shape({backdrop:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({backdrop:Za.elementType,root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])}),xh("MuiDrawer",["root","hidden","backdrop","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const cx=["children","anchor","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","color","variant","invertedColors","size","onClose","onKeyDown","open","component","slots","slotProps"],ux=Vh(rx,{name:"JoyDrawer",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Nu({"--Drawer-transitionDuration":"0.3s","--Drawer-transitionFunction":"ease","--ModalClose-radius":"max((var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(350px, 30%, 100%)","--Drawer-horizontalSize":"clamp(256px, 20%, 100%)","--Drawer-titleMargin":"0.625rem 0.75rem calc(0.625rem / 2)"},"md"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(400px, 45%, 100%)","--Drawer-horizontalSize":"clamp(300px, 30%, 100%)","--Drawer-titleMargin":"0.75rem 0.75rem calc(0.75rem / 2)"},"lg"===e.size&&{"--ModalClose-inset":"0.75rem","--Drawer-verticalSize":"clamp(500px, 60%, 100%)","--Drawer-horizontalSize":"clamp(440px, 60%, 100%)","--Drawer-titleMargin":"1rem 1rem calc(1rem / 2)"},{transitionProperty:"visibility",transitionDelay:e.open?"0s":"var(--Drawer-transitionDuration)"},!e.open&&{visibility:"hidden"}))),dx=Vh(ax,{name:"JoyDrawer",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})((({ownerState:e})=>({opacity:e.open?1:0,transition:"opacity var(--Drawer-transitionDuration) ease-in-out"}))),px=Vh("div",{name:"JoyDrawer",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>{var n;return Nu({},e.typography[`body-${t.size}`],{boxShadow:e.shadow.md,backgroundColor:e.vars.palette.background.surface,outline:0,display:"flex",flexDirection:"column",position:"fixed",boxSizing:"border-box",overflow:"auto"},"left"===t.anchor&&{top:0,left:0,transform:t.open?"translateX(0)":"translateX(-100%)"},"right"===t.anchor&&{top:0,right:0,transform:t.open?"translateX(0)":"translateX(100%)"},"top"===t.anchor&&{top:0,transform:t.open?"translateY(0)":"translateY(-100%)"},"bottom"===t.anchor&&{bottom:0,transform:t.open?"translateY(0)":"translateY(100%)"},{height:t.anchor.match(/(left|right)/)?"100%":"min(100vh, var(--Drawer-verticalSize))",width:t.anchor.match(/(top|bottom)/)?"100vw":"min(100vw, var(--Drawer-horizontalSize))",transition:"transform var(--Drawer-transitionDuration) var(--Drawer-transitionFunction)"},"solid"===t.variant&&t.color&&t.invertedColors&&Jb(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&Xb(t.color)(e),null==(n=e.variants[t.variant])?void 0:n[t.color],{[`& > .${Qw.root}`]:{"--unstable_DialogTitle-margin":"var(--Drawer-titleMargin)"}})})),fx=n.forwardRef((function(r,o){const a=_h({props:r,name:"JoyDrawer"}),{children:i,anchor:l="left",container:s,disableAutoFocus:c=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:d=!1,disablePortal:p=!1,disableRestoreFocus:f=!1,disableScrollLock:m=!1,hideBackdrop:g=!1,color:h="neutral",variant:v="plain",invertedColors:b=!1,size:y="md",onClose:w,open:x,component:S,slots:C={},slotProps:k={}}=a,O=Up(a,cx),I=Nu({},a,{anchor:l,disableAutoFocus:c,disableEnforceFocus:u,disableEscapeKeyDown:d,disablePortal:p,disableRestoreFocus:f,disableScrollLock:m,hideBackdrop:g,invertedColors:b,color:h,variant:v,size:y}),{getRootProps:E,getBackdropProps:P,rootRef:N,portalRef:$,isTopModal:z}=Hv(Nu({},I,{rootRef:o,children:null})),R=(e=>{const{open:t,variant:n,color:r,size:o}=e;return Cg({root:["root",!t&&"hidden",n&&`variant${lf(n)}`,r&&`color${lf(r)}`,o&&`size${lf(o)}`],backdrop:["backdrop"],content:["content"]},sx,{})})(I),D=Nu({},O,{component:S,slots:C,slotProps:k}),T=og(),M=og(),A=n.useMemo((()=>({variant:v,color:h,labelledBy:T,describedBy:M})),[h,v,T,M]),[V,_]=sb("root",{ref:N,className:R.root,elementType:ux,externalForwardedProps:D,getSlotProps:E,ownerState:I}),[L,F]=sb("backdrop",{className:R.backdrop,elementType:dx,externalForwardedProps:D,getSlotProps:P,ownerState:I}),[j,B]=sb("content",{className:R.content,elementType:px,additionalProps:{tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":T,"aria-describedby":M},externalForwardedProps:D,ownerState:I});return e(tx.Provider,{value:w,children:e(Zw.Provider,{value:y,children:e(Xw.Provider,{value:A,children:e(Dv,{ref:$,container:s,disablePortal:p,children:t(V,Nu({},_,{children:[g?null:e(L,Nu({},F)),e(uv,{disableEnforceFocus:u,disableAutoFocus:c,disableRestoreFocus:f,isEnabled:z,open:x,children:e(j,Nu({},B,{children:i}))})]}))})})})})}));"production"!==process.env.NODE_ENV&&(fx.propTypes={anchor:Za.oneOf(["bottom","left","right","top"]),children:Za.node,color:Za.oneOf(["danger","neutral","primary","success","warning"]),component:Za.elementType,container:Za.oneOfType([Km,Za.func]),disableAutoFocus:Za.bool,disableEnforceFocus:Za.bool,disableEscapeKeyDown:Za.bool,disablePortal:Za.bool,disableRestoreFocus:Za.bool,disableScrollLock:Za.bool,hideBackdrop:Za.bool,invertedColors:Za.bool,onClose:Za.func,onKeyDown:Za.func,open:Za.bool.isRequired,size:Za.oneOf(["sm","md","lg"]),slotProps:Za.shape({backdrop:Za.oneOfType([Za.func,Za.object]),content:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({backdrop:Za.elementType,content:Za.elementType,root:Za.elementType}),variant:Za.oneOf(["outlined","plain","soft","solid"])});const mx=function(t={}){const{createStyledComponent:r=hh,useThemeProps:o=vh,componentName:a="MuiGrid"}=t,i=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(i.displayName="GridOverflowContext");const l=r(ih,sh,lh,oh,ch,uh,ah),s=n.forwardRef((function(t,r){var s,c,u,d,p,f,m,g;const h=im(),v=cm(o(t)),b=n.useContext(i),{className:y,children:w,columns:x=12,container:S=!1,component:C="div",direction:k="row",wrap:O="wrap",spacing:I=0,rowSpacing:E=I,columnSpacing:P=I,disableEqualOverflow:N,unstable_level:$=0}=v,z=Up(v,mh);let R=N;$&&void 0!==N&&(R=t.disableEqualOverflow);const D={},T={},M={};Object.entries(z).forEach((([e,t])=>{void 0!==h.breakpoints.values[e]?D[e]=t:void 0!==h.breakpoints.values[e.replace("Offset","")]?T[e.replace("Offset","")]=t:M[e]=t}));const A=null!=(s=t.columns)?s:$?void 0:x,V=null!=(c=t.spacing)?c:$?void 0:I,_=null!=(u=null!=(d=t.rowSpacing)?d:t.spacing)?u:$?void 0:E,L=null!=(p=null!=(f=t.columnSpacing)?f:t.spacing)?p:$?void 0:P,F=Nu({},v,{level:$,columns:A,container:S,direction:k,wrap:O,spacing:V,rowSpacing:_,columnSpacing:L,gridSize:D,gridOffset:T,disableEqualOverflow:null!=(m=null!=(g=R)?g:b)&&m,parentDisableEqualOverflow:b}),j=((e,t)=>{const{container:n,direction:r,spacing:o,wrap:i,gridSize:l}=e;return Cg({root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...fh(r),...dh(l),...n?ph(o,t.breakpoints.keys[0]):[]]},(e=>hm(a,e)),{})})(F,h);let B=e(l,Nu({ref:r,as:C,ownerState:F,className:fm(j.root,y)},M,{children:n.Children.map(w,(e=>{var t;return n.isValidElement(e)&&Qm(e,["Grid"])?n.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:$+1}):e}))}));return void 0!==R&&R!==(null!=b&&b)&&(B=e(i.Provider,{value:R,children:B})),B}));return"production"!==process.env.NODE_ENV&&(s.propTypes={children:Za.node,className:Za.string,columns:Za.oneOfType([Za.arrayOf(Za.number),Za.number,Za.object]),columnSpacing:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.number,Za.string])),Za.number,Za.object,Za.string]),component:Za.elementType,container:Za.bool,direction:Za.oneOfType([Za.oneOf(["column-reverse","column","row-reverse","row"]),Za.arrayOf(Za.oneOf(["column-reverse","column","row-reverse","row"])),Za.object]),disableEqualOverflow:Za.bool,lg:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),lgOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),md:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),mdOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),rowSpacing:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.number,Za.string])),Za.number,Za.object,Za.string]),sm:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),smOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),spacing:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.number,Za.string])),Za.number,Za.object,Za.string]),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),wrap:Za.oneOf(["nowrap","wrap-reverse","wrap"]),xl:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),xlOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number]),xs:Za.oneOfType([Za.oneOf(["auto"]),Za.number,Za.bool]),xsOffset:Za.oneOfType([Za.oneOf(["auto"]),Za.number])}),s.muiName="Grid",s}({createStyledComponent:Vh("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>_h({props:e,name:"JoyGrid"})});function gx(e){return wh("MuiListItemDecorator",e)}"production"!==process.env.NODE_ENV&&(mx.propTypes={children:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])}),xh("MuiListItemDecorator",["root"]);const hx=["component","className","children","slots","slotProps"],vx=Vh("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Nu({boxSizing:"border-box",display:"inline-flex",alignItems:`var(--unstable_ListItemDecorator-alignItems, ${"horizontal"===e.parentOrientation?"center":"initial"})`},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",marginInlineEnd:"calc(-1 * var(--ListItem-gap))"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center",marginBlockEnd:"calc(-1 * var(--ListItem-gap))"}))),bx=n.forwardRef((function(t,r){const o=_h({props:t,name:"JoyListItemDecorator"}),{component:a,className:i,children:l,slots:s={},slotProps:c={}}=o,u=Up(o,hx),d=Nu({parentOrientation:n.useContext(Mb)},o),p=Cg({root:["root"]},gx,{}),f=Nu({},u,{component:a,slots:s,slotProps:c}),[m,g]=sb("root",{ref:r,className:fm(p.root,i),elementType:vx,externalForwardedProps:f,ownerState:d});return e(m,Nu({},g,{children:l}))}));function yx(e){return wh("MuiMenu",e)}"production"!==process.env.NODE_ENV&&(bx.propTypes={children:Za.node,className:Za.string,component:Za.elementType,slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object])}),xh("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const wx=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],xx=Vh($b,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;const o=null==(n=e.variants[t.variant])?void 0:n[t.color];return[Nu({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==o?void 0:o.backgroundColor)||(null==o?void 0:o.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},Cb,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=o&&o.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},"solid"===t.variant&&t.color&&t.invertedColors&&Jb(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&Xb(t.color)(e),null==(r=e.variants[t.variant])?void 0:r[t.color])]})),Sx=n.forwardRef((function(t,r){var o;const a=_h({props:t,name:"JoyMenu"}),{actions:i,children:l,color:s="neutral",component:c,disablePortal:u=!1,keepMounted:d=!1,id:p,invertedColors:f=!1,onItemsChange:m,modifiers:g,variant:h="outlined",size:v="md",slots:b={},slotProps:y={}}=a,w=Up(a,wx),{contextValue:x,getListboxProps:S,dispatch:C,open:k,triggerElement:O}=function(e={}){var t,r;const{listboxRef:o,onItemsChange:a,id:i,disabledItemsFocusable:l=!0,disableListWrap:s=!1,autoFocus:c=!0,componentName:u="useMenu"}=e,d=n.useRef(null),p=lg(d,o),f=null!=(t=og(i))?t:"",{state:{open:m,changeReason:g},dispatch:h,triggerElement:v,registerPopup:b}=null!=(r=n.useContext(Qh))?r:zv,y=n.useRef(m),{subitems:w,contextValue:x}=Nv(),S=n.useMemo((()=>Array.from(w.keys())),[w]),C=n.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=w.get(e))?void 0:n.ref.current)?t:null}),[w]),k=n.useCallback((e=>{var t;return(null==w||null==(t=w.get(e))?void 0:t.disabled)||!1}),[w]),O=n.useCallback((e=>{var t,n;return(null==(t=w.get(e))?void 0:t.label)||(null==(n=w.get(e))||null==(n=n.ref.current)?void 0:n.innerText)}),[w]),I=n.useMemo((()=>({listboxRef:d})),[d]),{dispatch:E,getRootProps:P,contextValue:N,state:{highlightedValue:$},rootRef:z}=Ov({disabledItemsFocusable:l,disableListWrap:s,focusManagement:"DOM",getItemDomElement:C,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:k,items:S,getItemAsString:O,rootRef:p,onItemsChange:a,reducerActionContext:I,selectionMode:"none",stateReducer:Ev,componentName:u});jm((()=>{b(f)}),[f,b]),jm((()=>{m&&"keydown"===(null==g?void 0:g.type)&&"ArrowUp"===g.key&&E({type:fv.highlightLast,event:g})}),[m,g,E]),n.useEffect((()=>{var e;m&&c&&$&&!y.current&&(null==(e=w.get($))||null==(e=e.ref)||null==(e=e.current)||e.focus())}),[m,c,$,w,S]),n.useEffect((()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==$&&(null==w||null==(t=w.get($))||null==(t=t.ref.current)||t.focus())}),[$,w]);const R=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===v||h({type:ov.blur,event:t})},D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"===t.key&&h({type:ov.escapeKeyDown,event:t})},T=(e={})=>({onBlur:R(e),onKeyDown:D(e)});return n.useDebugValue({subitems:w,highlightedValue:$}),{contextValue:Nu({},x,N),dispatch:E,getListboxProps:(e={})=>{const t=$v(T,P),n=Hh(e);return Nu({},e,n,t(n),{id:f,role:"menu"})},highlightedValue:$,listboxRef:z,menuItems:w,open:m,triggerElement:v}}({onItemsChange:m,id:p,listboxRef:r});n.useImperativeHandle(i,(()=>({dispatch:C,resetHighlight:()=>C({type:fv.resetHighlight,event:null})})),[C]);const I=Nu({},a,{disablePortal:u,invertedColors:f,color:s,variant:h,size:v,open:k,nesting:!1,row:!1}),E=(e=>{const{open:t,variant:n,color:r,size:o}=e;return Cg({root:["root",t&&"expanded",n&&`variant${lf(n)}`,r&&`color${lf(r)}`,o&&`size${lf(o)}`],listbox:["listbox"]},yx,{})})(I),P=Nu({},w,{component:c,slots:b,slotProps:y}),N=n.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...g||[]]),[g]),$=Yh({elementType:xx,getSlotProps:S,externalForwardedProps:P,externalSlotProps:{},ownerState:I,additionalProps:{anchorEl:O,open:k&&null!==O,disablePortal:u,keepMounted:d,modifiers:N},className:E.root});return e(xx,Nu({},$,!(null!=(o=a.slots)&&o.root)&&{as:Zv,slots:{root:c||"ul"}},{children:e(Rv,{value:x,children:e(ry,{variant:f?void 0:h,color:s,children:e(hb.Provider,{value:"menu",children:e(kb,{nested:!0,children:l})})})})}))}));function Cx(e){return wh("MuiMenuButton",e)}"production"!==process.env.NODE_ENV&&(Sx.propTypes={actions:Jm,children:Za.node,color:Za.oneOf(["danger","neutral","primary","success","warning"]),component:Za.elementType,disablePortal:Za.bool,id:Za.string,invertedColors:Za.bool,keepMounted:Za.bool,modifiers:Za.arrayOf(Za.shape({data:Za.object,effect:Za.func,enabled:Za.bool,fn:Za.func,name:Za.any,options:Za.object,phase:Za.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Za.arrayOf(Za.string),requiresIfExists:Za.arrayOf(Za.string)})),onClose:Za.func,onItemsChange:Za.func,open:Za.bool,size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({root:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({root:Za.elementType}),sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),xh("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);const kx=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],Ox=Vh("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(Yw),Ix=Vh("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Ex=Vh("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),Px=Vh("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return Nu({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),Nx=n.forwardRef((function(r,o){var a;const i=_h({props:r,name:"JoyMenuButton"}),{children:l,color:s="neutral",component:c,disabled:u=!1,endDecorator:d,loading:p=!1,loadingPosition:f="center",loadingIndicator:m,size:g="md",slotProps:h={},slots:v={},startDecorator:b,variant:y="outlined"}=i,w=Up(i,kx),x=n.useContext(ay),S=r.variant||x.variant||y,C=r.size||x.size||g,k=null!=(a=r.disabled)?a:x.disabled||u||p,{getRootProps:O,open:I,active:E}=function(e={}){const{disabled:t=!1,focusableWhenDisabled:r,rootRef:o}=e,a=n.useContext(Qh);if(null===a)throw new Error("useMenuButton: no menu context available.");const{state:i,dispatch:l,registerTrigger:s,popupId:c}=a,{getRootProps:u,rootRef:d,active:p}=Xh({disabled:t,focusableWhenDisabled:r,rootRef:o}),f=lg(d,s),m=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||l({type:ov.toggle,event:t})},g=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),l({type:ov.open,event:t}))},h=(e={})=>({onClick:m(e),onKeyDown:g(e)});return{active:p,getRootProps:(e={})=>{const t=Hh(e),n=$v(h,u);return Nu({"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":c},e,t,n(t),{tabIndex:0,ref:f})},open:i.open,rootRef:f}}({rootRef:o,disabled:k}),P=null!=m?m:e(by,{color:s,thickness:{sm:2,md:3,lg:4}[C]||3}),N=Nu({},i,{active:E,color:s,disabled:k,open:I,size:C,variant:S}),$=(e=>{const{color:t,disabled:n,fullWidth:r,size:o,variant:a,loading:i}=e;return Cg({root:["root",n&&"disabled",r&&"fullWidth",a&&`variant${lf(a)}`,t&&`color${lf(t)}`,o&&`size${lf(o)}`,i&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},Cx,{})})(N),z=Nu({},w,{component:c,slots:v,slotProps:h}),[R,D]=sb("root",{elementType:Ox,getSlotProps:O,externalForwardedProps:z,ref:o,ownerState:N,className:$.root}),[T,M]=sb("startDecorator",{className:$.startDecorator,elementType:Ix,externalForwardedProps:z,ownerState:N}),[A,V]=sb("endDecorator",{className:$.endDecorator,elementType:Ex,externalForwardedProps:z,ownerState:N}),[_,L]=sb("loadingIndicatorCenter",{className:$.loadingIndicatorCenter,elementType:Px,externalForwardedProps:z,ownerState:N});return t(R,Nu({},D,{children:[(b||p&&"start"===f)&&e(T,Nu({},M,{children:p&&"start"===f?P:b})),l,p&&"center"===f&&e(_,Nu({},L,{children:P})),(d||p&&"end"===f)&&e(A,Nu({},V,{children:p&&"end"===f?P:d}))]}))}));function $x(e){return wh("MuiMenuItem",e)}"production"!==process.env.NODE_ENV&&(Nx.propTypes={children:Za.node,color:Za.oneOfType([Za.oneOf(["danger","info","neutral","primary","success","warning"]),Za.string]),component:Za.elementType,disabled:Za.bool,endDecorator:Za.node,fullWidth:Za.bool,loading:Za.bool,loadingIndicator:Za.node,loadingPosition:Za.oneOf(["center","end","start"]),size:Za.oneOfType([Za.oneOf(["sm","md","lg"]),Za.string]),slotProps:Za.shape({endDecorator:Za.oneOfType([Za.func,Za.object]),loadingIndicatorCenter:Za.oneOfType([Za.func,Za.object]),root:Za.oneOfType([Za.func,Za.object]),startDecorator:Za.oneOfType([Za.func,Za.object])}),slots:Za.shape({endDecorator:Za.elementType,loadingIndicatorCenter:Za.elementType,root:Za.elementType,startDecorator:Za.elementType}),startDecorator:Za.node,sx:Za.oneOfType([Za.arrayOf(Za.oneOfType([Za.func,Za.object,Za.bool])),Za.func,Za.object]),tabIndex:Za.number,variant:Za.oneOfType([Za.oneOf(["outlined","plain","soft","solid"]),Za.string])}),xh("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const zx=["children","disabled","component","selected","color","orientation","variant","slots","slotProps","id"],Rx=Vh(Vb,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dx=n.memo(n.forwardRef((function(t,r){const o=_h({props:t,name:"JoyMenuItem"}),a=n.useContext(pb),{children:i,disabled:l=!1,component:s="li",selected:c=!1,color:u="neutral",orientation:d="horizontal",variant:p="plain",slots:f={},slotProps:m={},id:g}=o,h=Up(o,zx),{variant:v=p,color:b=u}=ny(t.variant,t.color),{getRootProps:y,disabled:w,focusVisible:x}=Av({id:g,disabled:l,rootRef:r}),S=Nu({},o,{component:s,color:b,disabled:w,focusVisible:x,orientation:d,selected:c,row:a,variant:v}),C=(e=>{const{focusVisible:t,disabled:n,selected:r,color:o,variant:a}=e;return Cg({root:["root",t&&"focusVisible",n&&"disabled",r&&"selected",o&&`color${lf(o)}`,a&&`variant${lf(a)}`]},$x,{})})(S),k=Nu({},h,{component:s,slots:f,slotProps:m}),[O,I]=sb("root",{ref:r,elementType:Rx,getSlotProps:y,externalForwardedProps:k,className:C.root,ownerState:S});return e(Mb.Provider,{value:d,children:e(O,Nu({},I,{children:i}))})}))),Tx=n.forwardRef((function(t,r){const{contextValue:o,id:a}=function(e){const t=n.useContext(Iv);if(!t)throw new Error("MenuItem: ListContext was not found.");const r=og(e),{getItemState:o,dispatch:a}=t;let i;i=null!=r?o(r):{focusable:!0,highlighted:!1,selected:!1};const{highlighted:l,selected:s,focusable:c}=i,u=n.useCallback((e=>{if(e!==r)throw new Error(["Base UI MenuItem: Tried to access the state of another MenuItem.",`itemValue: ${e} | id: ${r}`,"This is unsupported when the MenuItem uses the MenuItemContextStabilizer as a performance optimization."].join("/n"));return{highlighted:l,selected:s,focusable:c}}),[l,s,c,r]);return{contextValue:n.useMemo((()=>({dispatch:a,getItemState:u})),[a,u]),id:r}}(t.id);return e(Iv.Provider,{value:o,children:e(Dx,Nu({},t,{id:a,ref:r}))})}));"production"!==process.env.NODE_ENV&&(Tx.propTypes={children:Za.node,id:Za.string});var Mx=function(){throw new Error(["MUI: `TextField` component has been removed in favor of Input composition.","","To migrate, run `npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>`.","For the codemod detail, visit https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-text-field-to-input\n\nTo learn more why it has been removed, visit the RFC https://github.com/mui/material-ui/issues/34176"].join("\n"))};function Ax(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e("defs",{children:e("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function Vx(){return e(Ax,{})}const _x=rn.header`
|
|
872
|
-
display: flex;
|
|
873
|
-
flex-flow: row;
|
|
874
|
-
align-items: center;
|
|
875
|
-
background-color: var(--color--primary);
|
|
876
|
-
width: 100%;
|
|
877
|
-
height: 70px;
|
|
878
|
-
padding: 1rem;
|
|
879
|
-
gap: 1rem;
|
|
770
|
+
.arrow,
|
|
771
|
+
.arrow::before {
|
|
772
|
+
position: absolute;
|
|
773
|
+
width: 8px;
|
|
774
|
+
height: 8px;
|
|
775
|
+
background: inherit;
|
|
776
|
+
transition:
|
|
777
|
+
top 0.3s ease-in,
|
|
778
|
+
bottom 0.3s ease-in,
|
|
779
|
+
left 0.3s ease-in,
|
|
780
|
+
right 0.3s ease-in;
|
|
781
|
+
}
|
|
880
782
|
|
|
881
|
-
|
|
882
|
-
|
|
783
|
+
.arrow {
|
|
784
|
+
visibility: hidden;
|
|
883
785
|
}
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
display: flex;
|
|
890
|
-
flex-flow: row;
|
|
891
|
-
align-items: center;
|
|
892
|
-
height: 100%;
|
|
893
|
-
gap: var(--spacing--small);
|
|
894
|
-
`,jx=en`
|
|
895
|
-
&& {
|
|
896
|
-
color: white;
|
|
897
|
-
opacity: 0.9;
|
|
898
|
-
font-size: var(--font-size--small);
|
|
899
|
-
white-space: nowrap;
|
|
900
|
-
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
901
|
-
transition: background-color 0.2s;
|
|
902
|
-
display: flex;
|
|
903
|
-
align-items: center;
|
|
904
|
-
border-radius: var(--border-radius--medium);
|
|
905
|
-
user-select: none;
|
|
906
|
-
font-weight: var(--font-weight--medium);
|
|
907
|
-
border: none;
|
|
908
|
-
text-decoration: none;
|
|
909
|
-
&:hover {
|
|
910
|
-
background-color: rgb(255, 255, 255, 0.1);
|
|
911
|
-
cursor: pointer;
|
|
912
|
-
opacity: 1;
|
|
913
|
-
text-decoration: none;
|
|
914
|
-
}
|
|
786
|
+
|
|
787
|
+
.arrow::before {
|
|
788
|
+
visibility: hidden;
|
|
789
|
+
content: "";
|
|
790
|
+
transform: rotate(45deg);
|
|
915
791
|
}
|
|
916
|
-
`,Bx=rn(ll)`
|
|
917
|
-
${jx}
|
|
918
|
-
gap: var(--spacing--small);
|
|
919
|
-
`,Hx=rn(Nx)`
|
|
920
|
-
${jx}
|
|
921
792
|
|
|
922
|
-
|
|
923
|
-
|
|
793
|
+
&[data-popper-placement^="top"] > .arrow {
|
|
794
|
+
bottom: -4px;
|
|
924
795
|
}
|
|
925
|
-
`,Wx=rn.div``,Gx=rn.div`
|
|
926
|
-
display: flex;
|
|
927
|
-
align-items: center;
|
|
928
|
-
`;function qx({currentApp:n,apps:r}){const o=e("svg",{viewBox:"0 0 32 32",children:t("g",{children:[e("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return t(iv,{children:[e(Hx,{size:"sm",startDecorator:o,children:n&&e(Gx,{children:n})}),r]})}function Ux({apps:n,currentApp:r,leftSide:o,rightSide:a,myAccountMenu:i,helpButton:l}){return t(_x,{children:[e(Lx,{href:"/",children:e(Vx,{})}),e(qx,{apps:n,currentApp:r}),e(Wx,{children:o}),t(Fx,{children:[a,l?t(Bx,{type:"link",as:l.as,href:l.href,children:[e(Di,{name:["far","circle-question"],size:"small"})," ",l.text||"Help"]}):null,i?t(iv,{children:[e(Hx,{size:"sm",startDecorator:e(Di,{name:["far","user"],size:"small"}),children:"My Account"}),i]}):null]})]})}function Yx(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Yx('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');const Kx=Eh({colorSchemes:{light:{palette:{primary:{50:"#dbd9f8",100:"#b7b2f1",200:"#a69fee",300:"#8279e7",400:"#7065e4",500:"#4c3fdd",600:"#3d32b1",700:"#2e2685",800:"#1e1958",900:"#0f0d2c"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#aaacaf",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"}}}},components:{}});Yx(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--dark-blue: #192a3c;\n\n --color--primary: #4c3fdd;\n --color--primary-light: #4c3fdddb;\n --color--primary-verylight: #a8a0f7;\n --color--body: var(--color--dark-blue);\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif: system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace: source-code-pro, Menlo, Monaco, Consolas,\n "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nol,\nul {\n margin-bottom: 1rem;\n margin-left: 2rem;\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const Jx=rn.div`
|
|
929
|
-
height: 100%;
|
|
930
|
-
position: absolute;
|
|
931
|
-
width: 100%;
|
|
932
|
-
top: 0;
|
|
933
|
-
left: 0;
|
|
934
|
-
`,Xx=rn.main`
|
|
935
|
-
width: 100%;
|
|
936
|
-
height: calc(100% - 136px); // TODO: calculate the height of the header
|
|
937
|
-
position: relative;
|
|
938
|
-
`;function Qx({children:n,header:r,footer:o}){return e(Th,{theme:Kx,children:t(Jx,{children:[r,e(Xx,{children:n}),o]})})}const Zx=rn.div`
|
|
939
|
-
display: flex;
|
|
940
|
-
flex-flow: wrap;
|
|
941
|
-
justify-content: space-between;
|
|
942
|
-
width: 100%;
|
|
943
796
|
|
|
944
|
-
|
|
945
|
-
|
|
797
|
+
&[data-popper-placement^="bottom"] > .arrow {
|
|
798
|
+
top: -4px;
|
|
946
799
|
}
|
|
947
|
-
`,eS=rn.ul`
|
|
948
|
-
display: flex;
|
|
949
|
-
flex-flow: row;
|
|
950
|
-
width: 100%;
|
|
951
|
-
flex-wrap: wrap;
|
|
952
|
-
`,tS=rn.li`
|
|
953
|
-
display: inline-block;
|
|
954
|
-
color: var(--color--grey);
|
|
955
|
-
overflow: hidden;
|
|
956
|
-
text-overflow: ellipsis;
|
|
957
|
-
white-space: nowrap;
|
|
958
|
-
max-width: 400px;
|
|
959
800
|
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
content: "/";
|
|
963
|
-
margin-left: 5px;
|
|
964
|
-
margin-right: 5px;
|
|
965
|
-
color: var(--color--grey-borders);
|
|
966
|
-
}
|
|
967
|
-
a {
|
|
968
|
-
font-weight: 600;
|
|
969
|
-
}
|
|
801
|
+
&[data-popper-placement^="left"] > .arrow {
|
|
802
|
+
right: -4px;
|
|
970
803
|
}
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
border-radius: 8px;
|
|
975
|
-
padding: 6px var(--spacing--medium);
|
|
976
|
-
box-shadow: none;
|
|
977
|
-
border: 1px solid var(--color--grey-line);
|
|
804
|
+
|
|
805
|
+
&[data-popper-placement^="right"] > .arrow {
|
|
806
|
+
left: -4px;
|
|
978
807
|
}
|
|
979
808
|
|
|
980
|
-
.
|
|
981
|
-
|
|
809
|
+
.arrow[data-hide="true"]::before {
|
|
810
|
+
visibility: hidden !important;
|
|
982
811
|
}
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
812
|
+
|
|
813
|
+
&[data-show] > .arrow::before {
|
|
814
|
+
visibility: visible;
|
|
815
|
+
}
|
|
816
|
+
`;function rx({children:n,content:r,placement:o="top"}){const[a,i]=s(!1),[l,u]=s(null),[d,p]=s(null),[f,m]=s(null),{styles:g,attributes:h}=ex(l,d,{placement:o,modifiers:[{name:"arrow",options:{element:f}},{name:"offset",options:{offset:[0,5]}}]});let v=null;const b=()=>{v=setTimeout((()=>{i(!0)}),300)},y=()=>{v&&clearTimeout(v),i(!1)};return c((()=>()=>{v&&clearTimeout(v)})),t(tx,{onMouseEnter:b,onMouseLeave:y,onFocus:b,onBlur:y,tabIndex:0,children:[e("div",{ref:u,children:n}),a&&t(nx,{style:g.popper,"data-show":a,...h.popper,ref:p,children:[e("div",{children:r}),e("span",{ref:m,style:g.arrow,...h.arrow,className:"arrow"})]})]})}function ox({size:t}){return e(Di,{colour:"green",name:["fas","check-circle"],size:t})}function ax({size:t}){return e(Di,{colour:"grey",name:["fas","circle"],size:t})}function ix({size:t}){return e(Di,{colour:"primary",name:["fas","circle"],size:t})}function lx({size:t}){return e(Di,{colour:"primary",name:["fas","circle-notch"],size:t,spin:!0})}function sx({size:t}){return e(Di,{colour:"warning",name:["fas","circle-exclamation"],size:t})}function cx({size:t}){return e(Di,{colour:"danger",name:["fas","circle-exclamation"],size:t})}const ux=rn.div`
|
|
817
|
+
flex-shrink: 0;
|
|
818
|
+
display: flex;
|
|
819
|
+
align-items: center;
|
|
820
|
+
justify-content: center;
|
|
821
|
+
svg {
|
|
822
|
+
outline: 2px solid var(--color--white);
|
|
823
|
+
background-color: var(--color--white);
|
|
824
|
+
border-radius: 50%;
|
|
990
825
|
}
|
|
826
|
+
`;function dx({status:t="uploaded",size:n="medium"}){const r=t.charAt(0).toUpperCase()+t.slice(1),o={uploaded:e(ax,{size:n}),running:e(lx,{size:n}),processed:e(ix,{size:n}),reviewed:e(ox,{size:n}),warning:e(sx,{size:n}),failed:e(cx,{size:n})};return e(rx,{content:r,children:e(ux,{status:t,"aria-label":r,children:o[t]})})}
|
|
827
|
+
/**
|
|
828
|
+
* table-core
|
|
829
|
+
*
|
|
830
|
+
* Copyright (c) TanStack
|
|
831
|
+
*
|
|
832
|
+
* This source code is licensed under the MIT license found in the
|
|
833
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
834
|
+
*
|
|
835
|
+
* @license MIT
|
|
836
|
+
*/function px(e,t){return"function"==typeof e?e(t):e}function fx(e,t){return n=>{t.setState((t=>({...t,[e]:px(n,t[e])})))}}function mx(e){return e instanceof Function}function gx(e,t,n){let r,o=[];return a=>{let i;n.key&&n.debug&&(i=Date.now());const l=e(a);if(!(l.length!==o.length||l.some(((e,t)=>o[t]!==e))))return r;let s;if(o=l,n.key&&n.debug&&(s=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function hx(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:"development"===process.env.NODE_ENV&&n,onChange:r}}const vx="debugHeaders";function bx(e,t,n){var r;let o={id:null!=(r=n.id)?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 e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const yx={createTable:e=>{e.getHeaderGroups=gx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var a,i;const l=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],c=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))));return wx(t,[...l,...c,...s],e)}),hx(e.options,vx,"getHeaderGroups")),e.getCenterHeaderGroups=gx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>(n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),wx(t,n,e,"center"))),hx(e.options,vx,"getCenterHeaderGroups")),e.getLeftHeaderGroups=gx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return wx(t,a,e,"left")}),hx(e.options,vx,"getLeftHeaderGroups")),e.getRightHeaderGroups=gx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return wx(t,a,e,"right")}),hx(e.options,vx,"getRightHeaderGroups")),e.getFooterGroups=gx((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),hx(e.options,vx,"getFooterGroups")),e.getLeftFooterGroups=gx((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),hx(e.options,vx,"getLeftFooterGroups")),e.getCenterFooterGroups=gx((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),hx(e.options,vx,"getCenterFooterGroups")),e.getRightFooterGroups=gx((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),hx(e.options,vx,"getRightFooterGroups")),e.getFlatHeaders=gx((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),hx(e.options,vx,"getFlatHeaders")),e.getLeftFlatHeaders=gx((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),hx(e.options,vx,"getLeftFlatHeaders")),e.getCenterFlatHeaders=gx((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),hx(e.options,vx,"getCenterFlatHeaders")),e.getRightFlatHeaders=gx((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),hx(e.options,vx,"getRightFlatHeaders")),e.getCenterLeafHeaders=gx((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),hx(e.options,vx,"getCenterLeafHeaders")),e.getLeftLeafHeaders=gx((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),hx(e.options,vx,"getLeftLeafHeaders")),e.getRightLeafHeaders=gx((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),hx(e.options,vx,"getRightLeafHeaders")),e.getLeafHeaders=gx((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,a,i,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),hx(e.options,vx,"getLeafHeaders"))}};function wx(e,t,n,r){var o,a;let i=0;const l=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach((e=>{const i=[...a].reverse()[0];let l,s=!1;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),i&&(null==i?void 0:i.column)===l)i.subHeaders.push(e);else{const o=bx(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${a.filter((e=>e.column===l)).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&c(a,t-1)},u=t.map(((e,t)=>bx(n,e,{depth:i,index:t})));c(u,i-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(a=s[0])?void 0:a.headers)?o:[]),s}const xx=(e,t,n,r,o,a,i)=>{let l={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,r),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:gx((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:gx((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),hx(e.options,"debugCells","cell.getContext"))};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,l,t,t.id)))),hx(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:gx((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),hx(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l},Sx={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()}}},Cx=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};Cx.autoRemove=e=>Dx(e);const kx=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};kx.autoRemove=e=>Dx(e);const Ox=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Ox.autoRemove=e=>Dx(e);const Ix=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Ix.autoRemove=e=>Dx(e)||!(null!=e&&e.length);const Ex=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));Ex.autoRemove=e=>Dx(e)||!(null!=e&&e.length);const Px=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));Px.autoRemove=e=>Dx(e)||!(null!=e&&e.length);const Nx=(e,t,n)=>e.getValue(t)===n;Nx.autoRemove=e=>Dx(e);const $x=(e,t,n)=>e.getValue(t)==n;$x.autoRemove=e=>Dx(e);const zx=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};zx.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o;if(a>i){const e=a;a=i,i=e}return[a,i]},zx.autoRemove=e=>Dx(e)||Dx(e[0])&&Dx(e[1]);const Rx={includesString:Cx,includesStringSensitive:kx,equalsString:Ox,arrIncludes:Ix,arrIncludesAll:Ex,arrIncludesSome:Px,equals:Nx,weakEquals:$x,inNumberRange:zx};function Dx(e){return null==e||""===e}const Tx={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:fx("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?Rx.includesString:"number"==typeof r?Rx.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Rx.equals:Array.isArray(r)?Rx.arrIncludes:Rx.weakEquals},e.getFilterFn=()=>{var n,r;return mx(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Rx[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),a=px(n,o?o.value:void 0);var i;if(Mx(r,a,e))return null!=(i=null==t?void 0:t.filter((t=>t.id!==e.id)))?i:[];const l={id:e.id,value:a};var s;return o?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=px(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(Mx(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?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 Mx(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Ax={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))})),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},Vx={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:fx("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?Ax.sum:"[object Date]"===Object.prototype.toString.call(r)?Ax.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return mx(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Ax[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?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 null!=r&&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 t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const _x={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:fx("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=gx((e=>[Gx(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),hx(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return(null==(r=Gx(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Gx(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=gx((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));if("remove"===n)return r;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]}(o,t,n)}),hx(e.options,"debugTable","_getOrderColumnsFn"))}},Lx={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:fx("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,a,i,l,s;return"right"===n?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=gx((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),hx(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=gx((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})));return n}),hx(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=gx((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})));return n}),hx(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))},e.getLeftLeafColumns=gx((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),hx(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=gx((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),hx(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=gx((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),hx(e.options,"debugColumns","getCenterLeafColumns"))}},Fx={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},jx={getDefaultColumnDef:()=>Fx,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:fx("columnSizing",e),onColumnSizingInfoChange:fx("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Fx.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:Fx.size),null!=(o=e.columnDef.maxSize)?o:Fx.maxSize)},e.getStart=gx((e=>[e,Gx(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),hx(t.options,"debugColumns","getStart")),e.getAfter=gx((e=>[e,Gx(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),hx(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{if(!r||!o)return;if(null==a.persist||a.persist(),Hx(a)&&a.touches&&a.touches.length>1)return;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],s=Hx(a)?Math.round(a.touches[0].clientX):a.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,l=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*l,0))/100})),{...e,deltaOffset:i,deltaPercentage:l}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),p=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",m.moveHandler),null==f||f.removeEventListener("mouseup",m.upHandler),p(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof Bx)return Bx;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return Bx=e,Bx}()&&{passive:!1};Hx(a)?(null==f||f.addEventListener("touchmove",g.moveHandler,h),null==f||f.addEventListener("touchend",g.upHandler,h)):(null==f||f.addEventListener("mousemove",m.moveHandler,h),null==f||f.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let Bx=null;function Hx(e){return"touchstart"===e.type}const Wx={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:fx("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=gx((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),hx(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=gx((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),hx(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(t,n)=>gx((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),hx(e.options,"debugColumns",t));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=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function Gx(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const qx={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:fx("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,a;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Rx.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return mx(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Rx[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ux={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:fx("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},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 a=!0===r||!(null==r||!r[e.id]);let i={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=r,n=null!=(o=n)?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:t,...n}=i;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!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 t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Yx={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:fx("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>px(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=px(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,px(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let o=px(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=gx((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),hx(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+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 t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Kx={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:fx("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...i,e.id,...a]);t.setRowPinning((e=>{var t,r,o,a,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==a?void 0:a.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))},e._getPinnedRows=gx((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:r})))}),hx(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=gx((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),hx(e.options,"debugRows","getCenterRows"))}},Jx={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:fx("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{Xx(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=gx((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?Qx(e,n):{rows:[],flatRows:[],rowsById:{}}),hx(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=gx((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?Qx(e,n):{rows:[],flatRows:[],rowsById:{}}),hx(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=gx((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?Qx(e,n):{rows:[],flatRows:[],rowsById:{}}),hx(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.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((a=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const l={...a};return Xx(l,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),l}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Zx(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===eS(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===eS(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Xx=(e,t,n,r,o)=>{var a;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>Xx(e,t.id,n,r,o)))};function Qx(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){return e.map((e=>{var t;const i=Zx(e,n);if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e})).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function Zx(e,t){var n;return null!=(n=t[e.id])&&n}function eS(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,a=!1;return e.subRows.forEach((e=>{if((!a||o)&&(e.getCanSelect()&&(Zx(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){const n=eS(e,t);"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}})),o?"all":!!a&&"some"}const tS=/([0-9]+)/gm;function nS(e,t){return e===t?0:e>t?1:-1}function rS(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function oS(e,t){const n=e.split(tS).filter(Boolean),r=t.split(tS).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}return n.length-r.length}const aS={alphanumeric:(e,t,n)=>oS(rS(e.getValue(n)).toLowerCase(),rS(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>oS(rS(e.getValue(n)),rS(t.getValue(n))),text:(e,t,n)=>nS(rS(e.getValue(n)).toLowerCase(),rS(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>nS(rS(e.getValue(n)),rS(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>nS(e.getValue(n),t.getValue(n))},iS={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:fx("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return aS.datetime;if("string"==typeof n&&(r=!0,n.split(tS).length>1))return aS.alphanumeric}return r?aS.text:aS.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return mx(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:aS[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n;t.setSorting((i=>{const l=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let c,u=[],d=a?n:"desc"===o;var p;(c=null!=i&&i.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":l?"toggle":"replace","toggle"===c&&(a||o||(c="remove")),"add"===c)?(u=[...i,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?i.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===a||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?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())}},lS=[yx,Wx,_x,Lx,Sx,Tx,{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()}}},qx,iS,Vx,Ux,Yx,Kx,Jx,jx];function sS(e){var t,n;"production"!==process.env.NODE_ENV&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...lS,...null!=(t=e._features)?t:[]];let o={_features:r};const a=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{});let i={...null!=(n=e.initialState)?n:{}};o._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const l=[];let s=!1;const c={_features:r,options:{...a,...e},initialState:i,_queue:e=>{l.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;l.length;)l.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=px(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n)){if("production"!==process.env.NODE_ENV)throw new Error(`getRow could not find row with ID: ${e}`);throw new Error}return n},_getDefaultColumnDef:gx((()=>[o.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),hx(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:gx((()=>[o._getColumnDefs()]),(e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map((e=>{const a=function(e,t,n,r){var o,a;const i={...e._getDefaultColumnDef(),...t},l=i.accessorKey;let s,c=null!=(o=null!=(a=i.id)?a:l?l.replace(".","_"):void 0)?o:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?s=i.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[i.accessorKey]),!c){if("production"!==process.env.NODE_ENV)throw new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");throw new Error}let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:gx((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),hx(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:gx((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),hx(e.options,"debugColumns","column.getLeafColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a}))};return t(e)}),hx(e,"debugColumns","getAllColumns")),getAllFlatColumns:gx((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),hx(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:gx((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),hx(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:gx((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>{let n=e.flatMap((e=>e.getLeafColumns()));return t(n)}),hx(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{const t=o._getAllFlatColumnsById()[e];return"production"===process.env.NODE_ENV||t||console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
|
|
837
|
+
/**
|
|
838
|
+
* react-table
|
|
839
|
+
*
|
|
840
|
+
* Copyright (c) TanStack
|
|
841
|
+
*
|
|
842
|
+
* This source code is licensed under the MIT license found in the
|
|
843
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
844
|
+
*
|
|
845
|
+
* @license MIT
|
|
846
|
+
*/
|
|
847
|
+
function cS(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?n.createElement(e,t):e:null;var r}function uS(e,t){const[n,r]=s((()=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}}));return[n,t=>{try{const o=t instanceof Function?t(n):t;r(o),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(o))}catch(e){console.log(e)}}]}const dS=rn.div`
|
|
848
|
+
overflow-x: auto;
|
|
849
|
+
width: 100%;
|
|
850
|
+
max-height: 90vh;
|
|
851
|
+
`,pS=rn.table`
|
|
852
|
+
border-collapse: collapse;
|
|
853
|
+
position: relative;
|
|
991
854
|
|
|
992
|
-
|
|
993
|
-
|
|
855
|
+
thead {
|
|
856
|
+
background-color: white;
|
|
994
857
|
}
|
|
995
|
-
`,lS=rn.button`
|
|
996
|
-
float: right;
|
|
997
|
-
border: none;
|
|
998
|
-
background: none;
|
|
999
|
-
color: var(--color--grey-light);
|
|
1000
|
-
cursor: pointer;
|
|
1001
|
-
margin-left: auto;
|
|
1002
858
|
|
|
1003
|
-
|
|
1004
|
-
|
|
859
|
+
thead,
|
|
860
|
+
tbody {
|
|
861
|
+
display: table;
|
|
862
|
+
width: 100%;
|
|
863
|
+
table-layout: fixed;
|
|
864
|
+
background-color: white;
|
|
1005
865
|
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
border-
|
|
1011
|
-
|
|
1012
|
-
& fieldset {
|
|
1013
|
-
top: 0;
|
|
1014
|
-
border-color: var(--color--grey-line);
|
|
1015
|
-
& legend span {
|
|
1016
|
-
display: none;
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
&:hover fieldset {
|
|
1020
|
-
border-color: var(--color--grey-light);
|
|
1021
|
-
}
|
|
1022
|
-
&.Mui-focused fieldset {
|
|
1023
|
-
border-color: var(--color--primary);
|
|
1024
|
-
}
|
|
1025
|
-
& .MuiInputBase-input {
|
|
1026
|
-
padding: 0;
|
|
1027
|
-
}
|
|
866
|
+
|
|
867
|
+
thead:last-of-type {
|
|
868
|
+
position: sticky;
|
|
869
|
+
top: 0;
|
|
870
|
+
border-bottom: 2px solid var(--color--grey-line);
|
|
871
|
+
z-index: 1;
|
|
1028
872
|
}
|
|
1029
|
-
|
|
1030
|
-
|
|
873
|
+
|
|
874
|
+
th {
|
|
1031
875
|
font-weight: var(--font-weight--bold);
|
|
1032
|
-
|
|
876
|
+
color: var(--color--grey);
|
|
877
|
+
text-align: left;
|
|
878
|
+
font-size: var(--font-size--xsmall);
|
|
879
|
+
padding: var(--spacing--small);
|
|
880
|
+
vertical-align: middle;
|
|
1033
881
|
position: relative;
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
882
|
+
|
|
883
|
+
> button {
|
|
884
|
+
display: flex;
|
|
885
|
+
align-items: center;
|
|
886
|
+
position: relative;
|
|
887
|
+
// remove default button styles
|
|
888
|
+
background: none;
|
|
889
|
+
border: none;
|
|
890
|
+
cursor: pointer;
|
|
891
|
+
padding: 0;
|
|
892
|
+
text-align: left;
|
|
893
|
+
|
|
894
|
+
i {
|
|
895
|
+
position: absolute;
|
|
896
|
+
left: -12px;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
i.fade {
|
|
900
|
+
opacity: 0;
|
|
901
|
+
transition: opacity 0.2s ease-in-out;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
&:hover i.fade {
|
|
905
|
+
opacity: 1;
|
|
906
|
+
}
|
|
1042
907
|
}
|
|
1043
908
|
}
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
909
|
+
|
|
910
|
+
th tr {
|
|
911
|
+
border-bottom: 1px solid #ddd;
|
|
912
|
+
background-color: var(--color--white);
|
|
1047
913
|
}
|
|
1048
|
-
`,dS=rn.div`
|
|
1049
|
-
min-height: 100%;
|
|
1050
|
-
padding-left: 60px;
|
|
1051
|
-
padding-right: 60px;
|
|
1052
|
-
padding-top: 40px;
|
|
1053
914
|
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
padding-right: 30px;
|
|
915
|
+
tbody > tr:hover {
|
|
916
|
+
background-color: #f5f5f5;
|
|
1057
917
|
}
|
|
1058
918
|
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
font-weight: 600;
|
|
1062
|
-
color: var(--color--grey-dark);
|
|
919
|
+
tr {
|
|
920
|
+
border-bottom: 1px solid var(--color--grey-line);
|
|
1063
921
|
}
|
|
1064
|
-
`,pS=on`
|
|
1065
|
-
from {
|
|
1066
|
-
transform: translate(-100%, 0);
|
|
1067
|
-
}
|
|
1068
922
|
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
923
|
+
td {
|
|
924
|
+
font-size: var(--font-size--small);
|
|
925
|
+
font-weight: var(--font-weight--regular);
|
|
926
|
+
line-height: 1.5;
|
|
927
|
+
color: var(--color--grey-dark);
|
|
928
|
+
text-align: left;
|
|
929
|
+
padding: var(--spacing--small);
|
|
930
|
+
display: table-cell;
|
|
931
|
+
vertical-align: middle;
|
|
932
|
+
overflow: hidden;
|
|
933
|
+
text-overflow: ellipsis;
|
|
1076
934
|
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1080
|
-
`,mS=on`
|
|
1081
|
-
from {
|
|
1082
|
-
transform: translate(100%, 0);
|
|
935
|
+
&.name {
|
|
936
|
+
font-weight: 500;
|
|
1083
937
|
}
|
|
938
|
+
}
|
|
1084
939
|
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
}
|
|
940
|
+
th:first-child,
|
|
941
|
+
td:first-child,
|
|
942
|
+
th:last-child,
|
|
943
|
+
td:last-child {
|
|
944
|
+
padding-left: var(--spacing--medium);
|
|
945
|
+
}
|
|
1092
946
|
|
|
1093
|
-
|
|
1094
|
-
|
|
947
|
+
.cursor-pointer {
|
|
948
|
+
cursor: pointer;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.command-buttons {
|
|
952
|
+
width: 200px;
|
|
953
|
+
> div {
|
|
954
|
+
display: flex;
|
|
955
|
+
gap: var(--spacing--small);
|
|
956
|
+
align-items: center;
|
|
1095
957
|
}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.flex--column {
|
|
961
|
+
display: flex;
|
|
962
|
+
flex-direction: column;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.heading {
|
|
966
|
+
font-size: var(--font-size--medium);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.resizer {
|
|
970
|
+
position: absolute;
|
|
971
|
+
right: 0;
|
|
972
|
+
top: 0;
|
|
973
|
+
height: 100%;
|
|
974
|
+
width: 3px;
|
|
975
|
+
background: var(--color--grey-line);
|
|
976
|
+
cursor: col-resize;
|
|
977
|
+
user-select: none;
|
|
978
|
+
touch-action: none;
|
|
979
|
+
z-index: 1;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.resizer.isResizing {
|
|
983
|
+
background: var(--color--primary);
|
|
984
|
+
opacity: 9;
|
|
985
|
+
transition: opacity 0.2s ease-in-out;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
@media (hover: hover) {
|
|
989
|
+
.resizer {
|
|
990
|
+
opacity: 0;
|
|
1099
991
|
}
|
|
1100
992
|
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}
|
|
1104
|
-
`,vS=on`
|
|
1105
|
-
from {
|
|
1106
|
-
transform: none;
|
|
993
|
+
*:hover > .resizer {
|
|
994
|
+
opacity: 1;
|
|
1107
995
|
}
|
|
996
|
+
}
|
|
997
|
+
`,fS=rn.div`
|
|
998
|
+
display: flex;
|
|
999
|
+
gap: var(--spacing--medium);
|
|
1108
1000
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1001
|
+
a,
|
|
1002
|
+
button {
|
|
1003
|
+
display: inline-flex;
|
|
1004
|
+
align-items: center;
|
|
1005
|
+
justify-content: center;
|
|
1006
|
+
padding: var(--spacing--small);
|
|
1007
|
+
line-height: 1.5;
|
|
1008
|
+
text-decoration: none;
|
|
1009
|
+
cursor: pointer;
|
|
1010
|
+
color: var(--color--grey-dark);
|
|
1011
|
+
border: none;
|
|
1012
|
+
background-color: var(--color--white);
|
|
1013
|
+
font-size: var(--font-size--small);
|
|
1014
|
+
font-weight: var(--font-weight--bold);
|
|
1015
|
+
transition: background-color 0.2s ease-in-out;
|
|
1016
|
+
border-radius: 50%;
|
|
1017
|
+
width: 2rem;
|
|
1018
|
+
height: 2rem;
|
|
1120
1019
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1020
|
+
&:hover {
|
|
1021
|
+
background-color: var(--color--grey-lightest);
|
|
1022
|
+
}
|
|
1023
|
+
&[disabled] {
|
|
1024
|
+
color: var(--color--grey-light);
|
|
1025
|
+
cursor: not-allowed;
|
|
1026
|
+
pointer-events: none;
|
|
1027
|
+
}
|
|
1123
1028
|
}
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1029
|
+
`;function mS({id:o,data:a,columns:i,pageCount:l,totalCount:s,next:c,previous:u,page:d,pageable:p,pageSize:f}){const[m,g]=r.useState((()=>[...a])),[h,v]=r.useState([]),[b,y]=r.useState({pageIndex:0,pageSize:f||10}),[w,x]=uS(`table.${o}.columnSizing`,{}),S=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=n.useState((()=>({current:sS(t)}))),[o,a]=n.useState((()=>r.current.initialState));return r.current.setOptions((t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),r.current}({columns:i,data:m,getCoreRowModel:e=>gx((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=xx(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),hx(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>gx((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),hx(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:v,pageCount:l,state:{pagination:r.useMemo((()=>({pageIndex:b.pageIndex,pageSize:b.pageSize})),[b.pageIndex,b.pageSize]),sorting:h,columnSizing:w},onPaginationChange:y,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:x});return r.useEffect((()=>{void 0!==d&&S.setPageIndex(Number(d-1))}),[d,S]),r.useEffect((()=>{g(a)}),[a]),t(dS,{children:[t(pS,{children:[S.getHeaderGroups().map((n=>e("thead",{children:e("tr",{children:n.headers.map((n=>t("th",{colSpan:n.colSpan,style:{width:n.getSize()},children:[n.isPlaceholder?null:t("button",{type:"button",className:n.column.getCanSort()?"cursor-pointer select-none":"",onClick:n.column.getToggleSortingHandler(),onKeyDown:n.column.getToggleSortingHandler(),title:n.column.getCanSort()?"asc"===n.column.getNextSortingOrder()?"Sort ascending":"desc"===n.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e(Di,{name:["fas","arrow-up"],size:"small"}),desc:e(Di,{name:["fas","arrow-down"],size:"small"})}[n.column.getIsSorted()]??(n.column.getCanSort()&&e(Di,{name:["fas","arrow-up"],size:"small",className:"fade"})),cS(n.column.columnDef.header,n.getContext())]}),n.column.getCanResize()&&e("button",{type:"button","aria-label":"Resize column",onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),className:"resizer "+(n.column.getIsResizing()?"isResizing":"")})]},n.id)))})},n.id))),e("tbody",{children:S.getRowModel().rows.length>0?S.getRowModel().rows.map((t=>e("tr",{children:t.getVisibleCells().map((t=>e("td",{style:{width:t.column.getSize()},children:cS(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e("tr",{children:e("td",{colSpan:i.length,style:{textAlign:"center"},children:"No data"})})})]}),t("div",{children:[void 0!==s?t("div",{children:["Total: ",s]}):null,p?t(fS,{children:[e($y,{type:"link",href:S.getCanPreviousPage()?window.location.href:"",disabled:!S.getCanPreviousPage(),children:"<<"}),e($y,{type:"link",href:S.getCanPreviousPage()&&u?u:"",disabled:!S.getCanPreviousPage(),children:"<"}),e($y,{type:"link",href:S.getCanNextPage()&&c?c:"",disabled:!S.getCanNextPage(),children:">"}),e($y,{href:S.getCanNextPage()?`${window.location.href}?page=${String(l)}`:"",type:"link",disabled:!S.getCanNextPage(),children:">>"}),t("span",{children:[e("div",{children:"Page"}),t("strong",{children:[S.getState().pagination.pageIndex+1," of"," ",S.getPageCount()]})]})]}):null]})]})}const gS=rn.div`
|
|
1030
|
+
background-color: transparent;
|
|
1031
|
+
border-bottom: 2px solid transparent;
|
|
1032
|
+
color: var(--color--grey-dark);
|
|
1033
|
+
font-weight: 500;
|
|
1034
|
+
transition: border-bottom 0.2s ease-in-out;
|
|
1035
|
+
margin-top: var(--spacing--medium);
|
|
1036
|
+
margin-bottom: var(--spacing--medium);
|
|
1037
|
+
`,hS=rn.div`
|
|
1038
|
+
display: flex;
|
|
1039
|
+
border-bottom: 3px solid var(--color--grey-borders);
|
|
1040
|
+
@media print {
|
|
1041
|
+
display: none;
|
|
1128
1042
|
}
|
|
1043
|
+
`,vS=rn.div`
|
|
1044
|
+
display: flex;
|
|
1045
|
+
width: 100%;
|
|
1046
|
+
overflow: auto;
|
|
1047
|
+
margin-bottom: -3px;
|
|
1129
1048
|
|
|
1130
|
-
|
|
1131
|
-
|
|
1049
|
+
&::-webkit-scrollbar {
|
|
1050
|
+
display: none;
|
|
1132
1051
|
}
|
|
1052
|
+
`,bS=rn.button`
|
|
1053
|
+
position: relative;
|
|
1054
|
+
background-color: transparent;
|
|
1055
|
+
border: none;
|
|
1056
|
+
border-bottom: 3px solid transparent;
|
|
1057
|
+
padding: var(--spacing--medium) var(--spacing--large);
|
|
1058
|
+
transition:
|
|
1059
|
+
border-bottom 0.2s ease-in-out,
|
|
1060
|
+
color 0.2s ease-in-out;
|
|
1061
|
+
color: var(--color--grey);
|
|
1062
|
+
font-weight: 600;
|
|
1063
|
+
font-size: var(--font-size--large);
|
|
1064
|
+
white-space: nowrap;
|
|
1065
|
+
text-overflow: ellipsis;
|
|
1133
1066
|
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1067
|
+
&:hover,
|
|
1068
|
+
&:focus,
|
|
1069
|
+
&:active,
|
|
1070
|
+
&:focus {
|
|
1071
|
+
border-bottom: 3px solid var(--color--primary);
|
|
1072
|
+
cursor: pointer;
|
|
1137
1073
|
}
|
|
1138
1074
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1075
|
+
&[aria-selected="true"] {
|
|
1076
|
+
border-bottom: 3px solid var(--color--primary);
|
|
1077
|
+
color: var(--color--black);
|
|
1141
1078
|
}
|
|
1142
1079
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
transform: translate(0, 100%);
|
|
1080
|
+
@media print {
|
|
1081
|
+
display: none;
|
|
1146
1082
|
}
|
|
1147
|
-
`,yS=rn.
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
flex-direction: column;
|
|
1153
|
-
overflow: auto;
|
|
1154
|
-
width: 100%;
|
|
1083
|
+
`,yS=rn.button`
|
|
1084
|
+
background: transparent;
|
|
1085
|
+
border: 0;
|
|
1086
|
+
cursor: pointer;
|
|
1087
|
+
transition: color 0.2s ease-in-out;
|
|
1155
1088
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1089
|
+
i {
|
|
1090
|
+
color: var(--color--grey-borders);
|
|
1091
|
+
&:hover,
|
|
1092
|
+
&:focus,
|
|
1093
|
+
&:active,
|
|
1094
|
+
&:focus {
|
|
1095
|
+
color: var(--color--grey);
|
|
1096
|
+
}
|
|
1158
1097
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1098
|
+
// disable hover when disabled
|
|
1099
|
+
&[disabled] {
|
|
1100
|
+
visibility: hidden;
|
|
1162
1101
|
}
|
|
1163
1102
|
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
height: 95vh;
|
|
1103
|
+
&.left-arrow[disabled] {
|
|
1104
|
+
display: none;
|
|
1167
1105
|
}
|
|
1168
1106
|
`,wS=rn.div`
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1107
|
+
margin-top: var(--spacing--medium);
|
|
1108
|
+
background-color: var(--color--white);
|
|
1109
|
+
padding: var(--spacing--large);
|
|
1110
|
+
border-radius: var(--border-radius--medium);
|
|
1111
|
+
box-shadow: var(--box-shadow--medium);
|
|
1112
|
+
text-align: left;
|
|
1113
|
+
font-weight: 400;
|
|
1174
1114
|
|
|
1175
|
-
|
|
1176
|
-
|
|
1115
|
+
@media print {
|
|
1116
|
+
padding: 0;
|
|
1117
|
+
border-radius: 0;
|
|
1118
|
+
box-shadow: none;
|
|
1177
1119
|
}
|
|
1120
|
+
`,xS=rn.section`
|
|
1121
|
+
display: ${({$show:e})=>e?"flex":"none"};
|
|
1122
|
+
flex-direction: column;
|
|
1178
1123
|
|
|
1179
|
-
|
|
1180
|
-
|
|
1124
|
+
// display on print
|
|
1125
|
+
@media print {
|
|
1126
|
+
display: flex;
|
|
1127
|
+
page-break-after: always;
|
|
1128
|
+
&:last-child {
|
|
1129
|
+
page-break-after: avoid;
|
|
1130
|
+
}
|
|
1181
1131
|
}
|
|
1182
|
-
`,xS
|
|
1132
|
+
`;function SS({tabsConfig:n=[],defaultId:r}){const a=new URLSearchParams(window.location.search).get("tab")||r,i=n.findIndex((e=>e.id===a)),[l,u]=s(i>=0?i:0),p=o(null),f=o({}),[m,g]=s(!1),[h,v]=s({right:!1,left:!0}),b=e=>{if(!p.current)return;const t=f.current[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},y=e=>{const t=new URL(window.location.href);t.searchParams.set("tab",e),window.history.pushState({},"",t.toString())},w=e=>{const t=n[e].id,r=f.current[t];r&&r.focus(),b(t),y(t)},x=e=>{const t=n.length,r={ArrowRight:()=>w((l+1)%t),ArrowLeft:()=>w((l-1+t)%t),Home:()=>w(0),End:()=>w(t-1)}[e.key];r&&(e.preventDefault(),r())},S=(e,t)=>{if(!e)return;let n=0;const r=setInterval((()=>{e.scrollLeft+=t,n+=Math.abs(t),n>=100&&clearInterval(r)}),20);v({left:e.scrollLeft<=0,right:e.scrollLeft+e.offsetWidth>=e.scrollWidth})};return c((()=>{p.current&&g(p.current.offsetWidth<p.current.scrollWidth)}),[]),c((()=>{b(n[l].id),y(n[l].id)}),[n,l]),d((()=>{const e=()=>{if(!p.current)return;const{offsetWidth:e,scrollWidth:t}=p.current;g(e<t)};return window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e)}}),[]),t(gS,{children:[t(hS,{role:"tablist","aria-orientation":"horizontal",children:[m&&t(yS,{onClick:()=>p.current&&S(p.current,-30),className:"left-arrow","aria-label":"Left arrow",disabled:h.left,children:[e(Di,{name:["fas","chevron-left"],size:"large"})," "]}),e(vS,{ref:p,children:n.length>0?n.map((t=>e(bS,{type:"button",onClick:()=>(e=>{const t=n.findIndex((t=>t.id===e));b(e),u(t),y(e)})(t.id),role:"tab",ref:e=>{f.current[t.id]=e},"aria-controls":`panel-${t.id}`,"aria-selected":n[l].id===t.id,id:`tab-${t.id}`,onKeyDown:x,onFocus:()=>u(n.findIndex((e=>e.id===t.id))),tabIndex:n[l].id===t.id?0:-1,children:t.label},`tab-${t.id}`))):e("div",{children:"No tab content to display"})}),m&&e(yS,{onClick:()=>p.current&&S(p.current,30),className:"right-arrow","aria-label":"Right arrow",disabled:h.right,children:e(Di,{name:"chevron-right",size:"large"})})]}),e(wS,{children:n.map((r=>t(xS,{role:"tabpanel","aria-labelledby":`tab-${r.id}`,id:`panel-${r.id}`,$show:n[l].id===r.id,tabIndex:0,children:[r.label?e(sn,{as:"h2",children:r.label}):null,r.content]},`tabpanel-${r.id}`)))})]})}const CS={small:en`
|
|
1133
|
+
font-size: var(--font-size--small);
|
|
1134
|
+
line-height: var(--line-height--small);
|
|
1135
|
+
`,medium:en`
|
|
1136
|
+
font-size: var(--font-size--medium);
|
|
1137
|
+
line-height: var(--line-height--medium);
|
|
1138
|
+
`,large:en`
|
|
1139
|
+
font-size: var(--font-size--large);
|
|
1140
|
+
line-height: var(--line-height--large);
|
|
1141
|
+
`},kS=rn.div`
|
|
1142
|
+
font-weight: var(--font-weight--bold);
|
|
1143
|
+
color: var(--color--grey-dark);
|
|
1144
|
+
margin-bottom: var(--spacing--xsmall);
|
|
1145
|
+
${({$size:e})=>CS[e||"medium"]}
|
|
1146
|
+
`,OS=rn.div`
|
|
1147
|
+
font-weight: 400;
|
|
1148
|
+
${({$size:e})=>CS[e||"medium"]}
|
|
1149
|
+
`,IS=rn.div`
|
|
1150
|
+
grid-gap: var(--spacing--medium);
|
|
1151
|
+
${({$inline:e})=>e?en`
|
|
1152
|
+
display: grid;
|
|
1153
|
+
grid-template-columns: 1fr 3fr;
|
|
1154
|
+
@media (max-width: 768px) {
|
|
1155
|
+
grid-template-columns: 1fr;
|
|
1156
|
+
}
|
|
1157
|
+
`:""}
|
|
1158
|
+
`;function ES({label:n,content:r,size:o,inline:a=!1}){return t(IS,{$inline:a,children:[n?e(kS,{$size:o,children:n}):null,r?e(OS,{$size:o,children:r}):null]})}const PS=rn.div`
|
|
1159
|
+
position: fixed;
|
|
1160
|
+
bottom: 2rem;
|
|
1161
|
+
width: 100%;
|
|
1162
|
+
z-index: 2000;
|
|
1163
|
+
pointer-events: none;
|
|
1164
|
+
`,NS=rn.div`
|
|
1165
|
+
position: absolute;
|
|
1166
|
+
top: 0;
|
|
1167
|
+
width: 100%;
|
|
1183
1168
|
display: flex;
|
|
1184
|
-
flex-
|
|
1169
|
+
flex-direction: column;
|
|
1170
|
+
gap: var(--spacing--medium);
|
|
1185
1171
|
align-items: center;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1172
|
+
margin-top: var(--spacing--small);
|
|
1173
|
+
transition: top 0.1s ease;
|
|
1174
|
+
`,$S=rn.div`
|
|
1175
|
+
padding: var(--spacing--small) var(--spacing--medium);
|
|
1176
|
+
text-align: center;
|
|
1177
|
+
border-radius: var(--border-radius--medium);
|
|
1178
|
+
box-sizing: border-box;
|
|
1179
|
+
font-size: var(--font-size--small);
|
|
1180
|
+
font-weight: var(--font-weight--bold);
|
|
1181
|
+
display: flex;
|
|
1182
|
+
align-items: center;
|
|
1183
|
+
justify-content: center;
|
|
1192
1184
|
|
|
1193
1185
|
svg {
|
|
1194
|
-
|
|
1195
|
-
flex-shrink: 0;
|
|
1186
|
+
margin-right: var(--spacing--small);
|
|
1196
1187
|
}
|
|
1197
1188
|
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1189
|
+
${e=>"success"===e.level?en`
|
|
1190
|
+
background-color: var(--color--green-light);
|
|
1191
|
+
color: var(--color--dark-blue);
|
|
1201
1192
|
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
}
|
|
1193
|
+
svg {
|
|
1194
|
+
color: var(--color--dark-blue);
|
|
1195
|
+
}
|
|
1196
|
+
`:"warning"===e.level?en`
|
|
1197
|
+
background-color: var(--color--amber-tint);
|
|
1198
|
+
color: var(--color--dark-blue);
|
|
1209
1199
|
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1200
|
+
svg {
|
|
1201
|
+
color: var(--color--amber);
|
|
1202
|
+
}
|
|
1203
|
+
`:"error"===e.level?en`
|
|
1204
|
+
background-color: #ffdadd;
|
|
1205
|
+
color: var(--color--dark-blue);
|
|
1216
1206
|
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
`;let OS=1;const IS=d((({children:n,side:a,size:i="md",open:l=!1,closeBlocked:s,onClose:u=(()=>{}),onCloseCompleted:d=(()=>{}),closeRequested:p=!1,...f},m)=>{const g=o(null);g.current||(g.current=`overlay-${OS}`,OS+=1);const h=o(null),[v,b]=r.useState(!1);r.useEffect((()=>{if(v){const e=setTimeout(d,200);return()=>{clearTimeout(e)}}return()=>{}})),c((()=>{p&&b(!0)}),[p]),g.current||(g.current=`modal-${OS}`,OS+=1),c((()=>{document.body.style.overflow=l?"hidden":"auto"}),[l]),c((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),u())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[u]);return e(uS,{open:l&&!v,anchor:a,className:`${a} ${l?"open":"closing"}`,size:i,...f,children:e(wS,{children:t(yS,{ref:h,children:[s&&t(CS,{role:"alert","aria-live":"assertive",children:[e(Di,{name:["fas","exclamation-triangle"]}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(kS,{ref:m,children:e(dS,{children:n})})]})})})}));function ES(t){return e(Dy,{...t})}function PS({label:t,...n}){return e(mx,{...n,children:t})}function NS(t){return e(Sx,{...t})}const $S=rn(Tx)``;function zS(t){return e(iv,{...t})}function RS(e){const[t,n]=s(e);return{value:t,toggle:p((()=>n((e=>!e))),[]),setTrue:p((()=>n(!0)),[]),setFalse:p((()=>n(!1)),[])}}const DS=(e,t,n)=>{const[r,a]=s(null),[i,l]=s(!1),[u,d]=s(null),p=o(null);return c((()=>{if(!e)return()=>{};let r=!0;l(!0);return p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{(async()=>{try{const n=await fetch(e,t);if(!n.ok)throw new Error(`Error: ${n.statusText}`);const o=await n.json();r&&(a(o),l(!1))}catch(e){r&&(d(e),l(!1))}})()}),n||0),()=>{r=!1,p.current&&clearTimeout(p.current)}}),[e,t,n]),{data:r,loading:i,error:u}};function TS(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function MS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const AS=6048e5,VS=864e5,_S=6e4,LS=36e5;let FS={};function jS(){return FS}function BS(e,t){const n=jS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=TS(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function HS(e){return BS(e,{weekStartsOn:1})}function WS(e){const t=TS(e),n=t.getFullYear(),r=MS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=HS(r),a=MS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=HS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function GS(e){const t=TS(e);return t.setHours(0,0,0,0),t}function qS(e){const t=TS(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function US(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=TS(e);return!isNaN(Number(n))}const YS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function KS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const JS={date:KS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:KS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:KS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},XS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function QS(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function ZS(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var eC;const tC={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=YS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:JS,formatRelative:(e,t,n,r)=>XS[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:QS({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:QS({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:QS({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:QS({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:QS({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(eC={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(eC.matchPattern);if(!n)return null;const r=n[0],o=e.match(eC.parsePattern);if(!o)return null;let a=eC.valueCallback?eC.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:ZS({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ZS({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ZS({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ZS({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ZS({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function nC(e){const t=TS(e),n=function(e,t){const n=GS(e),r=GS(t),o=+n-qS(n),a=+r-qS(r);return Math.round((o-a)/VS)}(t,function(e){const t=TS(e),n=MS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function rC(e){const t=TS(e),n=+HS(t)-+function(e){const t=WS(e),n=MS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),HS(n)}(t);return Math.round(n/AS)+1}function oC(e,t){const n=TS(e),r=n.getFullYear(),o=jS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=MS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=BS(i,t),s=MS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=BS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function aC(e,t){const n=TS(e),r=+BS(n,t)-+function(e,t){const n=jS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=oC(e,t),a=MS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),BS(a,t)}(n,t);return Math.round(r/AS)+1}function iC(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const lC={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return iC("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):iC(n+1,2)},d:(e,t)=>iC(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>iC(e.getHours()%12||12,t.length),H:(e,t)=>iC(e.getHours(),t.length),m:(e,t)=>iC(e.getMinutes(),t.length),s:(e,t)=>iC(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return iC(Math.trunc(r*Math.pow(10,n-3)),t.length)}},sC="midnight",cC="noon",uC="morning",dC="afternoon",pC="evening",fC="night",mC={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return lC.y(e,t)},Y:function(e,t,n,r){const o=oC(e,r),a=o>0?o:1-o;if("YY"===t){return iC(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):iC(a,t.length)},R:function(e,t){return iC(WS(e),t.length)},u:function(e,t){return iC(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return iC(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return iC(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return lC.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return iC(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=aC(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):iC(o,t.length)},I:function(e,t,n){const r=rC(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):iC(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):lC.d(e,t)},D:function(e,t,n){const r=nC(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):iC(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return iC(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return iC(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return iC(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?cC:0===r?sC:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?pC:r>=12?dC:r>=4?uC:fC,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return lC.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):lC.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):iC(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):iC(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lC.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lC.s(e,t)},S:function(e,t){return lC.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return hC(r);case"XXXX":case"XX":return vC(r);default:return vC(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hC(r);case"xxxx":case"xx":return vC(r);default:return vC(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gC(r,":");default:return"GMT"+vC(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gC(r,":");default:return"GMT"+vC(r,":")}},t:function(e,t,n){return iC(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return iC(e.getTime(),t.length)}};function gC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+iC(a,2)}function hC(e,t){if(e%60==0){return(e>0?"-":"+")+iC(Math.abs(e)/60,2)}return vC(e,t)}function vC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+iC(Math.trunc(r/60),2)+t+iC(r%60,2)}const bC=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},yC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},wC={p:yC,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return bC(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",bC(r,t)).replace("{{time}}",yC(o,t))}},xC=/^D+$/,SC=/^Y+$/,CC=["D","DD","YY","YYYY"];const kC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IC=/^'([^]*?)'?$/,EC=/''/g,PC=/[a-zA-Z]/;function NC(e,t,n){const r=jS(),o=r.locale??tC,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=TS(e);if(!US(l))throw new RangeError("Invalid time value");let s=t.match(OC).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,wC[t])(e,o.formatLong)}return e})).join("").match(kC).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:$C(e)};if(mC[t])return{isToken:!0,value:e};if(t.match(PC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return SC.test(e)}(r)||function(e){return xC.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),CC.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,mC[r[0]])(l,r,o.localize,c)})).join("")}function $C(e){const t=e.match(IC);return t?t[1].replace(EC,"'"):e}function zC(e,t){const n=function(e){const t={},n=e.split(RC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],RC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(RC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=RC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(DC);if(!n)return new Date(NaN);const r=!!n[4],o=AC(n[1]),a=AC(n[2])-1,i=AC(n[3]),l=AC(n[4]),s=AC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(_C[t]||(LC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(LC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(TC);if(!t)return NaN;const n=VC(t[1]),r=VC(t[2]),o=VC(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*LS+r*_S+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(MC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*LS+o*_S)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const RC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,TC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,MC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function AC(e){return e?parseInt(e):1}function VC(e){return e&&parseFloat(e.replace(",","."))||0}const _C=[31,null,31,30,31,30,31,31,30,31,30,31];function LC(e){return e%400==0||e%4==0&&e%100!=0}const FC="-",jC=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return FC;const n=zC(e);return US(n)?NC(n,t):FC},BC=e=>""===e||null==e?FC:e.toLocaleString(),HC=e=>""===e||null==e?FC:e,WC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0},GC=(e,t="en-GB",n=WC)=>{let r=e;if(""===r||null==r)return FC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...WC,...n}).format(r)};export{_i as Accordion,Ux as AppBar,oS as Autocomplete,sS as AutocompleteSelectMultiple,Hi as Badge,jw as Box,nS as Breadcrumb,ll as Button,ES as Chip,Wi as Divider,IS as Drawer,zS as Dropdown,PS as Grid,sn as Heading,Di as Icon,Cy as IconButton,cS as Input,Qx as Layout,aS as List,Sb as ListItem,Lb as ListItemButton,bx as ListItemDecorator,Ki as LoadingSpinner,Vx as Logo,NS as Menu,$S as MenuItem,wu as ProgressBar,Gi as ProgressCircle,dl as ReadMore,fl as RelativeTime,ec as StatusIcon,ru as Table,du as Tabs,hu as TextBlock,Mx as TextField,Ou as ToastMessages,qs as Tooltip,GC as formatCurrency,jC as formatDate,BC as formatNumber,HC as formatText,DS as useFetch,Zc as useLocalStorage,RS as useToggle};
|
|
1207
|
+
svg {
|
|
1208
|
+
color: var(--color--red-dark);
|
|
1209
|
+
}
|
|
1210
|
+
`:en``}
|
|
1211
|
+
|
|
1212
|
+
// Fadeout animation
|
|
1213
|
+
${({noFade:e})=>e?en``:en`
|
|
1214
|
+
animation: 5s ease 0s normal forwards 1 fadeout;
|
|
1215
|
+
@keyframes fadeout {
|
|
1216
|
+
0% {
|
|
1217
|
+
opacity: 1;
|
|
1218
|
+
}
|
|
1219
|
+
66% {
|
|
1220
|
+
opacity: 1;
|
|
1221
|
+
}
|
|
1222
|
+
100% {
|
|
1223
|
+
opacity: 0;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
`}
|
|
1227
|
+
`;function zS({message:n}){const r="success"===n.level?e(Di,{name:["fas","check-circle"]}):e(Di,{name:["fas","exclamation-triangle"]});return t($S,"html"in n?{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,e("span",{dangerouslySetInnerHTML:{__html:n.html}})]}:{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,n.text]})}function RS({messages:t}){return e(PS,{children:e(NS,{style:{top:`-${55*t.length}px`},children:t.map((t=>e(zS,{message:t},String(t))))})})}function DS(e){const[t,n]=s(e);return{value:t,toggle:p((()=>n((e=>!e))),[]),setTrue:p((()=>n(!0)),[]),setFalse:p((()=>n(!1)),[])}}const TS=(e,t,n)=>{const[r,a]=s(null),[i,l]=s(!1),[u,d]=s(null),p=o(null);return c((()=>{if(!e)return()=>{};let r=!0;l(!0);return p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{(async()=>{try{const n=await fetch(e,t);if(!n.ok)throw new Error(`Error: ${n.statusText}`);const o=await n.json();r&&(a(o),l(!1))}catch(e){r&&(d(e),l(!1))}})()}),n||0),()=>{r=!1,p.current&&clearTimeout(p.current)}}),[e,t,n]),{data:r,loading:i,error:u}};function MS(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function AS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const VS=6048e5,_S=864e5,LS=6e4,FS=36e5;let jS={};function BS(){return jS}function HS(e,t){const n=BS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=MS(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function WS(e){return HS(e,{weekStartsOn:1})}function GS(e){const t=MS(e),n=t.getFullYear(),r=AS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=WS(r),a=AS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=WS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function qS(e){const t=MS(e);return t.setHours(0,0,0,0),t}function US(e){const t=MS(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function YS(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=MS(e);return!isNaN(Number(n))}const KS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function JS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const XS={date:JS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:JS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:JS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},QS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ZS(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function eC(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var tC;const nC={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=KS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:XS,formatRelative:(e,t,n,r)=>QS[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ZS({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ZS({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ZS({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ZS({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ZS({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(tC={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(tC.matchPattern);if(!n)return null;const r=n[0],o=e.match(tC.parsePattern);if(!o)return null;let a=tC.valueCallback?tC.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:eC({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:eC({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:eC({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:eC({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:eC({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function rC(e){const t=MS(e),n=function(e,t){const n=qS(e),r=qS(t),o=+n-US(n),a=+r-US(r);return Math.round((o-a)/_S)}(t,function(e){const t=MS(e),n=AS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function oC(e){const t=MS(e),n=+WS(t)-+function(e){const t=GS(e),n=AS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),WS(n)}(t);return Math.round(n/VS)+1}function aC(e,t){const n=MS(e),r=n.getFullYear(),o=BS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=AS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=HS(i,t),s=AS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=HS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function iC(e,t){const n=MS(e),r=+HS(n,t)-+function(e,t){const n=BS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=aC(e,t),a=AS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),HS(a,t)}(n,t);return Math.round(r/VS)+1}function lC(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const sC={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return lC("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):lC(n+1,2)},d:(e,t)=>lC(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>lC(e.getHours()%12||12,t.length),H:(e,t)=>lC(e.getHours(),t.length),m:(e,t)=>lC(e.getMinutes(),t.length),s:(e,t)=>lC(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return lC(Math.trunc(r*Math.pow(10,n-3)),t.length)}},cC="midnight",uC="noon",dC="morning",pC="afternoon",fC="evening",mC="night",gC={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return sC.y(e,t)},Y:function(e,t,n,r){const o=aC(e,r),a=o>0?o:1-o;if("YY"===t){return lC(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):lC(a,t.length)},R:function(e,t){return lC(GS(e),t.length)},u:function(e,t){return lC(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return lC(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return lC(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return sC.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return lC(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=iC(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):lC(o,t.length)},I:function(e,t,n){const r=oC(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):lC(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):sC.d(e,t)},D:function(e,t,n){const r=rC(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):lC(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return lC(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return lC(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return lC(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?uC:0===r?cC:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?fC:r>=12?pC:r>=4?dC:mC,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return sC.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):sC.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):lC(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):lC(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):sC.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):sC.s(e,t)},S:function(e,t){return sC.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return vC(r);case"XXXX":case"XX":return bC(r);default:return bC(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return vC(r);case"xxxx":case"xx":return bC(r);default:return bC(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hC(r,":");default:return"GMT"+bC(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hC(r,":");default:return"GMT"+bC(r,":")}},t:function(e,t,n){return lC(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return lC(e.getTime(),t.length)}};function hC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+lC(a,2)}function vC(e,t){if(e%60==0){return(e>0?"-":"+")+lC(Math.abs(e)/60,2)}return bC(e,t)}function bC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+lC(Math.trunc(r/60),2)+t+lC(r%60,2)}const yC=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},wC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},xC={p:wC,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return yC(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",yC(r,t)).replace("{{time}}",wC(o,t))}},SC=/^D+$/,CC=/^Y+$/,kC=["D","DD","YY","YYYY"];const OC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EC=/^'([^]*?)'?$/,PC=/''/g,NC=/[a-zA-Z]/;function $C(e,t,n){const r=BS(),o=r.locale??nC,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=MS(e);if(!YS(l))throw new RangeError("Invalid time value");let s=t.match(IC).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,xC[t])(e,o.formatLong)}return e})).join("").match(OC).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:zC(e)};if(gC[t])return{isToken:!0,value:e};if(t.match(NC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return CC.test(e)}(r)||function(e){return SC.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),kC.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,gC[r[0]])(l,r,o.localize,c)})).join("")}function zC(e){const t=e.match(EC);return t?t[1].replace(PC,"'"):e}function RC(e,t){const n=function(e){const t={},n=e.split(DC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],DC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(DC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=DC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(TC);if(!n)return new Date(NaN);const r=!!n[4],o=VC(n[1]),a=VC(n[2])-1,i=VC(n[3]),l=VC(n[4]),s=VC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(LC[t]||(FC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(FC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(MC);if(!t)return NaN;const n=_C(t[1]),r=_C(t[2]),o=_C(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*FS+r*LS+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(AC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*FS+o*LS)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const DC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},TC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,MC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,AC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VC(e){return e?parseInt(e):1}function _C(e){return e&&parseFloat(e.replace(",","."))||0}const LC=[31,null,31,30,31,30,31,31,30,31,30,31];function FC(e){return e%400==0||e%4==0&&e%100!=0}const jC="-",BC=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return jC;const n=RC(e);return YS(n)?$C(n,t):jC},HC=e=>""===e||null==e?jC:e.toLocaleString(),WC=e=>""===e||null==e?jC:e,GC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0},qC=(e,t="en-GB",n=GC)=>{let r=e;if(""===r||null==r)return jC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...GC,...n}).format(r)};export{_i as Accordion,By as AppBar,Wy as Autocomplete,Yy as AutocompleteSelectMultiple,Zy as Badge,wb as Box,rw as Breadcrumb,$y as Button,ow as Chip,aw as Divider,Sw as Drawer,Cw as Dropdown,kw as Grid,sn as Heading,Di as Icon,nv as IconButton,Ow as Input,$w as Layout,Gy as List,th as ListItem,bh as ListItemButton,Xb as ListItemDecorator,by as LoadingSpinner,Ry as Logo,zw as Menu,sy as MenuButton,Rw as MenuHeading,Dw as MenuItem,Vw as ProgressBar,_w as ProgressCircle,Bw as ReadMore,Ww as RelativeTime,dx as StatusIcon,mS as Table,SS as Tabs,ES as TextBlock,my as TextField,RS as ToastMessages,rx as Tooltip,qC as formatCurrency,BC as formatDate,HC as formatNumber,WC as formatText,TS as useFetch,uS as useLocalStorage,DS as useToggle};
|
|
1223
1228
|
//# sourceMappingURL=index.js.map
|