pankosmia-rcl 0.4.12 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,65 +1,73 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(De,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],$):(De=typeof globalThis<"u"?globalThis:De||self,$(De.pankosmiaRcl={},De.React,De.ReactDOM))})(this,(function(De,$,un){"use strict";var $1=Object.defineProperty;var R1=(De,$,un)=>$ in De?$1(De,$,{enumerable:!0,configurable:!0,writable:!0,value:un}):De[$]=un;var mi=(De,$,un)=>R1(De,typeof $!="symbol"?$+"":$,un);function Zl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const v=Zl($),zf=Zl(un);function Ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hi={exports:{}},sr={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ec;function Vf(){if(ec)return sr;ec=1;var e=$,t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,d){var u,m={},h=null,y=null;d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(y=c.ref);for(u in c)r.call(c,u)&&!s.hasOwnProperty(u)&&(m[u]=c[u]);if(l&&l.defaultProps)for(u in c=l.defaultProps,c)m[u]===void 0&&(m[u]=c[u]);return{$$typeof:t,type:l,key:h,ref:y,props:m,_owner:i.current}}return sr.Fragment=o,sr.jsx=a,sr.jsxs=a,sr}var ar={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var tc;function Wf(){return tc||(tc=1,process.env.NODE_ENV!=="production"&&(function(){var e=$,t=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function C(I){if(I===null||typeof I!="object")return null;var oe=g&&I[g]||I[p];return typeof oe=="function"?oe:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(I){{for(var oe=arguments.length,le=new Array(oe>1?oe-1:0),Pe=1;Pe<oe;Pe++)le[Pe-1]=arguments[Pe];x("error",I,le)}}function x(I,oe,le){{var Pe=w.ReactDebugCurrentFrame,qe=Pe.getStackAddendum();qe!==""&&(oe+="%s",le=le.concat([qe]));var K=le.map(function(V){return String(V)});K.unshift("Warning: "+oe),Function.prototype.apply.call(console[I],console,K)}}var T=!1,S=!1,P=!1,O=!1,k=!1,R;R=Symbol.for("react.module.reference");function b(I){return!!(typeof I=="string"||typeof I=="function"||I===r||I===s||k||I===i||I===d||I===u||O||I===y||T||S||P||typeof I=="object"&&I!==null&&(I.$$typeof===h||I.$$typeof===m||I.$$typeof===a||I.$$typeof===l||I.$$typeof===c||I.$$typeof===R||I.getModuleId!==void 0))}function j(I,oe,le){var Pe=I.displayName;if(Pe)return Pe;var qe=oe.displayName||oe.name||"";return qe!==""?le+"("+qe+")":le}function N(I){return I.displayName||"Context"}function M(I){if(I==null)return null;if(typeof I.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case r:return"Fragment";case o:return"Portal";case s:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case l:var oe=I;return N(oe)+".Consumer";case a:var le=I;return N(le._context)+".Provider";case c:return j(I,I.render,"ForwardRef");case m:var Pe=I.displayName||null;return Pe!==null?Pe:M(I.type)||"Memo";case h:{var qe=I,K=qe._payload,V=qe._init;try{return M(V(K))}catch{return null}}}return null}var z=Object.assign,F=0,L,X,J,W,B,A,Q;function Y(){}Y.__reactDisabledLog=!0;function q(){{if(F===0){L=console.log,X=console.info,J=console.warn,W=console.error,B=console.group,A=console.groupCollapsed,Q=console.groupEnd;var I={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}F++}}function U(){{if(F--,F===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},I,{value:L}),info:z({},I,{value:X}),warn:z({},I,{value:J}),error:z({},I,{value:W}),group:z({},I,{value:B}),groupCollapsed:z({},I,{value:A}),groupEnd:z({},I,{value:Q})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _=w.ReactCurrentDispatcher,G;function H(I,oe,le){{if(G===void 0)try{throw Error()}catch(qe){var Pe=qe.stack.trim().match(/\n( *(at )?)/);G=Pe&&Pe[1]||""}return`
|
|
18
|
+
`+G+I}}var ne=!1,se;{var ce=typeof WeakMap=="function"?WeakMap:Map;se=new ce}function D(I,oe){if(!I||ne)return"";{var le=se.get(I);if(le!==void 0)return le}var Pe;ne=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=_.current,_.current=null,q();try{if(oe){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(_t){Pe=_t}Reflect.construct(I,[],V)}else{try{V.call()}catch(_t){Pe=_t}I.call(V.prototype)}}else{try{throw Error()}catch(_t){Pe=_t}I()}}catch(_t){if(_t&&Pe&&typeof _t.stack=="string"){for(var re=_t.stack.split(`
|
|
19
|
+
`),Oe=Pe.stack.split(`
|
|
20
|
+
`),we=re.length-1,Re=Oe.length-1;we>=1&&Re>=0&&re[we]!==Oe[Re];)Re--;for(;we>=1&&Re>=0;we--,Re--)if(re[we]!==Oe[Re]){if(we!==1||Re!==1)do if(we--,Re--,Re<0||re[we]!==Oe[Re]){var Ke=`
|
|
21
|
+
`+re[we].replace(" at new "," at ");return I.displayName&&Ke.includes("<anonymous>")&&(Ke=Ke.replace("<anonymous>",I.displayName)),typeof I=="function"&&se.set(I,Ke),Ke}while(we>=1&&Re>=0);break}}}finally{ne=!1,_.current=K,U(),Error.prepareStackTrace=qe}var Tt=I?I.displayName||I.name:"",Zt=Tt?H(Tt):"";return typeof I=="function"&&se.set(I,Zt),Zt}function Ee(I,oe,le){return D(I,!1)}function de(I){var oe=I.prototype;return!!(oe&&oe.isReactComponent)}function Ce(I,oe,le){if(I==null)return"";if(typeof I=="function")return D(I,de(I));if(typeof I=="string")return H(I);switch(I){case d:return H("Suspense");case u:return H("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case c:return Ee(I.render);case m:return Ce(I.type,oe,le);case h:{var Pe=I,qe=Pe._payload,K=Pe._init;try{return Ce(K(qe),oe,le)}catch{}}}return""}var We=Object.prototype.hasOwnProperty,ue={},Me=w.ReactDebugCurrentFrame;function Te(I){if(I){var oe=I._owner,le=Ce(I.type,I._source,oe?oe.type:null);Me.setExtraStackFrame(le)}else Me.setExtraStackFrame(null)}function _e(I,oe,le,Pe,qe){{var K=Function.call.bind(We);for(var V in I)if(K(I,V)){var re=void 0;try{if(typeof I[V]!="function"){var Oe=Error((Pe||"React class")+": "+le+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Oe.name="Invariant Violation",Oe}re=I[V](oe,V,Pe,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){re=we}re&&!(re instanceof Error)&&(Te(qe),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Pe||"React class",le,V,typeof re),Te(null)),re instanceof Error&&!(re.message in ue)&&(ue[re.message]=!0,Te(qe),E("Failed %s type: %s",le,re.message),Te(null))}}}var Be=Array.isArray;function me(I){return Be(I)}function at(I){{var oe=typeof Symbol=="function"&&Symbol.toStringTag,le=oe&&I[Symbol.toStringTag]||I.constructor.name||"Object";return le}}function ze(I){try{return ft(I),!1}catch{return!0}}function ft(I){return""+I}function bt(I){if(ze(I))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",at(I)),ft(I)}var ut=w.ReactCurrentOwner,Ue={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ie;function Se(I){if(We.call(I,"ref")){var oe=Object.getOwnPropertyDescriptor(I,"ref").get;if(oe&&oe.isReactWarning)return!1}return I.ref!==void 0}function Ye(I){if(We.call(I,"key")){var oe=Object.getOwnPropertyDescriptor(I,"key").get;if(oe&&oe.isReactWarning)return!1}return I.key!==void 0}function He(I,oe){typeof I.ref=="string"&&ut.current}function St(I,oe){{var le=function(){Ae||(Ae=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",oe))};le.isReactWarning=!0,Object.defineProperty(I,"key",{get:le,configurable:!0})}}function jt(I,oe){{var le=function(){Ie||(Ie=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",oe))};le.isReactWarning=!0,Object.defineProperty(I,"ref",{get:le,configurable:!0})}}var pe=function(I,oe,le,Pe,qe,K,V){var re={$$typeof:t,type:I,key:oe,ref:le,props:V,_owner:K};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Le(I,oe,le,Pe,qe){{var K,V={},re=null,Oe=null;le!==void 0&&(bt(le),re=""+le),Ye(oe)&&(bt(oe.key),re=""+oe.key),Se(oe)&&(Oe=oe.ref,He(oe,qe));for(K in oe)We.call(oe,K)&&!Ue.hasOwnProperty(K)&&(V[K]=oe[K]);if(I&&I.defaultProps){var we=I.defaultProps;for(K in we)V[K]===void 0&&(V[K]=we[K])}if(re||Oe){var Re=typeof I=="function"?I.displayName||I.name||"Unknown":I;re&&St(V,Re),Oe&&jt(V,Re)}return pe(I,re,Oe,qe,Pe,ut.current,V)}}var Ge=w.ReactCurrentOwner,Pt=w.ReactDebugCurrentFrame;function ie(I){if(I){var oe=I._owner,le=Ce(I.type,I._source,oe?oe.type:null);Pt.setExtraStackFrame(le)}else Pt.setExtraStackFrame(null)}var $e;$e=!1;function he(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function Dt(){{if(Ge.current){var I=M(Ge.current.type);if(I)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+I+"`."}return""}}function Mt(I){return""}var cn={};function eo(I){{var oe=Dt();if(!oe){var le=typeof I=="string"?I:I.displayName||I.name;le&&(oe=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+le+">.")}return oe}}function je(I,oe){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var le=eo(oe);if(cn[le])return;cn[le]=!0;var Pe="";I&&I._owner&&I._owner!==Ge.current&&(Pe=" It was passed a child from "+M(I._owner.type)+"."),ie(I),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,Pe),ie(null)}}function It(I,oe){{if(typeof I!="object")return;if(me(I))for(var le=0;le<I.length;le++){var Pe=I[le];he(Pe)&&je(Pe,oe)}else if(he(I))I._store&&(I._store.validated=!0);else if(I){var qe=C(I);if(typeof qe=="function"&&qe!==I.entries)for(var K=qe.call(I),V;!(V=K.next()).done;)he(V.value)&&je(V.value,oe)}}}function to(I){{var oe=I.type;if(oe==null||typeof oe=="string")return;var le;if(typeof oe=="function")le=oe.propTypes;else if(typeof oe=="object"&&(oe.$$typeof===c||oe.$$typeof===m))le=oe.propTypes;else return;if(le){var Pe=M(oe);_e(le,I.props,"prop",Pe,I)}else if(oe.PropTypes!==void 0&&!$e){$e=!0;var qe=M(oe);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof oe.getDefaultProps=="function"&&!oe.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bn(I){{for(var oe=Object.keys(I.props),le=0;le<oe.length;le++){var Pe=oe[le];if(Pe!=="children"&&Pe!=="key"){ie(I),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Pe),ie(null);break}}I.ref!==null&&(ie(I),E("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}}var no={};function oo(I,oe,le,Pe,qe,K){{var V=b(I);if(!V){var re="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Oe=Mt();Oe?re+=Oe:re+=Dt();var we;I===null?we="null":me(I)?we="array":I!==void 0&&I.$$typeof===t?(we="<"+(M(I.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):we=typeof I,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,re)}var Re=Le(I,oe,le,qe,K);if(Re==null)return Re;if(V){var Ke=oe.children;if(Ke!==void 0)if(Pe)if(me(Ke)){for(var Tt=0;Tt<Ke.length;Tt++)It(Ke[Tt],I);Object.freeze&&Object.freeze(Ke)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else It(Ke,I)}if(We.call(oe,"key")){var Zt=M(I),_t=Object.keys(oe).filter(function(ir){return ir!=="key"}),or=_t.length>0?"{key: someKey, "+_t.join(": ..., ")+": ...}":"{key: someKey}";if(!no[Zt+or]){var rr=_t.length>0?"{"+_t.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
18
26
|
let props = %s;
|
|
19
27
|
<%s {...props} />
|
|
20
28
|
React keys must be passed directly to JSX without using spread:
|
|
21
29
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,q,F,z,F),B[F+q]=!0)}if(F=null,V!==void 0&&(o(V),F=""+V),a(_)&&(o(_.key),F=""+_.key),"key"in _){V={};for(var J in _)J!=="key"&&(V[J]=_[J])}else V=_;return F&&l(V,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,F,V,s(),Y,W)}function h(O){y(O)?O._store&&(O._store.validated=1):typeof O=="object"&&O!==null&&O.$$typeof===N&&(O._payload.status==="fulfilled"?y(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function y(O){return typeof O=="object"&&O!==null&&O.$$typeof===g}var p=D,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),v=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,$=Array.isArray,j=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(O){return O()}};var L,U={},G=p.react_stack_bottom_frame.bind(p,i)(),ee=j(r(i)),B={};hr.Fragment=S,hr.jsx=function(O,_,V){var q=1e4>v.recentlyCreatedOwnerStacks++;return u(O,_,V,!1,q?Error("react-stack-top-frame"):G,q?j(r(O)):ee)},hr.jsxs=function(O,_,V){var q=1e4>v.recentlyCreatedOwnerStacks++;return u(O,_,V,!0,q?Error("react-stack-top-frame"):G,q?j(r(O)):ee)}})()),hr}var Ec;function Qm(){return Ec||(Ec=1,process.env.NODE_ENV==="production"?Ss.exports=Xm():Ss.exports=Jm()),Ss.exports}var m=Qm();const gr={black:"#000",white:"#fff"},Ao={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},_o={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Do={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Lo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},br={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Zm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function _n(e,...t){const o=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>o.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${o} for the full message.`}const xn="$$material";function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ma.apply(null,arguments)}function eh(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]}function th(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var nh=(function(){function e(o){var r=this;this._insertTag=function(s){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,i),r.tags.push(s)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(th(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=eh(s);try{i.insertRule(r,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Dt="-ms-",Ts="-moz-",We="-webkit-",Oc="comm",ha="rule",ga="decl",oh="@import",kc="@keyframes",rh="@layer",sh=Math.abs,Cs=String.fromCharCode,ih=Object.assign;function ah(e,t){return jt(e,0)^45?(((t<<2^jt(e,0))<<2^jt(e,1))<<2^jt(e,2))<<2^jt(e,3):0}function Rc(e){return e.trim()}function lh(e,t){return(e=t.exec(e))?e[0]:e}function Ue(e,t,o){return e.replace(t,o)}function ba(e,t){return e.indexOf(t)}function jt(e,t){return e.charCodeAt(t)|0}function yr(e,t,o){return e.slice(t,o)}function Sn(e){return e.length}function ya(e){return e.length}function ws(e,t){return t.push(e),e}function ch(e,t){return e.map(t).join("")}var Es=1,Fo=1,Pc=0,Wt=0,Tt=0,zo="";function Os(e,t,o,r,s,i,a){return{value:e,root:t,parent:o,type:r,props:s,children:i,line:Es,column:Fo,length:a,return:""}}function vr(e,t){return ih(Os("",null,null,"",null,null,0),e,{length:-e.length},t)}function uh(){return Tt}function dh(){return Tt=Wt>0?jt(zo,--Wt):0,Fo--,Tt===10&&(Fo=1,Es--),Tt}function Gt(){return Tt=Wt<Pc?jt(zo,Wt++):0,Fo++,Tt===10&&(Fo=1,Es++),Tt}function Tn(){return jt(zo,Wt)}function ks(){return Wt}function xr(e,t){return yr(zo,e,t)}function Sr(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 Ic(e){return Es=Fo=1,Pc=Sn(zo=e),Wt=0,[]}function $c(e){return zo="",e}function Rs(e){return Rc(xr(Wt-1,va(e===91?e+2:e===40?e+1:e)))}function ph(e){for(;(Tt=Tn())&&Tt<33;)Gt();return Sr(e)>2||Sr(Tt)>3?"":" "}function fh(e,t){for(;--t&&Gt()&&!(Tt<48||Tt>102||Tt>57&&Tt<65||Tt>70&&Tt<97););return xr(e,ks()+(t<6&&Tn()==32&&Gt()==32))}function va(e){for(;Gt();)switch(Tt){case e:return Wt;case 34:case 39:e!==34&&e!==39&&va(Tt);break;case 40:e===41&&va(e);break;case 92:Gt();break}return Wt}function mh(e,t){for(;Gt()&&e+Tt!==57;)if(e+Tt===84&&Tn()===47)break;return"/*"+xr(t,Wt-1)+"*"+Cs(e===47?e:Gt())}function hh(e){for(;!Sr(Tn());)Gt();return xr(e,Wt)}function gh(e){return $c(Ps("",null,null,null,[""],e=Ic(e),0,[0],e))}function Ps(e,t,o,r,s,i,a,l,c){for(var d=0,u=0,h=a,y=0,p=0,g=0,f=1,S=1,C=1,E=0,T="",w=s,x=i,k=r,R=T;S;)switch(g=E,E=Gt()){case 40:if(g!=108&&jt(R,h-1)==58){ba(R+=Ue(Rs(E),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:R+=Rs(E);break;case 9:case 10:case 13:case 32:R+=ph(g);break;case 92:R+=fh(ks()-1,7);continue;case 47:switch(Tn()){case 42:case 47:ws(bh(mh(Gt(),ks()),t,o),c);break;default:R+="/"}break;case 123*f:l[d++]=Sn(R)*C;case 125*f:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+u:C==-1&&(R=Ue(R,/\f/g,"")),p>0&&Sn(R)-h&&ws(p>32?Nc(R+";",r,o,h-1):Nc(Ue(R," ","")+";",r,o,h-2),c);break;case 59:R+=";";default:if(ws(k=jc(R,t,o,d,u,s,l,T,w=[],x=[],h),i),E===123)if(u===0)Ps(R,t,k,k,w,i,h,l,x);else switch(y===99&&jt(R,3)===110?100:y){case 100:case 108:case 109:case 115:Ps(e,k,k,r&&ws(jc(e,k,k,0,0,s,l,T,s,w=[],h),x),s,x,h,l,r?w:x);break;default:Ps(R,k,k,k,[""],x,0,l,x)}}d=u=p=0,f=C=1,T=R="",h=a;break;case 58:h=1+Sn(R),p=g;default:if(f<1){if(E==123)--f;else if(E==125&&f++==0&&dh()==125)continue}switch(R+=Cs(E),E*f){case 38:C=u>0?1:(R+="\f",-1);break;case 44:l[d++]=(Sn(R)-1)*C,C=1;break;case 64:Tn()===45&&(R+=Rs(Gt())),y=Tn(),u=h=Sn(T=R+=hh(ks())),E++;break;case 45:g===45&&Sn(R)==2&&(f=0)}}return i}function jc(e,t,o,r,s,i,a,l,c,d,u){for(var h=s-1,y=s===0?i:[""],p=ya(y),g=0,f=0,S=0;g<r;++g)for(var C=0,E=yr(e,h+1,h=sh(f=a[g])),T=e;C<p;++C)(T=Rc(f>0?y[C]+" "+E:Ue(E,/&\f/g,y[C])))&&(c[S++]=T);return Os(e,t,o,s===0?ha:l,c,d,u)}function bh(e,t,o){return Os(e,t,o,Oc,Cs(uh()),yr(e,2,-2),0)}function Nc(e,t,o,r){return Os(e,t,o,ga,yr(e,0,r),yr(e,r+1,-1),r)}function Vo(e,t){for(var o="",r=ya(e),s=0;s<r;s++)o+=t(e[s],s,e,t)||"";return o}function yh(e,t,o,r){switch(e.type){case rh:if(e.children.length)break;case oh:case ga:return e.return=e.return||e.value;case Oc:return"";case kc:return e.return=e.value+"{"+Vo(e.children,r)+"}";case ha:e.value=e.props.join(",")}return Sn(o=Vo(e.children,r))?e.return=e.value+"{"+o+"}":""}function vh(e){var t=ya(e);return function(o,r,s,i){for(var a="",l=0;l<t;l++)a+=e[l](o,r,s,i)||"";return a}}function xh(e){return function(t){t.root||(t=t.return)&&e(t)}}function Mc(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var Sh=function(t,o,r){for(var s=0,i=0;s=i,i=Tn(),s===38&&i===12&&(o[r]=1),!Sr(i);)Gt();return xr(t,Wt)},Th=function(t,o){var r=-1,s=44;do switch(Sr(s)){case 0:s===38&&Tn()===12&&(o[r]=1),t[r]+=Sh(Wt-1,o,r);break;case 2:t[r]+=Rs(s);break;case 4:if(s===44){t[++r]=Tn()===58?"&\f":"",o[r]=t[r].length;break}default:t[r]+=Cs(s)}while(s=Gt());return t},Ch=function(t,o){return $c(Th(Ic(t),o))},Ac=new WeakMap,wh=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var o=t.value,r=t.parent,s=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&o.charCodeAt(0)!==58&&!Ac.get(r))&&!s){Ac.set(t,!0);for(var i=[],a=Ch(o,i),l=r.props,c=0,d=0;c<a.length;c++)for(var u=0;u<l.length;u++,d++)t.props[d]=i[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},Eh=function(t){if(t.type==="decl"){var o=t.value;o.charCodeAt(0)===108&&o.charCodeAt(2)===98&&(t.return="",t.value="")}};function _c(e,t){switch(ah(e,t)){case 5103:return We+"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 We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Ts+e+Dt+e+e;case 6828:case 4268:return We+e+Dt+e+e;case 6165:return We+e+Dt+"flex-"+e+e;case 5187:return We+e+Ue(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Dt+"flex-$1$2")+e;case 5443:return We+e+Dt+"flex-item-"+Ue(e,/flex-|-self/,"")+e;case 4675:return We+e+Dt+"flex-line-pack"+Ue(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Dt+Ue(e,"shrink","negative")+e;case 5292:return We+e+Dt+Ue(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ue(e,"-grow","")+We+e+Dt+Ue(e,"grow","positive")+e;case 4554:return We+Ue(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ue(Ue(Ue(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ue(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ue(Ue(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ue(e,/(.+)-inline(.+)/,We+"$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(Sn(e)-1-t>6)switch(jt(e,t+1)){case 109:if(jt(e,t+4)!==45)break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Ts+(jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ba(e,"stretch")?_c(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jt(e,t+1)!==115)break;case 6444:switch(jt(e,Sn(e)-3-(~ba(e,"!important")&&10))){case 107:return Ue(e,":",":"+We)+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(jt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(jt(e,t+11)){case 114:return We+e+Dt+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Dt+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Dt+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Dt+e+e}return e}var Oh=function(t,o,r,s){if(t.length>-1&&!t.return)switch(t.type){case ga:t.return=_c(t.value,t.length);break;case kc:return Vo([vr(t,{value:Ue(t.value,"@","@"+We)})],s);case ha:if(t.length)return ch(t.props,function(i){switch(lh(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vo([vr(t,{props:[Ue(i,/:(read-\w+)/,":"+Ts+"$1")]})],s);case"::placeholder":return Vo([vr(t,{props:[Ue(i,/:(plac\w+)/,":"+We+"input-$1")]}),vr(t,{props:[Ue(i,/:(plac\w+)/,":"+Ts+"$1")]}),vr(t,{props:[Ue(i,/:(plac\w+)/,Dt+"input-$1")]})],s)}return""})}},kh=[Oh],Rh=function(t){var o=t.key;if(o==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var S=f.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var s=t.stylisPlugins||kh,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(f){for(var S=f.getAttribute("data-emotion").split(" "),C=1;C<S.length;C++)i[S[C]]=!0;l.push(f)});var c,d=[wh,Eh];{var u,h=[yh,xh(function(f){u.insert(f)})],y=vh(d.concat(s,h)),p=function(S){return Vo(gh(S),y)};c=function(S,C,E,T){u=E,p(S?S+"{"+C.styles+"}":C.styles),T&&(g.inserted[C.name]=!0)}}var g={key:o,sheet:new nh({key:o,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(l),g},Is={exports:{}},He={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,or,Zt,rr,Zt),no[Zt+or]=!0}}return I===r?Bn(Re):to(Re),Re}}function ci(I,oe,le){return oo(I,oe,le,!0)}function ui(I,oe,le){return oo(I,oe,le,!1)}var di=ui,pi=ci;ar.Fragment=r,ar.jsx=di,ar.jsxs=pi})()),ar}var nc;function Uf(){return nc||(nc=1,process.env.NODE_ENV==="production"?hi.exports=Vf():hi.exports=Wf()),hi.exports}var f=Uf();const lr={black:"#000",white:"#fff"},Po={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},$o={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ro={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},jo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Io={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},cr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Hf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function hn(e,...t){const o=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>o.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${o} for the full message.`}const gn="$$material";function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},gi.apply(null,arguments)}function qf(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]}function Gf(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Yf=(function(){function e(o){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Gf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=qf(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),At="-ms-",bi="-moz-",Xe="-webkit-",oc="comm",Js="rule",Zs="decl",Kf="@import",rc="@keyframes",Xf="@layer",Jf=Math.abs,yi=String.fromCharCode,Zf=Object.assign;function Qf(e,t){return Nt(e,0)^45?(((t<<2^Nt(e,0))<<2^Nt(e,1))<<2^Nt(e,2))<<2^Nt(e,3):0}function ic(e){return e.trim()}function em(e,t){return(e=t.exec(e))?e[0]:e}function Je(e,t,o){return e.replace(t,o)}function Qs(e,t){return e.indexOf(t)}function Nt(e,t){return e.charCodeAt(t)|0}function ur(e,t,o){return e.slice(t,o)}function bn(e){return e.length}function ea(e){return e.length}function vi(e,t){return t.push(e),e}function tm(e,t){return e.map(t).join("")}var xi=1,No=1,sc=0,Ft=0,Et=0,Mo="";function Ci(e,t,o,r,i,s,a){return{value:e,root:t,parent:o,type:r,props:i,children:s,line:xi,column:No,length:a,return:""}}function dr(e,t){return Zf(Ci("",null,null,"",null,null,0),e,{length:-e.length},t)}function nm(){return Et}function om(){return Et=Ft>0?Nt(Mo,--Ft):0,No--,Et===10&&(No=1,xi--),Et}function Wt(){return Et=Ft<sc?Nt(Mo,Ft++):0,No++,Et===10&&(No=1,xi++),Et}function yn(){return Nt(Mo,Ft)}function Si(){return Ft}function pr(e,t){return ur(Mo,e,t)}function fr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ac(e){return xi=No=1,sc=bn(Mo=e),Ft=0,[]}function lc(e){return Mo="",e}function Ti(e){return ic(pr(Ft-1,ta(e===91?e+2:e===40?e+1:e)))}function rm(e){for(;(Et=yn())&&Et<33;)Wt();return fr(e)>2||fr(Et)>3?"":" "}function im(e,t){for(;--t&&Wt()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return pr(e,Si()+(t<6&&yn()==32&&Wt()==32))}function ta(e){for(;Wt();)switch(Et){case e:return Ft;case 34:case 39:e!==34&&e!==39&&ta(Et);break;case 40:e===41&&ta(e);break;case 92:Wt();break}return Ft}function sm(e,t){for(;Wt()&&e+Et!==57;)if(e+Et===84&&yn()===47)break;return"/*"+pr(t,Ft-1)+"*"+yi(e===47?e:Wt())}function am(e){for(;!fr(yn());)Wt();return pr(e,Ft)}function lm(e){return lc(wi("",null,null,null,[""],e=ac(e),0,[0],e))}function wi(e,t,o,r,i,s,a,l,c){for(var d=0,u=0,m=a,h=0,y=0,g=0,p=1,C=1,w=1,E=0,x="",T=i,S=s,P=r,O=x;C;)switch(g=E,E=Wt()){case 40:if(g!=108&&Nt(O,m-1)==58){Qs(O+=Je(Ti(E),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:O+=Ti(E);break;case 9:case 10:case 13:case 32:O+=rm(g);break;case 92:O+=im(Si()-1,7);continue;case 47:switch(yn()){case 42:case 47:vi(cm(sm(Wt(),Si()),t,o),c);break;default:O+="/"}break;case 123*p:l[d++]=bn(O)*w;case 125*p:case 59:case 0:switch(E){case 0:case 125:C=0;case 59+u:w==-1&&(O=Je(O,/\f/g,"")),y>0&&bn(O)-m&&vi(y>32?uc(O+";",r,o,m-1):uc(Je(O," ","")+";",r,o,m-2),c);break;case 59:O+=";";default:if(vi(P=cc(O,t,o,d,u,i,l,x,T=[],S=[],m),s),E===123)if(u===0)wi(O,t,P,P,T,s,m,l,S);else switch(h===99&&Nt(O,3)===110?100:h){case 100:case 108:case 109:case 115:wi(e,P,P,r&&vi(cc(e,P,P,0,0,i,l,x,i,T=[],m),S),i,S,m,l,r?T:S);break;default:wi(O,P,P,P,[""],S,0,l,S)}}d=u=y=0,p=w=1,x=O="",m=a;break;case 58:m=1+bn(O),y=g;default:if(p<1){if(E==123)--p;else if(E==125&&p++==0&&om()==125)continue}switch(O+=yi(E),E*p){case 38:w=u>0?1:(O+="\f",-1);break;case 44:l[d++]=(bn(O)-1)*w,w=1;break;case 64:yn()===45&&(O+=Ti(Wt())),h=yn(),u=m=bn(x=O+=am(Si())),E++;break;case 45:g===45&&bn(O)==2&&(p=0)}}return s}function cc(e,t,o,r,i,s,a,l,c,d,u){for(var m=i-1,h=i===0?s:[""],y=ea(h),g=0,p=0,C=0;g<r;++g)for(var w=0,E=ur(e,m+1,m=Jf(p=a[g])),x=e;w<y;++w)(x=ic(p>0?h[w]+" "+E:Je(E,/&\f/g,h[w])))&&(c[C++]=x);return Ci(e,t,o,i===0?Js:l,c,d,u)}function cm(e,t,o){return Ci(e,t,o,oc,yi(nm()),ur(e,2,-2),0)}function uc(e,t,o,r){return Ci(e,t,o,Zs,ur(e,0,r),ur(e,r+1,-1),r)}function Ao(e,t){for(var o="",r=ea(e),i=0;i<r;i++)o+=t(e[i],i,e,t)||"";return o}function um(e,t,o,r){switch(e.type){case Xf:if(e.children.length)break;case Kf:case Zs:return e.return=e.return||e.value;case oc:return"";case rc:return e.return=e.value+"{"+Ao(e.children,r)+"}";case Js:e.value=e.props.join(",")}return bn(o=Ao(e.children,r))?e.return=e.value+"{"+o+"}":""}function dm(e){var t=ea(e);return function(o,r,i,s){for(var a="",l=0;l<t;l++)a+=e[l](o,r,i,s)||"";return a}}function pm(e){return function(t){t.root||(t=t.return)&&e(t)}}function dc(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var fm=function(t,o,r){for(var i=0,s=0;i=s,s=yn(),i===38&&s===12&&(o[r]=1),!fr(s);)Wt();return pr(t,Ft)},mm=function(t,o){var r=-1,i=44;do switch(fr(i)){case 0:i===38&&yn()===12&&(o[r]=1),t[r]+=fm(Ft-1,o,r);break;case 2:t[r]+=Ti(i);break;case 4:if(i===44){t[++r]=yn()===58?"&\f":"",o[r]=t[r].length;break}default:t[r]+=yi(i)}while(i=Wt());return t},hm=function(t,o){return lc(mm(ac(t),o))},pc=new WeakMap,gm=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var o=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&o.charCodeAt(0)!==58&&!pc.get(r))&&!i){pc.set(t,!0);for(var s=[],a=hm(o,s),l=r.props,c=0,d=0;c<a.length;c++)for(var u=0;u<l.length;u++,d++)t.props[d]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},bm=function(t){if(t.type==="decl"){var o=t.value;o.charCodeAt(0)===108&&o.charCodeAt(2)===98&&(t.return="",t.value="")}};function fc(e,t){switch(Qf(e,t)){case 5103:return Xe+"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 Xe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xe+e+bi+e+At+e+e;case 6828:case 4268:return Xe+e+At+e+e;case 6165:return Xe+e+At+"flex-"+e+e;case 5187:return Xe+e+Je(e,/(\w+).+(:[^]+)/,Xe+"box-$1$2"+At+"flex-$1$2")+e;case 5443:return Xe+e+At+"flex-item-"+Je(e,/flex-|-self/,"")+e;case 4675:return Xe+e+At+"flex-line-pack"+Je(e,/align-content|flex-|-self/,"")+e;case 5548:return Xe+e+At+Je(e,"shrink","negative")+e;case 5292:return Xe+e+At+Je(e,"basis","preferred-size")+e;case 6060:return Xe+"box-"+Je(e,"-grow","")+Xe+e+At+Je(e,"grow","positive")+e;case 4554:return Xe+Je(e,/([^-])(transform)/g,"$1"+Xe+"$2")+e;case 6187:return Je(Je(Je(e,/(zoom-|grab)/,Xe+"$1"),/(image-set)/,Xe+"$1"),e,"")+e;case 5495:case 3959:return Je(e,/(image-set\([^]*)/,Xe+"$1$`$1");case 4968:return Je(Je(e,/(.+:)(flex-)?(.*)/,Xe+"box-pack:$3"+At+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xe+e+e;case 4095:case 3583:case 4068:case 2532:return Je(e,/(.+)-inline(.+)/,Xe+"$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(bn(e)-1-t>6)switch(Nt(e,t+1)){case 109:if(Nt(e,t+4)!==45)break;case 102:return Je(e,/(.+:)(.+)-([^]+)/,"$1"+Xe+"$2-$3$1"+bi+(Nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qs(e,"stretch")?fc(Je(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Nt(e,t+1)!==115)break;case 6444:switch(Nt(e,bn(e)-3-(~Qs(e,"!important")&&10))){case 107:return Je(e,":",":"+Xe)+e;case 101:return Je(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xe+(Nt(e,14)===45?"inline-":"")+"box$3$1"+Xe+"$2$3$1"+At+"$2box$3")+e}break;case 5936:switch(Nt(e,t+11)){case 114:return Xe+e+At+Je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xe+e+At+Je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xe+e+At+Je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xe+e+At+e+e}return e}var ym=function(t,o,r,i){if(t.length>-1&&!t.return)switch(t.type){case Zs:t.return=fc(t.value,t.length);break;case rc:return Ao([dr(t,{value:Je(t.value,"@","@"+Xe)})],i);case Js:if(t.length)return tm(t.props,function(s){switch(em(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ao([dr(t,{props:[Je(s,/:(read-\w+)/,":"+bi+"$1")]})],i);case"::placeholder":return Ao([dr(t,{props:[Je(s,/:(plac\w+)/,":"+Xe+"input-$1")]}),dr(t,{props:[Je(s,/:(plac\w+)/,":"+bi+"$1")]}),dr(t,{props:[Je(s,/:(plac\w+)/,At+"input-$1")]})],i)}return""})}},vm=[ym],xm=function(t){var o=t.key;if(o==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var C=p.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||vm,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(p){for(var C=p.getAttribute("data-emotion").split(" "),w=1;w<C.length;w++)s[C[w]]=!0;l.push(p)});var c,d=[gm,bm];{var u,m=[um,pm(function(p){u.insert(p)})],h=dm(d.concat(i,m)),y=function(C){return Ao(lm(C),h)};c=function(C,w,E,x){u=E,y(C?C+"{"+w.styles+"}":w.styles),x&&(g.inserted[w.name]=!0)}}var g={key:o,sheet:new Yf({key:o,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(l),g},Ei={exports:{}},Qe={};/** @license React v16.13.1
|
|
23
31
|
* react-is.production.min.js
|
|
24
32
|
*
|
|
25
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
34
|
*
|
|
27
35
|
* This source code is licensed under the MIT license found in the
|
|
28
36
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var
|
|
37
|
+
*/var mc;function Cm(){if(mc)return Qe;mc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(S){if(typeof S=="object"&&S!==null){var P=S.$$typeof;switch(P){case t:switch(S=S.type,S){case c:case d:case r:case s:case i:case m:return S;default:switch(S=S&&S.$$typeof,S){case l:case u:case g:case y:case a:return S;default:return P}}case o:return P}}}function T(S){return x(S)===d}return Qe.AsyncMode=c,Qe.ConcurrentMode=d,Qe.ContextConsumer=l,Qe.ContextProvider=a,Qe.Element=t,Qe.ForwardRef=u,Qe.Fragment=r,Qe.Lazy=g,Qe.Memo=y,Qe.Portal=o,Qe.Profiler=s,Qe.StrictMode=i,Qe.Suspense=m,Qe.isAsyncMode=function(S){return T(S)||x(S)===c},Qe.isConcurrentMode=T,Qe.isContextConsumer=function(S){return x(S)===l},Qe.isContextProvider=function(S){return x(S)===a},Qe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Qe.isForwardRef=function(S){return x(S)===u},Qe.isFragment=function(S){return x(S)===r},Qe.isLazy=function(S){return x(S)===g},Qe.isMemo=function(S){return x(S)===y},Qe.isPortal=function(S){return x(S)===o},Qe.isProfiler=function(S){return x(S)===s},Qe.isStrictMode=function(S){return x(S)===i},Qe.isSuspense=function(S){return x(S)===m},Qe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===d||S===s||S===i||S===m||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===y||S.$$typeof===a||S.$$typeof===l||S.$$typeof===u||S.$$typeof===C||S.$$typeof===w||S.$$typeof===E||S.$$typeof===p)},Qe.typeOf=x,Qe}var et={};/** @license React v16.13.1
|
|
30
38
|
* react-is.development.js
|
|
31
39
|
*
|
|
32
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
41
|
*
|
|
34
42
|
* This source code is licensed under the MIT license found in the
|
|
35
43
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var Lc;function Ih(){return Lc||(Lc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function T(H){return typeof H=="string"||typeof H=="function"||H===r||H===d||H===i||H===s||H===h||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===g||H.$$typeof===p||H.$$typeof===a||H.$$typeof===l||H.$$typeof===u||H.$$typeof===S||H.$$typeof===C||H.$$typeof===E||H.$$typeof===f)}function w(H){if(typeof H=="object"&&H!==null){var Se=H.$$typeof;switch(Se){case t:var le=H.type;switch(le){case c:case d:case r:case i:case s:case h:return le;default:var Ce=le&&le.$$typeof;switch(Ce){case l:case u:case g:case p:case a:return Ce;default:return Se}}case o:return Se}}}var x=c,k=d,R=l,P=a,N=t,A=u,I=r,v=g,M=p,$=o,j=i,L=s,U=h,G=!1;function ee(H){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(H)||w(H)===c}function B(H){return w(H)===d}function O(H){return w(H)===l}function _(H){return w(H)===a}function V(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function q(H){return w(H)===u}function Y(H){return w(H)===r}function W(H){return w(H)===g}function F(H){return w(H)===p}function z(H){return w(H)===o}function J(H){return w(H)===i}function oe(H){return w(H)===s}function ce(H){return w(H)===h}qe.AsyncMode=x,qe.ConcurrentMode=k,qe.ContextConsumer=R,qe.ContextProvider=P,qe.Element=N,qe.ForwardRef=A,qe.Fragment=I,qe.Lazy=v,qe.Memo=M,qe.Portal=$,qe.Profiler=j,qe.StrictMode=L,qe.Suspense=U,qe.isAsyncMode=ee,qe.isConcurrentMode=B,qe.isContextConsumer=O,qe.isContextProvider=_,qe.isElement=V,qe.isForwardRef=q,qe.isFragment=Y,qe.isLazy=W,qe.isMemo=F,qe.isPortal=z,qe.isProfiler=J,qe.isStrictMode=oe,qe.isSuspense=ce,qe.isValidElementType=T,qe.typeOf=w})()),qe}var Bc;function $h(){return Bc||(Bc=1,process.env.NODE_ENV==="production"?Is.exports=Ph():Is.exports=Ih()),Is.exports}var xa,Fc;function jh(){if(Fc)return xa;Fc=1;var e=$h(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=s;function a(g){return e.isMemo(g)?s:i[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function p(g,f,S){if(typeof f!="string"){if(y){var C=h(f);C&&C!==y&&p(g,C,S)}var E=c(f);d&&(E=E.concat(d(f)));for(var T=a(g),w=a(f),x=0;x<E.length;++x){var k=E[x];if(!o[k]&&!(S&&S[k])&&!(w&&w[k])&&!(T&&T[k])){var R=u(f,k);try{l(g,k,R)}catch{}}}}return g}return xa=p,xa}jh();var Nh=!0;function zc(e,t,o){var r="";return o.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(r+=s+" ")}),r}var Sa=function(t,o,r){var s=t.key+"-"+o.name;(r===!1||Nh===!1)&&t.registered[s]===void 0&&(t.registered[s]=o.styles)},Ta=function(t,o,r){Sa(t,o,r);var s=t.key+"-"+o.name;if(t.inserted[o.name]===void 0){var i=o;do t.insert(o===i?"."+s:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Mh(e){for(var t=0,o,r=0,s=e.length;s>=4;++r,s-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ah={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,scale: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},_h=/[A-Z]|^ms/g,Dh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vc=function(t){return t.charCodeAt(1)===45},Wc=function(t){return t!=null&&typeof t!="boolean"},Ca=Mc(function(e){return Vc(e)?e:e.replace(_h,"-$&").toLowerCase()}),Uc=function(t,o){switch(t){case"animation":case"animationName":if(typeof o=="string")return o.replace(Dh,function(r,s,i){return Cn={name:s,styles:i,next:Cn},s})}return Ah[t]!==1&&!Vc(t)&&typeof o=="number"&&o!==0?o+"px":o};function Tr(e,t,o){if(o==null)return"";var r=o;if(r.__emotion_styles!==void 0)return r;switch(typeof o){case"boolean":return"";case"object":{var s=o;if(s.anim===1)return Cn={name:s.name,styles:s.styles,next:Cn},s.name;var i=o;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Cn={name:a.name,styles:a.styles,next:Cn},a=a.next;var l=i.styles+";";return l}return Lh(e,t,o)}case"function":{if(e!==void 0){var c=Cn,d=o(e);return Cn=c,Tr(e,t,d)}break}}var u=o;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function Lh(e,t,o){var r="";if(Array.isArray(o))for(var s=0;s<o.length;s++)r+=Tr(e,t,o[s])+";";else for(var i in o){var a=o[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":Wc(l)&&(r+=Ca(i)+":"+Uc(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Wc(a[c])&&(r+=Ca(i)+":"+Uc(i,a[c])+";");else{var d=Tr(e,t,a);switch(i){case"animation":case"animationName":{r+=Ca(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var Hc=/label:\s*([^\s;{]+)\s*(;|$)/g,Cn;function Cr(e,t,o){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,s="";Cn=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,s+=Tr(o,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=Tr(o,t,e[l]),r){var c=i;s+=c[l]}Hc.lastIndex=0;for(var d="",u;(u=Hc.exec(s))!==null;)d+="-"+u[1];var h=Mh(s)+d;return{name:h,styles:s,next:Cn}}var Bh=function(t){return t()},qc=b.useInsertionEffect?b.useInsertionEffect:!1,Gc=qc||Bh,Yc=qc||b.useLayoutEffect,Kc=b.createContext(typeof HTMLElement<"u"?Rh({key:"css"}):null);Kc.Provider;var wa=function(t){return D.forwardRef(function(o,r){var s=D.useContext(Kc);return t(o,s,r)})},wr=b.createContext({}),Ea={}.hasOwnProperty,Oa="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fh=function(t,o){var r={};for(var s in o)Ea.call(o,s)&&(r[s]=o[s]);return r[Oa]=t,r},zh=function(t){var o=t.cache,r=t.serialized,s=t.isStringTag;return Sa(o,r,s),Gc(function(){return Ta(o,r,s)}),null},Vh=wa(function(e,t,o){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var s=e[Oa],i=[r],a="";typeof e.className=="string"?a=zc(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Cr(i,void 0,b.useContext(wr));a+=t.key+"-"+l.name;var c={};for(var d in e)Ea.call(e,d)&&d!=="css"&&d!==Oa&&(c[d]=e[d]);return c.className=a,o&&(c.ref=o),b.createElement(b.Fragment,null,b.createElement(zh,{cache:t,serialized:l,isStringTag:typeof s=="string"}),b.createElement(s,c))}),Wh=Vh,Xc=function(t,o){var r=arguments;if(o==null||!Ea.call(o,"css"))return b.createElement.apply(void 0,r);var s=r.length,i=new Array(s);i[0]=Wh,i[1]=Fh(t,o);for(var a=2;a<s;a++)i[a]=r[a];return b.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Xc||(Xc={}));var Uh=wa(function(e,t){var o=e.styles,r=Cr([o],void 0,b.useContext(wr)),s=b.useRef();return Yc(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),s.current=[a,l],function(){a.flush()}},[t]),Yc(function(){var i=s.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&Ta(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Er(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Cr(t)}function Or(){var e=Er.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_"}}}var Hh=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,qh=Mc(function(e){return Hh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Gh=qh,Yh=function(t){return t!=="theme"},Jc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Gh:Yh},Qc=function(t,o,r){var s;if(o){var i=o.shouldForwardProp;s=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof s!="function"&&r&&(s=t.__emotion_forwardProp),s},Kh=function(t){var o=t.cache,r=t.serialized,s=t.isStringTag;return Sa(o,r,s),Gc(function(){return Ta(o,r,s)}),null},Xh=function e(t,o){var r=t.__emotion_real===t,s=r&&t.__emotion_base||t,i,a;o!==void 0&&(i=o.label,a=o.target);var l=Qc(t,o,r),c=l||Jc(s),d=!c("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var y=u[0];h.push(y[0]);for(var p=u.length,g=1;g<p;g++)h.push(u[g],y[g])}var f=wa(function(S,C,E){var T=d&&S.as||s,w="",x=[],k=S;if(S.theme==null){k={};for(var R in S)k[R]=S[R];k.theme=b.useContext(wr)}typeof S.className=="string"?w=zc(C.registered,x,S.className):S.className!=null&&(w=S.className+" ");var P=Cr(h.concat(x),C.registered,k);w+=C.key+"-"+P.name,a!==void 0&&(w+=" "+a);var N=d&&l===void 0?Jc(T):c,A={};for(var I in S)d&&I==="as"||N(I)&&(A[I]=S[I]);return A.className=w,E&&(A.ref=E),b.createElement(b.Fragment,null,b.createElement(Kh,{cache:C,serialized:P,isStringTag:typeof T=="string"}),b.createElement(T,A))});return f.displayName=i!==void 0?i:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=h,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(S,C){var E=e(S,ma({},o,C,{shouldForwardProp:Qc(f,C,!0)}));return E.apply(void 0,h)},f}},Jh=["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"],ka=Xh.bind(null);Jh.forEach(function(e){ka[e]=ka(e)});var $s={exports:{}},js={exports:{}},Ge={};/** @license React v16.13.1
|
|
44
|
+
*/var hc;function Sm(){return hc||(hc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(D){return typeof D=="string"||typeof D=="function"||D===r||D===d||D===s||D===i||D===m||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===g||D.$$typeof===y||D.$$typeof===a||D.$$typeof===l||D.$$typeof===u||D.$$typeof===C||D.$$typeof===w||D.$$typeof===E||D.$$typeof===p)}function T(D){if(typeof D=="object"&&D!==null){var Ee=D.$$typeof;switch(Ee){case t:var de=D.type;switch(de){case c:case d:case r:case s:case i:case m:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case l:case u:case g:case y:case a:return Ce;default:return Ee}}case o:return Ee}}}var S=c,P=d,O=l,k=a,R=t,b=u,j=r,N=g,M=y,z=o,F=s,L=i,X=m,J=!1;function W(D){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(D)||T(D)===c}function B(D){return T(D)===d}function A(D){return T(D)===l}function Q(D){return T(D)===a}function Y(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function q(D){return T(D)===u}function U(D){return T(D)===r}function _(D){return T(D)===g}function G(D){return T(D)===y}function H(D){return T(D)===o}function ne(D){return T(D)===s}function se(D){return T(D)===i}function ce(D){return T(D)===m}et.AsyncMode=S,et.ConcurrentMode=P,et.ContextConsumer=O,et.ContextProvider=k,et.Element=R,et.ForwardRef=b,et.Fragment=j,et.Lazy=N,et.Memo=M,et.Portal=z,et.Profiler=F,et.StrictMode=L,et.Suspense=X,et.isAsyncMode=W,et.isConcurrentMode=B,et.isContextConsumer=A,et.isContextProvider=Q,et.isElement=Y,et.isForwardRef=q,et.isFragment=U,et.isLazy=_,et.isMemo=G,et.isPortal=H,et.isProfiler=ne,et.isStrictMode=se,et.isSuspense=ce,et.isValidElementType=x,et.typeOf=T})()),et}var gc;function Tm(){return gc||(gc=1,process.env.NODE_ENV==="production"?Ei.exports=Cm():Ei.exports=Sm()),Ei.exports}var na,bc;function wm(){if(bc)return na;bc=1;var e=Tm(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function a(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;function y(g,p,C){if(typeof p!="string"){if(h){var w=m(p);w&&w!==h&&y(g,w,C)}var E=c(p);d&&(E=E.concat(d(p)));for(var x=a(g),T=a(p),S=0;S<E.length;++S){var P=E[S];if(!o[P]&&!(C&&C[P])&&!(T&&T[P])&&!(x&&x[P])){var O=u(p,P);try{l(g,P,O)}catch{}}}}return g}return na=y,na}wm();var Em=!0;function yc(e,t,o){var r="";return o.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var oa=function(t,o,r){var i=t.key+"-"+o.name;(r===!1||Em===!1)&&t.registered[i]===void 0&&(t.registered[i]=o.styles)},ra=function(t,o,r){oa(t,o,r);var i=t.key+"-"+o.name;if(t.inserted[o.name]===void 0){var s=o;do t.insert(o===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Om(e){for(var t=0,o,r=0,i=e.length;i>=4;++r,i-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var km={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,scale: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},Pm=/[A-Z]|^ms/g,$m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vc=function(t){return t.charCodeAt(1)===45},xc=function(t){return t!=null&&typeof t!="boolean"},ia=dc(function(e){return vc(e)?e:e.replace(Pm,"-$&").toLowerCase()}),Cc=function(t,o){switch(t){case"animation":case"animationName":if(typeof o=="string")return o.replace($m,function(r,i,s){return vn={name:i,styles:s,next:vn},i})}return km[t]!==1&&!vc(t)&&typeof o=="number"&&o!==0?o+"px":o};function mr(e,t,o){if(o==null)return"";var r=o;if(r.__emotion_styles!==void 0)return r;switch(typeof o){case"boolean":return"";case"object":{var i=o;if(i.anim===1)return vn={name:i.name,styles:i.styles,next:vn},i.name;var s=o;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)vn={name:a.name,styles:a.styles,next:vn},a=a.next;var l=s.styles+";";return l}return Rm(e,t,o)}case"function":{if(e!==void 0){var c=vn,d=o(e);return vn=c,mr(e,t,d)}break}}var u=o;if(t==null)return u;var m=t[u];return m!==void 0?m:u}function Rm(e,t,o){var r="";if(Array.isArray(o))for(var i=0;i<o.length;i++)r+=mr(e,t,o[i])+";";else for(var s in o){var a=o[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":xc(l)&&(r+=ia(s)+":"+Cc(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)xc(a[c])&&(r+=ia(s)+":"+Cc(s,a[c])+";");else{var d=mr(e,t,a);switch(s){case"animation":case"animationName":{r+=ia(s)+":"+d+";";break}default:r+=s+"{"+d+"}"}}}return r}var Sc=/label:\s*([^\s;{]+)\s*(;|$)/g,vn;function hr(e,t,o){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";vn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=mr(o,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=mr(o,t,e[l]),r){var c=s;i+=c[l]}Sc.lastIndex=0;for(var d="",u;(u=Sc.exec(i))!==null;)d+="-"+u[1];var m=Om(i)+d;return{name:m,styles:i,next:vn}}var jm=function(t){return t()},Tc=v.useInsertionEffect?v.useInsertionEffect:!1,wc=Tc||jm,Ec=Tc||v.useLayoutEffect,Oc=v.createContext(typeof HTMLElement<"u"?xm({key:"css"}):null);Oc.Provider;var sa=function(t){return $.forwardRef(function(o,r){var i=$.useContext(Oc);return t(o,i,r)})},gr=v.createContext({}),aa={}.hasOwnProperty,la="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Im=function(t,o){var r={};for(var i in o)aa.call(o,i)&&(r[i]=o[i]);return r[la]=t,r},Nm=function(t){var o=t.cache,r=t.serialized,i=t.isStringTag;return oa(o,r,i),wc(function(){return ra(o,r,i)}),null},Mm=sa(function(e,t,o){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[la],s=[r],a="";typeof e.className=="string"?a=yc(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=hr(s,void 0,v.useContext(gr));a+=t.key+"-"+l.name;var c={};for(var d in e)aa.call(e,d)&&d!=="css"&&d!==la&&(c[d]=e[d]);return c.className=a,o&&(c.ref=o),v.createElement(v.Fragment,null,v.createElement(Nm,{cache:t,serialized:l,isStringTag:typeof i=="string"}),v.createElement(i,c))}),Am=Mm,kc=function(t,o){var r=arguments;if(o==null||!aa.call(o,"css"))return v.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=Am,s[1]=Im(t,o);for(var a=2;a<i;a++)s[a]=r[a];return v.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(kc||(kc={}));var Dm=sa(function(e,t){var o=e.styles,r=hr([o],void 0,v.useContext(gr)),i=v.useRef();return Ec(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),i.current=[a,l],function(){a.flush()}},[t]),Ec(function(){var s=i.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&ra(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function ca(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return hr(t)}function br(){var e=ca.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_"}}}var _m=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Lm=dc(function(e){return _m.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Bm=Lm,Fm=function(t){return t!=="theme"},Pc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Bm:Fm},$c=function(t,o,r){var i;if(o){var s=o.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},zm=function(t){var o=t.cache,r=t.serialized,i=t.isStringTag;return oa(o,r,i),wc(function(){return ra(o,r,i)}),null},Vm=function e(t,o){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,a;o!==void 0&&(s=o.label,a=o.target);var l=$c(t,o,r),c=l||Pc(i),d=!c("as");return function(){var u=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)m.push.apply(m,u);else{var h=u[0];m.push(h[0]);for(var y=u.length,g=1;g<y;g++)m.push(u[g],h[g])}var p=sa(function(C,w,E){var x=d&&C.as||i,T="",S=[],P=C;if(C.theme==null){P={};for(var O in C)P[O]=C[O];P.theme=v.useContext(gr)}typeof C.className=="string"?T=yc(w.registered,S,C.className):C.className!=null&&(T=C.className+" ");var k=hr(m.concat(S),w.registered,P);T+=w.key+"-"+k.name,a!==void 0&&(T+=" "+a);var R=d&&l===void 0?Pc(x):c,b={};for(var j in C)d&&j==="as"||R(j)&&(b[j]=C[j]);return b.className=T,E&&(b.ref=E),v.createElement(v.Fragment,null,v.createElement(zm,{cache:w,serialized:k,isStringTag:typeof x=="string"}),v.createElement(x,b))});return p.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=i,p.__emotion_styles=m,p.__emotion_forwardProp=l,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(C,w){var E=e(C,gi({},o,w,{shouldForwardProp:$c(p,w,!0)}));return E.apply(void 0,m)},p}},Wm=["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"],ua=Vm.bind(null);Wm.forEach(function(e){ua[e]=ua(e)});var Oi={exports:{}},ki={exports:{}},tt={};/** @license React v16.13.1
|
|
37
45
|
* react-is.production.min.js
|
|
38
46
|
*
|
|
39
47
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
48
|
*
|
|
41
49
|
* This source code is licensed under the MIT license found in the
|
|
42
50
|
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/var
|
|
51
|
+
*/var Rc;function Um(){if(Rc)return tt;Rc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(S){if(typeof S=="object"&&S!==null){var P=S.$$typeof;switch(P){case t:switch(S=S.type,S){case c:case d:case r:case s:case i:case m:return S;default:switch(S=S&&S.$$typeof,S){case l:case u:case g:case y:case a:return S;default:return P}}case o:return P}}}function T(S){return x(S)===d}return tt.AsyncMode=c,tt.ConcurrentMode=d,tt.ContextConsumer=l,tt.ContextProvider=a,tt.Element=t,tt.ForwardRef=u,tt.Fragment=r,tt.Lazy=g,tt.Memo=y,tt.Portal=o,tt.Profiler=s,tt.StrictMode=i,tt.Suspense=m,tt.isAsyncMode=function(S){return T(S)||x(S)===c},tt.isConcurrentMode=T,tt.isContextConsumer=function(S){return x(S)===l},tt.isContextProvider=function(S){return x(S)===a},tt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},tt.isForwardRef=function(S){return x(S)===u},tt.isFragment=function(S){return x(S)===r},tt.isLazy=function(S){return x(S)===g},tt.isMemo=function(S){return x(S)===y},tt.isPortal=function(S){return x(S)===o},tt.isProfiler=function(S){return x(S)===s},tt.isStrictMode=function(S){return x(S)===i},tt.isSuspense=function(S){return x(S)===m},tt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===d||S===s||S===i||S===m||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===y||S.$$typeof===a||S.$$typeof===l||S.$$typeof===u||S.$$typeof===C||S.$$typeof===w||S.$$typeof===E||S.$$typeof===p)},tt.typeOf=x,tt}var nt={};/** @license React v16.13.1
|
|
44
52
|
* react-is.development.js
|
|
45
53
|
*
|
|
46
54
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
55
|
*
|
|
48
56
|
* This source code is licensed under the MIT license found in the
|
|
49
57
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var
|
|
58
|
+
*/var jc;function Hm(){return jc||(jc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(D){return typeof D=="string"||typeof D=="function"||D===r||D===d||D===s||D===i||D===m||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===g||D.$$typeof===y||D.$$typeof===a||D.$$typeof===l||D.$$typeof===u||D.$$typeof===C||D.$$typeof===w||D.$$typeof===E||D.$$typeof===p)}function T(D){if(typeof D=="object"&&D!==null){var Ee=D.$$typeof;switch(Ee){case t:var de=D.type;switch(de){case c:case d:case r:case s:case i:case m:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case l:case u:case g:case y:case a:return Ce;default:return Ee}}case o:return Ee}}}var S=c,P=d,O=l,k=a,R=t,b=u,j=r,N=g,M=y,z=o,F=s,L=i,X=m,J=!1;function W(D){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(D)||T(D)===c}function B(D){return T(D)===d}function A(D){return T(D)===l}function Q(D){return T(D)===a}function Y(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function q(D){return T(D)===u}function U(D){return T(D)===r}function _(D){return T(D)===g}function G(D){return T(D)===y}function H(D){return T(D)===o}function ne(D){return T(D)===s}function se(D){return T(D)===i}function ce(D){return T(D)===m}nt.AsyncMode=S,nt.ConcurrentMode=P,nt.ContextConsumer=O,nt.ContextProvider=k,nt.Element=R,nt.ForwardRef=b,nt.Fragment=j,nt.Lazy=N,nt.Memo=M,nt.Portal=z,nt.Profiler=F,nt.StrictMode=L,nt.Suspense=X,nt.isAsyncMode=W,nt.isConcurrentMode=B,nt.isContextConsumer=A,nt.isContextProvider=Q,nt.isElement=Y,nt.isForwardRef=q,nt.isFragment=U,nt.isLazy=_,nt.isMemo=G,nt.isPortal=H,nt.isProfiler=ne,nt.isStrictMode=se,nt.isSuspense=ce,nt.isValidElementType=x,nt.typeOf=T})()),nt}var Ic;function Nc(){return Ic||(Ic=1,process.env.NODE_ENV==="production"?ki.exports=Um():ki.exports=Hm()),ki.exports}/*
|
|
51
59
|
object-assign
|
|
52
60
|
(c) Sindre Sorhus
|
|
53
61
|
@license MIT
|
|
54
|
-
*/var
|
|
55
|
-
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var
|
|
56
|
-
* @mui/styled-engine
|
|
62
|
+
*/var da,Mc;function qm(){if(Mc)return da;Mc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return da=i()?Object.assign:function(s,a){for(var l,c=r(s),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){d=e(l);for(var h=0;h<d.length;h++)o.call(l,d[h])&&(c[d[h]]=l[d[h]])}}return c},da}var pa,Ac;function fa(){if(Ac)return pa;Ac=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pa=e,pa}var ma,Dc;function _c(){return Dc||(Dc=1,ma=Function.call.bind(Object.prototype.hasOwnProperty)),ma}var ha,Lc;function Gm(){if(Lc)return ha;Lc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=fa(),o={},r=_c();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var m;try{if(typeof s[u]!="function"){var h=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=s[u](a,u,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in o)){o[m.message]=!0;var y=d?d():"";e("Failed "+l+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},ha=i,ha}var ga,Bc;function Ym(){if(Bc)return ga;Bc=1;var e=Nc(),t=qm(),o=fa(),r=_c(),i=Gm(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ga=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function m(B){var A=B&&(d&&B[d]||B[u]);if(typeof A=="function")return A}var h="<<anonymous>>",y={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:E(),arrayOf:x,element:T(),elementType:S(),instanceOf:P,node:b(),objectOf:k,oneOf:O,oneOfType:R,shape:N,exact:M};function g(B,A){return B===A?B!==0||1/B===1/A:B!==B&&A!==A}function p(B,A){this.message=B,this.data=A&&typeof A=="object"?A:{},this.stack=""}p.prototype=Error.prototype;function C(B){if(process.env.NODE_ENV!=="production")var A={},Q=0;function Y(U,_,G,H,ne,se,ce){if(H=H||h,se=se||G,ce!==o){if(c){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=H+":"+G;!A[Ee]&&Q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[Ee]=!0,Q++)}}return _[G]==null?U?_[G]===null?new p("The "+ne+" `"+se+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new p("The "+ne+" `"+se+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:B(_,G,H,ne,se)}var q=Y.bind(null,!1);return q.isRequired=Y.bind(null,!0),q}function w(B){function A(Q,Y,q,U,_,G){var H=Q[Y],ne=L(H);if(ne!==B){var se=X(H);return new p("Invalid "+U+" `"+_+"` of type "+("`"+se+"` supplied to `"+q+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return C(A)}function E(){return C(a)}function x(B){function A(Q,Y,q,U,_){if(typeof B!="function")return new p("Property `"+_+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var G=Q[Y];if(!Array.isArray(G)){var H=L(G);return new p("Invalid "+U+" `"+_+"` of type "+("`"+H+"` supplied to `"+q+"`, expected an array."))}for(var ne=0;ne<G.length;ne++){var se=B(G,ne,q,U,_+"["+ne+"]",o);if(se instanceof Error)return se}return null}return C(A)}function T(){function B(A,Q,Y,q,U){var _=A[Q];if(!l(_)){var G=L(_);return new p("Invalid "+q+" `"+U+"` of type "+("`"+G+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return C(B)}function S(){function B(A,Q,Y,q,U){var _=A[Q];if(!e.isValidElementType(_)){var G=L(_);return new p("Invalid "+q+" `"+U+"` of type "+("`"+G+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return C(B)}function P(B){function A(Q,Y,q,U,_){if(!(Q[Y]instanceof B)){var G=B.name||h,H=W(Q[Y]);return new p("Invalid "+U+" `"+_+"` of type "+("`"+H+"` supplied to `"+q+"`, expected ")+("instance of `"+G+"`."))}return null}return C(A)}function O(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function A(Q,Y,q,U,_){for(var G=Q[Y],H=0;H<B.length;H++)if(g(G,B[H]))return null;var ne=JSON.stringify(B,function(ce,D){var Ee=X(D);return Ee==="symbol"?String(D):D});return new p("Invalid "+U+" `"+_+"` of value `"+String(G)+"` "+("supplied to `"+q+"`, expected one of "+ne+"."))}return C(A)}function k(B){function A(Q,Y,q,U,_){if(typeof B!="function")return new p("Property `"+_+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var G=Q[Y],H=L(G);if(H!=="object")return new p("Invalid "+U+" `"+_+"` of type "+("`"+H+"` supplied to `"+q+"`, expected an object."));for(var ne in G)if(r(G,ne)){var se=B(G,ne,q,U,_+"."+ne,o);if(se instanceof Error)return se}return null}return C(A)}function R(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var A=0;A<B.length;A++){var Q=B[A];if(typeof Q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(Q)+" at index "+A+"."),a}function Y(q,U,_,G,H){for(var ne=[],se=0;se<B.length;se++){var ce=B[se],D=ce(q,U,_,G,H,o);if(D==null)return null;D.data&&r(D.data,"expectedType")&&ne.push(D.data.expectedType)}var Ee=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+G+" `"+H+"` supplied to "+("`"+_+"`"+Ee+"."))}return C(Y)}function b(){function B(A,Q,Y,q,U){return z(A[Q])?null:new p("Invalid "+q+" `"+U+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return C(B)}function j(B,A,Q,Y,q){return new p((B||"React class")+": "+A+" type `"+Q+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function N(B){function A(Q,Y,q,U,_){var G=Q[Y],H=L(G);if(H!=="object")return new p("Invalid "+U+" `"+_+"` of type `"+H+"` "+("supplied to `"+q+"`, expected `object`."));for(var ne in B){var se=B[ne];if(typeof se!="function")return j(q,U,_,ne,X(se));var ce=se(G,ne,q,U,_+"."+ne,o);if(ce)return ce}return null}return C(A)}function M(B){function A(Q,Y,q,U,_){var G=Q[Y],H=L(G);if(H!=="object")return new p("Invalid "+U+" `"+_+"` of type `"+H+"` "+("supplied to `"+q+"`, expected `object`."));var ne=t({},Q[Y],B);for(var se in ne){var ce=B[se];if(r(B,se)&&typeof ce!="function")return j(q,U,_,se,X(ce));if(!ce)return new p("Invalid "+U+" `"+_+"` key `"+se+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(Q[Y],null," ")+`
|
|
63
|
+
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var D=ce(G,se,q,U,_+"."+se,o);if(D)return D}return null}return C(A)}function z(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(z);if(B===null||l(B))return!0;var A=m(B);if(A){var Q=A.call(B),Y;if(A!==B.entries){for(;!(Y=Q.next()).done;)if(!z(Y.value))return!1}else for(;!(Y=Q.next()).done;){var q=Y.value;if(q&&!z(q[1]))return!1}}else return!1;return!0;default:return!1}}function F(B,A){return B==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function L(B){var A=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":F(A,B)?"symbol":A}function X(B){if(typeof B>"u"||B===null)return""+B;var A=L(B);if(A==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return A}function J(B){var A=X(B);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function W(B){return!B.constructor||!B.constructor.name?h:B.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},ga}var ba,Fc;function Km(){if(Fc)return ba;Fc=1;var e=fa();function t(){}function o(){}return o.resetWarningCache=t,ba=function(){function r(a,l,c,d,u,m){if(m!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:o,resetWarningCache:t};return s.PropTypes=s,s},ba}var zc;function Xm(){if(zc)return Oi.exports;if(zc=1,process.env.NODE_ENV!=="production"){var e=Nc(),t=!0;Oi.exports=Ym()(e.isElement,t)}else Oi.exports=Km()();return Oi.exports}var Pi=Xm();const n=Ql(Pi);function Jm(e){return e==null||Object.keys(e).length===0}function ya(e){const{styles:t,defaultTheme:o={}}=e,r=typeof t=="function"?i=>t(Jm(i)?o:i):t;return f.jsx(Dm,{styles:r})}process.env.NODE_ENV!=="production"&&(ya.propTypes={defaultTheme:n.object,styles:n.oneOfType([n.array,n.string,n.object,n.func])});/**
|
|
64
|
+
* @mui/styled-engine v6.5.0
|
|
57
65
|
*
|
|
58
66
|
* @license MIT
|
|
59
67
|
* This source code is licensed under the MIT license found in the
|
|
60
68
|
* LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/function
|
|
62
|
-
`)):r.some(
|
|
69
|
+
*/function Vc(e,t){const o=ua(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
70
|
+
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),o(...r)}:o}function Zm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wc=[];function Fn(e){return Wc[0]=e,hr(Wc)}var $i={exports:{}},rt={};/**
|
|
63
71
|
* @license React
|
|
64
72
|
* react-is.production.js
|
|
65
73
|
*
|
|
@@ -67,7 +75,7 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var H=ce(F,oe,q,Y,W+"."+
|
|
|
67
75
|
*
|
|
68
76
|
* This source code is licensed under the MIT license found in the
|
|
69
77
|
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var
|
|
78
|
+
*/var Uc;function Qm(){if(Uc)return rt;Uc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var C=p.$$typeof;switch(C){case e:switch(p=p.type,p){case o:case i:case r:case c:case d:case h:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case m:case u:return p;case s:return p;default:return C}}case t:return C}}}return rt.ContextConsumer=s,rt.ContextProvider=a,rt.Element=e,rt.ForwardRef=l,rt.Fragment=o,rt.Lazy=m,rt.Memo=u,rt.Portal=t,rt.Profiler=i,rt.StrictMode=r,rt.Suspense=c,rt.SuspenseList=d,rt.isContextConsumer=function(p){return g(p)===s},rt.isContextProvider=function(p){return g(p)===a},rt.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},rt.isForwardRef=function(p){return g(p)===l},rt.isFragment=function(p){return g(p)===o},rt.isLazy=function(p){return g(p)===m},rt.isMemo=function(p){return g(p)===u},rt.isPortal=function(p){return g(p)===t},rt.isProfiler=function(p){return g(p)===i},rt.isStrictMode=function(p){return g(p)===r},rt.isSuspense=function(p){return g(p)===c},rt.isSuspenseList=function(p){return g(p)===d},rt.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===i||p===r||p===c||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===u||p.$$typeof===a||p.$$typeof===s||p.$$typeof===l||p.$$typeof===y||p.getModuleId!==void 0)},rt.typeOf=g,rt}var it={};/**
|
|
71
79
|
* @license React
|
|
72
80
|
* react-is.development.js
|
|
73
81
|
*
|
|
@@ -75,24 +83,27 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var H=ce(F,oe,q,Y,W+"."+
|
|
|
75
83
|
*
|
|
76
84
|
* This source code is licensed under the MIT license found in the
|
|
77
85
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var
|
|
79
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar
|
|
86
|
+
*/var Hc;function eh(){return Hc||(Hc=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var C=p.$$typeof;switch(C){case t:switch(p=p.type,p){case r:case s:case i:case d:case u:case y:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case h:case m:return p;case a:return p;default:return C}}case o:return C}}}var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");it.ContextConsumer=a,it.ContextProvider=l,it.Element=t,it.ForwardRef=c,it.Fragment=r,it.Lazy=h,it.Memo=m,it.Portal=o,it.Profiler=s,it.StrictMode=i,it.Suspense=d,it.SuspenseList=u,it.isContextConsumer=function(p){return e(p)===a},it.isContextProvider=function(p){return e(p)===l},it.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},it.isForwardRef=function(p){return e(p)===c},it.isFragment=function(p){return e(p)===r},it.isLazy=function(p){return e(p)===h},it.isMemo=function(p){return e(p)===m},it.isPortal=function(p){return e(p)===o},it.isProfiler=function(p){return e(p)===s},it.isStrictMode=function(p){return e(p)===i},it.isSuspense=function(p){return e(p)===d},it.isSuspenseList=function(p){return e(p)===u},it.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===s||p===i||p===d||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===m||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},it.typeOf=e})()),it}var qc;function th(){return qc||(qc=1,process.env.NODE_ENV==="production"?$i.exports=Qm():$i.exports=eh()),$i.exports}var zn=th();function xn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gc(e){if(v.isValidElement(e)||zn.isValidElementType(e)||!xn(e))return e;const t={};return Object.keys(e).forEach(o=>{t[o]=Gc(e[o])}),t}function Rt(e,t,o={clone:!0}){const r=o.clone?{...e}:e;return xn(e)&&xn(t)&&Object.keys(t).forEach(i=>{v.isValidElement(t[i])||zn.isValidElementType(t[i])?r[i]=t[i]:xn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&xn(e[i])?r[i]=Rt(e[i],t[i],o):o.clone?r[i]=xn(t[i])?Gc(t[i]):t[i]:r[i]=t[i]}),r}const nh=e=>{const t=Object.keys(e).map(o=>({key:o,val:e[o]}))||[];return t.sort((o,r)=>o.val-r.val),t.reduce((o,r)=>({...o,[r.key]:r.val}),{})};function oh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:r=5,...i}=e,s=nh(t),a=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${o})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${o})`}function d(h,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${o}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${o})`}function u(h){return a.indexOf(h)+1<a.length?d(h,a[a.indexOf(h)+1]):l(h)}function m(h){const y=a.indexOf(h);return y===0?l(a[1]):y===a.length-1?c(a[y]):d(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:c,between:d,only:u,not:m,unit:o,...i}}function Yc(e,t){if(!e.containerQueries)return t;const o=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var a,l;const s=/min-width:\s*([0-9.]+)/;return+(((a=r.match(s))==null?void 0:a[1])||0)-+(((l=i.match(s))==null?void 0:l[1])||0)});return o.length?o.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function rh(e,t){return t==="@"||t.startsWith("@")&&(e.some(o=>t.startsWith(`@${o}`))||!!t.match(/^@\d/))}function ih(e,t){const o=t.match(/^@([^/]+)?\/?(.+)?$/);if(!o){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
87
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:hn(18,`(${t})`));return null}const[,r,i]=o,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function sh(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function o(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},i=s=>(o(r,s),r);return o(i),{...e,containerQueries:i}}const ah={borderRadius:4},Vn=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.string,n.object,n.array]):{};function yr(e,t){return t?Rt(e,t,{clone:!1}):e}const Ri={xs:0,sm:600,md:900,lg:1200,xl:1536},Kc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ri[e]}px)`},lh={containerQueries:e=>({up:t=>{let o=typeof t=="number"?t:Ri[t]||t;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function dn(e,t,o){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Kc;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=o(t[c]),a),{})}if(typeof t=="object"){const s=r.breakpoints||Kc;return Object.keys(t).reduce((a,l)=>{if(rh(s.keys,l)){const c=ih(r.containerQueries?r:lh,l);c&&(a[c]=o(t[l],l))}else if(Object.keys(s.values||Ri).includes(l)){const c=s.up(l);a[c]=o(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return o(t)}function Xc(e={}){var o;return((o=e.keys)==null?void 0:o.reduce((r,i)=>{const s=e.up(i);return r[s]={},r},{}))||{}}function va(e,t){return e.reduce((o,r)=>{const i=o[r];return(!i||Object.keys(i).length===0)&&delete o[r],o},t)}function ch(e,...t){const o=Xc(e),r=[o,...t].reduce((i,s)=>Rt(i,s),{});return va(Object.keys(o),r)}function uh(e,t){if(typeof e!="object")return{};const o={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,s)=>{s<e.length&&(o[i]=!0)}):r.forEach(i=>{e[i]!=null&&(o[i]=!0)}),o}function xa({values:e,breakpoints:t,base:o}){const r=o||uh(e,t),i=Object.keys(r);if(i.length===0)return e;let s;return i.reduce((a,l,c)=>(Array.isArray(e)?(a[l]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[s],s=l):a[l]=e,a),{})}function ee(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":hn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ji(e,t,o=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&o){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ii(e,t,o,r=o){let i;return typeof e=="function"?i=e(o):Array.isArray(e)?i=e[o]||r:i=ji(e,o)||r,t&&(i=t(i,r,e)),i}function wt(e){const{prop:t,cssProperty:o=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,d=ji(c,r)||{};return dn(a,l,m=>{let h=Ii(d,i,m);return m===h&&typeof m=="string"&&(h=Ii(d,i,`${t}${m==="default"?"":ee(m)}`,m)),o===!1?h:{[o]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Vn}:{},s.filterProps=[t],s}function dh(e){const t={};return o=>(t[o]===void 0&&(t[o]=e(o)),t[o])}const ph={m:"margin",p:"padding"},fh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mh=dh(e=>{if(e.length>2)if(Jc[e])e=Jc[e];else return[e];const[t,o]=e.split(""),r=ph[t],i=fh[o]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),Ni=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],hh=[...Ni,...Mi];function vr(e,t,o,r){const i=ji(e,t,!0)??o;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
80
88
|
`)):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(`
|
|
81
|
-
`)));const l=
|
|
82
|
-
`)),()=>{})}function Vs(e){return Rr(e,"spacing",8,"spacing")}function co(e,t){return typeof t=="string"||t==null?t:e(t)}const ku=[""];function Ru(e,t){var i;const o=e.theme??kg,r=((i=o==null?void 0:o.internal_cache)==null?void 0:i.unarySpacing)??Vs(o),s={};for(const a in e){if(!t.has(a))continue;const l=kr[a]??(ku[0]=a,ku),c=e[a];Ds(s,e.theme,c,(d,u)=>{const h=d?s[d]:s;for(let y=0;y<l.length;y+=1)h[l[y]]=co(r,u)})}return s}function Ba(e){return Ru(e,Fs)}Ba.propTypes=process.env.NODE_ENV!=="production"?Array.from(Fs).reduce((e,t)=>(e[t]=Jn,e),{}):{},Ba.filterProps=Fs;const Ct=Ba;function Fa(e){return Ru(e,zs)}Fa.propTypes=process.env.NODE_ENV!=="production"?Array.from(zs).reduce((e,t)=>(e[t]=Jn,e),{}):{},Fa.filterProps=zs;const wt=Fa;process.env.NODE_ENV!=="production"&&Array.from(Rg).reduce((e,t)=>(e[t]=Jn,e),{});function Pu(e=8,t=Vs({spacing:e})){if(e.mui)return e;const o=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return o.mui=!0,o}function Ws(...e){const t=e.reduce((r,s)=>(s.filterProps.forEach(i=>{r[i]=s}),r),{}),o=r=>{const s={};for(const i in r)t[i]&&Uo(s,t[i](r));return s};return o.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,s)=>Object.assign(r,s.propTypes),{}):{},o.filterProps=e.reduce((r,s)=>r.concat(s.filterProps),[]),o}function en(e){return typeof e!="number"?e:`${e}px solid`}function tn(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const Pg=tn("border",en),Ig=tn("borderTop",en),$g=tn("borderRight",en),jg=tn("borderBottom",en),Ng=tn("borderLeft",en),Mg=tn("borderColor"),Ag=tn("borderTopColor"),_g=tn("borderRightColor"),Dg=tn("borderBottomColor"),Lg=tn("borderLeftColor"),Bg=tn("outline",en),Fg=tn("outlineColor"),Us=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rr(e.theme,"shape.borderRadius",4,"borderRadius"),o=r=>({borderRadius:co(t,r)});return Qn(e,e.borderRadius,o)}return null};Us.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Jn}:{},Us.filterProps=["borderRadius"],Ws(Pg,Ig,$g,jg,Ng,Mg,Ag,_g,Dg,Lg,Us,Bg,Fg);const Hs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rr(e.theme,"spacing",8,"gap"),o=r=>({gap:co(t,r)});return Qn(e,e.gap,o)}return null};Hs.propTypes=process.env.NODE_ENV!=="production"?{gap:Jn}:{},Hs.filterProps=["gap"];const qs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rr(e.theme,"spacing",8,"columnGap"),o=r=>({columnGap:co(t,r)});return Qn(e,e.columnGap,o)}return null};qs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Jn}:{},qs.filterProps=["columnGap"];const Gs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rr(e.theme,"spacing",8,"rowGap"),o=r=>({rowGap:co(t,r)});return Qn(e,e.rowGap,o)}return null};Gs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Jn}:{},Gs.filterProps=["rowGap"];const zg=xt({prop:"gridColumn"}),Vg=xt({prop:"gridRow"}),Wg=xt({prop:"gridAutoFlow"}),Ug=xt({prop:"gridAutoColumns"}),Hg=xt({prop:"gridAutoRows"}),qg=xt({prop:"gridTemplateColumns"}),Gg=xt({prop:"gridTemplateRows"}),Yg=xt({prop:"gridTemplateAreas"}),Kg=xt({prop:"gridArea"});Ws(Hs,qs,Gs,zg,Vg,Wg,Ug,Hg,qg,Gg,Yg,Kg);function qo(e,t){return t==="grey"?t:e}const Xg=xt({prop:"color",themeKey:"palette",transform:qo}),Jg=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qo}),Qg=xt({prop:"backgroundColor",themeKey:"palette",transform:qo});Ws(Xg,Jg,Qg);const Zg=As;function Yt(e){return e<=1&&e!==0?`${e*100}%`:e}const eb=xt({prop:"width",transform:Yt}),za=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=o=>{var s,i,a,l,c;const r=((a=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:a[o])||Zg[o];return r?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Yt(o)}};return Qn(e,e.maxWidth,t)}return null};za.filterProps=["maxWidth"];const tb=xt({prop:"minWidth",transform:Yt}),nb=xt({prop:"height",transform:Yt}),ob=xt({prop:"maxHeight",transform:Yt}),rb=xt({prop:"minHeight",transform:Yt});xt({prop:"size",cssProperty:"width",transform:Yt}),xt({prop:"size",cssProperty:"height",transform:Yt});const sb=xt({prop:"boxSizing"});Ws(eb,za,tb,nb,ob,rb,sb);const Ys={border:{themeKey:"borders",transform:en},borderTop:{themeKey:"borders",transform:en},borderRight:{themeKey:"borders",transform:en},borderBottom:{themeKey:"borders",transform:en},borderLeft:{themeKey:"borders",transform:en},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:en},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Us},color:{themeKey:"palette",transform:qo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qo},backgroundColor:{themeKey:"palette",transform:qo},p:{style:wt},pt:{style:wt},pr:{style:wt},pb:{style:wt},pl:{style:wt},px:{style:wt},py:{style:wt},padding:{style:wt},paddingTop:{style:wt},paddingRight:{style:wt},paddingBottom:{style:wt},paddingLeft:{style:wt},paddingX:{style:wt},paddingY:{style:wt},paddingInline:{style:wt},paddingInlineStart:{style:wt},paddingInlineEnd:{style:wt},paddingBlock:{style:wt},paddingBlockStart:{style:wt},paddingBlockEnd:{style:wt},m:{style:Ct},mt:{style:Ct},mr:{style:Ct},mb:{style:Ct},ml:{style:Ct},mx:{style:Ct},my:{style:Ct},margin:{style:Ct},marginTop:{style:Ct},marginRight:{style:Ct},marginBottom:{style:Ct},marginLeft:{style:Ct},marginX:{style:Ct},marginY:{style:Ct},marginInline:{style:Ct},marginInlineStart:{style:Ct},marginInlineEnd:{style:Ct},marginBlock:{style:Ct},marginBlockStart:{style:Ct},marginBlockEnd:{style:Ct},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:Hs},rowGap:{style:Gs},columnGap:{style:qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yt},maxWidth:{style:za},minWidth:{transform:Yt},height:{transform:Yt},maxHeight:{transform:Yt},minHeight:{transform:Yt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ib={};function ab(){function e(t){if(!t.sx)return null;const{sx:o,theme:r=ib,nested:s}=t,i=r.unstable_sxConfig??Ys,a={sx:null,theme:r,nested:!0};function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const u=r.breakpoints??_s,h=Tu(u);for(const y in d){const p=lb(d[y],r);if(p!=null){if(typeof p!="object"){Iu(h,y,p,r,i);continue}if(i[y]){Iu(h,y,p,r,i);continue}Og(u,p)?Ds(h,t.theme,p,(g,f)=>{h[g][y]=f}):(a.sx=p,h[y]=e(a))}}return!s&&r.modularCssLayers?{"@layer sx":vu(r,Da(u,h))}:vu(r,Da(u,h))}return Array.isArray(o)?o.map(l):l(o)}return e.filterProps=["sx"],e}const uo=ab();function Iu(e,t,o,r,s){const i=s[t];if(!i){e[t]=o;return}if(o==null)return;const{themeKey:a}=i;if(a==="typography"&&o==="inherit"){e[t]=o;return}const{style:l}=i;if(l){Uo(e,l({[t]:o,theme:r}));return}const{cssProperty:c=t,transform:d}=i,u=Ls(r,a);Ds(e,r,o,(h,y)=>{const p=Cu(u,d,y,t);c===!1?Uo(h?e[h]:e,p):h?e[h][c]=p:e[c]=p})}function lb(e,t){return typeof e=="function"?e(t):e}function cb(e,t){var r;const o=this;if(o.vars){if(!((r=o.colorSchemes)!=null&&r[e])||typeof o.getColorSchemeSelector!="function")return{};let s=o.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return o.palette.mode===e?t:{}}function Pr(e={},...t){const{breakpoints:o={},palette:r={},spacing:s,shape:i={},...a}=e,l=bu(o),c=Pu(s);let d=Nt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...mg,...i}},a);return d=fg(d),d.applyStyles=cb,d=t.reduce((u,h)=>Nt(u,h),d),d.unstable_sxConfig={...Ys,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(h){return uo({sx:h,theme:this})},d.internal_cache={},d}function ub(e){return Object.keys(e).length===0}function Va(e=null){const t=b.useContext(wr);return!t||ub(t)?e:t}const db=Pr();function Ir(e=db){return Va(e)}function Wa(e){const t=Xn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ua({styles:e,themeId:t,defaultTheme:o={}}){const r=Ir(o),s=t&&r[t]||r;let i=typeof e=="function"?e(s):e;return s.modularCssLayers&&(Array.isArray(i)?i=i.map(a=>Wa(typeof a=="function"?a(s):a)):i=Wa(i)),m.jsx(Aa,{styles:i})}process.env.NODE_ENV!=="production"&&(Ua.propTypes={defaultTheme:n.object,styles:n.oneOfType([n.array,n.func,n.number,n.object,n.string,n.bool]),themeId:n.string});const $u=e=>e,ju=(()=>{let e=$u;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$u}}})();function Nu(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=Nu(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function se(){for(var e,t,o=0,r="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=Nu(e))&&(r&&(r+=" "),r+=t);return r}function pb(e={}){const{themeId:t,defaultTheme:o,defaultClassName:r="MuiBox-root",generateClassName:s}=e,i=du("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(uo);return b.forwardRef(function(c,d){const u=Ir(o),{className:h,component:y="div",...p}=c;return m.jsx(i,{as:y,ref:d,className:se(h,s?s(r):r),theme:t&&u[t]||u,...p})})}const fb={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 he(e,t,o="Mui"){const r=fb[t];return r?`${o}-${r}`:`${ju.generate(e)}-${t}`}function ge(e,t,o="Mui"){const r={};return t.forEach(s=>{r[s]=he(e,s,o)}),r}function Mu(e,t=""){return e.displayName||e.name||t}function Au(e,t,o){const r=Mu(t);return e.displayName||(r!==""?`${o}(${r})`:o)}function mb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Mu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Wo.ForwardRef:return Au(e,e.render,"ForwardRef");case Wo.Memo:return Au(e,e.type,"memo");default:return}}}function _u(e){const{variants:t,...o}=e,r={variants:t,style:Xn(o),isProcessed:!0};return r.style===o||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=Xn(s.style))}),r}const hb=Pr();function Ha(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function po(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gb(e){return e?(t,o)=>o[e]:null}function bb(e,t,o){e.theme=Su(e.theme)?o:e.theme[t]||e.theme}function Ks(e,t,o){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(s=>Ks(e,s,o));if(Array.isArray(r==null?void 0:r.variants)){let s;if(r.isProcessed)s=o?po(r.style,o):r.style;else{const{variants:i,...a}=r;s=o?po(Xn(a),o):a}return Du(e,r.variants,[s],o)}return r!=null&&r.isProcessed?o?po(Xn(r.style),o):r.style:o?po(Xn(r),o):r}function Du(e,t,o=[],r=void 0){var i;let s;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(s))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),o.push(r?po(Xn(l.style(s)),r):l.style(s))):o.push(r?po(Xn(l.style),r):l.style)}return o}function Lu(e={}){const{themeId:t,defaultTheme:o=hb,rootShouldForwardProp:r=Ha,slotShouldForwardProp:s=Ha}=e;function i(l){bb(l,t,o)}return(l,c={})=>{ig(l,k=>k.filter(R=>R!==uo));const{name:d,slot:u,skipVariantsResolver:h,skipSx:y,overridesResolver:p=gb(Bu(u)),...g}=c,f=d&&d.startsWith("Mui")||u?"components":"custom",S=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,C=y||!1;let E=Ha;u==="Root"||u==="root"?E=r:u?E=s:xb(l)&&(E=void 0);const T=du(l,{shouldForwardProp:E,label:vb(d,u),...g}),w=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(P){return Ks(P,k,P.theme.modularCssLayers?f:void 0)};if(Dn(k)){const R=_u(k);return function(N){return R.variants?Ks(N,R,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?po(R.style,f):R.style}}return k},x=(...k)=>{const R=[],P=k.map(w),N=[];if(R.push(i),d&&p&&N.push(function(M){var U,G;const j=(G=(U=M.theme.components)==null?void 0:U[d])==null?void 0:G.styleOverrides;if(!j)return null;const L={};for(const ee in j)L[ee]=Ks(M,j[ee],M.theme.modularCssLayers?"theme":void 0);return p(M,L)}),d&&!S&&N.push(function(M){var L,U;const $=M.theme,j=(U=(L=$==null?void 0:$.components)==null?void 0:L[d])==null?void 0:U.variants;return j?Du(M,j,[],M.theme.modularCssLayers?"theme":void 0):null}),C||N.push(uo),Array.isArray(P[0])){const v=P.shift(),M=new Array(R.length).fill(""),$=new Array(N.length).fill("");let j;j=[...M,...v,...$],j.raw=[...M,...v.raw,...$],R.unshift(j)}const A=[...R,...P,...N],I=T(...A);return l.muiName&&(I.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=yb(d,u,l)),I};return T.withConfig&&(x.withConfig=T.withConfig),x}}function yb(e,t,o){return e?`${e}${ie(t||"")}`:`Styled(${mb(o)})`}function vb(e,t){let o;return process.env.NODE_ENV!=="production"&&e&&(o=`${e}-${Bu(t||"Root")}`),o}function xb(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Fu=Lu();function Go(e,t,o=!1){const r={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const i=s;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)r[i]=a||{};else if(!a)r[i]=l;else{r[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;r[i][d]=Go(a[d],l[d],o)}}}else i==="className"&&o&&t.className!==void 0?r.className=se(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&o&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Sb(e){const{theme:t,name:o,props:r}=e;return!t||!t.components||!t.components[o]||!t.components[o].defaultProps?r:Go(t.components[o].defaultProps,r)}function zu(e){const{props:t,name:o,defaultTheme:r,themeId:s}=e;let i=Ir(r);return s&&(i=i[s]||i),Sb({theme:i,name:o,props:t})}const pt=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Tb(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}function qa(e,t=0,o=1){return process.env.NODE_ENV!=="production"&&(e<t||e>o)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${o}].`),Tb(e,t,o)}function Cb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let o=e.match(t);return o&&o[0].length===1&&(o=o.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),o?`rgb${o.length===4?"a":""}(${o.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Zn(e){if(e.type)return e;if(e.charAt(0)==="#")return Zn(Cb(e));const t=e.indexOf("("),o=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
83
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
84
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
85
|
-
`))
|
|
86
|
-
`))
|
|
87
|
-
`));const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
`)));const l=i[a];return s>=0?l:typeof l=="number"?-l:`-${l}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
90
|
+
`)),()=>{})}function Ai(e){return vr(e,"spacing",8,"spacing")}function io(e,t){return typeof t=="string"||t==null?t:e(t)}function gh(e,t){return o=>e.reduce((r,i)=>(r[i]=io(t,o),r),{})}function bh(e,t,o,r){if(!t.includes(o))return null;const i=mh(o),s=gh(i,r),a=e[o];return dn(e,a,s)}function Zc(e,t){const o=Ai(e.theme);return Object.keys(e).map(r=>bh(e,t,r,o)).reduce(yr,{})}function yt(e){return Zc(e,Ni)}yt.propTypes=process.env.NODE_ENV!=="production"?Ni.reduce((e,t)=>(e[t]=Vn,e),{}):{},yt.filterProps=Ni;function vt(e){return Zc(e,Mi)}vt.propTypes=process.env.NODE_ENV!=="production"?Mi.reduce((e,t)=>(e[t]=Vn,e),{}):{},vt.filterProps=Mi,process.env.NODE_ENV!=="production"&&hh.reduce((e,t)=>(e[t]=Vn,e),{});function Qc(e=8,t=Ai({spacing:e})){if(e.mui)return e;const o=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return o.mui=!0,o}function Di(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),o=r=>Object.keys(r).reduce((i,s)=>t[s]?yr(i,t[s](r)):i,{});return o.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},o.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),o}function Qt(e){return typeof e!="number"?e:`${e}px solid`}function en(e,t){return wt({prop:e,themeKey:"borders",transform:t})}const yh=en("border",Qt),vh=en("borderTop",Qt),xh=en("borderRight",Qt),Ch=en("borderBottom",Qt),Sh=en("borderLeft",Qt),Th=en("borderColor"),wh=en("borderTopColor"),Eh=en("borderRightColor"),Oh=en("borderBottomColor"),kh=en("borderLeftColor"),Ph=en("outline",Qt),$h=en("outlineColor"),_i=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vr(e.theme,"shape.borderRadius",4,"borderRadius"),o=r=>({borderRadius:io(t,r)});return dn(e,e.borderRadius,o)}return null};_i.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vn}:{},_i.filterProps=["borderRadius"],Di(yh,vh,xh,Ch,Sh,Th,wh,Eh,Oh,kh,_i,Ph,$h);const Li=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vr(e.theme,"spacing",8,"gap"),o=r=>({gap:io(t,r)});return dn(e,e.gap,o)}return null};Li.propTypes=process.env.NODE_ENV!=="production"?{gap:Vn}:{},Li.filterProps=["gap"];const Bi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vr(e.theme,"spacing",8,"columnGap"),o=r=>({columnGap:io(t,r)});return dn(e,e.columnGap,o)}return null};Bi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Vn}:{},Bi.filterProps=["columnGap"];const Fi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vr(e.theme,"spacing",8,"rowGap"),o=r=>({rowGap:io(t,r)});return dn(e,e.rowGap,o)}return null};Fi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vn}:{},Fi.filterProps=["rowGap"];const Rh=wt({prop:"gridColumn"}),jh=wt({prop:"gridRow"}),Ih=wt({prop:"gridAutoFlow"}),Nh=wt({prop:"gridAutoColumns"}),Mh=wt({prop:"gridAutoRows"}),Ah=wt({prop:"gridTemplateColumns"}),Dh=wt({prop:"gridTemplateRows"}),_h=wt({prop:"gridTemplateAreas"}),Lh=wt({prop:"gridArea"});Di(Li,Bi,Fi,Rh,jh,Ih,Nh,Mh,Ah,Dh,_h,Lh);function Do(e,t){return t==="grey"?t:e}const Bh=wt({prop:"color",themeKey:"palette",transform:Do}),Fh=wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Do}),zh=wt({prop:"backgroundColor",themeKey:"palette",transform:Do});Di(Bh,Fh,zh);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const Vh=wt({prop:"width",transform:Ut}),Ca=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=o=>{var i,s,a,l,c;const r=((a=(s=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:s.values)==null?void 0:a[o])||Ri[o];return r?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ut(o)}};return dn(e,e.maxWidth,t)}return null};Ca.filterProps=["maxWidth"];const Wh=wt({prop:"minWidth",transform:Ut}),Uh=wt({prop:"height",transform:Ut}),Hh=wt({prop:"maxHeight",transform:Ut}),qh=wt({prop:"minHeight",transform:Ut});wt({prop:"size",cssProperty:"width",transform:Ut}),wt({prop:"size",cssProperty:"height",transform:Ut});const Gh=wt({prop:"boxSizing"});Di(Vh,Ca,Wh,Uh,Hh,qh,Gh);const xr={border:{themeKey:"borders",transform:Qt},borderTop:{themeKey:"borders",transform:Qt},borderRight:{themeKey:"borders",transform:Qt},borderBottom:{themeKey:"borders",transform:Qt},borderLeft:{themeKey:"borders",transform:Qt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_i},color:{themeKey:"palette",transform:Do},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Do},backgroundColor:{themeKey:"palette",transform:Do},p:{style:vt},pt:{style:vt},pr:{style:vt},pb:{style:vt},pl:{style:vt},px:{style:vt},py:{style:vt},padding:{style:vt},paddingTop:{style:vt},paddingRight:{style:vt},paddingBottom:{style:vt},paddingLeft:{style:vt},paddingX:{style:vt},paddingY:{style:vt},paddingInline:{style:vt},paddingInlineStart:{style:vt},paddingInlineEnd:{style:vt},paddingBlock:{style:vt},paddingBlockStart:{style:vt},paddingBlockEnd:{style:vt},m:{style:yt},mt:{style:yt},mr:{style:yt},mb:{style:yt},ml:{style:yt},mx:{style:yt},my:{style:yt},margin:{style:yt},marginTop:{style:yt},marginRight:{style:yt},marginBottom:{style:yt},marginLeft:{style:yt},marginX:{style:yt},marginY:{style:yt},marginInline:{style:yt},marginInlineStart:{style:yt},marginInlineEnd:{style:yt},marginBlock:{style:yt},marginBlockStart:{style:yt},marginBlockEnd:{style:yt},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:Li},rowGap:{style:Fi},columnGap:{style:Bi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ut},maxWidth:{style:Ca},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Yh(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),o=new Set(t);return e.every(r=>o.size===Object.keys(r).length)}function Kh(e,t){return typeof e=="function"?e(t):e}function Xh(){function e(o,r,i,s){const a={[o]:r,theme:i},l=s[o];if(!l)return{[o]:r};const{cssProperty:c=o,themeKey:d,transform:u,style:m}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[o]:r};const h=ji(i,d)||{};return m?m(a):dn(a,r,g=>{let p=Ii(h,u,g);return g===p&&typeof g=="string"&&(p=Ii(h,u,`${o}${g==="default"?"":ee(g)}`,g)),c===!1?p:{[c]:p}})}function t(o){const{sx:r,theme:i={},nested:s}=o||{};if(!r)return null;const a=i.unstable_sxConfig??xr;function l(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const u=Xc(i.breakpoints),m=Object.keys(u);let h=u;return Object.keys(d).forEach(y=>{const g=Kh(d[y],i);if(g!=null)if(typeof g=="object")if(a[y])h=yr(h,e(y,g,i,a));else{const p=dn({theme:i},g,C=>({[y]:C}));Yh(p,g)?h[y]=t({sx:g,theme:i,nested:!0}):h=yr(h,p)}else h=yr(h,e(y,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Yc(i,va(m,h))}:Yc(i,va(m,h))}return Array.isArray(r)?r.map(l):l(r)}return t}const Wn=Xh();Wn.filterProps=["sx"];function Jh(e,t){var r;const o=this;if(o.vars){if(!((r=o.colorSchemes)!=null&&r[e])||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return o.palette.mode===e?t:{}}function Cr(e={},...t){const{breakpoints:o={},palette:r={},spacing:i,shape:s={},...a}=e,l=oh(o),c=Qc(i);let d=Rt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...ah,...s}},a);return d=sh(d),d.applyStyles=Jh,d=t.reduce((u,m)=>Rt(u,m),d),d.unstable_sxConfig={...xr,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(m){return Wn({sx:m,theme:this})},d}function Zh(e){return Object.keys(e).length===0}function Sa(e=null){const t=v.useContext(gr);return!t||Zh(t)?e:t}const Qh=Cr();function Sr(e=Qh){return Sa(e)}function Ta(e){const t=Fn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function wa({styles:e,themeId:t,defaultTheme:o={}}){const r=Sr(o),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Ta(typeof a=="function"?a(i):a)):s=Ta(s)),f.jsx(ya,{styles:s})}process.env.NODE_ENV!=="production"&&(wa.propTypes={defaultTheme:n.object,styles:n.oneOfType([n.array,n.func,n.number,n.object,n.string,n.bool]),themeId:n.string});const eg=e=>{var r;const t={systemProps:{},otherProps:{}},o=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??xr;return Object.keys(e).forEach(i=>{o[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function zi(e){const{sx:t,...o}=e,{systemProps:r,otherProps:i}=eg(o);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return xn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}const eu=e=>e,tu=(()=>{let e=eu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eu}}})();function nu(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(o=nu(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function ae(){for(var e,t,o=0,r="",i=arguments.length;o<i;o++)(e=arguments[o])&&(t=nu(e))&&(r&&(r+=" "),r+=t);return r}function tg(e={}){const{themeId:t,defaultTheme:o,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=Vc("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Wn);return v.forwardRef(function(c,d){const u=Sr(o),{className:m,component:h="div",...y}=zi(c);return f.jsx(s,{as:h,ref:d,className:ae(m,i?i(r):r),theme:t&&u[t]||u,...y})})}const ng={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 ge(e,t,o="Mui"){const r=ng[t];return r?`${o}-${r}`:`${tu.generate(e)}-${t}`}function be(e,t,o="Mui"){const r={};return t.forEach(i=>{r[i]=ge(e,i,o)}),r}function ou(e,t=""){return e.displayName||e.name||t}function ru(e,t,o){const r=ou(t);return e.displayName||(r!==""?`${o}(${r})`:o)}function og(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ou(e,"Component");if(typeof e=="object")switch(e.$$typeof){case zn.ForwardRef:return ru(e,e.render,"ForwardRef");case zn.Memo:return ru(e,e.type,"memo");default:return}}}function iu(e){const{variants:t,...o}=e,r={variants:t,style:Fn(o),isProcessed:!0};return r.style===o||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Fn(i.style))}),r}const rg=Cr();function Ea(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function so(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ig(e){return e?(t,o)=>o[e]:null}function sg(e,t,o){e.theme=cg(e.theme)?o:e.theme[t]||e.theme}function Vi(e,t,o){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Vi(e,i,o));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=o?so(r.style,o):r.style;else{const{variants:s,...a}=r;i=o?so(Fn(a),o):a}return su(e,r.variants,[i],o)}return r!=null&&r.isProcessed?o?so(Fn(r.style),o):r.style:o?so(Fn(r),o):r}function su(e,t,o=[],r=void 0){var s;let i;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(i))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((s=e.ownerState)==null?void 0:s[c])!==l.props[c])continue e;typeof l.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),o.push(r?so(Fn(l.style(i)),r):l.style(i))):o.push(r?so(Fn(l.style),r):l.style)}return o}function au(e={}){const{themeId:t,defaultTheme:o=rg,rootShouldForwardProp:r=Ea,slotShouldForwardProp:i=Ea}=e;function s(l){sg(l,t,o)}return(l,c={})=>{Zm(l,P=>P.filter(O=>O!==Wn));const{name:d,slot:u,skipVariantsResolver:m,skipSx:h,overridesResolver:y=ig(lu(u)),...g}=c,p=d&&d.startsWith("Mui")||u?"components":"custom",C=m!==void 0?m:u&&u!=="Root"&&u!=="root"||!1,w=h||!1;let E=Ea;u==="Root"||u==="root"?E=r:u?E=i:ug(l)&&(E=void 0);const x=Vc(l,{shouldForwardProp:E,label:lg(d,u),...g}),T=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(k){return Vi(k,P,k.theme.modularCssLayers?p:void 0)};if(xn(P)){const O=iu(P);return function(R){return O.variants?Vi(R,O,R.theme.modularCssLayers?p:void 0):R.theme.modularCssLayers?so(O.style,p):O.style}}return P},S=(...P)=>{const O=[],k=P.map(T),R=[];if(O.push(s),d&&y&&R.push(function(M){var X,J;const F=(J=(X=M.theme.components)==null?void 0:X[d])==null?void 0:J.styleOverrides;if(!F)return null;const L={};for(const W in F)L[W]=Vi(M,F[W],M.theme.modularCssLayers?"theme":void 0);return y(M,L)}),d&&!C&&R.push(function(M){var L,X;const z=M.theme,F=(X=(L=z==null?void 0:z.components)==null?void 0:L[d])==null?void 0:X.variants;return F?su(M,F,[],M.theme.modularCssLayers?"theme":void 0):null}),w||R.push(Wn),Array.isArray(k[0])){const N=k.shift(),M=new Array(O.length).fill(""),z=new Array(R.length).fill("");let F;F=[...M,...N,...z],F.raw=[...M,...N.raw,...z],O.unshift(F)}const b=[...O,...k,...R],j=x(...b);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=ag(d,u,l)),j};return x.withConfig&&(S.withConfig=x.withConfig),S}}function ag(e,t,o){return e?`${e}${ee(t||"")}`:`Styled(${og(o)})`}function lg(e,t){let o;return process.env.NODE_ENV!=="production"&&e&&(o=`${e}-${lu(t||"Root")}`),o}function cg(e){for(const t in e)return!1;return!0}function ug(e){return typeof e=="string"&&e.charCodeAt(0)>96}function lu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const cu=au();function _o(e,t){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],a=t[i];if(!a)o[i]=s||{};else if(!s)o[i]=a;else{o[i]={...a};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const c=l;o[i][c]=_o(s[c],a[c])}}}else o[i]===void 0&&(o[i]=e[i])}return o}function dg(e){const{theme:t,name:o,props:r}=e;return!t||!t.components||!t.components[o]||!t.components[o].defaultProps?r:_o(t.components[o].defaultProps,r)}function uu({props:e,name:t,defaultTheme:o,themeId:r}){let i=Sr(o);return r&&(i=i[r]||i),dg({theme:i,name:t,props:e})}const Ht=typeof window<"u"?v.useLayoutEffect:v.useEffect;function pg(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}function Oa(e,t=0,o=1){return process.env.NODE_ENV!=="production"&&(e<t||e>o)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${o}].`),pg(e,t,o)}function fg(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let o=e.match(t);return o&&o[0].length===1&&(o=o.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),o?`rgb${o.length===4?"a":""}(${o.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Un(e){if(e.type)return e;if(e.charAt(0)==="#")return Un(fg(e));const t=e.indexOf("("),o=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
91
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:hn(9,e));let r=e.substring(t+1,e.length-1),i;if(o==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
92
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:hn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:o,values:r,colorSpace:i}}const mg=e=>{const t=Un(e);return t.values.slice(0,3).map((o,r)=>t.type.includes("hsl")&&r!==0?`${o}%`:o).join(" ")},Tr=(e,t)=>{try{return mg(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Wi(e){const{type:t,colorSpace:o}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${o} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function du(e){e=Un(e);const{values:t}=e,o=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(d,u=(d+o/30)%12)=>i-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Wi({type:l,values:c})}function ka(e){e=Un(e);let t=e.type==="hsl"||e.type==="hsla"?Un(du(e)).values:e.values;return t=t.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pu(e,t){const o=ka(e),r=ka(t);return(Math.max(o,r)+.05)/(Math.min(o,r)+.05)}function ke(e,t){return e=Un(e),t=Oa(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wi(e)}function Ui(e,t,o){try{return ke(e,t)}catch{return e}}function wr(e,t){if(e=Un(e),t=Oa(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-t;return Wi(e)}function lt(e,t,o){try{return wr(e,t)}catch{return e}}function Er(e,t){if(e=Un(e),t=Oa(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*t;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*t;return Wi(e)}function ct(e,t,o){try{return Er(e,t)}catch{return e}}function hg(e,t=.15){return ka(e)>.5?wr(e,t):Er(e,t)}function Hi(e,t,o){try{return hg(e,t)}catch{return e}}function tn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function gg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function fu(e,t,o,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!gg(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ao=tn(n.element,fu);ao.isRequired=tn(n.element.isRequired,fu);function bg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function yg(e,t,o,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!bg(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Or=tn(n.elementType,yg),vg="exact-prop: ";function qi(e){return process.env.NODE_ENV==="production"?e:{...e,[vg]:t=>{const o=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return o.length>0?new Error(`The following props are not supported: ${o.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}function Cn(e,t,o,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${o}\`. Expected an HTMLElement.`):null}const Lt=n.oneOfType([n.func,n.object]);function Pa(...e){return e.reduce((t,o)=>o==null?t:function(...i){t.apply(this,i),o.apply(this,i)},()=>{})}function $a(e,t=166){let o;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(o),o=setTimeout(s,t)}return r.clear=()=>{clearTimeout(o)},r}function Lo(e,t){var o,r,i;return v.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(r=(o=e.type)==null?void 0:o._payload)==null?void 0:r.value)==null?void 0:i.muiName))!==-1}function qt(e){return e&&e.ownerDocument||document}function pn(e){return qt(e).defaultView||window}function xg(e,t){if(process.env.NODE_ENV==="production")return()=>null;const o=t?{...t.propTypes}:null;return i=>(s,a,l,c,d,...u)=>{const m=d||a,h=o==null?void 0:o[m];if(h){const y=h(s,a,l,c,d,...u);if(y)return y}return typeof s[a]<"u"&&!s[i]?new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${i}\` prop.`):null}}function Ra(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let mu=0;function Cg(e){const[t,o]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(mu+=1,o(`mui-${mu}`))},[t]),r}const hu={...v}.useId;function In(e){if(hu!==void 0){const t=hu();return e??t}return Cg(e)}function Sg(e,t,o,r,i){if(process.env.NODE_ENV==="production")return null;const s=i||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function Hn({controlled:e,default:t,name:o,state:r="value"}){const{current:i}=v.useRef(e!==void 0),[s,a]=v.useState(t),l=i?e:s;if(process.env.NODE_ENV!=="production"){v.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
|
|
93
|
+
`))},[r,o,e]);const{current:d}=v.useRef(t);v.useEffect(()=>{!i&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
94
|
+
`))},[JSON.stringify(t)])}const c=v.useCallback(d=>{i||a(d)},[]);return[l,c]}function Gt(e){const t=v.useRef(e);return Ht(()=>{t.current=e}),v.useRef((...o)=>(0,t.current)(...o)).current}function mt(...e){const t=v.useRef(void 0),o=v.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s==null?void 0:s())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=o(r))},e)}const gu={};function bu(e,t){const o=v.useRef(gu);return o.current===gu&&(o.current=e(t)),o}const Tg=[];function wg(e){v.useEffect(e,Tg)}class Gi{constructor(){mi(this,"currentId",null);mi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});mi(this,"disposeEffect",()=>this.clear)}static create(){return new Gi}start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,o()},t)}}function lo(){const e=bu(Gi.create).current;return wg(e.disposeEffect),e}function Yi(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
95
|
+
`))}return!1}function yu(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Eg=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function Og(e){return v.Children.toArray(e).filter(t=>v.isValidElement(t))}const kg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Pg(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 e===null?"null":e.constructor.name;default:return t}}function vu(e,t,o,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=Pg(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${o}\`, expected \`integer\`.`)}return null}function xu(e,t,...o){return e[t]===void 0?null:vu(e,t,...o)}function ja(){return null}xu.isRequired=vu,ja.isRequired=ja;const Bo=process.env.NODE_ENV==="production"?ja:xu;function ye(e,t,o=void 0){const r={};for(const i in e){const s=e[i];let a="",l=!0;for(let c=0;c<s.length;c+=1){const d=s[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,o&&o[d]&&(a+=" "+o[d]))}r[i]=a}return r}function $g(e){return typeof e=="string"}function Cu(e,t,o){return e===void 0||$g(e)?t:{...t,ownerState:{...t.ownerState,...o}}}function Su(e,t=[]){if(e===void 0)return{};const o={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{o[r]=e[r]}),o}function Tu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(o=>!(o.match(/^on[A-Z]/)&&typeof e[o]=="function")).forEach(o=>{t[o]=e[o]}),t}function wu(e){const{getSlotProps:t,additionalProps:o,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const y=ae(o==null?void 0:o.className,s,i==null?void 0:i.className,r==null?void 0:r.className),g={...o==null?void 0:o.style,...i==null?void 0:i.style,...r==null?void 0:r.style},p={...o,...i,...r};return y.length>0&&(p.className=y),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=Su({...i,...r}),l=Tu(r),c=Tu(i),d=t(a),u=ae(d==null?void 0:d.className,o==null?void 0:o.className,s,i==null?void 0:i.className,r==null?void 0:r.className),m={...d==null?void 0:d.style,...o==null?void 0:o.style,...i==null?void 0:i.style,...r==null?void 0:r.style},h={...d,...o,...c,...l};return u.length>0&&(h.className=u),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:d.ref}}function Eu(e,t,o){return typeof e=="function"?e(t,o):e}function Ou(e){var m;const{elementType:t,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:Eu(o,r),{props:l,internalRef:c}=wu({...s,externalSlotProps:a}),d=mt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return Cu(t,{...l,ref:d},r)}function co(e){var t;return parseInt(v.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Ia=v.createContext(null);process.env.NODE_ENV!=="production"&&(Ia.displayName="ThemeContext");function Na(){const e=v.useContext(Ia);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e}const Rg=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function jg(e,t){if(typeof t=="function"){const o=t(e);return process.env.NODE_ENV!=="production"&&(o||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
96
|
+
`))),o}return{...e,...t}}function Ki(e){const{children:t,theme:o}=e,r=Na();process.env.NODE_ENV!=="production"&&r===null&&typeof o=="function"&&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(`
|
|
97
|
+
`));const i=v.useMemo(()=>{const s=r===null?{...o}:jg(r,o);return s!=null&&(s[Rg]=r!==null),s},[o,r]);return f.jsx(Ia.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:n.node,theme:n.oneOfType([n.object,n.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Ki.propTypes=qi(Ki.propTypes));const ku=v.createContext();function Pu({value:e,...t}){return f.jsx(ku.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(Pu.propTypes={children:n.node,value:n.bool});const Xi=()=>v.useContext(ku)??!1,$u=v.createContext(void 0);function Ru({value:e,children:t}){return f.jsx($u.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Ru.propTypes={children:n.node,value:n.object});function Ig(e){const{theme:t,name:o,props:r}=e;if(!t||!t.components||!t.components[o])return r;const i=t.components[o];return i.defaultProps?_o(i.defaultProps,r):!i.styleOverrides&&!i.variants?_o(i,r):r}function Ng({props:e,name:t}){const o=v.useContext($u);return Ig({props:e,name:t,theme:{components:o}})}function Mg(e){const t=Sa(),o=In()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?i="":typeof r=="string"?i=r.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,Ht(()=>{var l,c;const s=document.querySelector("head");if(!s)return;const a=s.firstChild;if(i){if(a&&((l=a.hasAttribute)!=null&&l.call(a,"data-mui-layer-order"))&&a.getAttribute("data-mui-layer-order")===o)return;const d=document.createElement("style");d.setAttribute("data-mui-layer-order",o),d.textContent=i,s.prepend(d)}else(c=s.querySelector(`style[data-mui-layer-order="${o}"]`))==null||c.remove()},[i,o]),i?f.jsx(wa,{styles:i}):null}const ju={};function Iu(e,t,o,r=!1){return v.useMemo(()=>{const i=e&&t[e]||t;if(typeof o=="function"){const s=o(i),a=e?{...t,[e]:s}:s;return r?()=>a:a}return e?{...t,[e]:o}:{...t,...o}},[e,t,o,r])}function kr(e){const{children:t,theme:o,themeId:r}=e,i=Sa(ju),s=Na()||ju;process.env.NODE_ENV!=="production"&&(i===null&&typeof o=="function"||r&&i&&!i[r]&&typeof o=="function")&&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(`
|
|
98
|
+
`));const a=Iu(r,i,o),l=Iu(r,s,o,!0),c=(r?a[r]:a).direction==="rtl",d=Mg(a);return f.jsx(Ki,{theme:l,children:f.jsx(gr.Provider,{value:a,children:f.jsx(Pu,{value:c,children:f.jsxs(Ru,{value:r?a[r].components:a.components,children:[d,t]})})})})}process.env.NODE_ENV!=="production"&&(kr.propTypes={children:n.node,theme:n.oneOfType([n.func,n.object]).isRequired,themeId:n.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(kr.propTypes=qi(kr.propTypes));const Nu={theme:void 0};function Ag(e){let t,o;return function(i){let s=t;return(s===void 0||i.theme!==o)&&(Nu.theme=i.theme,s=iu(e(Nu)),t=s,o=i.theme),s}}const Ma="mode",Aa="color-scheme",Dg="data-color-scheme";function _g(e){const{defaultMode:t="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=Ma,colorSchemeStorageKey:s=Aa,attribute:a=Dg,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let d="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);d+=`${l}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
|
|
99
|
+
${l}.classList.add('${h}'.replace('%s', colorScheme));`}const m=u.match(/\[([^\]]+)\]/);if(m){const[h,y]=m[1].split("=");y||(d+=`${l}.removeAttribute('${h}'.replace('%s', light));
|
|
100
|
+
${l}.removeAttribute('${h}'.replace('%s', dark));`),d+=`
|
|
101
|
+
${l}.setAttribute('${h}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else d+=`${l}.setAttribute('${u}', colorScheme);`;return f.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
91
102
|
try {
|
|
92
103
|
let colorScheme = '';
|
|
93
|
-
const mode = localStorage.getItem('${
|
|
94
|
-
const dark = localStorage.getItem('${
|
|
95
|
-
const light = localStorage.getItem('${
|
|
104
|
+
const mode = localStorage.getItem('${i}') || '${t}';
|
|
105
|
+
const dark = localStorage.getItem('${s}-dark') || '${r}';
|
|
106
|
+
const light = localStorage.getItem('${s}-light') || '${o}';
|
|
96
107
|
if (mode === 'system') {
|
|
97
108
|
// handle system mode
|
|
98
109
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
@@ -111,12 +122,12 @@ try {
|
|
|
111
122
|
if (colorScheme) {
|
|
112
123
|
${d}
|
|
113
124
|
}
|
|
114
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function
|
|
115
|
-
`));let
|
|
116
|
-
`)),H(ue)},systemMode:Se}),[F,pe,Ce,le,Be,Re,H,Se,Fe.colorSchemeSelector]);let ae=!0;(v||_.cssVariables===!1||ee&&(U==null?void 0:U.cssVarPrefix)===Y)&&(ae=!1);const bt=m.jsxs(b.Fragment,{children:[m.jsx(jr,{themeId:O?t:void 0,theme:Fe,children:E}),ae&&m.jsx(Aa,{styles:((St=Fe.generateStyleSheets)==null?void 0:St.call(Fe))||[]})]});return ee?bt:m.jsx(d.Provider,{value:tt,children:bt})}process.env.NODE_ENV!=="production"&&(p.propTypes={children:n.node,colorSchemeNode:n.any,colorSchemeStorageKey:n.string,defaultMode:n.string,disableNestedContext:n.bool,disableStyleSheetGeneration:n.bool,disableTransitionOnChange:n.bool,documentNode:n.any,forceThemeRerender:n.bool,modeStorageKey:n.string,noSsr:n.bool,storageManager:n.func,storageWindow:n.any,theme:n.object});const g=typeof a=="string"?a:a.light,f=typeof a=="string"?a:a.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:C=>Ab({colorSchemeStorageKey:s,defaultLightColorScheme:g,defaultDarkColorScheme:f,modeStorageKey:r,...C})}}function Vb(e=""){function t(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${e?`${e}-`:""}${r}${t(...s)})`}const td=(e,t,o,r=[])=>{let s=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(s)?s[Number(i)]=o:s&&typeof s=="object"&&(s[i]=o):s&&typeof s=="object"&&(s[i]||(s[i]=r.includes(i)?[]:{}),s=s[i])})},Wb=(e,t,o)=>{function r(s,i=[],a=[]){Object.entries(s).forEach(([l,c])=>{(!o||o&&!o([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}r(e)},Ub=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Za(e,t){const{prefix:o,shouldSkipGeneratingVar:r}=t||{},s={},i={},a={};return Wb(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${o?`${o}-`:""}${l.join("-")}`,h=Ub(l,c);Object.assign(s,{[u]:h}),td(i,l,`var(${u})`,d),td(a,l,`var(${u}, ${h})`,d)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function Hb(e,t={}){const{getSelector:o=C,disableCssColorScheme:r,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:u,css:h,varsWithDefaults:y}=Za(d,t);let p=y;const g={},{[c]:f,...S}=a;if(Object.entries(S||{}).forEach(([w,x])=>{const{vars:k,css:R,varsWithDefaults:P}=Za(x,t);p=Nt(p,P),g[w]={css:R,vars:k}}),f){const{css:w,vars:x,varsWithDefaults:k}=Za(f,t);p=Nt(p,k),g[c]={css:w,vars:x}}function C(w,x){var R,P;let k=s;if(s==="class"&&(k=".%s"),s==="data"&&(k="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(k=`[${s}="%s"]`),w){if(k==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((P=(R=a[w])==null?void 0:R.palette)==null?void 0:P.mode)||w})`]:{":root":x}};if(k)return e.defaultColorScheme===w?`:root, ${k.replace("%s",String(w))}`:k.replace("%s",String(w))}return":root"}return{vars:p,generateThemeVars:()=>{let w={...u};return Object.entries(g).forEach(([,{vars:x}])=>{w=Nt(w,x)}),w},generateStyleSheets:()=>{var N,A;const w=[],x=e.defaultColorScheme||"light";function k(I,v){Object.keys(v).length&&w.push(typeof I=="string"?{[I]:{...v}}:I)}k(o(void 0,{...h}),h);const{[x]:R,...P}=g;if(R){const{css:I}=R,v=(A=(N=a[x])==null?void 0:N.palette)==null?void 0:A.mode,M=!r&&v?{colorScheme:v,...I}:{...I};k(o(x,{...M}),M)}return Object.entries(P).forEach(([I,{css:v}])=>{var j,L;const M=(L=(j=a[I])==null?void 0:j.palette)==null?void 0:L.mode,$=!r&&M?{colorScheme:M,...v}:{...v};k(o(I,{...$}),$)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function qb(e){return function(o){return e==="media"?(process.env.NODE_ENV!=="production"&&o!=="light"&&o!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${o}'.`),`@media (prefers-color-scheme: ${o})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${o}"] &`:e==="class"?`.${o} &`:e==="data"?`[data-${o}] &`:`${e.replace("%s",o)} &`:"&"}}function be(e,t,o=void 0){const r={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const d=i[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,o&&o[d]&&(a+=" "+o[d]))}r[s]=a}return r}function Nr(e,t){var o,r,s;return b.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(r=(o=e.type)==null?void 0:o._payload)==null?void 0:r.value)==null?void 0:s.muiName))!==-1}const Gb=(e,t)=>e.filter(o=>t.includes(o)),Yo=(e,t,o)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((s,i)=>{o((a,l)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,l):a[e.up(e.keys[i])]=l)},s)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Gb(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&o((l,c)=>{r===i?Object.assign(l,c):l[e.up(i)]=c},a)}}):(typeof t=="number"||typeof t=="string")&&o((s,i)=>{Object.assign(s,i)},t)};function oi(e){return`--Grid-${e}Spacing`}function ri(e){return`--Grid-parent-${e}Spacing`}const nd="--Grid-columns",Ko="--Grid-parent-columns",Yb=({theme:e,ownerState:t})=>{const o={};return Yo(e.breakpoints,t.size,(r,s)=>{let i={};s==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / var(${Ko}) - (var(${Ko}) - ${s}) * (var(${ri("column")}) / var(${Ko})))`}),r(o,i)}),o},Kb=({theme:e,ownerState:t})=>{const o={};return Yo(e.breakpoints,t.offset,(r,s)=>{let i={};s==="auto"&&(i={marginLeft:"auto"}),typeof s=="number"&&(i={marginLeft:s===0?"0px":`calc(100% * ${s} / var(${Ko}) + var(${ri("column")}) * ${s} / var(${Ko}))`}),r(o,i)}),o},Xb=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={[nd]:12};return Yo(e.breakpoints,t.columns,(r,s)=>{const i=s??12;r(o,{[nd]:i,"> *":{[Ko]:i}})}),o},Jb=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return Yo(e.breakpoints,t.rowSpacing,(r,s)=>{var a;const i=typeof s=="string"?s:(a=e.spacing)==null?void 0:a.call(e,s);r(o,{[oi("row")]:i,"> *":{[ri("row")]:i}})}),o},Qb=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return Yo(e.breakpoints,t.columnSpacing,(r,s)=>{var a;const i=typeof s=="string"?s:(a=e.spacing)==null?void 0:a.call(e,s);r(o,{[oi("column")]:i,"> *":{[ri("column")]:i}})}),o},Zb=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return Yo(e.breakpoints,t.direction,(r,s)=>{r(o,{flexDirection:s})}),o},ey=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${oi("row")}) var(${oi("column")})`}}),ty=e=>{const t=[];return Object.entries(e).forEach(([o,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${o}-${String(r)}`)}),t},ny=(e,t="xs")=>{function o(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(o(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([s,i])=>{o(i)&&r.push(`spacing-${s}-${String(i)}`)}),r}return[]},oy=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,o])=>`direction-${t}-${o}`):[`direction-xs-${String(e)}`],ry=Pr(),sy=Fu("div",{name:"MuiGrid",slot:"Root"});function iy(e){return zu({props:e,name:"MuiGrid",defaultTheme:ry})}function ay(e={}){const{createStyledComponent:t=sy,useThemeProps:o=iy,useTheme:r=Ir,componentName:s="MuiGrid"}=e,i=(d,u)=>{const{container:h,direction:y,spacing:p,wrap:g,size:f}=d,S={root:["root",h&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...oy(y),...ty(f),...h?ny(p,u.breakpoints.keys[0]):[]]};return be(S,C=>he(s,C),{})};function a(d,u,h=()=>!0){const y={};return d===null||(Array.isArray(d)?d.forEach((p,g)=>{p!==null&&h(p)&&u.keys[g]&&(y[u.keys[g]]=p)}):typeof d=="object"?Object.keys(d).forEach(p=>{const g=d[p];g!=null&&h(g)&&(y[p]=g)}):y[u.keys[0]]=d),y}const l=t(Xb,Qb,Jb,Yb,Zb,ey,Kb),c=b.forwardRef(function(u,h){const y=r(),g=o(u),{className:f,children:S,columns:C=12,container:E=!1,component:T="div",direction:w="row",wrap:x="wrap",size:k={},offset:R={},spacing:P=0,rowSpacing:N=P,columnSpacing:A=P,unstable_level:I=0,...v}=g,M=a(k,y.breakpoints,O=>O!==!1),$=a(R,y.breakpoints),j=u.columns??(I?void 0:C),L=u.spacing??(I?void 0:P),U=u.rowSpacing??u.spacing??(I?void 0:N),G=u.columnSpacing??u.spacing??(I?void 0:A),ee={...g,level:I,columns:j,container:E,direction:w,wrap:x,spacing:L,rowSpacing:U,columnSpacing:G,size:M,offset:$},B=i(ee,y);return m.jsx(l,{ref:h,as:T,ownerState:ee,className:se(B.root,f),...v,children:b.Children.map(S,O=>{var _;return b.isValidElement(O)&&Nr(O,["Grid"])&&E&&O.props.container?b.cloneElement(O,{unstable_level:((_=O.props)==null?void 0:_.unstable_level)??I+1}):O})})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:n.node,className:n.string,columns:n.oneOfType([n.arrayOf(n.number),n.number,n.object]),columnSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),component:n.elementType,container:n.bool,direction:n.oneOfType([n.oneOf(["column-reverse","column","row-reverse","row"]),n.arrayOf(n.oneOf(["column-reverse","column","row-reverse","row"])),n.object]),offset:n.oneOfType([n.string,n.number,n.arrayOf(n.oneOfType([n.string,n.number])),n.object]),rowSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),size:n.oneOfType([n.string,n.bool,n.number,n.arrayOf(n.oneOfType([n.string,n.bool,n.number])),n.object]),spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),wrap:n.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const ly=Pr(),cy=Fu("div",{name:"MuiStack",slot:"Root"});function uy(e){return zu({props:e,name:"MuiStack",defaultTheme:ly})}function dy(e,t){const o=b.Children.toArray(e).filter(Boolean);return o.reduce((r,s,i)=>(r.push(s),i<o.length-1&&r.push(b.cloneElement(t,{key:`separator-${i}`})),r),[])}const py=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],fy=({ownerState:e,theme:t})=>{let o={display:"flex",flexDirection:"column",...Qn({theme:t},La({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Vs(t),s=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),i=La({values:e.direction,base:s}),a=La({values:e.spacing,base:s});typeof i=="object"&&Object.keys(i).forEach((c,d,u)=>{if(!i[c]){const y=d>0?i[u[d-1]]:"column";i[c]=y}}),o=Nt(o,Qn({theme:t},a,(c,d)=>e.useFlexGap?{gap:co(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${py(d?i[d]:e.direction)}`]:co(r,c)}}))}return o=wg(t.breakpoints,o),o};function my(e={}){const{createStyledComponent:t=cy,useThemeProps:o=uy,componentName:r="MuiStack"}=e,s=()=>be({root:["root"]},c=>he(r,c),{}),i=t(fy),a=b.forwardRef(function(c,d){const u=o(c),{component:h="div",direction:y="column",spacing:p=0,divider:g,children:f,className:S,useFlexGap:C=!1,...E}=u,T={direction:y,spacing:p,useFlexGap:C},w=s();return m.jsx(i,{as:h,ownerState:T,ref:d,className:se(w.root,S),...E,children:g?dy(f,g):f})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:n.node,direction:n.oneOfType([n.oneOf(["column-reverse","column","row-reverse","row"]),n.arrayOf(n.oneOf(["column-reverse","column","row-reverse","row"])),n.object]),divider:n.node,spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])}),a}function od(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:gr.white,default:gr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const rd=od();function sd(){return{text:{primary:gr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:gr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const el=sd();function id(e,t,o,r){const s=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(o)?e[t]=e[o]:t==="light"?e.light=Qs(e.main,s):t==="dark"&&(e.dark=Js(e.main,i)))}function ad(e,t,o,r,s){const i=s.light||s,a=s.dark||s*1.5;t[o]||(t.hasOwnProperty(r)?t[o]=t[r]:o==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:o==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function hy(e="light"){return e==="dark"?{main:Do[200],light:Do[50],dark:Do[400]}:{main:Do[700],light:Do[400],dark:Do[800]}}function gy(e="light"){return e==="dark"?{main:_o[200],light:_o[50],dark:_o[400]}:{main:_o[500],light:_o[300],dark:_o[700]}}function by(e="light"){return e==="dark"?{main:Ao[500],light:Ao[300],dark:Ao[700]}:{main:Ao[700],light:Ao[400],dark:Ao[800]}}function yy(e="light"){return e==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:Lo[700],light:Lo[500],dark:Lo[900]}}function vy(e="light"){return e==="dark"?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[800],light:Bo[500],dark:Bo[900]}}function xy(e="light"){return e==="dark"?{main:br[400],light:br[300],dark:br[700]}:{main:"#ed6c02",light:br[500],dark:br[900]}}function Sy(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tl(e){const{mode:t="light",contrastThreshold:o=3,tonalOffset:r=.2,colorSpace:s,...i}=e,a=e.primary||hy(t),l=e.secondary||gy(t),c=e.error||by(t),d=e.info||yy(t),u=e.success||vy(t),h=e.warning||xy(t);function y(S){if(s)return Sy(S);const C=Wu(S,el.text.primary)>=o?el.text.primary:rd.text.primary;if(process.env.NODE_ENV!=="production"){const E=Wu(S,C);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${C} on ${S}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
117
|
-
`))}return C}const
|
|
118
|
-
The color object needs to have a \`main\` property or a \`${
|
|
119
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
125
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function Lg(){}const Bg=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(o){if(typeof window>"u")return;if(!t)return o;let r;try{r=t.localStorage.getItem(e)}catch{}return r||o},set:o=>{if(t)try{t.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!t)return Lg;const r=i=>{const s=i.newValue;i.key===e&&o(s)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Da(){}function Mu(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Au(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Fg(e){return Au(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function zg(e){const{defaultMode:t="light",defaultLightColorScheme:o,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:s=Ma,colorSchemeStorageKey:a=Aa,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=Bg,noSsr:d=!1}=e,u=i.join(","),m=i.length>1,h=v.useMemo(()=>c==null?void 0:c({key:s,storageWindow:l}),[c,s,l]),y=v.useMemo(()=>c==null?void 0:c({key:`${a}-light`,storageWindow:l}),[c,a,l]),g=v.useMemo(()=>c==null?void 0:c({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[p,C]=v.useState(()=>{const k=(h==null?void 0:h.get(t))||t,R=(y==null?void 0:y.get(o))||o,b=(g==null?void 0:g.get(r))||r;return{mode:k,systemMode:Mu(k),lightColorScheme:R,darkColorScheme:b}}),[w,E]=v.useState(d||!m);v.useEffect(()=>{E(!0)},[]);const x=Fg(p),T=v.useCallback(k=>{C(R=>{if(k===R.mode)return R;const b=k??t;return h==null||h.set(b),{...R,mode:b,systemMode:Mu(b)}})},[h,t]),S=v.useCallback(k=>{k?typeof k=="string"?k&&!u.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):C(R=>{const b={...R};return Au(R,j=>{j==="light"&&(y==null||y.set(k),b.lightColorScheme=k),j==="dark"&&(g==null||g.set(k),b.darkColorScheme=k)}),b}):C(R=>{const b={...R},j=k.light===null?o:k.light,N=k.dark===null?r:k.dark;return j&&(u.includes(j)?(b.lightColorScheme=j,y==null||y.set(j)):console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`)),N&&(u.includes(N)?(b.darkColorScheme=N,g==null||g.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),b}):C(R=>(y==null||y.set(o),g==null||g.set(r),{...R,lightColorScheme:o,darkColorScheme:r}))},[u,y,g,o,r]),P=v.useCallback(k=>{p.mode==="system"&&C(R=>{const b=k!=null&&k.matches?"dark":"light";return R.systemMode===b?R:{...R,systemMode:b}})},[p.mode]),O=v.useRef(P);return O.current=P,v.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const k=(...b)=>O.current(...b),R=window.matchMedia("(prefers-color-scheme: dark)");return R.addListener(k),k(R),()=>{R.removeListener(k)}},[m]),v.useEffect(()=>{if(m){const k=(h==null?void 0:h.subscribe(j=>{(!j||["light","dark","system"].includes(j))&&T(j||t)}))||Da,R=(y==null?void 0:y.subscribe(j=>{(!j||u.match(j))&&S({light:j})}))||Da,b=(g==null?void 0:g.subscribe(j=>{(!j||u.match(j))&&S({dark:j})}))||Da;return()=>{k(),R(),b()}}},[S,T,u,t,l,m,h,y,g]),{...p,mode:w?p.mode:void 0,systemMode:w?p.systemMode:void 0,colorScheme:w?x:void 0,setMode:T,setColorScheme:S}}const Vg="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Wg(e){const{themeId:t,theme:o={},modeStorageKey:r=Ma,colorSchemeStorageKey:i=Aa,disableTransitionOnChange:s=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(d.displayName="ColorSchemeContext");const u=()=>v.useContext(d)||c,m={},h={};function y(w){var ze,ft,bt,ut;const{children:E,theme:x,modeStorageKey:T=r,colorSchemeStorageKey:S=i,disableTransitionOnChange:P=s,storageManager:O,storageWindow:k=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:b=typeof document>"u"?void 0:document.documentElement,disableNestedContext:j=!1,disableStyleSheetGeneration:N=!1,defaultMode:M="system",noSsr:z}=w,F=v.useRef(!1),L=Na(),X=v.useContext(d),J=!!X&&!j,W=v.useMemo(()=>x||(typeof o=="function"?o():o),[x]),B=W[t],A=B||W,{colorSchemes:Q=m,components:Y=h,cssVarPrefix:q}=A,U=Object.keys(Q).filter(Ue=>!!Q[Ue]).join(","),_=v.useMemo(()=>U.split(","),[U]),G=typeof a=="string"?a:a.light,H=typeof a=="string"?a:a.dark,ne=Q[G]&&Q[H]?M:((ft=(ze=Q[A.defaultColorScheme])==null?void 0:ze.palette)==null?void 0:ft.mode)||((bt=A.palette)==null?void 0:bt.mode),{mode:se,setMode:ce,systemMode:D,lightColorScheme:Ee,darkColorScheme:de,colorScheme:Ce,setColorScheme:We}=zg({supportedColorSchemes:_,defaultLightColorScheme:G,defaultDarkColorScheme:H,modeStorageKey:T,colorSchemeStorageKey:S,defaultMode:ne,storageManager:O,storageWindow:k,noSsr:z});let ue=se,Me=Ce;J&&(ue=X.mode,Me=X.colorScheme);const Te=v.useMemo(()=>{var Se;const Ue=Me||A.defaultColorScheme,Ae=((Se=A.generateThemeVars)==null?void 0:Se.call(A))||A.vars,Ie={...A,components:Y,colorSchemes:Q,cssVarPrefix:q,vars:Ae};if(typeof Ie.generateSpacing=="function"&&(Ie.spacing=Ie.generateSpacing()),Ue){const Ye=Q[Ue];Ye&&typeof Ye=="object"&&Object.keys(Ye).forEach(He=>{Ye[He]&&typeof Ye[He]=="object"?Ie[He]={...Ie[He],...Ye[He]}:Ie[He]=Ye[He]})}return l?l(Ie):Ie},[A,Me,Y,Q,q]),_e=A.colorSchemeSelector;Ht(()=>{if(Me&&b&&_e&&_e!=="media"){const Ue=_e;let Ae=_e;if(Ue==="class"&&(Ae=".%s"),Ue==="data"&&(Ae="[data-%s]"),Ue!=null&&Ue.startsWith("data-")&&!Ue.includes("%s")&&(Ae=`[${Ue}="%s"]`),Ae.startsWith("."))b.classList.remove(..._.map(Ie=>Ae.substring(1).replace("%s",Ie))),b.classList.add(Ae.substring(1).replace("%s",Me));else{const Ie=Ae.replace("%s",Me).match(/\[([^\]]+)\]/);if(Ie){const[Se,Ye]=Ie[1].split("=");Ye||_.forEach(He=>{b.removeAttribute(Se.replace(Me,He))}),b.setAttribute(Se,Ye?Ye.replace(/"|'/g,""):"")}else b.setAttribute(Ae,Me)}}},[Me,_e,b,_]),v.useEffect(()=>{let Ue;if(P&&F.current&&R){const Ae=R.createElement("style");Ae.appendChild(R.createTextNode(Vg)),R.head.appendChild(Ae),window.getComputedStyle(R.body),Ue=setTimeout(()=>{R.head.removeChild(Ae)},1)}return()=>{clearTimeout(Ue)}},[Me,P,R]),v.useEffect(()=>(F.current=!0,()=>{F.current=!1}),[]);const Be=v.useMemo(()=>({allColorSchemes:_,colorScheme:Me,darkColorScheme:de,lightColorScheme:Ee,mode:ue,setColorScheme:We,setMode:process.env.NODE_ENV==="production"?ce:Ue=>{Te.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
126
|
+
`)),ce(Ue)},systemMode:D}),[_,Me,de,Ee,ue,We,ce,D,Te.colorSchemeSelector]);let me=!0;(N||A.cssVariables===!1||J&&(L==null?void 0:L.cssVarPrefix)===q)&&(me=!1);const at=f.jsxs(v.Fragment,{children:[f.jsx(kr,{themeId:B?t:void 0,theme:Te,children:E}),me&&f.jsx(ya,{styles:((ut=Te.generateStyleSheets)==null?void 0:ut.call(Te))||[]})]});return J?at:f.jsx(d.Provider,{value:Be,children:at})}process.env.NODE_ENV!=="production"&&(y.propTypes={children:n.node,colorSchemeNode:n.any,colorSchemeStorageKey:n.string,defaultMode:n.string,disableNestedContext:n.bool,disableStyleSheetGeneration:n.bool,disableTransitionOnChange:n.bool,documentNode:n.any,modeStorageKey:n.string,noSsr:n.bool,storageManager:n.func,storageWindow:n.any,theme:n.object});const g=typeof a=="string"?a:a.light,p=typeof a=="string"?a:a.dark;return{CssVarsProvider:y,useColorScheme:u,getInitColorSchemeScript:w=>_g({colorSchemeStorageKey:i,defaultLightColorScheme:g,defaultDarkColorScheme:p,modeStorageKey:r,...w})}}function Ug(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Du=(e,t,o,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=o:i&&typeof i=="object"&&(i[s]=o):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},Hg=(e,t,o)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([l,c])=>{(!o||o&&!o([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}r(e)},qg=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function _a(e,t){const{prefix:o,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return Hg(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${o?`${o}-`:""}${l.join("-")}`,m=qg(l,c);Object.assign(i,{[u]:m}),Du(s,l,`var(${u})`,d),Du(a,l,`var(${u}, ${m})`,d)}},l=>l[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function Gg(e,t={}){const{getSelector:o=C,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...c}=e,{vars:d,css:u,varsWithDefaults:m}=_a(c,t);let h=m;const y={},{[l]:g,...p}=s;if(Object.entries(p||{}).forEach(([x,T])=>{const{vars:S,css:P,varsWithDefaults:O}=_a(T,t);h=Rt(h,O),y[x]={css:P,vars:S}}),g){const{css:x,vars:T,varsWithDefaults:S}=_a(g,t);h=Rt(h,S),y[l]={css:x,vars:T}}function C(x,T){var P,O;let S=i;if(i==="class"&&(S=".%s"),i==="data"&&(S="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(S=`[${i}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${((O=(P=s[x])==null?void 0:P.palette)==null?void 0:O.mode)||x})`]:{":root":T}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:h,generateThemeVars:()=>{let x={...d};return Object.entries(y).forEach(([,{vars:T}])=>{x=Rt(x,T)}),x},generateStyleSheets:()=>{var k,R;const x=[],T=e.defaultColorScheme||"light";function S(b,j){Object.keys(j).length&&x.push(typeof b=="string"?{[b]:{...j}}:b)}S(o(void 0,{...u}),u);const{[T]:P,...O}=y;if(P){const{css:b}=P,j=(R=(k=s[T])==null?void 0:k.palette)==null?void 0:R.mode,N=!r&&j?{colorScheme:j,...b}:{...b};S(o(T,{...N}),N)}return Object.entries(O).forEach(([b,{css:j}])=>{var z,F;const N=(F=(z=s[b])==null?void 0:z.palette)==null?void 0:F.mode,M=!r&&N?{colorScheme:N,...j}:{...j};S(o(b,{...M}),M)}),x}}}function Yg(e){return function(o){return e==="media"?(process.env.NODE_ENV!=="production"&&o!=="light"&&o!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${o}'.`),`@media (prefers-color-scheme: ${o})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${o}"] &`:e==="class"?`.${o} &`:e==="data"?`[data-${o}] &`:`${e.replace("%s",o)} &`:"&"}}const Kg=(e,t)=>e.filter(o=>t.includes(o)),Fo=(e,t,o)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((i,s)=>{o((a,l)=>{s<=e.keys.length-1&&(s===0?Object.assign(a,l):a[e.up(e.keys[s])]=l)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Kg(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const a=t[s];a!==void 0&&o((l,c)=>{r===s?Object.assign(l,c):l[e.up(s)]=c},a)}}):(typeof t=="number"||typeof t=="string")&&o((i,s)=>{Object.assign(i,s)},t)};function Ji(e){return`--Grid-${e}Spacing`}function Zi(e){return`--Grid-parent-${e}Spacing`}const _u="--Grid-columns",zo="--Grid-parent-columns",Xg=({theme:e,ownerState:t})=>{const o={};return Fo(e.breakpoints,t.size,(r,i)=>{let s={};i==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / var(${zo}) - (var(${zo}) - ${i}) * (var(${Zi("column")}) / var(${zo})))`}),r(o,s)}),o},Jg=({theme:e,ownerState:t})=>{const o={};return Fo(e.breakpoints,t.offset,(r,i)=>{let s={};i==="auto"&&(s={marginLeft:"auto"}),typeof i=="number"&&(s={marginLeft:i===0?"0px":`calc(100% * ${i} / var(${zo}) + var(${Zi("column")}) * ${i} / var(${zo}))`}),r(o,s)}),o},Zg=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={[_u]:12};return Fo(e.breakpoints,t.columns,(r,i)=>{const s=i??12;r(o,{[_u]:s,"> *":{[zo]:s}})}),o},Qg=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return Fo(e.breakpoints,t.rowSpacing,(r,i)=>{var a;const s=typeof i=="string"?i:(a=e.spacing)==null?void 0:a.call(e,i);r(o,{[Ji("row")]:s,"> *":{[Zi("row")]:s}})}),o},eb=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return Fo(e.breakpoints,t.columnSpacing,(r,i)=>{var a;const s=typeof i=="string"?i:(a=e.spacing)==null?void 0:a.call(e,i);r(o,{[Ji("column")]:s,"> *":{[Zi("column")]:s}})}),o},tb=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return Fo(e.breakpoints,t.direction,(r,i)=>{r(o,{flexDirection:i})}),o},nb=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Ji("row")}) var(${Ji("column")})`}}),ob=e=>{const t=[];return Object.entries(e).forEach(([o,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${o}-${String(r)}`)}),t},rb=(e,t="xs")=>{function o(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(o(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([i,s])=>{o(s)&&r.push(`spacing-${i}-${String(s)}`)}),r}return[]},ib=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,o])=>`direction-${t}-${o}`):[`direction-xs-${String(e)}`],sb=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://v6.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,Lu=[];function ab(e,t){const o=[];e.item!==void 0&&(delete e.item,o.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,o.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(o.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&o.forEach(r=>{Lu.includes(r)||(Lu.push(r),console.warn(`MUI Grid2: ${sb(r)}
|
|
127
|
+
`))})}const lb=Cr(),cb=cu("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function ub(e){return uu({props:e,name:"MuiGrid",defaultTheme:lb})}function db(e={}){const{createStyledComponent:t=cb,useThemeProps:o=ub,useTheme:r=Sr,componentName:i="MuiGrid"}=e,s=(d,u)=>{const{container:m,direction:h,spacing:y,wrap:g,size:p}=d,C={root:["root",m&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...ib(h),...ob(p),...m?rb(y,u.breakpoints.keys[0]):[]]};return ye(C,w=>ge(i,w),{})};function a(d,u,m=()=>!0){const h={};return d===null||(Array.isArray(d)?d.forEach((y,g)=>{y!==null&&m(y)&&u.keys[g]&&(h[u.keys[g]]=y)}):typeof d=="object"?Object.keys(d).forEach(y=>{const g=d[y];g!=null&&m(g)&&(h[y]=g)}):h[u.keys[0]]=d),h}const l=t(Zg,eb,Qg,Xg,tb,nb,Jg),c=v.forwardRef(function(u,m){const h=r(),y=o(u),g=zi(y);ab(g,h.breakpoints);const{className:p,children:C,columns:w=12,container:E=!1,component:x="div",direction:T="row",wrap:S="wrap",size:P={},offset:O={},spacing:k=0,rowSpacing:R=k,columnSpacing:b=k,unstable_level:j=0,...N}=g,M=a(P,h.breakpoints,A=>A!==!1),z=a(O,h.breakpoints),F=u.columns??(j?void 0:w),L=u.spacing??(j?void 0:k),X=u.rowSpacing??u.spacing??(j?void 0:R),J=u.columnSpacing??u.spacing??(j?void 0:b),W={...g,level:j,columns:F,container:E,direction:T,wrap:S,spacing:L,rowSpacing:X,columnSpacing:J,size:M,offset:z},B=s(W,h);return f.jsx(l,{ref:m,as:x,ownerState:W,className:ae(B.root,p),...N,children:v.Children.map(C,A=>{var Q;return v.isValidElement(A)&&Lo(A,["Grid"])&&E&&A.props.container?v.cloneElement(A,{unstable_level:((Q=A.props)==null?void 0:Q.unstable_level)??j+1}):A})})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:n.node,className:n.string,columns:n.oneOfType([n.arrayOf(n.number),n.number,n.object]),columnSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),component:n.elementType,container:n.bool,direction:n.oneOfType([n.oneOf(["column-reverse","column","row-reverse","row"]),n.arrayOf(n.oneOf(["column-reverse","column","row-reverse","row"])),n.object]),offset:n.oneOfType([n.string,n.number,n.arrayOf(n.oneOfType([n.string,n.number])),n.object]),rowSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),size:n.oneOfType([n.string,n.bool,n.number,n.arrayOf(n.oneOfType([n.string,n.bool,n.number])),n.object]),spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),wrap:n.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const pb=Cr(),fb=cu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mb(e){return uu({props:e,name:"MuiStack",defaultTheme:pb})}function hb(e,t){const o=v.Children.toArray(e).filter(Boolean);return o.reduce((r,i,s)=>(r.push(i),s<o.length-1&&r.push(v.cloneElement(t,{key:`separator-${s}`})),r),[])}const gb=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],bb=({ownerState:e,theme:t})=>{let o={display:"flex",flexDirection:"column",...dn({theme:t},xa({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Ai(t),i=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),s=xa({values:e.direction,base:i}),a=xa({values:e.spacing,base:i});typeof s=="object"&&Object.keys(s).forEach((c,d,u)=>{if(!s[c]){const h=d>0?s[u[d-1]]:"column";s[c]=h}}),o=Rt(o,dn({theme:t},a,(c,d)=>e.useFlexGap?{gap:io(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gb(d?s[d]:e.direction)}`]:io(r,c)}}))}return o=ch(t.breakpoints,o),o};function yb(e={}){const{createStyledComponent:t=fb,useThemeProps:o=mb,componentName:r="MuiStack"}=e,i=()=>ye({root:["root"]},c=>ge(r,c),{}),s=t(bb),a=v.forwardRef(function(c,d){const u=o(c),m=zi(u),{component:h="div",direction:y="column",spacing:g=0,divider:p,children:C,className:w,useFlexGap:E=!1,...x}=m,T={direction:y,spacing:g,useFlexGap:E},S=i();return f.jsx(s,{as:h,ownerState:T,ref:d,className:ae(S.root,w),...x,children:p?hb(C,p):C})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:n.node,direction:n.oneOfType([n.oneOf(["column-reverse","column","row-reverse","row"]),n.arrayOf(n.oneOf(["column-reverse","column","row-reverse","row"])),n.object]),divider:n.node,spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])}),a}function Bu(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:lr.white,default:lr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const vb=Bu();function Fu(){return{text:{primary:lr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:lr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const zu=Fu();function Vu(e,t,o,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(o)?e[t]=e[o]:t==="light"?e.light=Er(e.main,i):t==="dark"&&(e.dark=wr(e.main,s)))}function xb(e="light"){return e==="dark"?{main:Ro[200],light:Ro[50],dark:Ro[400]}:{main:Ro[700],light:Ro[400],dark:Ro[800]}}function Cb(e="light"){return e==="dark"?{main:$o[200],light:$o[50],dark:$o[400]}:{main:$o[500],light:$o[300],dark:$o[700]}}function Sb(e="light"){return e==="dark"?{main:Po[500],light:Po[300],dark:Po[700]}:{main:Po[700],light:Po[400],dark:Po[800]}}function Tb(e="light"){return e==="dark"?{main:jo[400],light:jo[300],dark:jo[700]}:{main:jo[700],light:jo[500],dark:jo[900]}}function wb(e="light"){return e==="dark"?{main:Io[400],light:Io[300],dark:Io[700]}:{main:Io[800],light:Io[500],dark:Io[900]}}function Eb(e="light"){return e==="dark"?{main:cr[400],light:cr[300],dark:cr[700]}:{main:"#ed6c02",light:cr[500],dark:cr[900]}}function La(e){const{mode:t="light",contrastThreshold:o=3,tonalOffset:r=.2,...i}=e,s=e.primary||xb(t),a=e.secondary||Cb(t),l=e.error||Sb(t),c=e.info||Tb(t),d=e.success||wb(t),u=e.warning||Eb(t);function m(p){const C=pu(p,zu.text.primary)>=o?zu.text.primary:vb.text.primary;if(process.env.NODE_ENV!=="production"){const w=pu(p,C);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${C} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
128
|
+
`))}return C}const h=({color:p,name:C,mainShade:w=500,lightShade:E=300,darkShade:x=700})=>{if(p={...p},!p.main&&p[w]&&(p.main=p[w]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
129
|
+
The color object needs to have a \`main\` property or a \`${w}\` property.`:hn(11,C?` (${C})`:"",w));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
130
|
+
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
120
131
|
|
|
121
132
|
Did you intend to use one of the following approaches?
|
|
122
133
|
|
|
@@ -128,26 +139,18 @@ const theme1 = createTheme({ palette: {
|
|
|
128
139
|
|
|
129
140
|
const theme2 = createTheme({ palette: {
|
|
130
141
|
primary: { main: green[500] },
|
|
131
|
-
} });`:
|
|
132
|
-
`)),Object.keys(
|
|
142
|
+
} });`:hn(12,C?` (${C})`:"",JSON.stringify(p.main)));return Vu(p,"light",E,r),Vu(p,"dark",x,r),p.contrastText||(p.contrastText=m(p.main)),p};let y;return t==="light"?y=Bu():t==="dark"&&(y=Fu()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Rt({common:{...lr},mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:Hf,contrastThreshold:o,getContrastText:m,augmentColor:h,tonalOffset:r,...y},i)}function Ob(e){const t={};return Object.entries(e).forEach(r=>{const[i,s]=r;typeof s=="object"&&(t[i]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function kb(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Pb(e){return Math.round(e*1e5)/1e5}const Wu={textTransform:"uppercase"},Uu='"Roboto", "Helvetica", "Arial", sans-serif';function Hu(e,t){const{fontFamily:o=Uu,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,y=u||(C=>`${C/c*h}rem`),g=(C,w,E,x,T)=>({fontFamily:o,fontWeight:C,fontSize:y(w),lineHeight:E,...o===Uu?{letterSpacing:`${Pb(x/w)}em`}:{},...T,...d}),p={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,Wu),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Wu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rt({htmlFontSize:c,pxToRem:y,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...p},m,{clone:!1})}const $b=.2,Rb=.14,jb=.12;function ht(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$b})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Rb})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jb})`].join(",")}const Ib=["none",ht(0,2,1,-1,0,1,1,0,0,1,3,0),ht(0,3,1,-2,0,2,2,0,0,1,5,0),ht(0,3,3,-2,0,3,4,0,0,1,8,0),ht(0,2,4,-1,0,4,5,0,0,1,10,0),ht(0,3,5,-1,0,5,8,0,0,1,14,0),ht(0,3,5,-1,0,6,10,0,0,1,18,0),ht(0,4,5,-2,0,7,10,1,0,2,16,1),ht(0,5,5,-3,0,8,10,1,0,3,14,2),ht(0,5,6,-3,0,9,12,1,0,3,16,2),ht(0,6,6,-3,0,10,14,1,0,4,18,3),ht(0,6,7,-4,0,11,15,1,0,4,20,3),ht(0,7,8,-4,0,12,17,2,0,5,22,4),ht(0,7,8,-4,0,13,19,2,0,5,24,4),ht(0,7,9,-4,0,14,21,2,0,5,26,4),ht(0,8,9,-5,0,15,22,2,0,6,28,5),ht(0,8,10,-5,0,16,24,2,0,6,30,5),ht(0,8,11,-5,0,17,26,2,0,6,32,5),ht(0,9,11,-5,0,18,28,2,0,7,34,6),ht(0,9,12,-6,0,19,29,2,0,7,36,6),ht(0,10,13,-6,0,20,31,3,0,8,38,7),ht(0,10,13,-6,0,21,33,3,0,8,40,7),ht(0,10,14,-6,0,22,35,3,0,8,42,7),ht(0,11,14,-7,0,23,36,3,0,9,44,8),ht(0,11,15,-7,0,24,38,3,0,9,46,8)],Nb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gu(e){return`${Math.round(e)}ms`}function Mb(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ab(e){const t={...Nb,...e.easing},o={...qu,...e.duration};return{getAutoHeightDuration:Mb,create:(i=["all"],s={})=>{const{duration:a=o.standard,easing:l=t.easeInOut,delay:c=0,...d}=s;if(process.env.NODE_ENV!=="production"){const u=h=>typeof h=="string",m=h=>!Number.isNaN(parseFloat(h));!u(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
143
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:Gu(a)} ${l} ${typeof c=="string"?c:Gu(c)}`).join(",")},...e,easing:t,duration:o}}const Db={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _b(e){return xn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Yu(e={}){const t={...e};function o(r){const i=Object.entries(r);for(let s=0;s<i.length;s++){const[a,l]=i[s];!_b(l)||a.startsWith("unstable_")?delete r[a]:xn(l)&&(r[a]={...l},o(r[a]))}}return o(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
133
144
|
|
|
134
145
|
const theme = ${JSON.stringify(t,null,2)};
|
|
135
146
|
|
|
136
147
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
137
|
-
theme.motion = { reducedMotion: 'never', ...theme.motion };
|
|
138
148
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
139
149
|
|
|
140
|
-
export default theme;`}function
|
|
141
|
-
`))}
|
|
142
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function qy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const wn=e=>{try{return e()}catch{}},Gy=(e="mui")=>Vb(e);function rl(e,t,o,r,s){if(!o)return;o=o===!0?{}:o;const i=s==="dark"?"dark":"light";if(!r){t[s]=zy({...o,palette:{mode:i,...o==null?void 0:o.palette},colorSpace:e});return}const{palette:a,...l}=nl({...r,palette:{mode:i,...o==null?void 0:o.palette},colorSpace:e});return t[s]={...o,palette:a,opacity:{...hd(i),...o==null?void 0:o.opacity},overlays:(o==null?void 0:o.overlays)||gd(i)},l}function Yy(e={},...t){const{colorSchemes:o={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Vy,colorSchemeSelector:c=o.light&&o.dark?"media":void 0,rootSelector:d=":root",...u}=e,h=Object.keys(o)[0],y=r||(o.light&&h!=="light"?"light":h),p=Gy(i),{[y]:g,light:f,dark:S,...C}=o,E={...C};let T=g;if((y==="dark"&&!("dark"in o)||y==="light"&&!("light"in o))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:_n(21,y));let w;a&&(w="oklch");const x=rl(w,E,T,u,y);f&&!E.light&&rl(w,E,f,void 0,"light"),S&&!E.dark&&rl(w,E,S,void 0,"dark");let k={defaultColorScheme:y,...x,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:d,getCssVar:p,colorSchemes:E,font:{...Ty(x.typography),...x.font},spacing:qy(u.spacing)};Object.keys(k.colorSchemes).forEach(I=>{const v=k.colorSchemes[I].palette,M=j=>{const L=j.split("-"),U=L[1],G=L[2];return p(j,v[U][G])};v.mode==="light"&&(te(v.common,"background","#fff"),te(v.common,"onBackground","#000")),v.mode==="dark"&&(te(v.common,"background","#000"),te(v.common,"onBackground","#fff"));function $(j,L,U){if(w){let G;return j===fo&&(G=`transparent ${((1-U)*100).toFixed(0)}%`),j===Qe&&(G=`#000 ${(U*100).toFixed(0)}%`),j===Ze&&(G=`#fff ${(U*100).toFixed(0)}%`),`color-mix(in ${w}, ${L}, ${G})`}return j(L,U)}if(Hy(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){te(v.Alert,"errorColor",$(Qe,a?p("palette-error-light"):v.error.light,.6)),te(v.Alert,"infoColor",$(Qe,a?p("palette-info-light"):v.info.light,.6)),te(v.Alert,"successColor",$(Qe,a?p("palette-success-light"):v.success.light,.6)),te(v.Alert,"warningColor",$(Qe,a?p("palette-warning-light"):v.warning.light,.6)),te(v.Alert,"errorFilledBg",M("palette-error-main")),te(v.Alert,"infoFilledBg",M("palette-info-main")),te(v.Alert,"successFilledBg",M("palette-success-main")),te(v.Alert,"warningFilledBg",M("palette-warning-main")),te(v.Alert,"errorFilledColor",wn(()=>v.getContrastText(v.error.main))),te(v.Alert,"infoFilledColor",wn(()=>v.getContrastText(v.info.main))),te(v.Alert,"successFilledColor",wn(()=>v.getContrastText(v.success.main))),te(v.Alert,"warningFilledColor",wn(()=>v.getContrastText(v.warning.main))),te(v.Alert,"errorStandardBg",$(Ze,a?p("palette-error-light"):v.error.light,.9)),te(v.Alert,"infoStandardBg",$(Ze,a?p("palette-info-light"):v.info.light,.9)),te(v.Alert,"successStandardBg",$(Ze,a?p("palette-success-light"):v.success.light,.9)),te(v.Alert,"warningStandardBg",$(Ze,a?p("palette-warning-light"):v.warning.light,.9)),te(v.Alert,"errorIconColor",M("palette-error-main")),te(v.Alert,"infoIconColor",M("palette-info-main")),te(v.Alert,"successIconColor",M("palette-success-main")),te(v.Alert,"warningIconColor",M("palette-warning-main")),te(v.AppBar,"defaultBg",M("palette-grey-100")),te(v.Avatar,"defaultBg",M("palette-grey-400")),te(v.Button,"inheritContainedBg",M("palette-grey-300")),te(v.Button,"inheritContainedHoverBg",M("palette-grey-A100")),te(v.Chip,"defaultBorder",M("palette-grey-400")),te(v.Chip,"defaultAvatarColor",M("palette-grey-700")),te(v.Chip,"defaultIconColor",M("palette-grey-700")),te(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(v.LinearProgress,"primaryBg",$(Ze,a?p("palette-primary-main"):v.primary.main,.62)),te(v.LinearProgress,"secondaryBg",$(Ze,a?p("palette-secondary-main"):v.secondary.main,.62)),te(v.LinearProgress,"errorBg",$(Ze,a?p("palette-error-main"):v.error.main,.62)),te(v.LinearProgress,"infoBg",$(Ze,a?p("palette-info-main"):v.info.main,.62)),te(v.LinearProgress,"successBg",$(Ze,a?p("palette-success-main"):v.success.main,.62)),te(v.LinearProgress,"warningBg",$(Ze,a?p("palette-warning-light"):v.warning.main,.62)),te(v.Skeleton,"bg",w?$(fo,a?p("palette-text-primary"):v.text.primary,.11):`rgba(${M("palette-text-primaryChannel")} / 0.11)`),te(v.Slider,"primaryTrack",$(Ze,a?p("palette-primary-main"):v.primary.main,.62)),te(v.Slider,"secondaryTrack",$(Ze,a?p("palette-secondary-main"):v.secondary.main,.62)),te(v.Slider,"errorTrack",$(Ze,a?p("palette-error-main"):v.error.main,.62)),te(v.Slider,"infoTrack",$(Ze,a?p("palette-info-main"):v.info.main,.62)),te(v.Slider,"successTrack",$(Ze,a?p("palette-success-main"):v.success.main,.62)),te(v.Slider,"warningTrack",$(Ze,a?p("palette-warning-main"):v.warning.main,.62));const j=w?$(Qe,a?p("palette-background-default"):v.background.default,.6825):Zs(v.background.default,.8);te(v.SnackbarContent,"bg",j),te(v.SnackbarContent,"color",wn(()=>w?el.text.primary:v.getContrastText(j))),te(v.SpeedDialAction,"fabHoverBg",Zs(v.background.paper,.15)),te(v.StepConnector,"border",M("palette-grey-400")),te(v.StepContent,"border",M("palette-grey-400")),te(v.Switch,"defaultColor",M("palette-common-white")),te(v.Switch,"defaultDisabledColor",M("palette-grey-100")),te(v.Switch,"primaryDisabledColor",$(Ze,a?p("palette-primary-main"):v.primary.main,.62)),te(v.Switch,"secondaryDisabledColor",$(Ze,a?p("palette-secondary-main"):v.secondary.main,.62)),te(v.Switch,"errorDisabledColor",$(Ze,a?p("palette-error-main"):v.error.main,.62)),te(v.Switch,"infoDisabledColor",$(Ze,a?p("palette-info-main"):v.info.main,.62)),te(v.Switch,"successDisabledColor",$(Ze,a?p("palette-success-main"):v.success.main,.62)),te(v.Switch,"warningDisabledColor",$(Ze,a?p("palette-warning-main"):v.warning.main,.62)),te(v.TableCell,"border",$(Ze,fo(a?p("palette-divider"):v.divider,1),.88)),te(v.Tooltip,"bg",$(fo,a?p("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){te(v.Alert,"errorColor",$(Ze,a?p("palette-error-light"):v.error.light,.6)),te(v.Alert,"infoColor",$(Ze,a?p("palette-info-light"):v.info.light,.6)),te(v.Alert,"successColor",$(Ze,a?p("palette-success-light"):v.success.light,.6)),te(v.Alert,"warningColor",$(Ze,a?p("palette-warning-light"):v.warning.light,.6)),te(v.Alert,"errorFilledBg",M("palette-error-dark")),te(v.Alert,"infoFilledBg",M("palette-info-dark")),te(v.Alert,"successFilledBg",M("palette-success-dark")),te(v.Alert,"warningFilledBg",M("palette-warning-dark")),te(v.Alert,"errorFilledColor",wn(()=>v.getContrastText(v.error.dark))),te(v.Alert,"infoFilledColor",wn(()=>v.getContrastText(v.info.dark))),te(v.Alert,"successFilledColor",wn(()=>v.getContrastText(v.success.dark))),te(v.Alert,"warningFilledColor",wn(()=>v.getContrastText(v.warning.dark))),te(v.Alert,"errorStandardBg",$(Qe,a?p("palette-error-light"):v.error.light,.9)),te(v.Alert,"infoStandardBg",$(Qe,a?p("palette-info-light"):v.info.light,.9)),te(v.Alert,"successStandardBg",$(Qe,a?p("palette-success-light"):v.success.light,.9)),te(v.Alert,"warningStandardBg",$(Qe,a?p("palette-warning-light"):v.warning.light,.9)),te(v.Alert,"errorIconColor",M("palette-error-main")),te(v.Alert,"infoIconColor",M("palette-info-main")),te(v.Alert,"successIconColor",M("palette-success-main")),te(v.Alert,"warningIconColor",M("palette-warning-main")),te(v.AppBar,"defaultBg",M("palette-grey-900")),te(v.AppBar,"darkBg",M("palette-background-paper")),te(v.AppBar,"darkColor",M("palette-text-primary")),te(v.Avatar,"defaultBg",M("palette-grey-600")),te(v.Button,"inheritContainedBg",M("palette-grey-800")),te(v.Button,"inheritContainedHoverBg",M("palette-grey-700")),te(v.Chip,"defaultBorder",M("palette-grey-700")),te(v.Chip,"defaultAvatarColor",M("palette-grey-300")),te(v.Chip,"defaultIconColor",M("palette-grey-300")),te(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(v.LinearProgress,"primaryBg",$(Qe,a?p("palette-primary-main"):v.primary.main,.5)),te(v.LinearProgress,"secondaryBg",$(Qe,a?p("palette-secondary-main"):v.secondary.main,.5)),te(v.LinearProgress,"errorBg",$(Qe,a?p("palette-error-main"):v.error.main,.5)),te(v.LinearProgress,"infoBg",$(Qe,a?p("palette-info-main"):v.info.main,.5)),te(v.LinearProgress,"successBg",$(Qe,a?p("palette-success-main"):v.success.main,.5)),te(v.LinearProgress,"warningBg",$(Qe,a?p("palette-warning-main"):v.warning.main,.5)),te(v.Skeleton,"bg",w?$(fo,a?p("palette-text-primary"):v.text.primary,.13):`rgba(${M("palette-text-primaryChannel")} / 0.13)`),te(v.Slider,"primaryTrack",$(Qe,a?p("palette-primary-main"):v.primary.main,.5)),te(v.Slider,"secondaryTrack",$(Qe,a?p("palette-secondary-main"):v.secondary.main,.5)),te(v.Slider,"errorTrack",$(Qe,a?p("palette-error-main"):v.error.main,.5)),te(v.Slider,"infoTrack",$(Qe,a?p("palette-info-main"):v.info.main,.5)),te(v.Slider,"successTrack",$(Qe,a?p("palette-success-main"):v.success.main,.5)),te(v.Slider,"warningTrack",$(Qe,a?p("palette-warning-light"):v.warning.main,.5));const j=w?$(Ze,a?p("palette-background-default"):v.background.default,.985):Zs(v.background.default,.98);te(v.SnackbarContent,"bg",j),te(v.SnackbarContent,"color",wn(()=>w?rd.text.primary:v.getContrastText(j))),te(v.SpeedDialAction,"fabHoverBg",Zs(v.background.paper,.15)),te(v.StepConnector,"border",M("palette-grey-600")),te(v.StepContent,"border",M("palette-grey-600")),te(v.Switch,"defaultColor",M("palette-grey-300")),te(v.Switch,"defaultDisabledColor",M("palette-grey-600")),te(v.Switch,"primaryDisabledColor",$(Qe,a?p("palette-primary-main"):v.primary.main,.55)),te(v.Switch,"secondaryDisabledColor",$(Qe,a?p("palette-secondary-main"):v.secondary.main,.55)),te(v.Switch,"errorDisabledColor",$(Qe,a?p("palette-error-main"):v.error.main,.55)),te(v.Switch,"infoDisabledColor",$(Qe,a?p("palette-info-main"):v.info.main,.55)),te(v.Switch,"successDisabledColor",$(Qe,a?p("palette-success-main"):v.success.main,.55)),te(v.Switch,"warningDisabledColor",$(Qe,a?p("palette-warning-light"):v.warning.main,.55)),te(v.TableCell,"border",$(Qe,fo(a?p("palette-divider"):v.divider,1),.68)),te(v.Tooltip,"bg",$(fo,a?p("palette-grey-700"):v.grey[700],.92))}a||(Ln(v.background,"default"),Ln(v.background,"paper"),Ln(v.common,"background"),Ln(v.common,"onBackground"),Ln(v,"divider")),Object.keys(v).forEach(j=>{const L=v[j];j!=="tonalOffset"&&!a&&L&&typeof L=="object"&&(L.main&&te(v[j],"mainChannel",$r(Mr(L.main))),L.light&&te(v[j],"lightChannel",$r(Mr(L.light))),L.dark&&te(v[j],"darkChannel",$r(Mr(L.dark))),L.contrastText&&te(v[j],"contrastTextChannel",$r(Mr(L.contrastText))),j==="text"&&(Ln(v[j],"primary"),Ln(v[j],"secondary")),j==="action"&&(L.active&&Ln(v[j],"active"),L.selected&&Ln(v[j],"selected")))})}),k=t.reduce((I,v)=>Nt(I,v),k);const R={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:Uy(k),enableContrastVars:a},{vars:P,generateThemeVars:N,generateStyleSheets:A}=Hb(k,R);return k.vars=P,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([I,v])=>{k[I]=v}),k.generateThemeVars=N,k.generateStyleSheets=A,k.generateSpacing=function(){return Pu(u.spacing,Vs(this))},k.getColorSchemeSelector=qb(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=l,k.unstable_sxConfig={...Ys,...u==null?void 0:u.unstable_sxConfig},k.unstable_sx=function(v){return uo({sx:v,theme:this})},k.internal_cache={},k.toRuntimeSource=fd,k}function bd(e,t,o){e.colorSchemes&&o&&(e.colorSchemes[t]={...o!==!0&&o,palette:tl({...o===!0?{}:o.palette,mode:t})})}function si(e={},...t){const{palette:o,cssVariables:r=!1,colorSchemes:s=o?void 0:{light:!0},defaultColorScheme:i=o==null?void 0:o.mode,...a}=e,l=i||"light",c=s==null?void 0:s[l],d={...s,...o?{[l]:{...typeof c!="boolean"&&c,palette:o}}:void 0};if(r===!1){if(!("colorSchemes"in e))return nl(e,...t);let u=o;"palette"in e||d[l]&&(d[l]!==!0?u=d[l].palette:l==="dark"&&(u={mode:"dark"}));const h=nl({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},bd(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},bd(h,"light",d.light)),h}return!o&&!("light"in d)&&l==="light"&&(d.light=!0),Yy({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function Ky(e){return he("MuiAutocomplete",e)}const _e=ge("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);function Xy(e){return he("MuiCheckbox",e)}const sl=ge("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function fn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Jy(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Qy(e,t,o,r,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!Jy(i)&&(l="Did you accidentally provide a plain function component instead?"),i===b.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const il=fn(n.elementType,Qy),nn=n.oneOfType([n.func,n.object]);function ii(e){return typeof e=="string"}function al(e,t=166){let o;function r(...s){const i=()=>{e.apply(this,s)};clearTimeout(o),o=setTimeout(i,t)}return r.clear=()=>{clearTimeout(o)},r}function lt(...e){const t=b.useRef(void 0),o=b.useCallback(r=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=o(r))},e)}function ct(e){const t=b.useRef(e);return pt(()=>{t.current=e}),b.useRef((...o)=>(0,t.current)(...o)).current}function It(e){return e&&e.ownerDocument||document}function mn(e){return It(e).defaultView||window}function ai(e){return parseInt(e,10)||0}const Zy={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ev(e){for(const t in e)return!1;return!0}function yd(e){return ev(e)||e.outerHeightStyle===0&&!e.overflowing}const vd=b.forwardRef(function(t,o){const{onChange:r,maxRows:s,minRows:i=1,style:a,value:l,...c}=t,{current:d}=b.useRef(l!=null),u=b.useRef(null),h=lt(o,u),y=b.useRef(null),p=b.useRef(null),g=b.useCallback(()=>{const T=u.current,w=p.current;if(!T||!w)return;const k=mn(T).getComputedStyle(T);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=k.width,w.value=T.value||t.placeholder||"x",w.value.slice(-1)===`
|
|
143
|
-
|
|
144
|
-
`),R=w.selectionStart===x;k&&R&&w.setSelectionRange(x,x),r&&r(T)};return m.jsxs(b.Fragment,{children:[m.jsx("textarea",{value:l,onChange:E,ref:h,rows:i,style:a,...c}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Zy.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(vd.propTypes={className:n.string,maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),onChange:n.func,placeholder:n.string,style:n.object,value:n.oneOfType([n.arrayOf(n.string),n.number,n.string])});const Ar=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ar.displayName="FormControlContext");function xd(){return b.useContext(Ar)}function eo({props:e,states:t}){const o=b.useContext(Ar),r={};return t.forEach(s=>{const i=e[s];r[s]=i===void 0&&o?o[s]:i}),[r,o]}const ll=si();function En(){const e=Ir(ll);return process.env.NODE_ENV!=="production"&&b.useDebugValue(e),e[xn]||e}function Sd(e){return m.jsx(Ua,{...e,defaultTheme:ll,themeId:xn})}process.env.NODE_ENV!=="production"&&(Sd.propTypes={styles:n.oneOfType([n.array,n.func,n.number,n.object,n.string,n.bool])});function Td(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Et=e=>Td(e)&&e!=="classes",Z=Lu({themeId:xn,defaultTheme:ll,rootShouldForwardProp:Et});function tv(e){return function(o){return m.jsx(Sd,{styles:typeof e=="function"?r=>e({theme:r,...o}):e})}}const xe=Nb;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function Te(e){return Ib(e)}function Bn(e){var o;let t=e.activeElement;for(;((o=t==null?void 0:t.shadowRoot)==null?void 0:o.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Cd(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function li(e,t=!1){return e&&(Cd(e.value)&&e.value!==""||t&&Cd(e.defaultValue)&&e.defaultValue!=="")}function nv(e){return e.startAdornment}function ov(e){return he("MuiInputBase",e)}const Kt=ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputTypeSearch"]),rv={transition:"none"};function sv(e,t){return e==="always"?t:e==="system"?{"@media (prefers-reduced-motion: reduce)":t}:null}const ci=e=>e.scrollTop,cl={offsetX:0,offsetY:0},wd={},iv=["all"],av={},lv={matrix:[4,5],matrix3d:[12,13],translate:[0,1],translate3d:[0,1],translateX:[0,null],translateY:[null,0]};function cv(e){const t=parseFloat(e??"");return Number.isNaN(t)?0:t}function uv(e){const t=e.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\((.+)\)$/);return t?{type:t[1],values:t[2].split(",").map(cv)}:null}function Ed(e,t){return t===null?0:e[t]||0}function dv(e){if(!e||e==="none")return cl;const t=uv(e);if(!t)return cl;const{type:o,values:r}=t,s=lv[o];return s?{offsetX:Ed(r,s[0]),offsetY:Ed(r,s[1])}:cl}function mt(e,t){return o=>{if(t){const r=e.current;o===void 0?t(r):t(r,o)}}}function Od(e,t,o,r,s,i){const a=e==="exited"&&!t?r:o[e]||o.exited;return s||i?{...a,...s,...i}:a}function to(e,t){const{timeout:o,easing:r,style:s=wd}=e;return{duration:s.transitionDuration??(typeof o=="number"?o:o[t.mode]||0),easing:s.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:s.transitionDelay}}function ul(e,t){var r;const o=t??rv;return sv((r=e.motion)==null?void 0:r.reducedMotion,o)}function et(e,t=iv,o=av){var a,l;const r=(l=(a=e.transitions)==null?void 0:a.create)==null?void 0:l.call(a,t,o),s=ul(e);if(r===void 0)return s??wd;const i={transition:r};return s?{...i,...s}:i}var kd;const dl="mui-auto-fill",ui="mui-auto-fill-cancel",di=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${ie(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},pi=(e,t)=>{const{ownerState:o}=e;return[t.input,o.type==="search"&&t.inputTypeSearch]},pv=e=>{const{classes:t,color:o,disabled:r,error:s,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:d,multiline:u,readOnly:h,size:y,startAdornment:p,type:g}=e,f={root:["root",`color${ie(o)}`,r&&"disabled",s&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",y&&y!=="medium"&&`size${ie(y)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",h&&"readOnly"]};return be(f,ov,t)},fi=Z("div",{name:"MuiInputBase",slot:"Root",overridesResolver:di})(xe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Kt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:o})=>t.multiline&&o==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),mi=Z("input",{name:"MuiInputBase",slot:"Input",overridesResolver:pi})(xe(({theme:e})=>{const t=e.palette.mode==="light",o={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},...et(e,"opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Kt.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Kt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:ui,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:dl}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Rd=tv({[`@keyframes ${dl}`]:{from:{animationName:dl}},[`@keyframes ${ui}`]:{from:{animationName:ui}}}),hi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiInputBase"}),{"aria-describedby":s,"aria-label":i,autoComplete:a,autoFocus:l,className:c,color:d,defaultValue:u,disabled:h,disableInjectingGlobalStyles:y,endAdornment:p,error:g,fullWidth:f=!1,id:S,inputComponent:C="input",inputProps:E={},inputRef:T,margin:w,maxRows:x,minRows:k,multiline:R=!1,name:P,onBlur:N,onChange:A,onClick:I,onFocus:v,onKeyDown:M,onKeyUp:$,placeholder:j,readOnly:L,renderSuffix:U,rows:G,size:ee,slotProps:B={},slots:O={},startAdornment:_,type:V="text",value:q,...Y}=r,W=E.value!=null?E.value:q,{current:F}=b.useRef(W!=null),z=b.useRef(),J=b.useCallback(ue=>{process.env.NODE_ENV!=="production"&&ue&&ue.nodeName!=="INPUT"&&!ue.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
145
|
-
`))},[]),oe=lt(z,T,E.ref,J),[ce,H]=b.useState(!1),[Se,le]=eo({props:r,states:["color","disabled","error","hiddenLabel","size","required","filled"]});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(le)return le.registerEffect()},[le]),Se.focused=le?le.focused:ce,b.useEffect(()=>{!le&&h&&ce&&(H(!1),N&&N())},[le,h,ce,N]);const Ce=le&&le.onFilled,ke=le&&le.onEmpty,Re=b.useCallback(ue=>{li(ue)?Ce&&Ce():ke&&ke()},[Ce,ke]);pt(()=>{F&&Re({value:W})},[W,Re,F]),pt(()=>{if(!l)return;const ue=z.current;if(!ue)return;const Pe=It(ue),Ve=Bn(Pe),ut=Ve==null||Ve===Pe.body||Ve===Pe.documentElement;ue===Ve?le&&le.onFocus?le.onFocus():H(!0):ut&&ue.focus()},[l]);const Be=ue=>{v&&v(ue),E.onFocus&&E.onFocus(ue),le&&le.onFocus?le.onFocus(ue):H(!0)},pe=ue=>{N&&N(ue),E.onBlur&&E.onBlur(ue),le&&le.onBlur?le.onBlur(ue):H(!1)},Ne=(ue,...Pe)=>{if(!F){const Ve=ue.target||z.current;if(Ve==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":_n(1));Re({value:Ve.value})}E.onChange&&E.onChange(ue,...Pe),A&&A(ue,...Pe)};b.useEffect(()=>{Re(z.current)},[]);const Fe=ue=>{z.current&&ue.currentTarget===ue.target&&z.current.focus(),I&&I(ue)};let De=C,tt=E;R&&De==="input"&&(G?(process.env.NODE_ENV!=="production"&&(k||x)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),tt={type:void 0,minRows:G,maxRows:G,...tt}):tt={type:void 0,maxRows:x,minRows:k,...tt},De=vd);const ae=ue=>{Re(ue.animationName===ui?z.current:{value:"x"})};b.useEffect(()=>{le&&le.setAdornedStart(!!_)},[le,_]);const bt={...r,color:Se.color||"primary",disabled:Se.disabled,endAdornment:p,error:Se.error,focused:Se.focused,formControl:le,fullWidth:f,hiddenLabel:Se.hiddenLabel,multiline:R,size:Se.size,startAdornment:_,type:V},we=pv(bt),Ie=O.root||fi,ze=B.root||{},St=O.input||mi;return tt={...tt,...B.input},m.jsxs(b.Fragment,{children:[!y&&typeof Rd=="function"&&(kd||(kd=m.jsx(Rd,{}))),m.jsxs(Ie,{...ze,ref:o,onClick:Fe,...Y,...!ii(Ie)&&{ownerState:{...bt,...ze.ownerState}},className:se(we.root,ze.className,c,L&&"MuiInputBase-readOnly"),children:[_,m.jsx(Ar.Provider,{value:null,children:m.jsx(St,{"aria-invalid":Se.error,"aria-describedby":s,"aria-label":i,autoComplete:a,autoFocus:l,defaultValue:u,disabled:Se.disabled,id:S,onAnimationStart:ae,name:P,placeholder:j,readOnly:L,required:Se.required,rows:G,value:W,onKeyDown:M,onKeyUp:$,type:V,...tt,...!ii(St)&&{as:De,ownerState:{...bt,...tt.ownerState}},ref:oe,className:se(we.input,tt.className,L&&"MuiInputBase-readOnly"),onBlur:pe,onChange:Ne,onFocus:Be})}),p,U?U({...Se,startAdornment:_}):null]})]})});process.env.NODE_ENV!=="production"&&(hi.propTypes={"aria-describedby":n.string,"aria-label":n.string,autoComplete:n.string,autoFocus:n.bool,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),defaultValue:n.any,disabled:n.bool,disableInjectingGlobalStyles:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:il,inputProps:n.object,inputRef:nn,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onClick:n.func,onFocus:n.func,onInvalid:n.func,onKeyDown:n.func,onKeyUp:n.func,placeholder:n.string,readOnly:n.bool,renderSuffix:n.func,required:n.bool,rows:n.oneOfType([n.number,n.string]),size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any});function fv(e){return he("MuiFilledInput",e)}const Xt={...Kt,...ge("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function mv(e){return he("MuiFormControlLabel",e)}const _r=ge("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function hv(e){return he("MuiFormHelperText",e)}const Pd=ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);function gv(e){return he("MuiFormLabel",e)}const Dr=ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);function bv(e){return he("MuiInput",e)}const no={...Kt,...ge("MuiInput",["root","underline","input"])};function yv(e){return he("MuiListItemButton",e)}const Xo=ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function vv(e){return he("MuiMenuItem",e)}const Lr=ge("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function xv(e){return he("MuiNativeSelect",e)}const pl=ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function Sv(e){return he("MuiOutlinedInput",e)}const on={...Kt,...ge("MuiOutlinedInput",["root","notchedOutline","input"])};function Tv(e){return he("MuiRadio",e)}const Id=ge("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);function Cv(e){return he("MuiToggleButton",e)}const mo=ge("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);function wv({theme:e,...t}){const o=xn in e?e[xn]:void 0;return m.jsx(jr,{...t,themeId:o?xn:void 0,theme:o||e})}const gi={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(n.string,n.string,n.string,n.string,n.string,n.oneOf(["dark","light","system"]),n.string,n.string);const{CssVarsProvider:Ev}=zb({themeId:xn,theme:()=>si({cssVariables:!0}),colorSchemeStorageKey:gi.colorSchemeStorageKey,modeStorageKey:gi.modeStorageKey,defaultColorScheme:{light:gi.defaultLightColorScheme,dark:gi.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:ud(e.palette,e.typography)};return t.unstable_sx=function(r){return uo({sx:r,theme:this})},t}}),Ov=Ev;function bi({theme:e,...t}){const o=b.useMemo(()=>{if(typeof e=="function")return e;const r=xn in e?e[xn]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return o?m.jsx(wv,{theme:o,...t}):m.jsx(Ov,{theme:e,...t})}function fl(...e){return e.reduce((t,o)=>o==null?t:function(...s){t.apply(this,s),o.apply(this,s)},()=>{})}function kv(e){return he("MuiSvgIcon",e)}ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Rv=e=>{const{color:t,fontSize:o,classes:r}=e,s={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(o)}`]};return be(s,kv,r)},Pv=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="inherit"&&t[`color${ie(o.color)}`],t[`fontSize${ie(o.fontSize)}`]]}})(xe(({theme:e})=>{var t,o,r,s,i,a,l,c,d,u,h,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,...et(e,"fill",{duration:(o=(t=(e.vars??e).transitions)==null?void 0:t.duration)==null?void 0:o.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(r=e.typography)==null?void 0:r.pxToRem)==null?void 0:s.call(r,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var g,f;return{props:{color:p},style:{color:(f=(g=(e.vars??e).palette)==null?void 0:g[p])==null?void 0:f.main}}}),{props:{color:"action"},style:{color:(u=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:u.active}},{props:{color:"disabled"},style:{color:(y=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Br=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:h,viewBox:y="0 0 24 24",...p}=r,g=b.isValidElement(s)&&s.type==="svg",f={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:y,hasSvgAsChild:g},S={};u||(S.viewBox=y);const C=Rv(f);return m.jsxs(Pv,{as:l,className:se(C.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:o,...S,...p,...g&&s.props,ownerState:f,children:[g?s.props.children:s,h?m.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Br.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,fontSize:n.oneOfType([n.oneOf(["inherit","large","medium","small"]),n.string]),htmlColor:n.string,inheritViewBox:n.bool,shapeRendering:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleAccess:n.string,viewBox:n.string}),Br.muiName="SvgIcon";function dt(e,t){function o(r,s){return m.jsx(Br,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...r,children:e})}return process.env.NODE_ENV!=="production"&&(o.displayName=`${t}Icon`),o.muiName=Br.muiName,b.memo(b.forwardRef(o))}function Iv(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const o=t?{...t.propTypes}:null;return s=>(i,a,l,c,d,...u)=>{const h=d||a,y=o==null?void 0:o[h];if(y){const p=y(i,a,l,c,d,...u);if(p)return p}return typeof i[a]<"u"&&!i[s]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${s}\` prop.`):null}}function yi(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function $v(e,t,o,r,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function oo(e){const{controlled:t,default:o,name:r,state:s="value"}=e,{current:i}=b.useRef(t!==void 0),[a,l]=b.useState(o),c=i?t:a;if(process.env.NODE_ENV!=="production"){b.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${r} to be ${i?"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(`
|
|
146
|
-
`))},[s,r,t]);const{current:u}=b.useRef(o);b.useEffect(()=>{!i&&JSON.stringify(o)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
147
|
-
`))},[JSON.stringify(o)])}const d=b.useCallback(u=>{i||l(u)},[]);return[c,d]}function $d(e,t){const o=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&o>=65&&o<=90&&typeof t=="function"}function vi(e,t){if(!e)return t;function o(a,l){const c={};return Object.keys(l).forEach(d=>{$d(d,l[d])&&typeof a[d]=="function"&&(c[d]=(...u)=>{a[d](...u),l[d](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,d=se(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),u=o(c,l);return{...l,...c,...u,...!!d&&{className:d},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,s=o(e,r),i=se(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...s,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const jd={};function ml(e,t){const o=b.useRef(jd);return o.current===jd&&(o.current=e(t)),o}function jv(e){const t=ml(()=>Nv(e)).current;return t.next=e,pt(t.effect),t}function Nv(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Nd=D.createContext(null);function Mv(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e=="number")return{appear:e,enter:e,exit:e};const t=e.enter,o=e.exit;return{appear:e.appear!==void 0?e.appear:t,enter:t,exit:o}}function Av(e){if(e.autoTimeout!=null)return e.autoTimeout;const t=Mv(e.timeout);return e.currentStatus==="entering"?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Fr(e){const{in:t=!1,appear:o=!1,enter:r=!0,exit:s=!0,mountOnEnter:i=!1,unmountOnExit:a=!1,timeout:l,addEndListener:c,reduceMotion:d=!1,getAutoTimeout:u,nodeRef:h,onEnter:y,onEntering:p,onEntered:g,onExit:f,onExiting:S,onExited:C,children:E,...T}=e,w=b.useContext(Nd),x=w&&!w.isMounting?r:o,[k,R]=b.useState(()=>t?x?"exited":"entered":i||a?"unmounted":"exited"),P=b.useRef(k);P.current=k,t&&k==="unmounted"&&(P.current="exited",R("exited"));const N=b.useRef(t&&x),A=b.useRef(!1),I=b.useRef(null),v=b.useRef(k),M=b.useRef(!1),$=b.useRef(d),j=jv({timeout:l,addEndListener:c,reduceMotion:d,getAutoTimeout:u,onEnter:y,onEntering:p,onEntered:g,onExit:f,onExiting:S,onExited:C,enter:r,exit:s,mountOnEnter:i,unmountOnExit:a,nodeRef:h,parentGroup:w}),L=b.useCallback(()=>{I.current!==null&&(I.current.cancel(),I.current=null)},[]),U=b.useCallback(_=>{let V=!0;const q=()=>{V&&(V=!1,I.current=null,_())};return q.cancel=()=>{V=!1},I.current=q,q},[]),G=b.useCallback((_,V)=>{var ke,Re;let q;const Y=()=>{q!==void 0&&(clearTimeout(q),q=void 0)},W=U(()=>{Y(),P.current=_,R(_)}),F=W.cancel;W.cancel=()=>{Y(),F()};const z=j.current.nodeRef.current,J=j.current.addEndListener,oe=j.current.getAutoTimeout!==void 0,ce=(Re=(ke=j.current).getAutoTimeout)==null?void 0:Re.call(ke),H=Av({currentStatus:V,isAppearing:M.current,timeout:j.current.timeout,autoTimeout:ce}),Se=$.current,le=H??(Se&&oe?0:null),Ce=Be=>{q=setTimeout(W,Be)};if(!z){process.env.NODE_ENV!=="production"&&console.warn(["MUI: The transition child does not expose a DOM element.","Make sure the child accepts a ref and forwards it to the underlying DOM element.","The transition animation cannot be observed without a DOM element and will be skipped."].join(`
|
|
148
|
-
`)),Ce(0);return}if(J){le!=null&&Ce(Se?0:le),J.length>=2?J(z,W):J(W);return}Ce(Se?0:H??0)},[U,j]),ee=b.useCallback(_=>{var Y;const V=j.current,q=V.parentGroup?V.parentGroup.isMounting:_;if(M.current=q,!_&&!V.enter){P.current="entered",R("entered");return}$.current=V.reduceMotion,(Y=V.onEnter)==null||Y.call(V,q),P.current="entering",R("entering")},[j]),B=b.useCallback(()=>{var V;const _=j.current;if(!_.exit){P.current="exited",R("exited");return}$.current=_.reduceMotion,(V=_.onExit)==null||V.call(_),P.current="exiting",R("exiting")},[j]),O=b.useCallback((_,V)=>{if(L(),V==="entering"){const q=j.current;if(q.mountOnEnter||q.unmountOnExit){const Y=q.nodeRef.current;Y&&ci(Y)}ee(_)}else B()},[L,ee,B,j]);return pt(()=>(A.current=!0,N.current&&(N.current=!1,O(!0,"entering")),()=>{A.current=!1,L()}),[L,O]),pt(()=>{if(!A.current)return;const _=P.current;t?_!=="entering"&&_!=="entered"&&O(!1,"entering"):_==="entering"||_==="entered"?O(!1,"exiting"):_==="exited"&&a&&(P.current="unmounted",R("unmounted"))},[t,k,a,O]),pt(()=>{var q,Y,W,F;if(k==="unmounted"||v.current==="unmounted"){v.current=k;return}if(v.current===k)return;v.current=k;const V=j.current;k==="entering"?((q=V.onEntering)==null||q.call(V,M.current),G("entered","entering")):k==="exiting"?((Y=V.onExiting)==null||Y.call(V),G("exited","exiting")):k==="entered"?(W=V.onEntered)==null||W.call(V,M.current):k==="exited"&&((F=V.onExited)==null||F.call(V))},[j,G,k]),k==="unmounted"?null:m.jsx(Nd.Provider,{value:null,children:E(k,T)})}process.env.NODE_ENV!=="production"&&(Fr.propTypes={addEndListener:n.func,appear:n.bool,children:n.func.isRequired,enter:n.bool,exit:n.bool,getAutoTimeout:n.func,in:n.bool,mountOnEnter:n.bool,nodeRef:n.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null}).isRequired,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,reduceMotion:n.bool,timeout:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),unmountOnExit:n.bool});const Md="(prefers-reduced-motion: reduce)",_v=0,Dv="0ms",Lv=()=>{},Ad=()=>!1,Bv=()=>!0,Fv=()=>Lv;function zv(e){const[t,o]=b.useState(()=>({enabled:e,matches:e?null:!1}));let r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),pt(()=>{const s=l=>{o(c=>c.enabled===e&&c.matches===l?c:{enabled:e,matches:l})};if(!e){t.enabled&&s(!1);return}if(typeof window>"u"||typeof window.matchMedia!="function"){s(!1);return}const i=window.matchMedia(Md),a=()=>{s(i.matches)};return a(),i.addEventListener("change",a),()=>{i.removeEventListener("change",a)}},[e,t.enabled]),r}const _d={...b}.useSyncExternalStore;function Vv(e){const t=e?Bv:Ad,[o,r]=b.useMemo(()=>{if(!e||typeof window>"u"||typeof window.matchMedia!="function")return[Ad,Fv];const s=window.matchMedia(Md);return[()=>s.matches,i=>(s.addEventListener("change",i),()=>{s.removeEventListener("change",i)})]},[e]);return _d(r,o,t)}const Wv=_d!==void 0?Vv:zv;function zr(e,t){const o=Wv(!t&&e==="system"),r=!t&&(e==="always"||e==="system"&&o!==!1);return b.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(s){return r?{duration:_v,delay:Dv}:s}}),[r])}function Dd(e,t,o){return e===void 0||ii(e)?t:{...t,ownerState:{...t.ownerState,...o}}}function Ld(e,t,o){return typeof e=="function"?e(t,o):e}function Bd(e){if(e===void 0)return{};const t={};for(const o of Object.keys(e))$d(o,e[o])&&(t[o]=e[o]);return t}function Fd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(o=>!(o.match(/^on[A-Z]/)&&typeof e[o]=="function")).forEach(o=>{t[o]=e[o]}),t}function zd(e){const{getSlotProps:t,additionalProps:o,externalSlotProps:r,externalForwardedProps:s,className:i}=e;if(!t){const p=se(o==null?void 0:o.className,i,s==null?void 0:s.className,r==null?void 0:r.className),g={...o==null?void 0:o.style,...s==null?void 0:s.style,...r==null?void 0:r.style},f={...o,...s,...r};return p.length>0&&(f.className=p),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=Bd({...s,...r}),l=Fd(r),c=Fd(s),d=t(a),u=se(d==null?void 0:d.className,o==null?void 0:o.className,i,s==null?void 0:s.className,r==null?void 0:r.className),h={...d==null?void 0:d.style,...o==null?void 0:o.style,...s==null?void 0:s.style,...r==null?void 0:r.style},y={...d,...o,...c,...l};return u.length>0&&(y.className=u),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function Ee(e,t){const{className:o,elementType:r,ownerState:s,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...y}=i,p=u[e]||r,g=Ld(h[e],s),{props:{component:f,...S},internalRef:C}=zd({className:o,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),E=lt(C,g==null?void 0:g.ref,t.ref),T=e==="root"?f||d:f,w=Dd(p,{...e==="root"&&!d&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...S,...T&&!l&&{as:T},...T&&l&&{component:T},ref:E},s);return[p,w]}function Uv(e){return he("MuiCollapse",e)}ge("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Vd={},Hv=e=>{const{orientation:t,classes:o}=e;return be({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},Uv,o)},qv=Z("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.state==="entered"&&t.entered,o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&t.hidden]}})(xe(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Gv=Z("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Yv=Z("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiCollapse"}),{addEndListener:s,children:i,className:a,collapsedSize:l="0px",component:c,disablePrefersReducedMotion:d=!1,easing:u,in:h,onEnter:y,onEntered:p,onEntering:g,onExit:f,onExited:S,onExiting:C,orientation:E="vertical",slots:T=Vd,slotProps:w=Vd,style:x,timeout:k=dd.standard,TransitionComponent:R=Fr,...P}=r,N={...r,orientation:E,collapsedSize:l},A=Hv(N),I=En(),v=b.useRef(null),M=b.useRef(null),$=typeof l=="number"?`${l}px`:l,j=E==="horizontal",L=j?"width":"height",U=zr(I.motion.reducedMotion,d),G=b.useRef(null),ee=lt(o,G),B=()=>v.current?v.current[j?"clientWidth":"clientHeight"]:0,O=mt(G,(Ce,ke)=>{v.current&&j&&(v.current.style.position="absolute"),Ce.style[L]=$,y&&y(Ce,ke)}),_=mt(G,(Ce,ke)=>{const Re=B();v.current&&j&&(v.current.style.position="");const{duration:Be,easing:pe}=to({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"&&!U.shouldReduceMotion){const Fe=I.transitions.getAutoHeightDuration(Re);M.current=Fe}else M.current=null;const Ne=U.getTransitionTiming({duration:M.current??Be,delay:void 0});Ce.style.transitionDuration=typeof Ne.duration=="string"?Ne.duration:`${Ne.duration}ms`,Ce.style[L]=`${Re}px`,Ce.style.transitionTimingFunction=pe,g&&g(Ce,ke)}),V=mt(G,(Ce,ke)=>{Ce.style[L]="auto",p&&p(Ce,ke)}),q=mt(G,Ce=>{Ce.style[L]=`${B()}px`,f&&f(Ce)}),Y=mt(G,S),W=mt(G,Ce=>{const ke=B(),{duration:Re,easing:Be}=to({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"&&!U.shouldReduceMotion){const Ne=I.transitions.getAutoHeightDuration(ke);M.current=Ne}else M.current=null;const pe=U.getTransitionTiming({duration:M.current??Re,delay:void 0});Ce.style.transitionDuration=typeof pe.duration=="string"?pe.duration:`${pe.duration}ms`,Ce.style[L]=$,Ce.style.transitionTimingFunction=Be,C&&C(Ce)}),F=s?Ce=>{s(G.current,Ce)}:void 0,z={slots:T,slotProps:w,component:c},[J,oe]=Ee("root",{ref:ee,className:se(A.root,a),elementType:qv,externalForwardedProps:z,ownerState:N,additionalProps:{style:{[j?"minWidth":"minHeight"]:$,...x}}}),[ce,H]=Ee("wrapper",{ref:v,className:A.wrapper,elementType:Gv,externalForwardedProps:z,ownerState:N}),[Se,le]=Ee("wrapperInner",{className:A.wrapperInner,elementType:Yv,externalForwardedProps:z,ownerState:N});return m.jsx(R,{in:h,onEnter:O,onEntered:V,onEntering:_,onExit:q,onExited:Y,onExiting:W,addEndListener:F,getAutoTimeout:k==="auto"?()=>M.current:void 0,reduceMotion:U.shouldReduceMotion,nodeRef:G,timeout:k==="auto"?null:k,...P,children:(Ce,{ownerState:ke,...Re})=>{const Be={...N,state:Ce};return m.jsx(J,{...oe,className:se(oe.className,{entered:A.entered,exited:!h&&$==="0px"&&A.hidden}[Ce]),ownerState:Be,...Re,children:m.jsx(ce,{...H,ownerState:Be,children:m.jsx(Se,{...le,ownerState:Be,children:i})})})}})});process.env.NODE_ENV!=="production"&&(xi.propTypes={addEndListener:n.func,children:n.node,classes:n.object,className:n.string,collapsedSize:n.oneOfType([n.number,n.string]),component:il,disablePrefersReducedMotion:n.bool,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,orientation:n.oneOf(["horizontal","vertical"]),slotProps:n.shape({root:n.oneOfType([n.func,n.object]),wrapper:n.oneOfType([n.func,n.object]),wrapperInner:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType,wrapper:n.elementType,wrapperInner:n.elementType}),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timeout:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])}),xi&&(xi.muiSupportAuto=!0);function Kv(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 e===null?"null":e.constructor.name;default:return t}}function Wd(e,t,o,r){const s=e[t];if(s==null||!Number.isInteger(s)){const i=Kv(s);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${o}\`, expected \`integer\`.`)}return null}function Ud(e,t,o,r){return e[t]===void 0?null:Wd(e,t,o,r)}function hl(){return null}Ud.isRequired=Wd,hl.isRequired=hl;const Jo=process.env.NODE_ENV==="production"?hl:Ud;function Xv(e){return he("MuiPaper",e)}ge("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jv=e=>{const{square:t,elevation:o,variant:r,classes:s}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${o}`]};return be(i,Xv,s)},Qv=Z("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(xe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...et(e,"box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Fn=b.forwardRef(function(t,o){var p;const r=Te({props:t,name:"MuiPaper"}),s=En(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...u}=r,h={...r,component:a,elevation:l,square:c,variant:d},y=Jv(h);return process.env.NODE_ENV!=="production"&&s.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
149
|
-
`)),m.jsx(Qv,{as:a,ownerState:h,className:se(y.root,i),ref:o,...u,style:{...d==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[l],...s.vars&&{"--Paper-overlay":(p=s.vars.overlays)==null?void 0:p[l]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${dn("#fff",ol(l))}, ${dn("#fff",ol(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Fn.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,elevation:fn(Jo,e=>{const{elevation:t,variant:o}=e;return t>0&&o==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["elevation","outlined"]),n.string])});function Si(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
150
|
-
`))}return!1}function Zv(e){const{focusableWhenDisabled:t,disabled:o,composite:r=!1,tabIndex:s=0,isNativeButton:i}=e,a=r&&t!==!1,l=r&&t===!1;return b.useMemo(()=>{const d={onKeyDown(u){o&&t&&u.key!=="Tab"&&u.preventDefault()}};return r||(d.tabIndex=s,!i&&o&&(d.tabIndex=t?s:-1)),(i&&(t||a)||!i&&o)&&(d["aria-disabled"]=o),i&&(!t||l)&&(d.disabled=o),d},[r,o,t,a,l,i,s])}const ex={};function tx(e){const{nativeButton:t,nativeButtonProp:o,internalNativeButton:r=t,allowInferredHostMismatch:s=!1,disabled:i,type:a,hasFormAction:l=!1,tabIndex:c=0,focusableWhenDisabled:d,stopEventPropagation:u=!1,onBeforeKeyDown:h,onBeforeKeyUp:y}=e,p=b.useRef(null),g=d===!0,f=Zv({focusableWhenDisabled:g,disabled:i,isNativeButton:t,tabIndex:c});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{const T=p.current;if(T==null)return;const w=T.tagName==="BUTTON";if(o!==void 0){o&&!w&&console.error("MUI: A component that acts as a button expected a native <button> because the `nativeButton` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Render a real <button> or set `nativeButton` to `false`."),!o&&w&&console.error("MUI: A component that acts as a button expected a non-<button> because the `nativeButton` prop is false. Rendering a <button> keeps native behavior while additionally applies non-native attributes and handlers, which can add unintended extra attributes (such as `role` or `aria-disabled`). Render a non-<button> such as <div>, or set `nativeButton` to `true`.");return}s||(r&&!w&&console.error("MUI: A component rendering a native <button> resolved to a non-<button> element, but `nativeButton={false}` was not specified and the resolved root is a non-<button>. When rendering a custom component, set `nativeButton={false}` explicitly or render a <button> element."),!r&&w&&console.error("MUI: A component that acts as a non-native button resolved to a native <button> element, but `nativeButton={true}` was not specified. When rendering a custom component, set `nativeButton={true}` explicitly or render a non-<button> element."))},[s,r,o]);const S=b.useCallback(()=>{const T=p.current;return T==null?t:T.tagName==="BUTTON"?!0:!!(T.tagName==="A"&&T.href)},[t]),C=b.useMemo(()=>{const T=g?{}:{tabIndex:i?-1:c};return t?(T.type=a===void 0&&!l?"button":a,g||(T.disabled=i)):(T.role="button",!g&&i&&(T["aria-disabled"]=i)),g?{...T,...f}:T},[i,g,f,l,t,c,a]);return{getButtonProps:b.useCallback((T=ex)=>{const{onClick:w,onKeyDown:x,onKeyUp:k,...R}=T;return{...C,...R,onClick:I=>{if(u&&I.stopPropagation(),i){I.preventDefault();return}w==null||w(I)},onKeyDown:I=>{if(g&&f.onKeyDown(I),!i&&(h==null||h(I),x==null||x(I),!(I.target!==I.currentTarget||S()))){if(I.key===" "){I.preventDefault();return}I.key==="Enter"&&(I.preventDefault(),I.currentTarget.click())}},onKeyUp:I=>{i||(y==null||y(I),k==null||k(I),I.target===I.currentTarget&&!S()&&I.key===" "&&!I.defaultPrevented&&I.currentTarget.click())}}},[C,i,g,f,S,h,y,u]),rootRef:p}}class Ti{constructor(){xs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ti}static use(){const t=ml(Ti.create).current,[o,r]=b.useState(!1);return t.shouldMount=o,t.setShouldMount=r,b.useEffect(t.mountEffect,[o]),t}mount(){return this.mounted||(this.mounted=ox(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...t)})}stop(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...t)})}pulsate(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...t)})}}function nx(){return Ti.use()}function ox(){let e,t;const o=new Promise((r,s)=>{e=r,t=s});return o.resolve=e,o.reject=t,o}const rx=[];function Hd(e){b.useEffect(e,rx)}class Ci{constructor(){xs(this,"currentId",null);xs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});xs(this,"disposeEffect",()=>this.clear)}static create(){return new Ci}start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,o()},t)}}function zn(){const e=ml(Ci.create).current;return Hd(e.disposeEffect),e}function qd(e){const{className:t,classes:o,pulsate:r=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:d}=e,[u,h]=b.useState(!1),y=zn(),p=b.useRef(!1),g=b.useRef(c);g.current=c;const f=c!=null,S=se(t,o.ripple,o.rippleVisible,r&&o.ripplePulsate),C={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},E=se(o.child,u&&o.childLeaving,r&&o.childPulsate);return!l&&!u&&h(!0),b.useEffect(()=>{!l&&f?p.current||(p.current=!0,y.start(d,()=>{var T;p.current=!1,(T=g.current)==null||T.call(g)})):(p.current=!1,y.clear())},[y,f,l,d]),m.jsx("span",{className:S,style:C,children:m.jsx("span",{className:E})})}process.env.NODE_ENV!=="production"&&(qd.propTypes={classes:n.object.isRequired,className:n.string,in:n.bool,onExited:n.func,pulsate:n.bool,rippleSize:n.number,rippleX:n.number,rippleY:n.number,timeout:n.number.isRequired});const zt=ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),gl=550,sx=80,wi={},Gd=[],ix=()=>{};function bl(e,t){const o=new Set(t),r=new Map;let s=[];for(const a of e)o.has(a)?s.length>0&&(r.set(a,s),s=[]):s.push(a);const i=[];for(const a of t){const l=r.get(a);l&&i.push(...l),i.push(a)}return i.push(...s),i}function ax({event:e,element:t,center:o}){const r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0};let s,i;if(o||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)s=Math.round(r.width/2),i=Math.round(r.height/2);else{const{clientX:l,clientY:c}=e.touches&&e.touches.length>0?e.touches[0]:e;s=Math.round(l-r.left),i=Math.round(c-r.top)}let a;if(o)a=Math.sqrt((2*r.width**2+r.height**2)/3),a%2===0&&(a+=1);else{const l=Math.max(Math.abs((t?t.clientWidth:0)-s),s)*2+2,c=Math.max(Math.abs((t?t.clientHeight:0)-i),i)*2+2;a=Math.sqrt(l**2+c**2)}return{rippleX:s,rippleY:i,rippleSize:a}}const lx=Or`
|
|
150
|
+
export default theme;`}function Ba(e={},...t){const{breakpoints:o,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:l={},shape:c,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":hn(20));const u=La(s),m=Cr(e);let h=Rt(m,{mixins:kb(m.breakpoints,r),palette:u,shadows:Ib.slice(),typography:Hu(u,l),transitions:Ab(a),zIndex:{...Db}});if(h=Rt(h,d),h=t.reduce((y,g)=>Rt(y,g),h),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(p,C)=>{let w;for(w in p){const E=p[w];if(y.includes(w)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const x=ge("",w);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
151
|
+
`))}p[w]={}}}};Object.keys(h.components).forEach(p=>{const C=h.components[p].styleOverrides;C&&p.startsWith("Mui")&&g(C,p)})}return h.unstable_sxConfig={...xr,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return Wn({sx:g,theme:this})},h.toRuntimeSource=Yu,h}function Fa(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Lb=[...Array(25)].map((e,t)=>{if(t===0)return"none";const o=Fa(t);return`linear-gradient(rgba(255 255 255 / ${o}), rgba(255 255 255 / ${o}))`});function Ku(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Xu(e){return e==="dark"?Lb:[]}function Bb(e){const{palette:t={mode:"light"},opacity:o,overlays:r,...i}=e,s=La(t);return{palette:s,opacity:{...Ku(s.mode),...o},overlays:r||Xu(s.mode),...i}}function Fb(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const zb=e=>[...[...Array(25)].map((t,o)=>`--${e?`${e}-`:""}overlays-${o}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Vb=e=>(t,o)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return zb(e.cssVarPrefix).forEach(l=>{a[l]=o[l],delete o[l]}),s==="media"?{[r]:o,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:o}:{[r]:{...o,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:o}};if(s)return s.replace("%s",String(t))}return r};function Wb(e,t){t.forEach(o=>{e[o]||(e[o]={})})}function te(e,t,o){!e[t]&&o&&(e[t]=o)}function Pr(e){return typeof e!="string"||!e.startsWith("hsl")?e:du(e)}function Nn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Pr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
152
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Ub(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Sn=e=>{try{return e()}catch{}},Hb=(e="mui")=>Ug(e);function za(e,t,o,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!o){e[r]=Bb({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:s,...a}=Ba({...o,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:s,opacity:{...Ku(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Xu(i)},a}function qb(e={},...t){const{colorSchemes:o={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:a=Fb,colorSchemeSelector:l=o.light&&o.dark?"media":void 0,rootSelector:c=":root",...d}=e,u=Object.keys(o)[0],m=r||(o.light&&u!=="light"?"light":u),h=Hb(s),{[m]:y,light:g,dark:p,...C}=o,w={...C};let E=y;if((m==="dark"&&!("dark"in o)||m==="light"&&!("light"in o))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:hn(21,m));const x=za(w,E,d,m);g&&!w.light&&za(w,g,void 0,"light"),p&&!w.dark&&za(w,p,void 0,"dark");let T={defaultColorScheme:m,...x,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:w,font:{...Ob(x.typography),...x.font},spacing:Ub(d.spacing)};Object.keys(T.colorSchemes).forEach(R=>{const b=T.colorSchemes[R].palette,j=N=>{const M=N.split("-"),z=M[1],F=M[2];return h(N,b[z][F])};if(b.mode==="light"&&(te(b.common,"background","#fff"),te(b.common,"onBackground","#000")),b.mode==="dark"&&(te(b.common,"background","#000"),te(b.common,"onBackground","#fff")),Wb(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){te(b.Alert,"errorColor",lt(b.error.light,.6)),te(b.Alert,"infoColor",lt(b.info.light,.6)),te(b.Alert,"successColor",lt(b.success.light,.6)),te(b.Alert,"warningColor",lt(b.warning.light,.6)),te(b.Alert,"errorFilledBg",j("palette-error-main")),te(b.Alert,"infoFilledBg",j("palette-info-main")),te(b.Alert,"successFilledBg",j("palette-success-main")),te(b.Alert,"warningFilledBg",j("palette-warning-main")),te(b.Alert,"errorFilledColor",Sn(()=>b.getContrastText(b.error.main))),te(b.Alert,"infoFilledColor",Sn(()=>b.getContrastText(b.info.main))),te(b.Alert,"successFilledColor",Sn(()=>b.getContrastText(b.success.main))),te(b.Alert,"warningFilledColor",Sn(()=>b.getContrastText(b.warning.main))),te(b.Alert,"errorStandardBg",ct(b.error.light,.9)),te(b.Alert,"infoStandardBg",ct(b.info.light,.9)),te(b.Alert,"successStandardBg",ct(b.success.light,.9)),te(b.Alert,"warningStandardBg",ct(b.warning.light,.9)),te(b.Alert,"errorIconColor",j("palette-error-main")),te(b.Alert,"infoIconColor",j("palette-info-main")),te(b.Alert,"successIconColor",j("palette-success-main")),te(b.Alert,"warningIconColor",j("palette-warning-main")),te(b.AppBar,"defaultBg",j("palette-grey-100")),te(b.Avatar,"defaultBg",j("palette-grey-400")),te(b.Button,"inheritContainedBg",j("palette-grey-300")),te(b.Button,"inheritContainedHoverBg",j("palette-grey-A100")),te(b.Chip,"defaultBorder",j("palette-grey-400")),te(b.Chip,"defaultAvatarColor",j("palette-grey-700")),te(b.Chip,"defaultIconColor",j("palette-grey-700")),te(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(b.LinearProgress,"primaryBg",ct(b.primary.main,.62)),te(b.LinearProgress,"secondaryBg",ct(b.secondary.main,.62)),te(b.LinearProgress,"errorBg",ct(b.error.main,.62)),te(b.LinearProgress,"infoBg",ct(b.info.main,.62)),te(b.LinearProgress,"successBg",ct(b.success.main,.62)),te(b.LinearProgress,"warningBg",ct(b.warning.main,.62)),te(b.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),te(b.Slider,"primaryTrack",ct(b.primary.main,.62)),te(b.Slider,"secondaryTrack",ct(b.secondary.main,.62)),te(b.Slider,"errorTrack",ct(b.error.main,.62)),te(b.Slider,"infoTrack",ct(b.info.main,.62)),te(b.Slider,"successTrack",ct(b.success.main,.62)),te(b.Slider,"warningTrack",ct(b.warning.main,.62));const N=Hi(b.background.default,.8);te(b.SnackbarContent,"bg",N),te(b.SnackbarContent,"color",Sn(()=>b.getContrastText(N))),te(b.SpeedDialAction,"fabHoverBg",Hi(b.background.paper,.15)),te(b.StepConnector,"border",j("palette-grey-400")),te(b.StepContent,"border",j("palette-grey-400")),te(b.Switch,"defaultColor",j("palette-common-white")),te(b.Switch,"defaultDisabledColor",j("palette-grey-100")),te(b.Switch,"primaryDisabledColor",ct(b.primary.main,.62)),te(b.Switch,"secondaryDisabledColor",ct(b.secondary.main,.62)),te(b.Switch,"errorDisabledColor",ct(b.error.main,.62)),te(b.Switch,"infoDisabledColor",ct(b.info.main,.62)),te(b.Switch,"successDisabledColor",ct(b.success.main,.62)),te(b.Switch,"warningDisabledColor",ct(b.warning.main,.62)),te(b.TableCell,"border",ct(Ui(b.divider,1),.88)),te(b.Tooltip,"bg",Ui(b.grey[700],.92))}if(b.mode==="dark"){te(b.Alert,"errorColor",ct(b.error.light,.6)),te(b.Alert,"infoColor",ct(b.info.light,.6)),te(b.Alert,"successColor",ct(b.success.light,.6)),te(b.Alert,"warningColor",ct(b.warning.light,.6)),te(b.Alert,"errorFilledBg",j("palette-error-dark")),te(b.Alert,"infoFilledBg",j("palette-info-dark")),te(b.Alert,"successFilledBg",j("palette-success-dark")),te(b.Alert,"warningFilledBg",j("palette-warning-dark")),te(b.Alert,"errorFilledColor",Sn(()=>b.getContrastText(b.error.dark))),te(b.Alert,"infoFilledColor",Sn(()=>b.getContrastText(b.info.dark))),te(b.Alert,"successFilledColor",Sn(()=>b.getContrastText(b.success.dark))),te(b.Alert,"warningFilledColor",Sn(()=>b.getContrastText(b.warning.dark))),te(b.Alert,"errorStandardBg",lt(b.error.light,.9)),te(b.Alert,"infoStandardBg",lt(b.info.light,.9)),te(b.Alert,"successStandardBg",lt(b.success.light,.9)),te(b.Alert,"warningStandardBg",lt(b.warning.light,.9)),te(b.Alert,"errorIconColor",j("palette-error-main")),te(b.Alert,"infoIconColor",j("palette-info-main")),te(b.Alert,"successIconColor",j("palette-success-main")),te(b.Alert,"warningIconColor",j("palette-warning-main")),te(b.AppBar,"defaultBg",j("palette-grey-900")),te(b.AppBar,"darkBg",j("palette-background-paper")),te(b.AppBar,"darkColor",j("palette-text-primary")),te(b.Avatar,"defaultBg",j("palette-grey-600")),te(b.Button,"inheritContainedBg",j("palette-grey-800")),te(b.Button,"inheritContainedHoverBg",j("palette-grey-700")),te(b.Chip,"defaultBorder",j("palette-grey-700")),te(b.Chip,"defaultAvatarColor",j("palette-grey-300")),te(b.Chip,"defaultIconColor",j("palette-grey-300")),te(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(b.LinearProgress,"primaryBg",lt(b.primary.main,.5)),te(b.LinearProgress,"secondaryBg",lt(b.secondary.main,.5)),te(b.LinearProgress,"errorBg",lt(b.error.main,.5)),te(b.LinearProgress,"infoBg",lt(b.info.main,.5)),te(b.LinearProgress,"successBg",lt(b.success.main,.5)),te(b.LinearProgress,"warningBg",lt(b.warning.main,.5)),te(b.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),te(b.Slider,"primaryTrack",lt(b.primary.main,.5)),te(b.Slider,"secondaryTrack",lt(b.secondary.main,.5)),te(b.Slider,"errorTrack",lt(b.error.main,.5)),te(b.Slider,"infoTrack",lt(b.info.main,.5)),te(b.Slider,"successTrack",lt(b.success.main,.5)),te(b.Slider,"warningTrack",lt(b.warning.main,.5));const N=Hi(b.background.default,.98);te(b.SnackbarContent,"bg",N),te(b.SnackbarContent,"color",Sn(()=>b.getContrastText(N))),te(b.SpeedDialAction,"fabHoverBg",Hi(b.background.paper,.15)),te(b.StepConnector,"border",j("palette-grey-600")),te(b.StepContent,"border",j("palette-grey-600")),te(b.Switch,"defaultColor",j("palette-grey-300")),te(b.Switch,"defaultDisabledColor",j("palette-grey-600")),te(b.Switch,"primaryDisabledColor",lt(b.primary.main,.55)),te(b.Switch,"secondaryDisabledColor",lt(b.secondary.main,.55)),te(b.Switch,"errorDisabledColor",lt(b.error.main,.55)),te(b.Switch,"infoDisabledColor",lt(b.info.main,.55)),te(b.Switch,"successDisabledColor",lt(b.success.main,.55)),te(b.Switch,"warningDisabledColor",lt(b.warning.main,.55)),te(b.TableCell,"border",lt(Ui(b.divider,1),.68)),te(b.Tooltip,"bg",Ui(b.grey[700],.92))}Nn(b.background,"default"),Nn(b.background,"paper"),Nn(b.common,"background"),Nn(b.common,"onBackground"),Nn(b,"divider"),Object.keys(b).forEach(N=>{const M=b[N];N!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&te(b[N],"mainChannel",Tr(Pr(M.main))),M.light&&te(b[N],"lightChannel",Tr(Pr(M.light))),M.dark&&te(b[N],"darkChannel",Tr(Pr(M.dark))),M.contrastText&&te(b[N],"contrastTextChannel",Tr(Pr(M.contrastText))),N==="text"&&(Nn(b[N],"primary"),Nn(b[N],"secondary")),N==="action"&&(M.active&&Nn(b[N],"active"),M.selected&&Nn(b[N],"selected")))})}),T=t.reduce((R,b)=>Rt(R,b),T);const S={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:Vb(T)},{vars:P,generateThemeVars:O,generateStyleSheets:k}=Gg(T,S);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([R,b])=>{T[R]=b}),T.generateThemeVars=O,T.generateStyleSheets=k,T.generateSpacing=function(){return Qc(d.spacing,Ai(this))},T.getColorSchemeSelector=Yg(l),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...xr,...d==null?void 0:d.unstable_sxConfig},T.unstable_sx=function(b){return Wn({sx:b,theme:this})},T.toRuntimeSource=Yu,T}function Ju(e,t,o){e.colorSchemes&&o&&(e.colorSchemes[t]={...o!==!0&&o,palette:La({...o===!0?{}:o.palette,mode:t})})}function Qi(e={},...t){const{palette:o,cssVariables:r=!1,colorSchemes:i=o?void 0:{light:!0},defaultColorScheme:s=o==null?void 0:o.mode,...a}=e,l=s||"light",c=i==null?void 0:i[l],d={...i,...o?{[l]:{...typeof c!="boolean"&&c,palette:o}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ba(e,...t);let u=o;"palette"in e||d[l]&&(d[l]!==!0?u=d[l].palette:l==="dark"&&(u={mode:"dark"}));const m=Ba({...e,palette:u},...t);return m.defaultColorScheme=l,m.colorSchemes=d,m.palette.mode==="light"&&(m.colorSchemes.light={...d.light!==!0&&d.light,palette:m.palette},Ju(m,"dark",d.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:m.palette},Ju(m,"light",d.light)),m}return!o&&!("light"in d)&&l==="light"&&(d.light=!0),qb({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Va=Qi();function Mn(){const e=Sr(Va);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e[gn]||e}function Zu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $t=e=>Zu(e)&&e!=="classes",Z=au({themeId:gn,defaultTheme:Va,rootShouldForwardProp:$t});function Gb({theme:e,...t}){const o=gn in e?e[gn]:void 0;return f.jsx(kr,{...t,themeId:o?gn:void 0,theme:o||e})}const es={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Yb}=Wg({themeId:gn,theme:()=>Qi({cssVariables:!0}),colorSchemeStorageKey:es.colorSchemeStorageKey,modeStorageKey:es.modeStorageKey,defaultColorScheme:{light:es.defaultLightColorScheme,dark:es.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Hu(e.palette,e.typography)};return t.unstable_sx=function(r){return Wn({sx:r,theme:this})},t}}),Kb=Yb;function ts({theme:e,...t}){const o=v.useMemo(()=>{if(typeof e=="function")return e;const r=gn in e?e[gn]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return o?f.jsx(Gb,{theme:o,...t}):f.jsx(Kb,{theme:e,...t})}function Qu(e){return f.jsx(wa,{...e,defaultTheme:Va,themeId:gn})}process.env.NODE_ENV!=="production"&&(Qu.propTypes={styles:n.oneOfType([n.array,n.func,n.number,n.object,n.string,n.bool])});function Xb(e){return function(o){return f.jsx(Qu,{styles:typeof e=="function"?r=>e({theme:r,...o}):e})}}function Jb(){return zi}const ve=Ag;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function xe(e){return Ng(e)}function Zb(e){return ge("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qb=e=>{const{color:t,fontSize:o,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ee(t)}`,`fontSize${ee(o)}`]};return ye(i,Zb,r)},ey=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="inherit"&&t[`color${ee(o.color)}`],t[`fontSize${ee(o.fontSize)}`]]}})(ve(({theme:e})=>{var t,o,r,i,s,a,l,c,d,u,m,h,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(o=(e.vars??e).transitions)==null?void 0:o.duration)==null?void 0:r.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:u.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var C,w;return{props:{color:p},style:{color:(w=(C=(e.vars??e).palette)==null?void 0:C[p])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),$r=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:m,viewBox:h="0 0 24 24",...y}=r,g=v.isValidElement(i)&&i.type==="svg",p={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},C={};u||(C.viewBox=h);const w=Qb(p);return f.jsxs(ey,{as:l,className:ae(w.root,s),focusable:"false",color:d,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:o,...C,...y,...g&&i.props,ownerState:p,children:[g?i.props.children:i,m?f.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&($r.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,fontSize:n.oneOfType([n.oneOf(["inherit","large","medium","small"]),n.string]),htmlColor:n.string,inheritViewBox:n.bool,shapeRendering:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleAccess:n.string,viewBox:n.string}),$r.muiName="SvgIcon";function dt(e,t){function o(r,i){return f.jsx($r,{"data-testid":`${t}Icon`,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(o.displayName=`${t}Icon`),o.muiName=$r.muiName,v.memo(v.forwardRef(o))}function Wa(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return i=>{const s=typeof t=="function"?t(i):t,a=typeof e=="function"?e({...i,...s}):e,l=ae(i==null?void 0:i.className,s==null?void 0:s.className,a==null?void 0:a.className);return{...s,...a,...!!l&&{className:l},...(s==null?void 0:s.style)&&(a==null?void 0:a.style)&&{style:{...s.style,...a.style}},...(s==null?void 0:s.sx)&&(a==null?void 0:a.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const o=t,r=ae(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...!!r&&{className:r},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ed(e,t){if(e==null)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;o[r]=e[r]}return o}function Ua(e,t){return Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},Ua(e,t)}function td(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ua(e,t)}const nd={disabled:!1};var ty=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.shape({enter:n.number,exit:n.number,appear:n.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&n.oneOfType([n.string,n.shape({enter:n.string,exit:n.string,active:n.string}),n.shape({enter:n.string,enterDone:n.string,enterActive:n.string,exit:n.string,exitDone:n.string,exitActive:n.string})]);const ns=$.createContext(null);var ny=function(t){return t.scrollTop},Rr="unmounted",uo="exited",po="entering",Vo="entered",Ha="exiting",nn=(function(e){td(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=uo,s.appearStatus=po):c=Vo:r.unmountOnExit||r.mountOnEnter?c=Rr:c=uo,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===Rr?{status:uo}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==po&&a!==Vo&&(s=po):(a===po||a===Vo)&&(s=Ha)}this.updateStatus(!1,s)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var i=this.props.timeout,s,a,l;return s=a=l=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:l}},o.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===po){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this);a&&ny(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===uo&&this.setState({status:Rr})},o.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[un.findDOMNode(this),l],d=c[0],u=c[1],m=this.getTimeouts(),h=l?m.appear:m.enter;if(!i&&!a||nd.disabled){this.safeSetState({status:Vo},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:po},function(){s.props.onEntering(d,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Vo},function(){s.props.onEntered(d,u)})})})},o.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:un.findDOMNode(this);if(!s||nd.disabled){this.safeSetState({status:uo},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ha},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:uo},function(){i.props.onExited(l)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},o.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},o.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}i!=null&&setTimeout(this.nextCallback,i)},o.render=function(){var i=this.state.status;if(i===Rr)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=ed(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $.createElement(ns.Provider,{value:null},typeof a=="function"?a(i,l):$.cloneElement($.Children.only(a),l))},t})($.Component);nn.contextType=ns,nn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:n.shape({current:typeof Element>"u"?n.any:function(e,t,o,r,i,s){var a=e[t];return n.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,o,r,i,s)}}),children:n.oneOfType([n.func.isRequired,n.element.isRequired]).isRequired,in:n.bool,mountOnEnter:n.bool,unmountOnExit:n.bool,appear:n.bool,enter:n.bool,exit:n.bool,timeout:function(t){var o=ty;t.addEndListener||(o=o.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return o.apply(void 0,[t].concat(i))},addEndListener:n.func,onEnter:n.func,onEntering:n.func,onEntered:n.func,onExit:n.func,onExiting:n.func,onExited:n.func}:{};function Wo(){}nn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wo,onEntering:Wo,onEntered:Wo,onExit:Wo,onExiting:Wo,onExited:Wo},nn.UNMOUNTED=Rr,nn.EXITED=uo,nn.ENTERING=po,nn.ENTERED=Vo,nn.EXITING=Ha;function oy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qa(e,t){var o=function(s){return t&&$.isValidElement(s)?t(s):s},r=Object.create(null);return e&&$.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=o(i)}),r}function ry(e,t){e=e||{},t=t||{};function o(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var d=r[c][a];l[r[c][a]]=o(d)}l[c]=o(c)}for(a=0;a<i.length;a++)l[i[a]]=o(i[a]);return l}function fo(e,t,o){return o[t]!=null?o[t]:e.props[t]}function iy(e,t){return qa(e.children,function(o){return $.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:fo(o,"appear",e),enter:fo(o,"enter",e),exit:fo(o,"exit",e)})})}function sy(e,t,o){var r=qa(e.children),i=ry(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if($.isValidElement(a)){var l=s in t,c=s in r,d=t[s],u=$.isValidElement(d)&&!d.props.in;c&&(!l||u)?i[s]=$.cloneElement(a,{onExited:o.bind(null,a),in:!0,exit:fo(a,"exit",e),enter:fo(a,"enter",e)}):!c&&l&&!u?i[s]=$.cloneElement(a,{in:!1}):c&&l&&$.isValidElement(d)&&(i[s]=$.cloneElement(a,{onExited:o.bind(null,a),in:d.props.in,exit:fo(a,"exit",e),enter:fo(a,"enter",e)}))}}),i}var ay=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ly={component:"div",childFactory:function(t){return t}},Ga=(function(e){td(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(oy(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?iy(i,l):sy(i,a,l),firstRender:!1}},o.handleExited=function(i,s){var a=qa(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(l){var c=gi({},l.children);return delete c[i.key],{children:c}}))},o.render=function(){var i=this.props,s=i.component,a=i.childFactory,l=ed(i,["component","childFactory"]),c=this.state.contextValue,d=ay(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?$.createElement(ns.Provider,{value:c},d):$.createElement(ns.Provider,{value:c},$.createElement(s,l,d))},t})($.Component);Ga.propTypes=process.env.NODE_ENV!=="production"?{component:n.any,children:n.node,appear:n.bool,enter:n.bool,exit:n.bool,childFactory:n.func}:{},Ga.defaultProps=ly;const Ya=e=>e.scrollTop;function qn(e,t){const{timeout:o,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof o=="number"?o:o[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function cy(e){return ge("MuiCollapse",e)}be("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const uy=e=>{const{orientation:t,classes:o}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return ye(r,cy,o)},dy=Z("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.state==="entered"&&t.entered,o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&t.hidden]}})(ve(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),py=Z("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fy=Z("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),os=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiCollapse"}),{addEndListener:i,children:s,className:a,collapsedSize:l="0px",component:c,easing:d,in:u,onEnter:m,onEntered:h,onEntering:y,onExit:g,onExited:p,onExiting:C,orientation:w="vertical",style:E,timeout:x=qu.standard,TransitionComponent:T=nn,...S}=r,P={...r,orientation:w,collapsedSize:l},O=uy(P),k=Mn(),R=lo(),b=v.useRef(null),j=v.useRef(),N=typeof l=="number"?`${l}px`:l,M=w==="horizontal",z=M?"width":"height",F=v.useRef(null),L=mt(o,F),X=_=>G=>{if(_){const H=F.current;G===void 0?_(H):_(H,G)}},J=()=>b.current?b.current[M?"clientWidth":"clientHeight"]:0,W=X((_,G)=>{b.current&&M&&(b.current.style.position="absolute"),_.style[z]=N,m&&m(_,G)}),B=X((_,G)=>{const H=J();b.current&&M&&(b.current.style.position="");const{duration:ne,easing:se}=qn({style:E,timeout:x,easing:d},{mode:"enter"});if(x==="auto"){const ce=k.transitions.getAutoHeightDuration(H);_.style.transitionDuration=`${ce}ms`,j.current=ce}else _.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;_.style[z]=`${H}px`,_.style.transitionTimingFunction=se,y&&y(_,G)}),A=X((_,G)=>{_.style[z]="auto",h&&h(_,G)}),Q=X(_=>{_.style[z]=`${J()}px`,g&&g(_)}),Y=X(p),q=X(_=>{const G=J(),{duration:H,easing:ne}=qn({style:E,timeout:x,easing:d},{mode:"exit"});if(x==="auto"){const se=k.transitions.getAutoHeightDuration(G);_.style.transitionDuration=`${se}ms`,j.current=se}else _.style.transitionDuration=typeof H=="string"?H:`${H}ms`;_.style[z]=N,_.style.transitionTimingFunction=ne,C&&C(_)}),U=_=>{x==="auto"&&R.start(j.current||0,_),i&&i(F.current,_)};return f.jsx(T,{in:u,onEnter:W,onEntered:A,onEntering:B,onExit:Q,onExited:Y,onExiting:q,addEndListener:U,nodeRef:F,timeout:x==="auto"?null:x,...S,children:(_,{ownerState:G,...H})=>f.jsx(dy,{as:c,className:ae(O.root,a,{entered:O.entered,exited:!u&&N==="0px"&&O.hidden}[_]),style:{[M?"minWidth":"minHeight"]:N,...E},ref:L,ownerState:{...P,state:_},...H,children:f.jsx(py,{ownerState:{...P,state:_},className:O.wrapper,ref:b,children:f.jsx(fy,{ownerState:{...P,state:_},className:O.wrapperInner,children:s})})})})});process.env.NODE_ENV!=="production"&&(os.propTypes={addEndListener:n.func,children:n.node,classes:n.object,className:n.string,collapsedSize:n.oneOfType([n.number,n.string]),component:Or,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,orientation:n.oneOf(["horizontal","vertical"]),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timeout:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])}),os&&(os.muiSupportAuto=!0);function my(e){return ge("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const hy=e=>{const{square:t,elevation:o,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${o}`]};return ye(s,my,i)},gy=Z("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(ve(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),An=v.forwardRef(function(t,o){var y;const r=xe({props:t,name:"MuiPaper"}),i=Mn(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...u}=r,m={...r,component:a,elevation:l,square:c,variant:d},h=hy(m);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
153
|
+
`)),f.jsx(gy,{as:a,ownerState:m,className:ae(h.root,s),ref:o,...u,style:{...d==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":(y=i.vars.overlays)==null?void 0:y[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ke("#fff",Fa(l))}, ${ke("#fff",Fa(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(An.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,elevation:tn(Bo,e=>{const{elevation:t,variant:o}=e;return t>0&&o==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["elevation","outlined"]),n.string])});function Ne(e,t){const{className:o,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:u={[e]:void 0},slotProps:m={[e]:void 0},...h}=s,y=u[e]||r,g=Eu(m[e],i),{props:{component:p,...C},internalRef:w}=wu({className:o,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),E=mt(w,g==null?void 0:g.ref,t.ref),x=e==="root"?p||d:p,T=Cu(y,{...e==="root"&&!d&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...C,...x&&!l&&{as:x},...x&&l&&{component:x},ref:E},i);return[y,T]}class rs{constructor(){mi(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new rs}static use(){const t=bu(rs.create).current,[o,r]=v.useState(!1);return t.shouldMount=o,t.setShouldMount=r,v.useEffect(t.mountEffect,[o]),t}mount(){return this.mounted||(this.mounted=yy(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...t)})}stop(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...t)})}pulsate(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...t)})}}function by(){return rs.use()}function yy(){let e,t;const o=new Promise((r,i)=>{e=r,t=i});return o.resolve=e,o.reject=t,o}function od(e){const{className:t,classes:o,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:d}=e,[u,m]=v.useState(!1),h=ae(t,o.ripple,o.rippleVisible,r&&o.ripplePulsate),y={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=ae(o.child,u&&o.childLeaving,r&&o.childPulsate);return!l&&!u&&m(!0),v.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,d);return()=>{clearTimeout(p)}}},[c,l,d]),f.jsx("span",{className:h,style:y,children:f.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(od.propTypes={classes:n.object.isRequired,className:n.string,in:n.bool,onExited:n.func,pulsate:n.bool,rippleSize:n.number,rippleX:n.number,rippleY:n.number,timeout:n.number.isRequired});const on=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ka=550,vy=80,xy=br`
|
|
151
154
|
0% {
|
|
152
155
|
transform: scale(0);
|
|
153
156
|
opacity: 0.1;
|
|
@@ -157,7 +160,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
157
160
|
transform: scale(1);
|
|
158
161
|
opacity: 0.3;
|
|
159
162
|
}
|
|
160
|
-
`,
|
|
163
|
+
`,Cy=br`
|
|
161
164
|
0% {
|
|
162
165
|
opacity: 1;
|
|
163
166
|
}
|
|
@@ -165,7 +168,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
165
168
|
100% {
|
|
166
169
|
opacity: 0;
|
|
167
170
|
}
|
|
168
|
-
`,
|
|
171
|
+
`,Sy=br`
|
|
169
172
|
0% {
|
|
170
173
|
transform: scale(1);
|
|
171
174
|
}
|
|
@@ -177,52 +180,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
177
180
|
100% {
|
|
178
181
|
transform: scale(1);
|
|
179
182
|
}
|
|
180
|
-
|
|
181
|
-
&.${zt.rippleVisible} {
|
|
182
|
-
animation-name: ${lx};
|
|
183
|
-
animation-duration: ${gl}ms;
|
|
184
|
-
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
&.${zt.ripplePulsate} {
|
|
188
|
-
animation-duration: ${e.transitions.duration.shorter}ms;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
& .${zt.childLeaving} {
|
|
192
|
-
animation-name: ${cx};
|
|
193
|
-
animation-duration: ${gl}ms;
|
|
194
|
-
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
& .${zt.childPulsate} {
|
|
198
|
-
animation-name: ${ux};
|
|
199
|
-
animation-duration: 2500ms;
|
|
200
|
-
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
201
|
-
animation-iteration-count: infinite;
|
|
202
|
-
animation-delay: 200ms;
|
|
203
|
-
}
|
|
204
|
-
`;return e.motion.reducedMotion==="system"?Er`
|
|
205
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
206
|
-
${t}
|
|
207
|
-
}
|
|
208
|
-
`:t}const px=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),fx=Z(qd,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
183
|
+
`,Ty=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),wy=Z(od,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
209
184
|
opacity: 0;
|
|
210
185
|
position: absolute;
|
|
211
186
|
|
|
212
|
-
&.${
|
|
187
|
+
&.${on.rippleVisible} {
|
|
213
188
|
opacity: 0.3;
|
|
214
189
|
transform: scale(1);
|
|
190
|
+
animation-name: ${xy};
|
|
191
|
+
animation-duration: ${Ka}ms;
|
|
192
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.${on.ripplePulsate} {
|
|
196
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
215
197
|
}
|
|
216
198
|
|
|
217
|
-
|
|
218
|
-
* Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
|
|
219
|
-
* element with equal specificity, so the later rule wins. 'child' must come
|
|
220
|
-
* before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
|
|
221
|
-
* (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
|
|
222
|
-
* it relies on this static 'opacity: 0' to disappear on blur instead of
|
|
223
|
-
* lingering until removal.
|
|
224
|
-
*/
|
|
225
|
-
& .${zt.child} {
|
|
199
|
+
& .${on.child} {
|
|
226
200
|
opacity: 1;
|
|
227
201
|
display: block;
|
|
228
202
|
width: 100%;
|
|
@@ -231,19 +205,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
231
205
|
background-color: currentColor;
|
|
232
206
|
}
|
|
233
207
|
|
|
234
|
-
& .${
|
|
208
|
+
& .${on.childLeaving} {
|
|
235
209
|
opacity: 0;
|
|
210
|
+
animation-name: ${Cy};
|
|
211
|
+
animation-duration: ${Ka}ms;
|
|
212
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
236
213
|
}
|
|
237
214
|
|
|
238
|
-
& .${
|
|
215
|
+
& .${on.childPulsate} {
|
|
239
216
|
position: absolute;
|
|
240
217
|
/* @noflip */
|
|
241
218
|
left: 0px;
|
|
242
219
|
top: 0;
|
|
220
|
+
animation-name: ${Sy};
|
|
221
|
+
animation-duration: 2500ms;
|
|
222
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
223
|
+
animation-iteration-count: infinite;
|
|
224
|
+
animation-delay: 200ms;
|
|
243
225
|
}
|
|
244
|
-
|
|
245
|
-
${({theme:e})=>dx(e)}
|
|
246
|
-
`,Yd=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTouchRipple"}),s=En(),i=zr(s.motion.reducedMotion,!1),{center:a=!1,classes:l=wi,className:c,...d}=r,[u,h]=b.useState({items:Gd,order:Gd}),y=u.items,p=b.useRef(0),g=b.useRef(null),f=b.useRef(!1);Hd(()=>(f.current=!0,()=>{f.current=!1})),b.useEffect(()=>{g.current&&(g.current(),g.current=null)},[y]);const S=b.useRef(!1),C=zn(),E=b.useRef(null),T=b.useRef(null),w=ct(I=>{f.current&&h(v=>{const M=v.items.filter(j=>j.key!==I),$=bl(v.order.filter(j=>j!==I),M.filter(j=>!j.exiting).map(j=>j.key));return{items:M,order:$}})}),x=ct(I=>{const{pulsate:v,rippleX:M,rippleY:$,rippleSize:j,cb:L}=I,U=p.current;p.current+=1,h(G=>{const ee=[...G.items,{key:U,pulsate:v,rippleX:M,rippleY:$,rippleSize:j,exiting:!1}];return{items:ee,order:bl(G.order,ee.filter(B=>!B.exiting).map(B=>B.key))}}),g.current=L}),k=ct((I=wi,v=wi,M=ix)=>{const{pulsate:$=!1,center:j=a||v.pulsate,fakeElement:L=!1}=v;if((I==null?void 0:I.type)==="mousedown"&&S.current){S.current=!1;return}(I==null?void 0:I.type)==="touchstart"&&(S.current=!0);const U=L?null:T.current,{rippleX:G,rippleY:ee,rippleSize:B}=ax({event:I,element:U,center:j});I!=null&&I.touches?E.current===null&&(E.current=()=>{x({pulsate:$,rippleX:G,rippleY:ee,rippleSize:B,cb:M})},C.start(sx,()=>{E.current&&(E.current(),E.current=null)})):x({pulsate:$,rippleX:G,rippleY:ee,rippleSize:B,cb:M})}),R=ct(()=>{k(wi,{pulsate:!0})}),P=ct((I,v)=>{if(C.clear(),(I==null?void 0:I.type)==="touchend"&&E.current){E.current(),E.current=null,C.start(0,()=>{P(I,v)});return}E.current=null,h(M=>{const $=M.items.findIndex(L=>!L.exiting);if($===-1)return M;const j=M.items.slice();return j[$]={...j[$],exiting:!0},{items:j,order:bl(M.order,j.filter(L=>!L.exiting).map(L=>L.key))}}),g.current=v});b.useImperativeHandle(o,()=>({pulsate:R,start:k,stop:P}),[R,k,P]);const N=new Map(y.map(I=>[I.key,I])),A=u.order.map(I=>N.get(I)).filter(Boolean);return m.jsx(px,{className:se(zt.root,l.root,c),ref:T,...d,children:A.map(I=>m.jsx(fx,{classes:{ripple:se(l.ripple,zt.ripple),rippleVisible:se(l.rippleVisible,zt.rippleVisible),ripplePulsate:se(l.ripplePulsate,zt.ripplePulsate),child:se(l.child,zt.child),childLeaving:se(l.childLeaving,zt.childLeaving),childPulsate:se(l.childPulsate,zt.childPulsate)},timeout:i.shouldReduceMotion?0:gl,pulsate:I.pulsate,rippleX:I.rippleX,rippleY:I.rippleY,rippleSize:I.rippleSize,in:!I.exiting,onExited:()=>w(I.key)},I.key))})});process.env.NODE_ENV!=="production"&&(Yd.propTypes={center:n.bool,classes:n.object,className:n.string});function mx(e){return he("MuiButtonBase",e)}const hx=ge("MuiButtonBase",["root","disabled","focusVisible"]),gx=e=>{const{disabled:t,focusVisible:o,focusVisibleClassName:r,suppressFocusVisible:s,classes:i}=e,l=be({root:["root",t&&"disabled",o&&!s&&"focusVisible"]},mx,i);return o&&!s&&r&&(l.root+=` ${r}`),l},bx=Z("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hn=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:p,focusableWhenDisabled:g,suppressFocusVisible:f=!1,internalNativeButton:S,LinkComponent:C="a",nativeButton:E,onBlur:T,onClick:w,onContextMenu:x,onDragLeave:k,onFocus:R,onFocusVisible:P,onKeyDown:N,onKeyUp:A,onMouseDown:I,onMouseLeave:v,onMouseUp:M,onTouchEnd:$,onTouchMove:j,onTouchStart:L,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:ee,type:B,...O}=r,_=!!(O.href||O.to),V=!!O.formAction;let q=c;q==="button"&&_&&(q=C);const Y=typeof q=="string"?q==="button":S??!1,W=E??Y,F=nx(),z=lt(F.ref,ee),[J,oe]=b.useState(!1);(d||f)&&J&&oe(!1);const ce=ct(Me=>{y&&!Me.repeat&&J&&Me.key===" "&&F.stop(Me,()=>{F.start(Me)})}),H=ct(Me=>{y&&Me.key===" "&&J&&!Me.defaultPrevented&&F.stop(Me,()=>{F.pulsate(Me)})}),{getButtonProps:Se,rootRef:le}=tx({nativeButton:W,nativeButtonProp:E,internalNativeButton:Y,allowInferredHostMismatch:_||typeof q=="string",disabled:d,type:B,hasFormAction:V,tabIndex:U,onBeforeKeyDown:ce,onBeforeKeyUp:H}),{onClick:Ce,onKeyDown:ke,onKeyUp:Re,...Be}=Se({onClick:w,onKeyDown:N,onKeyUp:A});b.useImperativeHandle(s,()=>({focusVisible:()=>{oe(!0),le.current.focus()}}),[le]);const pe=F.shouldMount&&!u&&!d;b.useEffect(()=>{J&&y&&!u&&F.pulsate()},[u,y,J,F]);const Ne=Vn(F,"start",I,h),Fe=Vn(F,"stop",x,h),De=Vn(F,"stop",k,h),tt=Vn(F,"stop",M,h),ae=Vn(F,"stop",Me=>{J&&Me.preventDefault(),v&&v(Me)},h),bt=Vn(F,"start",L,h),we=Vn(F,"stop",$,h),Ie=Vn(F,"stop",j,h),ze=Vn(F,"stop",Me=>{Si(Me.target)||oe(!1),T&&T(Me)},!1),St=ct(Me=>{le.current||(le.current=Me.currentTarget),!f&&Si(Me.target)&&(oe(!0),P&&P(Me)),R&&R(Me)}),ue={};_&&(ue.tabIndex=d?-1:U,d&&(ue["aria-disabled"]=d),ue.type=B);const Pe=lt(o,le),Ve={...r,centerRipple:i,component:c,disabled:d,disableRipple:u,disableTouchRipple:h,focusRipple:y,suppressFocusVisible:f,tabIndex:U,focusVisible:J},ut=gx(Ve);return m.jsxs(bx,{as:q,className:se(ut.root,l),ownerState:Ve,onBlur:ze,onClick:Ce,onContextMenu:Fe,onFocus:St,onKeyDown:ke,onKeyUp:Re,onMouseDown:Ne,onMouseLeave:ae,onMouseUp:tt,onDragLeave:De,onTouchEnd:we,onTouchMove:Ie,onTouchStart:bt,ref:Pe,..._?ue:Be,...O,children:[a,pe?m.jsx(Yd,{ref:z,center:i,...G}):null]})});function Vn(e,t,o,r=!1){return ct(s=>(o&&o(s),r||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(hn.propTypes={action:nn,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:il,disabled:n.bool,disableRipple:n.bool,disableTouchRipple:n.bool,focusRipple:n.bool,focusVisibleClassName:n.string,formAction:n.oneOfType([n.func,n.string]),href:n.any,LinkComponent:n.elementType,nativeButton:n.bool,onBlur:n.func,onClick:n.func,onContextMenu:n.func,onDragLeave:n.func,onFocus:n.func,onFocusVisible:n.func,onKeyDown:n.func,onKeyUp:n.func,onMouseDown:n.func,onMouseLeave:n.func,onMouseUp:n.func,onTouchEnd:n.func,onTouchMove:n.func,onTouchStart:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,TouchRippleProps:n.object,touchRippleRef:n.oneOfType([n.func,n.shape({current:n.shape({pulsate:n.func.isRequired,start:n.func.isRequired,stop:n.func.isRequired})})]),type:n.string});function yx(e){return typeof e.main=="string"}function vx(e,t=[]){if(!yx(e))return!1;for(const o of t)if(!e.hasOwnProperty(o)||typeof e[o]!="string")return!1;return!0}function kt(e=[]){return([,t])=>t&&vx(t,e)}function xx(e){return he("MuiCircularProgress",e)}ge("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDisableShrink"]);const gn=44;let Kd=!1,Xd=!1;const yl=Or`
|
|
226
|
+
`,rd=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[c,d]=v.useState([]),u=v.useRef(0),m=v.useRef(null);v.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=v.useRef(!1),y=lo(),g=v.useRef(null),p=v.useRef(null),C=v.useCallback(T=>{const{pulsate:S,rippleX:P,rippleY:O,rippleSize:k,cb:R}=T;d(b=>[...b,f.jsx(wy,{classes:{ripple:ae(s.ripple,on.ripple),rippleVisible:ae(s.rippleVisible,on.rippleVisible),ripplePulsate:ae(s.ripplePulsate,on.ripplePulsate),child:ae(s.child,on.child),childLeaving:ae(s.childLeaving,on.childLeaving),childPulsate:ae(s.childPulsate,on.childPulsate)},timeout:Ka,pulsate:S,rippleX:P,rippleY:O,rippleSize:k},u.current)]),u.current+=1,m.current=R},[s]),w=v.useCallback((T={},S={},P=()=>{})=>{const{pulsate:O=!1,center:k=i||S.pulsate,fakeElement:R=!1}=S;if((T==null?void 0:T.type)==="mousedown"&&h.current){h.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(h.current=!0);const b=R?null:p.current,j=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,M,z;if(k||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)N=Math.round(j.width/2),M=Math.round(j.height/2);else{const{clientX:F,clientY:L}=T.touches&&T.touches.length>0?T.touches[0]:T;N=Math.round(F-j.left),M=Math.round(L-j.top)}if(k)z=Math.sqrt((2*j.width**2+j.height**2)/3),z%2===0&&(z+=1);else{const F=Math.max(Math.abs((b?b.clientWidth:0)-N),N)*2+2,L=Math.max(Math.abs((b?b.clientHeight:0)-M),M)*2+2;z=Math.sqrt(F**2+L**2)}T!=null&&T.touches?g.current===null&&(g.current=()=>{C({pulsate:O,rippleX:N,rippleY:M,rippleSize:z,cb:P})},y.start(vy,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:O,rippleX:N,rippleY:M,rippleSize:z,cb:P})},[i,C,y]),E=v.useCallback(()=>{w({},{pulsate:!0})},[w]),x=v.useCallback((T,S)=>{if(y.clear(),(T==null?void 0:T.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{x(T,S)});return}g.current=null,d(P=>P.length>0?P.slice(1):P),m.current=S},[y]);return v.useImperativeHandle(o,()=>({pulsate:E,start:w,stop:x}),[E,w,x]),f.jsx(Ty,{className:ae(on.root,s.root,a),ref:p,...l,children:f.jsx(Ga,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(rd.propTypes={center:n.bool,classes:n.object,className:n.string});function Ey(e){return ge("MuiButtonBase",e)}const Oy=be("MuiButtonBase",["root","disabled","focusVisible"]),ky=e=>{const{disabled:t,focusVisible:o,focusVisibleClassName:r,classes:i}=e,a=ye({root:["root",t&&"disabled",o&&"focusVisible"]},Ey,i);return o&&r&&(a.root+=` ${r}`),a},Py=Z("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Oy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Tn=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:m=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:p,onClick:C,onContextMenu:w,onDragLeave:E,onFocus:x,onFocusVisible:T,onKeyDown:S,onKeyUp:P,onMouseDown:O,onMouseLeave:k,onMouseUp:R,onTouchEnd:b,onTouchMove:j,onTouchStart:N,tabIndex:M=0,TouchRippleProps:z,touchRippleRef:F,type:L,...X}=r,J=v.useRef(null),W=by(),B=mt(W.ref,F),[A,Q]=v.useState(!1);d&&A&&Q(!1),v.useImperativeHandle(i,()=>({focusVisible:()=>{Q(!0),J.current.focus()}}),[]);const Y=W.shouldMount&&!u&&!d;v.useEffect(()=>{A&&h&&!u&&W.pulsate()},[u,h,A,W]);const q=Dn(W,"start",O,m),U=Dn(W,"stop",w,m),_=Dn(W,"stop",E,m),G=Dn(W,"stop",R,m),H=Dn(W,"stop",me=>{A&&me.preventDefault(),k&&k(me)},m),ne=Dn(W,"start",N,m),se=Dn(W,"stop",b,m),ce=Dn(W,"stop",j,m),D=Dn(W,"stop",me=>{Yi(me.target)||Q(!1),p&&p(me)},!1),Ee=Gt(me=>{J.current||(J.current=me.currentTarget),Yi(me.target)&&(Q(!0),T&&T(me)),x&&x(me)}),de=()=>{const me=J.current;return c&&c!=="button"&&!(me.tagName==="A"&&me.href)},Ce=Gt(me=>{h&&!me.repeat&&A&&me.key===" "&&W.stop(me,()=>{W.start(me)}),me.target===me.currentTarget&&de()&&me.key===" "&&me.preventDefault(),S&&S(me),me.target===me.currentTarget&&de()&&me.key==="Enter"&&!d&&(me.preventDefault(),C&&C(me))}),We=Gt(me=>{h&&me.key===" "&&A&&!me.defaultPrevented&&W.stop(me,()=>{W.pulsate(me)}),P&&P(me),C&&me.target===me.currentTarget&&de()&&me.key===" "&&!me.defaultPrevented&&C(me)});let ue=c;ue==="button"&&(X.href||X.to)&&(ue=g);const Me={};ue==="button"?(Me.type=L===void 0?"button":L,Me.disabled=d):(!X.href&&!X.to&&(Me.role="button"),d&&(Me["aria-disabled"]=d));const Te=mt(o,J),_e={...r,centerRipple:s,component:c,disabled:d,disableRipple:u,disableTouchRipple:m,focusRipple:h,tabIndex:M,focusVisible:A},Be=ky(_e);return f.jsxs(Py,{as:ue,className:ae(Be.root,l),ownerState:_e,onBlur:D,onClick:C,onContextMenu:U,onFocus:Ee,onKeyDown:Ce,onKeyUp:We,onMouseDown:q,onMouseLeave:H,onMouseUp:G,onDragLeave:_,onTouchEnd:se,onTouchMove:ce,onTouchStart:ne,ref:Te,tabIndex:d?-1:M,type:L,...Me,...X,children:[a,Y?f.jsx(rd,{ref:B,center:s,...z}):null]})});function Dn(e,t,o,r=!1){return Gt(i=>(o&&o(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Tn.propTypes={action:Lt,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:Or,disabled:n.bool,disableRipple:n.bool,disableTouchRipple:n.bool,focusRipple:n.bool,focusVisibleClassName:n.string,href:n.any,LinkComponent:n.elementType,onBlur:n.func,onClick:n.func,onContextMenu:n.func,onDragLeave:n.func,onFocus:n.func,onFocusVisible:n.func,onKeyDown:n.func,onKeyUp:n.func,onMouseDown:n.func,onMouseLeave:n.func,onMouseUp:n.func,onTouchEnd:n.func,onTouchMove:n.func,onTouchStart:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,TouchRippleProps:n.object,touchRippleRef:n.oneOfType([n.func,n.shape({current:n.shape({pulsate:n.func.isRequired,start:n.func.isRequired,stop:n.func.isRequired})})]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string])});function $y(e){return typeof e.main=="string"}function Ry(e,t=[]){if(!$y(e))return!1;for(const o of t)if(!e.hasOwnProperty(o)||typeof e[o]!="string")return!1;return!0}function Ot(e=[]){return([,t])=>t&&Ry(t,e)}function jy(e){return ge("MuiCircularProgress",e)}be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Gn=44,Xa=br`
|
|
247
227
|
0% {
|
|
248
228
|
transform: rotate(0deg);
|
|
249
229
|
}
|
|
@@ -251,7 +231,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
251
231
|
100% {
|
|
252
232
|
transform: rotate(360deg);
|
|
253
233
|
}
|
|
254
|
-
`,
|
|
234
|
+
`,Ja=br`
|
|
255
235
|
0% {
|
|
256
236
|
stroke-dasharray: 1px, 200px;
|
|
257
237
|
stroke-dashoffset: 0;
|
|
@@ -266,38 +246,42 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
266
246
|
stroke-dasharray: 1px, 200px;
|
|
267
247
|
stroke-dashoffset: -126px;
|
|
268
248
|
}
|
|
269
|
-
`,
|
|
270
|
-
animation: ${
|
|
271
|
-
`:null,
|
|
272
|
-
animation: ${
|
|
273
|
-
`:null,
|
|
274
|
-
`)):null),classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,edge:n.oneOf(["end","start",!1]),id:n.string,loading:n.bool,loadingIndicator:n.node,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const jx=dt(m.jsx("path",{d:"M19 6.41L17.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");function Nx(e){return he("MuiTypography",e)}const Qd=ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom"]),Mx=e=>{const{align:t,gutterBottom:o,noWrap:r,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ie(t)}`,o&&"gutterBottom",r&&"noWrap"]};return be(a,Nx,i)},Ax=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],o.align!=="inherit"&&t[`align${ie(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom]}})(xe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([o,r])=>o!=="inherit"&&r&&typeof r=="object").map(([o,r])=>({props:{variant:o},style:r})),...Object.entries(e.palette).filter(kt()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,o])=>typeof o=="string").map(([o])=>({props:{color:`text${ie(o)}`},style:{color:(e.vars||e).palette.text[o]}})),{props:({ownerState:o})=>o.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:o})=>o.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:o})=>o.gutterBottom,style:{marginBottom:"0.35em"}}]}})),Zd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yt=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTypography"}),{color:s,align:i="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,variant:u="body1",variantMapping:h=Zd,...y}=r,p={...r,align:i,color:s,className:a,component:l,gutterBottom:c,noWrap:d,variant:u,variantMapping:h},g=l||h[u]||Zd[u]||"span",f=Mx(p);return m.jsx(Ax,{as:g,ref:o,className:se(f.root,a),...y,ownerState:p,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...y.style}})});process.env.NODE_ENV!=="production"&&(yt.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),n.string]),component:n.elementType,gutterBottom:n.bool,noWrap:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),n.string]),variantMapping:n.object});function _x(e){return he("MuiAppBar",e)}ge("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Dx=e=>{const{color:t,position:o,classes:r}=e,s={root:["root",`color${ie(t)}`,`position${ie(o)}`]};return be(s,_x,r)},ep=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,Lx=Z(Fn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${ie(o.position)}`],t[`color${ie(o.color)}`]]}})(xe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(kt(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?ep(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?ep(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),xl=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiAppBar"}),{className:s,color:i="primary",enableColorOnDark:a=!1,position:l="fixed",...c}=r,d={...r,color:i,position:l,enableColorOnDark:a},u=Dx(d);return m.jsx(Lx,{square:!0,component:"header",ownerState:d,elevation:4,className:se(u.root,s,l==="fixed"&&"mui-fixed"),ref:o,...c})});process.env.NODE_ENV!=="production"&&(xl.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),n.string]),elevation:n.number,enableColorOnDark:n.bool,position:n.oneOf(["absolute","fixed","relative","static","sticky"]),square:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function Bx(){const[,e]=b.useState({});return b.useCallback(()=>{e({})},[])}function Wn(e,t){var r;if(!e||!t)return!1;if(e.contains(t))return!0;const o=(r=t.getRootNode)==null?void 0:r.call(t);if(o&&o instanceof ShadowRoot){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode??s.host??null}}return!1}function Fx(e){const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current}function tp({array1:e,array2:t,parser:o=r=>r}){return e&&t&&e.length===t.length&&e.every((r,s)=>o(r)===o(t[s]))}function np(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function zx(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:r,matchFrom:s="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:c,getOptionLabel:d})=>{let u=a?c.trim():c;o&&(u=u.toLowerCase()),t&&(u=np(u));const h=u?l.filter(y=>{let p=(i||d)(y);return o&&(p=p.toLowerCase()),t&&(p=np(p)),s==="start"?p.startsWith(u):p.includes(u)}):l;return typeof r=="number"?h.slice(0,r):h}}const Vx=zx(),op=5,Wx=e=>e.current!==null&&Wn(e.current.parentElement,document.activeElement),rp=(e,t)=>e===t,Ux=[];function sp(e,t,o,r){if(t||e==null||r)return"";const s=o(e);return typeof s=="string"?s:""}function Hx(e){const{unstable_isActiveElementInListbox:t=Wx,unstable_classNamePrefix:o="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:u=e.multiple?Ux:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:p,disabledItemsFocusable:g=!1,disableListWrap:f=!1,filterOptions:S=Vx,filterSelectedOptions:C=!1,freeSolo:E=!1,getOptionDisabled:T,getOptionKey:w,getOptionLabel:x=K=>K.label??K,groupBy:k,handleHomeEndKeys:R=!e.freeSolo,id:P,includeInputInList:N=!1,inputValue:A,isOptionEqualToValue:I=rp,multiple:v=!1,onChange:M,onClose:$,onHighlightChange:j,onInputChange:L,onOpen:U,open:G,openOnFocus:ee=!1,options:B,readOnly:O=!1,renderValue:_,resetHighlightOnMouseLeave:V=!1,selectOnFocus:q=!e.freeSolo,value:Y}=e,W=pn(P);let F=x;F=K=>{const X=x(K);if(typeof X!="string"){if(process.env.NODE_ENV!=="production"){const ne=X===void 0?"undefined":`${typeof X} (${X})`;console.error(`MUI: The \`getOptionLabel\` method of ${d} returned ${ne} instead of a string for ${JSON.stringify(K)}.`)}return String(X)}return X};const z=b.useRef(!1),J=b.useRef(!0),oe=b.useRef(null),ce=b.useRef(null),H=b.useRef(!1),Se=b.useRef(!1),[le,Ce]=b.useState(null),[ke,Re]=b.useState(-1),Be=s?0:-1,pe=b.useRef(Be),Ne=b.useRef(null),Fe=b.useRef(!1),De=b.useRef(!1),tt=b.useRef(sp(u??Y,v,F)).current,[ae,bt]=oo({controlled:Y,default:u,name:d}),[we,Ie]=oo({controlled:A,default:tt,name:d,state:"inputValue"}),[ze,St]=b.useState(!1),ue=b.useCallback((K,X,ne)=>{if(!(v?ae.length<X.length:X!==null)&&!l&&!(ne==="reset"&&E&&!v&&X===null))return;const Le=sp(X,v,F,_);we!==Le&&(Ie(Le),L&&L(K,Le,ne))},[F,we,v,L,Ie,l,E,ae,_]),[Pe,Ve]=oo({controlled:G,default:!1,name:d,state:"open"}),[ut,Me]=b.useState(!0),Lt=!v&&ae!=null&&we===F(ae),it=Pe&&!O,Zt=b.useMemo(()=>v?ae:ae!=null?[ae]:[],[v,ae]),cn=b.useMemo(()=>I!==rp||Zt.length===0?null:new Set(Zt),[I,Zt]),ye=b.useCallback(K=>cn?cn.has(K):Zt.some(X=>X!=null&&I(K,X)),[I,Zt,cn]),Q=it?S(B.filter(K=>!(C&&ye(K))),{inputValue:Lt&&ut?"":we,getOptionLabel:F}):[],fe=Fx({filteredOptions:Q,value:ae,inputValue:we});b.useEffect(()=>{const K=ae!==fe.value;ze&&!K||E&&(!K||ae==null&&fe.value===void 0)||ue(null,ae,"reset")},[ae,ue,ze,fe.value,E]);const me=Pe&&Q.length>0&&!O,Bt=ct(K=>{K===-1?oe.current.focus():le.querySelector(`[data-item-index="${K}"]`).focus()});b.useEffect(()=>{v&&ke>ae.length-1&&(Re(-1),Bt(-1))},[ae,v,ke,Bt]);function ao(K,X){if(!ce.current||K<0||K>=Q.length)return-1;let ne=K;for(;;){const Oe=ce.current.querySelector(`[data-option-index="${ne}"]`),je=g?!1:!Oe||Oe.disabled||Oe.getAttribute("aria-disabled")==="true";if(Oe&&Oe.hasAttribute("tabindex")&&!je)return ne;if(X==="next"?ne=(ne+1)%Q.length:ne=(ne-1+Q.length)%Q.length,ne===K)return-1}}const Mt=ct(({index:K,reason:X,preserveScroll:ne=!1})=>{if(oe.current==null&&ce.current==null||(K===-1?oe.current.removeAttribute("aria-activedescendant"):oe.current.setAttribute("aria-activedescendant",`${W}-option-${K}`),!ce.current))return;const Oe=ce.current.querySelector(`[role="option"].${o}-focused`);Oe&&(Oe.classList.remove(`${o}-focused`),Oe.classList.remove(`${o}-focusVisible`));let je=ce.current;if(ce.current.getAttribute("role")!=="listbox"&&(je=ce.current.parentElement.querySelector('[role="listbox"]')),!je)return;if(K===-1){ne||(je.scrollTop=0);return}const Le=ce.current.querySelector(`[data-option-index="${K}"]`);if(Le&&(Le.classList.add(`${o}-focused`),X==="keyboard"&&Le.classList.add(`${o}-focusVisible`),je.scrollHeight>je.clientHeight&&X!=="mouse"&&X!=="touch")){const vt=Le,$t=je.clientHeight+je.scrollTop,vn=vt.offsetTop+vt.offsetHeight;vn>$t?je.scrollTop=vn-je.clientHeight:vt.offsetTop-vt.offsetHeight*(k?1.3:0)<je.scrollTop&&(je.scrollTop=vt.offsetTop-vt.offsetHeight*(k?1.3:0))}}),qt=ct(({event:K,index:X,reason:ne,preserveScroll:Oe=!1})=>{pe.current=X,Ne.current=ne??null,j&&["mouse","keyboard","touch"].includes(ne)&&j(K,X===-1?null:Q[X],ne),Mt({index:X,reason:ne,preserveScroll:Oe})}),un=ct(({index:K})=>{pe.current=K,Mt({index:K,reason:Ne.current})}),At=ct(({event:K,diff:X,direction:ne="next",reason:Oe,preserveScroll:je})=>{if(!it)return;Oe==="keyboard"&&(Fe.current=!1,De.current=!1);const vt=ao((()=>{const $t=Q.length-1;if(X==="reset")return Be;if(X==="start")return 0;if(X==="end")return $t;const vn=pe.current+X;return vn<0?vn===-1&&N?-1:f&&pe.current!==-1||Math.abs(X)>1?0:$t:vn>$t?vn===$t+1&&N?-1:f||Math.abs(X)>1?$t:0:vn})(),ne);if(qt({index:vt,reason:Oe,event:K,preserveScroll:je}),r&&X!=="reset")if(vt===-1)oe.current.value=we;else{const $t=F(Q[vt]);oe.current.value=$t,$t.toLowerCase().indexOf(we.toLowerCase())===0&&we.length>0&&oe.current.setSelectionRange(we.length,$t.length)}}),Ft=!tp({array1:fe.filteredOptions,array2:Q,parser:F}),$o=()=>{const K=(X,ne)=>{const Oe=X?F(X):"",je=ne?F(ne):"";return Oe===je};if(pe.current!==-1&&!tp({array1:fe.filteredOptions,array2:Q,parser:F})&&fe.inputValue===we&&(v?ae.length===fe.value.length&&fe.value.every((X,ne)=>F(ae[ne])===F(X)):K(fe.value,ae))){const X=fe.filteredOptions[pe.current];if(X)return Q.findIndex(ne=>F(ne)===F(X))}return-1},Mn=b.useCallback(()=>{var ne,Oe;if(!it)return;const K=$o();if(K!==-1){un({index:K});return}const X=v?ae[0]:ae;if(Q.length===0||X==null){const je=Ft&&fe.inputValue===we&&((ne=fe.filteredOptions)==null?void 0:ne.length)>0&&Q.length>fe.filteredOptions.length&&fe.filteredOptions.every((Le,vt)=>F(Le)===F(Q[vt]));At({diff:"reset",preserveScroll:je});return}if(ce.current){if(X!=null){const je=Q[pe.current];if(v&&je&&ae.findIndex(vt=>I(je,vt))!==-1&&((Oe=fe.filteredOptions)==null?void 0:Oe.length)>0){un({index:pe.current});return}const Le=Q.findIndex(vt=>I(vt,X));Le===-1?At({diff:"reset"}):qt({index:Le});return}if(pe.current>=Q.length-1){qt({index:Q.length-1});return}qt({index:pe.current})}},[Q.length,v?!1:ae,At,qt,un,it,we,v]),jo=ct(K=>{yi(ce,K),K&&Mn()});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{(!oe.current||oe.current.nodeName!=="INPUT")&&(oe.current&&oe.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${d} 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(`
|
|
275
|
-
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
276
|
-
`)))},[d]),
|
|
277
|
-
`))}const vt=Le.findIndex($t=>I(X,$t));vt===-1?Le.push(X):Oe!=="freeSolo"&&(Le.splice(vt,1),je="removeOption")}ue(K,Le,je),nt(K,Le,je,{option:X}),!y&&(!K||!K.ctrlKey&&!K.metaKey)&&_t(K,je),(a===!0||a==="touch"&&De.current||a==="mouse"&&!De.current)&&oe.current.blur()};function yn(K,X){if(K===-1)return-1;let ne=K;for(;;){if(X==="next"&&ne===ae.length||X==="previous"&&ne===-1)return-1;const Oe=le.querySelector(`[data-item-index="${ne}"]`);if(!Oe||!Oe.hasAttribute("tabindex")||Oe.disabled||Oe.getAttribute("aria-disabled")==="true")ne+=X==="next"?1:-1;else return ne}}const ur=(K,X)=>{if(!v)return;we===""&&_t(K,"toggleInput");let ne=ke;ke===-1&&X==="previous"?(ne=ae.length-1,E&&we!==""&&(Ie(""),L&&L(K,"","reset"))):(ne+=X==="next"?1:-1,ne<0&&(ne=0),ne===ae.length&&(ne=-1)),ne=yn(ne,X),Re(ne),Bt(ne)},No=K=>{Ie(""),L&&L(K,"","clear"),nt(K,v?[]:null,"clear")},ys=K=>X=>{if(K.onKeyDown&&K.onKeyDown(X),!X.defaultMuiPrevented&&(ke!==-1&&!["ArrowLeft","ArrowRight"].includes(X.key)&&(Re(-1),Bt(-1)),X.which!==229))switch(X.key){case"Home":it&&R&&(X.preventDefault(),At({diff:"start",direction:"next",reason:"keyboard",event:X}));break;case"End":it&&R&&(X.preventDefault(),At({diff:"end",direction:"previous",reason:"keyboard",event:X}));break;case"PageUp":X.preventDefault(),At({diff:-op,direction:"previous",reason:"keyboard",event:X}),An(X);break;case"PageDown":X.preventDefault(),At({diff:op,direction:"next",reason:"keyboard",event:X}),An(X);break;case"ArrowDown":X.preventDefault(),At({diff:1,direction:"next",reason:"keyboard",event:X}),An(X);break;case"ArrowUp":X.preventDefault(),At({diff:-1,direction:"previous",reason:"keyboard",event:X}),An(X);break;case"ArrowLeft":{const ne=oe.current;if(!(ne&&ne.selectionStart===0&&ne.selectionEnd===0))return;!v&&_&&ae!=null?(E&&we!==""&&(Ie(""),L&&L(X,"","reset")),Re(0),Bt(0)):ur(X,"previous");break}case"ArrowRight":!v&&_?(Re(-1),Bt(-1)):ur(X,"next");break;case"Enter":{const ne=it&&pe.current!==-1&&Ne.current===null,Oe=E&&!ut&&ne,je=!E||ut||!ne,Le=Oe&&!Fe.current;if(pe.current!==-1&&it&&je&&!Fe.current){const vt=Q[pe.current],$t=T?T(vt):!1;if(X.preventDefault(),$t)return;Je(X,vt,"selectOption"),r&&oe.current.setSelectionRange(oe.current.value.length,oe.current.value.length)}else E&&we!==""&&Lt===!1?((v||Le)&&X.preventDefault(),Je(X,we,"createOption","freeSolo")):it&&Fe.current&&(X.preventDefault(),_t(X,"escape"));break}case"Escape":it?(X.preventDefault(),X.stopPropagation(),_t(X,"escape")):c&&(we!==""||v&&ae.length>0||_)&&(X.preventDefault(),X.stopPropagation(),No(X));break;case"Backspace":if(H.current){H.current=!1;break}if(v&&!O&&we===""&&ae.length>0){const ne=ke===-1?ae.length-1:ke,Oe=ae.slice();Oe.splice(ne,1),nt(X,Oe,"removeOption",{option:ae[ne]}),ke!==-1&&(H.current=!0,setTimeout(()=>{H.current&&(H.current=!1)},0))}!v&&_&&!O&&we===""&&nt(X,null,"removeOption",{option:ae});break;case"Delete":if(v&&!O&&we===""&&ae.length>0&&ke!==-1){const ne=ke,Oe=ae.slice();Oe.splice(ne,1),nt(X,Oe,"removeOption",{option:ae[ne]})}!v&&_&&!O&&we===""&&nt(X,null,"removeOption",{option:ae});break}},dr=K=>{if(St(!0),ke!==-1&&(Re(-1),Bt(-1)),Se.current){Se.current=!1;return}ee&&!z.current&&An(K)},Mo=K=>{if(t(ce)){oe.current.focus();return}St(!1),J.current=!0,z.current=!1,i&&pe.current!==-1&&it&&Ne.current!=="mouse"&&Ne.current!=="touch"?Je(K,Q[pe.current],"blur"):i&&E&&we!==""?Je(K,we,"blur","freeSolo"):l&&ue(K,ae,"blur"),_t(K,"blur")},pr=K=>{const X=K.target.value,ne=we!==X;ne&&(Ie(X),Fe.current=!1,L&&L(K,X,"input")),X===""?!h&&!v&&!_&&nt(K,null,"clear"):An(K),ne&&Me(!1)},fr=K=>{const X=Number(K.currentTarget.getAttribute("data-option-index"));pe.current!==X?qt({event:K,index:X,reason:"mouse"}):Ne.current="mouse",De.current||(Fe.current=!1)},re=K=>{!V||pe.current===-1||Ne.current!=="mouse"||De.current||qt({event:K,index:-1,reason:"mouse",preserveScroll:!0})},ve=K=>{Fe.current=!1,qt({event:K,index:Number(K.currentTarget.getAttribute("data-option-index")),reason:"touch"}),De.current=!0},Ae=K=>{const X=Number(K.currentTarget.getAttribute("data-option-index"));Je(K,Q[X],"selectOption"),De.current=!1},at=K=>X=>{const ne=ae.slice();ne.splice(K,1),nt(X,ne,"removeOption",{option:ae[K]})},Rt=K=>{nt(K,null,"removeOption",{option:ae})},Gn=K=>{Pe?_t(K,"toggleInput"):An(K)},Pt=K=>{Wn(K.currentTarget,K.target)&&(le&&!Wn(le,K.target)||K.target.getAttribute("id")!==W&&K.preventDefault())},Yn=K=>{Wn(K.currentTarget,K.target)&&(le&&!Wn(le,K.target)||(oe.current.focus(),q&&J.current&&oe.current.selectionEnd-oe.current.selectionStart===0&&oe.current.select(),J.current=!1))},vs=K=>{!p&&(we===""||!Pe)&&K.button===0&&Gn(K)};let Kn=E&&we.length>0;Kn=Kn||(v?ae.length>0:ae!==null);let xc=Q;if(k){const K=new Map;let X=!1;xc=Q.reduce((ne,Oe,je)=>{const Le=k(Oe);return ne.length>0&&ne[ne.length-1].group===Le?ne[ne.length-1].options.push(Oe):(process.env.NODE_ENV!=="production"&&(K.get(Le)&&!X&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${d} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),X=!0),K.set(Le,!0)),ne.push({key:je,index:je,group:Le,options:[Oe]})),ne},[])}return p&&ze&&Mo(),{getRootProps:(K={})=>({...K,onKeyDown:ys(K),onMouseDown:Pt,onClick:Yn}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:we,onBlur:Mo,onFocus:dr,onChange:pr,onMouseDown:vs,"aria-activedescendant":it?"":null,"aria-autocomplete":r?"both":"list","aria-controls":me?`${W}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:oe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:K=>{z.current=!0,No(K)}}),getItemProps:({index:K=0}={})=>({...v&&{key:K},"data-item-index":K,tabIndex:-1,onFocus:()=>{ke!==K&&Re(K)},...!O&&{onDelete:v?at(K):Rt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Gn}),getListboxProps:(K={})=>({...K,role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,"aria-multiselectable":v||void 0,ref:jo,onMouseDown:X=>{var ne;(ne=K.onMouseDown)==null||ne.call(K,X),!X.defaultMuiPrevented&&X.preventDefault()},onScroll:X=>{var ne;(ne=K.onScroll)==null||ne.call(K,X),!X.defaultMuiPrevented&&De.current&&(Fe.current=!0)},onMouseLeave:X=>{var ne;(ne=K.onMouseLeave)==null||ne.call(K,X),!X.defaultMuiPrevented&&re(X)}}),getOptionProps:({index:K,option:X})=>{const ne=ye(X),Oe=T?T(X):!1;return{key:(w==null?void 0:w(X))??F(X),tabIndex:-1,role:"option",id:`${W}-option-${K}`,onMouseMove:fr,onClick:Ae,onTouchStart:ve,"data-option-index":K,"aria-disabled":Oe,"aria-selected":ne}},id:W,inputValue:we,value:ae,dirty:Kn,expanded:it&&le,popupOpen:it,focused:ze||ke!==-1,anchorEl:le,setAnchorEl:Ce,focusedItem:ke,groupedOptions:xc}}function kn(e,t,o,r,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${o}\`. Expected an HTMLElement.`):null}var Ut="top",rn="bottom",sn="right",Ht="left",Sl="auto",Wr=[Ut,rn,sn,Ht],Qo="start",Ur="end",qx="clippingParents",ip="viewport",Hr="popper",Gx="reference",ap=Wr.reduce(function(e,t){return e.concat([t+"-"+Qo,t+"-"+Ur])},[]),lp=[].concat(Wr,[Sl]).reduce(function(e,t){return e.concat([t,t+"-"+Qo,t+"-"+Ur])},[]),Yx="beforeRead",Kx="read",Xx="afterRead",Jx="beforeMain",Qx="main",Zx="afterMain",e0="beforeWrite",t0="write",n0="afterWrite",o0=[Yx,Kx,Xx,Jx,Qx,Zx,e0,t0,n0];function Rn(e){return e?(e.nodeName||"").toLowerCase():null}function Jt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ho(e){var t=Jt(e).Element;return e instanceof t||e instanceof Element}function an(e){var t=Jt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tl(e){if(typeof ShadowRoot>"u")return!1;var t=Jt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r0(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},s=t.attributes[o]||{},i=t.elements[o];!an(i)||!Rn(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function s0(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),l=a.reduce(function(c,d){return c[d]="",c},{});!an(s)||!Rn(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const i0={name:"applyStyles",enabled:!0,phase:"write",fn:r0,effect:s0,requires:["computeStyles"]};function Pn(e){return e.split("-")[0]}var go=Math.max,Ei=Math.min,Zo=Math.round;function Cl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cp(){return!/^((?!chrome|android).)*safari/i.test(Cl())}function er(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&an(e)&&(s=e.offsetWidth>0&&Zo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Zo(r.height)/e.offsetHeight||1);var a=ho(e)?Jt(e):window,l=a.visualViewport,c=!cp()&&o,d=(r.left+(c&&l?l.offsetLeft:0))/s,u=(r.top+(c&&l?l.offsetTop:0))/i,h=r.width/s,y=r.height/i;return{width:h,height:y,top:u,right:d+h,bottom:u+y,left:d,x:d,y:u}}function wl(e){var t=er(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function up(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Tl(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Un(e){return Jt(e).getComputedStyle(e)}function a0(e){return["table","td","th"].indexOf(Rn(e))>=0}function ro(e){return((ho(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oi(e){return Rn(e)==="html"?e:e.assignedSlot||e.parentNode||(Tl(e)?e.host:null)||ro(e)}function dp(e){return!an(e)||Un(e).position==="fixed"?null:e.offsetParent}function l0(e){var t=/firefox/i.test(Cl()),o=/Trident/i.test(Cl());if(o&&an(e)){var r=Un(e);if(r.position==="fixed")return null}var s=Oi(e);for(Tl(s)&&(s=s.host);an(s)&&["html","body"].indexOf(Rn(s))<0;){var i=Un(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function qr(e){for(var t=Jt(e),o=dp(e);o&&a0(o)&&Un(o).position==="static";)o=dp(o);return o&&(Rn(o)==="html"||Rn(o)==="body"&&Un(o).position==="static")?t:o||l0(e)||t}function El(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gr(e,t,o){return go(e,Ei(t,o))}function c0(e,t,o){var r=Gr(e,t,o);return r>o?o:r}function pp(){return{top:0,right:0,bottom:0,left:0}}function fp(e){return Object.assign({},pp(),e)}function mp(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var u0=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,fp(typeof t!="number"?t:mp(t,Wr))};function d0(e){var t,o=e.state,r=e.name,s=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=Pn(o.placement),c=El(l),d=[Ht,sn].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!a)){var h=u0(s.padding,o),y=wl(i),p=c==="y"?Ut:Ht,g=c==="y"?rn:sn,f=o.rects.reference[u]+o.rects.reference[c]-a[c]-o.rects.popper[u],S=a[c]-o.rects.reference[c],C=qr(i),E=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,T=f/2-S/2,w=h[p],x=E-y[u]-h[g],k=E/2-y[u]/2+T,R=Gr(w,k,x),P=c;o.modifiersData[r]=(t={},t[P]=R,t.centerOffset=R-k,t)}}function p0(e){var t=e.state,o=e.options,r=o.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||up(t.elements.popper,s)&&(t.elements.arrow=s))}const f0={name:"arrow",enabled:!0,phase:"main",fn:d0,effect:p0,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tr(e){return e.split("-")[1]}var m0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h0(e,t){var o=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Zo(o*s)/s||0,y:Zo(r*s)/s||0}}function hp(e){var t,o=e.popper,r=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,y=a.x,p=y===void 0?0:y,g=a.y,f=g===void 0?0:g,S=typeof u=="function"?u({x:p,y:f}):{x:p,y:f};p=S.x,f=S.y;var C=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),T=Ht,w=Ut,x=window;if(d){var k=qr(o),R="clientHeight",P="clientWidth";if(k===Jt(o)&&(k=ro(o),Un(k).position!=="static"&&l==="absolute"&&(R="scrollHeight",P="scrollWidth")),k=k,s===Ut||(s===Ht||s===sn)&&i===Ur){w=rn;var N=h&&k===x&&x.visualViewport?x.visualViewport.height:k[R];f-=N-r.height,f*=c?1:-1}if(s===Ht||(s===Ut||s===rn)&&i===Ur){T=sn;var A=h&&k===x&&x.visualViewport?x.visualViewport.width:k[P];p-=A-r.width,p*=c?1:-1}}var I=Object.assign({position:l},d&&m0),v=u===!0?h0({x:p,y:f},Jt(o)):{x:p,y:f};if(p=v.x,f=v.y,c){var M;return Object.assign({},I,(M={},M[w]=E?"0":"",M[T]=C?"0":"",M.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",M))}return Object.assign({},I,(t={},t[w]=E?f+"px":"",t[T]=C?p+"px":"",t.transform="",t))}function g0(e){var t=e.state,o=e.options,r=o.gpuAcceleration,s=r===void 0?!0:r,i=o.adaptive,a=i===void 0?!0:i,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:Pn(t.placement),variation:tr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hp(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hp(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const b0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g0,data:{}};var ki={passive:!0};function y0(e){var t=e.state,o=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,a=r.resize,l=a===void 0?!0:a,c=Jt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",o.update,ki)}),l&&c.addEventListener("resize",o.update,ki),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",o.update,ki)}),l&&c.removeEventListener("resize",o.update,ki)}}const v0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y0,data:{}};var x0={left:"right",right:"left",bottom:"top",top:"bottom"};function Ri(e){return e.replace(/left|right|bottom|top/g,function(t){return x0[t]})}var S0={start:"end",end:"start"};function gp(e){return e.replace(/start|end/g,function(t){return S0[t]})}function Ol(e){var t=Jt(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function kl(e){return er(ro(e)).left+Ol(e).scrollLeft}function T0(e,t){var o=Jt(e),r=ro(e),s=o.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var d=cp();(d||!d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+kl(e),y:c}}function C0(e){var t,o=ro(e),r=Ol(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=go(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=go(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+kl(e),c=-r.scrollTop;return Un(s||o).direction==="rtl"&&(l+=go(o.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Rl(e){var t=Un(e),o=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+r)}function bp(e){return["html","body","#document"].indexOf(Rn(e))>=0?e.ownerDocument.body:an(e)&&Rl(e)?e:bp(Oi(e))}function Yr(e,t){var o;t===void 0&&(t=[]);var r=bp(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Jt(r),a=s?[i].concat(i.visualViewport||[],Rl(r)?r:[]):r,l=t.concat(a);return s?l:l.concat(Yr(Oi(a)))}function Pl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w0(e,t){var o=er(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function yp(e,t,o){return t===ip?Pl(T0(e,o)):ho(t)?w0(t,o):Pl(C0(ro(e)))}function E0(e){var t=Yr(Oi(e)),o=["absolute","fixed"].indexOf(Un(e).position)>=0,r=o&&an(e)?qr(e):e;return ho(r)?t.filter(function(s){return ho(s)&&up(s,r)&&Rn(s)!=="body"}):[]}function O0(e,t,o,r){var s=t==="clippingParents"?E0(e):[].concat(t),i=[].concat(s,[o]),a=i[0],l=i.reduce(function(c,d){var u=yp(e,d,r);return c.top=go(u.top,c.top),c.right=Ei(u.right,c.right),c.bottom=Ei(u.bottom,c.bottom),c.left=go(u.left,c.left),c},yp(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function vp(e){var t=e.reference,o=e.element,r=e.placement,s=r?Pn(r):null,i=r?tr(r):null,a=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(s){case Ut:c={x:a,y:t.y-o.height};break;case rn:c={x:a,y:t.y+t.height};break;case sn:c={x:t.x+t.width,y:l};break;case Ht:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=s?El(s):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case Qo:c[d]=c[d]-(t[u]/2-o[u]/2);break;case Ur:c[d]=c[d]+(t[u]/2-o[u]/2);break}}return c}function Kr(e,t){t===void 0&&(t={});var o=t,r=o.placement,s=r===void 0?e.placement:r,i=o.strategy,a=i===void 0?e.strategy:i,l=o.boundary,c=l===void 0?qx:l,d=o.rootBoundary,u=d===void 0?ip:d,h=o.elementContext,y=h===void 0?Hr:h,p=o.altBoundary,g=p===void 0?!1:p,f=o.padding,S=f===void 0?0:f,C=fp(typeof S!="number"?S:mp(S,Wr)),E=y===Hr?Gx:Hr,T=e.rects.popper,w=e.elements[g?E:y],x=O0(ho(w)?w:w.contextElement||ro(e.elements.popper),c,u,a),k=er(e.elements.reference),R=vp({reference:k,element:T,placement:s}),P=Pl(Object.assign({},T,R)),N=y===Hr?P:k,A={top:x.top-N.top+C.top,bottom:N.bottom-x.bottom+C.bottom,left:x.left-N.left+C.left,right:N.right-x.right+C.right},I=e.modifiersData.offset;if(y===Hr&&I){var v=I[s];Object.keys(A).forEach(function(M){var $=[sn,rn].indexOf(M)>=0?1:-1,j=[Ut,rn].indexOf(M)>=0?"y":"x";A[M]+=v[j]*$})}return A}function k0(e,t){t===void 0&&(t={});var o=t,r=o.placement,s=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?lp:c,u=tr(r),h=u?l?ap:ap.filter(function(g){return tr(g)===u}):Wr,y=h.filter(function(g){return d.indexOf(g)>=0});y.length===0&&(y=h);var p=y.reduce(function(g,f){return g[f]=Kr(e,{placement:f,boundary:s,rootBoundary:i,padding:a})[Pn(f)],g},{});return Object.keys(p).sort(function(g,f){return p[g]-p[f]})}function R0(e){if(Pn(e)===Sl)return[];var t=Ri(e);return[gp(e),t,gp(t)]}function P0(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=o.mainAxis,i=s===void 0?!0:s,a=o.altAxis,l=a===void 0?!0:a,c=o.fallbackPlacements,d=o.padding,u=o.boundary,h=o.rootBoundary,y=o.altBoundary,p=o.flipVariations,g=p===void 0?!0:p,f=o.allowedAutoPlacements,S=t.options.placement,C=Pn(S),E=C===S,T=c||(E||!g?[Ri(S)]:R0(S)),w=[S].concat(T).reduce(function(q,Y){return q.concat(Pn(Y)===Sl?k0(t,{placement:Y,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:f}):Y)},[]),x=t.rects.reference,k=t.rects.popper,R=new Map,P=!0,N=w[0],A=0;A<w.length;A++){var I=w[A],v=Pn(I),M=tr(I)===Qo,$=[Ut,rn].indexOf(v)>=0,j=$?"width":"height",L=Kr(t,{placement:I,boundary:u,rootBoundary:h,altBoundary:y,padding:d}),U=$?M?sn:Ht:M?rn:Ut;x[j]>k[j]&&(U=Ri(U));var G=Ri(U),ee=[];if(i&&ee.push(L[v]<=0),l&&ee.push(L[U]<=0,L[G]<=0),ee.every(function(q){return q})){N=I,P=!1;break}R.set(I,ee)}if(P)for(var B=g?3:1,O=function(Y){var W=w.find(function(F){var z=R.get(F);if(z)return z.slice(0,Y).every(function(J){return J})});if(W)return N=W,"break"},_=B;_>0;_--){var V=O(_);if(V==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const I0={name:"flip",enabled:!0,phase:"main",fn:P0,requiresIfExists:["offset"],data:{_skip:!1}};function xp(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Sp(e){return[Ut,sn,rn,Ht].some(function(t){return e[t]>=0})}function $0(e){var t=e.state,o=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=Kr(t,{elementContext:"reference"}),l=Kr(t,{altBoundary:!0}),c=xp(a,r),d=xp(l,s,i),u=Sp(c),h=Sp(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const j0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$0};function N0(e,t,o){var r=Pn(e),s=[Ht,Ut].indexOf(r)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[Ht,sn].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function M0(e){var t=e.state,o=e.options,r=e.name,s=o.offset,i=s===void 0?[0,0]:s,a=lp.reduce(function(u,h){return u[h]=N0(h,t.rects,i),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const A0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:M0};function _0(e){var t=e.state,o=e.name;t.modifiersData[o]=vp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const D0={name:"popperOffsets",enabled:!0,phase:"read",fn:_0,data:{}};function L0(e){return e==="x"?"y":"x"}function B0(e){var t=e.state,o=e.options,r=e.name,s=o.mainAxis,i=s===void 0?!0:s,a=o.altAxis,l=a===void 0?!1:a,c=o.boundary,d=o.rootBoundary,u=o.altBoundary,h=o.padding,y=o.tether,p=y===void 0?!0:y,g=o.tetherOffset,f=g===void 0?0:g,S=Kr(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),C=Pn(t.placement),E=tr(t.placement),T=!E,w=El(C),x=L0(w),k=t.modifiersData.popperOffsets,R=t.rects.reference,P=t.rects.popper,N=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,A=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(k){if(i){var M,$=w==="y"?Ut:Ht,j=w==="y"?rn:sn,L=w==="y"?"height":"width",U=k[w],G=U+S[$],ee=U-S[j],B=p?-P[L]/2:0,O=E===Qo?R[L]:P[L],_=E===Qo?-P[L]:-R[L],V=t.elements.arrow,q=p&&V?wl(V):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pp(),W=Y[$],F=Y[j],z=Gr(0,R[L],q[L]),J=T?R[L]/2-B-z-W-A.mainAxis:O-z-W-A.mainAxis,oe=T?-R[L]/2+B+z+F+A.mainAxis:_+z+F+A.mainAxis,ce=t.elements.arrow&&qr(t.elements.arrow),H=ce?w==="y"?ce.clientTop||0:ce.clientLeft||0:0,Se=(M=I==null?void 0:I[w])!=null?M:0,le=U+J-Se-H,Ce=U+oe-Se,ke=Gr(p?Ei(G,le):G,U,p?go(ee,Ce):ee);k[w]=ke,v[w]=ke-U}if(l){var Re,Be=w==="x"?Ut:Ht,pe=w==="x"?rn:sn,Ne=k[x],Fe=x==="y"?"height":"width",De=Ne+S[Be],tt=Ne-S[pe],ae=[Ut,Ht].indexOf(C)!==-1,bt=(Re=I==null?void 0:I[x])!=null?Re:0,we=ae?De:Ne-R[Fe]-P[Fe]-bt+A.altAxis,Ie=ae?Ne+R[Fe]+P[Fe]-bt-A.altAxis:tt,ze=p&&ae?c0(we,Ne,Ie):Gr(p?we:De,Ne,p?Ie:tt);k[x]=ze,v[x]=ze-Ne}t.modifiersData[r]=v}}const F0={name:"preventOverflow",enabled:!0,phase:"main",fn:B0,requiresIfExists:["offset"]};function z0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function V0(e){return e===Jt(e)||!an(e)?Ol(e):z0(e)}function W0(e){var t=e.getBoundingClientRect(),o=Zo(t.width)/e.offsetWidth||1,r=Zo(t.height)/e.offsetHeight||1;return o!==1||r!==1}function U0(e,t,o){o===void 0&&(o=!1);var r=an(t),s=an(t)&&W0(t),i=ro(t),a=er(e,s,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!o)&&((Rn(t)!=="body"||Rl(i))&&(l=V0(t)),an(t)?(c=er(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=kl(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function H0(e){var t=new Map,o=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){o.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&s(c)}}),r.push(i)}return e.forEach(function(i){o.has(i.name)||s(i)}),r}function q0(e){var t=H0(e);return o0.reduce(function(o,r){return o.concat(t.filter(function(s){return s.phase===r}))},[])}function G0(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function Y0(e){var t=e.reduce(function(o,r){var s=o[r.name];return o[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var Tp={placement:"bottom",modifiers:[],strategy:"absolute"};function Cp(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function K0(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,r=o===void 0?[]:o,s=t.defaultOptions,i=s===void 0?Tp:s;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tp,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],y=!1,p={state:u,setOptions:function(C){var E=typeof C=="function"?C(u.options):C;f(),u.options=Object.assign({},i,u.options,E),u.scrollParents={reference:ho(l)?Yr(l):l.contextElement?Yr(l.contextElement):[],popper:Yr(c)};var T=q0(Y0([].concat(r,u.options.modifiers)));return u.orderedModifiers=T.filter(function(w){return w.enabled}),g(),p.update()},forceUpdate:function(){if(!y){var C=u.elements,E=C.reference,T=C.popper;if(Cp(E,T)){u.rects={reference:U0(E,qr(T),u.options.strategy==="fixed"),popper:wl(T)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var x=u.orderedModifiers[w],k=x.fn,R=x.options,P=R===void 0?{}:R,N=x.name;typeof k=="function"&&(u=k({state:u,options:P,name:N,instance:p})||u)}}}},update:G0(function(){return new Promise(function(S){p.forceUpdate(),S(u)})}),destroy:function(){f(),y=!0}};if(!Cp(l,c))return p;p.setOptions(d).then(function(S){!y&&d.onFirstUpdate&&d.onFirstUpdate(S)});function g(){u.orderedModifiers.forEach(function(S){var C=S.name,E=S.options,T=E===void 0?{}:E,w=S.effect;if(typeof w=="function"){var x=w({state:u,name:C,instance:p,options:T}),k=function(){};h.push(x||k)}})}function f(){h.forEach(function(S){return S()}),h=[]}return p}}var X0=[v0,D0,b0,i0,A0,I0,F0,f0,j0],J0=K0({defaultModifiers:X0});function wp(e){var h;const{elementType:t,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Ld(o,r),{props:l,internalRef:c}=zd({...i,externalSlotProps:a}),d=lt(c,a==null?void 0:a.ref,(h=e.additionalProps)==null?void 0:h.ref);return Dd(t,{...l,ref:d},r)}function Xr(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function bo(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function Q0(e){return typeof e=="function"?e():e}const Jr=b.forwardRef(function(t,o){const{children:r,container:s,disablePortal:i=!1}=t,[a,l]=b.useState(null),c=lt(b.isValidElement(r)?bo(r):null,o);if(pt(()=>{i||l(Q0(s)||document.body)},[s,i]),pt(()=>{if(a&&!i)return yi(o,a),()=>{yi(o,null)}},[o,a,i]),i){if(b.isValidElement(r)){const d={ref:c};return b.cloneElement(r,d)}return r}return a&&Km.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Jr.propTypes={children:n.node,container:n.oneOfType([kn,n.func]),disablePortal:n.bool}),process.env.NODE_ENV!=="production"&&(Jr.propTypes=ei(Jr.propTypes));function Z0(e){return he("MuiPopper",e)}ge("MuiPopper",["root"]);function eS(e,t){if(t==="ltr")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}}function Il(e){return typeof e=="function"?e():e}function Pi(e){return e.nodeType!==void 0}function tS(e){return!Pi(e)}const nS=e=>{const{classes:t}=e;return be({root:["root"]},Z0,t)},oS={},rS=b.forwardRef(function(t,o){const{anchorEl:r,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:h,slotProps:y={},slots:p={},TransitionProps:g,ownerState:f,...S}=t,C=b.useRef(null),E=lt(C,o),T=b.useRef(null),w=lt(T,h),x=b.useRef(w);pt(()=>{x.current=w},[w]),b.useImperativeHandle(h,()=>T.current,[]);const k=eS(d,i),[R,P]=b.useState(k),N=b.useMemo(()=>Il(r),[r]);b.useEffect(()=>{T.current&&T.current.forceUpdate()}),pt(()=>{if(!N||!c)return;const $=G=>{P(G.placement)};if(process.env.NODE_ENV!=="production"&&N&&Pi(N)&&N.nodeType===1){const G=N.getBoundingClientRect();Xr()&&G.top===0&&G.left===0&&G.right===0&&G.bottom===0&&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(`
|
|
278
|
-
`))}let
|
|
279
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
280
|
-
`))}return null}),children:n.oneOfType([n.node,n.func]),container:n.oneOfType([kn,n.func]),direction:n.oneOf(["ltr","rtl"]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.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:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.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:n.oneOf(["absolute","fixed"])}),popperRef:nn,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),transition:n.bool});const sS=Z(Ep,{name:"MuiPopper",slot:"Root"})({}),Qr=b.forwardRef(function(t,o){const r=ni(),s=Te({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,container:l,disablePortal:c,keepMounted:d,modifiers:u,open:h,placement:y,popperOptions:p,popperRef:g,transition:f,slots:S,slotProps:C,...E}=s,T={anchorEl:i,container:l,disablePortal:c,keepMounted:d,modifiers:u,open:h,placement:y,popperOptions:p,popperRef:g,transition:f,...E};return m.jsx(sS,{as:a,direction:r?"rtl":"ltr",slots:S,slotProps:C,...T,ref:o})});process.env.NODE_ENV!=="production"&&(Qr.propTypes={anchorEl:n.oneOfType([kn,n.object,n.func]),children:n.oneOfType([n.node,n.func]),component:n.elementType,container:n.oneOfType([kn,n.func]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.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:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.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:n.oneOf(["absolute","fixed"])}),popperRef:nn,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transition:n.bool});function iS(e){return he("MuiListSubheader",e)}ge("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const aS=e=>{const{classes:t,color:o,disableGutters:r,inset:s,disableSticky:i}=e,a={root:["root",o!=="default"&&`color${ie(o)}`,!r&&"gutters",s&&"inset",!i&&"sticky"]};return be(a,iS,t)},lS=Z("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="default"&&t[`color${ie(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})(xe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Op=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiListSubheader"}),{className:s,color:i="default",component:a="li",disableGutters:l=!1,disableSticky:c=!1,inset:d=!1,...u}=r,h={...r,color:i,component:a,disableGutters:l,disableSticky:c,inset:d},y=aS(h);return m.jsx(lS,{as:a,className:se(y.root,s),ref:o,ownerState:h,...u})});process.env.NODE_ENV!=="production"&&(Op.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOf(["default","inherit","primary"]),component:n.elementType,disableGutters:n.bool,disableSticky:n.bool,inset:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const cS=dt(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function uS(e){return he("MuiChip",e)}const Ke=ge("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","deletable","outlined","filled","avatar","icon","label","deleteIcon","focusVisible"]),dS=e=>{const{classes:t,disabled:o,size:r,color:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,o&&"disabled",`size${ie(r)}`,`color${ie(s)}`,a&&"clickable",i&&"deletable"],label:["label"],avatar:["avatar"],icon:["icon"],deleteIcon:["deleteIcon"]};return be(c,uS,t)},pS=Z("div",{name:"MuiChip",slot:"Root",shouldForwardProp:e=>Et(e)&&e!=="focusableWhenDisabled"&&e!=="skipFocusWhenDisabled",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:r,clickable:s,onDelete:i,size:a,variant:l}=o;return[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},t.root,t[`size${ie(a)}`],t[`color${ie(r)}`],s&&t.clickable,i&&t.deletable,t[l]]}})(xe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",...et(e,["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ke.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ke.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:"primary"},style:{[`& .${Ke.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:"secondary"},style:{[`& .${Ke.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:"small"},style:{height:24,[`& .${Ke.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ke.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(kt(["contrastText"])).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main,color:(e.vars||e).palette[o].contrastText,[`& .${Ke.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[o].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].contrastText}}}})),{props:o=>o.iconColor===o.color,style:{[`& .${Ke.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:o=>o.iconColor===o.color&&o.color!=="default",style:{[`& .${Ke.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(kt(["dark"])).map(([o])=>({props:{color:o,onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{background:(e.vars||e).palette[o].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(kt(["dark"])).map(([o])=>({props:{color:o,clickable:!0},style:{[`&:hover, &.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.deleteIcon}`]:{marginRight:5}}},{props:{size:"small",variant:"outlined"},style:{[`& .${Ke.avatar}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(kt()).map(([o])=>({props:{variant:"outlined",color:o},style:{color:(e.vars||e).palette[o].main,border:`1px solid ${e.alpha((e.vars||e).palette[o].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[o].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].main}}}}))]}})),fS=Z("span",{name:"MuiChip",slot:"Label"})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function kp(e){return e.key==="Backspace"||e.key==="Delete"}const Ii=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:d,disabled:u=!1,icon:h,label:y,onClick:p,onDelete:g,onKeyDown:f,onKeyUp:S,size:C="medium",variant:E="filled",tabIndex:T,skipFocusWhenDisabled:w=!1,slots:x={},slotProps:k={},...R}=r,{nativeButton:P,...N}=R,A=b.useRef(null),I=lt(A,o),v=z=>{z.stopPropagation(),g(z)},M=z=>{z.currentTarget===z.target&&kp(z)&&z.preventDefault(),f&&f(z)},$=z=>{z.currentTarget===z.target&&g&&kp(z)&&g(z),S&&S(z)},j=a!==!1&&p?!0:a,L=j||g?hn:c||"div",U={...r,component:L,disabled:u,size:C,color:l,iconColor:b.isValidElement(h)&&h.props.color||l,onDelete:!!g,clickable:j,variant:E},G=dS(U),ee=L===hn?{component:c||"div",internalNativeButton:!1,focusVisibleClassName:G.focusVisible,...g&&{disableRipple:!0},...P!==void 0&&{nativeButton:P}}:{};let B=null;g&&(B=d&&b.isValidElement(d)?b.cloneElement(d,{className:se(d.props.className,G.deleteIcon),onClick:v}):m.jsx(cS,{className:G.deleteIcon,onClick:v}));let O=null;s&&b.isValidElement(s)&&(O=b.cloneElement(s,{className:se(G.avatar,s.props.className)}));let _=null;h&&b.isValidElement(h)&&(_=b.cloneElement(h,{className:se(G.icon,h.props.className)})),process.env.NODE_ENV!=="production"&&O&&_&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const V={slots:x,slotProps:k},[q,Y]=Ee("root",{elementType:pS,externalForwardedProps:{...V,...N},ownerState:U,shouldForwardComponentProp:!0,ref:I,className:se(G.root,i),additionalProps:{disabled:j&&u?!0:void 0,tabIndex:w&&u?-1:T,...ee},getSlotProps:z=>({...z,onClick:J=>{var oe;(oe=z.onClick)==null||oe.call(z,J),p==null||p(J)},onKeyDown:J=>{var oe;(oe=z.onKeyDown)==null||oe.call(z,J),M(J)},onKeyUp:J=>{var oe;(oe=z.onKeyUp)==null||oe.call(z,J),$(J)}})}),[W,F]=Ee("label",{elementType:fS,externalForwardedProps:V,ownerState:U,className:G.label});return m.jsxs(q,{as:L,...Y,children:[O||_,m.jsx(W,{...F,children:y}),B]})});process.env.NODE_ENV!=="production"&&(Ii.propTypes={avatar:n.element,children:$v,classes:n.object,className:n.string,clickable:n.bool,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,deleteIcon:n.element,disabled:n.bool,icon:n.element,label:n.node,nativeButton:n.bool,onClick:n.func,onDelete:n.func,onKeyDown:n.func,onKeyUp:n.func,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),skipFocusWhenDisabled:n.bool,slotProps:n.shape({label:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({label:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,variant:n.oneOfType([n.oneOf(["filled","outlined"]),n.string])});const Rp=dt(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Pp,Ip;const mS=e=>{const{classes:t,disablePortal:o,expanded:r,focused:s,fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:c,popupOpen:d,size:u}=e,h={root:["root",r&&"expanded",s&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ie(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return be(h,Ky,t)},hS=Z("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:i,inputFocused:a,size:l}=o;return[{[`& .${_e.tag}`]:t.tag},{[`& .${_e.tag}`]:t[`tagSize${ie(l)}`]},{[`& .${_e.inputRoot}`]:t.inputRoot},{[`& .${_e.input}`]:t.input},{[`& .${_e.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,s&&t.hasClearIcon]}})({[`&.${_e.focused} .${_e.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${_e.clearIndicator}`]:{visibility:"visible"}},[`& .${_e.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${_e.inputRoot}`]:{[`.${_e.hasPopupIcon}&, .${_e.hasClearIcon}&`]:{paddingRight:30},[`.${_e.hasPopupIcon}.${_e.hasClearIcon}&`]:{paddingRight:56},[`& .${_e.input}`]:{width:0,minWidth:30}},[`& .${no.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${no.root}.${Kt.sizeSmall}`]:{[`& .${no.input}`]:{padding:"2px 4px 3px 0"}},[`& .${on.root}`]:{padding:9,[`.${_e.hasPopupIcon}&, .${_e.hasClearIcon}&`]:{paddingRight:39},[`.${_e.hasPopupIcon}.${_e.hasClearIcon}&`]:{paddingRight:65},[`& .${_e.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${_e.endAdornment}`]:{right:9}},[`& .${on.root}.${Kt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${_e.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Xt.root}`]:{paddingTop:19,paddingLeft:8,[`.${_e.hasPopupIcon}&, .${_e.hasClearIcon}&`]:{paddingRight:39},[`.${_e.hasPopupIcon}.${_e.hasClearIcon}&`]:{paddingRight:65},[`& .${Xt.input}`]:{padding:"7px 4px"},[`& .${_e.endAdornment}`]:{right:9}},[`& .${Xt.root}.${Kt.sizeSmall}`]:{paddingBottom:1,[`& .${Xt.input}`]:{padding:"2.5px 4px"}},[`& .${Kt.hiddenLabel}`]:{paddingTop:8},[`& .${Xt.root}.${Kt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${_e.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Xt.root}.${Kt.hiddenLabel}.${Kt.sizeSmall}`]:{[`& .${_e.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${_e.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${_e.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${_e.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${_e.inputRoot}`]:{flexWrap:"wrap"}}}]}),gS=Z("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),bS=Z(On,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),yS=Z(On,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),vS=Z(Qr,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${_e.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})(xe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),xS=Z(Fn,{name:"MuiAutocomplete",slot:"Paper"})(xe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),SS=Z("div",{name:"MuiAutocomplete",slot:"Loading"})(xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),TS=Z("div",{name:"MuiAutocomplete",slot:"NoOptions"})(xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),CS=Z("ul",{name:"MuiAutocomplete",slot:"Listbox"})(xe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",isolation:"isolate",position:"relative",[`& .${_e.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${_e.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${_e.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_e.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),wS=Z(Op,{name:"MuiAutocomplete",slot:"GroupLabel"})(xe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),ES=Z("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${_e.option}`]:{paddingLeft:24}}),$p=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,className:c,clearIcon:d=Pp||(Pp=m.jsx(jx,{fontSize:"small"})),clearOnBlur:u=!r.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:p="Close",defaultValue:g=r.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:S=!1,disabled:C=!1,disabledItemsFocusable:E=!1,disableListWrap:T=!1,disablePortal:w=!1,filterOptions:x,filterSelectedOptions:k=!1,forcePopupIcon:R="auto",freeSolo:P=!1,fullWidth:N=!1,getLimitTagsText:A=ne=>`+${ne}`,getOptionDisabled:I,getOptionKey:v,getOptionLabel:M,isOptionEqualToValue:$,groupBy:j,handleHomeEndKeys:L=!r.freeSolo,id:U,includeInputInList:G=!1,inputValue:ee,limitTags:B=-1,loading:O=!1,loadingText:_="Loading…",multiple:V=!1,noOptionsText:q="No options",onChange:Y,onClose:W,onHighlightChange:F,onInputChange:z,onOpen:J,open:oe,openOnFocus:ce=!1,openText:H="Open",options:Se,popupIcon:le=Ip||(Ip=m.jsx(Rp,{})),readOnly:Ce=!1,renderGroup:ke,renderInput:Re,renderOption:Be,renderValue:pe,resetHighlightOnMouseLeave:Ne=!1,selectOnFocus:Fe=!r.freeSolo,size:De="medium",slots:tt={},slotProps:ae={},value:bt,...we}=r,{getRootProps:Ie,getInputProps:ze,getInputLabelProps:St,getPopupIndicatorProps:ue,getClearProps:Pe,getItemProps:Ve,getListboxProps:ut,getOptionProps:Me,value:Lt,dirty:it,expanded:Zt,id:cn,popupOpen:ye,focused:Q,focusedItem:fe,anchorEl:me,setAnchorEl:Bt,inputValue:ao,groupedOptions:Mt}=Hx({...r,componentName:"Autocomplete"}),qt=Bx();b.useEffect(()=>{if(!ye||!me||typeof ResizeObserver>"u")return;let ne=me.clientWidth;const Oe=new ResizeObserver(()=>{const je=me.clientWidth;ne!==je&&(ne=je,qt())});return Oe.observe(me),()=>{Oe.disconnect()}},[ye,me,qt]);const un=b.useRef([]),At=b.useRef(!1),Ft=ye?Mt:un.current;pt(()=>{ye&&!At.current&&(un.current=[]),At.current=ye,ye&&Mt.length>0&&(un.current=Mt)},[ye,Mt]);const $o=!f&&!C&&it&&!Ce,Mn=(!P||R===!0)&&R!==!1,{onMouseDown:jo}=ze(),_t=M||(ne=>ne.label??ne),nt={...r,disablePortal:w,expanded:Zt,focused:Q,fullWidth:N,getOptionLabel:_t,hasClearIcon:$o,hasPopupIcon:Mn,inputFocused:fe===-1,popupOpen:ye,size:De},Je=mS(nt),yn={slots:tt,slotProps:ae},[ur,No]=Ee("root",{ref:o,className:[Je.root,c],elementType:hS,externalForwardedProps:{...yn,...we},getSlotProps:Ie,ownerState:nt}),[ys,dr]=Ee("listbox",{elementType:CS,externalForwardedProps:yn,ownerState:nt,className:Je.listbox,getSlotProps:ut}),[Mo,pr]=Ee("paper",{elementType:Fn,externalForwardedProps:yn,ownerState:nt,className:Je.paper}),[fr,re]=Ee("popper",{elementType:Qr,externalForwardedProps:yn,ownerState:nt,className:Je.popper,additionalProps:{disablePortal:w,style:{width:me?me.clientWidth:null,pointerEvents:ye?void 0:"none"},role:"presentation",anchorEl:me,open:ye}}),ve=Ft.length>0||O||!P||re.keepMounted===!0,[Ae,at]=Ee("clearIndicator",{elementType:bS,externalForwardedProps:yn,ownerState:nt,className:Je.clearIndicator,shouldForwardComponentProp:!0,additionalProps:{...Pe(),"aria-label":y,title:y}}),[Rt,Gn]=Ee("popupIndicator",{elementType:yS,externalForwardedProps:yn,ownerState:nt,className:Je.popupIndicator,shouldForwardComponentProp:!0,additionalProps:{...ue(),disabled:C,"aria-label":ye?p:H,title:ye?p:H}});let Pt;const Yn=ne=>({className:Je.tag,disabled:C,...Ve(ne)});if(V?Lt.length>0&&(pe?Pt=pe(Lt,Yn,nt):Pt=Lt.map((ne,Oe)=>{const{key:je,...Le}=Yn({index:Oe});return m.jsx(Ii,{label:_t(ne),size:De,...Le,...yn.slotProps.chip},je)})):pe&&Lt!=null&&(Pt=pe(Lt,Yn,nt)),B>-1&&Array.isArray(Pt)){const ne=Pt.length-B;!Q&&ne>0&&(Pt=Pt.splice(0,B),Pt.push(m.jsx("span",{className:Je.tag,children:A(ne)},Pt.length)))}const Kn=ke||(ne=>m.jsxs("li",{children:[m.jsx(wS,{className:Je.groupLabel,ownerState:nt,component:"div",children:ne.group}),m.jsx(ES,{className:Je.groupUl,ownerState:nt,children:ne.children})]},ne.key)),K=Be||((ne,Oe)=>{const{key:je,...Le}=ne;return m.jsx("li",{...Le,children:_t(Oe)},je)}),X=(ne,Oe)=>{const je=Me({option:ne,index:Oe});return K({...je,className:Je.option},ne,{selected:je["aria-selected"],index:Oe,inputValue:ao},nt)};return m.jsxs(b.Fragment,{children:[m.jsx(ur,{...No,children:Re({id:cn,disabled:C,fullWidth:r.fullWidth??!0,size:De==="small"?"small":void 0,slotProps:{inputLabel:St(),input:{ref:Bt,className:Je.inputRoot,startAdornment:Pt,onMouseDown:ne=>{ne.target===ne.currentTarget&&jo(ne)},...($o||Mn)&&{endAdornment:m.jsxs(gS,{className:Je.endAdornment,ownerState:nt,children:[$o?m.jsx(Ae,{...at,children:d}):null,Mn?m.jsx(Rt,{...Gn,children:le}):null]})}},htmlInput:{className:Je.input,disabled:C,readOnly:Ce,...ze()}}})}),me&&ve?m.jsx(vS,{as:fr,...re,children:m.jsxs(xS,{as:Mo,...pr,children:[O&&Ft.length===0?m.jsx(SS,{className:Je.loading,ownerState:nt,children:_}):null,Ft.length===0&&!P&&!O?m.jsx(TS,{className:Je.noOptions,ownerState:nt,role:"presentation",onMouseDown:ne=>{ne.preventDefault()},children:q}):null,Ft.length>0?m.jsx(ys,{...dr,children:Ft.map((ne,Oe)=>j?Kn({key:ne.key,group:ne.group,children:ne.options.map((je,Le)=>X(je,ne.index+Le))}):X(ne,Oe))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&($p.propTypes={autoComplete:n.bool,autoHighlight:n.bool,autoSelect:n.bool,blurOnSelect:n.oneOfType([n.oneOf(["mouse","touch"]),n.bool]),classes:n.object,className:n.string,clearIcon:n.node,clearOnBlur:n.bool,clearOnEscape:n.bool,clearText:n.string,closeText:n.string,defaultValue:fn(n.any,e=>e.multiple&&e.defaultValue!==void 0&&!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(`
|
|
281
|
-
|
|
282
|
-
`)):null)});function OS(e){const{prototype:t={}}=e;return!!t.isReactComponent}function jp(e,t,o,r,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!OS(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const yo=fn(n.element,jp);yo.isRequired=fn(n.element.isRequired,jp);const kS={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},RS={opacity:0,visibility:"hidden"},$l=b.forwardRef(function(t,o){const r=En(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,disablePrefersReducedMotion:c=!1,easing:d,in:u,onEnter:h,onEntered:y,onEntering:p,onExit:g,onExited:f,onExiting:S,style:C,timeout:E=s,...T}=t,w=zr(r.motion.reducedMotion,c),x=b.useRef(null),k=lt(x,bo(l),o),R=mt(x,p),P=mt(x,($,j)=>{w.shouldReduceMotion||ci($);const L=to({style:C,timeout:E,easing:d},{mode:"enter"}),U=w.getTransitionTiming({duration:L.duration,delay:L.delay});$.style.transition=r.transitions.create("opacity",{duration:U.duration,easing:L.easing,delay:U.delay}),h&&h($,j)}),N=mt(x,y),A=mt(x,S),I=mt(x,$=>{const j=to({style:C,timeout:E,easing:d},{mode:"exit"}),L=w.getTransitionTiming({duration:j.duration,delay:j.delay});$.style.transition=r.transitions.create("opacity",{duration:L.duration,easing:j.easing,delay:L.delay}),g&&g($)}),v=mt(x,$=>{$.style.transition="",f&&f($)}),M=i?$=>{i(x.current,$)}:void 0;return m.jsx(Fr,{appear:a,in:u,nodeRef:x,onEnter:P,onEntered:N,onEntering:R,onExit:I,onExited:v,onExiting:A,addEndListener:M,reduceMotion:w.shouldReduceMotion,timeout:E,...T,children:($,{ownerState:j,...L})=>{const U=Od($,u,kS,RS,C,l.props.style);return b.cloneElement(l,{style:U,ref:k,...L})}})});process.env.NODE_ENV!=="production"&&($l.propTypes={addEndListener:n.func,appear:n.bool,children:yo.isRequired,disablePrefersReducedMotion:n.bool,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function PS(e){return he("MuiBackdrop",e)}ge("MuiBackdrop",["root","invisible"]);const IS=e=>{const{classes:t,invisible:o}=e;return be({root:["root",o&&"invisible"]},PS,t)},$S=Z("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),jl=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:a="div",invisible:l=!1,open:c,slotProps:d={},slots:u={},transitionDuration:h,...y}=r,p={...r,component:a,invisible:l},g=IS(p),f={component:a,slots:u,slotProps:d},[S,C]=Ee("root",{elementType:$S,externalForwardedProps:f,className:se(g.root,i),ownerState:p}),[E,T]=Ee("transition",{elementType:$l,externalForwardedProps:f,ownerState:p});return m.jsx(E,{in:c,timeout:h,...y,...T,children:m.jsx(S,{...C,ref:o,children:s})})});process.env.NODE_ENV!=="production"&&(jl.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,invisible:n.bool,open:n.bool.isRequired,slotProps:n.shape({root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});const jS=ge("MuiBox",["root"]),NS=si(),Xe=pb({themeId:xn,defaultTheme:NS,defaultClassName:jS.root,generateClassName:ju.generate});process.env.NODE_ENV!=="production"&&(Xe.propTypes={children:n.node,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function MS(e){return he("MuiButton",e)}const vo=ge("MuiButton",["root","text","outlined","contained","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Np=b.createContext({});process.env.NODE_ENV!=="production"&&(Np.displayName="ButtonGroupContext");const Mp=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Mp.displayName="ButtonGroupButtonContext");const AS=e=>{const{color:t,disableElevation:o,fullWidth:r,size:s,variant:i,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",i,`size${ie(s)}`,`color${ie(t)}`,o&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${ie(l)}`],startIcon:["icon","startIcon"],endIcon:["icon","endIcon"],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=be(d,MS,c);return{...c,...u}},Ap=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],_S=Z(hn,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${ie(o.size)}`],o.color==="inherit"&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth,o.loading&&t.loading]}})(xe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,...et(e,["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${vo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${vo.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vo.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(kt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{...et(e,["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${vo.loading}`]:{color:"transparent"}}}]}})),DS=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,o.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:"inherit",alignItems:"center",marginRight:8,marginLeft:-4,"&::before":{content:'"\\200b"',width:0,overflow:"hidden"},variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{...et(e,["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ap]})),LS=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,o.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{...et(e,["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ap]})),BS=Z("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),_p=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),xo=b.forwardRef(function(t,o){const r=b.useContext(Np),s=b.useContext(Mp),i=Go(r,t),a=Te({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:u,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:p=!1,endIcon:g,focusVisibleClassName:f,fullWidth:S=!1,id:C,loading:E=null,loadingIndicator:T,loadingPosition:w="center",size:x="medium",startIcon:k,type:R,variant:P="text",...N}=a,A=pn(C),I=T??m.jsx(Vr,{"aria-labelledby":A,color:"inherit",size:16}),v={...a,color:c,component:d,disabled:h,disableElevation:y,disableFocusRipple:p,fullWidth:S,loading:E,loadingIndicator:I,loadingPosition:w,size:x,type:R,variant:P},M=AS(v),$=(k||E&&w==="start")&&m.jsx(DS,{className:M.startIcon,ownerState:v,children:k||m.jsx(_p,{className:M.loadingIconPlaceholder,ownerState:v})}),j=(g||E&&w==="end")&&m.jsx(LS,{className:M.endIcon,ownerState:v,children:g||m.jsx(_p,{className:M.loadingIconPlaceholder,ownerState:v})}),L=s||"",U=typeof E=="boolean"?m.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:E&&m.jsx(BS,{className:M.loadingIndicator,ownerState:v,children:I})}):null,{root:G,...ee}=M;return m.jsxs(_S,{ownerState:v,className:se(r.className,M.root,u,L),component:d,disabled:h||E,focusRipple:!p,focusVisibleClassName:se(M.focusVisible,f),ref:o,internalNativeButton:!0,type:R,id:E?A:C,...N,classes:ee,children:[$,w!=="end"&&U,l,w==="end"&&U,j]})});process.env.NODE_ENV!=="production"&&(xo.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","success","error","info","warning"]),n.string]),component:n.elementType,disabled:n.bool,disableElevation:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,endIcon:n.node,focusVisibleClassName:n.string,fullWidth:n.bool,href:n.string,id:n.string,loading:n.bool,loadingIndicator:n.node,loadingPosition:n.oneOf(["center","end","start"]),size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),startIcon:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,variant:n.oneOfType([n.oneOf(["contained","outlined","text"]),n.string])});function FS(e){return b.Children.toArray(e).filter(t=>b.isValidElement(t))}function zS(e){return he("PrivateSwitchBase",e)}ge("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const VS=e=>{const{classes:t,checked:o,disabled:r,edge:s}=e,i={root:["root",o&&"checked",r&&"disabled",s&&`edge${ie(s)}`],input:["input"]};return be(i,zS,t)},WS=Z(hn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),US=Z("input",{name:"MuiSwitchBase",shouldForwardProp:Et})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$i=b.forwardRef(function(t,o){const{autoFocus:r,checked:s,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:h,name:y,onBlur:p,onChange:g,onFocus:f,readOnly:S,required:C=!1,tabIndex:E,type:T,value:w,slots:x={},slotProps:k={},...R}=t,{nativeButton:P,...N}=R,[A,I]=oo({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),v=xd(),M=Y=>{f&&f(Y),v&&v.onFocus&&v.onFocus(Y)},$=Y=>{p&&p(Y),v&&v.onBlur&&v.onBlur(Y)},j=Y=>{if(Y.nativeEvent.defaultPrevented||S)return;const W=Y.target.checked;I(W),g&&g(Y,W)};let L=l;v&&typeof L>"u"&&(L=v.disabled);const U=T==="checkbox"||T==="radio",G={...t,checked:A,disabled:L,disableFocusRipple:c,edge:d},ee=VS(G),B={slots:x,slotProps:k},[O,_]=Ee("root",{ref:o,elementType:WS,className:ee.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...N},getSlotProps:Y=>({...Y,onFocus:W=>{var F;(F=Y.onFocus)==null||F.call(Y,W),M(W)},onBlur:W=>{var F;(F=Y.onBlur)==null||F.call(Y,W),$(W)}}),ownerState:G,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[V,q]=Ee("input",{elementType:US,className:ee.input,externalForwardedProps:B,getSlotProps:Y=>({...Y,onChange:W=>{var F;(F=Y.onChange)==null||F.call(Y,W),j(W)}}),ownerState:G,additionalProps:{autoFocus:r,checked:s,defaultChecked:a,disabled:L,id:U?h:void 0,name:y,readOnly:S,required:C,tabIndex:E,type:T,...T==="checkbox"&&w===void 0?{}:{value:w}}});return m.jsxs(O,{..._,children:[m.jsx(V,{...q}),A?i:u]})});process.env.NODE_ENV!=="production"&&($i.propTypes={autoFocus:n.bool,checked:n.bool,checkedIcon:n.node.isRequired,classes:n.object,className:n.string,defaultChecked:n.bool,disabled:n.bool,disableFocusRipple:n.bool,edge:n.oneOf(["end","start",!1]),icon:n.node.isRequired,id:n.string,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,readOnly:n.bool,required:n.bool,slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.object,tabIndex:n.oneOfType([n.number,n.string]),type:n.string.isRequired,value:n.any});const HS=dt(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),qS=dt(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),GS=dt(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),YS=e=>{const{classes:t,indeterminate:o,color:r,size:s}=e,i={root:["root",o&&"indeterminate",`color${ie(r)}`,`size${ie(s)}`]},a=be(i,Xy,t);return{...t,...a}},KS=Z($i,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${ie(o.size)}`],o.color!=="default"&&t[`color${ie(o.color)}`]]}})(xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(kt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(kt()).map(([t])=>({props:{color:t},style:{[`&.${sl.checked}, &.${sl.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${sl.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),XS=m.jsx(qS,{}),JS=m.jsx(HS,{}),QS=m.jsx(GS,{}),So=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiCheckbox"}),{checkedIcon:s=XS,color:i="primary",icon:a=JS,indeterminate:l=!1,indeterminateIcon:c=QS,size:d="medium",disableRipple:u=!1,className:h,slots:y={},slotProps:p={},...g}=r,f=l?c:a,S=l?c:s,C={...r,disableRipple:u,color:i,indeterminate:l,size:d},E=YS(C),T=p.input,[w,x]=Ee("root",{ref:o,elementType:KS,className:se(E.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:p,...g},ownerState:C,additionalProps:{type:"checkbox",icon:b.cloneElement(f,{fontSize:f.props.fontSize??d}),checkedIcon:b.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:u,slots:y,slotProps:{input:vi(typeof T=="function"?T(C):T,{"data-indeterminate":l,"aria-checked":l?"mixed":void 0})}}});return m.jsx(w,{...x,classes:E})});process.env.NODE_ENV!=="production"&&(So.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),defaultChecked:n.bool,disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,indeterminate:n.bool,indeterminateIcon:n.node,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function Dp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ZS(e){const t=It(e);return t.body===e?mn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Zr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Lp(e){return parseFloat(mn(e).getComputedStyle(e).paddingRight)||0}function eT(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||r}function Bp(e,t,o,r,s){const i=[t,o,...r];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!eT(a);l&&c&&Zr(a,s)})}function Nl(e,t){let o=-1;return e.some((r,s)=>t(r)?(o=s,!0):!1),o}function tT(e,t){const o=[],r=e.container;if(!t.disableScrollLock){if(ZS(r)){const a=Dp(mn(r));o.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Lp(r)+a}px`;const l=It(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{o.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Lp(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=It(r).body;else{const a=r.parentElement,l=mn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}o.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{o.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function nT(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class oT{constructor(){this.modals=[],this.containers=[]}add(t,o){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Zr(t.modalRef,!1);const s=nT(o);Bp(o,t.mount,t.modalRef,s,!0);const i=Nl(this.containers,a=>a.container===o);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:s}),r)}mount(t,o){const r=Nl(this.containers,i=>i.modals.includes(t)),s=this.containers[r];s.restore||(s.restore=tT(s,o))}remove(t,o=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const s=Nl(this.containers,a=>a.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Zr(t.modalRef,o),Bp(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Zr(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const ji="data-mui-focusable";function Fp(e){return e?e.hasAttribute(ji)?e:e.querySelector(`[${ji}]`):null}const rT=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zp(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function sT(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function iT(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||sT(e))}function aT(e){const t=[],o=[];return Array.from(e.querySelectorAll(rT)).forEach((r,s)=>{const i=zp(r);i===-1||!iT(r)||(i===0?t.push(r):o.push({documentOrder:s,tabIndex:i,node:r}))}),o.sort((r,s)=>r.tabIndex===s.tabIndex?r.documentOrder-s.documentOrder:r.tabIndex-s.tabIndex).map(r=>r.node).concat(t)}function lT(){return!0}function Ni(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:i=aT,isEnabled:a=lT,open:l}=e,c=b.useRef(!1),d=b.useRef(null),u=b.useRef(null),h=b.useRef(null),y=b.useRef(null),p=b.useRef(!1),g=b.useRef(null),f=lt(bo(t),g),S=b.useRef(null);b.useEffect(()=>{!l||!g.current||(p.current=!o)},[o,l]),b.useEffect(()=>{if(c.current=!1,!l||!g.current)return;const T=It(g.current),w=Bn(T),x=Fp(g.current)??g.current;return Wn(g.current,w)||(x.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&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(`
|
|
283
|
-
`)),x.setAttribute("tabIndex","-1")),p.current&&x.focus()),()=>{!s&&h.current&&(c.current=!0,h.current.focus(),h.current=null)}},[l]),b.useEffect(()=>{if(!l||!g.current)return;const T=It(g.current),w=R=>{if(S.current=R,r||!a()||R.key!=="Tab")return;const P=g.current,N=Bn(T);if(P===null)return;const A=Fp(P);if(N===P||N===A){const v=i(P);if(v.length===0)return;R.preventDefault(),R.shiftKey?v[v.length-1].focus():v[0].focus();return}if(Wn(P,N)){const v=i(P),M=v.indexOf(N);if(M===-1||!v.some(L=>zp(L)>0))return;R.preventDefault();let j=0;R.shiftKey?j=M<=0?v.length-1:M-1:j=M===v.length-1?0:M+1,v[j].focus()}},x=()=>{var A,I;const R=g.current;if(R===null)return;const P=Bn(T);if(!T.hasFocus()||!a()||c.current){c.current=!1;return}if(Wn(R,P)||r&&P!==d.current&&P!==u.current)return;if(P!==y.current)y.current=null;else if(y.current!==null)return;if(!p.current)return;let N=[];if((P===d.current||P===u.current)&&(N=i(g.current)),N.length>0){const v=!!((A=S.current)!=null&&A.shiftKey&&((I=S.current)==null?void 0:I.key)==="Tab"),M=N[0],$=N[N.length-1];typeof M!="string"&&typeof $!="string"&&(v?$.focus():M.focus())}else R.focus()};T.addEventListener("focusin",x),T.addEventListener("keydown",w,!0);const k=setInterval(()=>{const R=Bn(T);R&&R.tagName==="BODY"&&x()},50);return()=>{clearInterval(k),T.removeEventListener("focusin",x),T.removeEventListener("keydown",w,!0)}},[o,r,s,a,l,i]);const C=T=>{h.current===null&&(h.current=T.relatedTarget),p.current=!0,y.current=T.target;const w=t.props.onFocus;w&&w(T)},E=T=>{h.current===null&&(h.current=T.relatedTarget),p.current=!0};return m.jsxs(b.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:E,ref:d,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:f,onFocus:C}),m.jsx("div",{tabIndex:l?0:-1,onFocus:E,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:yo,disableAutoFocus:n.bool,disableEnforceFocus:n.bool,disableRestoreFocus:n.bool,getTabbable:n.func,isEnabled:n.func,open:n.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Ni.propTypes=ei(Ni.propTypes));function cT(e){return typeof e=="function"?e():e}function uT(e){return e?e.props.hasOwnProperty("in"):!1}const Vp=()=>{},Mi=new oT;function dT(e){const{container:t,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:l,open:c,rootRef:d}=e,u=b.useRef({}),h=b.useRef(null),y=b.useRef(null),p=lt(y,d),[g,f]=b.useState(!c),S=uT(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const E=()=>It(h.current),T=()=>(u.current.modalRef=y.current,u.current.mount=h.current,u.current),w=()=>{Mi.mount(T(),{disableScrollLock:o}),y.current&&(y.current.scrollTop=0)},x=ct(()=>{const $=cT(t)||E().body;Mi.add(T(),$),y.current&&w()}),k=()=>Mi.isTopModal(T()),R=ct($=>{h.current=$,$&&(c&&k()?w():y.current&&Zr(y.current,C))}),P=b.useCallback(()=>{Mi.remove(T(),C)},[C]);b.useEffect(()=>()=>{P()},[P]),b.useEffect(()=>{c?x():(!S||!r)&&P()},[c,P,S,r,x]);const N=$=>j=>{var L;(L=$.onKeyDown)==null||L.call($,j),!(j.key!=="Escape"||j.which===229||!k())&&(j.stopPropagation(),l&&l(j,"escapeKeyDown"))},A=$=>j=>{var L;(L=$.onClick)==null||L.call($,j),j.target===j.currentTarget&&l&&l(j,"backdropClick")};return{getRootProps:($={})=>{const j=Bd(e);delete j.onTransitionEnter,delete j.onTransitionExited;const L={...j,...$};return{role:"presentation",...L,onKeyDown:N(L),ref:p}},getBackdropProps:($={})=>{const j=$;return{"aria-hidden":!0,...j,onClick:A(j),open:c}},getTransitionProps:()=>{const $=()=>{f(!1),s&&s()},j=()=>{f(!0),i&&i(),r&&P()};return{onEnter:fl($,(a==null?void 0:a.props.onEnter)??Vp),onExited:fl(j,(a==null?void 0:a.props.onExited)??Vp)}},rootRef:p,portalRef:R,isTopModal:k,exited:g,hasTransition:S}}function pT(e){return he("MuiModal",e)}ge("MuiModal",["root","hidden","backdrop"]);const fT=e=>{const{open:t,exited:o,classes:r}=e;return be({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},pT,r)},mT=Z("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(xe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),hT=Z(jl,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ai=b.forwardRef(function(t,o){const r=Te({name:"MuiModal",props:t}),{classes:s,className:i,closeAfterTransition:a=!1,children:l,container:c,component:d,disableAutoFocus:u=!1,disableEnforceFocus:h=!1,disablePortal:y=!1,disableRestoreFocus:p=!1,disableScrollLock:g=!1,hideBackdrop:f=!1,keepMounted:S=!1,onClose:C,onTransitionEnter:E,onTransitionExited:T,open:w,slotProps:x={},slots:k={},theme:R,...P}=r,N={...r,closeAfterTransition:a,disableAutoFocus:u,disableEnforceFocus:h,disablePortal:y,disableRestoreFocus:p,disableScrollLock:g,hideBackdrop:f,keepMounted:S},{getRootProps:A,getBackdropProps:I,getTransitionProps:v,portalRef:M,isTopModal:$,exited:j,hasTransition:L}=dT({...N,rootRef:o}),U={...N,exited:j},G=fT(U),ee={};if(l.props.tabIndex===void 0&&(ee.tabIndex="-1"),L){const{onEnter:Y,onExited:W}=v();ee.onEnter=Y,ee.onExited=W}const B={slots:k,slotProps:x},[O,_]=Ee("root",{ref:o,elementType:mT,externalForwardedProps:{...B,...P,component:d},getSlotProps:A,ownerState:U,className:se(i,G==null?void 0:G.root,!U.open&&U.exited&&(G==null?void 0:G.hidden))}),[V,q]=Ee("backdrop",{elementType:hT,externalForwardedProps:B,shouldForwardComponentProp:!0,getSlotProps:Y=>I({...Y,onClick:W=>{Y!=null&&Y.onClick&&Y.onClick(W)}}),className:G==null?void 0:G.backdrop,ownerState:U});return!S&&!w&&(!L||j)?null:m.jsx(Jr,{ref:M,container:c,disablePortal:y,children:m.jsxs(O,{..._,children:[f?null:m.jsx(V,{...q}),m.jsx(Ni,{disableEnforceFocus:h,disableAutoFocus:u,disableRestoreFocus:p,isEnabled:$,open:w,children:b.cloneElement(l,ee)})]})})});process.env.NODE_ENV!=="production"&&(Ai.propTypes={children:yo.isRequired,classes:n.object,className:n.string,closeAfterTransition:n.bool,component:n.elementType,container:n.oneOfType([kn,n.func]),disableAutoFocus:n.bool,disableEnforceFocus:n.bool,disablePortal:n.bool,disableRestoreFocus:n.bool,disableScrollLock:n.bool,hideBackdrop:n.bool,keepMounted:n.bool,onClose:n.func,onTransitionEnter:n.func,onTransitionExited:n.func,open:n.bool.isRequired,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function gT(e){return he("MuiDialog",e)}ge("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Ml=b.createContext({});process.env.NODE_ENV!=="production"&&(Ml.displayName="DialogContext");const bT=Z(jl,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),yT=e=>{const{classes:t,scroll:o,maxWidth:r,fullWidth:s,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ie(o)}`],paper:["paper",`paperWidth${ie(String(r))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return be(a,gT,t)},vT=Z(Ai,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),xT=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.container,t[`scroll${ie(o.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ST=Z(Fn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`paperWidth${ie(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})(xe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto",outline:0,"@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:"xs",scroll:"body"},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t,scroll:"body"},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0}},{props:({ownerState:t})=>t.fullScreen&&t.scroll==="body",style:{margin:0,maxWidth:"100%"}}]}))),Al=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiDialog"}),s=En(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,children:d,className:u,fullScreen:h=!1,fullWidth:y=!1,maxWidth:p="sm",onClick:g,onClose:f,open:S,PaperComponent:C=Fn,role:E="dialog",scroll:T="paper",slots:w={},slotProps:x={},transitionDuration:k=i,...R}=r,P={...r,fullScreen:h,fullWidth:y,maxWidth:p,scroll:T},N=yT(P),A=b.useRef(),I=W=>{A.current=W.target===W.currentTarget},v=W=>{g&&g(W),A.current&&(A.current=null,f&&f(W,"backdropClick"))},M=pn(l),$=b.useMemo(()=>({titleId:M}),[M]),j={slots:w,slotProps:x},[L,U]=Ee("root",{elementType:vT,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:P,className:se(N.root,u),ref:o}),[G,ee]=Ee("backdrop",{elementType:bT,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:P,className:N.backdrop}),[B,O]=Ee("paper",{elementType:ST,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:P,className:N.paper,additionalProps:{elevation:24,role:E,"aria-describedby":a,"aria-labelledby":M,"aria-modal":c,tabIndex:-1,[ji]:""}}),[_,V]=Ee("container",{elementType:xT,externalForwardedProps:j,ownerState:P,className:N.container}),[q,Y]=Ee("transition",{elementType:$l,externalForwardedProps:j,ownerState:P,additionalProps:{appear:!0,in:S,timeout:k,role:"presentation"}});return m.jsx(L,{closeAfterTransition:!0,slots:{backdrop:G},slotProps:{backdrop:{transitionDuration:k,...ee}},onClose:f,open:S,onClick:v,...U,...R,children:m.jsx(q,{...Y,children:m.jsx(_,{onMouseDown:I,...V,children:m.jsx(B,{as:C,...O,children:m.jsx(Ml.Provider,{value:$,children:d})})})})})});process.env.NODE_ENV!=="production"&&(Al.propTypes={"aria-describedby":n.string,"aria-labelledby":n.string,"aria-modal":n.oneOfType([n.oneOf(["false","true"]),n.bool]),children:n.node,classes:n.object,className:n.string,fullScreen:n.bool,fullWidth:n.bool,maxWidth:n.oneOfType([n.oneOf(["xs","sm","md","lg","xl",!1]),n.string]),onClick:n.func,onClose:n.func,open:n.bool.isRequired,PaperComponent:n.elementType,role:n.oneOf(["alertdialog","dialog"]),scroll:n.oneOf(["body","paper"]),slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),container:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,container:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function TT(e){return he("MuiDialogActions",e)}ge("MuiDialogActions",["root","spacing"]);const CT=e=>{const{classes:t,disableSpacing:o}=e;return be({root:["root",!o&&"spacing"]},TT,t)},wT=Z("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),_i=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=r,l={...r,disableSpacing:i},c=CT(l);return m.jsx(wT,{className:se(c.root,s),ownerState:l,ref:o,...a})});process.env.NODE_ENV!=="production"&&(_i.propTypes={children:n.node,classes:n.object,className:n.string,disableSpacing:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function ET(e){return he("MuiDialogContent",e)}ge("MuiDialogContent",["root","dividers"]);function OT(e){return he("MuiDialogTitle",e)}const kT=ge("MuiDialogTitle",["root"]),RT=e=>{const{classes:t,dividers:o}=e;return be({root:["root",o&&"dividers"]},ET,t)},PT=Z("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})(xe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${kT.root} + &`]:{paddingTop:0}}}]}))),Wp=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=r,l={...r,dividers:i},c=RT(l);return m.jsx(PT,{className:se(c.root,s),ownerState:l,ref:o,...a})});process.env.NODE_ENV!=="production"&&(Wp.propTypes={children:n.node,classes:n.object,className:n.string,dividers:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function IT(e){return he("MuiDialogContentText",e)}ge("MuiDialogContentText",["root"]);const $T=e=>{const{classes:t}=e,r=be({root:["root"]},IT,t);return{...t,...r}},jT=Z(yt,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),_l=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiDialogContentText"}),{children:s,className:i,...a}=r,l=$T(a);return m.jsx(jT,{component:"p",variant:"body1",color:"textSecondary",ref:o,ownerState:a,className:se(l.root,i),...r,classes:l})});process.env.NODE_ENV!=="production"&&(_l.propTypes={children:n.node,classes:n.object,className:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const NT=e=>{const{classes:t}=e;return be({root:["root"]},OT,t)},MT=Z(yt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Up=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiDialogTitle"}),{className:s,id:i,...a}=r,l=r,c=NT(l),{titleId:d=i}=b.useContext(Ml);return m.jsx(MT,{component:"h2",className:se(c.root,s),ownerState:l,ref:o,variant:"h6",id:i??d,...a})});process.env.NODE_ENV!=="production"&&(Up.propTypes={children:n.node,classes:n.object,className:n.string,id:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Hp=ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","vertical","withChildren","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),AT={visibility:"hidden"},_T={};function DT(e){return typeof e=="string"&&/^translate\(.+,\s*.+\)$/.test(e)}function LT(e,t,o,r=_T){const{resetInlineTransform:s=!0}=r,i=o&&o.getBoundingClientRect(),a=mn(t);let l,c;if(s){const h=t.style.transform,y=t.style.transition;t.style.transition="",t.style.transform="",l=t.getBoundingClientRect(),c=a.getComputedStyle(t).getPropertyValue("transform"),t.style.transform=h,t.style.transition=y}else l=t.getBoundingClientRect(),c=a.getComputedStyle(t).getPropertyValue("transform");const{offsetX:d,offsetY:u}=dv(c);return e==="left"?i?`translateX(${i.right+d-l.left}px)`:`translateX(${a.innerWidth+d-l.left}px)`:e==="right"?i?`translateX(-${l.right-i.left-d}px)`:`translateX(-${l.left+l.width-d}px)`:e==="up"?i?`translateY(${i.bottom+u-l.top}px)`:`translateY(${a.innerHeight+u-l.top}px)`:i?`translateY(-${l.top-i.top+l.height-u}px)`:`translateY(-${l.top+l.height-u}px)`}function qp(e){return typeof e=="function"?e():e}function Di(e,t,o,r){const s=qp(o),i=LT(e,t,s,r);i&&(t.style.transform=i)}const Dl=b.forwardRef(function(t,o){const r=En(),s={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,container:d,disablePrefersReducedMotion:u=!1,direction:h="down",easing:y=s,in:p,onEnter:g,onEntered:f,onEntering:S,onExit:C,onExited:E,onExiting:T,style:w,timeout:x=i,...k}=t,R=zr(r.motion.reducedMotion,u),P=b.useRef(null),N=b.useRef(!1),A=lt(bo(c),P,o),I=mt(P,(ee,B)=>{Di(h,ee,d),R.shouldReduceMotion||ci(ee),g&&g(ee,B)}),v=mt(P,(ee,B)=>{const O=to({timeout:x,style:w,easing:y},{mode:"enter"}),_=R.getTransitionTiming({duration:O.duration,delay:O.delay});ee.style.transition=r.transitions.create("transform",{duration:_.duration,easing:O.easing,delay:_.delay}),ee.style.transform="none",S&&S(ee,B)}),M=mt(P,f),$=mt(P,T),j=mt(P,ee=>{const B=to({timeout:x,style:w,easing:y},{mode:"exit"}),O=R.getTransitionTiming({duration:B.duration,delay:B.delay});ee.style.transition=r.transitions.create("transform",{duration:O.duration,easing:B.easing,delay:O.delay});const _=DT(ee.style.transform);N.current=_,Di(h,ee,d,{resetInlineTransform:!_}),C&&C(ee)}),L=mt(P,ee=>{N.current=!1,ee.style.transition="",E&&E(ee)}),U=a?ee=>{a(P.current,ee)}:void 0,G=b.useCallback(()=>{P.current&&Di(h,P.current,d)},[h,d]);return b.useEffect(()=>{if(p||h==="down"||h==="right")return;const ee=al(()=>{P.current&&Di(h,P.current,d)}),B=mn(P.current);return B.addEventListener("resize",ee),()=>{ee.clear(),B.removeEventListener("resize",ee)}},[h,p,d]),b.useEffect(()=>{!p&&!N.current&&G()},[p,G]),m.jsx(Fr,{nodeRef:P,onEnter:I,onEntered:M,onEntering:v,onExit:j,onExited:L,onExiting:$,addEndListener:U,appear:l,in:p,reduceMotion:R.shouldReduceMotion,timeout:x,...k,children:(ee,{ownerState:B,...O})=>{let _;return ee==="exited"&&!p?_=w||c.props.style?{visibility:"hidden",...w,...c.props.style}:AT:w&&c.props.style?_={...w,...c.props.style}:_=w||c.props.style,b.cloneElement(c,{ref:A,style:_,...O})}})});process.env.NODE_ENV!=="production"&&(Dl.propTypes={addEndListener:n.func,appear:n.bool,children:yo.isRequired,container:fn(n.oneOfType([kn,n.func]),e=>{if(e.open){const t=qp(e.container);if(t&&t.nodeType===1){const o=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Xr()&&o.top===0&&o.left===0&&o.right===0&&o.bottom===0)return new Error(["MUI: The `container` 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(`
|
|
249
|
+
`,Iy=typeof Xa!="string"?ca`
|
|
250
|
+
animation: ${Xa} 1.4s linear infinite;
|
|
251
|
+
`:null,Ny=typeof Ja!="string"?ca`
|
|
252
|
+
animation: ${Ja} 1.4s ease-in-out infinite;
|
|
253
|
+
`:null,My=e=>{const{classes:t,variant:o,color:r,disableShrink:i}=e,s={root:["root",o,`color${ee(r)}`],svg:["svg"],circle:["circle",`circle${ee(o)}`,i&&"circleDisableShrink"]};return ye(s,jy,t)},Ay=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`color${ee(o.color)}`]]}})(ve(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Iy||{animation:`${Xa} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Dy=Z("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),_y=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.circle,t[`circle${ee(o.variant)}`],o.disableShrink&&t.circleDisableShrink]}})(ve(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Ny||{animation:`${Ja} 1.4s ease-in-out infinite`}}]}))),jr=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,size:l=40,style:c,thickness:d=3.6,value:u=0,variant:m="indeterminate",...h}=r,y={...r,color:s,disableShrink:a,size:l,thickness:d,value:u,variant:m},g=My(y),p={},C={},w={};if(m==="determinate"){const E=2*Math.PI*((Gn-d)/2);p.strokeDasharray=E.toFixed(3),w["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*E).toFixed(3)}px`,C.transform="rotate(-90deg)"}return f.jsx(Ay,{className:ae(g.root,i),style:{width:l,height:l,...C,...c},ownerState:y,ref:o,role:"progressbar",...w,...h,children:f.jsx(Dy,{className:g.svg,ownerState:y,viewBox:`${Gn/2} ${Gn/2} ${Gn} ${Gn}`,children:f.jsx(_y,{className:g.circle,style:p,ownerState:y,cx:Gn,cy:Gn,r:(Gn-d)/2,fill:"none",strokeWidth:d})})})});process.env.NODE_ENV!=="production"&&(jr.propTypes={classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","error","info","success","warning"]),n.string]),disableShrink:tn(n.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:n.oneOfType([n.number,n.string]),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thickness:n.number,value:n.number,variant:n.oneOf(["determinate","indeterminate"])});function Ly(e){return ge("MuiIconButton",e)}const id=be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),By=e=>{const{classes:t,disabled:o,color:r,edge:i,size:s,loading:a}=e,l={root:["root",a&&"loading",o&&"disabled",r!=="default"&&`color${ee(r)}`,i&&`edge${ee(i)}`,`size${ee(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ye(l,Ly,t)},Fy=Z(Tn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.loading&&t.loading,o.color!=="default"&&t[`color${ee(o.color)}`],o.edge&&t[`edge${ee(o.edge)}`],t[`size${ee(o.size)}`]]}})(ve(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ve(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${id.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${id.loading}`]:{color:"transparent"}}))),zy=Z("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),wn=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium",id:m,loading:h=null,loadingIndicator:y,...g}=r,p=In(m),C=y??f.jsx(jr,{"aria-labelledby":p,color:"inherit",size:16}),w={...r,edge:i,color:l,disabled:c,disableFocusRipple:d,loading:h,loadingIndicator:C,size:u},E=By(w);return f.jsxs(Fy,{id:h?p:m,className:ae(E.root,a),centerRipple:!0,focusRipple:!d,disabled:c||h,ref:o,...g,ownerState:w,children:[typeof h=="boolean"&&f.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:f.jsx(zy,{className:E.loadingIndicator,ownerState:w,children:h&&C})}),s]})});process.env.NODE_ENV!=="production"&&(wn.propTypes={children:tn(n.node,e=>v.Children.toArray(e.children).some(o=>v.isValidElement(o)&&o.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
254
|
+
`)):null),classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,edge:n.oneOf(["end","start",!1]),id:n.string,loading:n.bool,loadingIndicator:n.node,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Vy=dt(f.jsx("path",{d:"M19 6.41L17.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");function Wy(e){return ge("MuiTypography",e)}const sd=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Uy={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Hy=Jb(),qy=e=>{const{align:t,gutterBottom:o,noWrap:r,paragraph:i,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${ee(t)}`,o&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ye(l,Wy,a)},Gy=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],o.align!=="inherit"&&t[`align${ee(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom,o.paragraph&&t.paragraph]}})(ve(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([o,r])=>o!=="inherit"&&r&&typeof r=="object").map(([o,r])=>({props:{variant:o},style:r})),...Object.entries(e.palette).filter(Ot()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,o])=>typeof o=="string").map(([o])=>({props:{color:`text${ee(o)}`},style:{color:(e.vars||e).palette.text[o]}})),{props:({ownerState:o})=>o.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:o})=>o.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:o})=>o.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:o})=>o.paragraph,style:{marginBottom:16}}]}})),ad={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xt=v.forwardRef(function(t,o){const{color:r,...i}=xe({props:t,name:"MuiTypography"}),s=!Uy[r],a=Hy({...i,...s&&{color:r}}),{align:l="inherit",className:c,component:d,gutterBottom:u=!1,noWrap:m=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=ad,...p}=a,C={...a,align:l,color:r,className:c,component:d,gutterBottom:u,noWrap:m,paragraph:h,variant:y,variantMapping:g},w=d||(h?"p":g[y]||ad[y])||"span",E=qy(C);return f.jsx(Gy,{as:w,ref:o,className:ae(E.root,c),...p,ownerState:C,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(xt.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),n.string]),component:n.elementType,gutterBottom:n.bool,noWrap:n.bool,paragraph:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),n.string]),variantMapping:n.object});function Yy(e){return ge("MuiAppBar",e)}be("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Ky=e=>{const{color:t,position:o,classes:r}=e,i={root:["root",`color${ee(t)}`,`position${ee(o)}`]};return ye(i,Yy,r)},ld=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Xy=Z(An,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${ee(o.position)}`],t[`color${ee(o.color)}`]]}})(ve(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Ot(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?ld(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?ld(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Za=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiAppBar"}),{className:i,color:s="primary",enableColorOnDark:a=!1,position:l="fixed",...c}=r,d={...r,color:s,position:l,enableColorOnDark:a},u=Ky(d);return f.jsx(Xy,{square:!0,component:"header",ownerState:d,elevation:4,className:ae(u.root,i,l==="fixed"&&"mui-fixed"),ref:o,...c})});process.env.NODE_ENV!=="production"&&(Za.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),n.string]),enableColorOnDark:n.bool,position:n.oneOf(["absolute","fixed","relative","static","sticky"]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function cd(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Jy(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:r,matchFrom:i="any",stringify:s,trim:a=!1}=e;return(l,{inputValue:c,getOptionLabel:d})=>{let u=a?c.trim():c;o&&(u=u.toLowerCase()),t&&(u=cd(u));const m=u?l.filter(h=>{let y=(s||d)(h);return o&&(y=y.toLowerCase()),t&&(y=cd(y)),i==="start"?y.startsWith(u):y.includes(u)}):l;return typeof r=="number"?m.slice(0,r):m}}const Zy=Jy(),ud=5,Qy=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},ev=[];function dd(e,t,o){if(t||e==null)return"";const r=o(e);return typeof r=="string"?r:""}function tv(e){const{unstable_isActiveElementInListbox:t=Qy,unstable_classNamePrefix:o="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:u=e.multiple?ev:null,disableClearable:m=!1,disableCloseOnSelect:h=!1,disabled:y,disabledItemsFocusable:g=!1,disableListWrap:p=!1,filterOptions:C=Zy,filterSelectedOptions:w=!1,freeSolo:E=!1,getOptionDisabled:x,getOptionKey:T,getOptionLabel:S=K=>K.label??K,groupBy:P,handleHomeEndKeys:O=!e.freeSolo,id:k,includeInputInList:R=!1,inputValue:b,isOptionEqualToValue:j=(K,V)=>K===V,multiple:N=!1,onChange:M,onClose:z,onHighlightChange:F,onInputChange:L,onOpen:X,open:J,openOnFocus:W=!1,options:B,readOnly:A=!1,selectOnFocus:Q=!e.freeSolo,value:Y}=e,q=In(k);let U=S;U=K=>{const V=S(K);if(typeof V!="string"){if(process.env.NODE_ENV!=="production"){const re=V===void 0?"undefined":`${typeof V} (${V})`;console.error(`MUI: The \`getOptionLabel\` method of ${d} returned ${re} instead of a string for ${JSON.stringify(K)}.`)}return String(V)}return V};const _=v.useRef(!1),G=v.useRef(!0),H=v.useRef(null),ne=v.useRef(null),[se,ce]=v.useState(null),[D,Ee]=v.useState(-1),de=i?0:-1,Ce=v.useRef(de),We=v.useRef(dd(u??Y,N,U)).current,[ue,Me]=Hn({controlled:Y,default:u,name:d}),[Te,_e]=Hn({controlled:b,default:We,name:d,state:"inputValue"}),[Be,me]=v.useState(!1),at=v.useCallback((K,V,re)=>{if(!(N?ue.length<V.length:V!==null)&&!l)return;const we=dd(V,N,U);Te!==we&&(_e(we),L&&L(K,we,re))},[U,Te,N,L,_e,l,ue]),[ze,ft]=Hn({controlled:J,default:!1,name:d,state:"open"}),[bt,ut]=v.useState(!0),Ue=!N&&ue!=null&&Te===U(ue),Ae=ze&&!A,Ie=Ae?C(B.filter(K=>!(w&&(N?ue:[ue]).some(V=>V!==null&&j(K,V)))),{inputValue:Ue&&bt?"":Te,getOptionLabel:U}):[],Se=Eg({filteredOptions:Ie,value:ue,inputValue:Te});v.useEffect(()=>{const K=ue!==Se.value;Be&&!K||E&&!K||at(null,ue,"reset")},[ue,at,Be,Se.value,E]);const Ye=ze&&Ie.length>0&&!A,He=Gt(K=>{K===-1?H.current.focus():se.querySelector(`[data-tag-index="${K}"]`).focus()});v.useEffect(()=>{N&&D>ue.length-1&&(Ee(-1),He(-1))},[ue,N,D,He]);function St(K,V){if(!ne.current||K<0||K>=Ie.length)return-1;let re=K;for(;;){const Oe=ne.current.querySelector(`[data-option-index="${re}"]`),we=g?!1:!Oe||Oe.disabled||Oe.getAttribute("aria-disabled")==="true";if(Oe&&Oe.hasAttribute("tabindex")&&!we)return re;if(V==="next"?re=(re+1)%Ie.length:re=(re-1+Ie.length)%Ie.length,re===K)return-1}}const jt=Gt(({event:K,index:V,reason:re})=>{if(Ce.current=V,V===-1?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${q}-option-${V}`),F&&["mouse","keyboard","touch"].includes(re)&&F(K,V===-1?null:Ie[V],re),!ne.current)return;const Oe=ne.current.querySelector(`[role="option"].${o}-focused`);Oe&&(Oe.classList.remove(`${o}-focused`),Oe.classList.remove(`${o}-focusVisible`));let we=ne.current;if(ne.current.getAttribute("role")!=="listbox"&&(we=ne.current.parentElement.querySelector('[role="listbox"]')),!we)return;if(V===-1){we.scrollTop=0;return}const Re=ne.current.querySelector(`[data-option-index="${V}"]`);if(Re&&(Re.classList.add(`${o}-focused`),re==="keyboard"&&Re.classList.add(`${o}-focusVisible`),we.scrollHeight>we.clientHeight&&re!=="mouse"&&re!=="touch")){const Ke=Re,Tt=we.clientHeight+we.scrollTop,Zt=Ke.offsetTop+Ke.offsetHeight;Zt>Tt?we.scrollTop=Zt-we.clientHeight:Ke.offsetTop-Ke.offsetHeight*(P?1.3:0)<we.scrollTop&&(we.scrollTop=Ke.offsetTop-Ke.offsetHeight*(P?1.3:0))}}),pe=Gt(({event:K,diff:V,direction:re="next",reason:Oe})=>{if(!Ae)return;const Re=St((()=>{const Ke=Ie.length-1;if(V==="reset")return de;if(V==="start")return 0;if(V==="end")return Ke;const Tt=Ce.current+V;return Tt<0?Tt===-1&&R?-1:p&&Ce.current!==-1||Math.abs(V)>1?0:Ke:Tt>Ke?Tt===Ke+1&&R?-1:p||Math.abs(V)>1?Ke:0:Tt})(),re);if(jt({index:Re,reason:Oe,event:K}),r&&V!=="reset")if(Re===-1)H.current.value=Te;else{const Ke=U(Ie[Re]);H.current.value=Ke,Ke.toLowerCase().indexOf(Te.toLowerCase())===0&&Te.length>0&&H.current.setSelectionRange(Te.length,Ke.length)}}),Le=()=>{const K=(V,re)=>{const Oe=V?U(V):"",we=re?U(re):"";return Oe===we};if(Ce.current!==-1&&Se.filteredOptions&&Se.filteredOptions.length!==Ie.length&&Se.inputValue===Te&&(N?ue.length===Se.value.length&&Se.value.every((V,re)=>U(ue[re])===U(V)):K(Se.value,ue))){const V=Se.filteredOptions[Ce.current];if(V)return Ie.findIndex(re=>U(re)===U(V))}return-1},Ge=v.useCallback(()=>{if(!Ae)return;const K=Le();if(K!==-1){Ce.current=K;return}const V=N?ue[0]:ue;if(Ie.length===0||V==null){pe({diff:"reset"});return}if(ne.current){if(V!=null){const re=Ie[Ce.current];if(N&&re&&ue.findIndex(we=>j(re,we))!==-1)return;const Oe=Ie.findIndex(we=>j(we,V));Oe===-1?pe({diff:"reset"}):jt({index:Oe});return}if(Ce.current>=Ie.length-1){jt({index:Ie.length-1});return}jt({index:Ce.current})}},[Ie.length,N?!1:ue,w,pe,jt,Ae,Te,N]),Pt=Gt(K=>{Ra(ne,K),K&&Ge()});process.env.NODE_ENV!=="production"&&v.useEffect(()=>{(!H.current||H.current.nodeName!=="INPUT")&&(H.current&&H.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${d} 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(`
|
|
255
|
+
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${H.current} while an HTMLInputElement was expected.`,`Instead, ${d} expects an input element.`,"",d==="useAutocomplete"?"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(`
|
|
256
|
+
`)))},[d]),v.useEffect(()=>{Ge()},[Ge]);const ie=K=>{ze||(ft(!0),ut(!0),X&&X(K))},$e=(K,V)=>{ze&&(ft(!1),z&&z(K,V))},he=(K,V,re,Oe)=>{if(N){if(ue.length===V.length&&ue.every((we,Re)=>we===V[Re]))return}else if(ue===V)return;M&&M(K,V,re,Oe),Me(V)},Dt=v.useRef(!1),Mt=(K,V,re="selectOption",Oe="options")=>{let we=re,Re=V;if(N){if(Re=Array.isArray(ue)?ue.slice():[],process.env.NODE_ENV!=="production"){const Tt=Re.filter(Zt=>j(V,Zt));Tt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${d} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Tt.length} matches.`].join(`
|
|
257
|
+
`))}const Ke=Re.findIndex(Tt=>j(V,Tt));Ke===-1?Re.push(V):Oe!=="freeSolo"&&(Re.splice(Ke,1),we="removeOption")}at(K,Re,we),he(K,Re,we,{option:V}),!h&&(!K||!K.ctrlKey&&!K.metaKey)&&$e(K,we),(a===!0||a==="touch"&&Dt.current||a==="mouse"&&!Dt.current)&&H.current.blur()};function cn(K,V){if(K===-1)return-1;let re=K;for(;;){if(V==="next"&&re===ue.length||V==="previous"&&re===-1)return-1;const Oe=se.querySelector(`[data-tag-index="${re}"]`);if(!Oe||!Oe.hasAttribute("tabindex")||Oe.disabled||Oe.getAttribute("aria-disabled")==="true")re+=V==="next"?1:-1;else return re}}const eo=(K,V)=>{if(!N)return;Te===""&&$e(K,"toggleInput");let re=D;D===-1?Te===""&&V==="previous"&&(re=ue.length-1):(re+=V==="next"?1:-1,re<0&&(re=0),re===ue.length&&(re=-1)),re=cn(re,V),Ee(re),He(re)},je=K=>{_.current=!0,_e(""),L&&L(K,"","clear"),he(K,N?[]:null,"clear")},It=K=>V=>{if(K.onKeyDown&&K.onKeyDown(V),!V.defaultMuiPrevented&&(D!==-1&&!["ArrowLeft","ArrowRight"].includes(V.key)&&(Ee(-1),He(-1)),V.which!==229))switch(V.key){case"Home":Ae&&O&&(V.preventDefault(),pe({diff:"start",direction:"next",reason:"keyboard",event:V}));break;case"End":Ae&&O&&(V.preventDefault(),pe({diff:"end",direction:"previous",reason:"keyboard",event:V}));break;case"PageUp":V.preventDefault(),pe({diff:-ud,direction:"previous",reason:"keyboard",event:V}),ie(V);break;case"PageDown":V.preventDefault(),pe({diff:ud,direction:"next",reason:"keyboard",event:V}),ie(V);break;case"ArrowDown":V.preventDefault(),pe({diff:1,direction:"next",reason:"keyboard",event:V}),ie(V);break;case"ArrowUp":V.preventDefault(),pe({diff:-1,direction:"previous",reason:"keyboard",event:V}),ie(V);break;case"ArrowLeft":eo(V,"previous");break;case"ArrowRight":eo(V,"next");break;case"Enter":if(Ce.current!==-1&&Ae){const re=Ie[Ce.current],Oe=x?x(re):!1;if(V.preventDefault(),Oe)return;Mt(V,re,"selectOption"),r&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else E&&Te!==""&&Ue===!1&&(N&&V.preventDefault(),Mt(V,Te,"createOption","freeSolo"));break;case"Escape":Ae?(V.preventDefault(),V.stopPropagation(),$e(V,"escape")):c&&(Te!==""||N&&ue.length>0)&&(V.preventDefault(),V.stopPropagation(),je(V));break;case"Backspace":if(N&&!A&&Te===""&&ue.length>0){const re=D===-1?ue.length-1:D,Oe=ue.slice();Oe.splice(re,1),he(V,Oe,"removeOption",{option:ue[re]})}break;case"Delete":if(N&&!A&&Te===""&&ue.length>0&&D!==-1){const re=D,Oe=ue.slice();Oe.splice(re,1),he(V,Oe,"removeOption",{option:ue[re]})}break}},to=K=>{me(!0),W&&!_.current&&ie(K)},Bn=K=>{if(t(ne)){H.current.focus();return}me(!1),G.current=!0,_.current=!1,s&&Ce.current!==-1&&Ae?Mt(K,Ie[Ce.current],"blur"):s&&E&&Te!==""?Mt(K,Te,"blur","freeSolo"):l&&at(K,ue,"blur"),$e(K,"blur")},no=K=>{const V=K.target.value;Te!==V&&(_e(V),ut(!1),L&&L(K,V,"input")),V===""?!m&&!N&&he(K,null,"clear"):ie(K)},oo=K=>{const V=Number(K.currentTarget.getAttribute("data-option-index"));Ce.current!==V&&jt({event:K,index:V,reason:"mouse"})},ci=K=>{jt({event:K,index:Number(K.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Dt.current=!0},ui=K=>{const V=Number(K.currentTarget.getAttribute("data-option-index"));Mt(K,Ie[V],"selectOption"),Dt.current=!1},di=K=>V=>{const re=ue.slice();re.splice(K,1),he(V,re,"removeOption",{option:ue[K]})},pi=K=>{ze?$e(K,"toggleInput"):ie(K)},I=K=>{K.currentTarget.contains(K.target)&&K.target.getAttribute("id")!==q&&K.preventDefault()},oe=K=>{K.currentTarget.contains(K.target)&&(H.current.focus(),Q&&G.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),G.current=!1)},le=K=>{!y&&(Te===""||!ze)&&pi(K)};let Pe=E&&Te.length>0;Pe=Pe||(N?ue.length>0:ue!==null);let qe=Ie;if(P){const K=new Map;let V=!1;qe=Ie.reduce((re,Oe,we)=>{const Re=P(Oe);return re.length>0&&re[re.length-1].group===Re?re[re.length-1].options.push(Oe):(process.env.NODE_ENV!=="production"&&(K.get(Re)&&!V&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${d} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),V=!0),K.set(Re,!0)),re.push({key:we,index:we,group:Re,options:[Oe]})),re},[])}return y&&Be&&Bn(),{getRootProps:(K={})=>({...K,onKeyDown:It(K),onMouseDown:I,onClick:oe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Te,onBlur:Bn,onFocus:to,onChange:no,onMouseDown:le,"aria-activedescendant":Ae?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ye?`${q}-listbox`:void 0,"aria-expanded":Ye,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:je}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:pi}),getTagProps:({index:K})=>({key:K,"data-tag-index":K,tabIndex:-1,...!A&&{onDelete:di(K)}}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Pt,onMouseDown:K=>{K.preventDefault()}}),getOptionProps:({index:K,option:V})=>{const re=(N?ue:[ue]).some(we=>we!=null&&j(V,we)),Oe=x?x(V):!1;return{key:(T==null?void 0:T(V))??U(V),tabIndex:-1,role:"option",id:`${q}-option-${K}`,onMouseMove:oo,onClick:ui,onTouchStart:ci,"data-option-index":K,"aria-disabled":Oe,"aria-selected":re}},id:q,inputValue:Te,value:ue,dirty:Pe,expanded:Ae&&se,popupOpen:Ae,focused:Be||D!==-1,anchorEl:se,setAnchorEl:ce,focusedTag:D,groupedOptions:qe}}var zt="top",rn="bottom",sn="right",Vt="left",Qa="auto",Ir=[zt,rn,sn,Vt],Uo="start",Nr="end",nv="clippingParents",pd="viewport",Mr="popper",ov="reference",fd=Ir.reduce(function(e,t){return e.concat([t+"-"+Uo,t+"-"+Nr])},[]),md=[].concat(Ir,[Qa]).reduce(function(e,t){return e.concat([t,t+"-"+Uo,t+"-"+Nr])},[]),rv="beforeRead",iv="read",sv="afterRead",av="beforeMain",lv="main",cv="afterMain",uv="beforeWrite",dv="write",pv="afterWrite",fv=[rv,iv,sv,av,lv,cv,uv,dv,pv];function En(e){return e?(e.nodeName||"").toLowerCase():null}function Yt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mo(e){var t=Yt(e).Element;return e instanceof t||e instanceof Element}function an(e){var t=Yt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function el(e){if(typeof ShadowRoot>"u")return!1;var t=Yt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mv(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},i=t.attributes[o]||{},s=t.elements[o];!an(s)||!En(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function hv(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),l=a.reduce(function(c,d){return c[d]="",c},{});!an(i)||!En(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}const gv={name:"applyStyles",enabled:!0,phase:"write",fn:mv,effect:hv,requires:["computeStyles"]};function On(e){return e.split("-")[0]}var ho=Math.max,is=Math.min,Ho=Math.round;function tl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function hd(){return!/^((?!chrome|android).)*safari/i.test(tl())}function qo(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&an(e)&&(i=e.offsetWidth>0&&Ho(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ho(r.height)/e.offsetHeight||1);var a=mo(e)?Yt(e):window,l=a.visualViewport,c=!hd()&&o,d=(r.left+(c&&l?l.offsetLeft:0))/i,u=(r.top+(c&&l?l.offsetTop:0))/s,m=r.width/i,h=r.height/s;return{width:m,height:h,top:u,right:d+m,bottom:u+h,left:d,x:d,y:u}}function nl(e){var t=qo(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function gd(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&el(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _n(e){return Yt(e).getComputedStyle(e)}function bv(e){return["table","td","th"].indexOf(En(e))>=0}function Yn(e){return((mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ss(e){return En(e)==="html"?e:e.assignedSlot||e.parentNode||(el(e)?e.host:null)||Yn(e)}function bd(e){return!an(e)||_n(e).position==="fixed"?null:e.offsetParent}function yv(e){var t=/firefox/i.test(tl()),o=/Trident/i.test(tl());if(o&&an(e)){var r=_n(e);if(r.position==="fixed")return null}var i=ss(e);for(el(i)&&(i=i.host);an(i)&&["html","body"].indexOf(En(i))<0;){var s=_n(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ar(e){for(var t=Yt(e),o=bd(e);o&&bv(o)&&_n(o).position==="static";)o=bd(o);return o&&(En(o)==="html"||En(o)==="body"&&_n(o).position==="static")?t:o||yv(e)||t}function ol(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dr(e,t,o){return ho(e,is(t,o))}function vv(e,t,o){var r=Dr(e,t,o);return r>o?o:r}function yd(){return{top:0,right:0,bottom:0,left:0}}function vd(e){return Object.assign({},yd(),e)}function xd(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var xv=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,vd(typeof t!="number"?t:xd(t,Ir))};function Cv(e){var t,o=e.state,r=e.name,i=e.options,s=o.elements.arrow,a=o.modifiersData.popperOffsets,l=On(o.placement),c=ol(l),d=[Vt,sn].indexOf(l)>=0,u=d?"height":"width";if(!(!s||!a)){var m=xv(i.padding,o),h=nl(s),y=c==="y"?zt:Vt,g=c==="y"?rn:sn,p=o.rects.reference[u]+o.rects.reference[c]-a[c]-o.rects.popper[u],C=a[c]-o.rects.reference[c],w=Ar(s),E=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=p/2-C/2,T=m[y],S=E-h[u]-m[g],P=E/2-h[u]/2+x,O=Dr(T,P,S),k=c;o.modifiersData[r]=(t={},t[k]=O,t.centerOffset=O-P,t)}}function Sv(e){var t=e.state,o=e.options,r=o.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||gd(t.elements.popper,i)&&(t.elements.arrow=i))}const Tv={name:"arrow",enabled:!0,phase:"main",fn:Cv,effect:Sv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Go(e){return e.split("-")[1]}var wv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ev(e,t){var o=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ho(o*i)/i||0,y:Ho(r*i)/i||0}}function Cd(e){var t,o=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,m=e.isFixed,h=a.x,y=h===void 0?0:h,g=a.y,p=g===void 0?0:g,C=typeof u=="function"?u({x:y,y:p}):{x:y,y:p};y=C.x,p=C.y;var w=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),x=Vt,T=zt,S=window;if(d){var P=Ar(o),O="clientHeight",k="clientWidth";if(P===Yt(o)&&(P=Yn(o),_n(P).position!=="static"&&l==="absolute"&&(O="scrollHeight",k="scrollWidth")),P=P,i===zt||(i===Vt||i===sn)&&s===Nr){T=rn;var R=m&&P===S&&S.visualViewport?S.visualViewport.height:P[O];p-=R-r.height,p*=c?1:-1}if(i===Vt||(i===zt||i===rn)&&s===Nr){x=sn;var b=m&&P===S&&S.visualViewport?S.visualViewport.width:P[k];y-=b-r.width,y*=c?1:-1}}var j=Object.assign({position:l},d&&wv),N=u===!0?Ev({x:y,y:p},Yt(o)):{x:y,y:p};if(y=N.x,p=N.y,c){var M;return Object.assign({},j,(M={},M[T]=E?"0":"",M[x]=w?"0":"",M.transform=(S.devicePixelRatio||1)<=1?"translate("+y+"px, "+p+"px)":"translate3d("+y+"px, "+p+"px, 0)",M))}return Object.assign({},j,(t={},t[T]=E?p+"px":"",t[x]=w?y+"px":"",t.transform="",t))}function Ov(e){var t=e.state,o=e.options,r=o.gpuAcceleration,i=r===void 0?!0:r,s=o.adaptive,a=s===void 0?!0:s,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:On(t.placement),variation:Go(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cd(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cd(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ov,data:{}};var as={passive:!0};function Pv(e){var t=e.state,o=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=Yt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",o.update,as)}),l&&c.addEventListener("resize",o.update,as),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",o.update,as)}),l&&c.removeEventListener("resize",o.update,as)}}const $v={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pv,data:{}};var Rv={left:"right",right:"left",bottom:"top",top:"bottom"};function ls(e){return e.replace(/left|right|bottom|top/g,function(t){return Rv[t]})}var jv={start:"end",end:"start"};function Sd(e){return e.replace(/start|end/g,function(t){return jv[t]})}function rl(e){var t=Yt(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function il(e){return qo(Yn(e)).left+rl(e).scrollLeft}function Iv(e,t){var o=Yt(e),r=Yn(e),i=o.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var d=hd();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+il(e),y:c}}function Nv(e){var t,o=Yn(e),r=rl(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=ho(o.scrollWidth,o.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ho(o.scrollHeight,o.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+il(e),c=-r.scrollTop;return _n(i||o).direction==="rtl"&&(l+=ho(o.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function sl(e){var t=_n(e),o=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+r)}function Td(e){return["html","body","#document"].indexOf(En(e))>=0?e.ownerDocument.body:an(e)&&sl(e)?e:Td(ss(e))}function _r(e,t){var o;t===void 0&&(t=[]);var r=Td(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Yt(r),a=i?[s].concat(s.visualViewport||[],sl(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(_r(ss(a)))}function al(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mv(e,t){var o=qo(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function wd(e,t,o){return t===pd?al(Iv(e,o)):mo(t)?Mv(t,o):al(Nv(Yn(e)))}function Av(e){var t=_r(ss(e)),o=["absolute","fixed"].indexOf(_n(e).position)>=0,r=o&&an(e)?Ar(e):e;return mo(r)?t.filter(function(i){return mo(i)&&gd(i,r)&&En(i)!=="body"}):[]}function Dv(e,t,o,r){var i=t==="clippingParents"?Av(e):[].concat(t),s=[].concat(i,[o]),a=s[0],l=s.reduce(function(c,d){var u=wd(e,d,r);return c.top=ho(u.top,c.top),c.right=is(u.right,c.right),c.bottom=is(u.bottom,c.bottom),c.left=ho(u.left,c.left),c},wd(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ed(e){var t=e.reference,o=e.element,r=e.placement,i=r?On(r):null,s=r?Go(r):null,a=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(i){case zt:c={x:a,y:t.y-o.height};break;case rn:c={x:a,y:t.y+t.height};break;case sn:c={x:t.x+t.width,y:l};break;case Vt:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?ol(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Uo:c[d]=c[d]-(t[u]/2-o[u]/2);break;case Nr:c[d]=c[d]+(t[u]/2-o[u]/2);break}}return c}function Lr(e,t){t===void 0&&(t={});var o=t,r=o.placement,i=r===void 0?e.placement:r,s=o.strategy,a=s===void 0?e.strategy:s,l=o.boundary,c=l===void 0?nv:l,d=o.rootBoundary,u=d===void 0?pd:d,m=o.elementContext,h=m===void 0?Mr:m,y=o.altBoundary,g=y===void 0?!1:y,p=o.padding,C=p===void 0?0:p,w=vd(typeof C!="number"?C:xd(C,Ir)),E=h===Mr?ov:Mr,x=e.rects.popper,T=e.elements[g?E:h],S=Dv(mo(T)?T:T.contextElement||Yn(e.elements.popper),c,u,a),P=qo(e.elements.reference),O=Ed({reference:P,element:x,placement:i}),k=al(Object.assign({},x,O)),R=h===Mr?k:P,b={top:S.top-R.top+w.top,bottom:R.bottom-S.bottom+w.bottom,left:S.left-R.left+w.left,right:R.right-S.right+w.right},j=e.modifiersData.offset;if(h===Mr&&j){var N=j[i];Object.keys(b).forEach(function(M){var z=[sn,rn].indexOf(M)>=0?1:-1,F=[zt,rn].indexOf(M)>=0?"y":"x";b[M]+=N[F]*z})}return b}function _v(e,t){t===void 0&&(t={});var o=t,r=o.placement,i=o.boundary,s=o.rootBoundary,a=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?md:c,u=Go(r),m=u?l?fd:fd.filter(function(g){return Go(g)===u}):Ir,h=m.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=m);var y=h.reduce(function(g,p){return g[p]=Lr(e,{placement:p,boundary:i,rootBoundary:s,padding:a})[On(p)],g},{});return Object.keys(y).sort(function(g,p){return y[g]-y[p]})}function Lv(e){if(On(e)===Qa)return[];var t=ls(e);return[Sd(e),t,Sd(t)]}function Bv(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=o.mainAxis,s=i===void 0?!0:i,a=o.altAxis,l=a===void 0?!0:a,c=o.fallbackPlacements,d=o.padding,u=o.boundary,m=o.rootBoundary,h=o.altBoundary,y=o.flipVariations,g=y===void 0?!0:y,p=o.allowedAutoPlacements,C=t.options.placement,w=On(C),E=w===C,x=c||(E||!g?[ls(C)]:Lv(C)),T=[C].concat(x).reduce(function(q,U){return q.concat(On(U)===Qa?_v(t,{placement:U,boundary:u,rootBoundary:m,padding:d,flipVariations:g,allowedAutoPlacements:p}):U)},[]),S=t.rects.reference,P=t.rects.popper,O=new Map,k=!0,R=T[0],b=0;b<T.length;b++){var j=T[b],N=On(j),M=Go(j)===Uo,z=[zt,rn].indexOf(N)>=0,F=z?"width":"height",L=Lr(t,{placement:j,boundary:u,rootBoundary:m,altBoundary:h,padding:d}),X=z?M?sn:Vt:M?rn:zt;S[F]>P[F]&&(X=ls(X));var J=ls(X),W=[];if(s&&W.push(L[N]<=0),l&&W.push(L[X]<=0,L[J]<=0),W.every(function(q){return q})){R=j,k=!1;break}O.set(j,W)}if(k)for(var B=g?3:1,A=function(U){var _=T.find(function(G){var H=O.get(G);if(H)return H.slice(0,U).every(function(ne){return ne})});if(_)return R=_,"break"},Q=B;Q>0;Q--){var Y=A(Q);if(Y==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const Fv={name:"flip",enabled:!0,phase:"main",fn:Bv,requiresIfExists:["offset"],data:{_skip:!1}};function Od(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function kd(e){return[zt,sn,rn,Vt].some(function(t){return e[t]>=0})}function zv(e){var t=e.state,o=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Lr(t,{elementContext:"reference"}),l=Lr(t,{altBoundary:!0}),c=Od(a,r),d=Od(l,i,s),u=kd(c),m=kd(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}const Vv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zv};function Wv(e,t,o){var r=On(e),i=[Vt,zt].indexOf(r)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=s[0],l=s[1];return a=a||0,l=(l||0)*i,[Vt,sn].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Uv(e){var t=e.state,o=e.options,r=e.name,i=o.offset,s=i===void 0?[0,0]:i,a=md.reduce(function(u,m){return u[m]=Wv(m,t.rects,s),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const Hv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Uv};function qv(e){var t=e.state,o=e.name;t.modifiersData[o]=Ed({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Gv={name:"popperOffsets",enabled:!0,phase:"read",fn:qv,data:{}};function Yv(e){return e==="x"?"y":"x"}function Kv(e){var t=e.state,o=e.options,r=e.name,i=o.mainAxis,s=i===void 0?!0:i,a=o.altAxis,l=a===void 0?!1:a,c=o.boundary,d=o.rootBoundary,u=o.altBoundary,m=o.padding,h=o.tether,y=h===void 0?!0:h,g=o.tetherOffset,p=g===void 0?0:g,C=Lr(t,{boundary:c,rootBoundary:d,padding:m,altBoundary:u}),w=On(t.placement),E=Go(t.placement),x=!E,T=ol(w),S=Yv(T),P=t.modifiersData.popperOffsets,O=t.rects.reference,k=t.rects.popper,R=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,b=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(P){if(s){var M,z=T==="y"?zt:Vt,F=T==="y"?rn:sn,L=T==="y"?"height":"width",X=P[T],J=X+C[z],W=X-C[F],B=y?-k[L]/2:0,A=E===Uo?O[L]:k[L],Q=E===Uo?-k[L]:-O[L],Y=t.elements.arrow,q=y&&Y?nl(Y):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yd(),_=U[z],G=U[F],H=Dr(0,O[L],q[L]),ne=x?O[L]/2-B-H-_-b.mainAxis:A-H-_-b.mainAxis,se=x?-O[L]/2+B+H+G+b.mainAxis:Q+H+G+b.mainAxis,ce=t.elements.arrow&&Ar(t.elements.arrow),D=ce?T==="y"?ce.clientTop||0:ce.clientLeft||0:0,Ee=(M=j==null?void 0:j[T])!=null?M:0,de=X+ne-Ee-D,Ce=X+se-Ee,We=Dr(y?is(J,de):J,X,y?ho(W,Ce):W);P[T]=We,N[T]=We-X}if(l){var ue,Me=T==="x"?zt:Vt,Te=T==="x"?rn:sn,_e=P[S],Be=S==="y"?"height":"width",me=_e+C[Me],at=_e-C[Te],ze=[zt,Vt].indexOf(w)!==-1,ft=(ue=j==null?void 0:j[S])!=null?ue:0,bt=ze?me:_e-O[Be]-k[Be]-ft+b.altAxis,ut=ze?_e+O[Be]+k[Be]-ft-b.altAxis:at,Ue=y&&ze?vv(bt,_e,ut):Dr(y?bt:me,_e,y?ut:at);P[S]=Ue,N[S]=Ue-_e}t.modifiersData[r]=N}}const Xv={name:"preventOverflow",enabled:!0,phase:"main",fn:Kv,requiresIfExists:["offset"]};function Jv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zv(e){return e===Yt(e)||!an(e)?rl(e):Jv(e)}function Qv(e){var t=e.getBoundingClientRect(),o=Ho(t.width)/e.offsetWidth||1,r=Ho(t.height)/e.offsetHeight||1;return o!==1||r!==1}function ex(e,t,o){o===void 0&&(o=!1);var r=an(t),i=an(t)&&Qv(t),s=Yn(t),a=qo(e,i,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!o)&&((En(t)!=="body"||sl(s))&&(l=Zv(t)),an(t)?(c=qo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=il(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function tx(e){var t=new Map,o=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){o.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&i(c)}}),r.push(s)}return e.forEach(function(s){o.has(s.name)||i(s)}),r}function nx(e){var t=tx(e);return fv.reduce(function(o,r){return o.concat(t.filter(function(i){return i.phase===r}))},[])}function ox(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function rx(e){var t=e.reduce(function(o,r){var i=o[r.name];return o[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var Pd={placement:"bottom",modifiers:[],strategy:"absolute"};function $d(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ix(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,r=o===void 0?[]:o,i=t.defaultOptions,s=i===void 0?Pd:i;return function(l,c,d){d===void 0&&(d=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pd,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],h=!1,y={state:u,setOptions:function(w){var E=typeof w=="function"?w(u.options):w;p(),u.options=Object.assign({},s,u.options,E),u.scrollParents={reference:mo(l)?_r(l):l.contextElement?_r(l.contextElement):[],popper:_r(c)};var x=nx(rx([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(T){return T.enabled}),g(),y.update()},forceUpdate:function(){if(!h){var w=u.elements,E=w.reference,x=w.popper;if($d(E,x)){u.rects={reference:ex(E,Ar(x),u.options.strategy==="fixed"),popper:nl(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(b){return u.modifiersData[b.name]=Object.assign({},b.data)});for(var T=0;T<u.orderedModifiers.length;T++){if(u.reset===!0){u.reset=!1,T=-1;continue}var S=u.orderedModifiers[T],P=S.fn,O=S.options,k=O===void 0?{}:O,R=S.name;typeof P=="function"&&(u=P({state:u,options:k,name:R,instance:y})||u)}}}},update:ox(function(){return new Promise(function(C){y.forceUpdate(),C(u)})}),destroy:function(){p(),h=!0}};if(!$d(l,c))return y;y.setOptions(d).then(function(C){!h&&d.onFirstUpdate&&d.onFirstUpdate(C)});function g(){u.orderedModifiers.forEach(function(C){var w=C.name,E=C.options,x=E===void 0?{}:E,T=C.effect;if(typeof T=="function"){var S=T({state:u,name:w,instance:y,options:x}),P=function(){};m.push(S||P)}})}function p(){m.forEach(function(C){return C()}),m=[]}return y}}var sx=[$v,Gv,kv,gv,Hv,Fv,Xv,Tv,Vv],ax=ix({defaultModifiers:sx});function lx(e){return typeof e=="function"?e():e}const Br=v.forwardRef(function(t,o){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=v.useState(null),c=mt(v.isValidElement(r)?co(r):null,o);if(Ht(()=>{s||l(lx(i)||document.body)},[i,s]),Ht(()=>{if(a&&!s)return Ra(o,a),()=>{Ra(o,null)}},[o,a,s]),s){if(v.isValidElement(r)){const d={ref:c};return v.cloneElement(r,d)}return r}return a&&zf.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Br.propTypes={children:n.node,container:n.oneOfType([Cn,n.func]),disablePortal:n.bool}),process.env.NODE_ENV!=="production"&&(Br.propTypes=qi(Br.propTypes));function cx(e){return ge("MuiPopper",e)}be("MuiPopper",["root"]);function ux(e,t){if(t==="ltr")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}}function cs(e){return typeof e=="function"?e():e}function us(e){return e.nodeType!==void 0}function dx(e){return!us(e)}const px=e=>{const{classes:t}=e;return ye({root:["root"]},cx,t)},fx={},mx=v.forwardRef(function(t,o){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:m,slotProps:h={},slots:y={},TransitionProps:g,ownerState:p,...C}=t,w=v.useRef(null),E=mt(w,o),x=v.useRef(null),T=mt(x,m),S=v.useRef(T);Ht(()=>{S.current=T},[T]),v.useImperativeHandle(m,()=>x.current,[]);const P=ux(d,s),[O,k]=v.useState(P),[R,b]=v.useState(cs(r));v.useEffect(()=>{x.current&&x.current.forceUpdate()}),v.useEffect(()=>{r&&b(cs(r))},[r]),Ht(()=>{if(!R||!c)return;const F=J=>{k(J.placement)};if(process.env.NODE_ENV!=="production"&&R&&us(R)&&R.nodeType===1){const J=R.getBoundingClientRect();process.env.NODE_ENV!=="test"&&J.top===0&&J.left===0&&J.right===0&&J.bottom===0&&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(`
|
|
258
|
+
`))}let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{F(J)}}];l!=null&&(L=L.concat(l)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const X=ax(R,w.current,{placement:P,...u,modifiers:L});return S.current(X),()=>{X.destroy(),S.current(null)}},[R,a,l,c,u,P]);const j={placement:O};g!==null&&(j.TransitionProps=g);const N=px(t),M=y.root??"div",z=Ou({elementType:M,externalSlotProps:h.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:N.root});return f.jsx(M,{...z,children:typeof i=="function"?i(j):i})}),Rd=v.forwardRef(function(t,o){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:m="bottom",popperOptions:h=fx,popperRef:y,style:g,transition:p=!1,slotProps:C={},slots:w={},...E}=t,[x,T]=v.useState(!0),S=()=>{T(!1)},P=()=>{T(!0)};if(!c&&!u&&(!p||x))return null;let O;if(s)O=s;else if(r){const b=cs(r);O=b&&us(b)?qt(b).body:qt(null).body}const k=!u&&c&&(!p||x)?"none":void 0,R=p?{in:u,onEnter:S,onExited:P}:void 0;return f.jsx(Br,{disablePortal:l,container:O,children:f.jsx(mx,{anchorEl:r,direction:a,disablePortal:l,modifiers:d,ref:o,open:p?!x:u,placement:m,popperOptions:h,popperRef:y,slotProps:C,slots:w,...E,style:{position:"fixed",top:0,left:0,display:k,...g},TransitionProps:R,children:i})})});process.env.NODE_ENV!=="production"&&(Rd.propTypes={anchorEl:tn(n.oneOfType([Cn,n.object,n.func]),e=>{if(e.open){const t=cs(e.anchorEl);if(t&&us(t)&&t.nodeType===1){const o=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&o.top===0&&o.left===0&&o.right===0&&o.bottom===0)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(`
|
|
259
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||dx(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)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(`
|
|
260
|
+
`))}return null}),children:n.oneOfType([n.node,n.func]),container:n.oneOfType([Cn,n.func]),direction:n.oneOf(["ltr","rtl"]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.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:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.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:n.oneOf(["absolute","fixed"])}),popperRef:Lt,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),transition:n.bool});const hx=Z(Rd,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fr=v.forwardRef(function(t,o){const r=Xi(),i=xe({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:u,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:p,popperRef:C,transition:w,slots:E,slotProps:x,...T}=i,S=(E==null?void 0:E.root)??(l==null?void 0:l.Root),P={anchorEl:s,container:d,disablePortal:u,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:p,popperRef:C,transition:w,...T};return f.jsx(hx,{as:a,direction:r?"rtl":"ltr",slots:{root:S},slotProps:x??c,...P,ref:o})});process.env.NODE_ENV!=="production"&&(Fr.propTypes={anchorEl:n.oneOfType([Cn,n.object,n.func]),children:n.oneOfType([n.node,n.func]),component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.oneOfType([n.func,n.object])}),container:n.oneOfType([Cn,n.func]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.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:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.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:n.oneOf(["absolute","fixed"])}),popperRef:Lt,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transition:n.bool});function gx(e){return ge("MuiListSubheader",e)}be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const bx=e=>{const{classes:t,color:o,disableGutters:r,inset:i,disableSticky:s}=e,a={root:["root",o!=="default"&&`color${ee(o)}`,!r&&"gutters",i&&"inset",!s&&"sticky"]};return ye(a,gx,t)},yx=Z("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="default"&&t[`color${ee(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})(ve(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),ds=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiListSubheader"}),{className:i,color:s="default",component:a="li",disableGutters:l=!1,disableSticky:c=!1,inset:d=!1,...u}=r,m={...r,color:s,component:a,disableGutters:l,disableSticky:c,inset:d},h=bx(m);return f.jsx(yx,{as:a,className:ae(h.root,i),ref:o,ownerState:m,...u})});ds&&(ds.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ds.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOf(["default","inherit","primary"]),component:n.elementType,disableGutters:n.bool,disableSticky:n.bool,inset:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const vx=dt(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function xx(e){return ge("MuiChip",e)}const Ve=be("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Cx=e=>{const{classes:t,disabled:o,size:r,color:i,iconColor:s,onDelete:a,clickable:l,variant:c}=e,d={root:["root",c,o&&"disabled",`size${ee(r)}`,`color${ee(i)}`,l&&"clickable",l&&`clickableColor${ee(i)}`,a&&"deletable",a&&`deletableColor${ee(i)}`,`${c}${ee(i)}`],label:["label",`label${ee(r)}`],avatar:["avatar",`avatar${ee(r)}`,`avatarColor${ee(i)}`],icon:["icon",`icon${ee(r)}`,`iconColor${ee(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ee(r)}`,`deleteIconColor${ee(i)}`,`deleteIcon${ee(c)}Color${ee(i)}`]};return ye(d,xx,t)},Sx=Z("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:r,iconColor:i,clickable:s,onDelete:a,size:l,variant:c}=o;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${ee(l)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${ee(r)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${ee(l)}`]},{[`& .${Ve.icon}`]:t[`iconColor${ee(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ee(l)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${ee(r)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ee(c)}Color${ee(r)}`]},t.root,t[`size${ee(l)}`],t[`color${ee(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ee(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ee(r)}`],t[c],t[`${c}${ee(r)}`]]}})(ve(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ve.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ve.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ve.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ve.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ve.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ve.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ve.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ke(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ke(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ve.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ve.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ot(["contrastText"])).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main,color:(e.vars||e).palette[o].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o].contrastTextChannel} / 0.7)`:ke(e.palette[o].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].contrastText}}}})),{props:o=>o.iconColor===o.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:o=>o.iconColor===o.color&&o.color!=="default",style:{[`& .${Ve.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ot(["dark"])).map(([o])=>({props:{color:o,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[o].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ot(["dark"])).map(([o])=>({props:{color:o,clickable:!0},style:{[`&:hover, &.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ve.avatar}`]:{marginLeft:4},[`& .${Ve.avatarSmall}`]:{marginLeft:2},[`& .${Ve.icon}`]:{marginLeft:4},[`& .${Ve.iconSmall}`]:{marginLeft:2},[`& .${Ve.deleteIcon}`]:{marginRight:5},[`& .${Ve.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ot()).map(([o])=>({props:{variant:"outlined",color:o},style:{color:(e.vars||e).palette[o].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.7)`:ke(e.palette[o].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[o].main,e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ke(e.palette[o].main,e.palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.7)`:ke(e.palette[o].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].main}}}}))]}})),Tx=Z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:r}=o;return[t.label,t[`label${ee(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function jd(e){return e.key==="Backspace"||e.key==="Delete"}const ps=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiChip"}),{avatar:i,className:s,clickable:a,color:l="default",component:c,deleteIcon:d,disabled:u=!1,icon:m,label:h,onClick:y,onDelete:g,onKeyDown:p,onKeyUp:C,size:w="medium",variant:E="filled",tabIndex:x,skipFocusWhenDisabled:T=!1,...S}=r,P=v.useRef(null),O=mt(P,o),k=W=>{W.stopPropagation(),g&&g(W)},R=W=>{W.currentTarget===W.target&&jd(W)&&W.preventDefault(),p&&p(W)},b=W=>{W.currentTarget===W.target&&g&&jd(W)&&g(W),C&&C(W)},j=a!==!1&&y?!0:a,N=j||g?Tn:c||"div",M={...r,component:N,disabled:u,size:w,color:l,iconColor:v.isValidElement(m)&&m.props.color||l,onDelete:!!g,clickable:j,variant:E},z=Cx(M),F=N===Tn?{component:c||"div",focusVisibleClassName:z.focusVisible,...g&&{disableRipple:!0}}:{};let L=null;g&&(L=d&&v.isValidElement(d)?v.cloneElement(d,{className:ae(d.props.className,z.deleteIcon),onClick:k}):f.jsx(vx,{className:ae(z.deleteIcon),onClick:k}));let X=null;i&&v.isValidElement(i)&&(X=v.cloneElement(i,{className:ae(z.avatar,i.props.className)}));let J=null;return m&&v.isValidElement(m)&&(J=v.cloneElement(m,{className:ae(z.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&X&&J&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),f.jsxs(Sx,{as:N,className:ae(z.root,s),disabled:j&&u?!0:void 0,onClick:y,onKeyDown:R,onKeyUp:b,ref:O,tabIndex:T&&u?-1:x,ownerState:M,...F,...S,children:[X||J,f.jsx(Tx,{className:ae(z.label),ownerState:M,children:h}),L]})});process.env.NODE_ENV!=="production"&&(ps.propTypes={avatar:n.element,children:Sg,classes:n.object,className:n.string,clickable:n.bool,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,deleteIcon:n.element,disabled:n.bool,icon:n.element,label:n.node,onClick:n.func,onDelete:n.func,onKeyDown:n.func,onKeyUp:n.func,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),skipFocusWhenDisabled:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,variant:n.oneOfType([n.oneOf(["filled","outlined"]),n.string])});function fs(e){return parseInt(e,10)||0}const wx={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ex(e){for(const t in e)return!1;return!0}function Id(e){return Ex(e)||e.outerHeightStyle===0&&!e.overflowing}const Nd=v.forwardRef(function(t,o){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...c}=t,{current:d}=v.useRef(l!=null),u=v.useRef(null),m=mt(o,u),h=v.useRef(null),y=v.useRef(null),g=v.useCallback(()=>{const x=u.current,T=y.current;if(!x||!T)return;const P=pn(x).getComputedStyle(x);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};T.style.width=P.width,T.value=x.value||t.placeholder||"x",T.value.slice(-1)===`
|
|
261
|
+
`&&(T.value+=" ");const O=P.boxSizing,k=fs(P.paddingBottom)+fs(P.paddingTop),R=fs(P.borderBottomWidth)+fs(P.borderTopWidth),b=T.scrollHeight;T.value="x";const j=T.scrollHeight;let N=b;s&&(N=Math.max(Number(s)*j,N)),i&&(N=Math.min(Number(i)*j,N)),N=Math.max(N,j);const M=N+(O==="border-box"?k+R:0),z=Math.abs(N-b)<=1;return{outerHeightStyle:M,overflowing:z}},[i,s,t.placeholder]),p=Gt(()=>{const x=u.current,T=g();if(!x||!T||Id(T))return!1;const S=T.outerHeightStyle;return h.current!=null&&h.current!==S}),C=v.useCallback(()=>{const x=u.current,T=g();if(!x||!T||Id(T))return;const S=T.outerHeightStyle;h.current!==S&&(h.current=S,x.style.height=`${S}px`),x.style.overflow=T.overflowing?"hidden":""},[g]),w=v.useRef(-1);Ht(()=>{const x=$a(C),T=u==null?void 0:u.current;if(!T)return;const S=pn(T);S.addEventListener("resize",x);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{p()&&(P.unobserve(T),cancelAnimationFrame(w.current),C(),w.current=requestAnimationFrame(()=>{P.observe(T)}))}),P.observe(T)),()=>{x.clear(),cancelAnimationFrame(w.current),S.removeEventListener("resize",x),P&&P.disconnect()}},[g,C,p]),Ht(()=>{C()});const E=x=>{d||C(),r&&r(x)};return f.jsxs(v.Fragment,{children:[f.jsx("textarea",{value:l,onChange:E,ref:m,rows:s,style:a,...c}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...wx.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Nd.propTypes={className:n.string,maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),onChange:n.func,placeholder:n.string,style:n.object,value:n.oneOfType([n.arrayOf(n.string),n.number,n.string])});function zr(e){return typeof e=="string"}function Kn({props:e,states:t,muiFormControl:o}){return t.reduce((r,i)=>(r[i]=e[i],o&&typeof e[i]>"u"&&(r[i]=o[i]),r),{})}const ms=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(ms.displayName="FormControlContext");function kn(){return v.useContext(ms)}function Md(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hs(e,t=!1){return e&&(Md(e.value)&&e.value!==""||t&&Md(e.defaultValue)&&e.defaultValue!=="")}function Ox(e){return e.startAdornment}function kx(e){return ge("MuiInputBase",e)}const Kt=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Ad;const gs=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${ee(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},bs=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},Px=e=>{const{classes:t,color:o,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:d,multiline:u,readOnly:m,size:h,startAdornment:y,type:g}=e,p={root:["root",`color${ee(o)}`,r&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",h&&h!=="medium"&&`size${ee(h)}`,u&&"multiline",y&&"adornedStart",s&&"adornedEnd",d&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return ye(p,kx,t)},ys=Z("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gs})(ve(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Kt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:o})=>t.multiline&&o==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),vs=Z("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bs})(ve(({theme:e})=>{const t=e.palette.mode==="light",o={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Kt.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Kt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Dd=Xb({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xs=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:c,components:d={},componentsProps:u={},defaultValue:m,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:p,fullWidth:C=!1,id:w,inputComponent:E="input",inputProps:x={},inputRef:T,margin:S,maxRows:P,minRows:O,multiline:k=!1,name:R,onBlur:b,onChange:j,onClick:N,onFocus:M,onKeyDown:z,onKeyUp:F,placeholder:L,readOnly:X,renderSuffix:J,rows:W,size:B,slotProps:A={},slots:Q={},startAdornment:Y,type:q="text",value:U,..._}=r,G=x.value!=null?x.value:U,{current:H}=v.useRef(G!=null),ne=v.useRef(),se=v.useCallback(Se=>{process.env.NODE_ENV!=="production"&&Se&&Se.nodeName!=="INPUT"&&!Se.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
262
|
+
`))},[]),ce=mt(ne,T,x.ref,se),[D,Ee]=v.useState(!1),de=kn();process.env.NODE_ENV!=="production"&&v.useEffect(()=>{if(de)return de.registerEffect()},[de]);const Ce=Kn({props:r,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ce.focused=de?de.focused:D,v.useEffect(()=>{!de&&h&&D&&(Ee(!1),b&&b())},[de,h,D,b]);const We=de&&de.onFilled,ue=de&&de.onEmpty,Me=v.useCallback(Se=>{hs(Se)?We&&We():ue&&ue()},[We,ue]);Ht(()=>{H&&Me({value:G})},[G,Me,H]);const Te=Se=>{M&&M(Se),x.onFocus&&x.onFocus(Se),de&&de.onFocus?de.onFocus(Se):Ee(!0)},_e=Se=>{b&&b(Se),x.onBlur&&x.onBlur(Se),de&&de.onBlur?de.onBlur(Se):Ee(!1)},Be=(Se,...Ye)=>{if(!H){const He=Se.target||ne.current;if(He==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":hn(1));Me({value:He.value})}x.onChange&&x.onChange(Se,...Ye),j&&j(Se,...Ye)};v.useEffect(()=>{Me(ne.current)},[]);const me=Se=>{ne.current&&Se.currentTarget===Se.target&&ne.current.focus(),N&&N(Se)};let at=E,ze=x;k&&at==="input"&&(W?(process.env.NODE_ENV!=="production"&&(O||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ze={type:void 0,minRows:W,maxRows:W,...ze}):ze={type:void 0,maxRows:P,minRows:O,...ze},at=Nd);const ft=Se=>{Me(Se.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};v.useEffect(()=>{de&&de.setAdornedStart(!!Y)},[de,Y]);const bt={...r,color:Ce.color||"primary",disabled:Ce.disabled,endAdornment:g,error:Ce.error,focused:Ce.focused,formControl:de,fullWidth:C,hiddenLabel:Ce.hiddenLabel,multiline:k,size:Ce.size,startAdornment:Y,type:q},ut=Px(bt),Ue=Q.root||d.Root||ys,Ae=A.root||u.root||{},Ie=Q.input||d.Input||vs;return ze={...ze,...A.input??u.input},f.jsxs(v.Fragment,{children:[!y&&typeof Dd=="function"&&(Ad||(Ad=f.jsx(Dd,{}))),f.jsxs(Ue,{...Ae,ref:o,onClick:me,..._,...!zr(Ue)&&{ownerState:{...bt,...Ae.ownerState}},className:ae(ut.root,Ae.className,l,X&&"MuiInputBase-readOnly"),children:[Y,f.jsx(ms.Provider,{value:null,children:f.jsx(Ie,{"aria-invalid":Ce.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:m,disabled:Ce.disabled,id:w,onAnimationStart:ft,name:R,placeholder:L,readOnly:X,required:Ce.required,rows:W,value:G,onKeyDown:z,onKeyUp:F,type:q,...ze,...!zr(Ie)&&{as:at,ownerState:{...bt,...ze.ownerState}},ref:ce,className:ae(ut.input,ze.className,X&&"MuiInputBase-readOnly"),onBlur:_e,onChange:Be,onFocus:Te})}),g,J?J({...Ce,startAdornment:Y}):null]})]})});process.env.NODE_ENV!=="production"&&(xs.propTypes={"aria-describedby":n.string,autoComplete:n.string,autoFocus:n.bool,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),componentsProps:n.shape({input:n.object,root:n.object}),defaultValue:n.any,disabled:n.bool,disableInjectingGlobalStyles:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:Or,inputProps:n.object,inputRef:Lt,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onClick:n.func,onFocus:n.func,onInvalid:n.func,onKeyDown:n.func,onKeyUp:n.func,placeholder:n.string,readOnly:n.bool,renderSuffix:n.func,required:n.bool,rows:n.oneOfType([n.number,n.string]),size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any});function $x(e){return ge("MuiInput",e)}const Xn={...Kt,...be("MuiInput",["root","underline","input"])};function Rx(e){return ge("MuiOutlinedInput",e)}const ln={...Kt,...be("MuiOutlinedInput",["root","notchedOutline","input"])};function jx(e){return ge("MuiFilledInput",e)}const Xt={...Kt,...be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},_d=dt(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Ix(e){return ge("MuiAutocomplete",e)}const Fe=be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Ld,Bd;const Nx=e=>{const{classes:t,disablePortal:o,expanded:r,focused:i,fullWidth:s,hasClearIcon:a,hasPopupIcon:l,inputFocused:c,popupOpen:d,size:u}=e,m={root:["root",r&&"expanded",i&&"focused",s&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ee(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ye(m,Ix,t)},Mx=Z("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:s,inputFocused:a,size:l}=o;return[{[`& .${Fe.tag}`]:t.tag},{[`& .${Fe.tag}`]:t[`tagSize${ee(l)}`]},{[`& .${Fe.inputRoot}`]:t.inputRoot},{[`& .${Fe.input}`]:t.input},{[`& .${Fe.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Fe.focused} .${Fe.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fe.clearIndicator}`]:{visibility:"visible"}},[`& .${Fe.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Fe.inputRoot}`]:{[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:30},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:56},[`& .${Fe.input}`]:{width:0,minWidth:30}},[`& .${Xn.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Xn.root}.${Kt.sizeSmall}`]:{[`& .${Xn.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ln.root}`]:{padding:9,[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:39},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:65},[`& .${Fe.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fe.endAdornment}`]:{right:9}},[`& .${ln.root}.${Kt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fe.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Xt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:39},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:65},[`& .${Xt.input}`]:{padding:"7px 4px"},[`& .${Fe.endAdornment}`]:{right:9}},[`& .${Xt.root}.${Kt.sizeSmall}`]:{paddingBottom:1,[`& .${Xt.input}`]:{padding:"2.5px 4px"}},[`& .${Kt.hiddenLabel}`]:{paddingTop:8},[`& .${Xt.root}.${Kt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fe.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Xt.root}.${Kt.hiddenLabel}.${Kt.sizeSmall}`]:{[`& .${Fe.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fe.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Fe.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Fe.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Fe.inputRoot}`]:{flexWrap:"wrap"}}}]}),Ax=Z("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Dx=Z(wn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),_x=Z(wn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Lx=Z(Fr,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Fe.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})(ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Bx=Z(An,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(ve(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Fx=Z("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),zx=Z("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Vx=Z("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(ve(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Fe.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Fe.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fe.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),Wx=Z(ds,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(ve(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Ux=Z("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fe.option}`]:{paddingLeft:24}}),Fd=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:s=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:c,className:d,clearIcon:u=Ld||(Ld=f.jsx(Vy,{fontSize:"small"})),clearOnBlur:m=!r.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:g="Close",componentsProps:p,defaultValue:C=r.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:E=!1,disabled:x=!1,disabledItemsFocusable:T=!1,disableListWrap:S=!1,disablePortal:P=!1,filterOptions:O,filterSelectedOptions:k=!1,forcePopupIcon:R="auto",freeSolo:b=!1,fullWidth:j=!1,getLimitTagsText:N=Ze=>`+${Ze}`,getOptionDisabled:M,getOptionKey:z,getOptionLabel:F,isOptionEqualToValue:L,groupBy:X,handleHomeEndKeys:J=!r.freeSolo,id:W,includeInputInList:B=!1,inputValue:A,limitTags:Q=-1,ListboxComponent:Y,ListboxProps:q,loading:U=!1,loadingText:_="Loading…",multiple:G=!1,noOptionsText:H="No options",onChange:ne,onClose:se,onHighlightChange:ce,onInputChange:D,onOpen:Ee,open:de,openOnFocus:Ce=!1,openText:We="Open",options:ue,PaperComponent:Me,PopperComponent:Te,popupIcon:_e=Bd||(Bd=f.jsx(_d,{})),readOnly:Be=!1,renderGroup:me,renderInput:at,renderOption:ze,renderTags:ft,selectOnFocus:bt=!r.freeSolo,size:ut="medium",slots:Ue={},slotProps:Ae={},value:Ie,...Se}=r,{getRootProps:Ye,getInputProps:He,getInputLabelProps:St,getPopupIndicatorProps:jt,getClearProps:pe,getTagProps:Le,getListboxProps:Ge,getOptionProps:Pt,value:ie,dirty:$e,expanded:he,id:Dt,popupOpen:Mt,focused:cn,focusedTag:eo,anchorEl:je,setAnchorEl:It,inputValue:to,groupedOptions:Bn}=tv({...r,componentName:"Autocomplete"}),no=!w&&!x&&$e&&!Be,oo=(!b||R===!0)&&R!==!1,{onMouseDown:ci}=He(),{ref:ui,...di}=Ge(),I=F||(Ze=>Ze.label??Ze),oe={...r,disablePortal:P,expanded:he,focused:cn,fullWidth:j,getOptionLabel:I,hasClearIcon:no,hasPopupIcon:oo,inputFocused:eo===-1,popupOpen:Mt,size:ut},le=Nx(oe),Pe={slots:{paper:Me,popper:Te,...Ue},slotProps:{chip:c,listbox:q,...p,...Ae}},[qe,K]=Ne("listbox",{elementType:Vx,externalForwardedProps:Pe,ownerState:oe,className:le.listbox,additionalProps:di,ref:ui}),[V,re]=Ne("paper",{elementType:An,externalForwardedProps:Pe,ownerState:oe,className:le.paper}),[Oe,we]=Ne("popper",{elementType:Fr,externalForwardedProps:Pe,ownerState:oe,className:le.popper,additionalProps:{disablePortal:P,style:{width:je?je.clientWidth:null},role:"presentation",anchorEl:je,open:Mt}});let Re;if(G&&ie.length>0){const Ze=jn=>({className:le.tag,disabled:x,...Le(jn)});ft?Re=ft(ie,Ze,oe):Re=ie.map((jn,ro)=>{const{key:fi,...P1}=Ze({index:ro});return f.jsx(ps,{label:I(jn),size:ut,...P1,...Pe.slotProps.chip},fi)})}if(Q>-1&&Array.isArray(Re)){const Ze=Re.length-Q;!cn&&Ze>0&&(Re=Re.splice(0,Q),Re.push(f.jsx("span",{className:le.tag,children:N(Ze)},Re.length)))}const Tt=me||(Ze=>f.jsxs("li",{children:[f.jsx(Wx,{className:le.groupLabel,ownerState:oe,component:"div",children:Ze.group}),f.jsx(Ux,{className:le.groupUl,ownerState:oe,children:Ze.children})]},Ze.key)),_t=ze||((Ze,jn)=>{const{key:ro,...fi}=Ze;return f.jsx("li",{...fi,children:I(jn)},ro)}),or=(Ze,jn)=>{const ro=Pt({option:Ze,index:jn});return _t({...ro,className:le.option},Ze,{selected:ro["aria-selected"],index:jn,inputValue:to},oe)},rr=Pe.slotProps.clearIndicator,ir=Pe.slotProps.popupIndicator;return f.jsxs(v.Fragment,{children:[f.jsx(Mx,{ref:o,className:ae(le.root,d),ownerState:oe,...Ye(Se),children:at({id:Dt,disabled:x,fullWidth:!0,size:ut==="small"?"small":void 0,InputLabelProps:St(),InputProps:{ref:It,className:le.inputRoot,startAdornment:Re,onMouseDown:Ze=>{Ze.target===Ze.currentTarget&&ci(Ze)},...(no||oo)&&{endAdornment:f.jsxs(Ax,{className:le.endAdornment,ownerState:oe,children:[no?f.jsx(Dx,{...pe(),"aria-label":y,title:y,ownerState:oe,...rr,className:ae(le.clearIndicator,rr==null?void 0:rr.className),children:u}):null,oo?f.jsx(_x,{...jt(),disabled:x,"aria-label":Mt?g:We,title:Mt?g:We,ownerState:oe,...ir,className:ae(le.popupIndicator,ir==null?void 0:ir.className),children:_e}):null]})}},inputProps:{className:le.input,disabled:x,readOnly:Be,...He()}})}),je?f.jsx(Lx,{as:Oe,...we,children:f.jsxs(Bx,{as:V,...re,children:[U&&Bn.length===0?f.jsx(Fx,{className:le.loading,ownerState:oe,children:_}):null,Bn.length===0&&!b&&!U?f.jsx(zx,{className:le.noOptions,ownerState:oe,role:"presentation",onMouseDown:Ze=>{Ze.preventDefault()},children:H}):null,Bn.length>0?f.jsx(qe,{as:Y,...K,children:Bn.map((Ze,jn)=>X?Tt({key:Ze.key,group:Ze.group,children:Ze.options.map((ro,fi)=>or(ro,Ze.index+fi))}):or(Ze,jn))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Fd.propTypes={autoComplete:n.bool,autoHighlight:n.bool,autoSelect:n.bool,blurOnSelect:n.oneOfType([n.oneOf(["mouse","touch"]),n.bool]),ChipProps:n.object,classes:n.object,className:n.string,clearIcon:n.node,clearOnBlur:n.bool,clearOnEscape:n.bool,clearText:n.string,closeText:n.string,componentsProps:n.shape({clearIndicator:n.object,paper:n.object,popper:n.object,popupIndicator:n.object}),defaultValue:tn(n.any,e=>e.multiple&&e.defaultValue!==void 0&&!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(`
|
|
263
|
+
`)):null),disableClearable:n.bool,disableCloseOnSelect:n.bool,disabled:n.bool,disabledItemsFocusable:n.bool,disableListWrap:n.bool,disablePortal:n.bool,filterOptions:n.func,filterSelectedOptions:n.bool,forcePopupIcon:n.oneOfType([n.oneOf(["auto"]),n.bool]),freeSolo:n.bool,fullWidth:n.bool,getLimitTagsText:n.func,getOptionDisabled:n.func,getOptionKey:n.func,getOptionLabel:n.func,groupBy:n.func,handleHomeEndKeys:n.bool,id:n.string,includeInputInList:n.bool,inputValue:n.string,isOptionEqualToValue:n.func,limitTags:Bo,ListboxComponent:n.elementType,ListboxProps:n.object,loading:n.bool,loadingText:n.node,multiple:n.bool,noOptionsText:n.node,onChange:n.func,onClose:n.func,onHighlightChange:n.func,onInputChange:n.func,onKeyDown:n.func,onOpen:n.func,open:n.bool,openOnFocus:n.bool,openText:n.string,options:n.array.isRequired,PaperComponent:n.elementType,PopperComponent:n.elementType,popupIcon:n.node,readOnly:n.bool,renderGroup:n.func,renderInput:n.func.isRequired,renderOption:n.func,renderTags:n.func,selectOnFocus:n.bool,size:n.oneOfType([n.oneOf(["small","medium"]),n.string]),slotProps:n.shape({chip:n.oneOfType([n.func,n.object]),clearIndicator:n.oneOfType([n.func,n.object]),listbox:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),popper:n.oneOfType([n.func,n.object]),popupIndicator:n.oneOfType([n.func,n.object])}),slots:n.shape({listbox:n.elementType,paper:n.elementType,popper:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:tn(n.any,e=>e.multiple&&e.value!==void 0&&!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(`
|
|
264
|
+
`)):null)});const Hx={entering:{opacity:1},entered:{opacity:1}},Cs=v.forwardRef(function(t,o){const r=Mn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:d,onEnter:u,onEntered:m,onEntering:h,onExit:y,onExited:g,onExiting:p,style:C,timeout:w=i,TransitionComponent:E=nn,...x}=t,T=v.useRef(null),S=mt(T,co(l),o),P=z=>F=>{if(z){const L=T.current;F===void 0?z(L):z(L,F)}},O=P(h),k=P((z,F)=>{Ya(z);const L=qn({style:C,timeout:w,easing:c},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",L),z.style.transition=r.transitions.create("opacity",L),u&&u(z,F)}),R=P(m),b=P(p),j=P(z=>{const F=qn({style:C,timeout:w,easing:c},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",F),z.style.transition=r.transitions.create("opacity",F),y&&y(z)}),N=P(g),M=z=>{s&&s(T.current,z)};return f.jsx(E,{appear:a,in:d,nodeRef:T,onEnter:k,onEntered:R,onEntering:O,onExit:j,onExited:N,onExiting:b,addEndListener:M,timeout:w,...x,children:(z,{ownerState:F,...L})=>v.cloneElement(l,{style:{opacity:0,visibility:z==="exited"&&!d?"hidden":void 0,...Hx[z],...C,...l.props.style},ref:S,...L})})});process.env.NODE_ENV!=="production"&&(Cs.propTypes={addEndListener:n.func,appear:n.bool,children:ao.isRequired,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function qx(e){return ge("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const Gx=e=>{const{classes:t,invisible:o}=e;return ye({root:["root",o&&"invisible"]},qx,t)},Yx=Z("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ll=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:c,components:d={},componentsProps:u={},slotProps:m={},slots:h={},TransitionComponent:y,transitionDuration:g,...p}=r,C={...r,component:a,invisible:l},w=Gx(C),E={transition:y,root:d.Root,...h},x={...u,...m},T={slots:E,slotProps:x},[S,P]=Ne("root",{elementType:Yx,externalForwardedProps:T,className:ae(w.root,s),ownerState:C}),[O,k]=Ne("transition",{elementType:Cs,externalForwardedProps:T,ownerState:C});return f.jsx(O,{in:c,timeout:g,...p,...k,children:f.jsx(S,{"aria-hidden":!0,...P,classes:w,ref:o,children:i})})});process.env.NODE_ENV!=="production"&&(ll.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.object}),invisible:n.bool,open:n.bool.isRequired,slotProps:n.shape({root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TransitionComponent:n.elementType,transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});const Kx=be("MuiBox",["root"]),Xx=Qi(),ot=tg({themeId:gn,defaultTheme:Xx,defaultClassName:Kx.root,generateClassName:tu.generate});process.env.NODE_ENV!=="production"&&(ot.propTypes={children:n.node,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function Jx(e){return ge("MuiButton",e)}const go=be("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),zd=v.createContext({});process.env.NODE_ENV!=="production"&&(zd.displayName="ButtonGroupContext");const Vd=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(Vd.displayName="ButtonGroupButtonContext");const Zx=e=>{const{color:t,disableElevation:o,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",s,`${s}${ee(t)}`,`size${ee(i)}`,`${s}Size${ee(i)}`,`color${ee(t)}`,o&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${ee(l)}`],startIcon:["icon","startIcon",`iconSize${ee(i)}`],endIcon:["icon","endIcon",`iconSize${ee(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ye(d,Jx,c);return{...c,...u}},Wd=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Qx=Z(Tn,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${ee(o.color)}`],t[`size${ee(o.size)}`],t[`${o.variant}Size${ee(o.size)}`],o.color==="inherit"&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth,o.loading&&t.loading]}})(ve(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${go.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${go.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${go.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${go.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ot()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:ke(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${go.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${go.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${go.loading}`]:{color:"transparent"}}}]}})),e0=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,o.loading&&t.startIconLoadingStart,t[`iconSize${ee(o.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Wd]})),t0=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,o.loading&&t.endIconLoadingEnd,t[`iconSize${ee(o.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Wd]})),n0=Z("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ud=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),bo=v.forwardRef(function(t,o){const r=v.useContext(zd),i=v.useContext(Vd),s=_o(r,t),a=xe({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:u,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:p,fullWidth:C=!1,id:w,loading:E=null,loadingIndicator:x,loadingPosition:T="center",size:S="medium",startIcon:P,type:O,variant:k="text",...R}=a,b=In(w),j=x??f.jsx(jr,{"aria-labelledby":b,color:"inherit",size:16}),N={...a,color:c,component:d,disabled:m,disableElevation:h,disableFocusRipple:y,fullWidth:C,loading:E,loadingIndicator:j,loadingPosition:T,size:S,type:O,variant:k},M=Zx(N),z=(P||E&&T==="start")&&f.jsx(e0,{className:M.startIcon,ownerState:N,children:P||f.jsx(Ud,{className:M.loadingIconPlaceholder,ownerState:N})}),F=(g||E&&T==="end")&&f.jsx(t0,{className:M.endIcon,ownerState:N,children:g||f.jsx(Ud,{className:M.loadingIconPlaceholder,ownerState:N})}),L=i||"",X=typeof E=="boolean"?f.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:E&&f.jsx(n0,{className:M.loadingIndicator,ownerState:N,children:j})}):null;return f.jsxs(Qx,{ownerState:N,className:ae(r.className,M.root,u,L),component:d,disabled:m||E,focusRipple:!y,focusVisibleClassName:ae(M.focusVisible,p),ref:o,type:O,id:E?b:w,...R,classes:M,children:[z,T!=="end"&&X,l,T==="end"&&X,F]})});process.env.NODE_ENV!=="production"&&(bo.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","success","error","info","warning"]),n.string]),component:n.elementType,disabled:n.bool,disableElevation:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,endIcon:n.node,focusVisibleClassName:n.string,fullWidth:n.bool,href:n.string,id:n.string,loading:n.bool,loadingIndicator:n.node,loadingPosition:n.oneOf(["center","end","start"]),size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),startIcon:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string]),variant:n.oneOfType([n.oneOf(["contained","outlined","text"]),n.string])});function o0(e){return ge("PrivateSwitchBase",e)}be("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const r0=e=>{const{classes:t,checked:o,disabled:r,edge:i}=e,s={root:["root",o&&"checked",r&&"disabled",i&&`edge${ee(i)}`],input:["input"]};return ye(s,o0,t)},i0=Z(Tn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),s0=Z("input",{name:"MuiSwitchBase",shouldForwardProp:$t})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ss=v.forwardRef(function(t,o){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:m,inputProps:h,inputRef:y,name:g,onBlur:p,onChange:C,onFocus:w,readOnly:E,required:x=!1,tabIndex:T,type:S,value:P,slots:O={},slotProps:k={},...R}=t,[b,j]=Hn({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),N=kn(),M=U=>{w&&w(U),N&&N.onFocus&&N.onFocus(U)},z=U=>{p&&p(U),N&&N.onBlur&&N.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const _=U.target.checked;j(_),C&&C(U,_)};let L=l;N&&typeof L>"u"&&(L=N.disabled);const X=S==="checkbox"||S==="radio",J={...t,checked:b,disabled:L,disableFocusRipple:c,edge:d},W=r0(J),B={slots:O,slotProps:{input:h,...k}},[A,Q]=Ne("root",{ref:o,elementType:i0,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...R},getSlotProps:U=>({...U,onFocus:_=>{var G;(G=U.onFocus)==null||G.call(U,_),M(_)},onBlur:_=>{var G;(G=U.onBlur)==null||G.call(U,_),z(_)}}),ownerState:J,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:L,role:void 0,tabIndex:null}}),[Y,q]=Ne("input",{ref:y,elementType:s0,className:W.input,externalForwardedProps:B,getSlotProps:U=>({onChange:_=>{var G;(G=U.onChange)==null||G.call(U,_),F(_)}}),ownerState:J,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:L,id:X?m:void 0,name:g,readOnly:E,required:x,tabIndex:T,type:S,...S==="checkbox"&&P===void 0?{}:{value:P}}});return f.jsxs(A,{...Q,children:[f.jsx(Y,{...q}),b?s:u]})});process.env.NODE_ENV!=="production"&&(Ss.propTypes={autoFocus:n.bool,checked:n.bool,checkedIcon:n.node.isRequired,classes:n.object,className:n.string,defaultChecked:n.bool,disabled:n.bool,disableFocusRipple:n.bool,edge:n.oneOf(["end","start",!1]),icon:n.node.isRequired,id:n.string,inputProps:n.object,inputRef:Lt,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,readOnly:n.bool,required:n.bool,slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.object,tabIndex:n.oneOfType([n.number,n.string]),type:n.string.isRequired,value:n.any});const a0=dt(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),l0=dt(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),c0=dt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function u0(e){return ge("MuiCheckbox",e)}const cl=be("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),d0=e=>{const{classes:t,indeterminate:o,color:r,size:i}=e,s={root:["root",o&&"indeterminate",`color${ee(r)}`,`size${ee(i)}`]},a=ye(s,u0,t);return{...t,...a}},p0=Z(Ss,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${ee(o.size)}`],o.color!=="default"&&t[`color${ee(o.color)}`]]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{[`&.${cl.checked}, &.${cl.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${cl.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),f0=f.jsx(l0,{}),m0=f.jsx(a0,{}),h0=f.jsx(c0,{}),yo=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=f0,color:s="primary",icon:a=m0,indeterminate:l=!1,indeterminateIcon:c=h0,inputProps:d,size:u="medium",disableRipple:m=!1,className:h,slots:y={},slotProps:g={},...p}=r,C=l?c:a,w=l?c:i,E={...r,disableRipple:m,color:s,indeterminate:l,size:u},x=d0(E),T=g.input??d,[S,P]=Ne("root",{ref:o,elementType:p0,className:ae(x.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...p},ownerState:E,additionalProps:{type:"checkbox",icon:v.cloneElement(C,{fontSize:C.props.fontSize??u}),checkedIcon:v.cloneElement(w,{fontSize:w.props.fontSize??u}),disableRipple:m,slots:y,slotProps:{input:Wa(typeof T=="function"?T(E):T,{"data-indeterminate":l})}}});return f.jsx(S,{...P,classes:x})});process.env.NODE_ENV!=="production"&&(yo.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),defaultChecked:n.bool,disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,indeterminate:n.bool,indeterminateIcon:n.node,inputProps:n.object,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function g0(e){const t=qt(e);return t.body===e?pn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Vr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Hd(e){return parseInt(pn(e).getComputedStyle(e).paddingRight,10)||0}function b0(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||r}function qd(e,t,o,r,i){const s=[t,o,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!b0(a);l&&c&&Vr(a,i)})}function ul(e,t){let o=-1;return e.some((r,i)=>t(r)?(o=i,!0):!1),o}function y0(e,t){const o=[],r=e.container;if(!t.disableScrollLock){if(g0(r)){const a=yu(pn(r));o.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Hd(r)+a}px`;const l=qt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{o.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Hd(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=qt(r).body;else{const a=r.parentElement,l=pn(r);s=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}o.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{o.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function v0(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class x0{constructor(){this.modals=[],this.containers=[]}add(t,o){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Vr(t.modalRef,!1);const i=v0(o);qd(o,t.mount,t.modalRef,i,!0);const s=ul(this.containers,a=>a.container===o);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:i}),r)}mount(t,o){const r=ul(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=y0(i,o))}remove(t,o=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=ul(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Vr(t.modalRef,o),qd(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&Vr(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const C0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function S0(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function T0(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function w0(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||T0(e))}function E0(e){const t=[],o=[];return Array.from(e.querySelectorAll(C0)).forEach((r,i)=>{const s=S0(r);s===-1||!w0(r)||(s===0?t.push(r):o.push({documentOrder:i,tabIndex:s,node:r}))}),o.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function O0(){return!0}function Ts(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=E0,isEnabled:a=O0,open:l}=e,c=v.useRef(!1),d=v.useRef(null),u=v.useRef(null),m=v.useRef(null),h=v.useRef(null),y=v.useRef(!1),g=v.useRef(null),p=mt(co(t),g),C=v.useRef(null);v.useEffect(()=>{!l||!g.current||(y.current=!o)},[o,l]),v.useEffect(()=>{if(!l||!g.current)return;const x=qt(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&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(`
|
|
265
|
+
`)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[l]),v.useEffect(()=>{if(!l||!g.current)return;const x=qt(g.current),T=O=>{C.current=O,!(r||!a()||O.key!=="Tab")&&x.activeElement===g.current&&O.shiftKey&&(c.current=!0,u.current&&u.current.focus())},S=()=>{var R,b;const O=g.current;if(O===null)return;if(!x.hasFocus()||!a()||c.current){c.current=!1;return}if(O.contains(x.activeElement)||r&&x.activeElement!==d.current&&x.activeElement!==u.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let k=[];if((x.activeElement===d.current||x.activeElement===u.current)&&(k=s(g.current)),k.length>0){const j=!!((R=C.current)!=null&&R.shiftKey&&((b=C.current)==null?void 0:b.key)==="Tab"),N=k[0],M=k[k.length-1];typeof N!="string"&&typeof M!="string"&&(j?M.focus():N.focus())}else O.focus()};x.addEventListener("focusin",S),x.addEventListener("keydown",T,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",S),x.removeEventListener("keydown",T,!0)}},[o,r,i,a,l,s]);const w=x=>{m.current===null&&(m.current=x.relatedTarget),y.current=!0,h.current=x.target;const T=t.props.onFocus;T&&T(x)},E=x=>{m.current===null&&(m.current=x.relatedTarget),y.current=!0};return f.jsxs(v.Fragment,{children:[f.jsx("div",{tabIndex:l?0:-1,onFocus:E,ref:d,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:p,onFocus:w}),f.jsx("div",{tabIndex:l?0:-1,onFocus:E,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ts.propTypes={children:ao,disableAutoFocus:n.bool,disableEnforceFocus:n.bool,disableRestoreFocus:n.bool,getTabbable:n.func,isEnabled:n.func,open:n.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Ts.propTypes=qi(Ts.propTypes));function k0(e){return typeof e=="function"?e():e}function P0(e){return e?e.props.hasOwnProperty("in"):!1}const Gd=()=>{},ws=new x0;function $0(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:u}=e,m=v.useRef({}),h=v.useRef(null),y=v.useRef(null),g=mt(y,u),[p,C]=v.useState(!d),w=P0(l);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const x=()=>qt(h.current),T=()=>(m.current.modalRef=y.current,m.current.mount=h.current,m.current),S=()=>{ws.mount(T(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Gt(()=>{const F=k0(t)||x().body;ws.add(T(),F),y.current&&S()}),O=()=>ws.isTopModal(T()),k=Gt(F=>{h.current=F,F&&(d&&O()?S():y.current&&Vr(y.current,E))}),R=v.useCallback(()=>{ws.remove(T(),E)},[E]);v.useEffect(()=>()=>{R()},[R]),v.useEffect(()=>{d?P():(!w||!i)&&R()},[d,R,w,i,P]);const b=F=>L=>{var X;(X=F.onKeyDown)==null||X.call(F,L),!(L.key!=="Escape"||L.which===229||!O())&&(o||(L.stopPropagation(),c&&c(L,"escapeKeyDown")))},j=F=>L=>{var X;(X=F.onClick)==null||X.call(F,L),L.target===L.currentTarget&&c&&c(L,"backdropClick")};return{getRootProps:(F={})=>{const L=Su(e);delete L.onTransitionEnter,delete L.onTransitionExited;const X={...L,...F};return{role:"presentation",...X,onKeyDown:b(X),ref:g}},getBackdropProps:(F={})=>{const L=F;return{"aria-hidden":!0,...L,onClick:j(L),open:d}},getTransitionProps:()=>{const F=()=>{C(!1),s&&s()},L=()=>{C(!0),a&&a(),i&&R()};return{onEnter:Pa(F,(l==null?void 0:l.props.onEnter)??Gd),onExited:Pa(L,(l==null?void 0:l.props.onExited)??Gd)}},rootRef:g,portalRef:k,isTopModal:O,exited:p,hasTransition:w}}function R0(e){return ge("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const j0=e=>{const{open:t,exited:o,classes:r}=e;return ye({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},R0,r)},I0=Z("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(ve(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),N0=Z(ll,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Es=v.forwardRef(function(t,o){const r=xe({name:"MuiModal",props:t}),{BackdropComponent:i=N0,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:d,container:u,component:m,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:x=!1,hideBackdrop:T=!1,keepMounted:S=!1,onBackdropClick:P,onClose:O,onTransitionEnter:k,onTransitionExited:R,open:b,slotProps:j={},slots:N={},theme:M,...z}=r,F={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:p,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:E,disableScrollLock:x,hideBackdrop:T,keepMounted:S},{getRootProps:L,getBackdropProps:X,getTransitionProps:J,portalRef:W,isTopModal:B,exited:A,hasTransition:Q}=$0({...F,rootRef:o}),Y={...F,exited:A},q=j0(Y),U={};if(d.props.tabIndex===void 0&&(U.tabIndex="-1"),Q){const{onEnter:ce,onExited:D}=J();U.onEnter=ce,U.onExited=D}const _={slots:{root:h.Root,backdrop:h.Backdrop,...N},slotProps:{...y,...j}},[G,H]=Ne("root",{ref:o,elementType:I0,externalForwardedProps:{..._,...z,component:m},getSlotProps:L,ownerState:Y,className:ae(l,q==null?void 0:q.root,!Y.open&&Y.exited&&(q==null?void 0:q.hidden))}),[ne,se]=Ne("backdrop",{ref:s==null?void 0:s.ref,elementType:i,externalForwardedProps:_,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ce=>X({...ce,onClick:D=>{P&&P(D),ce!=null&&ce.onClick&&ce.onClick(D)}}),className:ae(s==null?void 0:s.className,q==null?void 0:q.backdrop),ownerState:Y});return!S&&!b&&(!Q||A)?null:f.jsx(Br,{ref:W,container:u,disablePortal:w,children:f.jsxs(G,{...H,children:[!T&&i?f.jsx(ne,{...se}):null,f.jsx(Ts,{disableEnforceFocus:p,disableAutoFocus:g,disableRestoreFocus:E,isEnabled:B,open:b,children:v.cloneElement(d,U)})]})})});process.env.NODE_ENV!=="production"&&(Es.propTypes={BackdropComponent:n.elementType,BackdropProps:n.object,children:ao.isRequired,classes:n.object,className:n.string,closeAfterTransition:n.bool,component:n.elementType,components:n.shape({Backdrop:n.elementType,Root:n.elementType}),componentsProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),container:n.oneOfType([Cn,n.func]),disableAutoFocus:n.bool,disableEnforceFocus:n.bool,disableEscapeKeyDown:n.bool,disablePortal:n.bool,disableRestoreFocus:n.bool,disableScrollLock:n.bool,hideBackdrop:n.bool,keepMounted:n.bool,onBackdropClick:n.func,onClose:n.func,onTransitionEnter:n.func,onTransitionExited:n.func,open:n.bool.isRequired,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function M0(e){return ge("MuiDialog",e)}const dl=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),pl=v.createContext({});process.env.NODE_ENV!=="production"&&(pl.displayName="DialogContext");const A0=Z(ll,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),D0=e=>{const{classes:t,scroll:o,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${ee(o)}`],paper:["paper",`paperScroll${ee(o)}`,`paperWidth${ee(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return ye(a,M0,t)},_0=Z(Es,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),L0=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.container,t[`scroll${ee(o.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),B0=Z(An,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`scrollPaper${ee(o.scroll)}`],t[`paperWidth${ee(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})(ve(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${dl.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${dl.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),fl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiDialog"}),i=Mn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:d,BackdropProps:u,children:m,className:h,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:C="sm",onBackdropClick:w,onClick:E,onClose:x,open:T,PaperComponent:S=An,PaperProps:P={},scroll:O="paper",slots:k={},slotProps:R={},TransitionComponent:b=Cs,transitionDuration:j=s,TransitionProps:N,...M}=r,z={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:p,maxWidth:C,scroll:O},F=D0(z),L=v.useRef(),X=de=>{L.current=de.target===de.currentTarget},J=de=>{E&&E(de),L.current&&(L.current=null,w&&w(de),x&&x(de,"backdropClick"))},W=In(l),B=v.useMemo(()=>({titleId:W}),[W]),A={transition:b,...k},Q={transition:N,paper:P,backdrop:u,...R},Y={slots:A,slotProps:Q},[q,U]=Ne("root",{elementType:_0,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:z,className:ae(F.root,h),ref:o}),[_,G]=Ne("backdrop",{elementType:A0,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:z}),[H,ne]=Ne("paper",{elementType:B0,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:z,className:ae(F.paper,P.className)}),[se,ce]=Ne("container",{elementType:L0,externalForwardedProps:Y,ownerState:z,className:ae(F.container)}),[D,Ee]=Ne("transition",{elementType:Cs,externalForwardedProps:Y,ownerState:z,additionalProps:{appear:!0,in:T,timeout:j,role:"presentation"}});return f.jsx(q,{closeAfterTransition:!0,slots:{backdrop:_},slotProps:{backdrop:{transitionDuration:j,as:d,...G}},disableEscapeKeyDown:y,onClose:x,open:T,onClick:J,...U,...M,children:f.jsx(D,{...Ee,children:f.jsx(se,{onMouseDown:X,...ce,children:f.jsx(H,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W,"aria-modal":c,...ne,children:f.jsx(pl.Provider,{value:B,children:m})})})})})});process.env.NODE_ENV!=="production"&&(fl.propTypes={"aria-describedby":n.string,"aria-labelledby":n.string,"aria-modal":n.oneOfType([n.oneOf(["false","true"]),n.bool]),BackdropComponent:n.elementType,BackdropProps:n.object,children:n.node,classes:n.object,className:n.string,disableEscapeKeyDown:n.bool,fullScreen:n.bool,fullWidth:n.bool,maxWidth:n.oneOfType([n.oneOf(["xs","sm","md","lg","xl",!1]),n.string]),onBackdropClick:n.func,onClick:n.func,onClose:n.func,open:n.bool.isRequired,PaperComponent:n.elementType,PaperProps:n.object,scroll:n.oneOf(["body","paper"]),slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),container:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,container:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TransitionComponent:n.elementType,transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),TransitionProps:n.object});function F0(e){return ge("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const z0=e=>{const{classes:t,disableSpacing:o}=e;return ye({root:["root",!o&&"spacing"]},F0,t)},V0=Z("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Os=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},c=z0(l);return f.jsx(V0,{className:ae(c.root,i),ownerState:l,ref:o,...a})});process.env.NODE_ENV!=="production"&&(Os.propTypes={children:n.node,classes:n.object,className:n.string,disableSpacing:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function W0(e){return ge("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);function U0(e){return ge("MuiDialogTitle",e)}const H0=be("MuiDialogTitle",["root"]),q0=e=>{const{classes:t,dividers:o}=e;return ye({root:["root",o&&"dividers"]},W0,t)},G0=Z("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})(ve(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${H0.root} + &`]:{paddingTop:0}}}]}))),Yd=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,l={...r,dividers:s},c=q0(l);return f.jsx(G0,{className:ae(c.root,i),ownerState:l,ref:o,...a})});process.env.NODE_ENV!=="production"&&(Yd.propTypes={children:n.node,classes:n.object,className:n.string,dividers:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function Y0(e){return ge("MuiDialogContentText",e)}be("MuiDialogContentText",["root"]);const K0=e=>{const{classes:t}=e,r=ye({root:["root"]},Y0,t);return{...t,...r}},X0=Z(xt,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ml=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiDialogContentText"}),{children:i,className:s,...a}=r,l=K0(a);return f.jsx(X0,{component:"p",variant:"body1",color:"textSecondary",ref:o,ownerState:a,className:ae(l.root,s),...r,classes:l})});process.env.NODE_ENV!=="production"&&(ml.propTypes={children:n.node,classes:n.object,className:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const J0=e=>{const{classes:t}=e;return ye({root:["root"]},U0,t)},Z0=Z(xt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Kd=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,l=r,c=J0(l),{titleId:d=s}=v.useContext(pl);return f.jsx(Z0,{component:"h2",className:ae(c.root,i),ownerState:l,ref:o,variant:"h6",id:s??d,...a})});process.env.NODE_ENV!=="production"&&(Kd.propTypes={children:n.node,classes:n.object,className:n.string,id:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Xd=be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Q0(e,t,o){const r=t.getBoundingClientRect(),i=o&&o.getBoundingClientRect(),s=pn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const d=s.getComputedStyle(t);a=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let l=0,c=0;if(a&&a!=="none"&&typeof a=="string"){const d=a.split("(")[1].split(")")[0].split(",");l=parseInt(d[4],10),c=parseInt(d[5],10)}return e==="left"?i?`translateX(${i.right+l-r.left}px)`:`translateX(${s.innerWidth+l-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?i?`translateY(${i.bottom+c-r.top}px)`:`translateY(${s.innerHeight+c-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function Jd(e){return typeof e=="function"?e():e}function ks(e,t,o){const r=Jd(o),i=Q0(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Zd=v.forwardRef(function(t,o){const r=Mn(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,container:d,direction:u="down",easing:m=i,in:h,onEnter:y,onEntered:g,onEntering:p,onExit:C,onExited:w,onExiting:E,style:x,timeout:T=s,TransitionComponent:S=nn,...P}=t,O=v.useRef(null),k=mt(co(c),O,o),R=J=>W=>{J&&(W===void 0?J(O.current):J(O.current,W))},b=R((J,W)=>{ks(u,J,d),Ya(J),y&&y(J,W)}),j=R((J,W)=>{const B=qn({timeout:T,style:x,easing:m},{mode:"enter"});J.style.webkitTransition=r.transitions.create("-webkit-transform",{...B}),J.style.transition=r.transitions.create("transform",{...B}),J.style.webkitTransform="none",J.style.transform="none",p&&p(J,W)}),N=R(g),M=R(E),z=R(J=>{const W=qn({timeout:T,style:x,easing:m},{mode:"exit"});J.style.webkitTransition=r.transitions.create("-webkit-transform",W),J.style.transition=r.transitions.create("transform",W),ks(u,J,d),C&&C(J)}),F=R(J=>{J.style.webkitTransition="",J.style.transition="",w&&w(J)}),L=J=>{a&&a(O.current,J)},X=v.useCallback(()=>{O.current&&ks(u,O.current,d)},[u,d]);return v.useEffect(()=>{if(h||u==="down"||u==="right")return;const J=$a(()=>{O.current&&ks(u,O.current,d)}),W=pn(O.current);return W.addEventListener("resize",J),()=>{J.clear(),W.removeEventListener("resize",J)}},[u,h,d]),v.useEffect(()=>{h||X()},[h,X]),f.jsx(S,{nodeRef:O,onEnter:b,onEntered:N,onEntering:j,onExit:z,onExited:F,onExiting:M,addEndListener:L,appear:l,in:h,timeout:T,...P,children:(J,{ownerState:W,...B})=>v.cloneElement(c,{ref:k,style:{visibility:J==="exited"&&!h?"hidden":void 0,...x,...c.props.style},...B})})});process.env.NODE_ENV!=="production"&&(Zd.propTypes={addEndListener:n.func,appear:n.bool,children:ao.isRequired,container:tn(n.oneOfType([Cn,n.func]),e=>{if(e.open){const t=Jd(e.container);if(t&&t.nodeType===1){const o=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&o.top===0&&o.left===0&&o.right===0&&o.bottom===0)return new Error(["MUI: The `container` 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(`
|
|
284
266
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
|
|
285
|
-
`))}return null}),direction:n.oneOf(["down","left","right","up"]),disablePrefersReducedMotion:n.bool,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function BT(e){return he("MuiDrawer",e)}ge("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","modal"]);const Gp=(e,t)=>{const{ownerState:o}=e;return[t.root,(o.variant==="permanent"||o.variant==="persistent")&&t.docked,o.variant==="temporary"&&t.modal]},FT=e=>{const{classes:t,anchor:o,variant:r}=e,s={root:["root",`anchor${ie(o)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper"]};return be(s,BT,t)},zT=Z(Ai,{name:"MuiDrawer",slot:"Root",overridesResolver:Gp})(xe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),VT=Z("div",{shouldForwardProp:Et,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Gp})({flex:"0 0 auto"}),WT=Z(Fn,{name:"MuiDrawer",slot:"Paper"})(xe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Yp={left:"right",right:"left",top:"down",bottom:"up"};function UT(e){return["left","right"].includes(e)}function HT({direction:e},t){return e==="rtl"&&UT(t)?Yp[t]:t}const Ll=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiDrawer"}),s=En(),i=ni(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:l="left",children:c,className:d,elevation:u=16,hideBackdrop:h=!1,ModalProps:y={},onClose:p,open:g=!1,transitionDuration:f=a,variant:S="temporary",slots:C={},slotProps:E={},...T}=r,w=b.useRef(!1),x=b.useRef(null),k=lt(o,x);b.useEffect(()=>{w.current=!0},[]);const R=b.useCallback(()=>x.current,[]),P=HT({direction:i?"rtl":"ltr"},l),A={...r,anchor:l,elevation:u,open:g,variant:S,...T},I=FT(A),v={slots:C,slotProps:{...E,backdrop:vi(E.backdrop,{transitionDuration:f})}},[M,$]=Ee("root",{ref:k,elementType:zT,className:se(I.root,I.modal,d),shouldForwardComponentProp:!0,ownerState:A,externalForwardedProps:{...v,...T,...y},additionalProps:{closeAfterTransition:!0,open:g,onClose:p,hideBackdrop:h,slots:{backdrop:v.slots.backdrop},slotProps:{backdrop:v.slotProps.backdrop}}}),[j,L]=Ee("paper",{elementType:WT,shouldForwardComponentProp:!0,className:I.paper,ownerState:A,externalForwardedProps:v,additionalProps:{elevation:S==="temporary"?u:0,square:!0,...S==="temporary"&&{role:"dialog","aria-modal":"true",[ji]:"",tabIndex:-1}}}),[U,G]=Ee("docked",{elementType:VT,ref:k,className:se(I.root,I.docked,d),ownerState:A,externalForwardedProps:v,additionalProps:T}),[ee,B]=Ee("transition",{elementType:Dl,ownerState:A,externalForwardedProps:v,additionalProps:{in:g,direction:Yp[P],timeout:f,appear:w.current,...S==="temporary"&&(C.transition==null||C.transition===Dl)&&{container:R}}}),O=m.jsx(j,{...L,children:c});if(S==="permanent")return m.jsx(U,{...G,children:O});const _=m.jsx(ee,{...B,children:O});return S==="persistent"?m.jsx(U,{...G,children:_}):m.jsx(M,{...$,children:_})});process.env.NODE_ENV!=="production"&&(Ll.propTypes={anchor:n.oneOf(["bottom","left","right","top"]),children:n.node,classes:n.object,className:n.string,elevation:Jo,hideBackdrop:n.bool,ModalProps:n.object,onClose:n.func,open:n.bool,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),docked:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,docked:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),variant:n.oneOf(["permanent","persistent","temporary"])});const qT=e=>{const{classes:t,disableUnderline:o,startAdornment:r,endAdornment:s,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!o&&"underline",r&&"adornedStart",s&&"adornedEnd",i==="small"&&`size${ie(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=be(c,fv,t);return{...t,...d}},GT=Z(fi,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...di(e,t),!o.disableUnderline&&t.underline]}})(xe(({theme:e})=>{const t=e.palette.mode==="light",o=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,...et(e,"background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Xt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Xt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",...et(e,"transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):o}`,left:0,bottom:0,content:'""',position:"absolute",right:0,...et(e,"border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xt.disabled}, .${Xt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(kt()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),YT=Z(mi,{name:"MuiFilledInput",slot:"Input",overridesResolver:pi})(xe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff"},borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",...e.vars&&e.applyStyles("dark",{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"})},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Li=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:l="input",multiline:c=!1,notched:d,slotProps:u,slots:h={},type:y="text",...p}=r,g={...r,disableUnderline:s,fullWidth:i,inputComponent:l,multiline:c,type:y},f=qT(r),S={root:{ownerState:g},input:{ownerState:g}},C=u?Nt(S,u):S,E=h.root??GT,T=h.input??YT;return m.jsx(hi,{slots:{root:E,input:T},slotProps:C,fullWidth:i,inputComponent:l,multiline:c,ref:o,type:y,...p,classes:f})});process.env.NODE_ENV!=="production"&&(Li.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),defaultValue:n.any,disabled:n.bool,disableUnderline:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,hiddenLabel:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:nn,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,notched:n.bool,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),Li.muiName="Input";function KT(e){return he("MuiFormControl",e)}ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const XT=e=>{const{classes:t,margin:o,fullWidth:r}=e,s={root:["root",o!=="none"&&`margin${ie(o)}`,r&&"fullWidth"]};return be(s,KT,t)},JT=Z("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`margin${ie(o.margin)}`],o.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),es=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:d=!1,focused:u,fullWidth:h=!1,hiddenLabel:y=!1,margin:p="none",required:g=!1,size:f="medium",variant:S="outlined",...C}=r,E={...r,color:a,component:l,disabled:c,error:d,fullWidth:h,hiddenLabel:y,margin:p,required:g,size:f,variant:S},T=XT(E),[w,x]=b.useState(()=>{let L=!1;return s&&b.Children.forEach(s,U=>{if(!Nr(U,["Input","Select"]))return;const G=Nr(U,["Select"])?U.props.input:U;G&&nv(G.props)&&(L=!0)}),L}),[k,R]=b.useState(()=>{let L=!1;return s&&b.Children.forEach(s,U=>{Nr(U,["Input","Select"])&&(li(U.props,!0)||li(U.props.inputProps,!0))&&(L=!0)}),L}),[P,N]=b.useState(!1);c&&P&&N(!1);const A=u!==void 0&&!c?u:P;let I;const v=b.useRef(!1);process.env.NODE_ENV!=="production"&&(I=()=>(v.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
286
|
-
`)),v.current=!0,()=>{v.current=!1}));const M=b.useCallback(()=>{R(!0)},[]),$=b.useCallback(()=>{R(!1)},[]),j=b.useMemo(()=>({adornedStart:w,setAdornedStart:x,color:a,disabled:c,error:d,filled:k,focused:A,fullWidth:h,hiddenLabel:y,size:f,onBlur:()=>{N(!1)},onFocus:()=>{N(!0)},onEmpty:$,onFilled:M,registerEffect:I,required:g,variant:S}),[w,a,c,d,k,A,h,y,I,$,M,g,f,S]);return m.jsx(Ar.Provider,{value:j,children:m.jsx(JT,{as:l,ownerState:E,className:se(T.root,i),ref:o,...C,children:s})})});process.env.NODE_ENV!=="production"&&(es.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,disabled:n.bool,error:n.bool,focused:n.bool,fullWidth:n.bool,hiddenLabel:n.bool,margin:n.oneOf(["dense","none","normal"]),required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOf(["filled","outlined","standard"])});const QT=e=>{const{classes:t,disabled:o,labelPlacement:r,error:s,required:i}=e,a={root:["root",o&&"disabled",`labelPlacement${ie(r)}`,s&&"error",i&&"required"],label:["label",o&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(a,mv,t)},ZT=Z("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${_r.label}`]:t.label},t.root,t[`labelPlacement${ie(o.labelPlacement)}`]]}})(xe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${_r.disabled}`]:{cursor:"default"},[`& .${_r.label}`]:{[`&.${_r.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),eC=Z("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(xe(({theme:e})=>({[`&.${_r.error}`]:{color:(e.vars||e).palette.error.main}}))),so=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiFormControlLabel"}),{checked:s,className:i,control:a,disabled:l,disableTypography:c,inputRef:d,label:u,labelPlacement:h="end",name:y,onChange:p,required:g,slots:f={},slotProps:S={},value:C,...E}=r,[T,w]=eo({props:r,states:["error"]}),x=l??a.props.disabled??(w==null?void 0:w.disabled),k=g??a.props.required,R={disabled:x,required:k};["checked","name","onChange","value","inputRef"].forEach($=>{typeof a.props[$]>"u"&&typeof r[$]<"u"&&(R[$]=r[$])});const P={...r,disabled:x,labelPlacement:h,required:k,error:T.error},N=QT(P),A={slots:f,slotProps:S},[I,v]=Ee("typography",{elementType:yt,externalForwardedProps:A,ownerState:P});let M=u;return M!=null&&M.type!==yt&&!c&&(M=m.jsx(I,{component:"span",...v,className:se(N.label,v==null?void 0:v.className),children:M})),m.jsxs(ZT,{className:se(N.root,i),ownerState:P,ref:o,...E,children:[b.cloneElement(a,R),k?m.jsxs("div",{children:[M,m.jsxs(eC,{ownerState:P,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):M]})});process.env.NODE_ENV!=="production"&&(so.propTypes={checked:n.bool,classes:n.object,className:n.string,control:n.element.isRequired,disabled:n.bool,disableTypography:n.bool,inputRef:nn,label:n.node,labelPlacement:n.oneOf(["bottom","end","start","top"]),name:n.string,onChange:n.func,required:n.bool,slotProps:n.shape({typography:n.oneOfType([n.func,n.object])}),slots:n.shape({typography:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function tC(e){return he("MuiFormGroup",e)}ge("MuiFormGroup",["root","row","error"]);const nC=e=>{const{classes:t,row:o,error:r}=e;return be({root:["root",o&&"row",r&&"error"]},tC,t)},oC=Z("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),ts=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiFormGroup"}),{className:s,row:i=!1,...a}=r,[l]=eo({props:r,states:["error"]}),c={...r,row:i,error:l.error},d=nC(c);return m.jsx(oC,{className:se(d.root,s),ownerState:c,ref:o,...a})});process.env.NODE_ENV!=="production"&&(ts.propTypes={children:n.node,classes:n.object,className:n.string,row:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});var Kp;const rC=e=>{const{classes:t,contained:o,size:r,disabled:s,error:i,filled:a,focused:l,required:c}=e,d={root:["root",s&&"disabled",i&&"error",r&&`size${ie(r)}`,o&&"contained",l&&"focused",a&&"filled",c&&"required"]};return be(d,hv,t)},sC=Z("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.size&&t[`size${ie(o.size)}`],o.contained&&t.contained,o.filled&&t.filled]}})(xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Pd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pd.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Bl=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:a="p",disabled:l,error:c,filled:d,focused:u,margin:h,required:y,variant:p,...g}=r,[f]=eo({props:r,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:a,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required};delete S.ownerState;const C=rC(S);return m.jsx(sC,{as:a,className:se(C.root,i),ref:o,...g,ownerState:S,children:s===" "?Kp||(Kp=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):s})});process.env.NODE_ENV!=="production"&&(Bl.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,disabled:n.bool,error:n.bool,filled:n.bool,focused:n.bool,margin:n.oneOf(["dense"]),required:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["filled","outlined","standard"]),n.string])});const iC=e=>{const{classes:t,color:o,focused:r,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${ie(o)}`,s&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return be(c,gv,t)},aC=Z("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color==="secondary"&&t.colorSecondary,o.filled&&t.filled]}})(xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(kt()).map(([t])=>({props:{color:t},style:{[`&.${Dr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Dr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),lC=Z("span",{name:"MuiFormLabel",slot:"Asterisk"})(xe(({theme:e})=>({[`&.${Dr.error}`]:{color:(e.vars||e).palette.error.main}}))),Bi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:a,component:l="label",disabled:c,error:d,filled:u,focused:h,required:y,...p}=r,[g]=eo({props:r,states:["color","required","focused","disabled","error","filled"]}),f={...r,color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},S=iC(f);return m.jsxs(aC,{as:l,ownerState:f,className:se(S.root,i),ref:o,...p,children:[s,g.required&&m.jsxs(lC,{ownerState:f,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["error","info","primary","secondary","success","warning"]),n.string]),component:n.elementType,disabled:n.bool,error:n.bool,filled:n.bool,focused:n.bool,required:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const ht=ay({createStyledComponent:Z("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Te({props:e,name:"MuiGrid"}),useTheme:En});if(process.env.NODE_ENV!=="production"&&(ht.propTypes={children:n.node,columns:n.oneOfType([n.arrayOf(n.number),n.number,n.object]),columnSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),container:n.bool,direction:n.oneOfType([n.oneOf(["row-reverse","row"]),n.arrayOf(n.oneOf(["row-reverse","row"])),n.object]),offset:n.oneOfType([n.string,n.number,n.arrayOf(n.oneOfType([n.string,n.number])),n.object]),rowSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),size:n.oneOfType([n.string,n.bool,n.number,n.arrayOf(n.oneOfType([n.string,n.bool,n.number])),n.object]),spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),unstable_level:n.number,wrap:n.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=ht,t=Iv("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function ns(e){return`scale(${e}, ${e**2})`}const cC={entering:{opacity:1,transform:ns(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:ns(.75)},exited:{opacity:0,transform:ns(.75)}},uC={opacity:0,transform:ns(.75),visibility:"hidden"},os=b.forwardRef(function(t,o){const{addEndListener:r,appear:s=!0,children:i,disablePrefersReducedMotion:a=!1,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:y,onExited:p,onExiting:g,style:f,timeout:S="auto",...C}=t,E=b.useRef(null),T=En(),w=zr(T.motion.reducedMotion,a),x=b.useRef(null),k=lt(x,bo(i),o),R=mt(x,h),P=mt(x,($,j)=>{w.shouldReduceMotion||ci($);const{duration:L,delay:U,easing:G}=to({style:f,timeout:S,easing:l},{mode:"enter"});let ee;S==="auto"&&!w.shouldReduceMotion?(ee=T.transitions.getAutoHeightDuration($.clientHeight),E.current=ee):(ee=L,E.current=null);const B=w.getTransitionTiming({duration:ee,delay:U});$.style.transition=[T.transitions.create("opacity",{duration:B.duration,delay:B.delay}),T.transitions.create("transform",{duration:typeof B.duration=="string"?B.duration:B.duration*.666,delay:B.delay,easing:G})].join(","),d&&d($,j)}),N=mt(x,u),A=mt(x,g),I=mt(x,$=>{const{duration:j,delay:L,easing:U}=to({style:f,timeout:S,easing:l},{mode:"exit"});let G;S==="auto"&&!w.shouldReduceMotion?(G=T.transitions.getAutoHeightDuration($.clientHeight),E.current=G):(G=j,E.current=null);const ee=w.getTransitionTiming({duration:G,delay:L});$.style.transition=[T.transitions.create("opacity",{duration:ee.duration,delay:ee.delay}),T.transitions.create("transform",{duration:typeof ee.duration=="string"?ee.duration:ee.duration*.666,delay:ee.delay||(typeof ee.duration=="string"?ee.duration:ee.duration*.333),easing:U})].join(","),$.style.opacity=0,$.style.transform=ns(.75),y&&y($)}),v=mt(x,$=>{$.style.transition="",p&&p($)}),M=r?$=>{r(x.current,$)}:void 0;return m.jsx(Fr,{appear:s,in:c,nodeRef:x,onEnter:P,onEntered:N,onEntering:R,onExit:I,onExited:v,onExiting:A,addEndListener:M,getAutoTimeout:S==="auto"?()=>E.current:void 0,reduceMotion:w.shouldReduceMotion,timeout:S==="auto"?null:S,...C,children:($,{ownerState:j,...L})=>{const U=Od($,c,cC,uC,f,i.props.style);return b.cloneElement(i,{style:U,ref:k,...L})}})});process.env.NODE_ENV!=="production"&&(os.propTypes={addEndListener:n.func,appear:n.bool,children:yo.isRequired,disablePrefersReducedMotion:n.bool,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])}),os&&(os.muiSupportAuto=!0);function dC(e){return he("MuiInputLabel",e)}const pC=ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),fC=e=>{const{classes:t,disableUnderline:o}=e,s=be({root:["root",!o&&"underline"],input:["input"]},bv,t);return{...t,...s}},mC=Z(fi,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...di(e,t),!o.disableUnderline&&t.underline]}})(xe(({theme:e})=>{let o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(o=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{[`label + &, .${pC.root} + &`]:{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",...et(e,"transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${no.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${no.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'""',position:"absolute",right:0,...et(e,"border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${no.disabled}, .${no.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${no.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(kt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),hC=Z(mi,{name:"MuiInput",slot:"Input",overridesResolver:pi})({}),Fi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiInput"}),{disableUnderline:s=!1,fullWidth:i=!1,inputComponent:a="input",multiline:l=!1,notched:c,slotProps:d,slots:u={},type:h="text",...y}=r,p=fC(r),f={root:{ownerState:{disableUnderline:s}}},S=d?Nt(d,f):f,C=u.root??mC,E=u.input??hC;return m.jsx(hi,{slots:{root:C,input:E},slotProps:S,fullWidth:i,inputComponent:a,multiline:l,ref:o,type:h,...y,classes:p})});process.env.NODE_ENV!=="production"&&(Fi.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),defaultValue:n.any,disabled:n.bool,disableUnderline:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:nn,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,notched:n.bool,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),Fi.muiName="Input";const gC=e=>{const{classes:t,formControl:o,size:r,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",o&&"formControl",!i&&"animated",s&&"shrink",r&&r!=="medium"&&`size${ie(r)}`,a],asterisk:[l&&"asterisk"]},d=be(c,dC,t);return{...t,...d}},bC=Z(Bi,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Dr.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(xe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{...et(e,["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:o})=>t==="filled"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:o,size:r})=>t==="filled"&&o.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:o})=>t==="outlined"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),zi=b.forwardRef(function(t,o){const r=Te({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...d}=r,[u,h]=eo({props:r,states:["size","variant","required","focused"]});let y=a;typeof y>"u"&&h&&(y=h.filled||h.focused||h.adornedStart);const p={...r,disableAnimation:s,formControl:h,shrink:y,size:u.size,variant:u.variant,required:u.required,focused:u.focused},g=gC(p);return m.jsx(bC,{"data-shrink":y,ref:o,className:se(g.root,c),...d,ownerState:p,classes:g})});process.env.NODE_ENV!=="production"&&(zi.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["error","info","primary","secondary","success","warning"]),n.string]),disableAnimation:n.bool,disabled:n.bool,error:n.bool,focused:n.bool,margin:n.oneOf(["dense"]),required:n.bool,shrink:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOf(["filled","outlined","standard"])});const In=b.createContext({});process.env.NODE_ENV!=="production"&&(In.displayName="ListContext");function yC(e){return he("MuiList",e)}ge("MuiList",["root","padding","dense","subheader"]);const vC=e=>{const{classes:t,disablePadding:o,dense:r,subheader:s}=e;return be({root:["root",!o&&"padding",r&&"dense",s&&"subheader"]},yC,t)},xC=Z("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:"isolate"}}]}),To=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...u}=r,h=b.useMemo(()=>({dense:l}),[l]),y={...r,component:a,dense:l,disablePadding:c},p=vC(y);return m.jsx(In.Provider,{value:h,children:m.jsxs(xC,{as:a,className:se(p.root,i),ref:o,ownerState:y,...u,children:[d,s]})})});process.env.NODE_ENV!=="production"&&(To.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disablePadding:n.bool,subheader:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function SC(e){return he("MuiListItem",e)}ge("MuiListItem",["root","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const TC=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.alignItems==="flex-start"&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters]},CC=e=>{const{alignItems:t,classes:o,dense:r,disabled:s,disableGutters:i,divider:a,selected:l}=e,d=be({root:["root",r&&"dense",!i&&"gutters",a&&"divider",s&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},yv,o);return{...o,...d}},wC=Z(hn,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:TC})(xe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,...et(e,"background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Xo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Xo.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Xo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),$n=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiListItemButton"}),{alignItems:s="center",autoFocus:i=!1,component:a="div",children:l,dense:c=!1,disableGutters:d=!1,divider:u=!1,focusVisibleClassName:h,selected:y=!1,className:p,...g}=r,f=b.useContext(In),S=b.useMemo(()=>({dense:c||f.dense||!1,alignItems:s,disableGutters:d}),[s,f.dense,c,d]),C=b.useRef(null);pt(()=>{i&&(C.current?C.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const E={...r,alignItems:s,dense:S.dense,disableGutters:d,divider:u,selected:y},T=CC(E),{root:w,...x}=T,k=lt(C,o);return m.jsx(In.Provider,{value:S,children:m.jsx(wC,{ref:k,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,internalNativeButton:!1,focusVisibleClassName:se(T.focusVisible,h),ownerState:E,className:se(T.root,p),...g,classes:x,children:l})})});process.env.NODE_ENV!=="production"&&($n.propTypes={alignItems:n.oneOf(["center","flex-start"]),autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disabled:n.bool,disableGutters:n.bool,divider:n.bool,focusVisibleClassName:n.string,href:n.string,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function EC(e){return he("MuiListItemSecondaryAction",e)}ge("MuiListItemSecondaryAction",["root","disableGutters"]);const OC=e=>{const{disableGutters:t,classes:o}=e;return be({root:["root",t&&"disableGutters"]},EC,o)},kC=Z("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Fl=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiListItemSecondaryAction"}),{className:s,component:i,...a}=r,l=b.useContext(In),c={...r,disableGutters:l.disableGutters},d=OC(c);return m.jsx(kC,{as:i,className:se(d.root,s),ownerState:c,ref:o,...a})});process.env.NODE_ENV!=="production"&&(Fl.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])}),Fl.muiName="ListItemSecondaryAction";const RC=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.alignItems==="flex-start"&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters,!o.disablePadding&&t.padding]},PC=e=>{const{alignItems:t,classes:o,dense:r,disableGutters:s,disablePadding:i,divider:a}=e;return be({root:["root",r&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart"],secondaryAction:["secondaryAction"]},SC,o)},IC=Z("div",{name:"MuiListItem",slot:"Root",overridesResolver:RC})(xe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Xo.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{...et(e,"background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),$C=Z(Fl,{name:"MuiListItem",slot:"secondaryAction"})({}),Co=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:a,component:l="li",dense:c=!1,disableGutters:d=!1,disablePadding:u=!1,divider:h=!1,secondaryAction:y,slotProps:p={},slots:g={},...f}=r,S=b.useContext(In),C=b.useMemo(()=>({dense:c||S.dense||!1,alignItems:s,disableGutters:d}),[s,S.dense,c,d]),E={...r,alignItems:s,dense:C.dense,disableGutters:d,disablePadding:u,divider:h,secondaryAction:y},T=PC(E),w={slots:g,slotProps:p},[x,k]=Ee("root",{ref:o,elementType:IC,externalForwardedProps:{component:l,...w,...f},ownerState:E,className:se(T.root,a)}),[R,P]=Ee("secondaryAction",{elementType:$C,shouldForwardComponentProp:!0,externalForwardedProps:w,ownerState:E,className:T.secondaryAction});return m.jsx(In.Provider,{value:C,children:m.jsxs(x,{...k,children:[i,y&&m.jsx(R,{...P,children:y})]})})});process.env.NODE_ENV!=="production"&&(Co.propTypes={alignItems:n.oneOf(["center","flex-start"]),children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disableGutters:n.bool,disablePadding:n.bool,divider:n.bool,secondaryAction:n.node,slotProps:n.shape({root:n.oneOfType([n.func,n.object]),secondaryAction:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType,secondaryAction:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Xp=ge("MuiListItemIcon",["root","alignItemsFlexStart"]);function jC(e){return he("MuiListItemText",e)}const nr=ge("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),NC=e=>{const{classes:t,inset:o,primary:r,secondary:s,dense:i}=e;return be({root:["root",o&&"inset",i&&"dense",r&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},jC,t)},MC=Z("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${nr.primary}`]:t.primary},{[`& .${nr.secondary}`]:t.secondary},t.root,o.inset&&t.inset,o.primary&&o.secondary&&t.multiline,o.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Qd.root}:where(& .${nr.primary})`]:{display:"block"},[`.${Qd.root}:where(& .${nr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),jn=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiListItemText"}),{children:s,className:i,disableTypography:a=!1,inset:l=!1,primary:c,secondary:d,slots:u={},slotProps:h={},...y}=r,{dense:p}=b.useContext(In);let g=c??s,f=d;const S={...r,disableTypography:a,inset:l,primary:!!g,secondary:!!f,dense:p},C=NC(S),E={slots:u,slotProps:h},[T,w]=Ee("root",{className:se(C.root,i),elementType:MC,externalForwardedProps:{...E,...y},ownerState:S,ref:o}),[x,k]=Ee("primary",{className:C.primary,elementType:yt,externalForwardedProps:E,ownerState:S}),[R,P]=Ee("secondary",{className:C.secondary,elementType:yt,externalForwardedProps:E,ownerState:S});return g!=null&&g.type!==yt&&!a&&(g=m.jsx(x,{variant:p?"body2":"body1",component:k!=null&&k.variant?void 0:"span",...k,children:g})),f!=null&&f.type!==yt&&!a&&(f=m.jsx(R,{variant:"body2",color:"textSecondary",...P,children:f})),m.jsxs(T,{...w,children:[g,f]})});process.env.NODE_ENV!=="production"&&(jn.propTypes={children:n.node,classes:n.object,className:n.string,disableTypography:n.bool,inset:n.bool,primary:n.node,secondary:n.node,slotProps:n.shape({primary:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),secondary:n.oneOfType([n.func,n.object])}),slots:n.shape({primary:n.elementType,root:n.elementType,secondary:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Vi=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Vi.displayName="RovingTabIndexContext");function AC(){const e=b.useContext(Vi);if(e===void 0)throw new Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");return e}const _C=Object.is;function DC(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let o=0,r=0;for(const s in e)if(o+=1,!_C(e[s],t[s])||!(s in t))return!1;for(const s in t)r+=1;return o===r}const LC=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End"];function Jp(e){const{activeItemId:t,getDefaultActiveItemId:o,orientation:r,isRtl:s=!1,isItemFocusable:i=rs,wrap:a=!0}=e,[l,c]=b.useState(t),[d,u]=b.useState(t);let h=l;t!==d&&(u(t),t!==void 0&&t!==l&&(h=t,c(t)));const y=b.useRef(null),p=b.useRef(new Map),[g,f]=b.useState(0),S=b.useMemo(()=>zl(p.current),[g]),C=Zp(h,S,i,o),E=b.useRef(C);E.current=C;const T=b.useCallback(()=>{const v=zl(p.current),M=Zp(E.current,v,i,o);return of(v,M)},[o,i]),w=b.useCallback(()=>p.current,[]),x=ct(v=>{const M=p.current.get(v.id);DC(M??null,v)||(p.current.set(v.id,v),f($=>$+1))}),k=ct(v=>{p.current.delete(v)&&f(M=>M+1)}),R=ct(v=>{c(v)}),P=b.useCallback(v=>E.current===v,[]),N=b.useCallback((v,M,$,j)=>{var G;const L=Wi(p.current),U=tf(L,v,M,$,j??i);return U?((G=U.element)==null||G.focus(),c(U.id),U):null},[i]),A=b.useCallback(v=>({onFocus:j=>{const L=Wi(p.current),U=sf(L,j.target);U!==-1&&c(L[U].id)},onKeyDown:j=>{if(j.altKey||j.shiftKey||j.ctrlKey||j.metaKey||!LC.includes(j.key))return;let L=r==="horizontal"?"ArrowLeft":"ArrowUp",U=r==="horizontal"?"ArrowRight":"ArrowDown";r==="horizontal"&&s&&(L="ArrowRight",U="ArrowLeft");const G=Wi(p.current),ee=Bn(It(y.current)),B=ee===y.current;let O=ef(G,ee,E.current),_="next";switch(j.key){case L:_="previous",j.preventDefault(),B&&(O=G.length);break;case U:j.preventDefault(),B&&(O=-1);break;case"Home":j.preventDefault(),O=-1;break;case"End":j.preventDefault(),_="previous",O=G.length;break;default:return}N(O,_,a)},ref:VC(v,j=>{y.current=j})}),[N,s,r,a]),I=b.useCallback(v=>{var U;const M=Wi(p.current),$=Bn(It(y.current)),L=$===y.current?-1:ef(M,$,E.current);return((U=N(L,"next",!0,v))==null?void 0:U.id)??null},[N]);return b.useMemo(()=>({activeItemId:C,focusNext:I,getActiveItem:T,getContainerProps:A,getItemMap:w,isItemActive:P,registerItem:x,setActiveItemId:R,unregisterItem:k}),[C,I,T,A,w,P,x,R,k])}function Qp(e){const t=AC(),{activeItemId:o,registerItem:r,unregisterItem:s}=t,i=b.useRef(null),a=b.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),l=b.useRef(a);l.current=a;const c=b.useCallback(u=>{if(i.current=u,u==null){queueMicrotask(()=>{i.current==null&&s(e.id)});return}r({...l.current,element:u})},[e.id,r,s]),d=lt(e.ref,c);return pt(()=>{i.current&&r({...a,element:i.current})},[a,r]),pt(()=>{const u=e.id;return()=>{s(u)}},[e.id,s]),{ref:d,tabIndex:o===e.id?0:-1}}function Zp(e,t,o,r){return e!=null?BC(e,t,o):FC(t,o,r)}function BC(e,t,o){var s;const r=rf(t,e);return r===-1?nf(t,o):o(t[r])?t[r].id:((s=tf(t,r,"next",!1,o))==null?void 0:s.id)??null}function FC(e,t,o){const r=o==null?void 0:o(e);if(r!=null){const s=of(e,r);if(s&&t(s))return s.id}return nf(e,t)}function ef(e,t,o){if(t){const r=sf(e,t);if(r!==-1)return r}return rf(e,o)}function tf(e,t,o,r,s){const i=e.length-1;if(i===-1)return null;let a=!1,l=af(t,i,o,r);const c=l;for(;l!==-1;){if(l===c){if(a)return null;a=!0}const d=e[l];if(!d||!s(d))l=af(l,i,o,r);else return d}return null}function nf(e,t){var o;return((o=e.find(r=>t(r)))==null?void 0:o.id)??null}function of(e,t){return t==null?null:e.find(o=>o.id===t)??null}function rf(e,t){return t==null?-1:e.findIndex(o=>o.id===t)}function sf(e,t){return t?e.findIndex(o=>{var r;return o.element===t||((r=o.element)==null?void 0:r.contains(t))}):-1}function zl(e){const t=Array.from(e.values());if(t.every(s=>s.element==null))return t;const o=t.filter(Vl).sort((s,i)=>zC(s.element,i.element)),r=t.filter(s=>!Vl(s));return[...o,...r]}function Wi(e){return zl(e).filter(Vl)}function af(e,t,o,r=!0){return o==="next"?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function rs(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute("disabled")&&e.element.getAttribute("aria-disabled")!=="true"&&e.element.hasAttribute("tabindex"):!1}function Vl(e){return e.element!=null&&e.element.isConnected}function zC(e,t){if(e===t)return 0;const o=e.compareDocumentPosition(t);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}function VC(...e){return t=>{e.forEach(o=>{yi(o??null,t)})}}function lf(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}function WC(e){return e?e.type==="mousedown"||e.type==="pointerdown"||e.type==="touchstart"?"pointer":e.type==="keydown"||e.type==="click"&&e.detail===0?"keyboard":null:null}function UC(e){return e==null||typeof e=="string"&&!e.trim()}function Ui(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Wl=b.createContext(null);process.env.NODE_ENV!=="production"&&(Wl.displayName="SelectFocusSourceContext");function cf(){return b.useContext(Wl)}const HC=Wl.Provider,Ul=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ul.displayName="MenuListContext");function qC(){const e=b.useContext(Ul);if(e===void 0)throw new Error("MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.");return e}function GC(e){const t=(e==null?void 0:e.element)??e;if(!t)return"";if((e==null?void 0:e.textValue)!==void 0)return e.textValue;let o=t.innerText;return o===void 0&&(o=t.textContent),o??""}function uf(e,t){if(t===void 0)return!0;let o=GC(e);return o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.startsWith(t.keys.join(""))}function YC(e,t){return uf(e,t)?rs(e):!1}function KC(e,t){lf(e,t)}const df=b.forwardRef(function(t,o){const{actions:r,autoFocus:s=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:u,variant:h="selectedMenu",...y}=t,p=b.useRef(null),g=b.useRef(!1),[f,S]=b.useState(!1),C=cf(),E=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),T=b.useCallback(j=>{var L,U,G;return h==="selectedMenu"?((L=j.find(ee=>ee.selected&&rs(ee)))==null?void 0:L.id)??((U=j.find(ee=>rs(ee)))==null?void 0:U.id)??null:((G=j.find(ee=>rs(ee)))==null?void 0:G.id)??null},[h]),w=Jp({activeItemId:void 0,getDefaultActiveItemId:T,orientation:"vertical",wrap:!d}),{activeItemId:x,focusNext:k,getActiveItem:R,getContainerProps:P,getItemMap:N}=w,A=ct((j=!1)=>{if(!p.current||!j&&g.current)return null;if(i){const L=R();if(L!=null&&L.element){const U=Array.from(N().values()).some(ee=>ee.selected),G=h==="menu"&&U&&!L.selected&&C==null;return S(G),KC(L.element,C),g.current=!0,L.element}return s?(S(!1),p.current.focus(),p.current):null}return s?(S(!1),p.current.focus(),g.current=!0,p.current):(S(!1),null)});pt(()=>{if(!s&&!i){g.current=!1,S(!1);return}A()},[x,i,s,A]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(j,{direction:L})=>{const U=!p.current.style.width;if(j.clientHeight<p.current.clientHeight&&U){const G=`${Dp(mn(j))}px`;p.current.style[L==="rtl"?"paddingLeft":"paddingRight"]=G,p.current.style.width=`calc(100% + ${G})`}return p.current},focusInitialTarget:()=>{if(!p.current)return null;const j=Bn(It(p.current));return j&&Wn(p.current,j)?j:A(!0)}}),[A]);const I=P(),v=lt(p,I.ref,o),M=b.useMemo(()=>({itemsFocusableWhenDisabled:c,suppressInitialFocusVisible:f,variant:h}),[c,f,h]),$=ct(j=>{if(f&&S(!1),(j.ctrlKey||j.metaKey||j.altKey)&&u){u(j);return}if(I.onKeyDown(j),j.key.length===1){const U=E.current,G=j.key.toLowerCase(),ee=performance.now();U.keys.length>0&&(ee-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&G!==U.keys[0]&&(U.repeating=!1)),U.lastTime=ee,U.keys.push(G);const B=Bn(It(p.current)),O=B&&!U.repeating&&uf(B,U);U.previousKeyMatched&&(O||k(_=>YC(_,U))!=null)?j.preventDefault():U.previousKeyMatched=!1}u&&u(j)});return m.jsx(To,{role:"menu",ref:v,className:l,onKeyDown:$,onFocus:I.onFocus,tabIndex:-1,...y,children:m.jsx(Ul.Provider,{value:M,children:m.jsx(Vi.Provider,{value:w,children:a})})})});process.env.NODE_ENV!=="production"&&(df.propTypes={autoFocus:n.bool,autoFocusItem:n.bool,children:n.node,className:n.string,disabledItemsFocusable:n.bool,disableListWrap:n.bool,onKeyDown:n.func,variant:n.oneOf(["menu","selectedMenu"])});function XC(e){return he("MuiPopover",e)}ge("MuiPopover",["root","paper"]);function pf(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function ff(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function mf(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ss(e){return typeof e=="function"?e():e}const JC=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"]},XC,t)},QC=Z(Ai,{name:"MuiPopover",slot:"Root"})({}),hf=Z(Fn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Hl=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiPopover"}),{action:s,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:u,container:h,disableAutoFocus:y=!1,elevation:p=8,marginThreshold:g=16,open:f,slots:S={},slotProps:C={},transformOrigin:E={vertical:"top",horizontal:"left"},transitionDuration:T="auto",disableScrollLock:w=!1,...x}=r,k=b.useRef(),R={...r,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:g,transformOrigin:E,transitionDuration:T},P=JC(R),N=b.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const z=ss(i),J=z&&z.nodeType===1?z:It(k.current).body,oe=J.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ce=J.getBoundingClientRect();Xr()&&ce.top===0&&ce.left===0&&ce.right===0&&ce.bottom===0&&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(`
|
|
287
|
-
`))
|
|
288
|
-
`))
|
|
267
|
+
`))}return null}),direction:n.oneOf(["down","left","right","up"]),easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function eC(e){return ge("MuiDrawer",e)}be("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Qd=(e,t)=>{const{ownerState:o}=e;return[t.root,(o.variant==="permanent"||o.variant==="persistent")&&t.docked,t.modal]},tC=e=>{const{classes:t,anchor:o,variant:r}=e,i={root:["root",`anchor${ee(o)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ee(o)}`,r!=="temporary"&&`paperAnchorDocked${ee(o)}`]};return ye(i,eC,t)},nC=Z(Es,{name:"MuiDrawer",slot:"Root",overridesResolver:Qd})(ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),oC=Z("div",{shouldForwardProp:$t,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Qd})({flex:"0 0 auto"}),rC=Z(An,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`paperAnchor${ee(o.anchor)}`],o.variant!=="temporary"&&t[`paperAnchorDocked${ee(o.anchor)}`]]}})(ve(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),ep={left:"right",right:"left",top:"down",bottom:"up"};function iC(e){return["left","right"].includes(e)}function sC({direction:e},t){return e==="rtl"&&iC(t)?ep[t]:t}const hl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiDrawer"}),i=Mn(),s=Xi(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:c,children:d,className:u,elevation:m=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:y,...g}={},onClose:p,open:C=!1,PaperProps:w={},SlideProps:E,TransitionComponent:x,transitionDuration:T=a,variant:S="temporary",slots:P={},slotProps:O={},...k}=r,R=v.useRef(!1);v.useEffect(()=>{R.current=!0},[]);const b=sC({direction:s?"rtl":"ltr"},l),N={...r,anchor:l,elevation:m,open:C,variant:S,...k},M=tC(N),z={slots:{transition:x,...P},slotProps:{paper:w,transition:E,...O,backdrop:Wa(O.backdrop||{...c,...y},{transitionDuration:T})}},[F,L]=Ne("root",{ref:o,elementType:nC,className:ae(M.root,M.modal,u),shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{...z,...k,...g},additionalProps:{open:C,onClose:p,hideBackdrop:h,slots:{backdrop:z.slots.backdrop},slotProps:{backdrop:z.slotProps.backdrop}}}),[X,J]=Ne("paper",{elementType:rC,shouldForwardComponentProp:!0,className:ae(M.paper,w.className),ownerState:N,externalForwardedProps:z,additionalProps:{elevation:S==="temporary"?m:0,square:!0}}),[W,B]=Ne("docked",{elementType:oC,ref:o,className:ae(M.root,M.docked,u),ownerState:N,externalForwardedProps:z,additionalProps:k}),[A,Q]=Ne("transition",{elementType:Zd,ownerState:N,externalForwardedProps:z,additionalProps:{in:C,direction:ep[b],timeout:T,appear:R.current}}),Y=f.jsx(X,{...J,children:d});if(S==="permanent")return f.jsx(W,{...B,children:Y});const q=f.jsx(A,{...Q,children:Y});return S==="persistent"?f.jsx(W,{...B,children:q}):f.jsx(F,{...L,children:q})});process.env.NODE_ENV!=="production"&&(hl.propTypes={anchor:n.oneOf(["bottom","left","right","top"]),BackdropProps:n.object,children:n.node,classes:n.object,className:n.string,elevation:Bo,hideBackdrop:n.bool,ModalProps:n.object,onClose:n.func,open:n.bool,PaperProps:n.object,SlideProps:n.object,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),docked:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,docked:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),variant:n.oneOf(["permanent","persistent","temporary"])});const aC=e=>{const{classes:t,disableUnderline:o,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!o&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${ee(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=ye(c,jx,t);return{...t,...d}},lC=Z(ys,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...gs(e,t),!o.disableUnderline&&t.underline]}})(ve(({theme:e})=>{const t=e.palette.mode==="light",o=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Xt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Xt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xt.disabled}, .${Xt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ot()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),cC=Z(vs,{name:"MuiFilledInput",slot:"Input",overridesResolver:bs})(ve(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ps=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:u=!1,slotProps:m,slots:h={},type:y="text",...g}=r,p={...r,disableUnderline:i,fullWidth:l,inputComponent:d,multiline:u,type:y},C=aC(r),w={root:{ownerState:p},input:{ownerState:p}},E=m??a?Rt(w,m??a):w,x=h.root??s.Root??lC,T=h.input??s.Input??cC;return f.jsx(xs,{slots:{root:x,input:T},slotProps:E,fullWidth:l,inputComponent:d,multiline:u,ref:o,type:y,...g,classes:C})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),componentsProps:n.shape({input:n.object,root:n.object}),defaultValue:n.any,disabled:n.bool,disableUnderline:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,hiddenLabel:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:Lt,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),Ps.muiName="Input";function uC(e){return ge("MuiFormControl",e)}be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const dC=e=>{const{classes:t,margin:o,fullWidth:r}=e,i={root:["root",o!=="none"&&`margin${ee(o)}`,r&&"fullWidth"]};return ye(i,uC,t)},pC=Z("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`margin${ee(o.margin)}`],o.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Wr=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:c=!1,error:d=!1,focused:u,fullWidth:m=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:p="medium",variant:C="outlined",...w}=r,E={...r,color:a,component:l,disabled:c,error:d,fullWidth:m,hiddenLabel:h,margin:y,required:g,size:p,variant:C},x=dC(E),[T,S]=v.useState(()=>{let L=!1;return i&&v.Children.forEach(i,X=>{if(!Lo(X,["Input","Select"]))return;const J=Lo(X,["Select"])?X.props.input:X;J&&Ox(J.props)&&(L=!0)}),L}),[P,O]=v.useState(()=>{let L=!1;return i&&v.Children.forEach(i,X=>{Lo(X,["Input","Select"])&&(hs(X.props,!0)||hs(X.props.inputProps,!0))&&(L=!0)}),L}),[k,R]=v.useState(!1);c&&k&&R(!1);const b=u!==void 0&&!c?u:k;let j;const N=v.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(N.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
268
|
+
`)),N.current=!0,()=>{N.current=!1}));const M=v.useCallback(()=>{O(!0)},[]),z=v.useCallback(()=>{O(!1)},[]),F=v.useMemo(()=>({adornedStart:T,setAdornedStart:S,color:a,disabled:c,error:d,filled:P,focused:b,fullWidth:m,hiddenLabel:h,size:p,onBlur:()=>{R(!1)},onFocus:()=>{R(!0)},onEmpty:z,onFilled:M,registerEffect:j,required:g,variant:C}),[T,a,c,d,P,b,m,h,j,z,M,g,p,C]);return f.jsx(ms.Provider,{value:F,children:f.jsx(pC,{as:l,ownerState:E,className:ae(x.root,s),ref:o,...w,children:i})})});process.env.NODE_ENV!=="production"&&(Wr.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,disabled:n.bool,error:n.bool,focused:n.bool,fullWidth:n.bool,hiddenLabel:n.bool,margin:n.oneOf(["dense","none","normal"]),required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOf(["filled","outlined","standard"])});function fC(e){return ge("MuiFormControlLabel",e)}const Ur=be("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mC=e=>{const{classes:t,disabled:o,labelPlacement:r,error:i,required:s}=e,a={root:["root",o&&"disabled",`labelPlacement${ee(r)}`,i&&"error",s&&"required"],label:["label",o&&"disabled"],asterisk:["asterisk",i&&"error"]};return ye(a,fC,t)},hC=Z("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Ur.label}`]:t.label},t.root,t[`labelPlacement${ee(o.labelPlacement)}`]]}})(ve(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ur.disabled}`]:{cursor:"default"},[`& .${Ur.label}`]:{[`&.${Ur.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),gC=Z("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ve(({theme:e})=>({[`&.${Ur.error}`]:{color:(e.vars||e).palette.error.main}}))),Jn=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,inputRef:u,label:m,labelPlacement:h="end",name:y,onChange:g,required:p,slots:C={},slotProps:w={},value:E,...x}=r,T=kn(),S=c??l.props.disabled??(T==null?void 0:T.disabled),P=p??l.props.required,O={disabled:S,required:P};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof l.props[F]>"u"&&typeof r[F]<"u"&&(O[F]=r[F])});const k=Kn({props:r,muiFormControl:T,states:["error"]}),R={...r,disabled:S,labelPlacement:h,required:P,error:k.error},b=mC(R),j={slots:C,slotProps:{...a,...w}},[N,M]=Ne("typography",{elementType:xt,externalForwardedProps:j,ownerState:R});let z=m;return z!=null&&z.type!==xt&&!d&&(z=f.jsx(N,{component:"span",...M,className:ae(b.label,M==null?void 0:M.className),children:z})),f.jsxs(hC,{className:ae(b.root,s),ownerState:R,ref:o,...x,children:[v.cloneElement(l,O),P?f.jsxs("div",{children:[z,f.jsxs(gC,{ownerState:R,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):z]})});process.env.NODE_ENV!=="production"&&(Jn.propTypes={checked:n.bool,classes:n.object,className:n.string,componentsProps:n.shape({typography:n.object}),control:n.element.isRequired,disabled:n.bool,disableTypography:n.bool,inputRef:Lt,label:n.node,labelPlacement:n.oneOf(["bottom","end","start","top"]),name:n.string,onChange:n.func,required:n.bool,slotProps:n.shape({typography:n.oneOfType([n.func,n.object])}),slots:n.shape({typography:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function bC(e){return ge("MuiFormGroup",e)}be("MuiFormGroup",["root","row","error"]);const yC=e=>{const{classes:t,row:o,error:r}=e;return ye({root:["root",o&&"row",r&&"error"]},bC,t)},vC=Z("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Hr=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=kn(),c=Kn({props:r,muiFormControl:l,states:["error"]}),d={...r,row:s,error:c.error},u=yC(d);return f.jsx(vC,{className:ae(u.root,i),ownerState:d,ref:o,...a})});process.env.NODE_ENV!=="production"&&(Hr.propTypes={children:n.node,classes:n.object,className:n.string,row:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function xC(e){return ge("MuiFormHelperText",e)}const tp=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var np;const CC=e=>{const{classes:t,contained:o,size:r,disabled:i,error:s,filled:a,focused:l,required:c}=e,d={root:["root",i&&"disabled",s&&"error",r&&`size${ee(r)}`,o&&"contained",l&&"focused",a&&"filled",c&&"required"]};return ye(d,xC,t)},SC=Z("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.size&&t[`size${ee(o.size)}`],o.contained&&t.contained,o.filled&&t.filled]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${tp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tp.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),gl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:c,filled:d,focused:u,margin:m,required:h,variant:y,...g}=r,p=kn(),C=Kn({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:a,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete w.ownerState;const E=CC(w);return f.jsx(SC,{as:a,className:ae(E.root,s),ref:o,...g,ownerState:w,children:i===" "?np||(np=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(gl.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,disabled:n.bool,error:n.bool,filled:n.bool,focused:n.bool,margin:n.oneOf(["dense"]),required:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["filled","outlined","standard"]),n.string])});function TC(e){return ge("MuiFormLabel",e)}const qr=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),wC=e=>{const{classes:t,color:o,focused:r,disabled:i,error:s,filled:a,required:l}=e,c={root:["root",`color${ee(o)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return ye(c,TC,t)},EC=Z("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color==="secondary"&&t.colorSecondary,o.filled&&t.filled]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{[`&.${qr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${qr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),OC=Z("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ve(({theme:e})=>({[`&.${qr.error}`]:{color:(e.vars||e).palette.error.main}}))),$s=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:c,error:d,filled:u,focused:m,required:h,...y}=r,g=kn(),p=Kn({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},w=wC(C);return f.jsxs(EC,{as:l,ownerState:C,className:ae(w.root,s),ref:o,...y,children:[i,p.required&&f.jsxs(OC,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&($s.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["error","info","primary","secondary","success","warning"]),n.string]),component:n.elementType,disabled:n.bool,error:n.bool,filled:n.bool,focused:n.bool,required:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const gt=db({createStyledComponent:Z("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>xe({props:e,name:"MuiGrid2"}),useTheme:Mn});if(process.env.NODE_ENV!=="production"&&(gt.propTypes={children:n.node,columns:n.oneOfType([n.arrayOf(n.number),n.number,n.object]),columnSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),container:n.bool,direction:n.oneOfType([n.oneOf(["column-reverse","column","row-reverse","row"]),n.arrayOf(n.oneOf(["column-reverse","column","row-reverse","row"])),n.object]),offset:n.oneOfType([n.string,n.number,n.arrayOf(n.oneOfType([n.string,n.number])),n.object]),rowSpacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),size:n.oneOfType([n.string,n.bool,n.number,n.arrayOf(n.oneOfType([n.string,n.bool,n.number])),n.object]),spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),unstable_level:n.number,wrap:n.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=gt,t=xg("Grid2",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function bl(e){return`scale(${e}, ${e**2})`}const kC={entering:{opacity:1,transform:bl(1)},entered:{opacity:1,transform:"none"}},yl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gr=v.forwardRef(function(t,o){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:m,onExited:h,onExiting:y,style:g,timeout:p="auto",TransitionComponent:C=nn,...w}=t,E=lo(),x=v.useRef(),T=Mn(),S=v.useRef(null),P=mt(S,co(s),o),O=F=>L=>{if(F){const X=S.current;L===void 0?F(X):F(X,L)}},k=O(u),R=O((F,L)=>{Ya(F);const{duration:X,delay:J,easing:W}=qn({style:g,timeout:p,easing:a},{mode:"enter"});let B;p==="auto"?(B=T.transitions.getAutoHeightDuration(F.clientHeight),x.current=B):B=X,F.style.transition=[T.transitions.create("opacity",{duration:B,delay:J}),T.transitions.create("transform",{duration:yl?B:B*.666,delay:J,easing:W})].join(","),c&&c(F,L)}),b=O(d),j=O(y),N=O(F=>{const{duration:L,delay:X,easing:J}=qn({style:g,timeout:p,easing:a},{mode:"exit"});let W;p==="auto"?(W=T.transitions.getAutoHeightDuration(F.clientHeight),x.current=W):W=L,F.style.transition=[T.transitions.create("opacity",{duration:W,delay:X}),T.transitions.create("transform",{duration:yl?W:W*.666,delay:yl?X:X||W*.333,easing:J})].join(","),F.style.opacity=0,F.style.transform=bl(.75),m&&m(F)}),M=O(h),z=F=>{p==="auto"&&E.start(x.current||0,F),r&&r(S.current,F)};return f.jsx(C,{appear:i,in:l,nodeRef:S,onEnter:R,onEntered:b,onEntering:k,onExit:N,onExited:M,onExiting:j,addEndListener:z,timeout:p==="auto"?null:p,...w,children:(F,{ownerState:L,...X})=>v.cloneElement(s,{style:{opacity:0,transform:bl(.75),visibility:F==="exited"&&!l?"hidden":void 0,...kC[F],...g,...s.props.style},ref:P,...X})})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={addEndListener:n.func,appear:n.bool,children:ao.isRequired,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])}),Gr&&(Gr.muiSupportAuto=!0);const PC=e=>{const{classes:t,disableUnderline:o}=e,i=ye({root:["root",!o&&"underline"],input:["input"]},$x,t);return{...t,...i}},$C=Z(ys,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...gs(e,t),!o.disableUnderline&&t.underline]}})(ve(({theme:e})=>{let o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(o=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xn.disabled}, .${Xn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${Xn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ot()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),RC=Z(vs,{name:"MuiInput",slot:"Input",overridesResolver:bs})({}),Rs=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:m={},type:h="text",...y}=r,g=PC(r),C={root:{ownerState:{disableUnderline:i}}},w=u??a?Rt(u??a,C):C,E=m.root??s.Root??$C,x=m.input??s.Input??RC;return f.jsx(xs,{slots:{root:E,input:x},slotProps:w,fullWidth:l,inputComponent:c,multiline:d,ref:o,type:h,...y,classes:g})});process.env.NODE_ENV!=="production"&&(Rs.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),componentsProps:n.shape({input:n.object,root:n.object}),defaultValue:n.any,disabled:n.bool,disableUnderline:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:Lt,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),Rs.muiName="Input";function jC(e){return ge("MuiInputLabel",e)}be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const IC=e=>{const{classes:t,formControl:o,size:r,shrink:i,disableAnimation:s,variant:a,required:l}=e,c={root:["root",o&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="normal"&&`size${ee(r)}`,a],asterisk:[l&&"asterisk"]},d=ye(c,jC,t);return{...t,...d}},NC=Z($s,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${qr.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(ve(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:o})=>t==="filled"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:o,size:r})=>t==="filled"&&o.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:o})=>t==="outlined"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),js=v.forwardRef(function(t,o){const r=xe({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:c,...d}=r,u=kn();let m=a;typeof m>"u"&&u&&(m=u.filled||u.focused||u.adornedStart);const h=Kn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:i,formControl:u,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=IC(y);return f.jsx(NC,{"data-shrink":m,ref:o,className:ae(g.root,c),...d,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(js.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["error","info","primary","secondary","success","warning"]),n.string]),disableAnimation:n.bool,disabled:n.bool,error:n.bool,focused:n.bool,margin:n.oneOf(["dense"]),required:n.bool,shrink:n.bool,size:n.oneOfType([n.oneOf(["normal","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOf(["filled","outlined","standard"])});const fn=v.createContext({});process.env.NODE_ENV!=="production"&&(fn.displayName="ListContext");function MC(e){return ge("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const AC=e=>{const{classes:t,disablePadding:o,dense:r,subheader:i}=e;return ye({root:["root",!o&&"padding",r&&"dense",i&&"subheader"]},MC,t)},DC=Z("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),vo=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...u}=r,m=v.useMemo(()=>({dense:l}),[l]),h={...r,component:a,dense:l,disablePadding:c},y=AC(h);return f.jsx(fn.Provider,{value:m,children:f.jsxs(DC,{as:a,className:ae(y.root,s),ref:o,ownerState:h,...u,children:[d,i]})})});process.env.NODE_ENV!=="production"&&(vo.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disablePadding:n.bool,subheader:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function _C(e){return ge("MuiListItem",e)}be("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function LC(e){return ge("MuiListItemButton",e)}const Yo=be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),BC=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.alignItems==="flex-start"&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters]},FC=e=>{const{alignItems:t,classes:o,dense:r,disabled:i,disableGutters:s,divider:a,selected:l}=e,d=ye({root:["root",r&&"dense",!s&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},LC,o);return{...o,...d}},zC=Z(Tn,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:BC})(ve(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yo.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yo.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Pn=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:s=!1,component:a="div",children:l,dense:c=!1,disableGutters:d=!1,divider:u=!1,focusVisibleClassName:m,selected:h=!1,className:y,...g}=r,p=v.useContext(fn),C=v.useMemo(()=>({dense:c||p.dense||!1,alignItems:i,disableGutters:d}),[i,p.dense,c,d]),w=v.useRef(null);Ht(()=>{s&&(w.current?w.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[s]);const E={...r,alignItems:i,dense:C.dense,disableGutters:d,divider:u,selected:h},x=FC(E),T=mt(w,o);return f.jsx(fn.Provider,{value:C,children:f.jsx(zC,{ref:T,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:ae(x.focusVisible,m),ownerState:E,className:ae(x.root,y),...g,classes:x,children:l})})});process.env.NODE_ENV!=="production"&&(Pn.propTypes={alignItems:n.oneOf(["center","flex-start"]),autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disabled:n.bool,disableGutters:n.bool,divider:n.bool,focusVisibleClassName:n.string,href:n.string,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function VC(e){return ge("MuiListItemSecondaryAction",e)}be("MuiListItemSecondaryAction",["root","disableGutters"]);const WC=e=>{const{disableGutters:t,classes:o}=e;return ye({root:["root",t&&"disableGutters"]},VC,o)},UC=Z("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),vl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...s}=r,a=v.useContext(fn),l={...r,disableGutters:a.disableGutters},c=WC(l);return f.jsx(UC,{className:ae(c.root,i),ownerState:l,ref:o,...s})});process.env.NODE_ENV!=="production"&&(vl.propTypes={children:n.node,classes:n.object,className:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])}),vl.muiName="ListItemSecondaryAction";const HC=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.alignItems==="flex-start"&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters,!o.disablePadding&&t.padding,o.hasSecondaryAction&&t.secondaryAction]},qC=e=>{const{alignItems:t,classes:o,dense:r,disableGutters:i,disablePadding:s,divider:a,hasSecondaryAction:l}=e;return ye({root:["root",r&&"dense",!i&&"gutters",!s&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},_C,o)},GC=Z("div",{name:"MuiListItem",slot:"Root",overridesResolver:HC})(ve(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Yo.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),YC=Z("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xo=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiListItem"}),{alignItems:i="center",children:s,className:a,component:l,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:m,...h}={},dense:y=!1,disableGutters:g=!1,disablePadding:p=!1,divider:C=!1,secondaryAction:w,slotProps:E={},slots:x={},...T}=r,S=v.useContext(fn),P=v.useMemo(()=>({dense:y||S.dense||!1,alignItems:i,disableGutters:g}),[i,S.dense,y,g]),O=v.useRef(null),k=v.Children.toArray(s),R=k.length&&Lo(k[k.length-1],["ListItemSecondaryAction"]),b={...r,alignItems:i,dense:P.dense,disableGutters:g,disablePadding:p,divider:C,hasSecondaryAction:R},j=qC(b),N=mt(O,o),M=x.root||c.Root||GC,z=E.root||d.root||{},F={className:ae(j.root,z.className,a),...T};let L=l||"li";return R?(L=!F.component&&!l?"div":L,u==="li"&&(L==="li"?L="div":F.component==="li"&&(F.component="div")),f.jsx(fn.Provider,{value:P,children:f.jsxs(YC,{as:u,className:ae(j.container,m),ref:N,ownerState:b,...h,children:[f.jsx(M,{...z,...!zr(M)&&{as:L,ownerState:{...b,...z.ownerState}},...F,children:k}),k.pop()]})})):f.jsx(fn.Provider,{value:P,children:f.jsxs(M,{...z,as:L,ref:N,...!zr(M)&&{ownerState:{...b,...z.ownerState}},...F,children:[k,w&&f.jsx(vl,{children:w})]})})});process.env.NODE_ENV!=="production"&&(xo.propTypes={alignItems:n.oneOf(["center","flex-start"]),children:tn(n.node,e=>{const t=v.Children.toArray(e.children);let o=-1;for(let r=t.length-1;r>=0;r-=1){const i=t[r];if(Lo(i,["ListItemSecondaryAction"])){o=r;break}}return o!==-1&&o!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:n.object,className:n.string,component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.object}),ContainerComponent:Or,ContainerProps:n.object,dense:n.bool,disableGutters:n.bool,disablePadding:n.bool,divider:n.bool,secondaryAction:n.node,slotProps:n.shape({root:n.object}),slots:n.shape({root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const op=be("MuiListItemIcon",["root","alignItemsFlexStart"]);function KC(e){return ge("MuiListItemText",e)}const Ko=be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),XC=e=>{const{classes:t,inset:o,primary:r,secondary:i,dense:s}=e;return ye({root:["root",o&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},KC,t)},JC=Z("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Ko.primary}`]:t.primary},{[`& .${Ko.secondary}`]:t.secondary},t.root,o.inset&&t.inset,o.primary&&o.secondary&&t.multiline,o.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${sd.root}:where(& .${Ko.primary})`]:{display:"block"},[`.${sd.root}:where(& .${Ko.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),$n=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:d,secondary:u,secondaryTypographyProps:m,slots:h={},slotProps:y={},...g}=r,{dense:p}=v.useContext(fn);let C=c??i,w=u;const E={...r,disableTypography:a,inset:l,primary:!!C,secondary:!!w,dense:p},x=XC(E),T={slots:h,slotProps:{primary:d,secondary:m,...y}},[S,P]=Ne("root",{className:ae(x.root,s),elementType:JC,externalForwardedProps:{...T,...g},ownerState:E,ref:o}),[O,k]=Ne("primary",{className:x.primary,elementType:xt,externalForwardedProps:T,ownerState:E}),[R,b]=Ne("secondary",{className:x.secondary,elementType:xt,externalForwardedProps:T,ownerState:E});return C!=null&&C.type!==xt&&!a&&(C=f.jsx(O,{variant:p?"body2":"body1",component:k!=null&&k.variant?void 0:"span",...k,children:C})),w!=null&&w.type!==xt&&!a&&(w=f.jsx(R,{variant:"body2",color:"textSecondary",...b,children:w})),f.jsxs(S,{...P,children:[C,w]})});process.env.NODE_ENV!=="production"&&($n.propTypes={children:n.node,classes:n.object,className:n.string,disableTypography:n.bool,inset:n.bool,primary:n.node,primaryTypographyProps:n.object,secondary:n.node,secondaryTypographyProps:n.object,slotProps:n.shape({primary:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),secondary:n.oneOfType([n.func,n.object])}),slots:n.shape({primary:n.elementType,root:n.elementType,secondary:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function xl(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function rp(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function ip(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.startsWith(t.keys.join(""))}function Yr(e,t,o,r,i,s){let a=!1,l=i(e,t,t?o:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!ip(l,s)||c)l=i(e,l,o);else return l.focus(),!0}return!1}const sp=v.forwardRef(function(t,o){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:u,variant:m="selectedMenu",...h}=t,y=v.useRef(null),g=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ht(()=>{i&&y.current.focus()},[i]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:T})=>{const S=!y.current.style.width;if(x.clientHeight<y.current.clientHeight&&S){const P=`${yu(pn(x))}px`;y.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=P,y.current.style.width=`calc(100% + ${P})`}return y.current}}),[]);const p=x=>{const T=y.current,S=x.key;if(x.ctrlKey||x.metaKey||x.altKey){u&&u(x);return}const O=qt(T).activeElement;if(S==="ArrowDown")x.preventDefault(),Yr(T,O,d,c,xl);else if(S==="ArrowUp")x.preventDefault(),Yr(T,O,d,c,rp);else if(S==="Home")x.preventDefault(),Yr(T,null,d,c,xl);else if(S==="End")x.preventDefault(),Yr(T,null,d,c,rp);else if(S.length===1){const k=g.current,R=S.toLowerCase(),b=performance.now();k.keys.length>0&&(b-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&R!==k.keys[0]&&(k.repeating=!1)),k.lastTime=b,k.keys.push(R);const j=O&&!k.repeating&&ip(O,k);k.previousKeyMatched&&(j||Yr(T,O,!1,c,xl,k))?x.preventDefault():k.previousKeyMatched=!1}u&&u(x)},C=mt(y,o);let w=-1;v.Children.forEach(a,(x,T)=>{if(!v.isValidElement(x)){w===T&&(w+=1,w>=a.length&&(w=-1));return}process.env.NODE_ENV!=="production"&&zn.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
269
|
+
`)),x.props.disabled||(m==="selectedMenu"&&x.props.selected||w===-1)&&(w=T),w===T&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const E=v.Children.map(a,(x,T)=>{if(T===w){const S={};return s&&(S.autoFocus=!0),x.props.tabIndex===void 0&&m==="selectedMenu"&&(S.tabIndex=0),v.cloneElement(x,S)}return x});return f.jsx(vo,{role:"menu",ref:C,className:l,onKeyDown:p,tabIndex:i?0:-1,...h,children:E})});process.env.NODE_ENV!=="production"&&(sp.propTypes={autoFocus:n.bool,autoFocusItem:n.bool,children:n.node,className:n.string,disabledItemsFocusable:n.bool,disableListWrap:n.bool,onKeyDown:n.func,variant:n.oneOf(["menu","selectedMenu"])});function ZC(e){return ge("MuiPopover",e)}be("MuiPopover",["root","paper"]);function ap(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function lp(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function cp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kr(e){return typeof e=="function"?e():e}const QC=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},ZC,t)},eS=Z(Es,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),up=Z(An,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Cl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:u,container:m,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:p={},slots:C={},slotProps:w={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:T="auto",TransitionProps:S={},disableScrollLock:P=!1,...O}=r,k=v.useRef(),R={...r,anchorOrigin:a,anchorReference:c,elevation:h,marginThreshold:y,transformOrigin:E,TransitionComponent:x,transitionDuration:T,TransitionProps:S},b=QC(R),j=v.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const se=Kr(s),ce=se&&se.nodeType===1?se:qt(k.current).body,D=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Ee=ce.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Ee.top===0&&Ee.left===0&&Ee.right===0&&Ee.bottom===0&&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(`
|
|
270
|
+
`))}return{top:D.top+ap(D,a.vertical),left:D.left+lp(D,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),N=v.useCallback(se=>({vertical:ap(se,E.vertical),horizontal:lp(se,E.horizontal)}),[E.horizontal,E.vertical]),M=v.useCallback(se=>{const ce={width:se.offsetWidth,height:se.offsetHeight},D=N(ce);if(c==="none")return{top:null,left:null,transformOrigin:cp(D)};const Ee=j();let de=Ee.top-D.vertical,Ce=Ee.left-D.horizontal;const We=de+ce.height,ue=Ce+ce.width,Me=pn(Kr(s)),Te=Me.innerHeight-y,_e=Me.innerWidth-y;if(y!==null&&de<y){const Be=de-y;de-=Be,D.vertical+=Be}else if(y!==null&&We>Te){const Be=We-Te;de-=Be,D.vertical+=Be}if(process.env.NODE_ENV!=="production"&&ce.height>Te&&ce.height&&Te&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-Te}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
271
|
+
`)),y!==null&&Ce<y){const Be=Ce-y;Ce-=Be,D.horizontal+=Be}else if(ue>_e){const Be=ue-_e;Ce-=Be,D.horizontal+=Be}return{top:`${Math.round(de)}px`,left:`${Math.round(Ce)}px`,transformOrigin:cp(D)}},[s,c,j,N,y]),[z,F]=v.useState(g),L=v.useCallback(()=>{const se=k.current;if(!se)return;const ce=M(se);ce.top!==null&&se.style.setProperty("top",ce.top),ce.left!==null&&(se.style.left=ce.left),se.style.transformOrigin=ce.transformOrigin,F(!0)},[M]);v.useEffect(()=>(P&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[s,P,L]);const X=()=>{L()},J=()=>{F(!1)};v.useEffect(()=>{g&&L()}),v.useImperativeHandle(i,()=>g?{updatePosition:()=>{L()}}:null,[g,L]),v.useEffect(()=>{if(!g)return;const se=$a(()=>{L()}),ce=pn(Kr(s));return ce.addEventListener("resize",se),()=>{se.clear(),ce.removeEventListener("resize",se)}},[s,g,L]);let W=T;const B={slots:{transition:x,...C},slotProps:{transition:S,paper:p,...w}},[A,Q]=Ne("transition",{elementType:Gr,externalForwardedProps:B,ownerState:R,getSlotProps:se=>({...se,onEntering:(ce,D)=>{var Ee;(Ee=se.onEntering)==null||Ee.call(se,ce,D),X()},onExited:ce=>{var D;(D=se.onExited)==null||D.call(se,ce),J()}}),additionalProps:{appear:!0,in:g}});T==="auto"&&!A.muiSupportAuto&&(W=void 0);const Y=m||(s?qt(Kr(s)).body:void 0),[q,{slots:U,slotProps:_,...G}]=Ne("root",{ref:o,elementType:eS,externalForwardedProps:{...B,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:Wa(typeof w.backdrop=="function"?w.backdrop(R):w.backdrop,{invisible:!0})},container:Y,open:g},ownerState:R,className:ae(b.root,u)}),[H,ne]=Ne("paper",{ref:k,className:b.paper,elementType:up,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:z?void 0:{opacity:0}},ownerState:R});return f.jsx(q,{...G,...!zr(q)&&{slots:U,slotProps:_,disableScrollLock:P},children:f.jsx(A,{...Q,timeout:W,children:f.jsx(H,{...ne,children:d})})})});process.env.NODE_ENV!=="production"&&(Cl.propTypes={action:Lt,anchorEl:tn(n.oneOfType([Cn,n.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Kr(e.anchorEl);if(t&&t.nodeType===1){const o=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&o.top===0&&o.left===0&&o.right===0&&o.bottom===0)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(`
|
|
289
272
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
290
|
-
`))}return null}),anchorOrigin:n.shape({horizontal:n.oneOfType([n.oneOf(["center","left","right"]),n.number]).isRequired,vertical:n.oneOfType([n.oneOf(["bottom","center","top"]),n.number]).isRequired}),anchorPosition:n.shape({left:n.number.isRequired,top:n.number.isRequired}),anchorReference:n.oneOf(["anchorEl","anchorPosition","none"]),children:n.node,classes:n.object,className:n.string,container:n.oneOfType([kn,n.func]),disableAutoFocus:n.bool,disableScrollLock:n.bool,elevation:Jo,marginThreshold:n.number,onClose:n.func,open:n.bool.isRequired,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transformOrigin:n.shape({horizontal:n.oneOfType([n.oneOf(["center","left","right"]),n.number]).isRequired,vertical:n.oneOfType([n.oneOf(["bottom","center","top"]),n.number]).isRequired}),transitionDuration:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function ZC(e){return he("MuiMenu",e)}ge("MuiMenu",["root","paper","list"]);const ew={vertical:"top",horizontal:"right"},tw={vertical:"top",horizontal:"left"},nw=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"],list:["list"]},ZC,t)},ow=Z(Hl,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),rw=Z(hf,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sw=Z(df,{name:"MuiMenu",slot:"List"})({outline:0}),gf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:a,disableAutoFocusItem:l=!1,onClose:c,open:d,PopoverClasses:u,transitionDuration:h="auto",variant:y="selectedMenu",slots:p={},slotProps:g={},...f}=r,S=ni(),C={...r,autoFocus:s,disableAutoFocusItem:l,transitionDuration:h,variant:y},E=nw(C),T=s&&d,w=T&&!l,x=b.useRef(null),k=(j,L)=>{var U,G;x.current&&(x.current.adjustStyleForScrollbar(j,{direction:S?"rtl":"ltr"}),T&&((G=(U=x.current).focusInitialTarget)==null||G.call(U)))},R=j=>{j.key==="Tab"&&(j.preventDefault(),c&&c(j,"tabKeyDown"))},P={slots:p,slotProps:g},N=wp({elementType:p.root,externalSlotProps:g.root,ownerState:C,className:[E.root,a]}),[A,I]=Ee("paper",{className:E.paper,elementType:rw,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:C}),[v,M]=Ee("list",{className:E.list,elementType:sw,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:j=>({...j,onKeyDown:L=>{var U;R(L),(U=j.onKeyDown)==null||U.call(j,L)}}),ownerState:C}),$=typeof g.transition=="function"?g.transition(C):g.transition;return m.jsx(ow,{disableAutoFocus:s,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ew:tw,slots:{root:p.root,paper:A,backdrop:p.backdrop,transition:p.transition},slotProps:{root:N,paper:I,backdrop:typeof g.backdrop=="function"?g.backdrop(C):g.backdrop,transition:{...$,onEntering:(...j)=>{var L;k(...j),(L=$==null?void 0:$.onEntering)==null||L.call($,...j)}}},open:d,ref:o,transitionDuration:h,ownerState:C,...f,classes:u,children:m.jsx(v,{actions:x,autoFocus:T,autoFocusItem:w,variant:y,...M,children:i})})});process.env.NODE_ENV!=="production"&&(gf.propTypes={anchorEl:n.oneOfType([kn,n.func]),autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,disableAutoFocusItem:n.bool,onClose:n.func,open:n.bool.isRequired,PopoverClasses:n.object,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),list:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,list:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transitionDuration:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),variant:n.oneOf(["menu","selectedMenu"])});const iw=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},aw=e=>{const{disabled:t,dense:o,divider:r,disableGutters:s,selected:i,classes:a}=e,c=be({root:["root",o&&"dense",t&&"disabled",!s&&"gutters",r&&"divider",i&&"selected"]},vv,a);return{...a,...c}},lw=Z(hn,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:iw})(xe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lr.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Lr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Lr.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Hp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Hp.inset}`]:{marginLeft:52},[`& .${nr.root}`]:{marginTop:0,marginBottom:0},[`& .${nr.inset}`]:{paddingLeft:36},[`& .${Xp.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Xp.root} svg`]:{fontSize:"1.25rem"}}}]}))),ql=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:d,role:u="menuitem",tabIndex:h,className:y,...p}=r,g=cf(),f=b.useContext(In),S=b.useMemo(()=>({dense:a||f.dense||!1,disableGutters:c}),[f.dense,a,c]),C=qC(),E=pn(),T=C.suppressInitialFocusVisible,w=C.itemsFocusableWhenDisabled,x=b.useRef(null);pt(()=>{s&&(x.current?lf(x.current,g):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const k={...r,dense:S.dense,divider:l,disableGutters:c},R=aw(r),{root:P,...N}=R,A=Qp({id:E,ref:o,disabled:r.disabled,focusableWhenDisabled:w,selected:r.selected}),I=lt(x,A.ref);let v;return h!==void 0?v=h:C.variant==="selectedMenu"?v=A.tabIndex:(!r.disabled||w)&&(v=-1),m.jsx(In.Provider,{value:S,children:m.jsx(lw,{ref:I,role:u,tabIndex:v,component:i,internalNativeButton:!1,focusableWhenDisabled:w,suppressFocusVisible:T,focusVisibleClassName:se(R.focusVisible,d),className:se(R.root,y),...p,ownerState:k,classes:N})})});process.env.NODE_ENV!=="production"&&(ql.propTypes={autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disabled:n.bool,disableGutters:n.bool,divider:n.bool,focusVisibleClassName:n.string,role:n.string,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number});const cw=e=>{const{classes:t,variant:o,disabled:r,multiple:s,open:i,error:a}=e,l={select:["select",o,r&&"disabled",s&&"multiple",a&&"error"],icon:["icon",`icon${ie(o)}`,i&&"iconOpen",r&&"disabled"]};return be(l,xv,t)},bf=Z("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${pl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),uw=Z(bf,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Et,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${pl.multiple}`]:t.multiple}]}})({}),yf=Z("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${pl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),dw=Z(yf,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ie(o.variant)}`],o.open&&t.iconOpen]}})({}),vf=b.forwardRef(function(t,o){const{className:r,disabled:s,error:i,IconComponent:a,inputRef:l,variant:c="standard",...d}=t,u={...t,disabled:s,variant:c,error:i},h=cw(u);return m.jsxs(b.Fragment,{children:[m.jsx(uw,{ownerState:u,className:se(h.select,r),disabled:s,ref:l||o,...d}),t.multiple?null:m.jsx(dw,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(vf.propTypes={children:n.node,classes:n.object,className:n.string,disabled:n.bool,error:n.bool,IconComponent:n.elementType.isRequired,inputRef:nn,multiple:n.bool,name:n.string,onChange:n.func,value:n.any,variant:n.oneOf(["standard","outlined","filled"])});var xf;const pw=Z("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Et})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),fw=Z("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Et})(xe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",...et(e,"width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,...et(e,"max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",...et(e,"max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Sf(e){const{children:t,classes:o,className:r,label:s,notched:i,...a}=e,l=s!=null&&s!=="",c={...e,notched:i,withLabel:l};return m.jsx(pw,{"aria-hidden":!0,className:r,ownerState:c,...a,children:m.jsx(fw,{ownerState:c,children:l?m.jsx("span",{children:s}):xf||(xf=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Sf.propTypes={children:n.node,classes:n.object,className:n.string,label:n.node,notched:n.bool.isRequired,style:n.object});const mw=e=>{const{classes:t}=e,r=be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Sv,t);return{...t,...r}},hw=Z(fi,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:di})(xe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${on.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${on.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${on.focused} .${on.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(kt()).map(([o])=>({props:{color:o},style:{[`&.${on.focused} .${on.notchedOutline}`]:{borderColor:(e.vars||e).palette[o].main}}})),{props:{},style:{[`&.${on.error} .${on.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${on.disabled} .${on.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:14}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:14}},{props:({ownerState:o})=>o.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:o,size:r})=>o.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),gw=Z(Sf,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(xe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),bw=Z(mi,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:pi})(xe(({theme:e})=>({padding:"16.5px 14px","&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff"},borderRadius:"inherit",...e.vars&&e.applyStyles("dark",{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"})},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Hi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiOutlinedInput"}),{fullWidth:s=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:d={},slotProps:u={},type:h="text",...y}=r,p=mw(r),[g,f]=eo({props:r,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:f,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:h},C=d.root??hw,E=d.input??bw,[T,w]=Ee("notchedOutline",{elementType:gw,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:d,slotProps:u},additionalProps:{label:a!=null&&a!==""&&g.required?m.jsxs(b.Fragment,{children:[a," ","*"]}):a}});return m.jsx(hi,{slots:{root:C,input:E},slotProps:u,renderSuffix:x=>m.jsx(T,{...w,notched:typeof c<"u"?c:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:o,type:h,...y,classes:{...p,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Hi.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),defaultValue:n.any,disabled:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:nn,label:n.node,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,notched:n.bool,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,notchedOutline:n.oneOfType([n.func,n.object]),root:n.object}),slots:n.shape({input:n.elementType,notchedOutline:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),Hi.muiName="Input";const yw=dt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),vw=dt(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),xw=Z("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Et})({position:"relative",display:"flex"}),Sw=Z(yw,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Tw=Z(vw,{name:"MuiRadioButtonIcon"})(xe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",...et(e,"transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",...et(e,"transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Gl(e){const{checked:t=!1,classes:o={},fontSize:r}=e,s={...e,checked:t};return m.jsxs(xw,{className:o.root,ownerState:s,children:[m.jsx(Sw,{fontSize:r,className:o.background,ownerState:s}),m.jsx(Tw,{fontSize:r,className:o.dot,ownerState:s})]})}process.env.NODE_ENV!=="production"&&(Gl.propTypes={checked:n.bool,classes:n.object,fontSize:n.oneOf(["small","medium"])});const Yl=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Yl.displayName="RadioGroupContext");function Cw(){return b.useContext(Yl)}const ww=e=>{const{classes:t,color:o,size:r}=e,s={root:["root",`color${ie(o)}`,r!=="medium"&&`size${ie(r)}`]};return{...t,...be(s,Tv,t)}},Ew=Z($i,{shouldForwardProp:e=>Et(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.size!=="medium"&&t[`size${ie(o.size)}`],t[`color${ie(o.color)}`]]}})(xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Id.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(kt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(kt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Id.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function Ow(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const kw=m.jsx(Gl,{checked:!0}),Rw=m.jsx(Gl,{}),qi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:i=kw,color:a="primary",icon:l=Rw,name:c,onChange:d,size:u="medium",className:h,disabled:y,disableRipple:p=!1,slots:g={},slotProps:f={},...S}=r,C=xd();let E=y;C&&typeof E>"u"&&(E=C.disabled),E??(E=!1);const T={...r,disabled:E,disableRipple:p,color:a,size:u},w=ww(T),x=Cw();let k=s;const R=fl(d,x&&x.onChange);let P=c;x&&(typeof k>"u"&&(k=Ow(x.value,r.value)),typeof P>"u"&&(P=x.name));const N=f.input,[A,I]=Ee("root",{ref:o,elementType:Ew,className:se(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...S},getSlotProps:v=>({...v,onChange:(M,...$)=>{var j;(j=v.onChange)==null||j.call(v,M,...$),R(M,...$)}}),ownerState:T,additionalProps:{type:"radio",icon:b.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:b.cloneElement(i,{fontSize:i.props.fontSize??u}),disabled:E,name:P,checked:k,slots:g,slotProps:{input:typeof N=="function"?N(T):N}}});return m.jsx(A,{...I,classes:w})});process.env.NODE_ENV!=="production"&&(qi.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,name:n.string,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function Pw(e){return he("MuiRadioGroup",e)}ge("MuiRadioGroup",["root","row","error"]);const Iw=e=>{const{classes:t,row:o,error:r}=e;return be({root:["root",o&&"row",r&&"error"]},Pw,t)},Tf=b.forwardRef(function(t,o){const{actions:r,children:s,className:i,defaultValue:a,name:l,onChange:c,value:d,...u}=t,h=b.useRef(null),y=Iw(t),[p,g]=oo({controlled:d,default:a,name:"RadioGroup"});b.useImperativeHandle(r,()=>({focus:()=>{let E=h.current.querySelector("input:not(:disabled):checked");E||(E=h.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const f=lt(o,h),S=pn(l),C=b.useMemo(()=>({name:S,onChange(E){g(E.target.value),c&&c(E,E.target.value)},value:p}),[S,c,g,p]);return m.jsx(Yl.Provider,{value:C,children:m.jsx(ts,{role:"radiogroup",ref:f,className:se(y.root,i),...u,children:s})})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={children:n.node,className:n.string,defaultValue:n.any,name:n.string,onChange:n.func,value:n.any});const $w={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Cf(e){return he("MuiSelect",e)}const is=ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","nativeInput","error"]);function jw(e){return Object.prototype.hasOwnProperty.call(e.props,"value")}function wf(e){if(typeof e=="string"||typeof e=="number")return String(e);let t="";return b.Children.forEach(e,o=>{typeof o=="string"||typeof o=="number"?t+=String(o):b.isValidElement(o)&&(t+=wf(o.props.children))}),t}function Nw(e,t,o=0){if(e.length===0)return-1;const r=(o%e.length+e.length)%e.length;for(let s=0;s<e.length;s+=1){const i=(r+s)%e.length;if(e[i].label.startsWith(t))return i}return-1}function Mw(e,t){return!e.some(o=>o.label[0]===t&&o.label[1]===t)}function Aw(e,t){const o=[];let r=-1;for(let s=0;s<e.length;s+=1){const i=e[s];if(!b.isValidElement(i)||!jw(i)||i.props.disabled)continue;const a=wf(i.props.children).trim().toLowerCase();a!==""&&(r===-1&&Ui(t,i.props.value)&&(r=o.length),o.push({child:i,label:a,value:i.props.value}))}return{options:o,selectedIndex:r}}var Ef;const Gi=2,_w=400,Of=200,Dw=750,wo=" ",Lw="ArrowUp",Bw="ArrowDown",Fw="Enter";function kf(e,t){var s;if(!t)return!1;if(e.composedPath().includes(t)||(s=e.target)!=null&&s.nodeType&&t.contains(e.target))return!0;const r=t.getBoundingClientRect();return r.width===0&&r.height===0?!1:e.clientX>=r.left-Gi&&e.clientX<=r.right+Gi&&e.clientY>=r.top-Gi&&e.clientY<=r.bottom+Gi}const zw=Z(bf,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${is.select}`]:t.select},{[`&.${is.select}`]:t[o.variant]},{[`&.${is.error}`]:t.error},{[`&.${is.multiple}`]:t.multiple}]}})({[`&.${is.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vw=Z(yf,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.open&&t.iconOpen]}})({}),Ww=Z("input",{shouldForwardProp:e=>Td(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),Uw=e=>{const{classes:t,variant:o,disabled:r,multiple:s,open:i,error:a}=e;return be({select:["select",o,r&&"disabled",s&&"multiple",a&&"error"],icon:["icon",i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Cf,t)},Rf=b.forwardRef(function(t,o){var dr,Mo,pr,fr;const{"aria-describedby":r,"aria-label":s,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:h,displayEmpty:y,error:p=!1,IconComponent:g,inputRef:f,labelId:S,MenuProps:C={},multiple:E,name:T,onBlur:w,onChange:x,onClose:k,onFocus:R,onKeyDown:P,onMouseDown:N,onOpen:A,open:I,readOnly:v,renderValue:M,required:$,SelectDisplayProps:j={},tabIndex:L,type:U,value:G,variant:ee="standard",...B}=t,[O,_]=oo({controlled:G,default:u,name:"Select"}),[V,q]=oo({controlled:I,default:d,name:"Select"}),Y=b.useRef(null),W=b.useRef(null),F=b.useRef(null),z=b.useRef(!1),J=b.useRef(!1),oe=b.useRef(null),ce=b.useRef(!1),H=b.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Se=b.useRef({buffer:"",previousSearchIndex:null,matchedIndex:null}),le=zn(),Ce=zn(),ke=zn(),[Re,Be]=b.useState(null),{current:pe}=b.useRef(I!=null),[Ne,Fe]=b.useState(),[De,tt]=b.useState(null),ae=lt(o,f),bt=b.useCallback(re=>{W.current=re,re&&Be(re)},[]),we=Re==null?void 0:Re.parentNode;b.useImperativeHandle(ae,()=>({focus:()=>{W.current.focus()},node:Y.current,value:O}),[O]);const Ie=Re!==null&&V,ze=b.useCallback(()=>{ke.clear(),Se.current.buffer="",Se.current.previousSearchIndex=null,Se.current.matchedIndex=null},[ke]);pt(()=>{z.current=Ie,Ie&&ze()},[Ie,ze]);const St=b.useCallback(()=>{le.clear(),Ce.clear()},[le,Ce]),ue=b.useCallback(()=>{St(),ce.current=!1,H.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[St]),Pe=b.useCallback(()=>{oe.current&&(oe.current(),oe.current=null)},[]);b.useEffect(()=>{Ie||(ue(),Pe())},[Ie,ue,Pe]),b.useEffect(()=>()=>{ue(),Pe(),ze()},[ue,Pe,ze]),b.useEffect(()=>{if(!Ie||!we||a||typeof ResizeObserver>"u")return;const re=new ResizeObserver(()=>{Fe(we.clientWidth)});return re.observe(we),()=>{re.disconnect()}},[Ie,we,a]),b.useEffect(()=>{d&&V&&Re&&!pe&&(Fe(a?null:we.clientWidth),W.current.focus())},[Re,a]),b.useEffect(()=>{i&&W.current.focus()},[i]),b.useEffect(()=>{if(!S)return;const re=It(W.current).getElementById(S);if(re){const ve=()=>{getSelection().isCollapsed&&W.current.focus()};return re.addEventListener("click",ve),()=>{re.removeEventListener("click",ve)}}},[S]);const Ve=ct((re,ve)=>{re||(ue(),Pe()),re?(ze(),tt(WC(ve)),A&&A(ve)):(tt(null),k&&k(ve)),pe||(z.current=re,Fe(a?null:we.clientWidth),q(re))}),ut=()=>{ue(),J.current?Ce.start(Of,()=>{H.current.allowUnselectedMouseUp=!0,le.start(Of,()=>{H.current.allowSelectedMouseUp=!0})}):le.start(_w,()=>{H.current.allowSelectedMouseUp=!0,H.current.allowUnselectedMouseUp=!0})},Me=re=>{if(N==null||N(re),re.button!==0||(re.preventDefault(),!W.current))return;W.current.focus();const ve=It(re.currentTarget);ut(),Pe();const Ae=at=>{oe.current=null,W.current&&(kf(at,W.current)||kf(at,F.current)||!z.current&&pe||Ve(!1,at))};ve.addEventListener("mouseup",Ae,{capture:!0,once:!0}),oe.current=()=>{ve.removeEventListener("mouseup",Ae,!0)},Ve(!0,re)},Lt=re=>{Ve(!1,re)},it=b.Children.toArray(l),Zt=re=>{const ve=it.find(Ae=>Ae.props.value===re.target.value);ve!==void 0&&(_(ve.props.value),x&&x(re,ve))},cn=(re,ve,Ae)=>{if(_(Ae),x){const at=re.nativeEvent||re,Rt=new at.constructor(at.type,at);Object.defineProperty(Rt,"target",{writable:!0,value:{value:Ae,name:T}}),x(Rt,ve)}},ye=re=>ve=>{ce.current=!1;let Ae;if(ve.currentTarget.hasAttribute("tabindex")){if(E){Ae=Array.isArray(O)?O.slice():[];const at=O.indexOf(re.props.value);at===-1?Ae.push(re.props.value):Ae.splice(at,1)}else Ae=re.props.value;re.props.onClick&&re.props.onClick(ve),O!==Ae&&cn(ve,re,Ae),E||Ve(!1,ve)}},Q=(re,ve)=>Ae=>{var Gn,Pt;if((Pt=(Gn=re.props).onMouseUp)==null||Pt.call(Gn,Ae),ce.current){ce.current=!1;return}const at=!H.current.allowSelectedMouseUp&&ve,Rt=!H.current.allowUnselectedMouseUp&&!ve;at||Rt||Ae.currentTarget.click()},fe=re=>{var vs;const ve=Se.current,Ae=ve.buffer!=="";if(Ie||E||h||re.defaultPrevented||(vs=re.nativeEvent)!=null&&vs.isComposing||re.key.length!==1||re.ctrlKey||re.metaKey||re.altKey||re.key===wo&&!Ae)return!1;re.key===wo&&re.preventDefault();const at=ve.buffer==="",{options:Rt,selectedIndex:Gn}=Aw(it,O);if(Rt.length===0)return re.key!==wo&&ze(),!0;at&&(ve.previousSearchIndex=Gn);const Pt=re.key.toLowerCase();ve.buffer===Pt&&Mw(Rt,Pt)&&(ve.buffer="",ve.previousSearchIndex=ve.matchedIndex),ve.buffer+=Pt,ke.start(Dw,ze);const Yn=Nw(Rt,ve.buffer,(ve.previousSearchIndex??-1)+1);if(Yn!==-1){const Kn=Rt[Yn];return ve.matchedIndex=Yn,Ui(O,Kn.value)||cn(re,Kn.child,Kn.value),!0}return re.key!==wo&&ze(),!0},me=re=>{if(!v){const ve=fe(re),Ae=re.key===wo||re.key===Lw||re.key===Bw||re.key===Fw;!ve&&Ae&&(re.preventDefault(),Ve(!0,re)),P==null||P(re)}},Bt=re=>{ze(),!Ie&&w&&(Object.defineProperty(re,"target",{writable:!0,value:{value:O,name:T}}),w(re))},ao=re=>ve=>{var Ae,at;(at=(Ae=re==null?void 0:re.props)==null?void 0:Ae.onKeyDown)==null||at.call(Ae,ve),ve.key===wo&&ve.target===ve.currentTarget&&!ve.defaultPrevented&&(ve.preventDefault(),ve.repeat||ve.currentTarget.click())};delete B["aria-invalid"];let Mt,qt;const un=[];let At=!1,Ft=!1;(li({value:O})||y)&&(M?Mt=M(O):At=!0);const $o=it.map(re=>{if(!b.isValidElement(re))return null;process.env.NODE_ENV!=="production"&&Wo.isFragment(re)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
291
|
-
`));let ve;if(E){if(!Array.isArray(O))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":_n(2));ve=O.some(Ae=>Ui(Ae,re.props.value)),ve&&At&&un.push(re.props.children)}else ve=Ui(O,re.props.value),ve&&At&&(qt=re.props.children);return ve&&(Ft=!0),b.cloneElement(re,{"aria-selected":ve?"true":"false",onMouseDown:Ae=>{var at,Rt;ce.current=!0,(Rt=(at=re.props).onMouseDown)==null||Rt.call(at,Ae)},onPointerDown:Ae=>{var at,Rt;ce.current=!0,(Rt=(at=re.props).onPointerDown)==null||Rt.call(at,Ae)},onClick:ye(re),onMouseUp:Q(re,ve),onKeyUp:Ae=>{Ae.key===wo&&Ae.preventDefault(),re.props.onKeyUp&&re.props.onKeyUp(Ae)},onKeyDown:ao(re),role:"option",selected:ve,value:void 0,"data-value":re.props.value})});pt(()=>{J.current=Ft,!Ie&&!E&&!Ft&&ze()},[Ft,E,Ie,ze]),process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(!Ft&&!E&&O!==""){const re=it.map(ve=>ve.props.value);console.warn([`MUI: You have provided an out-of-range value \`${O}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${re.filter(ve=>ve!=null).map(ve=>`\`${ve}\``).join(", ")||'""'}.`].join(`
|
|
292
|
-
`))
|
|
293
|
-
`))},[N,M,ye])}const W=pn(S),F=b.useRef(),z=ct(()=>{F.current!==void 0&&(document.body.style.WebkitUserSelect=F.current,F.current=void 0),_.clear()});b.useEffect(()=>z,[z]);const J=ye=>{Pf.clear(),Yi=!0,q(!0),w&&!Y&&w(ye)},oe=ct(ye=>{Pf.start(800+C,()=>{Yi=!1}),q(!1),T&&Y&&T(ye),ee.start(v.transitions.duration.shortest,()=>{U.current=!1})}),ce=ye=>{M!=null&&M.disabled||U.current&&ye.type!=="touchstart"||(M&&M.removeAttribute("title"),B.clear(),O.clear(),y||Yi&&p?B.start(Yi?p:y,()=>{J(ye)}):J(ye))},H=ye=>{B.clear(),O.start(C,()=>{oe(ye)})},[,Se]=b.useState(!1),le=ye=>{const Q=(ye==null?void 0:ye.target)??M;if(!Q||Q.disabled||!Si(Q)){Se(!1);const fe=ye??new Event("blur");!ye&&Q&&(Object.defineProperty(fe,"target",{value:Q}),Object.defineProperty(fe,"currentTarget",{value:Q})),H(fe)}},Ce=ye=>{if(M||$(ye.currentTarget),Si(ye.target)){const Q=fe=>{fe.target.disabled&&le(fe),fe.target.removeEventListener("blur",Q)};ye.target.addEventListener("blur",Q),Se(!0),ce(ye)}},ke=ye=>{U.current=!0;const Q=I.props;Q.onTouchStart&&Q.onTouchStart(ye)},Re=ye=>{ke(ye),O.clear(),ee.clear(),z(),F.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_.start(g,()=>{document.body.style.WebkitUserSelect=F.current,ce(ye)})},Be=ye=>{I.props.onTouchEnd&&I.props.onTouchEnd(ye),z(),O.start(E,()=>{oe(ye)})};b.useEffect(()=>{if(!Y)return;function ye(Q){Q.key==="Escape"&&oe(Q)}return document.addEventListener("keydown",ye),()=>{document.removeEventListener("keydown",ye)}},[oe,Y]);const pe=lt(bo(I),$,o);!N&&N!==0&&(Y=!1);const Ne=b.useRef(),Fe=ye=>{const Q=I.props;Q.onMouseMove&&Q.onMouseMove(ye),ls={x:ye.clientX,y:ye.clientY},Ne.current&&Ne.current.update()},De={},tt=typeof N=="string";l?(De.title=!Y&&tt&&!d?N:null,De["aria-describedby"]=Y?W:null):(De["aria-label"]=tt?N:null,De["aria-labelledby"]=Y&&!tt?W:null);const ae={...De,...A,...I.props,className:se(A.className,I.props.className),onTouchStart:ke,ref:pe,...f?{onMouseMove:Fe}:{}};process.env.NODE_ENV!=="production"&&(ae["data-mui-internal-clone-element"]=!0,b.useEffect(()=>{M&&!M.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
294
|
-
`))},[M])
|
|
295
|
-
`));const we={...r,arrow:s,disableInteractive:G,placement:k,touch:U.current},Ie=typeof R.popper=="function"?R.popper(we):R.popper,ze=b.useMemo(()=>{var Q;let ye=[{name:"arrow",enabled:!!j,options:{element:j,padding:4}}];return(Q=Ie==null?void 0:Ie.popperOptions)!=null&&Q.modifiers&&(ye=ye.concat(Ie.popperOptions.modifiers)),{...Ie==null?void 0:Ie.popperOptions,modifiers:ye}},[j,Ie==null?void 0:Ie.popperOptions]),St=Jw(we),ue={slots:P,slotProps:{arrow:R.arrow,popper:Ie,tooltip:R.tooltip,transition:R.transition}},[Pe,Ve]=Ee("popper",{elementType:Qw,externalForwardedProps:ue,ownerState:we,className:St.popper}),[ut,Me]=Ee("transition",{elementType:os,externalForwardedProps:ue,ownerState:we}),[Lt,it]=Ee("tooltip",{elementType:Zw,className:St.tooltip,externalForwardedProps:ue,ownerState:we}),[Zt,cn]=Ee("arrow",{elementType:e1,className:St.arrow,externalForwardedProps:ue,ownerState:we,ref:L});return m.jsxs(b.Fragment,{children:[b.cloneElement(I,ae),m.jsx(Pe,{as:Qr,placement:k,anchorEl:f?{getBoundingClientRect:()=>({top:ls.y,left:ls.x,right:ls.x,bottom:ls.y,width:0,height:0})}:M,popperRef:Ne,open:M?Y:!1,id:W,transition:!0,...bt,...Ve,popperOptions:ze,children:({TransitionProps:ye})=>m.jsx(ut,{timeout:v.transitions.duration.shorter,...ye,...Me,children:m.jsxs(Lt,{...it,children:[N,s?m.jsx(Zt,{...cn}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Xl.propTypes={arrow:n.bool,children:yo.isRequired,classes:n.object,className:n.string,describeChild:n.bool,disableFocusListener:n.bool,disableHoverListener:n.bool,disableInteractive:n.bool,disableTouchListener:n.bool,enterDelay:n.number,enterNextDelay:n.number,enterTouchDelay:n.number,followCursor:n.bool,id:n.string,leaveDelay:n.number,leaveTouchDelay:n.number,onClose:n.func,onOpen:n.func,open:n.bool,placement:n.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"]),slotProps:n.shape({arrow:n.oneOfType([n.func,n.object]),popper:n.oneOfType([n.func,n.object]),tooltip:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({arrow:n.elementType,popper:n.elementType,tooltip:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),title:n.node});const Eo=my({createStyledComponent:Z("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Te({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Eo.propTypes={children:n.node,component:n.elementType,direction:n.oneOfType([n.oneOf(["column-reverse","column","row-reverse","row"]),n.arrayOf(n.oneOf(["column-reverse","column","row-reverse","row"])),n.object]),divider:n.node,spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),useFlexGap:n.bool});const Xi=b.createContext({});process.env.NODE_ENV!=="production"&&(Xi.displayName="StepperContext");function Ji(){return b.useContext(Xi)}const cs=b.createContext({});process.env.NODE_ENV!=="production"&&(cs.displayName="StepContext");function t1(e){return he("MuiStep",e)}ge("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const n1=e=>{const{classes:t,orientation:o,alternativeLabel:r,completed:s}=e;return be({root:["root",o,r&&"alternativeLabel",s&&"completed"]},t1,t)},o1=Z("li",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal",alternativeLabel:!1,hasConnector:!1},style:{paddingLeft:8}},{props:{orientation:"horizontal",alternativeLabel:!1,last:!0},style:{paddingRight:8}},{props:{orientation:"horizontal",alternativeLabel:!1,hasConnector:!0},style:{flex:"1 1 auto",display:"grid",gridTemplateColumns:"1fr auto",alignItems:"center",gap:8}},{props:{orientation:"vertical",alternativeLabel:!0},style:{display:"flex",flexDirection:"column"}},{props:{orientation:"horizontal",alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),If=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiStep"}),{active:s,children:i,className:a,component:l="li",completed:c,disabled:d,expanded:u=!1,index:h,last:y,...p}=r,{activeStep:g,connector:f,alternativeLabel:S,orientation:C,nonLinear:E,isTabList:T}=Ji();let[w=!1,x=!1,k=!1]=[s,c,d];g===h?w=s!==void 0?s:!0:!E&&g>h?x=c!==void 0?c:!0:!E&&g<h&&(k=d!==void 0?d:!0);const R=b.useMemo(()=>({index:h,last:y,expanded:u,icon:h+1,active:w,completed:x,disabled:k}),[h,y,u,w,x,k]),P=!!f&&h!==0,N={...r,active:w,orientation:C,alternativeLabel:S,completed:x,disabled:k,expanded:u,component:l,hasConnector:P},A=n1(N);return m.jsx(cs.Provider,{value:R,children:m.jsxs(o1,{as:l,className:se(A.root,a),ref:o,ownerState:N,role:T?"presentation":void 0,...p,children:[P?f:null,i]})})});process.env.NODE_ENV!=="production"&&(If.propTypes={active:n.bool,children:n.node,classes:n.object,className:n.string,completed:n.bool,component:n.elementType,disabled:n.bool,expanded:n.bool,index:Jo,last:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const r1=dt(m.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),s1=dt(m.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function i1(e){return he("MuiStepIcon",e)}const Jl=ge("MuiStepIcon",["root","active","completed","error","text"]);var $f;const a1=e=>{const{classes:t,active:o,completed:r,error:s}=e;return be({root:["root",o&&"active",r&&"completed",s&&"error"],text:["text"]},i1,t)},Ql=Z(Br,{name:"MuiStepIcon",slot:"Root"})(xe(({theme:e})=>({display:"block",...et(e,"color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Jl.completed}, &.${Jl.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Jl.error}`]:{color:(e.vars||e).palette.error.main}}))),l1=Z("text",{name:"MuiStepIcon",slot:"Text"})(xe(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),jf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiStepIcon"}),{active:s=!1,className:i,completed:a=!1,error:l=!1,icon:c,...d}=r,u={...r,active:s,completed:a,error:l},h=a1(u);if(typeof c=="number"||typeof c=="string"){const y=se(i,h.root);return l?m.jsx(Ql,{as:s1,className:y,ref:o,ownerState:u,...d}):a?m.jsx(Ql,{as:r1,className:y,ref:o,ownerState:u,...d}):m.jsxs(Ql,{className:y,ref:o,ownerState:u,...d,children:[$f||($f=m.jsx("circle",{cx:"12",cy:"12",r:"12"})),m.jsx(l1,{className:h.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:c})]})}return c});process.env.NODE_ENV!=="production"&&(jf.propTypes={active:n.bool,classes:n.object,className:n.string,completed:n.bool,error:n.bool,icon:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function c1(e){return he("MuiStepLabel",e)}const Hn=ge("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),u1=e=>{const{classes:t,orientation:o,active:r,completed:s,error:i,disabled:a,alternativeLabel:l}=e;return be({root:["root",o,i&&"error",a&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",s&&"completed",i&&"error",a&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",s&&"completed",i&&"error",a&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},c1,t)},d1=Z("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})({display:"flex",alignItems:"center",[`&.${Hn.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}},{props:{alternativeLabel:!0},style:{flexDirection:"column"}},{props:{orientation:"vertical",alternativeLabel:!0},style:{flexDirection:"row-reverse"}}]}),p1=Z("span",{name:"MuiStepLabel",slot:"Label"})(xe(({theme:e})=>({...e.typography.body2,display:"block",...et(e,"color",{duration:e.transitions.duration.shortest}),[`&.${Hn.active}, &.${Hn.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Hn.alternativeLabel}`]:{marginTop:16},[`&.${Hn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{orientation:"vertical",alternativeLabel:!0},style:{[`&.${Hn.alternativeLabel}`]:{marginTop:0}}}]}))),f1=Z("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${Hn.alternativeLabel}`]:{paddingRight:0},variants:[{props:{orientation:"vertical",alternativeLabel:!0},style:{paddingRight:0,paddingLeft:8}}]}),m1=Z("span",{name:"MuiStepLabel",slot:"LabelContainer"})(xe(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Hn.alternativeLabel}`]:{textAlign:"center"},variants:[{props:{orientation:"vertical",alternativeLabel:!0},style:{[`&.${Hn.alternativeLabel}`]:{textAlign:"right"}}}]}))),Qi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiStepLabel"}),{children:s,className:i,error:a=!1,icon:l,optional:c,slots:d={},slotProps:u={},...h}=r,{alternativeLabel:y,orientation:p}=Ji(),{active:g,disabled:f,completed:S,icon:C}=b.useContext(cs),E=l||C,T={...r,active:g,alternativeLabel:y,completed:S,disabled:f,error:a,orientation:p},w=u1(T),x={slots:d,slotProps:u},[k,R]=Ee("root",{elementType:d1,externalForwardedProps:{...x,...h},ownerState:T,ref:o,className:se(w.root,i)}),[P,N]=Ee("label",{elementType:p1,externalForwardedProps:x,ownerState:T}),[A,I]=Ee("stepIcon",{elementType:E?jf:void 0,externalForwardedProps:x,ownerState:T});return m.jsxs(k,{...R,children:[E||A?m.jsx(f1,{className:w.iconContainer,ownerState:T,children:m.jsx(A,{completed:S,active:g,error:a,icon:E,...I})}):null,m.jsxs(m1,{className:w.labelContainer,ownerState:T,children:[s?m.jsx(P,{...N,className:se(w.label,N==null?void 0:N.className),children:s}):null,c]})]})});process.env.NODE_ENV!=="production"&&(Qi.propTypes={children:n.node,classes:n.object,className:n.string,error:n.bool,icon:n.node,optional:n.node,slotProps:n.shape({label:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),stepIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({label:n.elementType,root:n.elementType,stepIcon:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])}),Qi.muiName="StepLabel";function h1(e){return he("MuiStepButton",e)}const Nf=ge("MuiStepButton",["root","horizontal","vertical","touchRipple"]),g1=e=>{const{classes:t,orientation:o}=e;return be({root:["root",o],touchRipple:["touchRipple"]},h1,t)},Mf=Z(hn,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Nf.touchRipple}`]:t.touchRipple},t.root,t[o.orientation]]}})(xe(({theme:e})=>({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box",[`& .${Nf.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)",...e.applyStyles("dark",{color:"rgba(255, 255, 255, 0.3)"})},variants:[{props:{orientation:"vertical"},style:{justifyContent:"flex-start",padding:"8px",margin:"-8px"}}]}))),b1=b.forwardRef(function(t,o){const{children:r,disabled:s,index:i,...a}=t,l=Qp({id:i,ref:o,disabled:s});return m.jsx(Mf,{disabled:s,...l,...a,children:r})}),Zl=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiStepButton"}),{children:s,className:i,icon:a,optional:l,...c}=r,{disabled:d,active:u,index:h}=b.useContext(cs),{orientation:y,totalSteps:p,isTabList:g}=Ji(),f={...r,orientation:y},S=g1(f),C={icon:a,optional:l},E=Nr(s,["StepLabel"])?b.cloneElement(s,C):m.jsx(Qi,{...C,children:s}),T={internalNativeButton:!0,focusRipple:!0,disabled:d,TouchRippleProps:{className:S.touchRipple},className:se(S.root,i),ownerState:f,"aria-selected":u,"aria-posinset":h+1,"aria-setsize":p,role:"tab",...c};return g?m.jsx(b1,{...T,index:h,ref:o,children:E}):m.jsx(Mf,{ref:o,tabIndex:u?0:-1,...T,children:E})});process.env.NODE_ENV!=="production"&&(Zl.propTypes={children:n.node,classes:n.object,className:n.string,icon:n.node,optional:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function y1(e){return he("MuiStepConnector",e)}ge("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line"]);const v1=e=>{const{classes:t,orientation:o,alternativeLabel:r,active:s,completed:i,disabled:a}=e;return be({root:["root",o,r&&"alternativeLabel",s&&"active",i&&"completed",a&&"disabled"],line:["line"]},y1,t)},x1=Z("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{orientation:"vertical",alternativeLabel:!0},style:{marginLeft:"auto",marginRight:12}},{props:{orientation:"horizontal",alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),S1=Z("span",{name:"MuiStepConnector",slot:"Line"})(xe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),Af=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiStepConnector"}),{className:s,...i}=r,{alternativeLabel:a,orientation:l="horizontal"}=Ji(),{active:c,disabled:d,completed:u}=b.useContext(cs),h={...r,alternativeLabel:a,orientation:l,active:c,completed:u,disabled:d},y=v1(h);return m.jsx(x1,{className:se(y.root,s),ref:o,ownerState:h,...i,children:m.jsx(S1,{className:y.line,ownerState:h})})});process.env.NODE_ENV!=="production"&&(Af.propTypes={classes:n.object,className:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function T1(e){return he("MuiStepper",e)}ge("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const C1=e=>{const{orientation:t,nonLinear:o,alternativeLabel:r,classes:s}=e;return be({root:["root",t,o&&"nonLinear",r&&"alternativeLabel"]},T1,s)},_f=Z("ol",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})({display:"flex",listStyle:"none",margin:0,padding:0,variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"horizontal",alternativeLabel:!1},style:{gap:8}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}},{props:{orientation:"vertical",alternativeLabel:!0},style:{alignItems:"flex-end"}}]}),w1=m.jsx(Af,{});function E1(e){const{children:t,className:o,component:r,forwardedRef:s,isRtl:i,orientation:a,ownerState:l,...c}=e,d=Jp({orientation:a,isRtl:i}),u=d.getContainerProps(s);return m.jsx(Vi.Provider,{value:d,children:m.jsx(_f,{as:r,ownerState:l,className:o,role:"tablist","aria-orientation":a,...u,...c,children:t})})}const Df=b.forwardRef(function(t,o){const r=ni(),s=Te({props:t,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:a=!1,children:l,className:c,component:d="ol",connector:u=w1,nonLinear:h=!1,orientation:y="horizontal",...p}=s,g={...s,nonLinear:h,alternativeLabel:a,orientation:y,component:d},f=C1(g),S=b.Children.toArray(l).filter(Boolean),C=S.length,E=S.some(x=>{if(!b.isValidElement(x))return!1;if(x.type===Zl)return!0;const k=x.props.children;return k?b.Children.toArray(k).some(R=>b.isValidElement(R)&&R.type===Zl):!1}),T=S.map((x,k)=>b.cloneElement(x,{index:k,last:k+1===C,...x.props})),w=b.useMemo(()=>({activeStep:i,alternativeLabel:a,connector:u,nonLinear:h,orientation:y,totalSteps:C,isTabList:E}),[i,a,u,h,y,C,E]);return E?m.jsx(Xi.Provider,{value:w,children:m.jsx(E1,{forwardedRef:o,isRtl:r,className:se(f.root,c),component:d,orientation:y,ownerState:g,...p,children:T})}):m.jsx(Xi.Provider,{value:w,children:m.jsx(_f,{as:d,ownerState:g,className:se(f.root,c),ref:o,...p,children:T})})});process.env.NODE_ENV!=="production"&&(Df.propTypes={activeStep:Jo,alternativeLabel:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,connector:n.element,nonLinear:n.bool,orientation:n.oneOf(["horizontal","vertical"]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function O1(e){return he("MuiSwitch",e)}const Vt=ge("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),k1=e=>{const{classes:t,edge:o,size:r,color:s,checked:i,disabled:a}=e,l={root:["root",o&&`edge${ie(o)}`,`size${ie(r)}`],switchBase:["switchBase",`color${ie(s)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=be(l,O1,t);return{...t,...c}},R1=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${ie(o.edge)}`],t[`size${ie(o.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Vt.thumb}`]:{width:16,height:16},[`& .${Vt.switchBase}`]:{padding:4,[`&.${Vt.checked}`]:{transform:"translateX(16px)"}}}}]}),P1=Z($i,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${Vt.input}`]:t.input},o.color!=="default"&&t[`color${ie(o.color)}`]]}})(xe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,...et(e,["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Vt.checked}`]:{transform:"translateX(20px)"},[`&.${Vt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Vt.checked} + .${Vt.track}`]:{opacity:.5},[`&.${Vt.disabled} + .${Vt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Vt.input}`]:{left:"-100%",width:"300%"}})),xe(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(kt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Vt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Vt.checked} + .${Vt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),I1=Z("span",{name:"MuiSwitch",slot:"Track"})(xe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,...et(e,["opacity","background-color"],{duration:e.transitions.duration.shortest}),"@media (forced-colors: active)":{boxSizing:"border-box",border:"1px solid ButtonBorder"},backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),$1=Z("span",{name:"MuiSwitch",slot:"Thumb"})(xe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),Zi=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiSwitch"}),{className:s,color:i="primary",edge:a=!1,size:l="medium",sx:c,slots:d={},slotProps:u={},...h}=r,y={...r,color:i,edge:a,size:l},p=k1(y),g=u.input,f={slots:d,slotProps:u},[S,C]=Ee("root",{className:se(p.root,s),elementType:R1,externalForwardedProps:f,ownerState:y,additionalProps:{sx:c}}),[E,T]=Ee("thumb",{className:p.thumb,elementType:$1,externalForwardedProps:f,ownerState:y}),w=m.jsx(E,{...T}),[x,k]=Ee("track",{className:p.track,elementType:I1,externalForwardedProps:f,ownerState:y});return m.jsxs(S,{...C,children:[m.jsx(P1,{type:"checkbox",icon:w,checkedIcon:w,ref:o,ownerState:y,...h,classes:{...p,root:p.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(y):u.switchBase},input:vi(typeof g=="function"?g(y):g,{role:"switch"})}}),m.jsx(x,{...k})]})});process.env.NODE_ENV!=="production"&&(Zi.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),defaultChecked:n.bool,disabled:n.bool,disableRipple:n.bool,edge:n.oneOf(["end","start",!1]),icon:n.node,id:n.string,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),switchBase:n.oneOfType([n.func,n.object]),thumb:n.oneOfType([n.func,n.object]),track:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType,switchBase:n.elementType,thumb:n.elementType,track:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});const ec=b.createContext();process.env.NODE_ENV!=="production"&&(ec.displayName="TableContext");function j1(e){return he("MuiTable",e)}ge("MuiTable",["root","stickyHeader"]);const N1=e=>{const{classes:t,stickyHeader:o}=e;return be({root:["root",o&&"stickyHeader"]},j1,t)},M1=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})(xe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Lf="table",Bf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTable"}),{className:s,component:i=Lf,padding:a="normal",size:l="medium",stickyHeader:c=!1,...d}=r,u={...r,component:i,padding:a,size:l,stickyHeader:c},h=N1(u),y=b.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return m.jsx(ec.Provider,{value:y,children:m.jsx(M1,{as:i,role:i===Lf?null:"table",ref:o,className:se(h.root,s),ownerState:u,...d})})});process.env.NODE_ENV!=="production"&&(Bf.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,padding:n.oneOf(["checkbox","none","normal"]),size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),stickyHeader:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const us=b.createContext();process.env.NODE_ENV!=="production"&&(us.displayName="Tablelvl2Context");function A1(e){return he("MuiTableBody",e)}ge("MuiTableBody",["root"]);const _1=e=>{const{classes:t}=e;return be({root:["root"]},A1,t)},D1=Z("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),L1={variant:"body"},Ff="tbody",zf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableBody"}),{className:s,component:i=Ff,...a}=r,l={...r,component:i},c=_1(l);return m.jsx(us.Provider,{value:L1,children:m.jsx(D1,{className:se(c.root,s),as:i,ref:o,role:i===Ff?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(zf.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function B1(e){return he("MuiTableCell",e)}const F1=ge("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),z1=e=>{const{classes:t,variant:o,align:r,padding:s,size:i,stickyHeader:a}=e,l={root:["root",o,a&&"stickyHeader",r!=="inherit"&&`align${ie(r)}`,s!=="normal"&&`padding${ie(s)}`,`size${ie(i)}`]};return be(l,B1,t)},V1=Z("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${ie(o.size)}`],o.padding!=="normal"&&t[`padding${ie(o.padding)}`],o.align!=="inherit"&&t[`align${ie(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(xe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
296
|
-
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${F1.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),or=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableCell"}),{align:s="inherit",className:i,component:a,padding:l,scope:c,size:d,sortDirection:u,variant:h,...y}=r,p=b.useContext(ec),g=b.useContext(us),f=g&&g.variant==="head";let S;a?S=a:S=f?"th":"td";let C=c;S==="td"?C=void 0:!C&&f&&(C="col");const E=h||g&&g.variant,T={...r,align:s,component:S,padding:l||(p&&p.padding?p.padding:"normal"),size:d||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:E==="head"&&p&&p.stickyHeader,variant:E},w=z1(T);let x=null;return u&&(x=u==="asc"?"ascending":"descending"),m.jsx(V1,{as:S,ref:o,className:se(w.root,i),"aria-sort":x,scope:C,ownerState:T,...y})});process.env.NODE_ENV!=="production"&&(or.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,component:n.elementType,padding:n.oneOf(["checkbox","none","normal"]),scope:n.string,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sortDirection:n.oneOf(["asc","desc",!1]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body","footer","head"]),n.string])});function W1(e){return he("MuiTableContainer",e)}ge("MuiTableContainer",["root"]);const U1=e=>{const{classes:t}=e;return be({root:["root"]},W1,t)},H1=Z("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Vf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableContainer"}),{className:s,component:i="div",...a}=r,l={...r,component:i},c=U1(l);return m.jsx(H1,{ref:o,as:i,className:se(c.root,s),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function q1(e){return he("MuiTableHead",e)}ge("MuiTableHead",["root"]);const G1=e=>{const{classes:t}=e;return be({root:["root"]},q1,t)},Y1=Z("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),K1={variant:"head"},Wf="thead",Uf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableHead"}),{className:s,component:i=Wf,...a}=r,l={...r,component:i},c=G1(l);return m.jsx(us.Provider,{value:K1,children:m.jsx(Y1,{as:i,className:se(c.root,s),ref:o,role:i===Wf?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Uf.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function X1(e){return he("MuiToolbar",e)}ge("MuiToolbar",["root","gutters","regular","dense"]);const J1=e=>{const{classes:t,disableGutters:o,variant:r}=e;return be({root:["root",!o&&"gutters",r]},X1,t)},Q1=Z("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})(xe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),ds=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiToolbar"}),{className:s,component:i="div",disableGutters:a=!1,variant:l="regular",...c}=r,d={...r,component:i,disableGutters:a,variant:l},u=J1(d);return m.jsx(Q1,{as:i,className:se(u.root,s),ref:o,ownerState:d,...c})});process.env.NODE_ENV!=="production"&&(ds.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,disableGutters:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["dense","regular"]),n.string])});function Z1(e){return he("MuiTableRow",e)}const Hf=ge("MuiTableRow",["root","selected","hover","head","footer"]),eE=e=>{const{classes:t,selected:o,hover:r,head:s,footer:i}=e;return be({root:["root",o&&"selected",r&&"hover",s&&"head",i&&"footer"]},Z1,t)},tE=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})(xe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Hf.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Hf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),qf="tr",ea=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableRow"}),{className:s,component:i=qf,hover:a=!1,selected:l=!1,...c}=r,d=b.useContext(us),u={...r,component:i,hover:a,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},h=eE(u);return m.jsx(tE,{as:i,ref:o,className:se(h.root,s),role:i===qf?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(ea.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,hover:n.bool,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const nE=dt(m.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function oE(e){return he("MuiTableSortLabel",e)}const tc=ge("MuiTableSortLabel",["root","active","icon","directionDesc","directionAsc"]),rE=e=>{const{classes:t,direction:o,active:r}=e,s={root:["root",r&&"active",`direction${ie(o)}`],icon:["icon"]};return be(s,oE,t)},sE=Z(hn,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})(xe(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${tc.icon}`]:{opacity:.5}},[`&.${tc.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${tc.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),iE=Z("span",{name:"MuiTableSortLabel",slot:"Icon"})(xe(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,...et(e,["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Gf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableSortLabel"}),{active:s=!1,children:i,className:a,direction:l="asc",hideSortIcon:c=!1,IconComponent:d=nE,slots:u={},slotProps:h={},...y}=r,p={...r,active:s,direction:l,hideSortIcon:c,IconComponent:d},g=rE(p),f={slots:u,slotProps:h},[S,C]=Ee("root",{elementType:sE,externalForwardedProps:f,ownerState:p,className:se(g.root,a),ref:o,additionalProps:{internalNativeButton:!1}}),[E,T]=Ee("icon",{elementType:iE,externalForwardedProps:f,ownerState:p,className:g.icon});return m.jsxs(S,{disableRipple:!0,component:"span",...C,...y,children:[i,c&&!s?null:m.jsx(E,{as:d,...T})]})});process.env.NODE_ENV!=="production"&&(Gf.propTypes={active:n.bool,children:n.node,classes:n.object,className:n.string,direction:n.oneOf(["asc","desc"]),hideSortIcon:n.bool,IconComponent:n.elementType,slotProps:n.shape({icon:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({icon:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function aE(e){return he("MuiTextField",e)}ge("MuiTextField",["root"]);const lE={standard:Fi,filled:Li,outlined:Hi},cE=e=>{const{classes:t}=e;return be({root:["root"]},aE,t)},uE=Z(es,{name:"MuiTextField",slot:"Root"})({}),Nn=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:d,disabled:u=!1,error:h=!1,fullWidth:y=!1,helperText:p,id:g,inputRef:f,label:S,maxRows:C,minRows:E,multiline:T=!1,name:w,onBlur:x,onChange:k,onFocus:R,placeholder:P,required:N=!1,rows:A,select:I=!1,slots:v={},slotProps:M={},type:$,value:j,variant:L="outlined",...U}=r,G={...r,autoFocus:i,color:c,disabled:u,error:h,fullWidth:y,multiline:T,required:N,select:I,variant:L},ee=cE(G);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const B=pn(g),O=p&&B?`${B}-helper-text`:void 0,_=S&&B?`${B}-label`:void 0,V=lE[L],q={slots:v,slotProps:M},[Y,W]=Ee("select",{elementType:as,externalForwardedProps:q,ownerState:G}),F=I&&W.native,z={},J=q.slotProps.inputLabel;L==="outlined"&&(J&&typeof J.shrink<"u"&&(z.notched=J.shrink),z.label=S),I&&(F||(z.id=void 0),z["aria-describedby"]=void 0);const[oe,ce]=Ee("root",{elementType:uE,shouldForwardComponentProp:!0,externalForwardedProps:{...q,...U},ownerState:G,className:se(ee.root,l),ref:o,additionalProps:{disabled:u,error:h,fullWidth:y,required:N,color:c,variant:L}}),[H,Se]=Ee("input",{elementType:V,externalForwardedProps:q,additionalProps:z,ownerState:G}),[le,Ce]=Ee("inputLabel",{elementType:zi,externalForwardedProps:q,ownerState:G}),[ke,Re]=Ee("htmlInput",{elementType:"input",externalForwardedProps:q,ownerState:G}),[Be,pe]=Ee("formHelperText",{elementType:Bl,externalForwardedProps:q,ownerState:G}),Ne=m.jsx(H,{"aria-describedby":O,autoComplete:s,autoFocus:i,defaultValue:d,fullWidth:y,multiline:T,name:w,rows:A,maxRows:C,minRows:E,type:$,value:j,id:B,inputRef:f,onBlur:x,onChange:k,onFocus:R,placeholder:P,inputProps:Re,slots:{input:v.htmlInput?ke:void 0},...Se});return m.jsxs(oe,{...ce,children:[S!=null&&S!==""&&m.jsx(le,{htmlFor:I&&!F?void 0:B,id:_,...I&&!F&&{component:"div"},...Ce,children:S}),I?m.jsx(Y,{"aria-describedby":O,id:B,labelId:_,value:j,input:Ne,...W,children:a}):Ne,p&&m.jsx(Be,{id:O,...pe,children:p})]})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={autoComplete:n.string,autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),defaultValue:n.any,disabled:n.bool,error:n.bool,fullWidth:n.bool,helperText:n.node,id:n.string,inputRef:nn,label:n.node,margin:n.oneOf(["dense","none","normal"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,placeholder:n.string,required:n.bool,rows:n.oneOfType([n.number,n.string]),select:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({formHelperText:n.oneOfType([n.func,n.object]),htmlInput:n.oneOfType([n.func,n.object]),input:n.oneOfType([n.func,n.object]),inputLabel:n.oneOfType([n.func,n.object]),select:n.oneOfType([n.func,n.object])}),slots:n.shape({formHelperText:n.elementType,htmlInput:n.elementType,input:n.elementType,inputLabel:n.elementType,root:n.elementType,select:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any,variant:n.oneOf(["filled","outlined","standard"])});const nc=b.createContext({});process.env.NODE_ENV!=="production"&&(nc.displayName="ToggleButtonGroupContext");const oc=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(oc.displayName="ToggleButtonGroupButtonContext");function dE(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const pE=e=>{const{classes:t,fullWidth:o,selected:r,disabled:s,size:i,color:a}=e,l={root:["root",r&&"selected",s&&"disabled",o&&"fullWidth",`size${ie(i)}`,a]};return be(l,Cv,t)},fE=Z(hn,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${ie(o.size)}`]]}})(xe(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${mo.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${mo.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(kt()).map(([t])=>({props:{color:t},style:{[`&.${mo.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),rc=b.forwardRef(function(t,o){const{value:r,...s}=b.useContext(nc),i=b.useContext(oc),a=Go({...s,selected:dE(t.value,r)},t),l=Te({props:a,name:"MuiToggleButton"}),{children:c,className:d,color:u="standard",disabled:h=!1,disableFocusRipple:y=!1,fullWidth:p=!1,onChange:g,onClick:f,selected:S,size:C="medium",value:E,...T}=l,w={...l,color:u,disabled:h,disableFocusRipple:y,fullWidth:p,size:C},x=pE(w),k=P=>{f&&(f(P,E),P.defaultPrevented)||g&&g(P,E)},R=i||"";return m.jsx(fE,{className:se(s.className,x.root,d,R),internalNativeButton:!0,disabled:h,focusRipple:!y,ref:o,onClick:k,onChange:g,value:E,ownerState:w,"aria-pressed":S,...T,children:c})});process.env.NODE_ENV!=="production"&&(rc.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["standard","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,fullWidth:n.bool,onChange:n.func,onClick:n.func,selected:n.bool,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any.isRequired});function mE(e){return he("MuiToggleButtonGroup",e)}const gt=ge("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","fullWidth","firstButton","lastButton","middleButton"]),hE=e=>{const{classes:t,orientation:o,fullWidth:r,disabled:s}=e;return be({root:["root",o,r&&"fullWidth"],grouped:["grouped",s&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},mE,t)},gE=Z("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${gt.grouped}`]:t.grouped},{[`& .${gt.firstButton}`]:t.firstButton},{[`& .${gt.lastButton}`]:t.lastButton},{[`& .${gt.middleButton}`]:t.middleButton},t.root,o.orientation==="vertical"&&t.vertical,o.fullWidth&&t.fullWidth]}})(xe(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${gt.grouped}`]:{[`&.${gt.selected} + .${gt.grouped}.${gt.selected}`]:{borderTop:0,marginTop:0}},[`& .${gt.firstButton},& .${gt.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${gt.lastButton},& .${gt.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${gt.lastButton}.${mo.disabled},& .${gt.middleButton}.${mo.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${gt.grouped}`]:{[`&.${gt.selected} + .${gt.grouped}.${gt.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${gt.firstButton},& .${gt.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${gt.lastButton},& .${gt.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${gt.lastButton}.${mo.disabled},& .${gt.middleButton}.${mo.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Yf=b.forwardRef(function(t,o){const r=Te({props:t,name:"MuiToggleButtonGroup"}),{children:s,className:i,color:a="standard",disabled:l=!1,exclusive:c=!1,fullWidth:d=!1,onChange:u,orientation:h="horizontal",size:y="medium",value:p,...g}=r,f={...r,disabled:l,fullWidth:d,orientation:h,size:y},S=hE(f),C=b.useCallback((R,P)=>{if(!u)return;const N=p&&p.indexOf(P);let A;p&&N>=0?(A=p.slice(),A.splice(N,1)):A=p?p.concat(P):[P],u(R,A)},[u,p]),E=b.useCallback((R,P)=>{u&&u(R,p===P?null:P)},[u,p]),T=b.useMemo(()=>({className:S.grouped,onChange:c?E:C,value:p,size:y,fullWidth:d,color:a,disabled:l}),[S.grouped,c,E,C,p,y,d,a,l]),w=FS(s),x=w.length,k=R=>{const P=R===0,N=R===x-1;return P&&N?"":P?S.firstButton:N?S.lastButton:S.middleButton};return m.jsx(gE,{role:"group",className:se(S.root,i),ref:o,ownerState:f,...g,children:m.jsx(nc.Provider,{value:T,children:w.map((R,P)=>(process.env.NODE_ENV!=="production"&&Wo.isFragment(R)&&console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
297
|
-
`)),m.jsx(oc.Provider,{value:k(P),children:R},P)))})})});process.env.NODE_ENV!=="production"&&(Yf.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["standard","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,exclusive:n.bool,fullWidth:n.bool,onChange:n.func,orientation:n.oneOf(["horizontal","vertical"]),size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});async function Ot(e,t=!1){try{const o=await fetch(e);if(!o.ok){const s={url:e,ok:!1,status:o.status,error:await o.text()};return t&&console.log("getJson",s),s}const r={url:e,ok:!0,status:o.status,json:await o.json()};return t&&console.log("getJson",r),r}catch(o){const r={url:e,ok:!1,status:0,error:o.message};return t&&console.log("getJson",r),r}}const ta=async({url:e,setter:t,debug:o=!1})=>{const r=await Ot(e,o);if(r.ok)t(r.json);else return r};async function Kf(e,t=!1){try{const o=await fetch(e,{method:"POST"});if(!o.ok){const s={url:e,ok:!1,status:o.status,error:await o.text()};return t&&console.log("postEmptyJson",s),s}const r={url:e,ok:!0,status:o.status,json:await o.json()};return t&&console.log("postEmptyJson",r),r}catch(o){const r={url:e,ok:!1,status:0,error:o.message};return t&&console.log("postEmptyJson",r),r}}const de=(e,t)=>t[e]||e,rr=D.createContext({debug:!1,setDebug:()=>{}}),Qt=D.createContext({i18n:{},setI18n:()=>{}}),Oo=D.createContext({enableNet:!1,setEnableNet:()=>{}});function Xf({callBack:e=()=>{},internetDialogOpen:t,setInternetDialogOpen:o}){const{i18nRef:r}=D.useContext(Qt),{debugRef:s}=D.useContext(rr),{enabledRef:i}=D.useContext(Oo);D.useEffect(()=>{t&&i.current&&a()},[t]);const a=()=>{o(!1),e()},l=()=>{Kf("/api/net/enable",s.current)};return m.jsxs(Al,{open:t,onClose:a,slotProps:{paper:{component:"form"}},children:[m.jsx(Up,{children:m.jsx("b",{children:de("components:header:internet_question_label",r.current)})}),m.jsx(Wp,{children:m.jsx(_l,{children:m.jsx(yt,{children:de("components:header:internet_question",r.current)})})}),m.jsxs(_i,{children:[m.jsx(xo,{onClick:a,children:de("components:header:cancel",r.current)}),m.jsx(xo,{onClick:()=>{l(),o(!1)},children:de("components:header:accept",r.current)})]})]})}const Jf=dt(m.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"DoneOutlined"),bE=dt(m.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined");function yE({tooltipLabel:e}){return m.jsx(Xl,{title:e,children:m.jsx(On,{disableRipple:!0,sx:{color:"white"},children:m.jsx(bE,{})})})}function Qf({title:e}){return m.jsx(yE,{tooltipLabel:e})}function sc({netEnabled:e,debug:t=!1}){const{i18nRef:o}=D.useContext(Qt),[r,s]=D.useState(!1),[i,a]=D.useState(""),l=e?"online":"offline",c=()=>{Kf("/api/net/disable",t)},d=(u,h)=>{e?c():s(!0)};return D.useEffect(()=>{Ot("/api/version").then(u=>u.json).then(u=>a(u.product_name)).catch(u=>console.error("Error :",u))},[]),m.jsxs(Xe,{children:[m.jsxs(ht,{container:!0,alignItems:"center",spacing:1,children:[m.jsx(ht,{children:m.jsxs(Yf,{onChange:(u,h)=>{h!==null&&d()},exclusive:!0,color:"secondary",size:"small",value:l,sx:{background:u=>dn(u.palette.common.white,.3),height:"34px"},children:[m.jsxs(rc,{disableFocusRipple:!0,value:"offline",sx:{color:"white","&.Mui-selected":{color:"white",backgroundColor:u=>dn(u.palette.secondary.main,1)},"&.Mui-selected:hover":{backgroundColor:u=>dn(u.palette.secondary.main,1),color:"white"}},children:[l==="offline"&&m.jsx(Jf,{fontSize:"small",sx:{paddingRight:1}}),de("components:header:offline_mode",o.current)]}),m.jsxs(rc,{disableFocusRipple:!0,value:"online",sx:{color:"white","&.Mui-selected":{color:"white",backgroundColor:u=>dn(u.palette.secondary.main,1)},"&.Mui-selected:hover":{backgroundColor:u=>dn(u.palette.secondary.main,1),color:"white"}},children:[l==="online"&&m.jsx(Jf,{fontSize:"small",sx:{paddingRight:1}}),de("components:header:online_mode",o.current)]})]})}),m.jsx(ht,{children:m.jsx(Qf,{title:de("components:header:tooltip_offline_mode",o.current).replace("{1}",i)})})]}),m.jsx(Xf,{internetDialogOpen:r,setInternetDialogOpen:s})]})}const Zf=dt(m.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),vE=dt(m.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),xE=dt(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function SE({i18n:e,netEnabled:t,debug:o}){const[r,s]=D.useState(!1),[i,a]=D.useState(!1),[l,c]=D.useState([]);D.useEffect(()=>{(async()=>{const h=await Ot("/api/list-clients",o);h.ok&&c(h.json.filter(y=>!y.exclude_from_menu&&(o||!y.requires.debug)))})().then()},[o]);const d=u=>{Ot(`/api/debug/${o} ? "disable" : "enable"}`).then(()=>{u.stopPropagation(),u.preventDefault()})};return m.jsxs(Xe,{sx:{m:0,mr:2},children:[m.jsx(On,{onClick:u=>s(!0),children:m.jsx(Zf,{})}),m.jsx(Ll,{open:r,onClose:()=>s(!1),slotProps:{paper:{sx:{width:"auto",overflow:"hidden"}}},children:m.jsx(Xe,{sx:{width:"100%",minHeight:"98vh",minWidth:"20vw",m:0,p:0},role:"presentation",children:m.jsx(To,{sx:{height:"100%",width:"100%"},children:m.jsxs(Eo,{direction:"column",spacing:0,sx:{height:"100%",width:"100%",justifyContent:"space-between",alignItems:"flex-start"},children:[m.jsx(Xe,{sx:{width:"100%"},children:l.map((u,h)=>m.jsx(Co,{disablePadding:!0,children:m.jsx($n,{disabled:u.requires.net&&!t.current,onClick:()=>{window.location.href=u.url},children:m.jsx(jn,{primary:de(`pages:${u.id}:title`,e)})})},h))}),m.jsxs(Xe,{children:[m.jsx(Co,{disablePadding:!0,children:m.jsx($n,{onClick:()=>{window.location.href="/clients/settings"},children:m.jsx(jn,{primary:de("pages:core-settings:title",e)})})}),m.jsx(Co,{sx:{width:"auto"},disablePadding:!0,children:m.jsxs($n,{onClick:()=>a(u=>!u),children:[m.jsx(jn,{primary:de("components:header:advanced",e)}),i?m.jsx(vE,{}):m.jsx(xE,{})]})}),m.jsx(xi,{in:i,timeout:"auto",unmountOnExit:!0,children:m.jsx(To,{component:"div",disablePadding:!0,children:m.jsxs($n,{onClick:d,sx:{pl:4},children:[m.jsx(jn,{primary:de("components:header:experimental_mode",e)}),m.jsx(Zi,{edge:"end",onChange:d,checked:o})]})})}),m.jsx(Xe,{sx:{visibility:"hidden",position:"absolute",whiteSpace:"nowrap",top:0,left:0},children:m.jsx(To,{component:"div",disablePadding:!0,children:m.jsxs($n,{onClick:d,sx:{pl:4},children:[m.jsx(jn,{primary:de("components:header:experimental_mode",e)}),m.jsx(Zi,{edge:"end",onChange:d,checked:o})]})})})]})]})})})})]})}const na=D.createContext({clientConfig:{},setClientConfig:()=>{}});function TE({titleLabel:e,isOpen:t,closeFn:o,children:r,theme:s,size:i="md",fullWidth:a=!0,showInternetSwitch:l=!1}){var f,S,C,E,T;const c=s?bi:D.Fragment,d=s?{theme:s}:{},{enabledRef:u}=D.useContext(Oo),{i18nRef:h}=D.useContext(Qt),{debugRef:y}=D.useContext(rr),{clientConfigRef:p}=D.useContext(na),g=((C=(S=(f=p.current._global)==null?void 0:f.find(w=>w.id==="internetConfig"))==null?void 0:S.fields.find(w=>w.id==="internetConnectionAccess"))==null?void 0:C.value)??!0;return m.jsx(c,{...d,children:m.jsxs(Al,{open:t,onClose:o,sx:{overflow:"hidden"},slotProps:{sx:{overflow:"hidden !important",display:"flex",flexDirection:"column"},paper:{component:"form"}},fullWidth:a,maxWidth:i,children:[m.jsx(xl,{position:"sticky",sx:{position:"relative",borderTopLeftRadius:4,borderTopRightRadius:4,backgroundColor:(T=(E=s==null?void 0:s.palette)==null?void 0:E.secondary)==null?void 0:T.main},children:m.jsxs(ds,{sx:{justifyContent:"space-between"},children:[m.jsx(yt,{variant:"h6",component:"div",children:e}),g&&l&&m.jsx(sc,{i18n:h.current,netEnabled:u.current,debug:y.current})]})}),r]})})}function em({label:e,actionFn:t,isDisabled:o,variant:r}){return m.jsx(xo,{onClick:t,disabled:o,color:"primary",variant:r,children:e})}function CE({actionFn:e,actionLabel:t,closeFn:o,closeLabel:r,isDisabled:s,closeOnAction:i=!0,onlyCloseButton:a=!1,actionVariant:l,closeVariant:c}){return m.jsxs(_i,{children:[m.jsx(em,{actionFn:o,isDisabled:!1,label:r,variant:c}),a?null:m.jsx(em,{actionFn:()=>{e(),i&&o()},isDisabled:s,label:t,variant:l})]})}const wE=dt(m.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff"),EE=dt(m.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),OE=dt(m.jsx("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");function tm(e){const{onSelectAllClick:t,numSelected:o,order:r,orderBy:s,rowCount:i,onRequestSort:a,columns:l,columnFilters:c,setColumnFilter:d,showColumnFilters:u,groupOperations:h,checkboxSelection:y}=e,p=R=>P=>{a(P,R)},[g,f]=D.useState(null),[S,C]=D.useState(null),E=(R,P)=>{R.stopPropagation(),f(R.currentTarget),C(P)},T=()=>{f(null),C(null)},w=R=>{const P=R.target.value;d(S,P)},x=!!g,k=x?"filter-popover":void 0;return m.jsxs(Uf,{children:[m.jsxs(ea,{children:[(y||h)&&m.jsx(or,{padding:"checkbox",children:m.jsx(So,{color:"primary",indeterminate:o>0&&o<i,checked:i>0&&o===i,onChange:t,slotProps:{"aria-label":"select all rows"}})}),l.map(R=>m.jsx(or,{align:R.alignRight?"right":"left",padding:R.disablePadding?"none":"normal",sortDirection:s===R.field?r:!1,sx:{width:R.width||"auto",minWidth:R.minWidth||"none",flex:R.flex||"none"},children:m.jsxs(Xe,{sx:{display:"flex",alignItems:"center",justifyContent:R.alignRight?"flex-end":"flex-start"},children:[m.jsxs(Gf,{active:s===R.field,direction:s===R.field?r:"asc",onClick:p(R.field),children:[R.headerName,s===R.field?m.jsx(Xe,{component:"span",sx:$w,children:r==="desc"?"sorted descending":"sorted ascending"}):null]}),u&&!R.numeric&&m.jsx(On,{size:"small",onClick:P=>E(P,R.field),sx:{ml:.5,p:.5},color:c[R.field]?"primary":"default",children:m.jsx(EE,{fontSize:"small"})})]})},R.field))]}),m.jsx(Hl,{id:k,open:x,anchorEl:g,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:m.jsx(Xe,{sx:{p:2},children:m.jsx(Nn,{label:`Filter ${S}`,variant:"outlined",value:S?c[S]:"",onChange:w,size:"small",autoFocus:!0,slotProps:{input:{endAdornment:S&&c[S]&&m.jsx(On,{size:"small",onClick:R=>{R.stopPropagation(),d(S,""),T()},edge:"end",sx:{color:"primary.main","&:hover":{backgroundColor:"action.hover"}},children:m.jsx(OE,{fontSize:"small"})})}}})})})]})}tm.propTypes={onRequestSort:n.func.isRequired,order:n.oneOf(["asc","desc"]).isRequired,orderBy:n.string.isRequired,columns:n.array.isRequired,setColumnFilter:n.func.isRequired,columnFilters:n.object.isRequired};function nm(e){const{numSelected:t,selectedIds:o,clearSelection:r,tableTitle:s,groupOperations:i,dataRows:a}=e,l=D.useMemo(()=>{if(i&&i.length>0){const c={selectedIds:o,numSelected:t,clearSelection:r},d={};return i.forEach(u=>{d[u.label]=()=>u.action(c,a)}),d}},[o,t,a]);return m.jsxs(ds,{sx:{pl:{sm:2},pr:{xs:1,sm:1},...t>0&&{bgcolor:c=>dn(c.palette.primary.main,c.palette.action.activatedOpacity)}},children:[t>0?m.jsxs(yt,{sx:{flex:"1 1 100%"},color:"inherit",variant:"subtitle1",component:"div",children:[t," selected"]}):s&&m.jsx(yt,{sx:{flex:"1 1 100%"},variant:"h6",id:"tableTitle",component:"div",children:s}),t>0?m.jsx(m.Fragment,{children:i&&i.map((c,d)=>{const u=c.icon,h=l[c.label];return m.jsx(Xl,{title:c.label,children:m.jsx(On,{onClick:h,disabled:t===0,children:m.jsx(u,{sx:{fontSize:28,color:"black"}})})},d)})}):m.jsx(m.Fragment,{})]})}nm.propTypes={numSelected:n.number.isRequired,selectedIds:n.array.isRequired,clearSelection:n.func.isRequired};function om(e,t,o){return t[o]<e[o]?-1:t[o]>e[o]?1:0}function kE(e,t){return e==="desc"?(o,r)=>om(o,r,t):(o,r)=>-om(o,r,t)}function rm({columns:e,rows:t,defaultFilter:o,setDefaultFilter:r,filterPreset:s,showColumnFilters:i,tableTitle:a,groupOperations:l,sx:c,theme:d,onRowSelectionModelChange:u,checkboxSelection:h,initialState:y,preSelections:p}){var q,Y;const[g,f]=D.useState(y!=null&&y.sorting?(q=y==null?void 0:y.sorting)==null?void 0:q.order:"asc"),[S,C]=D.useState(y!=null&&y.sorting?(Y=y==null?void 0:y.sorting)==null?void 0:Y.field:"date"),[E,T]=D.useState([]),[w,x]=D.useState([]),k=d?bi:D.Fragment,R=d?{theme:d}:{},[P,N]=D.useState(0),A=D.useRef(null),[I,v]=D.useState(0),M=D.useRef(null);D.useEffect(()=>{if(!M.current)return;const W=new ResizeObserver(F=>{for(const z of F)v(z.contentRect.height)});return W.observe(M.current),()=>W.disconnect()},[s]),D.useEffect(()=>{if(!A.current)return;const W=new ResizeObserver(F=>{for(const z of F)N(z.contentRect.height)});return W.observe(A.current),()=>W.disconnect()},[s]);const[$,j]=D.useState(()=>{const W={};return e.forEach(F=>{W[F.field]=""}),W}),L=(W,F)=>{f(S===F&&g==="asc"?"desc":"asc"),C(F)};D.useEffect(()=>{p&&T(p)},[p]);const U=W=>{const F=W.target.checked?V.map(z=>z.id):[];T(F),u&&u(F)},G=(W,F)=>{const z=E.indexOf(F);let J=[];z===-1?J=J.concat(E,F):z===0?J=J.concat(E.slice(1)):z===E.length-1?J=J.concat(E.slice(0,-1)):z>0&&(J=J.concat(E.slice(0,z),E.slice(z+1))),T(J),u&&u(J)},ee=()=>{T([]),u&&u([])},B=(W,F)=>{j(z=>({...z,[W]:F}))},O=W=>{x(F=>F.includes(W)?F.filter(z=>z!==W):[...F,W])},_=D.useMemo(()=>{if(!s||w.length===0)return()=>!0;const W=w.map(F=>{const z=s[F];return z&&typeof z.filter=="function"?z.filter:(console.warn(`Invalid filter function found for index ${F}`),()=>!1)});return F=>W.some(z=>z(F))},[w,s]),V=D.useMemo(()=>[...t].filter(W=>{if(o&&typeof o=="function"&&!o(W)||!_(W))return!1;for(const F in $){const z=$[F].toLowerCase();if(z&&!String(W[F]).toLowerCase().includes(z))return!1}return!0}).sort(kE(g,S)),[g,S,t,o,_,$]);return m.jsx(k,{...R,children:m.jsxs(Xe,{id:"test",sx:{width:"100%",height:`calc(100% - ${P+I}px)`},children:[s&&m.jsx(Xe,{ref:A,sx:{display:"flex",gap:1,flexWrap:"wrap",p:1},children:m.jsx(Eo,{direction:"row",spacing:1,children:s.map((W,F)=>{const z=w.includes(F);return m.jsx(Ii,{label:m.jsxs(Xe,{sx:{display:"flex",alignItems:"center",gap:z?.5:0},children:[m.jsx("span",{children:W.label}),z&&m.jsx(wE,{sx:{fontSize:24}})]}),variant:z?"filled":"outlined",color:"secondary",onClick:()=>O(F)},W.label)})})}),m.jsxs(Xe,{ref:M,children:[l&&m.jsx(nm,{numSelected:E.length,selectedIds:E,clearSelection:ee,tableTitle:a,groupOperations:l,dataRows:t}),!l&&a&&m.jsx(ds,{sx:{pl:{sm:2},pr:{xs:1,sm:1}},children:m.jsx(yt,{sx:{flex:"1 1 100%"},variant:"h6",id:"tableTitle",component:"div",children:a})})]}),m.jsxs(Vf,{component:Fn,sx:c||{height:"100%"},children:[" ",m.jsxs(Bf,{stickyHeader:!0,"aria-label":"pan table",sx:{width:"100%"},children:[m.jsx(tm,{numSelected:E.length,order:g,orderBy:S,onSelectAllClick:U,onRequestSort:L,rowCount:V.length,columns:e,setColumnFilter:B,columnFilters:$,showColumnFilters:i,groupOperations:l,checkboxSelection:h}),m.jsxs(zf,{sx:{verticalAlign:"top"},children:[V.map((W,F)=>{const z=E.includes(W.id);return m.jsxs(ea,{hover:!0,onClick:J=>{(h||l)&&G(J,W.id)},role:"checkbox",tabIndex:-1,selected:z,children:[(h||l)&&m.jsx(or,{padding:"checkbox",children:m.jsx(So,{color:"primary",checked:z})}),e.map(J=>m.jsx(or,{align:J.alignRight?"right":"left",sx:{whiteSpace:"normal",wordBreak:"break-word"},children:J.renderCell?J.renderCell({row:W,id:W.id,field:J.field}):W[J.field]},J.field))]},W.id)}),m.jsx(ea,{sx:{height:"100%"},children:m.jsx(or,{colSpan:e.length,sx:{padding:0,borderBottom:"none",height:"100%"}})})]})]})]})]})})}const sm=dt(m.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),RE=dt(m.jsx("path",{d:"M5 18h14v2H5zm4.6-2.7L5 10.7l2-1.9 2.6 2.6L17 4l2 2z"}),"FileDownloadDone"),PE=dt(m.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");function im(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=im(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ko(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=im(e))&&(r&&(r+=" "),r+=t);return r}let IE={data:""},$E=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||IE},jE=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,NE=/\/\*[^]*?\*\/| +/g,am=/\n+/g,Ro=(e,t)=>{let o="",r="",s="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?o=i+" "+a+";":r+=i[1]=="f"?Ro(a,i):i+"{"+Ro(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Ro(a,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):i):a!=null&&(i=i[1]=="-"?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Ro.p?Ro.p(i,a):i+":"+a+";")}return o+(t&&s?t+"{"+s+"}":s)+r},io={},lm=e=>{if(typeof e=="object"){let t="";for(let o in e)t+=o+lm(e[o]);return t}return e},ME=(e,t,o,r,s)=>{let i=lm(e),a=io[i]||(io[i]=(c=>{let d=0,u=11;for(;d<c.length;)u=101*u+c.charCodeAt(d++)>>>0;return"go"+u})(i));if(!io[a]){let c=i!==e?e:(d=>{let u,h,y=[{}];for(;u=jE.exec(d.replace(NE,""));)u[4]?y.shift():u[3]?(h=u[3].replace(am," ").trim(),y.unshift(y[0][h]=y[0][h]||{})):y[0][u[1]]=u[2].replace(am," ").trim();return y[0]})(e);io[a]=Ro(s?{["@keyframes "+a]:c}:c,o?"":"."+a)}let l=o&&io.g;return o&&(io.g=io[a]),((c,d,u,h)=>{h?d.data=d.data.replace(h,c):d.data.indexOf(c)===-1&&(d.data=u?c+d.data:d.data+c)})(io[a],t,r,l),a},AE=(e,t,o)=>e.reduce((r,s,i)=>{let a=t[i];if(a&&a.call){let l=a(o),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=c?"."+c:l&&typeof l=="object"?l.props?"":Ro(l,""):l===!1?"":l}return r+s+(a??"")},"");function ic(e){let t=this||{},o=e.call?e(t.p):e;return ME(o.unshift?o.raw?AE(o,[].slice.call(arguments,1),t.p):o.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):o,$E(t.target),t.g,t.o,t.k)}ic.bind({g:1}),ic.bind({k:1});function _E(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cm(e,t,o){return t&&_E(e.prototype,t),e}function st(){return st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},st.apply(this,arguments)}function um(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ps(e,t){if(e==null)return{};var o={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(o[s]=e[s]);return o}function dm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var pm=function(){return""},fm=D.createContext({enqueueSnackbar:pm,closeSnackbar:pm}),Po={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},mm=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},ac=function(t){return""+mm(t.vertical)+mm(t.horizontal)},oa=function(t){return!!t||t===0},ra="unmounted",sr="exited",ir="entering",fs="entered",hm="exiting",lc=(function(e){um(t,e);function t(r){var s;s=e.call(this,r)||this;var i=r.appear,a;return s.appearStatus=null,r.in?i?(a=sr,s.appearStatus=ir):a=fs:r.unmountOnExit||r.mountOnEnter?a=ra:a=sr,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===ra?{status:sr}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==ir&&a!==fs&&(i=ir):(a===ir||a===fs)&&(i=hm)}this.updateStatus(!1,i)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var s=this.props.timeout,i=s,a=s;return s!=null&&typeof s!="number"&&typeof s!="string"&&(a=s.exit,i=s.enter),{exit:a,enter:i}},o.updateStatus=function(s,i){s===void 0&&(s=!1),i!==null?(this.cancelNextCallback(),i===ir?this.performEnter(s):this.performExit()):this.props.unmountOnExit&&this.state.status===sr&&this.setState({status:ra})},o.performEnter=function(s){var i=this,a=this.props.enter,l=s,c=this.getTimeouts();if(!s&&!a){this.safeSetState({status:fs},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:ir},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(c.enter,function(){i.safeSetState({status:fs},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},o.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:sr},function(){s.props.onExited&&s.props.onExited(s.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:hm},function(){s.props.onExiting&&s.props.onExiting(s.node),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:sr},function(){s.props.onExited&&s.props.onExited(s.node)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},o.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,s())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},o.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=s==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),s!=null&&setTimeout(this.nextCallback,s)},o.render=function(){var s=this.state.status;if(s===ra)return null;var i=this.props,a=i.children,l=ps(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(s,l)},cm(t,[{key:"node",get:function(){var s,i=(s=this.props.nodeRef)===null||s===void 0?void 0:s.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t})(D.Component);function ar(){}lc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ar,onEntering:ar,onEntered:ar,onExit:ar,onExiting:ar,onExited:ar};function gm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function cc(e,t){return D.useMemo(function(){return e==null&&t==null?null:function(o){gm(e,o),gm(t,o)}},[e,t])}function sa(e){var t=e.timeout,o=e.style,r=o===void 0?{}:o,s=e.mode;return{duration:typeof t=="object"?t[s]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var uc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bm=function(t){t.scrollTop=t.scrollTop},ym=function(t){return Math.round(t)+"ms"};function lr(e,t){e===void 0&&(e=["all"]);var o=t||{},r=o.duration,s=r===void 0?300:r,i=o.easing,a=i===void 0?uc.easeInOut:i,l=o.delay,c=l===void 0?0:l,d=Array.isArray(e)?e:[e];return d.map(function(u){var h=typeof s=="string"?s:ym(s),y=typeof c=="string"?c:ym(c);return u+" "+h+" "+a+" "+y}).join(",")}function DE(e){return e&&e.ownerDocument||document}function vm(e){var t=DE(e);return t.defaultView||window}function LE(e,t){t===void 0&&(t=166);var o;function r(){for(var s=this,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var c=function(){e.apply(s,a)};clearTimeout(o),o=setTimeout(c,t)}return r.clear=function(){clearTimeout(o)},r}function BE(e,t){var o=t.getBoundingClientRect(),r=vm(t),s;if(t.fakeTransform)s=t.fakeTransform;else{var i=r.getComputedStyle(t);s=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){var c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-l)+"px)"}}function ia(e,t){if(t){var o=BE(e,t);o&&(t.style.webkitTransform=o,t.style.transform=o)}}var xm=D.forwardRef(function(e,t){var o=e.children,r=e.direction,s=r===void 0?"down":r,i=e.in,a=e.style,l=e.timeout,c=l===void 0?0:l,d=e.onEnter,u=e.onEntered,h=e.onExit,y=e.onExited,p=ps(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=D.useRef(null),f=cc(o.ref,g),S=cc(f,t),C=function(R,P){ia(s,R),bm(R),d&&d(R,P)},E=function(R){var P=(a==null?void 0:a.transitionTimingFunction)||uc.easeOut,N=sa({timeout:c,mode:"enter",style:st({},a,{transitionTimingFunction:P})});R.style.webkitTransition=lr("-webkit-transform",N),R.style.transition=lr("transform",N),R.style.webkitTransform="none",R.style.transform="none"},T=function(R){var P=(a==null?void 0:a.transitionTimingFunction)||uc.sharp,N=sa({timeout:c,mode:"exit",style:st({},a,{transitionTimingFunction:P})});R.style.webkitTransition=lr("-webkit-transform",N),R.style.transition=lr("transform",N),ia(s,R),h&&h(R)},w=function(R){R.style.webkitTransition="",R.style.transition="",y&&y(R)},x=D.useCallback(function(){g.current&&ia(s,g.current)},[s]);return D.useEffect(function(){if(!(i||s==="down"||s==="right")){var k=LE(function(){g.current&&ia(s,g.current)}),R=vm(g.current);return R.addEventListener("resize",k),function(){k.clear(),R.removeEventListener("resize",k)}}},[s,i]),D.useEffect(function(){i||x()},[i,x]),D.createElement(lc,Object.assign({appear:!0,nodeRef:g,onEnter:C,onEntered:u,onEntering:E,onExit:T,onExited:w,in:i,timeout:c},p),function(k,R){return D.cloneElement(o,st({ref:S,style:st({visibility:k==="exited"&&!i?"hidden":void 0},a,{},o.props.style)},R))})});xm.displayName="Slide";var aa=function(t){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},FE=function(){return D.createElement(aa,null,D.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
298
|
-
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},zE=function(){return D.createElement(aa,null,D.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},VE=function(){return D.createElement(aa,null,D.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
273
|
+
`))}return null}),anchorOrigin:n.shape({horizontal:n.oneOfType([n.oneOf(["center","left","right"]),n.number]).isRequired,vertical:n.oneOfType([n.oneOf(["bottom","center","top"]),n.number]).isRequired}),anchorPosition:n.shape({left:n.number.isRequired,top:n.number.isRequired}),anchorReference:n.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:n.elementType,BackdropProps:n.object,children:n.node,classes:n.object,className:n.string,container:n.oneOfType([Cn,n.func]),disableScrollLock:n.bool,elevation:Bo,marginThreshold:n.number,onClose:n.func,open:n.bool.isRequired,PaperProps:n.shape({component:Or}),slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transformOrigin:n.shape({horizontal:n.oneOfType([n.oneOf(["center","left","right"]),n.number]).isRequired,vertical:n.oneOfType([n.oneOf(["bottom","center","top"]),n.number]).isRequired}),TransitionComponent:n.elementType,transitionDuration:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),TransitionProps:n.object});function tS(e){return ge("MuiMenu",e)}be("MuiMenu",["root","paper","list"]);const nS={vertical:"top",horizontal:"right"},oS={vertical:"top",horizontal:"left"},rS=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},tS,t)},iS=Z(Cl,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sS=Z(up,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aS=Z(sp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),dp=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:m={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...p}={},variant:C="selectedMenu",slots:w={},slotProps:E={},...x}=r,T=Xi(),S={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:m,transitionDuration:y,TransitionProps:p,variant:C},P=rS(S),O=i&&!l&&u,k=v.useRef(null),R=(W,B)=>{k.current&&k.current.adjustStyleForScrollbar(W,{direction:T?"rtl":"ltr"}),g&&g(W,B)},b=W=>{W.key==="Tab"&&(W.preventDefault(),d&&d(W,"tabKeyDown"))};let j=-1;v.Children.map(s,(W,B)=>{v.isValidElement(W)&&(process.env.NODE_ENV!=="production"&&zn.isFragment(W)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
274
|
+
`)),W.props.disabled||(C==="selectedMenu"&&W.props.selected||j===-1)&&(j=B))});const N={slots:w,slotProps:{list:c,transition:p,paper:m,...E}},M=Ou({elementType:w.root,externalSlotProps:E.root,ownerState:S,className:[P.root,a]}),[z,F]=Ne("paper",{className:P.paper,elementType:sS,externalForwardedProps:N,shouldForwardComponentProp:!0,ownerState:S}),[L,X]=Ne("list",{className:ae(P.list,c.className),elementType:aS,shouldForwardComponentProp:!0,externalForwardedProps:N,getSlotProps:W=>({...W,onKeyDown:B=>{var A;b(B),(A=W.onKeyDown)==null||A.call(W,B)}}),ownerState:S}),J=typeof N.slotProps.transition=="function"?N.slotProps.transition(S):N.slotProps.transition;return f.jsx(iS,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?nS:oS,slots:{root:w.root,paper:z,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:M,paper:F,backdrop:typeof E.backdrop=="function"?E.backdrop(S):E.backdrop,transition:{...J,onEntering:(...W)=>{var B;R(...W),(B=J==null?void 0:J.onEntering)==null||B.call(J,...W)}}},open:u,ref:o,transitionDuration:y,ownerState:S,...x,classes:h,children:f.jsx(L,{actions:k,autoFocus:i&&(j===-1||l),autoFocusItem:O,variant:C,...X,children:s})})});process.env.NODE_ENV!=="production"&&(dp.propTypes={anchorEl:n.oneOfType([Cn,n.func]),autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,disableAutoFocusItem:n.bool,MenuListProps:n.object,onClose:n.func,open:n.bool.isRequired,PaperProps:n.object,PopoverClasses:n.object,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),list:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,list:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transitionDuration:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),TransitionProps:n.object,variant:n.oneOf(["menu","selectedMenu"])});function lS(e){return ge("MuiMenuItem",e)}const Xr=be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cS=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},uS=e=>{const{disabled:t,dense:o,divider:r,disableGutters:i,selected:s,classes:a}=e,c=ye({root:["root",o&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},lS,a);return{...a,...c}},dS=Z(Tn,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cS})(ve(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xr.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Xd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Xd.inset}`]:{marginLeft:52},[`& .${Ko.root}`]:{marginTop:0,marginBottom:0},[`& .${Ko.inset}`]:{paddingLeft:36},[`& .${op.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${op.root} svg`]:{fontSize:"1.25rem"}}}]}))),Sl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:d,role:u="menuitem",tabIndex:m,className:h,...y}=r,g=v.useContext(fn),p=v.useMemo(()=>({dense:a||g.dense||!1,disableGutters:c}),[g.dense,a,c]),C=v.useRef(null);Ht(()=>{i&&(C.current?C.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const w={...r,dense:p.dense,divider:l,disableGutters:c},E=uS(r),x=mt(C,o);let T;return r.disabled||(T=m!==void 0?m:-1),f.jsx(fn.Provider,{value:p,children:f.jsx(dS,{ref:x,role:u,tabIndex:T,component:s,focusVisibleClassName:ae(E.focusVisible,d),className:ae(E.root,h),...y,ownerState:w,classes:E})})});process.env.NODE_ENV!=="production"&&(Sl.propTypes={autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disabled:n.bool,disableGutters:n.bool,divider:n.bool,focusVisibleClassName:n.string,role:n.string,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number});function pS(e){return ge("MuiNativeSelect",e)}const Tl=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),fS=e=>{const{classes:t,variant:o,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",o,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ee(o)}`,s&&"iconOpen",r&&"disabled"]};return ye(l,pS,t)},pp=Z("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Tl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),mS=Z(pp,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:$t,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Tl.multiple}`]:t.multiple}]}})({}),fp=Z("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),hS=Z(fp,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ee(o.variant)}`],o.open&&t.iconOpen]}})({}),mp=v.forwardRef(function(t,o){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:l,variant:c="standard",...d}=t,u={...t,disabled:i,variant:c,error:s},m=fS(u);return f.jsxs(v.Fragment,{children:[f.jsx(mS,{ownerState:u,className:ae(m.select,r),disabled:i,ref:l||o,...d}),t.multiple?null:f.jsx(hS,{as:a,ownerState:u,className:m.icon})]})});process.env.NODE_ENV!=="production"&&(mp.propTypes={children:n.node,classes:n.object,className:n.string,disabled:n.bool,error:n.bool,IconComponent:n.elementType.isRequired,inputRef:Lt,multiple:n.bool,name:n.string,onChange:n.func,value:n.any,variant:n.oneOf(["standard","outlined","filled"])});var hp;const gS=Z("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:$t})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),bS=Z("legend",{name:"MuiNotchedOutlined",shouldForwardProp:$t})(ve(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function gp(e){const{children:t,classes:o,className:r,label:i,notched:s,...a}=e,l=i!=null&&i!=="",c={...e,notched:s,withLabel:l};return f.jsx(gS,{"aria-hidden":!0,className:r,ownerState:c,...a,children:f.jsx(bS,{ownerState:c,children:l?f.jsx("span",{children:i}):hp||(hp=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(gp.propTypes={children:n.node,classes:n.object,className:n.string,label:n.node,notched:n.bool.isRequired,style:n.object});const yS=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Rx,t);return{...t,...r}},vS=Z(ys,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:gs})(ve(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ln.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ln.focused} .${ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ot()).map(([o])=>({props:{color:o},style:{[`&.${ln.focused} .${ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[o].main}}})),{props:{},style:{[`&.${ln.error} .${ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ln.disabled} .${ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:14}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:14}},{props:({ownerState:o})=>o.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:o,size:r})=>o.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),xS=Z(gp,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ve(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),CS=Z(vs,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bs})(ve(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Is=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:d,slots:u={},slotProps:m={},type:h="text",...y}=r,g=yS(r),p=kn(),C=Kn({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...r,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:p,fullWidth:s,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:h},E=u.root??i.Root??vS,x=u.input??i.Input??CS,[T,S]=Ne("notchedOutline",{elementType:xS,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:u,slotProps:m},additionalProps:{label:l!=null&&l!==""&&C.required?f.jsxs(v.Fragment,{children:[l," ","*"]}):l}});return f.jsx(xs,{slots:{root:E,input:x},slotProps:m,renderSuffix:P=>f.jsx(T,{...S,notched:typeof d<"u"?d:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:o,type:h,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Is.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),defaultValue:n.any,disabled:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:Lt,label:n.node,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,notched:n.bool,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,notchedOutline:n.oneOfType([n.func,n.object]),root:n.object}),slots:n.shape({input:n.elementType,notchedOutline:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),Is.muiName="Input";const SS=dt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),TS=dt(f.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),wS=Z("span",{name:"MuiRadioButtonIcon",shouldForwardProp:$t})({position:"relative",display:"flex"}),ES=Z(SS,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),OS=Z(TS,{name:"MuiRadioButtonIcon"})(ve(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function wl(e){const{checked:t=!1,classes:o={},fontSize:r}=e,i={...e,checked:t};return f.jsxs(wS,{className:o.root,ownerState:i,children:[f.jsx(ES,{fontSize:r,className:o.background,ownerState:i}),f.jsx(OS,{fontSize:r,className:o.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(wl.propTypes={checked:n.bool,classes:n.object,fontSize:n.oneOf(["small","medium"])});const El=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(El.displayName="RadioGroupContext");function kS(){return v.useContext(El)}function PS(e){return ge("MuiRadio",e)}const bp=be("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),$S=e=>{const{classes:t,color:o,size:r}=e,i={root:["root",`color${ee(o)}`,r!=="medium"&&`size${ee(r)}`]};return{...t,...ye(i,PS,t)}},RS=Z(Ss,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.size!=="medium"&&t[`size${ee(o.size)}`],t[`color${ee(o.color)}`]]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${bp.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${bp.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function jS(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const IS=f.jsx(wl,{checked:!0}),NS=f.jsx(wl,{}),Ns=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=IS,color:a="primary",icon:l=NS,name:c,onChange:d,size:u="medium",className:m,disabled:h,disableRipple:y=!1,slots:g={},slotProps:p={},inputProps:C,...w}=r,E=kn();let x=h;E&&typeof x>"u"&&(x=E.disabled),x??(x=!1);const T={...r,disabled:x,disableRipple:y,color:a,size:u},S=$S(T),P=kS();let O=i;const k=Pa(d,P&&P.onChange);let R=c;P&&(typeof O>"u"&&(O=jS(P.value,r.value)),typeof R>"u"&&(R=P.name));const b=p.input??C,[j,N]=Ne("root",{ref:o,elementType:RS,className:ae(S.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:p,...w},getSlotProps:M=>({...M,onChange:(z,...F)=>{var L;(L=M.onChange)==null||L.call(M,z,...F),k(z,...F)}}),ownerState:T,additionalProps:{type:"radio",icon:v.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:v.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:x,name:R,checked:O,slots:g,slotProps:{input:typeof b=="function"?b(T):b}}});return f.jsx(j,{...N,classes:S})});process.env.NODE_ENV!=="production"&&(Ns.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,inputProps:n.object,inputRef:Lt,name:n.string,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function MS(e){return ge("MuiRadioGroup",e)}be("MuiRadioGroup",["root","row","error"]);const AS=e=>{const{classes:t,row:o,error:r}=e;return ye({root:["root",o&&"row",r&&"error"]},MS,t)},yp=v.forwardRef(function(t,o){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:c,value:d,...u}=t,m=v.useRef(null),h=AS(t),[y,g]=Hn({controlled:d,default:a,name:"RadioGroup"});v.useImperativeHandle(r,()=>({focus:()=>{let E=m.current.querySelector("input:not(:disabled):checked");E||(E=m.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const p=mt(o,m),C=In(l),w=v.useMemo(()=>({name:C,onChange(E){g(E.target.value),c&&c(E,E.target.value)},value:y}),[C,c,g,y]);return f.jsx(El.Provider,{value:w,children:f.jsx(Hr,{role:"radiogroup",ref:p,className:ae(h.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&(yp.propTypes={children:n.node,className:n.string,defaultValue:n.any,name:n.string,onChange:n.func,value:n.any});function vp(e){return ge("MuiSelect",e)}const Jr=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var xp;const DS=Z(pp,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${Jr.select}`]:t.select},{[`&.${Jr.select}`]:t[o.variant]},{[`&.${Jr.error}`]:t.error},{[`&.${Jr.multiple}`]:t.multiple}]}})({[`&.${Jr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_S=Z(fp,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ee(o.variant)}`],o.open&&t.iconOpen]}})({}),LS=Z("input",{shouldForwardProp:e=>Zu(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cp(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function BS(e){return e==null||typeof e=="string"&&!e.trim()}const FS=e=>{const{classes:t,variant:o,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",o,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ee(o)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(l,vp,t)},Sp=v.forwardRef(function(t,o){var jt;const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:m,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:p,labelId:C,MenuProps:w={},multiple:E,name:x,onBlur:T,onChange:S,onClose:P,onFocus:O,onOpen:k,open:R,readOnly:b,renderValue:j,required:N,SelectDisplayProps:M={},tabIndex:z,type:F,value:L,variant:X="standard",...J}=t,[W,B]=Hn({controlled:L,default:u,name:"Select"}),[A,Q]=Hn({controlled:R,default:d,name:"Select"}),Y=v.useRef(null),q=v.useRef(null),[U,_]=v.useState(null),{current:G}=v.useRef(R!=null),[H,ne]=v.useState(),se=mt(o,p),ce=v.useCallback(pe=>{q.current=pe,pe&&_(pe)},[]),D=U==null?void 0:U.parentNode;v.useImperativeHandle(se,()=>({focus:()=>{q.current.focus()},node:Y.current,value:W}),[W]),v.useEffect(()=>{d&&A&&U&&!G&&(ne(a?null:D.clientWidth),q.current.focus())},[U,a]),v.useEffect(()=>{s&&q.current.focus()},[s]),v.useEffect(()=>{if(!C)return;const pe=qt(q.current).getElementById(C);if(pe){const Le=()=>{getSelection().isCollapsed&&q.current.focus()};return pe.addEventListener("click",Le),()=>{pe.removeEventListener("click",Le)}}},[C]);const Ee=(pe,Le)=>{pe?k&&k(Le):P&&P(Le),G||(ne(a?null:D.clientWidth),Q(pe))},de=pe=>{pe.button===0&&(pe.preventDefault(),q.current.focus(),Ee(!0,pe))},Ce=pe=>{Ee(!1,pe)},We=v.Children.toArray(l),ue=pe=>{const Le=We.find(Ge=>Ge.props.value===pe.target.value);Le!==void 0&&(B(Le.props.value),S&&S(pe,Le))},Me=pe=>Le=>{let Ge;if(Le.currentTarget.hasAttribute("tabindex")){if(E){Ge=Array.isArray(W)?W.slice():[];const Pt=W.indexOf(pe.props.value);Pt===-1?Ge.push(pe.props.value):Ge.splice(Pt,1)}else Ge=pe.props.value;if(pe.props.onClick&&pe.props.onClick(Le),W!==Ge&&(B(Ge),S)){const Pt=Le.nativeEvent||Le,ie=new Pt.constructor(Pt.type,Pt);Object.defineProperty(ie,"target",{writable:!0,value:{value:Ge,name:x}}),S(ie,pe)}E||Ee(!1,Le)}},Te=pe=>{b||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Ee(!0,pe))},_e=U!==null&&A,Be=pe=>{!_e&&T&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:W,name:x}}),T(pe))};delete J["aria-invalid"];let me,at;const ze=[];let ft=!1,bt=!1;(hs({value:W})||h)&&(j?me=j(W):ft=!0);const ut=We.map(pe=>{if(!v.isValidElement(pe))return null;process.env.NODE_ENV!=="production"&&zn.isFragment(pe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
275
|
+
`));let Le;if(E){if(!Array.isArray(W))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":hn(2));Le=W.some(Ge=>Cp(Ge,pe.props.value)),Le&&ft&&ze.push(pe.props.children)}else Le=Cp(W,pe.props.value),Le&&ft&&(at=pe.props.children);return Le&&(bt=!0),v.cloneElement(pe,{"aria-selected":Le?"true":"false",onClick:Me(pe),onKeyUp:Ge=>{Ge.key===" "&&Ge.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(Ge)},role:"option",selected:Le,value:void 0,"data-value":pe.props.value})});process.env.NODE_ENV!=="production"&&v.useEffect(()=>{if(!bt&&!E&&W!==""){const pe=We.map(Le=>Le.props.value);console.warn([`MUI: You have provided an out-of-range value \`${W}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${pe.filter(Le=>Le!=null).map(Le=>`\`${Le}\``).join(", ")||'""'}.`].join(`
|
|
276
|
+
`))}},[bt,We,E,x,W]),ft&&(E?ze.length===0?me=null:me=ze.reduce((pe,Le,Ge)=>(pe.push(Le),Ge<ze.length-1&&pe.push(", "),pe),[]):me=at);let Ue=H;!a&&G&&U&&(Ue=D.clientWidth);let Ae;typeof z<"u"?Ae=z:Ae=m?null:0;const Ie=M.id||(x?`mui-component-select-${x}`:void 0),Se={...t,variant:X,value:W,open:_e,error:y},Ye=FS(Se),He={...w.PaperProps,...(jt=w.slotProps)==null?void 0:jt.paper},St=In();return f.jsxs(v.Fragment,{children:[f.jsx(DS,{as:"div",ref:ce,tabIndex:Ae,role:"combobox","aria-controls":_e?St:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":_e?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[C,Ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":N?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Te,onMouseDown:m||b?null:de,onBlur:Be,onFocus:O,...M,ownerState:Se,className:ae(M.className,Ye.select,c),id:Ie,children:BS(me)?xp||(xp=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):me}),f.jsx(LS,{"aria-invalid":y,value:Array.isArray(W)?W.join(","):W,name:x,ref:Y,"aria-hidden":!0,onChange:ue,tabIndex:-1,disabled:m,className:Ye.nativeInput,autoFocus:s,required:N,...J,ownerState:Se}),f.jsx(_S,{as:g,className:Ye.icon,ownerState:Se}),f.jsx(dp,{id:`menu-${x||""}`,anchorEl:D,open:_e,onClose:Ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":C,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:St,...w.MenuListProps},paper:{...He,style:{minWidth:Ue,...He!=null?He.style:null}}},children:ut})]})});process.env.NODE_ENV!=="production"&&(Sp.propTypes={"aria-describedby":n.string,"aria-label":n.string,autoFocus:n.bool,autoWidth:n.bool,children:n.node,classes:n.object,className:n.string,defaultOpen:n.bool,defaultValue:n.any,disabled:n.bool,displayEmpty:n.bool,error:n.bool,IconComponent:n.elementType.isRequired,inputRef:Lt,labelId:n.string,MenuProps:n.object,multiple:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onClose:n.func,onFocus:n.func,onOpen:n.func,open:n.bool,readOnly:n.bool,renderValue:n.func,required:n.bool,SelectDisplayProps:n.object,tabIndex:n.oneOfType([n.number,n.string]),type:n.any,value:n.any,variant:n.oneOf(["standard","outlined","filled"])});const zS=e=>{const{classes:t}=e,r=ye({root:["root"]},vp,t);return{...t,...r}},Ol={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>$t(e)&&e!=="variant",slot:"Root"},VS=Z(Rs,Ol)(""),WS=Z(Is,Ol)(""),US=Z(Ps,Ol)(""),Zr=v.forwardRef(function(t,o){const r=xe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:u=_d,id:m,input:h,inputProps:y,label:g,labelId:p,MenuProps:C,multiple:w=!1,native:E=!1,onClose:x,onOpen:T,open:S,renderValue:P,SelectDisplayProps:O,variant:k="outlined",...R}=r,b=E?mp:Sp,j=kn(),N=Kn({props:r,muiFormControl:j,states:["variant","error"]}),M=N.variant||k,z={...r,variant:M,classes:a},F=zS(z),{root:L,...X}=F,J=h||{standard:f.jsx(VS,{ownerState:z}),outlined:f.jsx(WS,{label:g,ownerState:z}),filled:f.jsx(US,{ownerState:z})}[M],W=mt(o,co(J));return f.jsx(v.Fragment,{children:v.cloneElement(J,{inputComponent:b,inputProps:{children:s,error:N.error,IconComponent:u,variant:M,type:void 0,multiple:w,...E?{id:m}:{autoWidth:i,defaultOpen:c,displayEmpty:d,labelId:p,MenuProps:C,onClose:x,onOpen:T,open:S,renderValue:P,SelectDisplayProps:{id:m,...O}},...y,classes:y?Rt(X,y.classes):X,...h?h.props.inputProps:{}},...(w&&E||d)&&M==="outlined"?{notched:!0}:{},ref:W,className:ae(J.props.className,l,F.root),...!h&&{variant:M},...R})})});process.env.NODE_ENV!=="production"&&(Zr.propTypes={autoWidth:n.bool,children:n.node,classes:n.object,className:n.string,defaultOpen:n.bool,defaultValue:n.any,displayEmpty:n.bool,IconComponent:n.elementType,id:n.string,input:n.element,inputProps:n.object,label:n.node,labelId:n.string,MenuProps:n.object,multiple:n.bool,native:n.bool,onChange:n.func,onClose:n.func,onOpen:n.func,open:n.bool,renderValue:n.func,SelectDisplayProps:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.oneOfType([n.oneOf([""]),n.any]),variant:n.oneOf(["filled","outlined","standard"])}),Zr.muiName="Select";function HS(e){return ge("MuiTooltip",e)}const Ct=be("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function qS(e){return Math.round(e*1e5)/1e5}const GS=e=>{const{classes:t,disableInteractive:o,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!o&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ee(s.split("-")[0])}`],arrow:["arrow"]};return ye(a,HS,t)},YS=Z(Fr,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})(ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ct.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ct.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),KS=Z("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${ee(o.placement.split("-")[0])}`]]}})(ve(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ke(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ct.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ct.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ct.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ct.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${qS(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ct.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ct.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),XS=Z("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ve(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ke(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ms=!1;const Tp=new Gi;let Qr={x:0,y:0};function As(e,t){return(o,...r)=>{t&&t(o,...r),e(o,...r)}}const kl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:m=!1,disableInteractive:h=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:p=0,enterTouchDelay:C=700,followCursor:w=!1,id:E,leaveDelay:x=0,leaveTouchDelay:T=1500,onClose:S,onOpen:P,open:O,placement:k="bottom",PopperComponent:R,PopperProps:b={},slotProps:j={},slots:N={},title:M,TransitionComponent:z,TransitionProps:F,...L}=r,X=v.isValidElement(s)?s:f.jsx("span",{children:s}),J=Mn(),W=Xi(),[B,A]=v.useState(),[Q,Y]=v.useState(null),q=v.useRef(!1),U=h||w,_=lo(),G=lo(),H=lo(),ne=lo(),[se,ce]=Hn({controlled:O,default:!1,name:"Tooltip",state:"open"});let D=se;if(process.env.NODE_ENV!=="production"){const{current:je}=v.useRef(O!==void 0);v.useEffect(()=>{B&&B.disabled&&!je&&M!==""&&B.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
277
|
+
`))},[M,B,je])}const Ee=In(E),de=v.useRef(),Ce=Gt(()=>{de.current!==void 0&&(document.body.style.WebkitUserSelect=de.current,de.current=void 0),ne.clear()});v.useEffect(()=>Ce,[Ce]);const We=je=>{Tp.clear(),Ms=!0,ce(!0),P&&!D&&P(je)},ue=Gt(je=>{Tp.start(800+x,()=>{Ms=!1}),ce(!1),S&&D&&S(je),_.start(J.transitions.duration.shortest,()=>{q.current=!1})}),Me=je=>{q.current&&je.type!=="touchstart"||(B&&B.removeAttribute("title"),G.clear(),H.clear(),g||Ms&&p?G.start(Ms?p:g,()=>{We(je)}):We(je))},Te=je=>{G.clear(),H.start(x,()=>{ue(je)})},[,_e]=v.useState(!1),Be=je=>{Yi(je.target)||(_e(!1),Te(je))},me=je=>{B||A(je.currentTarget),Yi(je.target)&&(_e(!0),Me(je))},at=je=>{q.current=!0;const It=X.props;It.onTouchStart&&It.onTouchStart(je)},ze=je=>{at(je),H.clear(),_.clear(),Ce(),de.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(C,()=>{document.body.style.WebkitUserSelect=de.current,Me(je)})},ft=je=>{X.props.onTouchEnd&&X.props.onTouchEnd(je),Ce(),H.start(T,()=>{ue(je)})};v.useEffect(()=>{if(!D)return;function je(It){It.key==="Escape"&&ue(It)}return document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)}},[ue,D]);const bt=mt(co(X),A,o);!M&&M!==0&&(D=!1);const ut=v.useRef(),Ue=je=>{const It=X.props;It.onMouseMove&&It.onMouseMove(je),Qr={x:je.clientX,y:je.clientY},ut.current&&ut.current.update()},Ae={},Ie=typeof M=="string";d?(Ae.title=!D&&Ie&&!m?M:null,Ae["aria-describedby"]=D?Ee:null):(Ae["aria-label"]=Ie?M:null,Ae["aria-labelledby"]=D&&!Ie?Ee:null);const Se={...Ae,...L,...X.props,className:ae(L.className,X.props.className),onTouchStart:at,ref:bt,...w?{onMouseMove:Ue}:{}};process.env.NODE_ENV!=="production"&&(Se["data-mui-internal-clone-element"]=!0,v.useEffect(()=>{B&&!B.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
278
|
+
`))},[B]));const Ye={};y||(Se.onTouchStart=ze,Se.onTouchEnd=ft),m||(Se.onMouseOver=As(Me,Se.onMouseOver),Se.onMouseLeave=As(Te,Se.onMouseLeave),U||(Ye.onMouseOver=Me,Ye.onMouseLeave=Te)),u||(Se.onFocus=As(me,Se.onFocus),Se.onBlur=As(Be,Se.onBlur),U||(Ye.onFocus=me,Ye.onBlur=Be)),process.env.NODE_ENV!=="production"&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join(`
|
|
279
|
+
`));const He={...r,isRtl:W,arrow:i,disableInteractive:U,placement:k,PopperComponentProp:R,touch:q.current},St=typeof j.popper=="function"?j.popper(He):j.popper,jt=v.useMemo(()=>{var It,to;let je=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(It=b.popperOptions)!=null&&It.modifiers&&(je=je.concat(b.popperOptions.modifiers)),(to=St==null?void 0:St.popperOptions)!=null&&to.modifiers&&(je=je.concat(St.popperOptions.modifiers)),{...b.popperOptions,...St==null?void 0:St.popperOptions,modifiers:je}},[Q,b.popperOptions,St==null?void 0:St.popperOptions]),pe=GS(He),Le=typeof j.transition=="function"?j.transition(He):j.transition,Ge={slots:{popper:l.Popper,transition:l.Transition??z,tooltip:l.Tooltip,arrow:l.Arrow,...N},slotProps:{arrow:j.arrow??c.arrow,popper:{...b,...St??c.popper},tooltip:j.tooltip??c.tooltip,transition:{...F,...Le??c.transition}}},[Pt,ie]=Ne("popper",{elementType:YS,externalForwardedProps:Ge,ownerState:He,className:ae(pe.popper,b==null?void 0:b.className)}),[$e,he]=Ne("transition",{elementType:Gr,externalForwardedProps:Ge,ownerState:He}),[Dt,Mt]=Ne("tooltip",{elementType:KS,className:pe.tooltip,externalForwardedProps:Ge,ownerState:He}),[cn,eo]=Ne("arrow",{elementType:XS,className:pe.arrow,externalForwardedProps:Ge,ownerState:He,ref:Y});return f.jsxs(v.Fragment,{children:[v.cloneElement(X,Se),f.jsx(Pt,{as:R??Fr,placement:k,anchorEl:w?{getBoundingClientRect:()=>({top:Qr.y,left:Qr.x,right:Qr.x,bottom:Qr.y,width:0,height:0})}:B,popperRef:ut,open:B?D:!1,id:Ee,transition:!0,...Ye,...ie,popperOptions:jt,children:({TransitionProps:je})=>f.jsx($e,{timeout:J.transitions.duration.shorter,...je,...he,children:f.jsxs(Dt,{...Mt,children:[M,i?f.jsx(cn,{...eo}):null]})})})]})});process.env.NODE_ENV!=="production"&&(kl.propTypes={arrow:n.bool,children:ao.isRequired,classes:n.object,className:n.string,components:n.shape({Arrow:n.elementType,Popper:n.elementType,Tooltip:n.elementType,Transition:n.elementType}),componentsProps:n.shape({arrow:n.object,popper:n.object,tooltip:n.object,transition:n.object}),describeChild:n.bool,disableFocusListener:n.bool,disableHoverListener:n.bool,disableInteractive:n.bool,disableTouchListener:n.bool,enterDelay:n.number,enterNextDelay:n.number,enterTouchDelay:n.number,followCursor:n.bool,id:n.string,leaveDelay:n.number,leaveTouchDelay:n.number,onClose:n.func,onOpen:n.func,open:n.bool,placement:n.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"]),PopperComponent:n.elementType,PopperProps:n.object,slotProps:n.shape({arrow:n.oneOfType([n.func,n.object]),popper:n.oneOfType([n.func,n.object]),tooltip:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({arrow:n.elementType,popper:n.elementType,tooltip:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),title:n.node,TransitionComponent:n.elementType,TransitionProps:n.object});const Co=yb({createStyledComponent:Z("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>xe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Co.propTypes={children:n.node,component:n.elementType,direction:n.oneOfType([n.oneOf(["column-reverse","column","row-reverse","row"]),n.arrayOf(n.oneOf(["column-reverse","column","row-reverse","row"])),n.object]),divider:n.node,spacing:n.oneOfType([n.arrayOf(n.oneOfType([n.number,n.string])),n.number,n.object,n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),useFlexGap:n.bool});const ei=v.createContext({});process.env.NODE_ENV!=="production"&&(ei.displayName="StepperContext");const Ds=v.createContext({});process.env.NODE_ENV!=="production"&&(Ds.displayName="StepContext");function JS(e){return ge("MuiStep",e)}be("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const ZS=e=>{const{classes:t,orientation:o,alternativeLabel:r,completed:i}=e;return ye({root:["root",o,r&&"alternativeLabel",i&&"completed"]},JS,t)},QS=Z("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),wp=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiStep"}),{active:i,children:s,className:a,component:l="div",completed:c,disabled:d,expanded:u=!1,index:m,last:h,...y}=r,{activeStep:g,connector:p,alternativeLabel:C,orientation:w,nonLinear:E}=v.useContext(ei);let[x=!1,T=!1,S=!1]=[i,c,d];g===m?x=i!==void 0?i:!0:!E&&g>m?T=c!==void 0?c:!0:!E&&g<m&&(S=d!==void 0?d:!0);const P=v.useMemo(()=>({index:m,last:h,expanded:u,icon:m+1,active:x,completed:T,disabled:S}),[m,h,u,x,T,S]),O={...r,active:x,orientation:w,alternativeLabel:C,completed:T,disabled:S,expanded:u,component:l},k=ZS(O),R=f.jsxs(QS,{as:l,className:ae(k.root,a),ref:o,ownerState:O,...y,children:[p&&C&&m!==0?p:null,s]});return f.jsx(Ds.Provider,{value:P,children:p&&!C&&m!==0?f.jsxs(v.Fragment,{children:[p,R]}):R})});process.env.NODE_ENV!=="production"&&(wp.propTypes={active:n.bool,children:n.node,classes:n.object,className:n.string,completed:n.bool,component:n.elementType,disabled:n.bool,expanded:n.bool,index:Bo,last:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const eT=dt(f.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),tT=dt(f.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function nT(e){return ge("MuiStepIcon",e)}const Pl=be("MuiStepIcon",["root","active","completed","error","text"]);var Ep;const oT=e=>{const{classes:t,active:o,completed:r,error:i}=e;return ye({root:["root",o&&"active",r&&"completed",i&&"error"],text:["text"]},nT,t)},$l=Z($r,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(ve(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Pl.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Pl.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Pl.error}`]:{color:(e.vars||e).palette.error.main}}))),rT=Z("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(ve(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),Op=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiStepIcon"}),{active:i=!1,className:s,completed:a=!1,error:l=!1,icon:c,...d}=r,u={...r,active:i,completed:a,error:l},m=oT(u);if(typeof c=="number"||typeof c=="string"){const h=ae(s,m.root);return l?f.jsx($l,{as:tT,className:h,ref:o,ownerState:u,...d}):a?f.jsx($l,{as:eT,className:h,ref:o,ownerState:u,...d}):f.jsxs($l,{className:h,ref:o,ownerState:u,...d,children:[Ep||(Ep=f.jsx("circle",{cx:"12",cy:"12",r:"12"})),f.jsx(rT,{className:m.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:c})]})}return c});process.env.NODE_ENV!=="production"&&(Op.propTypes={active:n.bool,classes:n.object,className:n.string,completed:n.bool,error:n.bool,icon:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function iT(e){return ge("MuiStepLabel",e)}const Zn=be("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),sT=e=>{const{classes:t,orientation:o,active:r,completed:i,error:s,disabled:a,alternativeLabel:l}=e;return ye({root:["root",o,s&&"error",a&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",s&&"error",a&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",s&&"error",a&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},iT,t)},aT=Z("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})({display:"flex",alignItems:"center",[`&.${Zn.alternativeLabel}`]:{flexDirection:"column"},[`&.${Zn.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),lT=Z("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(ve(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Zn.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Zn.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Zn.alternativeLabel}`]:{marginTop:16},[`&.${Zn.error}`]:{color:(e.vars||e).palette.error.main}}))),cT=Z("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${Zn.alternativeLabel}`]:{paddingRight:0}}),uT=Z("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(ve(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Zn.alternativeLabel}`]:{textAlign:"center"}}))),Rl=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiStepLabel"}),{children:i,className:s,componentsProps:a={},error:l=!1,icon:c,optional:d,slots:u={},slotProps:m={},StepIconComponent:h,StepIconProps:y,...g}=r,{alternativeLabel:p,orientation:C}=v.useContext(ei),{active:w,disabled:E,completed:x,icon:T}=v.useContext(Ds),S=c||T;let P=h;S&&!P&&(P=Op);const O={...r,active:w,alternativeLabel:p,completed:x,disabled:E,error:l,orientation:C},k=sT(O),R={slots:u,slotProps:{stepIcon:y,...a,...m}},[b,j]=Ne("root",{elementType:aT,externalForwardedProps:{...R,...g},ownerState:O,ref:o,className:ae(k.root,s)}),[N,M]=Ne("label",{elementType:lT,externalForwardedProps:R,ownerState:O}),[z,F]=Ne("stepIcon",{elementType:P,externalForwardedProps:R,ownerState:O});return f.jsxs(b,{...j,children:[S||z?f.jsx(cT,{className:k.iconContainer,ownerState:O,children:f.jsx(z,{completed:x,active:w,error:l,icon:S,...F})}):null,f.jsxs(uT,{className:k.labelContainer,ownerState:O,children:[i?f.jsx(N,{...M,className:ae(k.label,M==null?void 0:M.className),children:i}):null,d]})]})});process.env.NODE_ENV!=="production"&&(Rl.propTypes={children:n.node,classes:n.object,className:n.string,componentsProps:n.shape({label:n.object}),error:n.bool,icon:n.node,optional:n.node,slotProps:n.shape({label:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),stepIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({label:n.elementType,root:n.elementType,stepIcon:n.elementType}),StepIconComponent:n.elementType,StepIconProps:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])}),Rl.muiName="StepLabel";function dT(e){return ge("MuiStepConnector",e)}be("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const pT=e=>{const{classes:t,orientation:o,alternativeLabel:r,active:i,completed:s,disabled:a}=e,l={root:["root",o,r&&"alternativeLabel",i&&"active",s&&"completed",a&&"disabled"],line:["line",`line${ee(o)}`]};return ye(l,dT,t)},fT=Z("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),mT=Z("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${ee(o.orientation)}`]]}})(ve(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),kp=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiStepConnector"}),{className:i,...s}=r,{alternativeLabel:a,orientation:l="horizontal"}=v.useContext(ei),{active:c,disabled:d,completed:u}=v.useContext(Ds),m={...r,alternativeLabel:a,orientation:l,active:c,completed:u,disabled:d},h=pT(m);return f.jsx(fT,{className:ae(h.root,i),ref:o,ownerState:m,...s,children:f.jsx(mT,{className:h.line,ownerState:m})})});process.env.NODE_ENV!=="production"&&(kp.propTypes={classes:n.object,className:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function hT(e){return ge("MuiStepper",e)}be("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const gT=e=>{const{orientation:t,nonLinear:o,alternativeLabel:r,classes:i}=e;return ye({root:["root",t,o&&"nonLinear",r&&"alternativeLabel"]},hT,i)},bT=Z("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),yT=f.jsx(kp,{}),Pp=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:s=!1,children:a,className:l,component:c="div",connector:d=yT,nonLinear:u=!1,orientation:m="horizontal",...h}=r,y={...r,nonLinear:u,alternativeLabel:s,orientation:m,component:c},g=gT(y),p=v.Children.toArray(a).filter(Boolean),C=p.map((E,x)=>v.cloneElement(E,{index:x,last:x+1===p.length,...E.props})),w=v.useMemo(()=>({activeStep:i,alternativeLabel:s,connector:d,nonLinear:u,orientation:m}),[i,s,d,u,m]);return f.jsx(ei.Provider,{value:w,children:f.jsx(bT,{as:c,ownerState:y,className:ae(g.root,l),ref:o,...h,children:C})})});process.env.NODE_ENV!=="production"&&(Pp.propTypes={activeStep:Bo,alternativeLabel:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,connector:n.element,nonLinear:n.bool,orientation:n.oneOf(["horizontal","vertical"]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function vT(e){return ge("MuiSwitch",e)}const Bt=be("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),xT=e=>{const{classes:t,edge:o,size:r,color:i,checked:s,disabled:a}=e,l={root:["root",o&&`edge${ee(o)}`,`size${ee(r)}`],switchBase:["switchBase",`color${ee(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=ye(l,vT,t);return{...t,...c}},CT=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${ee(o.edge)}`],t[`size${ee(o.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Bt.thumb}`]:{width:16,height:16},[`& .${Bt.switchBase}`]:{padding:4,[`&.${Bt.checked}`]:{transform:"translateX(16px)"}}}}]}),ST=Z(Ss,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${Bt.input}`]:t.input},o.color!=="default"&&t[`color${ee(o.color)}`]]}})(ve(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Bt.checked}`]:{transform:"translateX(20px)"},[`&.${Bt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Bt.checked} + .${Bt.track}`]:{opacity:.5},[`&.${Bt.disabled} + .${Bt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Bt.input}`]:{left:"-100%",width:"300%"}})),ve(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Ot(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Bt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Er(e.palette[t].main,.62):wr(e.palette[t].main,.55)}`}},[`&.${Bt.checked} + .${Bt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),TT=Z("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(ve(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),wT=Z("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(ve(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),_s=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:d={},slotProps:u={},...m}=r,h={...r,color:s,edge:a,size:l},y=xT(h),g={slots:d,slotProps:u},[p,C]=Ne("root",{className:ae(y.root,i),elementType:CT,externalForwardedProps:g,ownerState:h,additionalProps:{sx:c}}),[w,E]=Ne("thumb",{className:y.thumb,elementType:wT,externalForwardedProps:g,ownerState:h}),x=f.jsx(w,{...E}),[T,S]=Ne("track",{className:y.track,elementType:TT,externalForwardedProps:g,ownerState:h});return f.jsxs(p,{...C,children:[f.jsx(ST,{type:"checkbox",icon:x,checkedIcon:x,ref:o,ownerState:h,...m,classes:{...y,root:y.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),f.jsx(T,{...S})]})});process.env.NODE_ENV!=="production"&&(_s.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),defaultChecked:n.bool,disabled:n.bool,disableRipple:n.bool,edge:n.oneOf(["end","start",!1]),icon:n.node,id:n.string,inputProps:n.object,inputRef:Lt,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),switchBase:n.oneOfType([n.func,n.object]),thumb:n.oneOfType([n.func,n.object]),track:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType,switchBase:n.elementType,thumb:n.elementType,track:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});const jl=v.createContext();process.env.NODE_ENV!=="production"&&(jl.displayName="TableContext");function ET(e){return ge("MuiTable",e)}be("MuiTable",["root","stickyHeader"]);const OT=e=>{const{classes:t,stickyHeader:o}=e;return ye({root:["root",o&&"stickyHeader"]},ET,t)},kT=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})(ve(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),$p="table",Rp=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTable"}),{className:i,component:s=$p,padding:a="normal",size:l="medium",stickyHeader:c=!1,...d}=r,u={...r,component:s,padding:a,size:l,stickyHeader:c},m=OT(u),h=v.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return f.jsx(jl.Provider,{value:h,children:f.jsx(kT,{as:s,role:s===$p?null:"table",ref:o,className:ae(m.root,i),ownerState:u,...d})})});process.env.NODE_ENV!=="production"&&(Rp.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,padding:n.oneOf(["checkbox","none","normal"]),size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),stickyHeader:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const ti=v.createContext();process.env.NODE_ENV!=="production"&&(ti.displayName="Tablelvl2Context");function PT(e){return ge("MuiTableBody",e)}be("MuiTableBody",["root"]);const $T=e=>{const{classes:t}=e;return ye({root:["root"]},PT,t)},RT=Z("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),jT={variant:"body"},jp="tbody",Ip=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTableBody"}),{className:i,component:s=jp,...a}=r,l={...r,component:s},c=$T(l);return f.jsx(ti.Provider,{value:jT,children:f.jsx(RT,{className:ae(c.root,i),as:s,ref:o,role:s===jp?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Ip.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function IT(e){return ge("MuiTableCell",e)}const NT=be("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),MT=e=>{const{classes:t,variant:o,align:r,padding:i,size:s,stickyHeader:a}=e,l={root:["root",o,a&&"stickyHeader",r!=="inherit"&&`align${ee(r)}`,i!=="normal"&&`padding${ee(i)}`,`size${ee(s)}`]};return ye(l,IT,t)},AT=Z("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${ee(o.size)}`],o.padding!=="normal"&&t[`padding${ee(o.padding)}`],o.align!=="inherit"&&t[`align${ee(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(ve(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
280
|
+
${e.palette.mode==="light"?Er(ke(e.palette.divider,1),.88):wr(ke(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${NT.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Xo=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:l,scope:c,size:d,sortDirection:u,variant:m,...h}=r,y=v.useContext(jl),g=v.useContext(ti),p=g&&g.variant==="head";let C;a?C=a:C=p?"th":"td";let w=c;C==="td"?w=void 0:!w&&p&&(w="col");const E=m||g&&g.variant,x={...r,align:i,component:C,padding:l||(y&&y.padding?y.padding:"normal"),size:d||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:E==="head"&&y&&y.stickyHeader,variant:E},T=MT(x);let S=null;return u&&(S=u==="asc"?"ascending":"descending"),f.jsx(AT,{as:C,ref:o,className:ae(T.root,s),"aria-sort":S,scope:w,ownerState:x,...h})});process.env.NODE_ENV!=="production"&&(Xo.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,component:n.elementType,padding:n.oneOf(["checkbox","none","normal"]),scope:n.string,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sortDirection:n.oneOf(["asc","desc",!1]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body","footer","head"]),n.string])});function DT(e){return ge("MuiTableContainer",e)}be("MuiTableContainer",["root"]);const _T=e=>{const{classes:t}=e;return ye({root:["root"]},DT,t)},LT=Z("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Np=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,l={...r,component:s},c=_T(l);return f.jsx(LT,{ref:o,as:s,className:ae(c.root,i),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Np.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function BT(e){return ge("MuiTableHead",e)}be("MuiTableHead",["root"]);const FT=e=>{const{classes:t}=e;return ye({root:["root"]},BT,t)},zT=Z("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),VT={variant:"head"},Mp="thead",Ap=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTableHead"}),{className:i,component:s=Mp,...a}=r,l={...r,component:s},c=FT(l);return f.jsx(ti.Provider,{value:VT,children:f.jsx(zT,{as:s,className:ae(c.root,i),ref:o,role:s===Mp?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Ap.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function WT(e){return ge("MuiToolbar",e)}be("MuiToolbar",["root","gutters","regular","dense"]);const UT=e=>{const{classes:t,disableGutters:o,variant:r}=e;return ye({root:["root",!o&&"gutters",r]},WT,t)},HT=Z("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})(ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),ni=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiToolbar"}),{className:i,component:s="div",disableGutters:a=!1,variant:l="regular",...c}=r,d={...r,component:s,disableGutters:a,variant:l},u=UT(d);return f.jsx(HT,{as:s,className:ae(u.root,i),ref:o,ownerState:d,...c})});process.env.NODE_ENV!=="production"&&(ni.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,disableGutters:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["dense","regular"]),n.string])});function qT(e){return ge("MuiTableRow",e)}const Dp=be("MuiTableRow",["root","selected","hover","head","footer"]),GT=e=>{const{classes:t,selected:o,hover:r,head:i,footer:s}=e;return ye({root:["root",o&&"selected",r&&"hover",i&&"head",s&&"footer"]},qT,t)},YT=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})(ve(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Dp.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Dp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),_p="tr",Ls=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTableRow"}),{className:i,component:s=_p,hover:a=!1,selected:l=!1,...c}=r,d=v.useContext(ti),u={...r,component:s,hover:a,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},m=GT(u);return f.jsx(YT,{as:s,ref:o,className:ae(m.root,i),role:s===_p?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(Ls.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,hover:n.bool,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const KT=dt(f.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function XT(e){return ge("MuiTableSortLabel",e)}const Il=be("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),JT=e=>{const{classes:t,direction:o,active:r}=e,i={root:["root",r&&"active",`direction${ee(o)}`],icon:["icon",`iconDirection${ee(o)}`]};return ye(i,XT,t)},ZT=Z(Tn,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})(ve(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Il.icon}`]:{opacity:.5}},[`&.${Il.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Il.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),QT=Z("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${ee(o.direction)}`]]}})(ve(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Lp=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTableSortLabel"}),{active:i=!1,children:s,className:a,direction:l="asc",hideSortIcon:c=!1,IconComponent:d=KT,slots:u={},slotProps:m={},...h}=r,y={...r,active:i,direction:l,hideSortIcon:c,IconComponent:d},g=JT(y),p={slots:u,slotProps:m},[C,w]=Ne("root",{elementType:ZT,externalForwardedProps:p,ownerState:y,className:ae(g.root,a),ref:o}),[E,x]=Ne("icon",{elementType:QT,externalForwardedProps:p,ownerState:y,className:g.icon});return f.jsxs(C,{disableRipple:!0,component:"span",...w,...h,children:[s,c&&!i?null:f.jsx(E,{as:d,...x})]})});process.env.NODE_ENV!=="production"&&(Lp.propTypes={active:n.bool,children:n.node,classes:n.object,className:n.string,direction:n.oneOf(["asc","desc"]),hideSortIcon:n.bool,IconComponent:n.elementType,slotProps:n.shape({icon:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({icon:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function ew(e){return ge("MuiTextField",e)}be("MuiTextField",["root"]);const tw={standard:Rs,filled:Ps,outlined:Is},nw=e=>{const{classes:t}=e;return ye({root:["root"]},ew,t)},ow=Z(Wr,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rn=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:d,disabled:u=!1,error:m=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:p,InputLabelProps:C,inputProps:w,InputProps:E,inputRef:x,label:T,maxRows:S,minRows:P,multiline:O=!1,name:k,onBlur:R,onChange:b,onFocus:j,placeholder:N,required:M=!1,rows:z,select:F=!1,SelectProps:L,slots:X={},slotProps:J={},type:W,value:B,variant:A="outlined",...Q}=r,Y={...r,autoFocus:s,color:c,disabled:u,error:m,fullWidth:y,multiline:O,required:M,select:F,variant:A},q=nw(Y);process.env.NODE_ENV!=="production"&&F&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const U=In(p),_=g&&U?`${U}-helper-text`:void 0,G=T&&U?`${U}-label`:void 0,H=tw[A],ne={slots:X,slotProps:{input:E,inputLabel:C,htmlInput:w,formHelperText:h,select:L,...J}},se={},ce=ne.slotProps.inputLabel;A==="outlined"&&(ce&&typeof ce.shrink<"u"&&(se.notched=ce.shrink),se.label=T),F&&((!L||!L.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const[D,Ee]=Ne("root",{elementType:ow,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Q},ownerState:Y,className:ae(q.root,l),ref:o,additionalProps:{disabled:u,error:m,fullWidth:y,required:M,color:c,variant:A}}),[de,Ce]=Ne("input",{elementType:H,externalForwardedProps:ne,additionalProps:se,ownerState:Y}),[We,ue]=Ne("inputLabel",{elementType:js,externalForwardedProps:ne,ownerState:Y}),[Me,Te]=Ne("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:Y}),[_e,Be]=Ne("formHelperText",{elementType:gl,externalForwardedProps:ne,ownerState:Y}),[me,at]=Ne("select",{elementType:Zr,externalForwardedProps:ne,ownerState:Y}),ze=f.jsx(de,{"aria-describedby":_,autoComplete:i,autoFocus:s,defaultValue:d,fullWidth:y,multiline:O,name:k,rows:z,maxRows:S,minRows:P,type:W,value:B,id:U,inputRef:x,onBlur:R,onChange:b,onFocus:j,placeholder:N,inputProps:Te,slots:{input:X.htmlInput?Me:void 0},...Ce});return f.jsxs(D,{...Ee,children:[T!=null&&T!==""&&f.jsx(We,{htmlFor:U,id:G,...ue,children:T}),F?f.jsx(me,{"aria-describedby":_,id:U,labelId:G,value:B,input:ze,...at,children:a}):ze,g&&f.jsx(_e,{id:_,...Be,children:g})]})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={autoComplete:n.string,autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),defaultValue:n.any,disabled:n.bool,error:n.bool,FormHelperTextProps:n.object,fullWidth:n.bool,helperText:n.node,id:n.string,InputLabelProps:n.object,inputProps:n.object,InputProps:n.object,inputRef:Lt,label:n.node,margin:n.oneOf(["dense","none","normal"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,placeholder:n.string,required:n.bool,rows:n.oneOfType([n.number,n.string]),select:n.bool,SelectProps:n.object,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({formHelperText:n.oneOfType([n.func,n.object]),htmlInput:n.oneOfType([n.func,n.object]),input:n.oneOfType([n.func,n.object]),inputLabel:n.oneOfType([n.func,n.object]),select:n.oneOfType([n.func,n.object])}),slots:n.shape({formHelperText:n.elementType,htmlInput:n.elementType,input:n.elementType,inputLabel:n.elementType,root:n.elementType,select:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any,variant:n.oneOf(["filled","outlined","standard"])});function rw(e){return ge("MuiToggleButton",e)}const So=be("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Nl=v.createContext({});process.env.NODE_ENV!=="production"&&(Nl.displayName="ToggleButtonGroupContext");const Ml=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ml.displayName="ToggleButtonGroupButtonContext");function iw(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const sw=e=>{const{classes:t,fullWidth:o,selected:r,disabled:i,size:s,color:a}=e,l={root:["root",r&&"selected",i&&"disabled",o&&"fullWidth",`size${ee(s)}`,a]};return ye(l,rw,t)},aw=Z(Tn,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${ee(o.size)}`]]}})(ve(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${So.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${So.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{[`&.${So.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),Al=v.forwardRef(function(t,o){const{value:r,...i}=v.useContext(Nl),s=v.useContext(Ml),a=_o({...i,selected:iw(t.value,r)},t),l=xe({props:a,name:"MuiToggleButton"}),{children:c,className:d,color:u="standard",disabled:m=!1,disableFocusRipple:h=!1,fullWidth:y=!1,onChange:g,onClick:p,selected:C,size:w="medium",value:E,...x}=l,T={...l,color:u,disabled:m,disableFocusRipple:h,fullWidth:y,size:w},S=sw(T),P=k=>{p&&(p(k,E),k.defaultPrevented)||g&&g(k,E)},O=s||"";return f.jsx(aw,{className:ae(i.className,S.root,d,O),disabled:m,focusRipple:!h,ref:o,onClick:P,onChange:g,value:E,ownerState:T,"aria-pressed":C,...x,children:c})});process.env.NODE_ENV!=="production"&&(Al.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["standard","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,fullWidth:n.bool,onChange:n.func,onClick:n.func,selected:n.bool,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any.isRequired});function lw(e){return ge("MuiToggleButtonGroup",e)}const pt=be("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),cw=e=>{const{classes:t,orientation:o,fullWidth:r,disabled:i}=e,s={root:["root",o,r&&"fullWidth"],grouped:["grouped",`grouped${ee(o)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return ye(s,lw,t)},uw=Z("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${pt.grouped}`]:t.grouped},{[`& .${pt.grouped}`]:t[`grouped${ee(o.orientation)}`]},{[`& .${pt.firstButton}`]:t.firstButton},{[`& .${pt.lastButton}`]:t.lastButton},{[`& .${pt.middleButton}`]:t.middleButton},t.root,o.orientation==="vertical"&&t.vertical,o.fullWidth&&t.fullWidth]}})(ve(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${pt.grouped}`]:{[`&.${pt.selected} + .${pt.grouped}.${pt.selected}`]:{borderTop:0,marginTop:0}},[`& .${pt.firstButton},& .${pt.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${pt.lastButton},& .${pt.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${pt.lastButton}.${So.disabled},& .${pt.middleButton}.${So.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${pt.grouped}`]:{[`&.${pt.selected} + .${pt.grouped}.${pt.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${pt.firstButton},& .${pt.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${pt.lastButton},& .${pt.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${pt.lastButton}.${So.disabled},& .${pt.middleButton}.${So.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Bp=v.forwardRef(function(t,o){const r=xe({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:s,color:a="standard",disabled:l=!1,exclusive:c=!1,fullWidth:d=!1,onChange:u,orientation:m="horizontal",size:h="medium",value:y,...g}=r,p={...r,disabled:l,fullWidth:d,orientation:m,size:h},C=cw(p),w=v.useCallback((O,k)=>{if(!u)return;const R=y&&y.indexOf(k);let b;y&&R>=0?(b=y.slice(),b.splice(R,1)):b=y?y.concat(k):[k],u(O,b)},[u,y]),E=v.useCallback((O,k)=>{u&&u(O,y===k?null:k)},[u,y]),x=v.useMemo(()=>({className:C.grouped,onChange:c?E:w,value:y,size:h,fullWidth:d,color:a,disabled:l}),[C.grouped,c,E,w,y,h,d,a,l]),T=Og(i),S=T.length,P=O=>{const k=O===0,R=O===S-1;return k&&R?"":k?C.firstButton:R?C.lastButton:C.middleButton};return f.jsx(uw,{role:"group",className:ae(C.root,s),ref:o,ownerState:p,...g,children:f.jsx(Nl.Provider,{value:x,children:T.map((O,k)=>(process.env.NODE_ENV!=="production"&&zn.isFragment(O)&&console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
281
|
+
`)),f.jsx(Ml.Provider,{value:P(k),children:O},k)))})})});process.env.NODE_ENV!=="production"&&(Bp.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["standard","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,exclusive:n.bool,fullWidth:n.bool,onChange:n.func,orientation:n.oneOf(["horizontal","vertical"]),size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});async function kt(e,t=!1){try{const o=await fetch(e);if(!o.ok){const i={url:e,ok:!1,status:o.status,error:await o.text()};return t&&console.log("getJson",i),i}const r={url:e,ok:!0,status:o.status,json:await o.json()};return t&&console.log("getJson",r),r}catch(o){const r={url:e,ok:!1,status:0,error:o.message};return t&&console.log("getJson",r),r}}const Bs=async({url:e,setter:t,debug:o=!1})=>{const r=await kt(e,o);if(r.ok)t(r.json);else return r};async function Fp(e,t=!1){try{const o=await fetch(e,{method:"POST"});if(!o.ok){const i={url:e,ok:!1,status:o.status,error:await o.text()};return t&&console.log("postEmptyJson",i),i}const r={url:e,ok:!0,status:o.status,json:await o.json()};return t&&console.log("postEmptyJson",r),r}catch(o){const r={url:e,ok:!1,status:0,error:o.message};return t&&console.log("postEmptyJson",r),r}}const fe=(e,t)=>t[e]||e,Jo=$.createContext({debug:!1,setDebug:()=>{}}),Jt=$.createContext({i18n:{},setI18n:()=>{}}),To=$.createContext({enableNet:!1,setEnableNet:()=>{}});function zp({callBack:e=()=>{},internetDialogOpen:t,setInternetDialogOpen:o}){const{i18nRef:r}=$.useContext(Jt),{debugRef:i}=$.useContext(Jo),{enabledRef:s}=$.useContext(To);$.useEffect(()=>{t&&s.current&&a()},[t]);const a=()=>{o(!1),e()},l=()=>{Fp("/api/net/enable",i.current)};return f.jsxs(fl,{open:t,onClose:a,slotProps:{paper:{component:"form"}},children:[f.jsx(Kd,{children:f.jsx("b",{children:fe("components:header:internet_question_label",r.current)})}),f.jsx(Yd,{children:f.jsx(ml,{children:f.jsx(xt,{children:fe("components:header:internet_question",r.current)})})}),f.jsxs(Os,{children:[f.jsx(bo,{onClick:a,children:fe("components:header:cancel",r.current)}),f.jsx(bo,{onClick:()=>{l(),o(!1)},children:fe("components:header:accept",r.current)})]})]})}const Vp=dt(f.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"DoneOutlined"),dw=dt(f.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined");function pw({tooltipLabel:e}){return f.jsx(kl,{title:e,children:f.jsx(wn,{disableRipple:!0,sx:{color:"white"},children:f.jsx(dw,{})})})}function Wp({title:e}){return f.jsx(pw,{tooltipLabel:e})}function Dl({netEnabled:e,debug:t=!1}){const{i18nRef:o}=$.useContext(Jt),[r,i]=$.useState(!1),[s,a]=$.useState(""),l=e?"online":"offline",c=()=>{Fp("/api/net/disable",t)},d=(u,m)=>{e?c():i(!0)};return $.useEffect(()=>{kt("/api/version").then(u=>u.json).then(u=>a(u.product_name)).catch(u=>console.error("Error :",u))},[]),f.jsxs(ot,{children:[f.jsxs(gt,{container:!0,alignItems:"center",spacing:1,children:[f.jsx(gt,{children:f.jsxs(Bp,{onChange:(u,m)=>{m!==null&&d()},exclusive:!0,color:"secondary",size:"small",value:l,sx:{background:u=>ke(u.palette.common.white,.3),height:"34px"},children:[f.jsxs(Al,{disableFocusRipple:!0,value:"offline",sx:{color:"white","&.Mui-selected":{color:"white",backgroundColor:u=>ke(u.palette.secondary.main,1)},"&.Mui-selected:hover":{backgroundColor:u=>ke(u.palette.secondary.main,1),color:"white"}},children:[l==="offline"&&f.jsx(Vp,{fontSize:"small",sx:{paddingRight:1}}),fe("components:header:offline_mode",o.current)]}),f.jsxs(Al,{disableFocusRipple:!0,value:"online",sx:{color:"white","&.Mui-selected":{color:"white",backgroundColor:u=>ke(u.palette.secondary.main,1)},"&.Mui-selected:hover":{backgroundColor:u=>ke(u.palette.secondary.main,1),color:"white"}},children:[l==="online"&&f.jsx(Vp,{fontSize:"small",sx:{paddingRight:1}}),fe("components:header:online_mode",o.current)]})]})}),f.jsx(gt,{children:f.jsx(Wp,{title:fe("components:header:tooltip_offline_mode",o.current).replace("{1}",s)})})]}),f.jsx(zp,{internetDialogOpen:r,setInternetDialogOpen:i})]})}const Up=dt(f.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),fw=dt(f.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),mw=dt(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function hw({i18n:e,netEnabled:t,debug:o}){const[r,i]=$.useState(!1),[s,a]=$.useState(!1),[l,c]=$.useState([]);$.useEffect(()=>{(async()=>{const m=await kt("/api/list-clients",o);m.ok&&c(m.json.filter(h=>!h.exclude_from_menu&&(o||!h.requires.debug)))})().then()},[o]);const d=u=>{kt(`/api/debug/${o} ? "disable" : "enable"}`).then(()=>{u.stopPropagation(),u.preventDefault()})};return f.jsxs(ot,{sx:{m:0,mr:2},children:[f.jsx(wn,{onClick:u=>i(!0),children:f.jsx(Up,{})}),f.jsx(hl,{open:r,onClose:()=>i(!1),slotProps:{paper:{sx:{width:"auto",overflow:"hidden"}}},children:f.jsx(ot,{sx:{width:"100%",minHeight:"98vh",minWidth:"20vw",m:0,p:0},role:"presentation",children:f.jsx(vo,{sx:{height:"100%",width:"100%"},children:f.jsxs(Co,{direction:"column",spacing:0,sx:{height:"100%",width:"100%",justifyContent:"space-between",alignItems:"flex-start"},children:[f.jsx(ot,{sx:{width:"100%"},children:l.map((u,m)=>f.jsx(xo,{disablePadding:!0,children:f.jsx(Pn,{disabled:u.requires.net&&!t.current,onClick:()=>{window.location.href=u.url},children:f.jsx($n,{primary:fe(`pages:${u.id}:title`,e)})})},m))}),f.jsxs(ot,{children:[f.jsx(xo,{disablePadding:!0,children:f.jsx(Pn,{onClick:()=>{window.location.href="/clients/settings"},children:f.jsx($n,{primary:fe("pages:core-settings:title",e)})})}),f.jsx(xo,{sx:{width:"auto"},disablePadding:!0,children:f.jsxs(Pn,{onClick:()=>a(u=>!u),children:[f.jsx($n,{primary:fe("components:header:advanced",e)}),s?f.jsx(fw,{}):f.jsx(mw,{})]})}),f.jsx(os,{in:s,timeout:"auto",unmountOnExit:!0,children:f.jsx(vo,{component:"div",disablePadding:!0,children:f.jsxs(Pn,{onClick:d,sx:{pl:4},children:[f.jsx($n,{primary:fe("components:header:experimental_mode",e)}),f.jsx(_s,{edge:"end",onChange:d,checked:o})]})})}),f.jsx(ot,{sx:{visibility:"hidden",position:"absolute",whiteSpace:"nowrap",top:0,left:0},children:f.jsx(vo,{component:"div",disablePadding:!0,children:f.jsxs(Pn,{onClick:d,sx:{pl:4},children:[f.jsx($n,{primary:fe("components:header:experimental_mode",e)}),f.jsx(_s,{edge:"end",onChange:d,checked:o})]})})})]})]})})})})]})}const Fs=$.createContext({clientConfig:{},setClientConfig:()=>{}});function gw({titleLabel:e,isOpen:t,closeFn:o,children:r,theme:i,size:s="md",fullWidth:a=!0,showInternetSwitch:l=!1}){var p,C,w,E,x;const c=i?ts:$.Fragment,d=i?{theme:i}:{},{enabledRef:u}=$.useContext(To),{i18nRef:m}=$.useContext(Jt),{debugRef:h}=$.useContext(Jo),{clientConfigRef:y}=$.useContext(Fs),g=((w=(C=(p=y.current._global)==null?void 0:p.find(T=>T.id==="internetConfig"))==null?void 0:C.fields.find(T=>T.id==="internetConnectionAccess"))==null?void 0:w.value)??!0;return f.jsx(c,{...d,children:f.jsxs(fl,{open:t,onClose:o,sx:{overflow:"hidden"},slotProps:{sx:{overflow:"hidden !important",display:"flex",flexDirection:"column"},paper:{component:"form"}},fullWidth:a,maxWidth:s,children:[f.jsx(Za,{position:"sticky",sx:{position:"relative",borderTopLeftRadius:4,borderTopRightRadius:4,backgroundColor:(x=(E=i==null?void 0:i.palette)==null?void 0:E.secondary)==null?void 0:x.main},children:f.jsxs(ni,{sx:{justifyContent:"space-between"},children:[f.jsx(xt,{variant:"h6",component:"div",children:e}),g&&l&&f.jsx(Dl,{i18n:m.current,netEnabled:u.current,debug:h.current})]})}),r]})})}function Hp({label:e,actionFn:t,isDisabled:o,variant:r}){return f.jsx(bo,{onClick:t,disabled:o,color:"primary",variant:r,children:e})}function bw({actionFn:e,actionLabel:t,closeFn:o,closeLabel:r,isDisabled:i,closeOnAction:s=!0,onlyCloseButton:a=!1,actionVariant:l,closeVariant:c}){return f.jsxs(Os,{children:[f.jsx(Hp,{actionFn:o,isDisabled:!1,label:r,variant:c}),a?null:f.jsx(Hp,{actionFn:()=>{e(),s&&o()},isDisabled:i,label:t,variant:l})]})}const yw=dt(f.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff"),vw=dt(f.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),xw=dt(f.jsx("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");function qp(e){const{onSelectAllClick:t,numSelected:o,order:r,orderBy:i,rowCount:s,onRequestSort:a,columns:l,columnFilters:c,setColumnFilter:d,showColumnFilters:u,groupOperations:m,checkboxSelection:h}=e,y=O=>k=>{a(k,O)},[g,p]=$.useState(null),[C,w]=$.useState(null),E=(O,k)=>{O.stopPropagation(),p(O.currentTarget),w(k)},x=()=>{p(null),w(null)},T=O=>{const k=O.target.value;d(C,k)},S=!!g,P=S?"filter-popover":void 0;return f.jsxs(Ap,{children:[f.jsxs(Ls,{children:[(h||m)&&f.jsx(Xo,{padding:"checkbox",children:f.jsx(yo,{color:"primary",indeterminate:o>0&&o<s,checked:s>0&&o===s,onChange:t,slotProps:{"aria-label":"select all rows"}})}),l.map(O=>f.jsx(Xo,{align:O.alignRight?"right":"left",padding:O.disablePadding?"none":"normal",sortDirection:i===O.field?r:!1,sx:{width:O.width||"auto",minWidth:O.minWidth||"none",flex:O.flex||"none"},children:f.jsxs(ot,{sx:{display:"flex",alignItems:"center",justifyContent:O.alignRight?"flex-end":"flex-start"},children:[f.jsxs(Lp,{active:i===O.field,direction:i===O.field?r:"asc",onClick:y(O.field),children:[O.headerName,i===O.field?f.jsx(ot,{component:"span",sx:kg,children:r==="desc"?"sorted descending":"sorted ascending"}):null]}),u&&!O.numeric&&f.jsx(wn,{size:"small",onClick:k=>E(k,O.field),sx:{ml:.5,p:.5},color:c[O.field]?"primary":"default",children:f.jsx(vw,{fontSize:"small"})})]})},O.field))]}),f.jsx(Cl,{id:P,open:S,anchorEl:g,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:f.jsx(ot,{sx:{p:2},children:f.jsx(Rn,{label:`Filter ${C}`,variant:"outlined",value:C?c[C]:"",onChange:T,size:"small",autoFocus:!0,slotProps:{input:{endAdornment:C&&c[C]&&f.jsx(wn,{size:"small",onClick:O=>{O.stopPropagation(),d(C,""),x()},edge:"end",sx:{color:"primary.main","&:hover":{backgroundColor:"action.hover"}},children:f.jsx(xw,{fontSize:"small"})})}}})})})]})}qp.propTypes={onRequestSort:n.func.isRequired,order:n.oneOf(["asc","desc"]).isRequired,orderBy:n.string.isRequired,columns:n.array.isRequired,setColumnFilter:n.func.isRequired,columnFilters:n.object.isRequired};function Gp(e){const{numSelected:t,selectedIds:o,clearSelection:r,tableTitle:i,groupOperations:s,dataRows:a}=e,l=$.useMemo(()=>{if(s&&s.length>0){const c={selectedIds:o,numSelected:t,clearSelection:r},d={};return s.forEach(u=>{d[u.label]=()=>u.action(c,a)}),d}},[o,t,a]);return f.jsxs(ni,{sx:{pl:{sm:2},pr:{xs:1,sm:1},...t>0&&{bgcolor:c=>ke(c.palette.primary.main,c.palette.action.activatedOpacity)}},children:[t>0?f.jsxs(xt,{sx:{flex:"1 1 100%"},color:"inherit",variant:"subtitle1",component:"div",children:[t," selected"]}):i&&f.jsx(xt,{sx:{flex:"1 1 100%"},variant:"h6",id:"tableTitle",component:"div",children:i}),t>0?f.jsx(f.Fragment,{children:s&&s.map((c,d)=>{const u=c.icon,m=l[c.label];return f.jsx(kl,{title:c.label,children:f.jsx(wn,{onClick:m,disabled:t===0,children:f.jsx(u,{sx:{fontSize:28,color:"black"}})})},d)})}):f.jsx(f.Fragment,{})]})}Gp.propTypes={numSelected:n.number.isRequired,selectedIds:n.array.isRequired,clearSelection:n.func.isRequired};function Yp(e,t,o){return t[o]<e[o]?-1:t[o]>e[o]?1:0}function Cw(e,t){return e==="desc"?(o,r)=>Yp(o,r,t):(o,r)=>-Yp(o,r,t)}function Kp({columns:e,rows:t,defaultFilter:o,setDefaultFilter:r,filterPreset:i,showColumnFilters:s,tableTitle:a,groupOperations:l,sx:c,theme:d,onRowSelectionModelChange:u,checkboxSelection:m,initialState:h,preSelections:y}){var q,U;const[g,p]=$.useState(h!=null&&h.sorting?(q=h==null?void 0:h.sorting)==null?void 0:q.order:"asc"),[C,w]=$.useState(h!=null&&h.sorting?(U=h==null?void 0:h.sorting)==null?void 0:U.field:"date"),[E,x]=$.useState([]),[T,S]=$.useState([]),P=d?ts:$.Fragment,O=d?{theme:d}:{},[k,R]=$.useState(0),b=$.useRef(null),[j,N]=$.useState(0),M=$.useRef(null);$.useEffect(()=>{if(!M.current)return;const _=new ResizeObserver(G=>{for(const H of G)N(H.contentRect.height)});return _.observe(M.current),()=>_.disconnect()},[i]),$.useEffect(()=>{if(!b.current)return;const _=new ResizeObserver(G=>{for(const H of G)R(H.contentRect.height)});return _.observe(b.current),()=>_.disconnect()},[i]);const[z,F]=$.useState(()=>{const _={};return e.forEach(G=>{_[G.field]=""}),_}),L=(_,G)=>{p(C===G&&g==="asc"?"desc":"asc"),w(G)};$.useEffect(()=>{y&&x(y)},[y]);const X=_=>{const G=_.target.checked?Y.map(H=>H.id):[];x(G),u&&u(G)},J=(_,G)=>{const H=E.indexOf(G);let ne=[];H===-1?ne=ne.concat(E,G):H===0?ne=ne.concat(E.slice(1)):H===E.length-1?ne=ne.concat(E.slice(0,-1)):H>0&&(ne=ne.concat(E.slice(0,H),E.slice(H+1))),x(ne),u&&u(ne)},W=()=>{x([]),u&&u([])},B=(_,G)=>{F(H=>({...H,[_]:G}))},A=_=>{S(G=>G.includes(_)?G.filter(H=>H!==_):[...G,_])},Q=$.useMemo(()=>{if(!i||T.length===0)return()=>!0;const _=T.map(G=>{const H=i[G];return H&&typeof H.filter=="function"?H.filter:(console.warn(`Invalid filter function found for index ${G}`),()=>!1)});return G=>_.some(H=>H(G))},[T,i]),Y=$.useMemo(()=>[...t].filter(_=>{if(o&&typeof o=="function"&&!o(_)||!Q(_))return!1;for(const G in z){const H=z[G].toLowerCase();if(H&&!String(_[G]).toLowerCase().includes(H))return!1}return!0}).sort(Cw(g,C)),[g,C,t,o,Q,z]);return f.jsx(P,{...O,children:f.jsxs(ot,{id:"test",sx:{width:"100%",height:`calc(100% - ${k+j}px)`},children:[i&&f.jsx(ot,{ref:b,sx:{display:"flex",gap:1,flexWrap:"wrap",p:1},children:f.jsx(Co,{direction:"row",spacing:1,children:i.map((_,G)=>{const H=T.includes(G);return f.jsx(ps,{label:f.jsxs(ot,{sx:{display:"flex",alignItems:"center",gap:H?.5:0},children:[f.jsx("span",{children:_.label}),H&&f.jsx(yw,{sx:{fontSize:24}})]}),variant:H?"filled":"outlined",color:"secondary",onClick:()=>A(G)},_.label)})})}),f.jsxs(ot,{ref:M,children:[l&&f.jsx(Gp,{numSelected:E.length,selectedIds:E,clearSelection:W,tableTitle:a,groupOperations:l,dataRows:t}),!l&&a&&f.jsx(ni,{sx:{pl:{sm:2},pr:{xs:1,sm:1}},children:f.jsx(xt,{sx:{flex:"1 1 100%"},variant:"h6",id:"tableTitle",component:"div",children:a})})]}),f.jsxs(Np,{component:An,sx:c||{height:"100%"},children:[" ",f.jsxs(Rp,{stickyHeader:!0,"aria-label":"pan table",sx:{width:"100%"},children:[f.jsx(qp,{numSelected:E.length,order:g,orderBy:C,onSelectAllClick:X,onRequestSort:L,rowCount:Y.length,columns:e,setColumnFilter:B,columnFilters:z,showColumnFilters:s,groupOperations:l,checkboxSelection:m}),f.jsxs(Ip,{sx:{verticalAlign:"top"},children:[Y.map((_,G)=>{const H=E.includes(_.id);return f.jsxs(Ls,{hover:!0,onClick:ne=>{(m||l)&&J(ne,_.id)},role:"checkbox",tabIndex:-1,selected:H,children:[(m||l)&&f.jsx(Xo,{padding:"checkbox",children:f.jsx(yo,{color:"primary",checked:H})}),e.map(ne=>f.jsx(Xo,{align:ne.alignRight?"right":"left",sx:{whiteSpace:"normal",wordBreak:"break-word"},children:ne.renderCell?ne.renderCell({row:_,id:_.id,field:ne.field}):_[ne.field]},ne.field))]},_.id)}),f.jsx(Ls,{sx:{height:"100%"},children:f.jsx(Xo,{colSpan:e.length,sx:{padding:0,borderBottom:"none",height:"100%"}})})]})]})]})]})})}const Xp=dt(f.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),Sw=dt(f.jsx("path",{d:"M5 18h14v2H5zm4.6-2.7L5 10.7l2-1.9 2.6 2.6L17 4l2 2z"}),"FileDownloadDone"),Tw=dt(f.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");function Jp(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=Jp(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function wo(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=Jp(e))&&(r&&(r+=" "),r+=t);return r}let ww={data:""},Ew=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||ww},Ow=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kw=/\/\*[^]*?\*\/| +/g,Zp=/\n+/g,Eo=(e,t)=>{let o="",r="",i="";for(let s in e){let a=e[s];s[0]=="@"?s[1]=="i"?o=s+" "+a+";":r+=s[1]=="f"?Eo(a,s):s+"{"+Eo(a,s[1]=="k"?"":t)+"}":typeof a=="object"?r+=Eo(a,t?t.replace(/([^,])+/g,l=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):s):a!=null&&(s=s[1]=="-"?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Eo.p?Eo.p(s,a):s+":"+a+";")}return o+(t&&i?t+"{"+i+"}":i)+r},Qn={},Qp=e=>{if(typeof e=="object"){let t="";for(let o in e)t+=o+Qp(e[o]);return t}return e},Pw=(e,t,o,r,i)=>{let s=Qp(e),a=Qn[s]||(Qn[s]=(c=>{let d=0,u=11;for(;d<c.length;)u=101*u+c.charCodeAt(d++)>>>0;return"go"+u})(s));if(!Qn[a]){let c=s!==e?e:(d=>{let u,m,h=[{}];for(;u=Ow.exec(d.replace(kw,""));)u[4]?h.shift():u[3]?(m=u[3].replace(Zp," ").trim(),h.unshift(h[0][m]=h[0][m]||{})):h[0][u[1]]=u[2].replace(Zp," ").trim();return h[0]})(e);Qn[a]=Eo(i?{["@keyframes "+a]:c}:c,o?"":"."+a)}let l=o&&Qn.g;return o&&(Qn.g=Qn[a]),((c,d,u,m)=>{m?d.data=d.data.replace(m,c):d.data.indexOf(c)===-1&&(d.data=u?c+d.data:d.data+c)})(Qn[a],t,r,l),a},$w=(e,t,o)=>e.reduce((r,i,s)=>{let a=t[s];if(a&&a.call){let l=a(o),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=c?"."+c:l&&typeof l=="object"?l.props?"":Eo(l,""):l===!1?"":l}return r+i+(a??"")},"");function _l(e){let t=this||{},o=e.call?e(t.p):e;return Pw(o.unshift?o.raw?$w(o,[].slice.call(arguments,1),t.p):o.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):o,Ew(t.target),t.g,t.o,t.k)}_l.bind({g:1}),_l.bind({k:1});function Rw(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ef(e,t,o){return t&&Rw(e.prototype,t),e}function st(){return st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},st.apply(this,arguments)}function tf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function oi(e,t){if(e==null)return{};var o={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(o[i]=e[i]);return o}function nf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var of=function(){return""},rf=$.createContext({enqueueSnackbar:of,closeSnackbar:of}),Oo={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},sf=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ll=function(t){return""+sf(t.vertical)+sf(t.horizontal)},zs=function(t){return!!t||t===0},Vs="unmounted",Zo="exited",Qo="entering",ri="entered",af="exiting",Bl=(function(e){tf(t,e);function t(r){var i;i=e.call(this,r)||this;var s=r.appear,a;return i.appearStatus=null,r.in?s?(a=Zo,i.appearStatus=Qo):a=ri:r.unmountOnExit||r.mountOnEnter?a=Vs:a=Zo,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===Vs?{status:Zo}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Qo&&a!==ri&&(s=Qo):(a===Qo||a===ri)&&(s=af)}this.updateStatus(!1,s)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var i=this.props.timeout,s=i,a=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(a=i.exit,s=i.enter),{exit:a,enter:s}},o.updateStatus=function(i,s){i===void 0&&(i=!1),s!==null?(this.cancelNextCallback(),s===Qo?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Zo&&this.setState({status:Vs})},o.performEnter=function(i){var s=this,a=this.props.enter,l=i,c=this.getTimeouts();if(!i&&!a){this.safeSetState({status:ri},function(){s.props.onEntered&&s.props.onEntered(s.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:Qo},function(){s.props.onEntering&&s.props.onEntering(s.node,l),s.onTransitionEnd(c.enter,function(){s.safeSetState({status:ri},function(){s.props.onEntered&&s.props.onEntered(s.node,l)})})})},o.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts();if(!s){this.safeSetState({status:Zo},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:af},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Zo},function(){i.props.onExited&&i.props.onExited(i.node)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},o.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(){a&&(a=!1,s.nextCallback=null,i())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},o.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=i==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},o.render=function(){var i=this.state.status;if(i===Vs)return null;var s=this.props,a=s.children,l=oi(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(i,l)},ef(t,[{key:"node",get:function(){var i,s=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!s)throw new Error("notistack - Custom snackbar is not refForwarding");return s}}]),t})($.Component);function er(){}Bl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:er,onEntering:er,onEntered:er,onExit:er,onExiting:er,onExited:er};function lf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Fl(e,t){return $.useMemo(function(){return e==null&&t==null?null:function(o){lf(e,o),lf(t,o)}},[e,t])}function Ws(e){var t=e.timeout,o=e.style,r=o===void 0?{}:o,i=e.mode;return{duration:typeof t=="object"?t[i]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var zl={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},cf=function(t){t.scrollTop=t.scrollTop},uf=function(t){return Math.round(t)+"ms"};function tr(e,t){e===void 0&&(e=["all"]);var o=t||{},r=o.duration,i=r===void 0?300:r,s=o.easing,a=s===void 0?zl.easeInOut:s,l=o.delay,c=l===void 0?0:l,d=Array.isArray(e)?e:[e];return d.map(function(u){var m=typeof i=="string"?i:uf(i),h=typeof c=="string"?c:uf(c);return u+" "+m+" "+a+" "+h}).join(",")}function jw(e){return e&&e.ownerDocument||document}function df(e){var t=jw(e);return t.defaultView||window}function Iw(e,t){t===void 0&&(t=166);var o;function r(){for(var i=this,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];var c=function(){e.apply(i,a)};clearTimeout(o),o=setTimeout(c,t)}return r.clear=function(){clearTimeout(o)},r}function Nw(e,t){var o=t.getBoundingClientRect(),r=df(t),i;if(t.fakeTransform)i=t.fakeTransform;else{var s=r.getComputedStyle(t);i=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var a=0,l=0;if(i&&i!=="none"&&typeof i=="string"){var c=i.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-l)+"px)"}}function Us(e,t){if(t){var o=Nw(e,t);o&&(t.style.webkitTransform=o,t.style.transform=o)}}var pf=$.forwardRef(function(e,t){var o=e.children,r=e.direction,i=r===void 0?"down":r,s=e.in,a=e.style,l=e.timeout,c=l===void 0?0:l,d=e.onEnter,u=e.onEntered,m=e.onExit,h=e.onExited,y=oi(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=$.useRef(null),p=Fl(o.ref,g),C=Fl(p,t),w=function(O,k){Us(i,O),cf(O),d&&d(O,k)},E=function(O){var k=(a==null?void 0:a.transitionTimingFunction)||zl.easeOut,R=Ws({timeout:c,mode:"enter",style:st({},a,{transitionTimingFunction:k})});O.style.webkitTransition=tr("-webkit-transform",R),O.style.transition=tr("transform",R),O.style.webkitTransform="none",O.style.transform="none"},x=function(O){var k=(a==null?void 0:a.transitionTimingFunction)||zl.sharp,R=Ws({timeout:c,mode:"exit",style:st({},a,{transitionTimingFunction:k})});O.style.webkitTransition=tr("-webkit-transform",R),O.style.transition=tr("transform",R),Us(i,O),m&&m(O)},T=function(O){O.style.webkitTransition="",O.style.transition="",h&&h(O)},S=$.useCallback(function(){g.current&&Us(i,g.current)},[i]);return $.useEffect(function(){if(!(s||i==="down"||i==="right")){var P=Iw(function(){g.current&&Us(i,g.current)}),O=df(g.current);return O.addEventListener("resize",P),function(){P.clear(),O.removeEventListener("resize",P)}}},[i,s]),$.useEffect(function(){s||S()},[s,S]),$.createElement(Bl,Object.assign({appear:!0,nodeRef:g,onEnter:w,onEntered:u,onEntering:E,onExit:x,onExited:T,in:s,timeout:c},y),function(P,O){return $.cloneElement(o,st({ref:C,style:st({visibility:P==="exited"&&!s?"hidden":void 0},a,{},o.props.style)},O))})});pf.displayName="Slide";var Hs=function(t){return $.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},Mw=function(){return $.createElement(Hs,null,$.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
282
|
+
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Aw=function(){return $.createElement(Hs,null,$.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Dw=function(){return $.createElement(Hs,null,$.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
299
283
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
300
|
-
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},
|
|
301
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},UE={default:void 0,success:D.createElement(FE,null),warning:D.createElement(zE,null),error:D.createElement(VE,null),info:D.createElement(WE,null)},Io={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:UE,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:xm,transitionDuration:{enter:225,exit:195}},HE=function(t,o){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(o)?o:Io.autoHideDuration},qE=function(t,o){var r=function(i,a){return a.some(function(l){return typeof i===l})};return r(t,["string","number"])?t:r(t,["object"])?st({},Io.transitionDuration,{},r(o,["object"])&&o,{},t):r(o,["string","number"])?o:r(o,["object"])?st({},Io.transitionDuration,{},o):Io.transitionDuration},GE=function(t,o){return function(r,s){return s===void 0&&(s=!1),s?st({},Io[r],{},o[r],{},t[r]):r==="autoHideDuration"?HE(t.autoHideDuration,o.autoHideDuration):r==="transitionDuration"?qE(t.transitionDuration,o.transitionDuration):t[r]||o[r]||Io[r]}};function ms(e){return Object.entries(e).reduce(function(t,o){var r,s=o[0],i=o[1];return st({},t,(r={},r[s]=ic(i),r))},{})}var cr={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},Sm=ms({root:{height:0},entered:{height:"auto"}}),dc="0px",pc=175,Tm=D.forwardRef(function(e,t){var o=e.children,r=e.in,s=e.onExited,i=D.useRef(null),a=D.useRef(null),l=cc(t,a),c=function(){return i.current?i.current.clientHeight:0},d=function(f){f.style.height=dc},u=function(f){var S=c(),C=sa({timeout:pc,mode:"enter"}),E=C.duration,T=C.easing;f.style.transitionDuration=typeof E=="string"?E:E+"ms",f.style.height=S+"px",f.style.transitionTimingFunction=T||""},h=function(f){f.style.height="auto"},y=function(f){f.style.height=c()+"px"},p=function(f){bm(f);var S=sa({timeout:pc,mode:"exit"}),C=S.duration,E=S.easing;f.style.transitionDuration=typeof C=="string"?C:C+"ms",f.style.height=dc,f.style.transitionTimingFunction=E||""};return D.createElement(lc,{in:r,unmountOnExit:!0,onEnter:d,onEntered:h,onEntering:u,onExit:y,onExited:s,onExiting:p,nodeRef:a,timeout:pc},function(g,f){return D.createElement("div",Object.assign({ref:l,className:ko(Sm.root,g==="entered"&&Sm.entered),style:st({pointerEvents:"all",overflow:"hidden",minHeight:dc,transition:lr("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!r&&{visibility:"hidden"})},f),D.createElement("div",{ref:i,className:cr.CollapseWrapper,style:{display:"flex",width:"100%"}},o))})});Tm.displayName="Collapse";var Cm={right:"left",left:"right",bottom:"up",top:"down"},YE=function(t){return t.horizontal!=="center"?Cm[t.horizontal]:Cm[t.vertical]},KE=function(t){return"anchorOrigin"+ac(t)},XE=function(t){t===void 0&&(t={});var o={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!o[r]}).reduce(function(r,s){var i;return st({},r,(i={},i[s]=t[s],i))},{})},JE=function(){};function hs(e,t){return e.reduce(function(o,r){return r==null?o:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var c=[].concat(a);t&&c.indexOf(t)===-1&&c.push(t),o.apply(this,c),r.apply(this,c)}},JE)}var QE=typeof window<"u"?D.useLayoutEffect:D.useEffect;function wm(e){var t=D.useRef(e);return QE(function(){t.current=e}),D.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var Em=D.forwardRef(function(e,t){var o=e.children,r=e.className,s=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,c=e.id,d=e.open,u=e.SnackbarProps,h=u===void 0?{}:u,y=D.useRef(),p=wm(function(){l&&l.apply(void 0,arguments)}),g=wm(function(T){!l||T==null||(y.current&&clearTimeout(y.current),y.current=setTimeout(function(){p(null,"timeout",c)},T))});D.useEffect(function(){return d&&g(s),function(){y.current&&clearTimeout(y.current)}},[d,s,g]);var f=function(){y.current&&clearTimeout(y.current)},S=D.useCallback(function(){s!=null&&g(s*.5)},[s,g]),C=function(w){h.onMouseEnter&&h.onMouseEnter(w),f()},E=function(w){h.onMouseLeave&&h.onMouseLeave(w),S()};return D.useEffect(function(){if(!a&&d)return window.addEventListener("focus",S),window.addEventListener("blur",f),function(){window.removeEventListener("focus",S),window.removeEventListener("blur",f)}},[a,S,d]),D.createElement("div",Object.assign({ref:t},h,{className:ko(cr.Snackbar,r),onMouseEnter:C,onMouseLeave:E}),o)});Em.displayName="Snackbar";var fc,ZE=ms({root:(fc={display:"flex",flexWrap:"wrap",flexGrow:1},fc[Po.upSm]={flexGrow:"initial",minWidth:"288px"},fc)}),Om=D.forwardRef(function(e,t){var o=e.className,r=ps(e,["className"]);return D.createElement("div",Object.assign({ref:t,className:ko(ZE.root,o)},r))});Om.displayName="SnackbarContent";var gs=ms({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),km="notistack-snackbar",Rm=D.forwardRef(function(e,t){var o=e.id,r=e.message,s=e.action,i=e.iconVariant,a=e.variant,l=e.hideIconVariant,c=e.style,d=e.className,u=i[a],h=s;return typeof h=="function"&&(h=h(o)),D.createElement(Om,{ref:t,role:"alert","aria-describedby":km,style:c,className:ko(cr.MuiContent,cr.MuiContentVariant(a),gs.root,gs[a],d,!l&&u&&gs.lessPadding)},D.createElement("div",{id:km,className:gs.message},l?null:u,r),h&&D.createElement("div",{className:gs.action},h))});Rm.displayName="MaterialDesignContent";var Pm=D.memo(Rm),eO=ms({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),tO=function(t){var o=D.useRef(),r=D.useState(!0),s=r[0],i=r[1],a=hs([t.snack.onClose,t.onClose]),l=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},c=D.useCallback(function(){o.current=setTimeout(function(){i(function(N){return!N})},125)},[]);D.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var d=t.snack,u=t.classes,h=t.Component,y=h===void 0?Pm:h,p=D.useMemo(function(){return XE(u)},[u]),g=d.open,f=d.SnackbarProps,S=d.TransitionComponent,C=d.TransitionProps,E=d.transitionDuration,T=d.disableWindowBlurListener,w=d.content,x=ps(d,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),k=st({direction:YE(x.anchorOrigin),timeout:E},C),R=w;typeof R=="function"&&(R=R(x.id,x.message));var P=["onEnter","onEntered","onExit","onExited"].reduce(function(N,A){var I;return st({},N,(I={},I[A]=hs([t.snack[A],t[A]],x.id),I))},{});return D.createElement(Tm,{in:s,onExited:P.onExited},D.createElement(Em,{open:g,id:x.id,disableWindowBlurListener:T,autoHideDuration:x.autoHideDuration,className:ko(eO.wrappedRoot,p.root,p[KE(x.anchorOrigin)]),SnackbarProps:f,onClose:a},D.createElement(S,Object.assign({},k,{appear:!0,in:g,onExit:P.onExit,onExited:c,onEnter:P.onEnter,onEntered:hs([P.onEntered,l],x.id)}),R||D.createElement(y,Object.assign({},x)))))},bs,mc,la,ca,hc,qn={view:{default:20},snackbar:{default:6,dense:2}},Im="."+cr.CollapseWrapper,gc=16,ua=ms({root:(bs={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:lr(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},bs[Im]={padding:qn.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},bs.maxWidth="calc(100% - "+qn.view.default*2+"px)",bs[Po.downXs]={width:"100%",maxWidth:"calc(100% - "+gc*2+"px)"},bs),rootDense:(mc={},mc[Im]={padding:qn.snackbar.dense+"px 0px"},mc),top:{top:qn.view.default-qn.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:qn.view.default-qn.snackbar.default+"px",flexDirection:"column-reverse"},left:(la={left:qn.view.default+"px"},la[Po.upSm]={alignItems:"flex-start"},la[Po.downXs]={left:gc+"px"},la),right:(ca={right:qn.view.default+"px"},ca[Po.upSm]={alignItems:"flex-end"},ca[Po.downXs]={right:gc+"px"},ca),center:(hc={left:"50%",transform:"translateX(-50%)"},hc[Po.upSm]={alignItems:"center"},hc)}),nO=function(t){var o=t.classes,r=o===void 0?{}:o,s=t.anchorOrigin,i=t.dense,a=t.children,l=ko(cr.SnackbarContainer,ua[s.vertical],ua[s.horizontal],ua.root,r.containerRoot,r["containerAnchorOrigin"+ac(s)],i&&ua.rootDense);return D.createElement("div",{className:l},a)},oO=D.memo(nO),rO=process.env.NODE_ENV!=="production",sO={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},iO=(function(e){if(rO){var t=sO[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}),$m=function(t){var o=typeof t=="string"||D.isValidElement(t);return!o},bn,jm=(function(e){um(t,e);function t(r){var s;return s=e.call(this,r)||this,s.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var l=$m(i)?i:a,c=$m(i)?i.message:i,d=l.key,u=l.preventDuplicate,h=ps(l,["key","preventDuplicate"]),y=oa(d),p=y?d:new Date().getTime()+Math.random(),g=GE(h,s.props),f=st({id:p},h,{message:c,open:!0,entered:!1,requestClose:!1,persist:g("persist"),action:g("action"),content:g("content"),variant:g("variant"),anchorOrigin:g("anchorOrigin"),disableWindowBlurListener:g("disableWindowBlurListener"),autoHideDuration:g("autoHideDuration"),hideIconVariant:g("hideIconVariant"),TransitionComponent:g("TransitionComponent"),transitionDuration:g("transitionDuration"),TransitionProps:g("TransitionProps",!0),iconVariant:g("iconVariant",!0),style:g("style",!0),SnackbarProps:g("SnackbarProps",!0),className:ko(s.props.className,h.className)});return f.persist&&(f.autoHideDuration=void 0),s.setState(function(S){if(u===void 0&&s.props.preventDuplicate||u){var C=function(x){return y?x.id===p:x.message===c},E=S.queue.findIndex(C)>-1,T=S.snacks.findIndex(C)>-1;if(E||T)return S}return s.handleDisplaySnack(st({},S,{queue:[].concat(S.queue,[f])}))}),p},s.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=s.maxSnack?s.handleDismissOldest(i):s.processQueue(i)},s.processQueue=function(i){var a=i.queue,l=i.snacks;return a.length>0?st({},i,{snacks:[].concat(l,[a[0]]),queue:a.slice(1,a.length)}):i},s.handleDismissOldest=function(i){if(i.snacks.some(function(u){return!u.open||u.requestClose}))return i;var a=!1,l=!1,c=i.snacks.reduce(function(u,h){return u+(h.open&&h.persist?1:0)},0);c===s.maxSnack&&(process.env.NODE_ENV!=="production"&&iO("NO_PERSIST_ALL"),l=!0);var d=i.snacks.map(function(u){return!a&&(!u.persist||l)?(a=!0,u.entered?(u.onClose&&u.onClose(null,"maxsnack",u.id),s.props.onClose&&s.props.onClose(null,"maxsnack",u.id),st({},u,{open:!1})):st({},u,{requestClose:!0})):st({},u)});return st({},i,{snacks:d})},s.handleEnteredSnack=function(i,a,l){if(!oa(l))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(c){var d=c.snacks;return{snacks:d.map(function(u){return u.id===l?st({},u,{entered:!0}):st({},u)})}})},s.handleCloseSnack=function(i,a,l){s.props.onClose&&s.props.onClose(i,a,l);var c=l===void 0;s.setState(function(d){var u=d.snacks,h=d.queue;return{snacks:u.map(function(y){return!c&&y.id!==l?st({},y):y.entered?st({},y,{open:!1}):st({},y,{requestClose:!0})}),queue:h.filter(function(y){return y.id!==l})}})},s.closeSnackbar=function(i){var a=s.state.snacks.find(function(l){return l.id===i});oa(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),s.handleCloseSnack(null,"instructed",i)},s.handleExitedSnack=function(i,a){if(!oa(a))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(l){var c=s.processQueue(st({},l,{snacks:l.snacks.filter(function(d){return d.id!==a})}));return c.queue.length===0?c:s.handleDismissOldest(c)})},bn=s.enqueueSnackbar,s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(dm(s)),closeSnackbar:s.closeSnackbar.bind(dm(s))}},s}var o=t.prototype;return o.render=function(){var s=this,i=this.state.contextValue,a=this.props,l=a.domRoot,c=a.children,d=a.dense,u=d===void 0?!1:d,h=a.Components,y=h===void 0?{}:h,p=a.classes,g=this.state.snacks.reduce(function(S,C){var E,T=ac(C.anchorOrigin),w=S[T]||[];return st({},S,(E={},E[T]=[].concat(w,[C]),E))},{}),f=Object.keys(g).map(function(S){var C=g[S],E=C[0];return D.createElement(oO,{key:S,dense:u,anchorOrigin:E.anchorOrigin,classes:p},C.map(function(T){return D.createElement(tO,{key:T.id,snack:T,classes:p,Component:y[T.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:hs([s.handleExitedSnack,s.props.onExited],T.id),onEntered:hs([s.handleEnteredSnack,s.props.onEntered],T.id)})}))});return D.createElement(fm.Provider,{value:i},c,l?lo.createPortal(f,l):f)},cm(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Io.maxSnack}}]),t})(D.Component),aO=(function(){return D.useContext(fm)});const lO=dt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"BlockOutlined"),cO=dt(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),uO=dt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),dO=async(e,t)=>{const o=await Ot("/api/burrito/metadata/summaries",t.current);e(o.json)};function pO({downloadedType:e="org",downloadFunction:t,sources:o,showColumnFilters:r,tableTitle:s,sx:i,theme:a,preSelected:l=[],topicsFilter:c=["pushing2sb","tc-ready"],showFilterButtons:d}){const{i18nRef:u}=D.useContext(Qt),{debugRef:h}=D.useContext(rr),[y,p]=D.useState(0),g=D.useRef(0),[f,S]=D.useState([]),[C,E]=D.useState(null),[T,w]=D.useState({}),[x,k]=D.useState(!0),R=D.useRef(null),[P,N]=D.useState(0),[A,I]=D.useState(!1),{sourceWhitelist:v,filterExample:M,listMode:$}=D.useMemo(()=>{if(Array.isArray(o))return{listMode:!1,sourceWhitelist:o,filterExample:o.map(([O,_,V])=>({label:_,icon:V||m.jsx(uO,{}),filter:q=>!0}))};if(o&&typeof o=="object"){const O=[];for(const[_,V]of Object.entries(o))for(const q of Object.keys(V))O.push([`${_}/${q}`,q]);return{listMode:!0,sourceWhitelist:O,filterExample:[]}}return{listMode:!1,sourceWhitelist:[],filterExample:[]}},[o]);D.useEffect(()=>{M.length>0&&y===null&&p(0)},[M,y]),D.useEffect(()=>{if(!R.current)return;const O=new ResizeObserver(_=>{for(const V of _)N(V.contentRect.height)});return O.observe(R.current),()=>O.disconnect()},[M]);const j=D.useMemo(()=>{var O;return y!==null?(O=M[y])==null?void 0:O.filter:null},[y,M]);D.useEffect(()=>{(async()=>{k(!0),E(null);const _=++g.current;dO(w,h);let V=[];if($)for(let q=0;q<v.length;q++){let Y=v[q],W=Y[0].split("/"),F;if(e==="org"&&(F=await Ot(`/api/gitea/remote-repos/${Y[0]}`,h.current)),e==="user"&&(F=await Ot(`/api/gitea/user-remote-repos/${Y[0]}`,h.current)),_!==g.current)return;if(F.ok&&F.json.length>0)if($){const z=F.json.filter(J=>o[W[0]][W[1]].includes(J.name)).map(J=>({...J,source:Y[0]}));V=[...V,...z]}else{const z=F.json.map(J=>({...J,source:Y[0]}));V=[...V,...z]}}else{let q=v[y],Y=q[0].split("/"),W;if(e==="org"&&(W=await Ot(`/api/gitea/remote-repos/${q[0]}`,h.current)),e==="user"&&(W=await Ot(`/api/gitea/user-remote-repos/${q[0]}`,h.current)),_!==g.current)return;if(W.ok&&W.json.length>0)if($){const F=W.json.filter(z=>o[Y[0]][Y[1]].includes(z.name)).map(z=>({...z,source:q[0]}));V=[...V,...F]}else{const F=W.json.map(z=>({...z,source:q[0]}));V=[...V,...F]}}V.length>0?(k(!1),I(!1),S(V)):(k(!1),I(!0),bn(de("library:pankosmia-rcl:catalog_empty",u.current),{variant:"error"}))})()},[v,y]),D.useEffect(()=>{if(f.length===0)return;(async()=>{const _={};for(const V of f)if(T[`${V.source}/${V.name}`]){const Y=T[`${V.source}/${V.name}`].timestamp,W=Date.parse(V.updated_at)/1e3;_[`${V.source}/${V.name}`]=W-Y>0?"updatable":"downloaded"}else _[`${V.source}/${V.name}`]="notDownloaded";E(_)})()},[f,T]);const L=D.useCallback(async(O,_,V)=>{E(Y=>({...Y,[_]:"downloading"})),bn(`${de("pages:core-remote-resources:downloading",u.current)} ${O.row.abbreviation}`,{variant:"info"});let q;q=await t(O,_,V),q.ok?(bn(`${O.row.abbreviation} ${de(V==="clone"?"pages:core-remote-resources:downloaded":"pages:core-remote-resources:updated",u.current)}`,{variant:"success"}),E(Y=>({...Y,[_]:"downloaded"}))):(bn(`${O.row.abbreviation} ${de("pages:core-remote-resources:failed",u.current)} : ${q.error} (${q.status})`,{variant:"error"}),E(Y=>({...Y,[_]:"notDownloaded"})))},[]),U=D.useMemo(()=>[{field:"resourceCode",headerName:de("library:pankosmia-rcl:row_resource_code",u.current),flex:.5,minWidth:140},{field:"language",headerName:de("library:pankosmia-rcl:row_language",u.current),flex:.5,minWidth:120},{field:"description",headerName:de("library:pankosmia-rcl:row_description",u.current),flex:2,minWidth:130},{field:"type",headerName:de("library:pankosmia-rcl:row_type",u.current),flex:1.5,minWidth:80},{field:"download",sortable:!1,headerName:de("library:pankosmia-rcl:row_download",u.current),flex:.5,minWidth:120,renderCell:O=>{const _=`${O.row.source}/${O.row.name}`,V=C==null?void 0:C[_],q=V==="updatable",Y=V==="downloading",W=V==="downloaded"||!V;return m.jsx(On,{onClick:F=>{F.stopPropagation(),L(O,_,q?"fetch":"clone")},loading:Y,disabled:W,children:W?m.jsx(RE,{}):q?m.jsx(PE,{}):m.jsx(sm,{})})}}],[u,C,L]),G=D.useMemo(()=>f.filter(O=>O.flavor).map(O=>({...O,id:`${O.source}/${O.name}`,url:O.latest_zip,metadata_types:O.metadata_types,resourceCode:O.abbreviation.toUpperCase(),language:O.language_code,description:O.description,flavor:O.flavor,flavorType:O.flavor_type,clone_url:O.clone_url,ingredients:O.ingredients,topics:O.topics,type:de(`flavors:names:${O.flavor_type}/${O.flavor}`,u.current)})).filter(O=>O.metadata_types==="rc"&&O.topics.some(_=>c.includes(_))||O.metadata_types==="sb"||!1),[f,u]),ee=[{label:"Download selected",icon:sm,action:(O,_)=>{if(!C)return;_.filter(q=>O.selectedIds.includes(q.id)).forEach(q=>{const Y=`${q.source}/${q.name}`;C[Y]==="notDownloaded"?L({row:q},Y,"clone"):C[Y]==="updatable"&&L({row:q},Y,"fetch")})}}],B=a?{theme:a}:{};return m.jsxs(Xe,{...B,sx:{height:"100%"},children:[(M==null?void 0:M.length)>0&&d&&m.jsx(Eo,{ref:R,direction:"row",spacing:0,alignItems:"center",sx:{mb:1},children:M.map((O,_)=>{const V=y===_,q=_===0,Y=_===M.length-1;return m.jsx(Ii,{label:O.label,onClick:()=>p(_),color:"primary",variant:V?"filled":"outlined",icon:V?m.jsx(cO,{}):O.icon,sx:{borderRadius:0,height:40,border:"1px solid",borderColor:"primary.main",...!q&&{borderLeft:"none"},...q&&{borderTopLeftRadius:"20px",borderBottomLeftRadius:"20px"},...Y&&{borderTopRightRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiChip-icon":{width:20,marginLeft:"8px",marginRight:"-4px"},...V&&{zIndex:1,borderColor:"primary.main"}}},O.label)})}),!x&&!A?m.jsx(Xe,{sx:{height:P>0?`calc(100% - ${P+8}px)`:"100%"},children:m.jsx(rm,{columns:U,rows:G,tableTitle:s,groupOperations:$?ee:null,defaultFilter:j,showColumnFilters:r,preSelections:l,sx:{...i,height:"100%","& .MuiTableBody-root .MuiTableRow-root:nth-of-type(even) .MuiTableCell-root":{backgroundColor:O=>dn(O.palette.primary.main,.05)}}})}):!A&&m.jsx(Xe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:m.jsx(Vr,{})}),A&&m.jsx(Xe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:m.jsxs(yt,{children:[" ",de("library:pankosmia-rcl:catalog_empty",u.current)]})})]})}function bc({data:e,titleLabel:t,getOptionLabel:o,value:r,setValue:s}){return m.jsx($p,{value:r,onChange:(i,a)=>{s(a)},options:e,getOptionLabel:o,sx:{width:"100%"},renderInput:i=>m.jsx(Nn,{...i,label:t})})}function fO({currentId:e}){const[t,o]=D.useState("auto"),[r,s]=D.useState(!1),i=D.useRef(null),[a,l]=D.useState(!1),[c,d]=D.useState([]),{i18nRef:u}=D.useContext(Qt),{enabledRef:h}=D.useContext(Oo),{debugRef:y}=D.useContext(rr);D.useEffect(()=>{(async()=>{const f=await Ot("/api/list-clients",y.current);f.ok&&d(f.json.filter(S=>!S.exclude_from_menu&&(y.current||!S.requires.debug)))})().then()},[y.current]);const p=g=>{Ot(`/api/debug/${y.current?"disable":"enable"}`).then(()=>{g.stopPropagation(),g.preventDefault()})};return D.useEffect(()=>{let g;if(a&&!r)return g=setTimeout(()=>{if(i.current){const f=i.current.clientWidth;f>0&&(o(`${f}px`),s(!0))}},50),()=>clearTimeout(g)},[a,r]),m.jsxs(Xe,{sx:{m:0,mr:2},children:[m.jsx(On,{onClick:g=>l(!0),children:m.jsx(Zf,{sx:{color:"#FFF"}})}),m.jsx(Ll,{open:a,onClose:()=>l(!1),slotProps:{paper:{sx:{minWidth:"16rem",overflow:"hidden"}}},children:m.jsx(Xe,{sx:{width:"100%",minHeight:"98vh",m:0,p:0},role:"presentation",children:m.jsx(To,{sx:{height:"100%",width:"100%"},children:m.jsxs(Eo,{direction:"column",spacing:0,sx:{height:"100%",width:"100%",justifyContent:"space-between",alignItems:"stretch"},children:[m.jsx(Xe,{sx:{width:"100%"},children:c.map((g,f)=>g.id===e?m.jsx(Co,{disablePadding:!0,onClick:()=>l(!1),children:m.jsx($n,{selected:!0,children:m.jsx(jn,{primary:de(`pages:${g.id}:title`,u.current)})})},f):m.jsx(Co,{disablePadding:!0,children:m.jsx($n,{disabled:g.requires.net&&!h.current,onClick:()=>{window.location.href=g.url},children:m.jsx(jn,{primary:de(`pages:${g.id}:title`,u.current)})})},f))}),m.jsxs(Xe,{children:[m.jsx(Co,{disablePadding:!0,children:m.jsx($n,{selected:e.includes("settings"),onClick:()=>{window.location.href="/clients/settings"},children:m.jsx(jn,{primary:de("pages:core-settings:title",u.current)})})}),m.jsx(To,{sx:{width:"100%"},disablePadding:!0,children:m.jsxs($n,{onClick:p,children:[m.jsx(jn,{primary:de("components:header:beta_mode",u.current)}),m.jsx(Zi,{edge:"end",onChange:p,checked:y.current})]})})]})]})})})})]})}const da=D.createContext({product:null,setProduct:()=>{}});function Nm({titleKey:e,widget:t,currentId:o,theme:r,showInternetSwitch:s=!0}){var y,p,g;const{i18nRef:i}=D.useContext(Qt),{clientConfigRef:a}=D.useContext(na),{enabledRef:l}=D.useContext(Oo),c=((g=(p=(y=a.current._global)==null?void 0:y.find(f=>f.id==="internetConfig"))==null?void 0:p.fields.find(f=>f.id==="internetConnectionAccess"))==null?void 0:g.value)??!0;D.useEffect(()=>{const f=de("branding:software:name",i.current),S=de(e,i.current);document.title=`${S} - ${f}`});const d=r?bi:D.Fragment,u=r?{theme:r}:{};let{product:h}=D.useContext(da);return m.jsx(d,{...u,children:m.jsx(Xe,{display:"flex-start",sx:{flexGrow:1,m:0,p:0},children:m.jsx(xl,{position:"static",sx:{m:0,p:0,paddingTop:h&&h.os==="android"?"30px":"0px"},children:m.jsxs(ds,{variant:"dense",sx:{m:0,p:0},children:[m.jsx(fO,{currentId:o}),e&&e.length>0&&m.jsx(yt,{variant:"h6",sx:{m:0,p:0},children:de(e,i.current)}),m.jsx(Xe,{sx:{flexGrow:1,m:0,p:0},children:t}),m.jsx(Xe,{sx:{m:0,p:0},children:c&&s&&m.jsx(sc,{netEnabled:l.current,i18n:i.current})})]})})})})}async function mO(e,t){const o=e.getReader();let r;for(;!(r=await o.read()).done;)t(r.value)}function hO(e){let t,o,r,s=!1;return function(a){t===void 0?(t=a,o=0,r=-1):t=bO(t,a);const l=t.length;let c=0;for(;o<l;){s&&(t[o]===10&&(c=++o),s=!1);let d=-1;for(;o<l&&d===-1;++o)switch(t[o]){case 58:r===-1&&(r=o-c);break;case 13:s=!0;case 10:d=o;break}if(d===-1)break;e(t.subarray(c,d),r),c=o,r=-1}c===l?t=void 0:c!==0&&(t=t.subarray(c),o-=c)}}function gO(e,t,o){let r=Mm();const s=new TextDecoder;return function(a,l){if(a.length===0)o==null||o(r),r=Mm();else if(l>0){const c=s.decode(a.subarray(0,l)),d=l+(a[l+1]===32?2:1),u=s.decode(a.subarray(d));switch(c){case"data":r.data=r.data?r.data+`
|
|
302
|
-
`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const h=parseInt(u,10);isNaN(h)||t(r.retry=h);break}}}}function bO(e,t){const o=new Uint8Array(e.length+t.length);return o.set(e),o.set(t,e.length),o}function Mm(){return{data:"",event:"",id:"",retry:void 0}}var yO=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};const yc="text/event-stream",vO=1e3,Am="last-event-id";function xO(e,t){var{signal:o,headers:r,onopen:s,onmessage:i,onclose:a,onerror:l,openWhenHidden:c,fetch:d}=t,u=yO(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((h,y)=>{const p=Object.assign({},r);p.accept||(p.accept=yc);let g;function f(){g.abort(),document.hidden||x()}c||document.addEventListener("visibilitychange",f);let S=vO,C=0;function E(){document.removeEventListener("visibilitychange",f),window.clearTimeout(C),g.abort()}o==null||o.addEventListener("abort",()=>{E(),h()});const T=d??window.fetch,w=s??SO;async function x(){var k;g=new AbortController;try{const R=await T(e,Object.assign(Object.assign({},u),{headers:p,signal:g.signal}));await w(R),await mO(R.body,hO(gO(P=>{P?p[Am]=P:delete p[Am]},P=>{S=P},i))),a==null||a(),E(),h()}catch(R){if(!g.signal.aborted)try{const P=(k=l==null?void 0:l(R))!==null&&k!==void 0?k:S;window.clearTimeout(C),C=window.setTimeout(x,P)}catch(P){E(),y(P)}}}x()})}function SO(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(yc)))throw new Error(`Expected content-type to be ${yc}, Actual: ${t}`)}const _m=D.createContext({auth:!1,setAuth:()=>{}}),Dm=D.createContext({typography:{},setTypography:()=>{}}),Lm=D.createContext({currentProject:null,setCurrentProject:()=>{}}),Bm=D.createContext({systemBcv:!1,setSystemBcv:()=>{}}),Fm=D.createContext({messages:[],setMessages:()=>{}}),zm=D.createContext({clientInterfaces:{},setClientInterfaces:()=>{}}),Vm=D.createContext({snippet:{},setSnippet:()=>{}}),Wm=D.createContext({word:{},setWord:()=>{}});function TO(){return m.jsx(Xe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100%"},children:m.jsx(Vr,{})})}function Um({children:e,netValue:t,debugValue:o,bcvValue:r,i18nValue:s,authValue:i,typographyValue:a,currentProjectValue:l,clientConfigValue:c,clientInterfacesValue:d,snippetValue:u,wordValue:h,productValue:y}){const[p,g]=D.useState([]),f={messages:p,setMessages:g},{enqueueSnackbar:S}=aO();D.useEffect(()=>{const w=x=>{const k=x.split("--");k.length===4&&S(`${k[2]} => ${k[3]}`,{variant:k[0],anchorOrigin:{vertical:"bottom",horizontal:"right"}})};p.length>0&&(p.forEach(x=>w(x)),g([]))},[p,S]);const[C,E]=D.useState({palette:{primary:{main:"#666"},secondary:{main:"#888"}}});D.useEffect(()=>{C.palette&&C.palette.primary&&C.palette.primary.main&&C.palette.primary.main==="#666"&&ta({url:"/api/app-resources/themes/default.json",setter:E}).then()},[C.palette]);const T=si({components:{MuiFab:{styleOverrides:{root:{textTransform:"none"}}},MuiButton:{styleOverrides:{root:{textTransform:"none"}}},MuiTab:{styleOverrides:{root:{textTransform:"none"}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none"}}}}},C);return m.jsx(bi,{theme:T,children:m.jsx(na.Provider,{value:c,children:m.jsx(zm.Provider,{value:d,children:m.jsx(Qt.Provider,{value:s,children:m.jsx(Vm.Provider,{value:u,children:m.jsx(Wm.Provider,{value:h,children:m.jsx(Dm.Provider,{value:a,children:m.jsx(_m.Provider,{value:i,children:m.jsx(Lm.Provider,{value:l,children:m.jsx(Bm.Provider,{value:r,children:m.jsx(Fm.Provider,{value:f,children:m.jsx(rr.Provider,{value:o,children:m.jsx(da.Provider,{value:y,children:m.jsx(Oo.Provider,{value:t,children:m.jsx(Xe,{sx:{height:"100vh",overflow:"hidden"},children:!s||Object.keys(s.i18n).length===0?m.jsx(TO,{}):e})})})})})})})})})})})})})})})}var pa={exports:{}},CO=pa.exports,Hm;function wO(){return Hm||(Hm=1,(function(e,t){(function(o,r,s){e.exports=s()})("dcopy",CO,function(){return function(r){if(/number|string|boolean/.test(typeof r))return r;if(r instanceof Date)return new Date(r.getTime());var s=r instanceof Array?[]:{};return i(r,s),s;function i(a,l){for(var c in a){var d=a[c];if(d instanceof Date){var u=new Date(d.getTime());o(l,c,u)}else if(d instanceof Function){var u=d;o(l,c,u)}else if(d instanceof Array){var u=[],h=o(l,c,u);i(d,h)}else if(d instanceof Object){var u={},h=o(l,c,u);i(d,h)}else{var u=d;o(l,c,u)}}}};function o(r,s,i){if(r instanceof Array)return r.push(i),r[r.length-1];if(r instanceof Object)return r[s]=i,r[s]}})})(pa)),pa.exports}var EO=wO();const OO=Tc(EO);function qm({children:e}){const[t,o]=D.useState(!1),r=D.useRef(t),s=Q=>{r.current=Q,o(Q)},[i,a]=D.useState(!1),l=D.useRef(i),c=Q=>{l.current=Q,a(Q)},[d,u]=D.useState({}),h=D.useRef(d),y=Q=>{h.current=Q,u(Q)},[p,g]=D.useState({bookCode:"TIT",chapterNum:1,verseNum:1,endVerseNum:1}),f=D.useRef(p),S=Q=>{f.current=Q,g(Q)},[C,E]=D.useState({}),T=D.useRef(C),w=Q=>{T.current=Q,E(Q)},[x,k]=D.useState({font_set:"Pankosmia-CardoPankosmia-EzraSILPankosmia-PadaukPankosmia-AwamiNastaliqPankosmia-NotoNastaliqUrduPankosmia-GentiumPlus",size:"medium",direction:"ltr"}),R=D.useRef(x),P=Q=>{R.current=Q,k(Q)},[N,A]=D.useState(null),I=D.useRef(N),v=Q=>{I.current=Q,A(Q)},[M,$]=D.useState({}),j=D.useRef(M),L=Q=>{j.current=Q,$(Q)},U=async()=>{await Ot("/api/client-config").then(Q=>Q.json).then(Q=>L(Q)).catch(Q=>console.error("Error :",Q))},[G,ee]=D.useState({}),B=D.useRef(G),O=Q=>{B.current=Q,ee(Q)},[_,V]=D.useState(null),q=D.useRef(_),Y=Q=>{q.current=Q,V(Q)},[W,F]=D.useState(null),z=D.useRef(W),J=Q=>{z.current=Q,F(Q)},[oe,ce]=D.useState(null),H=D.useRef(oe),Se=Q=>{H.current=Q,ce(Q)},le=async()=>{await Ot("/api/client-interfaces").then(Q=>Q.json).then(Q=>O(Q)).catch(Q=>console.error("Error :",Q))},Ce=async()=>{const Q=await Ot("/api/i18n/flat",l.current);Q.ok?w(Q.json):bn(`Could not load i18n: ${Q.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})},ke=async()=>{const Q=await Ot("/api/settings/typography",l.current);Q.ok?P(Q.json):bn(`Could not load typography: ${Q.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})},Re=async()=>{const Q=await Ot("/api/version",l.current);Q.ok?Se(Q.json):bn(`Could not load version for product: ${Q.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})},Be=async()=>{const Q=await Ot("/api/app-state/alignment",l.current);if(Q.ok){const fe=Q.json.snippet,me=Q.json.word;fe!==q.current&&Y(fe),JSON.stringify(me)!==JSON.stringify(z.current)&&J(me)}else bn(`Could not load alignment: ${Q.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})};D.useEffect(()=>{Ce().then(),Be().then(),ke().then(),U().then(),le().then(),Re().then()},[]),D.useEffect(()=>{(async()=>{const fe=await Ot("/api/navigation/bcv",l.current);if(fe.ok){const me=fe.json;S({bookCode:me.book_code,chapterNum:me.chapter,verseNum:me.verse})}else bn(`Could not load bcv: ${fe.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})})().then()},[]);const pe=Q=>{const fe=Q.data.split("--");if(fe.length===4){const me=fe[1]==="enabled";me!==r.current&&s(me);const Bt=fe[3]==="enabled";Bt!==l.current&&c(Bt)}},Ne=Q=>{const fe=Q.data.split("--");if(fe.length===4){const me={bookCode:fe[0],chapterNum:parseInt(fe[1]),verseNum:parseInt(fe[2]),endVerseNum:parseInt(fe[3])};(me.bookCode!==f.current.bookCode||me.chapterNum!==f.current.chapterNum||me.verseNum!==f.current.verseNum||me.endVerseNum!==f.current.endVerseNum)&&S(me)}},Fe=Q=>{const fe=Q.data.split("--");if(fe.length===3){const me={font_set:fe[0],size:fe[1],direction:fe[2]};(me.font_set!==R.current.font_set||me.size!==R.current.size||me.direction!==R.current.direction)&&P(me)}},De=()=>{Ce().then()},tt=Q=>{try{const fe=OO(h.current),[me,Bt,ao]=Q.data.split("--");if(["true","false"].includes(ao)){const Mt=ao==="true";(!(me in fe)||!("isActive"in fe[me])||Mt!==fe[me].isActive)&&(fe[me]={endpoint:Bt,isActive:Mt},y(fe))}}catch(fe){console.log(`Auth Error: ${fe}, data: ${Q.data}`)}},ae=Q=>{if(Q.data===null)I.current!==null&&v(null);else{const fe=Q.data.split("--");if(fe.length===3){let me={source:fe[0],organization:fe[1],project:fe[2]};(!I.current||me.source!==I.current.source||me.organization!==I.current.organization||me.project!==I.current.project)&&v(me)}else v(null)}},bt=Q=>{const fe=Q.data.split("--");fe.length===4&&bn(`${fe[2]} => ${fe[3]}`,{variant:fe[0],anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:fe[0]==="error"})},we=()=>{Be().then()};D.useEffect(()=>{const Q=new AbortController;return(async()=>{await xO("/api/notifications",{method:"GET",headers:{Accept:"text/event-stream"},onopen(me){me.ok&&me.status===200||me.status>=400&&me.status<500&&me.status!==429&&console.log("Error from SSE",me.status)},onmessage(me){me.event==="misc"?bt(me):me.event==="status"?pe(me):me.event==="bcv"?Ne(me):me.event==="auth"?tt(me):me.event==="languages"?De():me.event==="typography"?Fe(me):me.event==="current_project"?ae(me):me.event==="alignment"&&we()},onclose(){console.log("SSE connection closed by the server")},onerror(me){console.log("There was an error from the SSE server",me)}})})(),()=>Q.abort()},[]);const Ie={enableNet:t,setEnableNet:s,enabledRef:r},ze={debug:i,setDebug:c,debugRef:l},St={systemBcv:p,setSystemBcv:S,bcvRef:f},ue={auth:d,setAuth:y,authRef:h},Pe={i18n:C,setI18n:w,i18nRef:T},Ve={typography:x,setTypography:P,typographyRef:R},ut={currentProject:N,setCurrentProject:v,currentProjectRef:I},Me={clientInterfaces:G,setClientInterfaces:O,clientInterfacesRef:B},Lt={snippet:_,setSnippet:Y,snippetRef:q},it={word:W,setWord:J,wordRef:z},Zt={clientConfig:M,setClientConfig:L,clientConfigRef:j};l.current&&console.log("Rerender Spa");const cn={product:oe,setProduct:Se,productRef:H},ye=Z(Pm)(()=>({"&.notistack-MuiContent-error":{backgroundColor:"#FDEDED",color:"#D32F2F"},"&.notistack-MuiContent-info":{backgroundColor:"#E5F6FD",color:"#0288D1"},"&.notistack-MuiContent-warning":{backgroundColor:"#FFF4E5",color:"#EF6C00"},"&.notistack-MuiContent-success":{backgroundColor:"#EDF7ED",color:"#2E7D32"}}));return m.jsx(jm,{Components:{error:ye,info:ye,warning:ye,success:ye},maxSnack:6,children:m.jsx(Um,{netValue:Ie,debugValue:ze,i18nValue:Pe,bcvValue:St,authValue:ue,typographyValue:Ve,currentProjectValue:ut,clientConfigValue:Zt,clientInterfacesValue:Me,snippetValue:Lt,wordValue:it,productValue:cn,children:e})})}function Gm({children:e}){return m.jsx(jm,{maxSnack:3,children:m.jsx(qm,{children:e})})}function Ym({titleKey:e,widget:t,margin:o=0,children:r,requireNet:s=!1,currentId:i}){const{enableNet:a}=D.useContext(Oo),{i18nRef:l}=D.useContext(Qt),{productRef:c}=D.useContext(da);return s&&!a?m.jsx(Xe,{sx:{m:0,height:"100%",overflowX:"hidden",overflowY:"auto"},children:m.jsx(ht,{container:!0,alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh"},children:m.jsxs(ht,{item:!0,display:"flex",flexDirection:"column",alignItems:"center",rowSpacing:.5,children:[m.jsx(lO,{sx:{fontSize:80},color:"warning"}),m.jsx("p",{children:de("components:framework:no_entry_if_offline",l.current)})]})})}):m.jsxs(m.Fragment,{children:[m.jsx(Xe,{children:m.jsx(Nm,{titleKey:e||null,widget:t||null,currentId:i})}),m.jsx(Xe,{sx:{m:o,overflowX:"hidden",overflowY:"auto",paddingBottom:c&&c.current&&c.current.os==="android"?"30px":"0px"},children:r})]})}function kO({children:e,titleKey:t,requireNet:o,currentId:r,widget:s,margin:i}){return m.jsx(Gm,{children:m.jsx(Ym,{titleKey:t,requireNet:o,currentId:r,widget:s||null,margin:i||0,children:e})})}const RO=D.createContext({languages:!1,setLanguages:()=>{}});function PO({currentLanguage:e,setCurrentLanguage:t,setIsValid:o,open:r=!0}){const[s,i]=D.useState("BCP47List"),[a,l]=D.useState(!1),{i18nRef:c}=D.useContext(Qt),[d,u]=D.useState(!0),[h,y]=D.useState(!1),[p,g]=D.useState(""),[f,S]=D.useState([]),[C,E]=D.useState({}),[T,w]=D.useState(!0),x=/^x-[a-z]{3}$/;D.useEffect(()=>{r&&ta({url:"/api/git/list-local-repos",setter:S}).then()},[r]),D.useEffect(()=>{r&&ta({url:"/api/app-resources/lookups/bcp47-language_codes.json",setter:E}).then()},[r]);const k=Object.entries(C).map(([P,N])=>({language_code:P,language_name:N.en}));D.useEffect(()=>{e.language_code&&o(!a)},[a]),D.useEffect(()=>{T&&Object.keys(C).length>0&&(e.language_code&&(C[e.language_code]?t({language_code:e.language_code,language_name:C[e.language_code].en}):(t({language_code:`x-${e.language_code}`,language_name:`x-${e.language_code}`.toUpperCase()}),i("customLanguage"))),w(!1))},[C,T,k]),D.useEffect(()=>{p&&Ot(`/api/burrito/metadata/summary/${p}`).then(P=>P.json).then(P=>t({...e,language_code:P.language_code,language_name:P.language_name})).catch(P=>console.error("Error :",P))},[r,p]);const R=f.filter(P=>d&&P.startsWith("_local_")||h&&P.startsWith("git"));return m.jsxs(m.Fragment,{children:[m.jsxs(es,{children:[m.jsx(Bi,{id:"demo-radio-buttons-group-label",children:de("library:pankosmia-rcl:choose_language",c.current)}),m.jsxs(Tf,{row:!0,value:s,onChange:P=>{i(P.target.value),t({language_code:"",language_name:""})},"aria-labelledby":"demo-radio-buttons-group-label",name:"radio-buttons-group",children:[m.jsx(so,{value:"BCP47List",control:m.jsx(qi,{}),label:de("library:pankosmia-rcl:lang_code_bcp47_list",c.current)}),m.jsx(so,{value:"burrito",control:m.jsx(qi,{}),label:de("library:pankosmia-rcl:lang_code_burrito",c.current)}),m.jsx(so,{value:"customLanguage",control:m.jsx(qi,{}),label:de("library:pankosmia-rcl:lang_code_custom_language",c.current)})]})]}),s==="BCP47List"&&m.jsxs(ht,{container:!0,spacing:2,children:[m.jsx(ht,{item:!0,size:12,children:m.jsx(yt,{children:de("library:pankosmia-rcl:description_bcp47_list",c.current)})}),m.jsx(ht,{item:!0,size:6,children:C&&m.jsx(bc,{value:e.language_code??null,setValue:P=>{var N;return t({language_code:P,language_name:((N=C[P])==null?void 0:N.en)??""})},data:Object.keys(C),getOptionLabel:P=>{var N,A;return(N=C[P])!=null&&N.en?`${(A=C[P])==null?void 0:A.en} (${P})`:""},titleLabel:`${de("library:pankosmia-rcl:language",c.current)} *`})}),m.jsx(ht,{item:!0,size:6,children:m.jsx(Nn,{disabled:!0,id:"language_code",sx:{width:"100%"},label:de("library:pankosmia-rcl:lang_code",c.current),value:e?e.language_code:null})})]}),s==="burrito"&&m.jsxs(ht,{container:!0,spacing:1,justifyItems:"flex-end",alignItems:"stretch",children:[m.jsx(yt,{children:de("library:pankosmia-rcl:description_lang_code_burrito",c.current)}),m.jsxs(ht,{item:!0,size:12,children:[m.jsx(Bi,{children:de("library:pankosmia-rcl:title_section_burrito",c.current)}),m.jsxs(ts,{row:!0,required:!0,children:[m.jsx(so,{control:m.jsx(So,{color:"secondary",checked:d,onChange:()=>u(!d),defaultChecked:!0}),label:de("library:pankosmia-rcl:local_project",c.current)}),m.jsx(so,{control:m.jsx(So,{color:"secondary",checked:h,onChange:()=>y(!h)}),label:de("library:pankosmia-rcl:burrito_resources",c.current)})]})]}),m.jsx(ht,{item:!0,size:12,children:m.jsx(bc,{data:R,setValue:g,getOptionLabel:P=>`${P}`,titleLabel:`${de("library:pankosmia-rcl:document",c.current)} *`})}),m.jsx(ht,{item:!0,size:6,children:m.jsx(Nn,{disabled:!0,id:"language_name",sx:{width:"100%"},label:de("library:pankosmia-rcl:lang_name",c.current),value:e?e.language_name:null})}),m.jsx(ht,{item:!0,size:6,children:m.jsx(Nn,{disabled:!0,id:"language_code",sx:{width:"100%"},label:de("library:pankosmia-rcl:lang_code",c.current),value:e?e.language_code:null})})]}),s==="customLanguage"&&m.jsxs(ht,{container:!0,spacing:1,justifyItems:"flex-end",alignItems:"stretch",children:[m.jsx(ht,{item:!0,size:12,children:m.jsx(yt,{children:de("library:pankosmia-rcl:description_custom_language",c.current)})}),m.jsx(ht,{item:!0,size:6,children:m.jsx(Nn,{id:"language_name",required:!0,sx:{width:"100%"},label:de("library:pankosmia-rcl:lang_name",c.current),value:e?e.language_name:null,onChange:P=>{const N=P.target.value;t({...e,language_name:N})}})}),m.jsx(ht,{item:!0,size:6,children:m.jsx(Nn,{id:"language_code",placeholder:"x-abc",error:a,helperText:de("library:pankosmia-rcl:helper_language_code",c.current),required:!0,sx:{width:"100%"},label:de("library:pankosmia-rcl:lang_code",c.current),value:e?e.language_code:null,onChange:P=>{const N=P.target.value.toLocaleLowerCase();t({...e,language_code:N}),l(N.length>0&&!x.test(N))}})})]})]})}const fa={select:{background:"white"},inputLabel:{}};function vc(e){const{listItem:t}=e,o={menuItem:{display:"flex",justifyContent:"space-between",color:"Black"}};return m.jsx("div",{style:o.menuItem,children:m.jsx("div",{style:o.menuItem,children:m.jsx(yt,{style:{width:"100%"},noWrap:!0,variant:"body2",component:"div",children:t})})})}vc.propTypes={listItem:Ns.PropTypes.shape({index:Ns.PropTypes.objectOf(Ns.PropTypes.string)})};function IO({isOpen:e,versification:t,setVersification:o}){const{i18nRef:r}=D.useContext(Qt),[s,i]=D.useState([]),[a,l]=D.useState(!1),c=()=>l(d=>!d);return D.useEffect(()=>{e&&ta({url:"/api/content-utils/versifications",setter:i}).then()},[e]),m.jsxs(Eo,{spacing:1,children:[m.jsxs(yt,{variant:"body1",children:[" ",de("library:pankosmia-rcl:choose_versification",r.current)," "]}),m.jsxs(Eo,{spacing:0,children:[m.jsx(yt,{variant:"body2",sx:{display:"-webkit-box",WebkitLineClamp:a?"unset":1,WebkitBoxOrient:"vertical",overflow:"hidden"},children:de("library:pankosmia-rcl:text_versification",r.current)}),m.jsx(xo,{onClick:c,color:"secondary",size:"small",disableRipple:!0,sx:{alignSelf:"flex-start",p:0,minWidth:0,textTransform:"none",fontSize:"0.8rem",fontWeight:400,"&:hover":{background:"none",textDecoration:"underline"}},children:de(a?"library:pankosmia-rcl:show_less":"library:pankosmia-rcl:show_more",r.current)})]}),m.jsxs(es,{sx:{width:"100%"},children:[m.jsx(zi,{id:"booksVersification-label",required:!0,htmlFor:"booksVersification",sx:fa.inputLabel,children:de("library:pankosmia-rcl:versification_scheme",r.current)}),m.jsx(as,{variant:"outlined",required:!0,labelId:"booksVersification-label",name:"booksVersification",inputProps:{id:"bookVersification"},value:t,label:de("library:pankosmia-rcl:versification_scheme",r.current),onChange:d=>{o(d.target.value)},sx:fa.select,children:s.map((d,u)=>m.jsx(ql,{value:d,dense:!0,children:m.jsx(vc,{listItem:`${d.toUpperCase()} - ${de(`scripture:versifications:${d}`,r.current)}`})},u))}),m.jsxs(Bl,{children:[" ",de("library:pankosmia-rcl:helper_versification",r.current)]})]})]})}function $O({bookCode:e,setBookCode:t,bookAbbr:o,setBookAbbr:r,bookTitle:s,setBookTitle:i,bookCodes:a,showVersification:l,setShowVersification:c,bookProject:d,addVerses:u=!0}){var E,T,w,x,k,R,P,N;const{i18nRef:h}=D.useContext(Qt),[y,p]=D.useState(!0),[g,f]=D.useState({});D.useEffect(()=>{Ot("/api/client-config").then(A=>A.json).then(A=>f(A)).catch(A=>console.error("Error :",A))},[]);const S=((x=(w=(T=(E=g==null?void 0:g["core-contenthandler_text_translation"])==null?void 0:E.find(A=>A.id==="config"))==null?void 0:T.fields)==null?void 0:w.find(A=>A.id==="protestantBooksOnlyCheckbox"))==null?void 0:x.value)!==!1,C=((N=(P=(R=(k=g==null?void 0:g["core-contenthandler_text_translation"])==null?void 0:k.find(A=>A.id==="config"))==null?void 0:R.fields)==null?void 0:P.find(A=>A.id==="protestantBooksOnlyDefaultChecked"))==null?void 0:N.value)!==!1;return D.useEffect(()=>{p(C)},[C]),m.jsx(m.Fragment,{children:m.jsxs(ht,{container:!0,spacing:1,justifyItems:"flex-end",alignItems:"stretch",children:[m.jsx(ht,{item:!0,size:4,children:m.jsxs(es,{sx:{width:"100%"},children:[m.jsx(zi,{id:"bookCode-label",required:!0,htmlFor:"bookCode",sx:fa.inputLabel,children:de("library:pankosmia-rcl:book_code",h.current)}),m.jsx(as,{variant:"outlined",labelId:"bookCode-label",name:"bookCode",inputProps:{id:"bookCode"},value:e,label:de("library:pankosmia-rcl:book_code",h.current),onChange:A=>{t(A.target.value),r(["1","2","3"].includes(A.target.value[0])?A.target.value.slice(0,2)+A.target.value[2].toLowerCase():A.target.value[0]+A.target.value.slice(1).toLowerCase()),i(de(`scripture:books:${A.target.value}`,h.current))},sx:fa.select,children:(y?a.slice(0,66):a).map((A,I)=>m.jsx(ql,{value:A,dense:!0,disabled:d?d.includes(A):!1,children:m.jsx(vc,{listItem:`${A} - ${de(`scripture:books:${A}`,h.current)}`})},I))})]})}),m.jsx(ht,{item:!0,size:4,children:m.jsx(Nn,{id:"bookAbbr",required:!0,sx:{width:"100%"},label:de("library:pankosmia-rcl:book_abbr",h.current),value:o,onChange:A=>{r(A.target.value)}})}),m.jsx(ht,{item:!0,size:4,children:m.jsx(Nn,{id:"bookTitle",required:!0,sx:{width:"100%"},label:de("library:pankosmia-rcl:book_title",h.current),value:s,onChange:A=>{i(A.target.value)}})}),S&&m.jsx(ts,{children:m.jsx(so,{control:m.jsx(So,{color:"secondary",checked:y,onChange:()=>p(!y)}),label:de("library:pankosmia-rcl:protestant_books_only",h.current)})}),u&&m.jsx(ts,{children:m.jsx(so,{control:m.jsx(So,{color:"secondary",checked:!0,disabled:!0,onChange:()=>c(!l)}),label:de("library:pankosmia-rcl:add_versification_checkbox",h.current)})})]})})}function jO({steps:e,initialStep:t=0,renderStepContent:o,isStepValid:r,handleCreate:s,handleClose:i,requiredFieldsLabel:a,primaryButtonVariant:l,primaryActionKey:c,secondaryButtonVariant:d,secondaryActionKey:u,primaryAction:h,secondaryAction:y,isLeftStepperButtonDisabled:p}){const g=Math.min(Math.max(t-1,0),e.length-1),[f,S]=D.useState(g),[C,E]=D.useState(new Set),{i18nRef:T}=D.useContext(Qt),w=R=>C.has(R),x=async()=>{let R=C;if(w(f)&&(R=new Set(R.values()),R.delete(f)),f===e.length-1){try{await s()}catch(P){console.error("Error create project",P)}return}S(P=>P+1),E(R)},k=()=>{S(R=>R-1)};return m.jsxs(m.Fragment,{children:[m.jsx(Df,{sx:{position:"sticky"},activeStep:f,children:e.map((R,P)=>{const N={},A={};return w(P)&&(N.completed=!1),m.jsx(If,{...N,children:m.jsx(Qi,{...A,children:R})},R)})}),f!==e.length&&m.jsxs(m.Fragment,{children:[a&&m.jsx(_l,{variant:"subtitle2",sx:{padding:"16px 0px"},children:de("library:pankosmia-rcl:required_field",T.current)}),o(f)]}),m.jsxs(_i,{sx:{justifyContent:"space-between",padding:"16px 0px 0px"},children:[m.jsx(xo,{sx:{padding:0},color:d||"inherit",onClick:f===0?i:y||k,disabled:p&&f===0,children:f===0?`${de(`${u||"library:pankosmia-rcl:cancel"}`,T.current)}`:`${de("library:pankosmia-rcl:back_button",T.current)}`}),m.jsx(xo,{sx:{padding:0},color:l||"inherit",onClick:h||x,disabled:!r(f),children:f===e.length-1?`${de(`${c||"library:pankosmia-rcl:create"}`,T.current)}`:`${de("library:pankosmia-rcl:next_button",T.current)}`})]})]})}const NO={palette:{primary:{main:"#666"},secondary:{main:"#888"}}};$e.AppWrapper=Um,$e.AppbarHamburger=SE,$e.ButtonInfo=Qf,$e.Header=Nm,$e.InternetSwitch=sc,$e.InternetWarningDialog=Xf,$e.PanBookPicker=$O,$e.PanDialog=TE,$e.PanDialogActions=CE,$e.PanDownload=pO,$e.PanFilteredMenu=bc,$e.PanLanguagePicker=PO,$e.PanStepperPicker=jO,$e.PanTable=rm,$e.PanVersificationPicker=IO,$e.SpSpa=kO,$e.SpSpaPage=Ym,$e.Spa=qm,$e.SpaContainer=Gm,$e.authContext=_m,$e.bcvContext=Bm,$e.clientConfigContext=na,$e.clientInterfacesContext=zm,$e.currentProjectContext=Lm,$e.debugContext=rr,$e.fallbackTheme=NO,$e.i18nContext=Qt,$e.languagesContext=RO,$e.messagesContext=Fm,$e.netContext=Oo,$e.productContext=da,$e.snippetContext=Vm,$e.typographyContext=Dm,$e.wordContext=Wm,Object.defineProperty($e,Symbol.toStringTag,{value:"Module"})}));
|
|
284
|
+
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},_w=function(){return $.createElement(Hs,null,$.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
285
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},Lw={default:void 0,success:$.createElement(Mw,null),warning:$.createElement(Aw,null),error:$.createElement(Dw,null),info:$.createElement(_w,null)},ko={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:Lw,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:pf,transitionDuration:{enter:225,exit:195}},Bw=function(t,o){var r=function(s){return typeof s=="number"||s===null};return r(t)?t:r(o)?o:ko.autoHideDuration},Fw=function(t,o){var r=function(s,a){return a.some(function(l){return typeof s===l})};return r(t,["string","number"])?t:r(t,["object"])?st({},ko.transitionDuration,{},r(o,["object"])&&o,{},t):r(o,["string","number"])?o:r(o,["object"])?st({},ko.transitionDuration,{},o):ko.transitionDuration},zw=function(t,o){return function(r,i){return i===void 0&&(i=!1),i?st({},ko[r],{},o[r],{},t[r]):r==="autoHideDuration"?Bw(t.autoHideDuration,o.autoHideDuration):r==="transitionDuration"?Fw(t.transitionDuration,o.transitionDuration):t[r]||o[r]||ko[r]}};function ii(e){return Object.entries(e).reduce(function(t,o){var r,i=o[0],s=o[1];return st({},t,(r={},r[i]=_l(s),r))},{})}var nr={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},ff=ii({root:{height:0},entered:{height:"auto"}}),Vl="0px",Wl=175,mf=$.forwardRef(function(e,t){var o=e.children,r=e.in,i=e.onExited,s=$.useRef(null),a=$.useRef(null),l=Fl(t,a),c=function(){return s.current?s.current.clientHeight:0},d=function(p){p.style.height=Vl},u=function(p){var C=c(),w=Ws({timeout:Wl,mode:"enter"}),E=w.duration,x=w.easing;p.style.transitionDuration=typeof E=="string"?E:E+"ms",p.style.height=C+"px",p.style.transitionTimingFunction=x||""},m=function(p){p.style.height="auto"},h=function(p){p.style.height=c()+"px"},y=function(p){cf(p);var C=Ws({timeout:Wl,mode:"exit"}),w=C.duration,E=C.easing;p.style.transitionDuration=typeof w=="string"?w:w+"ms",p.style.height=Vl,p.style.transitionTimingFunction=E||""};return $.createElement(Bl,{in:r,unmountOnExit:!0,onEnter:d,onEntered:m,onEntering:u,onExit:h,onExited:i,onExiting:y,nodeRef:a,timeout:Wl},function(g,p){return $.createElement("div",Object.assign({ref:l,className:wo(ff.root,g==="entered"&&ff.entered),style:st({pointerEvents:"all",overflow:"hidden",minHeight:Vl,transition:tr("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!r&&{visibility:"hidden"})},p),$.createElement("div",{ref:s,className:nr.CollapseWrapper,style:{display:"flex",width:"100%"}},o))})});mf.displayName="Collapse";var hf={right:"left",left:"right",bottom:"up",top:"down"},Vw=function(t){return t.horizontal!=="center"?hf[t.horizontal]:hf[t.vertical]},Ww=function(t){return"anchorOrigin"+Ll(t)},Uw=function(t){t===void 0&&(t={});var o={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!o[r]}).reduce(function(r,i){var s;return st({},r,(s={},s[i]=t[i],s))},{})},Hw=function(){};function si(e,t){return e.reduce(function(o,r){return r==null?o:function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];var c=[].concat(a);t&&c.indexOf(t)===-1&&c.push(t),o.apply(this,c),r.apply(this,c)}},Hw)}var qw=typeof window<"u"?$.useLayoutEffect:$.useEffect;function gf(e){var t=$.useRef(e);return qw(function(){t.current=e}),$.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var bf=$.forwardRef(function(e,t){var o=e.children,r=e.className,i=e.autoHideDuration,s=e.disableWindowBlurListener,a=s===void 0?!1:s,l=e.onClose,c=e.id,d=e.open,u=e.SnackbarProps,m=u===void 0?{}:u,h=$.useRef(),y=gf(function(){l&&l.apply(void 0,arguments)}),g=gf(function(x){!l||x==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){y(null,"timeout",c)},x))});$.useEffect(function(){return d&&g(i),function(){h.current&&clearTimeout(h.current)}},[d,i,g]);var p=function(){h.current&&clearTimeout(h.current)},C=$.useCallback(function(){i!=null&&g(i*.5)},[i,g]),w=function(T){m.onMouseEnter&&m.onMouseEnter(T),p()},E=function(T){m.onMouseLeave&&m.onMouseLeave(T),C()};return $.useEffect(function(){if(!a&&d)return window.addEventListener("focus",C),window.addEventListener("blur",p),function(){window.removeEventListener("focus",C),window.removeEventListener("blur",p)}},[a,C,d]),$.createElement("div",Object.assign({ref:t},m,{className:wo(nr.Snackbar,r),onMouseEnter:w,onMouseLeave:E}),o)});bf.displayName="Snackbar";var Ul,Gw=ii({root:(Ul={display:"flex",flexWrap:"wrap",flexGrow:1},Ul[Oo.upSm]={flexGrow:"initial",minWidth:"288px"},Ul)}),yf=$.forwardRef(function(e,t){var o=e.className,r=oi(e,["className"]);return $.createElement("div",Object.assign({ref:t,className:wo(Gw.root,o)},r))});yf.displayName="SnackbarContent";var ai=ii({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),vf="notistack-snackbar",xf=$.forwardRef(function(e,t){var o=e.id,r=e.message,i=e.action,s=e.iconVariant,a=e.variant,l=e.hideIconVariant,c=e.style,d=e.className,u=s[a],m=i;return typeof m=="function"&&(m=m(o)),$.createElement(yf,{ref:t,role:"alert","aria-describedby":vf,style:c,className:wo(nr.MuiContent,nr.MuiContentVariant(a),ai.root,ai[a],d,!l&&u&&ai.lessPadding)},$.createElement("div",{id:vf,className:ai.message},l?null:u,r),m&&$.createElement("div",{className:ai.action},m))});xf.displayName="MaterialDesignContent";var Cf=$.memo(xf),Yw=ii({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Kw=function(t){var o=$.useRef(),r=$.useState(!0),i=r[0],s=r[1],a=si([t.snack.onClose,t.onClose]),l=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},c=$.useCallback(function(){o.current=setTimeout(function(){s(function(R){return!R})},125)},[]);$.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var d=t.snack,u=t.classes,m=t.Component,h=m===void 0?Cf:m,y=$.useMemo(function(){return Uw(u)},[u]),g=d.open,p=d.SnackbarProps,C=d.TransitionComponent,w=d.TransitionProps,E=d.transitionDuration,x=d.disableWindowBlurListener,T=d.content,S=oi(d,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),P=st({direction:Vw(S.anchorOrigin),timeout:E},w),O=T;typeof O=="function"&&(O=O(S.id,S.message));var k=["onEnter","onEntered","onExit","onExited"].reduce(function(R,b){var j;return st({},R,(j={},j[b]=si([t.snack[b],t[b]],S.id),j))},{});return $.createElement(mf,{in:i,onExited:k.onExited},$.createElement(bf,{open:g,id:S.id,disableWindowBlurListener:x,autoHideDuration:S.autoHideDuration,className:wo(Yw.wrappedRoot,y.root,y[Ww(S.anchorOrigin)]),SnackbarProps:p,onClose:a},$.createElement(C,Object.assign({},P,{appear:!0,in:g,onExit:k.onExit,onExited:c,onEnter:k.onEnter,onEntered:si([k.onEntered,l],S.id)}),O||$.createElement(h,Object.assign({},S)))))},li,Hl,qs,Gs,ql,Ln={view:{default:20},snackbar:{default:6,dense:2}},Sf="."+nr.CollapseWrapper,Gl=16,Ys=ii({root:(li={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:tr(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},li[Sf]={padding:Ln.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},li.maxWidth="calc(100% - "+Ln.view.default*2+"px)",li[Oo.downXs]={width:"100%",maxWidth:"calc(100% - "+Gl*2+"px)"},li),rootDense:(Hl={},Hl[Sf]={padding:Ln.snackbar.dense+"px 0px"},Hl),top:{top:Ln.view.default-Ln.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Ln.view.default-Ln.snackbar.default+"px",flexDirection:"column-reverse"},left:(qs={left:Ln.view.default+"px"},qs[Oo.upSm]={alignItems:"flex-start"},qs[Oo.downXs]={left:Gl+"px"},qs),right:(Gs={right:Ln.view.default+"px"},Gs[Oo.upSm]={alignItems:"flex-end"},Gs[Oo.downXs]={right:Gl+"px"},Gs),center:(ql={left:"50%",transform:"translateX(-50%)"},ql[Oo.upSm]={alignItems:"center"},ql)}),Xw=function(t){var o=t.classes,r=o===void 0?{}:o,i=t.anchorOrigin,s=t.dense,a=t.children,l=wo(nr.SnackbarContainer,Ys[i.vertical],Ys[i.horizontal],Ys.root,r.containerRoot,r["containerAnchorOrigin"+Ll(i)],s&&Ys.rootDense);return $.createElement("div",{className:l},a)},Jw=$.memo(Xw),Zw=process.env.NODE_ENV!=="production",Qw={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},e1=(function(e){if(Zw){var t=Qw[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}),Tf=function(t){var o=typeof t=="string"||$.isValidElement(t);return!o},mn,wf=(function(e){tf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(s,a){if(a===void 0&&(a={}),s==null)throw new Error("enqueueSnackbar called with invalid argument");var l=Tf(s)?s:a,c=Tf(s)?s.message:s,d=l.key,u=l.preventDuplicate,m=oi(l,["key","preventDuplicate"]),h=zs(d),y=h?d:new Date().getTime()+Math.random(),g=zw(m,i.props),p=st({id:y},m,{message:c,open:!0,entered:!1,requestClose:!1,persist:g("persist"),action:g("action"),content:g("content"),variant:g("variant"),anchorOrigin:g("anchorOrigin"),disableWindowBlurListener:g("disableWindowBlurListener"),autoHideDuration:g("autoHideDuration"),hideIconVariant:g("hideIconVariant"),TransitionComponent:g("TransitionComponent"),transitionDuration:g("transitionDuration"),TransitionProps:g("TransitionProps",!0),iconVariant:g("iconVariant",!0),style:g("style",!0),SnackbarProps:g("SnackbarProps",!0),className:wo(i.props.className,m.className)});return p.persist&&(p.autoHideDuration=void 0),i.setState(function(C){if(u===void 0&&i.props.preventDuplicate||u){var w=function(S){return h?S.id===y:S.message===c},E=C.queue.findIndex(w)>-1,x=C.snacks.findIndex(w)>-1;if(E||x)return C}return i.handleDisplaySnack(st({},C,{queue:[].concat(C.queue,[p])}))}),y},i.handleDisplaySnack=function(s){var a=s.snacks;return a.length>=i.maxSnack?i.handleDismissOldest(s):i.processQueue(s)},i.processQueue=function(s){var a=s.queue,l=s.snacks;return a.length>0?st({},s,{snacks:[].concat(l,[a[0]]),queue:a.slice(1,a.length)}):s},i.handleDismissOldest=function(s){if(s.snacks.some(function(u){return!u.open||u.requestClose}))return s;var a=!1,l=!1,c=s.snacks.reduce(function(u,m){return u+(m.open&&m.persist?1:0)},0);c===i.maxSnack&&(process.env.NODE_ENV!=="production"&&e1("NO_PERSIST_ALL"),l=!0);var d=s.snacks.map(function(u){return!a&&(!u.persist||l)?(a=!0,u.entered?(u.onClose&&u.onClose(null,"maxsnack",u.id),i.props.onClose&&i.props.onClose(null,"maxsnack",u.id),st({},u,{open:!1})):st({},u,{requestClose:!0})):st({},u)});return st({},s,{snacks:d})},i.handleEnteredSnack=function(s,a,l){if(!zs(l))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(c){var d=c.snacks;return{snacks:d.map(function(u){return u.id===l?st({},u,{entered:!0}):st({},u)})}})},i.handleCloseSnack=function(s,a,l){i.props.onClose&&i.props.onClose(s,a,l);var c=l===void 0;i.setState(function(d){var u=d.snacks,m=d.queue;return{snacks:u.map(function(h){return!c&&h.id!==l?st({},h):h.entered?st({},h,{open:!1}):st({},h,{requestClose:!0})}),queue:m.filter(function(h){return h.id!==l})}})},i.closeSnackbar=function(s){var a=i.state.snacks.find(function(l){return l.id===s});zs(s)&&a&&a.onClose&&a.onClose(null,"instructed",s),i.handleCloseSnack(null,"instructed",s)},i.handleExitedSnack=function(s,a){if(!zs(a))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(l){var c=i.processQueue(st({},l,{snacks:l.snacks.filter(function(d){return d.id!==a})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},mn=i.enqueueSnackbar,i.closeSnackbar,i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(nf(i)),closeSnackbar:i.closeSnackbar.bind(nf(i))}},i}var o=t.prototype;return o.render=function(){var i=this,s=this.state.contextValue,a=this.props,l=a.domRoot,c=a.children,d=a.dense,u=d===void 0?!1:d,m=a.Components,h=m===void 0?{}:m,y=a.classes,g=this.state.snacks.reduce(function(C,w){var E,x=Ll(w.anchorOrigin),T=C[x]||[];return st({},C,(E={},E[x]=[].concat(T,[w]),E))},{}),p=Object.keys(g).map(function(C){var w=g[C],E=w[0];return $.createElement(Jw,{key:C,dense:u,anchorOrigin:E.anchorOrigin,classes:y},w.map(function(x){return $.createElement(Kw,{key:x.id,snack:x,classes:y,Component:h[x.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:si([i.handleExitedSnack,i.props.onExited],x.id),onEntered:si([i.handleEnteredSnack,i.props.onEntered],x.id)})}))});return $.createElement(rf.Provider,{value:s},c,l?un.createPortal(p,l):p)},ef(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||ko.maxSnack}}]),t})($.Component),t1=(function(){return $.useContext(rf)});const n1=dt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"BlockOutlined"),o1=dt(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),r1=dt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),i1=async(e,t)=>{const o=await kt("/api/burrito/metadata/summaries",t.current);e(o.json)};function s1({downloadedType:e="org",downloadFunction:t,sources:o,showColumnFilters:r,tableTitle:i,sx:s,theme:a,preSelected:l=[],topicsFilter:c=["pushing2sb","tc-ready"],showFilterButtons:d}){const{i18nRef:u}=$.useContext(Jt),{debugRef:m}=$.useContext(Jo),[h,y]=$.useState(0),g=$.useRef(0),[p,C]=$.useState([]),[w,E]=$.useState(null),[x,T]=$.useState({}),[S,P]=$.useState(!0),O=$.useRef(null),[k,R]=$.useState(0),[b,j]=$.useState(!1),{sourceWhitelist:N,filterExample:M,listMode:z}=$.useMemo(()=>{if(Array.isArray(o))return{listMode:!1,sourceWhitelist:o,filterExample:o.map(([A,Q,Y])=>({label:Q,icon:Y||f.jsx(r1,{}),filter:q=>!0}))};if(o&&typeof o=="object"){const A=[];for(const[Q,Y]of Object.entries(o))for(const q of Object.keys(Y))A.push([`${Q}/${q}`,q]);return{listMode:!0,sourceWhitelist:A,filterExample:[]}}return{listMode:!1,sourceWhitelist:[],filterExample:[]}},[o]);$.useEffect(()=>{M.length>0&&h===null&&y(0)},[M,h]),$.useEffect(()=>{if(!O.current)return;const A=new ResizeObserver(Q=>{for(const Y of Q)R(Y.contentRect.height)});return A.observe(O.current),()=>A.disconnect()},[M]);const F=$.useMemo(()=>{var A;return h!==null?(A=M[h])==null?void 0:A.filter:null},[h,M]);$.useEffect(()=>{(async()=>{P(!0),E(null);const Q=++g.current;i1(T,m);let Y=[];if(z)for(let q=0;q<N.length;q++){let U=N[q],_=U[0].split("/"),G;if(e==="org"&&(G=await kt(`/api/gitea/remote-repos/${U[0]}`,m.current)),e==="user"&&(G=await kt(`/api/gitea/user-remote-repos/${U[0]}`,m.current)),Q!==g.current)return;if(G.ok&&G.json.length>0)if(z){const H=G.json.filter(ne=>o[_[0]][_[1]].includes(ne.name)).map(ne=>({...ne,source:U[0]}));Y=[...Y,...H]}else{const H=G.json.map(ne=>({...ne,source:U[0]}));Y=[...Y,...H]}}else{let q=N[h],U=q[0].split("/"),_;if(e==="org"&&(_=await kt(`/api/gitea/remote-repos/${q[0]}`,m.current)),e==="user"&&(_=await kt(`/api/gitea/user-remote-repos/${q[0]}`,m.current)),Q!==g.current)return;if(_.ok&&_.json.length>0)if(z){const G=_.json.filter(H=>o[U[0]][U[1]].includes(H.name)).map(H=>({...H,source:q[0]}));Y=[...Y,...G]}else{const G=_.json.map(H=>({...H,source:q[0]}));Y=[...Y,...G]}}Y.length>0?(P(!1),j(!1),C(Y)):(P(!1),j(!0),mn(fe("library:pankosmia-rcl:catalog_empty",u.current),{variant:"error"}))})()},[N,h]),$.useEffect(()=>{if(p.length===0)return;(async()=>{const Q={};for(const Y of p)if(x[`${Y.source}/${Y.name}`]){const U=x[`${Y.source}/${Y.name}`].timestamp,_=Date.parse(Y.updated_at)/1e3;Q[`${Y.source}/${Y.name}`]=_-U>0?"updatable":"downloaded"}else Q[`${Y.source}/${Y.name}`]="notDownloaded";E(Q)})()},[p,x]);const L=$.useCallback(async(A,Q,Y)=>{E(U=>({...U,[Q]:"downloading"})),mn(`${fe("pages:core-remote-resources:downloading",u.current)} ${A.row.abbreviation}`,{variant:"info"});let q;q=await t(A,Q,Y),q.ok?(mn(`${A.row.abbreviation} ${fe(Y==="clone"?"pages:core-remote-resources:downloaded":"pages:core-remote-resources:updated",u.current)}`,{variant:"success"}),E(U=>({...U,[Q]:"downloaded"}))):(mn(`${A.row.abbreviation} ${fe("pages:core-remote-resources:failed",u.current)} : ${q.error} (${q.status})`,{variant:"error"}),E(U=>({...U,[Q]:"notDownloaded"})))},[]),X=$.useMemo(()=>[{field:"resourceCode",headerName:fe("library:pankosmia-rcl:row_resource_code",u.current),flex:.5,minWidth:140},{field:"language",headerName:fe("library:pankosmia-rcl:row_language",u.current),flex:.5,minWidth:120},{field:"description",headerName:fe("library:pankosmia-rcl:row_description",u.current),flex:2,minWidth:130},{field:"type",headerName:fe("library:pankosmia-rcl:row_type",u.current),flex:1.5,minWidth:80},{field:"download",sortable:!1,headerName:fe("library:pankosmia-rcl:row_download",u.current),flex:.5,minWidth:120,renderCell:A=>{const Q=`${A.row.source}/${A.row.name}`,Y=w==null?void 0:w[Q],q=Y==="updatable",U=Y==="downloading",_=Y==="downloaded"||!Y;return f.jsx(wn,{onClick:G=>{G.stopPropagation(),L(A,Q,q?"fetch":"clone")},loading:U,disabled:_,children:_?f.jsx(Sw,{}):q?f.jsx(Tw,{}):f.jsx(Xp,{})})}}],[u,w,L]),J=$.useMemo(()=>p.filter(A=>A.flavor).map(A=>({...A,id:`${A.source}/${A.name}`,url:A.latest_zip,metadata_types:A.metadata_types,resourceCode:A.abbreviation.toUpperCase(),language:A.language_code,description:A.description,flavor:A.flavor,flavorType:A.flavor_type,clone_url:A.clone_url,ingredients:A.ingredients,topics:A.topics,type:fe(`flavors:names:${A.flavor_type}/${A.flavor}`,u.current)})).filter(A=>A.metadata_types==="rc"&&A.topics.some(Q=>c.includes(Q))||A.metadata_types==="sb"||!1),[p,u]),W=[{label:"Download selected",icon:Xp,action:(A,Q)=>{if(!w)return;Q.filter(q=>A.selectedIds.includes(q.id)).forEach(q=>{const U=`${q.source}/${q.name}`;w[U]==="notDownloaded"?L({row:q},U,"clone"):w[U]==="updatable"&&L({row:q},U,"fetch")})}}],B=a?{theme:a}:{};return f.jsxs(ot,{...B,sx:{height:"100%"},children:[(M==null?void 0:M.length)>0&&d&&f.jsx(Co,{ref:O,direction:"row",spacing:0,alignItems:"center",sx:{mb:1},children:M.map((A,Q)=>{const Y=h===Q,q=Q===0,U=Q===M.length-1;return f.jsx(ps,{label:A.label,onClick:()=>y(Q),color:"primary",variant:Y?"filled":"outlined",icon:Y?f.jsx(o1,{}):A.icon,sx:{borderRadius:0,height:40,border:"1px solid",borderColor:"primary.main",...!q&&{borderLeft:"none"},...q&&{borderTopLeftRadius:"20px",borderBottomLeftRadius:"20px"},...U&&{borderTopRightRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiChip-icon":{width:20,marginLeft:"8px",marginRight:"-4px"},...Y&&{zIndex:1,borderColor:"primary.main"}}},A.label)})}),!S&&!b?f.jsx(ot,{sx:{height:k>0?`calc(100% - ${k+8}px)`:"100%"},children:f.jsx(Kp,{columns:X,rows:J,tableTitle:i,groupOperations:z?W:null,defaultFilter:F,showColumnFilters:r,preSelections:l,sx:{...s,height:"100%","& .MuiTableBody-root .MuiTableRow-root:nth-of-type(even) .MuiTableCell-root":{backgroundColor:A=>ke(A.palette.primary.main,.05)}}})}):!b&&f.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:f.jsx(jr,{})}),b&&f.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:f.jsxs(xt,{children:[" ",fe("library:pankosmia-rcl:catalog_empty",u.current)]})})]})}function Yl({data:e,titleLabel:t,getOptionLabel:o,value:r,setValue:i}){return f.jsx(Fd,{value:r,onChange:(s,a)=>{i(a)},options:e,getOptionLabel:o,sx:{width:"100%"},renderInput:s=>f.jsx(Rn,{...s,label:t})})}function a1({currentId:e}){const[t,o]=$.useState("auto"),[r,i]=$.useState(!1),s=$.useRef(null),[a,l]=$.useState(!1),[c,d]=$.useState([]),{i18nRef:u}=$.useContext(Jt),{enabledRef:m}=$.useContext(To),{debugRef:h}=$.useContext(Jo);$.useEffect(()=>{(async()=>{const p=await kt("/api/list-clients",h.current);p.ok&&d(p.json.filter(C=>!C.exclude_from_menu&&(h.current||!C.requires.debug)))})().then()},[h.current]);const y=g=>{kt(`/api/debug/${h.current?"disable":"enable"}`).then(()=>{g.stopPropagation(),g.preventDefault()})};return $.useEffect(()=>{let g;if(a&&!r)return g=setTimeout(()=>{if(s.current){const p=s.current.clientWidth;p>0&&(o(`${p}px`),i(!0))}},50),()=>clearTimeout(g)},[a,r]),f.jsxs(ot,{sx:{m:0,mr:2},children:[f.jsx(wn,{onClick:g=>l(!0),children:f.jsx(Up,{sx:{color:"#FFF"}})}),f.jsx(hl,{open:a,onClose:()=>l(!1),slotProps:{paper:{sx:{minWidth:"16rem",overflow:"hidden"}}},children:f.jsx(ot,{sx:{width:"100%",minHeight:"98vh",m:0,p:0},role:"presentation",children:f.jsx(vo,{sx:{height:"100%",width:"100%"},children:f.jsxs(Co,{direction:"column",spacing:0,sx:{height:"100%",width:"100%",justifyContent:"space-between",alignItems:"stretch"},children:[f.jsx(ot,{sx:{width:"100%"},children:c.map((g,p)=>g.id===e?f.jsx(xo,{disablePadding:!0,onClick:()=>l(!1),children:f.jsx(Pn,{selected:!0,children:f.jsx($n,{primary:fe(`pages:${g.id}:title`,u.current)})})},p):f.jsx(xo,{disablePadding:!0,children:f.jsx(Pn,{disabled:g.requires.net&&!m.current,onClick:()=>{window.location.href=g.url},children:f.jsx($n,{primary:fe(`pages:${g.id}:title`,u.current)})})},p))}),f.jsxs(ot,{children:[f.jsx(xo,{disablePadding:!0,children:f.jsx(Pn,{selected:e.includes("settings"),onClick:()=>{window.location.href="/clients/settings"},children:f.jsx($n,{primary:fe("pages:core-settings:title",u.current)})})}),f.jsx(vo,{sx:{width:"100%"},disablePadding:!0,children:f.jsxs(Pn,{onClick:y,children:[f.jsx($n,{primary:fe("components:header:beta_mode",u.current)}),f.jsx(_s,{edge:"end",onChange:y,checked:h.current})]})})]})]})})})})]})}const Kl=$.createContext({product:null,setProduct:()=>{}});function Ef({titleKey:e,widget:t,currentId:o,theme:r,showInternetSwitch:i=!0}){var h,y,g;const{i18nRef:s}=$.useContext(Jt),{clientConfigRef:a}=$.useContext(Fs),{enabledRef:l}=$.useContext(To),c=((g=(y=(h=a.current._global)==null?void 0:h.find(p=>p.id==="internetConfig"))==null?void 0:y.fields.find(p=>p.id==="internetConnectionAccess"))==null?void 0:g.value)??!0;$.useEffect(()=>{const p=fe("branding:software:name",s.current),C=fe(e,s.current);document.title=`${C} - ${p}`});const d=r?ts:$.Fragment,u=r?{theme:r}:{};let{product:m}=$.useContext(Kl);return f.jsx(d,{...u,children:f.jsx(ot,{display:"flex-start",sx:{flexGrow:1,m:0,p:0},children:f.jsx(Za,{position:"static",sx:{m:0,p:0,paddingTop:m&&m.os==="android"?"30px":"0px"},children:f.jsxs(ni,{variant:"dense",sx:{m:0,p:0},children:[f.jsx(a1,{currentId:o}),e&&e.length>0&&f.jsx(xt,{variant:"h6",sx:{m:0,p:0},children:fe(e,s.current)}),f.jsx(ot,{sx:{flexGrow:1,m:0,p:0},children:t}),f.jsx(ot,{sx:{m:0,p:0},children:c&&i&&f.jsx(Dl,{netEnabled:l.current,i18n:s.current})})]})})})})}async function l1(e,t){const o=e.getReader();let r;for(;!(r=await o.read()).done;)t(r.value)}function c1(e){let t,o,r,i=!1;return function(a){t===void 0?(t=a,o=0,r=-1):t=d1(t,a);const l=t.length;let c=0;for(;o<l;){i&&(t[o]===10&&(c=++o),i=!1);let d=-1;for(;o<l&&d===-1;++o)switch(t[o]){case 58:r===-1&&(r=o-c);break;case 13:i=!0;case 10:d=o;break}if(d===-1)break;e(t.subarray(c,d),r),c=o,r=-1}c===l?t=void 0:c!==0&&(t=t.subarray(c),o-=c)}}function u1(e,t,o){let r=Of();const i=new TextDecoder;return function(a,l){if(a.length===0)o==null||o(r),r=Of();else if(l>0){const c=i.decode(a.subarray(0,l)),d=l+(a[l+1]===32?2:1),u=i.decode(a.subarray(d));switch(c){case"data":r.data=r.data?r.data+`
|
|
286
|
+
`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const m=parseInt(u,10);isNaN(m)||t(r.retry=m);break}}}}function d1(e,t){const o=new Uint8Array(e.length+t.length);return o.set(e),o.set(t,e.length),o}function Of(){return{data:"",event:"",id:"",retry:void 0}}var p1=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(o[r[i]]=e[r[i]]);return o};const Xl="text/event-stream",f1=1e3,kf="last-event-id";function m1(e,t){var{signal:o,headers:r,onopen:i,onmessage:s,onclose:a,onerror:l,openWhenHidden:c,fetch:d}=t,u=p1(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((m,h)=>{const y=Object.assign({},r);y.accept||(y.accept=Xl);let g;function p(){g.abort(),document.hidden||S()}c||document.addEventListener("visibilitychange",p);let C=f1,w=0;function E(){document.removeEventListener("visibilitychange",p),window.clearTimeout(w),g.abort()}o==null||o.addEventListener("abort",()=>{E(),m()});const x=d??window.fetch,T=i??h1;async function S(){var P;g=new AbortController;try{const O=await x(e,Object.assign(Object.assign({},u),{headers:y,signal:g.signal}));await T(O),await l1(O.body,c1(u1(k=>{k?y[kf]=k:delete y[kf]},k=>{C=k},s))),a==null||a(),E(),m()}catch(O){if(!g.signal.aborted)try{const k=(P=l==null?void 0:l(O))!==null&&P!==void 0?P:C;window.clearTimeout(w),w=window.setTimeout(S,k)}catch(k){E(),h(k)}}}S()})}function h1(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(Xl)))throw new Error(`Expected content-type to be ${Xl}, Actual: ${t}`)}const Pf=$.createContext({auth:!1,setAuth:()=>{}}),$f=$.createContext({typography:{},setTypography:()=>{}}),Rf=$.createContext({currentProject:null,setCurrentProject:()=>{}}),jf=$.createContext({systemBcv:!1,setSystemBcv:()=>{}}),If=$.createContext({messages:[],setMessages:()=>{}}),Nf=$.createContext({clientInterfaces:{},setClientInterfaces:()=>{}}),Mf=$.createContext({snippet:{},setSnippet:()=>{}}),Af=$.createContext({word:{},setWord:()=>{}});function g1(){return f.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100%"},children:f.jsx(jr,{})})}function Df({children:e,netValue:t,debugValue:o,bcvValue:r,i18nValue:i,authValue:s,typographyValue:a,currentProjectValue:l,clientConfigValue:c,clientInterfacesValue:d,snippetValue:u,wordValue:m,productValue:h}){const[y,g]=$.useState([]),p={messages:y,setMessages:g},{enqueueSnackbar:C}=t1();$.useEffect(()=>{const T=S=>{const P=S.split("--");P.length===4&&C(`${P[2]} => ${P[3]}`,{variant:P[0],anchorOrigin:{vertical:"bottom",horizontal:"right"}})};y.length>0&&(y.forEach(S=>T(S)),g([]))},[y,C]);const[w,E]=$.useState({palette:{primary:{main:"#666"},secondary:{main:"#888"}}});$.useEffect(()=>{w.palette&&w.palette.primary&&w.palette.primary.main&&w.palette.primary.main==="#666"&&Bs({url:"/api/app-resources/themes/default.json",setter:E}).then()},[w.palette]);const x=Qi({components:{MuiFab:{styleOverrides:{root:{textTransform:"none"}}},MuiButton:{styleOverrides:{root:{textTransform:"none"}}},MuiTab:{styleOverrides:{root:{textTransform:"none"}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none"}}}}},w);return f.jsx(ts,{theme:x,children:f.jsx(Fs.Provider,{value:c,children:f.jsx(Nf.Provider,{value:d,children:f.jsx(Jt.Provider,{value:i,children:f.jsx(Mf.Provider,{value:u,children:f.jsx(Af.Provider,{value:m,children:f.jsx($f.Provider,{value:a,children:f.jsx(Pf.Provider,{value:s,children:f.jsx(Rf.Provider,{value:l,children:f.jsx(jf.Provider,{value:r,children:f.jsx(If.Provider,{value:p,children:f.jsx(Jo.Provider,{value:o,children:f.jsx(Kl.Provider,{value:h,children:f.jsx(To.Provider,{value:t,children:f.jsx(ot,{sx:{height:"100vh",overflow:"hidden"},children:!i||Object.keys(i.i18n).length===0?f.jsx(g1,{}):e})})})})})})})})})})})})})})})}var Ks={exports:{}},b1=Ks.exports,_f;function y1(){return _f||(_f=1,(function(e,t){(function(o,r,i){e.exports=i()})("dcopy",b1,function(){return function(r){if(/number|string|boolean/.test(typeof r))return r;if(r instanceof Date)return new Date(r.getTime());var i=r instanceof Array?[]:{};return s(r,i),i;function s(a,l){for(var c in a){var d=a[c];if(d instanceof Date){var u=new Date(d.getTime());o(l,c,u)}else if(d instanceof Function){var u=d;o(l,c,u)}else if(d instanceof Array){var u=[],m=o(l,c,u);s(d,m)}else if(d instanceof Object){var u={},m=o(l,c,u);s(d,m)}else{var u=d;o(l,c,u)}}}};function o(r,i,s){if(r instanceof Array)return r.push(s),r[r.length-1];if(r instanceof Object)return r[i]=s,r[i]}})})(Ks)),Ks.exports}var v1=y1();const x1=Ql(v1);function Lf({children:e}){const[t,o]=$.useState(!1),r=$.useRef(t),i=ie=>{r.current=ie,o(ie)},[s,a]=$.useState(!1),l=$.useRef(s),c=ie=>{l.current=ie,a(ie)},[d,u]=$.useState({}),m=$.useRef(d),h=ie=>{m.current=ie,u(ie)},[y,g]=$.useState({bookCode:"TIT",chapterNum:1,verseNum:1,endVerseNum:1}),p=$.useRef(y),C=ie=>{p.current=ie,g(ie)},[w,E]=$.useState({}),x=$.useRef(w),T=ie=>{x.current=ie,E(ie)},[S,P]=$.useState({font_set:"Pankosmia-CardoPankosmia-EzraSILPankosmia-PadaukPankosmia-AwamiNastaliqPankosmia-NotoNastaliqUrduPankosmia-GentiumPlus",size:"medium",direction:"ltr"}),O=$.useRef(S),k=ie=>{O.current=ie,P(ie)},[R,b]=$.useState(null),j=$.useRef(R),N=ie=>{j.current=ie,b(ie)},[M,z]=$.useState({}),F=$.useRef(M),L=ie=>{F.current=ie,z(ie)},X=async()=>{await kt("/api/client-config").then(ie=>ie.json).then(ie=>L(ie)).catch(ie=>console.error("Error :",ie))},[J,W]=$.useState({}),B=$.useRef(J),A=ie=>{B.current=ie,W(ie)},[Q,Y]=$.useState(null),q=$.useRef(Q),U=ie=>{q.current=ie,Y(ie)},[_,G]=$.useState(null),H=$.useRef(_),ne=ie=>{H.current=ie,G(ie)},[se,ce]=$.useState(null),D=$.useRef(se),Ee=ie=>{D.current=ie,ce(ie)},de=async()=>{await kt("/api/client-interfaces").then(ie=>ie.json).then(ie=>A(ie)).catch(ie=>console.error("Error :",ie))},Ce=async()=>{const ie=await kt("/api/i18n/flat",l.current);ie.ok?T(ie.json):mn(`Could not load i18n: ${ie.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})},We=async()=>{const ie=await kt("/api/settings/typography",l.current);ie.ok||mn(`Could not load typography: ${ie.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})},ue=async()=>{const ie=await kt("/api/version",l.current);ie.ok?Ee(ie.json):mn(`Could not load version for product: ${ie.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})},Me=async()=>{const ie=await kt("/api/app-state/alignment",l.current);if(ie.ok){const $e=ie.json.snippet,he=ie.json.word;$e!==q.current&&U($e),JSON.stringify(he)!==JSON.stringify(H.current)&&ne(he)}else mn(`Could not load alignment: ${ie.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})};$.useEffect(()=>{Ce().then(),Me().then(),We().then(),X().then(),de().then(),ue().then()},[]),$.useEffect(()=>{(async()=>{const $e=await kt("/api/navigation/bcv",l.current);if($e.ok){const he=$e.json;C({bookCode:he.book_code,chapterNum:he.chapter,verseNum:he.verse})}else mn(`Could not load bcv: ${$e.error}`,{variant:"error",anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:!0})})().then()},[]);const Te=ie=>{const $e=ie.data.split("--");if($e.length===4){const he=$e[1]==="enabled";he!==r.current&&i(he);const Dt=$e[3]==="enabled";Dt!==l.current&&c(Dt)}},_e=ie=>{const $e=ie.data.split("--");if($e.length===4){const he={bookCode:$e[0],chapterNum:parseInt($e[1]),verseNum:parseInt($e[2]),endVerseNum:parseInt($e[3])};(he.bookCode!==p.current.bookCode||he.chapterNum!==p.current.chapterNum||he.verseNum!==p.current.verseNum||he.endVerseNum!==p.current.endVerseNum)&&C(he)}},Be=ie=>{const $e=ie.data.split("--");if($e.length===3){const he={font_set:$e[0],size:$e[1],direction:$e[2]};(he.font_set!==O.current.font_set||he.size!==O.current.size||he.direction!==O.current.direction)&&k(he)}},me=()=>{Ce().then()},at=ie=>{try{const $e=x1(m.current),[he,Dt,Mt]=ie.data.split("--");if(["true","false"].includes(Mt)){const cn=Mt==="true";(!(he in $e)||!("isActive"in $e[he])||cn!==$e[he].isActive)&&($e[he]={endpoint:Dt,isActive:cn},h($e))}}catch($e){console.log(`Auth Error: ${$e}, data: ${ie.data}`)}},ze=ie=>{if(ie.data===null)j.current!==null&&N(null);else{const $e=ie.data.split("--");if($e.length===3){let he={source:$e[0],organization:$e[1],project:$e[2]};(!j.current||he.source!==j.current.source||he.organization!==j.current.organization||he.project!==j.current.project)&&N(he)}else N(null)}},ft=ie=>{const $e=ie.data.split("--");$e.length===4&&mn(`${$e[2]} => ${$e[3]}`,{variant:$e[0],anchorOrigin:{vertical:"bottom",horizontal:"left"},persist:$e[0]==="error"})},bt=()=>{Me().then()};$.useEffect(()=>{const ie=new AbortController;return(async()=>{await m1("/api/notifications",{method:"GET",headers:{Accept:"text/event-stream"},onopen(he){he.ok&&he.status===200||he.status>=400&&he.status<500&&he.status!==429&&console.log("Error from SSE",he.status)},onmessage(he){he.event==="misc"?ft(he):he.event==="status"?Te(he):he.event==="bcv"?_e(he):he.event==="auth"?at(he):he.event==="languages"?me():he.event==="typography"?Be(he):he.event==="current_project"?ze(he):he.event==="alignment"&&bt()},onclose(){console.log("SSE connection closed by the server")},onerror(he){console.log("There was an error from the SSE server",he)}})})(),()=>ie.abort()},[]);const ut={enableNet:t,setEnableNet:i,enabledRef:r},Ue={debug:s,setDebug:c,debugRef:l},Ae={systemBcv:y,setSystemBcv:C,bcvRef:p},Ie={auth:d,setAuth:h,authRef:m},Se={i18n:w,setI18n:T,i18nRef:x},Ye={typography:S,setTypography:k,typographyRef:O},He={currentProject:R,setCurrentProject:N,currentProjectRef:j},St={clientInterfaces:J,setClientInterfaces:A,clientInterfacesRef:B},jt={snippet:Q,setSnippet:U,snippetRef:q},pe={word:_,setWord:ne,wordRef:H},Le={clientConfig:M,setClientConfig:L,clientConfigRef:F};l.current&&console.log("Rerender Spa");const Ge={product:se,setProduct:Ee,productRef:D},Pt=Z(Cf)(()=>({"&.notistack-MuiContent-error":{backgroundColor:"#FDEDED",color:"#D32F2F"},"&.notistack-MuiContent-info":{backgroundColor:"#E5F6FD",color:"#0288D1"},"&.notistack-MuiContent-warning":{backgroundColor:"#FFF4E5",color:"#EF6C00"},"&.notistack-MuiContent-success":{backgroundColor:"#EDF7ED",color:"#2E7D32"}}));return f.jsx(wf,{Components:{error:Pt,info:Pt,warning:Pt,success:Pt},maxSnack:6,children:f.jsx(Df,{netValue:ut,debugValue:Ue,i18nValue:Se,bcvValue:Ae,authValue:Ie,typographyValue:Ye,currentProjectValue:He,clientConfigValue:Le,clientInterfacesValue:St,snippetValue:jt,wordValue:pe,productValue:Ge,children:e})})}function Bf({children:e}){return f.jsx(wf,{maxSnack:3,children:f.jsx(Lf,{children:e})})}function Ff({titleKey:e,widget:t,margin:o=0,children:r,requireNet:i=!1,currentId:s}){const{enableNet:a}=$.useContext(To),{i18nRef:l}=$.useContext(Jt);return i&&!a?f.jsx(ot,{sx:{m:0,height:"100%",overflowX:"hidden",overflowY:"auto"},children:f.jsx(gt,{container:!0,alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh"},children:f.jsxs(gt,{item:!0,display:"flex",flexDirection:"column",alignItems:"center",rowSpacing:.5,children:[f.jsx(n1,{sx:{fontSize:80},color:"warning"}),f.jsx("p",{children:fe("components:framework:no_entry_if_offline",l.current)})]})})}):f.jsxs(f.Fragment,{children:[f.jsx(ot,{children:f.jsx(Ef,{titleKey:e||null,widget:t||null,currentId:s})}),f.jsx(ot,{sx:{m:o,overflowX:"hidden",overflowY:"auto"},children:r})]})}function C1({children:e,titleKey:t,requireNet:o,currentId:r,widget:i,margin:s}){return f.jsx(Bf,{children:f.jsx(Ff,{titleKey:t,requireNet:o,currentId:r,widget:i||null,margin:s||0,children:e})})}const S1=$.createContext({languages:!1,setLanguages:()=>{}});function T1({currentLanguage:e,setCurrentLanguage:t,setIsValid:o,open:r=!0}){const[i,s]=$.useState("BCP47List"),[a,l]=$.useState(!1),{i18nRef:c}=$.useContext(Jt),[d,u]=$.useState(!0),[m,h]=$.useState(!1),[y,g]=$.useState(""),[p,C]=$.useState([]),[w,E]=$.useState({}),[x,T]=$.useState(!0),S=/^x-[a-z]{3}$/;$.useEffect(()=>{r&&Bs({url:"/api/git/list-local-repos",setter:C}).then()},[r]),$.useEffect(()=>{r&&Bs({url:"/api/app-resources/lookups/bcp47-language_codes.json",setter:E}).then()},[r]);const P=Object.entries(w).map(([k,R])=>({language_code:k,language_name:R.en}));$.useEffect(()=>{e.language_code&&o(!a)},[a]),$.useEffect(()=>{x&&Object.keys(w).length>0&&(e.language_code&&(w[e.language_code]?t({language_code:e.language_code,language_name:w[e.language_code].en}):(t({language_code:`x-${e.language_code}`,language_name:`x-${e.language_code}`.toUpperCase()}),s("customLanguage"))),T(!1))},[w,x,P]),$.useEffect(()=>{y&&kt(`/api/burrito/metadata/summary/${y}`).then(k=>k.json).then(k=>t({...e,language_code:k.language_code,language_name:k.language_name})).catch(k=>console.error("Error :",k))},[r,y]);const O=p.filter(k=>d&&k.startsWith("_local_")||m&&k.startsWith("git"));return f.jsxs(f.Fragment,{children:[f.jsxs(Wr,{children:[f.jsx($s,{id:"demo-radio-buttons-group-label",children:fe("library:pankosmia-rcl:choose_language",c.current)}),f.jsxs(yp,{row:!0,value:i,onChange:k=>{s(k.target.value),t({language_code:"",language_name:""})},"aria-labelledby":"demo-radio-buttons-group-label",name:"radio-buttons-group",children:[f.jsx(Jn,{value:"BCP47List",control:f.jsx(Ns,{}),label:fe("library:pankosmia-rcl:lang_code_bcp47_list",c.current)}),f.jsx(Jn,{value:"burrito",control:f.jsx(Ns,{}),label:fe("library:pankosmia-rcl:lang_code_burrito",c.current)}),f.jsx(Jn,{value:"customLanguage",control:f.jsx(Ns,{}),label:fe("library:pankosmia-rcl:lang_code_custom_language",c.current)})]})]}),i==="BCP47List"&&f.jsxs(gt,{container:!0,spacing:2,children:[f.jsx(gt,{item:!0,size:12,children:f.jsx(xt,{children:fe("library:pankosmia-rcl:description_bcp47_list",c.current)})}),f.jsx(gt,{item:!0,size:6,children:w&&f.jsx(Yl,{value:e.language_code??null,setValue:k=>{var R;return t({language_code:k,language_name:((R=w[k])==null?void 0:R.en)??""})},data:Object.keys(w),getOptionLabel:k=>{var R,b;return(R=w[k])!=null&&R.en?`${(b=w[k])==null?void 0:b.en} (${k})`:""},titleLabel:`${fe("library:pankosmia-rcl:language",c.current)} *`})}),f.jsx(gt,{item:!0,size:6,children:f.jsx(Rn,{disabled:!0,id:"language_code",sx:{width:"100%"},label:fe("library:pankosmia-rcl:lang_code",c.current),value:e?e.language_code:null})})]}),i==="burrito"&&f.jsxs(gt,{container:!0,spacing:1,justifyItems:"flex-end",alignItems:"stretch",children:[f.jsx(xt,{children:fe("library:pankosmia-rcl:description_lang_code_burrito",c.current)}),f.jsxs(gt,{item:!0,size:12,children:[f.jsx($s,{children:fe("library:pankosmia-rcl:title_section_burrito",c.current)}),f.jsxs(Hr,{row:!0,required:!0,children:[f.jsx(Jn,{control:f.jsx(yo,{color:"secondary",checked:d,onChange:()=>u(!d),defaultChecked:!0}),label:fe("library:pankosmia-rcl:local_project",c.current)}),f.jsx(Jn,{control:f.jsx(yo,{color:"secondary",checked:m,onChange:()=>h(!m)}),label:fe("library:pankosmia-rcl:burrito_resources",c.current)})]})]}),f.jsx(gt,{item:!0,size:12,children:f.jsx(Yl,{data:O,setValue:g,getOptionLabel:k=>`${k}`,titleLabel:`${fe("library:pankosmia-rcl:document",c.current)} *`})}),f.jsx(gt,{item:!0,size:6,children:f.jsx(Rn,{disabled:!0,id:"language_name",sx:{width:"100%"},label:fe("library:pankosmia-rcl:lang_name",c.current),value:e?e.language_name:null})}),f.jsx(gt,{item:!0,size:6,children:f.jsx(Rn,{disabled:!0,id:"language_code",sx:{width:"100%"},label:fe("library:pankosmia-rcl:lang_code",c.current),value:e?e.language_code:null})})]}),i==="customLanguage"&&f.jsxs(gt,{container:!0,spacing:1,justifyItems:"flex-end",alignItems:"stretch",children:[f.jsx(gt,{item:!0,size:12,children:f.jsx(xt,{children:fe("library:pankosmia-rcl:description_custom_language",c.current)})}),f.jsx(gt,{item:!0,size:6,children:f.jsx(Rn,{id:"language_name",required:!0,sx:{width:"100%"},label:fe("library:pankosmia-rcl:lang_name",c.current),value:e?e.language_name:null,onChange:k=>{const R=k.target.value;t({...e,language_name:R})}})}),f.jsx(gt,{item:!0,size:6,children:f.jsx(Rn,{id:"language_code",placeholder:"x-abc",error:a,helperText:fe("library:pankosmia-rcl:helper_language_code",c.current),required:!0,sx:{width:"100%"},label:fe("library:pankosmia-rcl:lang_code",c.current),value:e?e.language_code:null,onChange:k=>{const R=k.target.value.toLocaleLowerCase();t({...e,language_code:R}),l(R.length>0&&!S.test(R))}})})]})]})}const Xs={select:{background:"white"},inputLabel:{}};function Jl(e){const{listItem:t}=e,o={menuItem:{display:"flex",justifyContent:"space-between",color:"Black"}};return f.jsx("div",{style:o.menuItem,children:f.jsx("div",{style:o.menuItem,children:f.jsx(xt,{style:{width:"100%"},noWrap:!0,variant:"body2",component:"div",children:t})})})}Jl.propTypes={listItem:Pi.PropTypes.shape({index:Pi.PropTypes.objectOf(Pi.PropTypes.string)})};function w1({isOpen:e,versification:t,setVersification:o}){const{i18nRef:r}=$.useContext(Jt),[i,s]=$.useState([]),[a,l]=$.useState(!1),c=()=>l(d=>!d);return $.useEffect(()=>{e&&Bs({url:"/api/content-utils/versifications",setter:s}).then()},[e]),f.jsxs(Co,{spacing:1,children:[f.jsxs(xt,{variant:"body1",children:[" ",fe("library:pankosmia-rcl:choose_versification",r.current)," "]}),f.jsxs(Co,{spacing:0,children:[f.jsx(xt,{variant:"body2",sx:{display:"-webkit-box",WebkitLineClamp:a?"unset":1,WebkitBoxOrient:"vertical",overflow:"hidden"},children:fe("library:pankosmia-rcl:text_versification",r.current)}),f.jsx(bo,{onClick:c,color:"secondary",size:"small",disableRipple:!0,sx:{alignSelf:"flex-start",p:0,minWidth:0,textTransform:"none",fontSize:"0.8rem",fontWeight:400,"&:hover":{background:"none",textDecoration:"underline"}},children:fe(a?"library:pankosmia-rcl:show_less":"library:pankosmia-rcl:show_more",r.current)})]}),f.jsxs(Wr,{sx:{width:"100%"},children:[f.jsx(js,{id:"booksVersification-label",required:!0,htmlFor:"booksVersification",sx:Xs.inputLabel,children:fe("library:pankosmia-rcl:versification_scheme",r.current)}),f.jsx(Zr,{variant:"outlined",required:!0,labelId:"booksVersification-label",name:"booksVersification",inputProps:{id:"bookVersification"},value:t,label:fe("library:pankosmia-rcl:versification_scheme",r.current),onChange:d=>{o(d.target.value)},sx:Xs.select,children:i.map((d,u)=>f.jsx(Sl,{value:d,dense:!0,children:f.jsx(Jl,{listItem:`${d.toUpperCase()} - ${fe(`scripture:versifications:${d}`,r.current)}`})},u))}),f.jsxs(gl,{children:[" ",fe("library:pankosmia-rcl:helper_versification",r.current)]})]})]})}function E1({bookCode:e,setBookCode:t,bookAbbr:o,setBookAbbr:r,bookTitle:i,setBookTitle:s,bookCodes:a,showVersification:l,setShowVersification:c,bookProject:d,addVerses:u=!0}){var E,x,T,S,P,O,k,R;const{i18nRef:m}=$.useContext(Jt),[h,y]=$.useState(!0),[g,p]=$.useState({});$.useEffect(()=>{kt("/api/client-config").then(b=>b.json).then(b=>p(b)).catch(b=>console.error("Error :",b))},[]);const C=((S=(T=(x=(E=g==null?void 0:g["core-contenthandler_text_translation"])==null?void 0:E.find(b=>b.id==="config"))==null?void 0:x.fields)==null?void 0:T.find(b=>b.id==="protestantBooksOnlyCheckbox"))==null?void 0:S.value)!==!1,w=((R=(k=(O=(P=g==null?void 0:g["core-contenthandler_text_translation"])==null?void 0:P.find(b=>b.id==="config"))==null?void 0:O.fields)==null?void 0:k.find(b=>b.id==="protestantBooksOnlyDefaultChecked"))==null?void 0:R.value)!==!1;return $.useEffect(()=>{y(w)},[w]),f.jsx(f.Fragment,{children:f.jsxs(gt,{container:!0,spacing:1,justifyItems:"flex-end",alignItems:"stretch",children:[f.jsx(gt,{item:!0,size:4,children:f.jsxs(Wr,{sx:{width:"100%"},children:[f.jsx(js,{id:"bookCode-label",required:!0,htmlFor:"bookCode",sx:Xs.inputLabel,children:fe("library:pankosmia-rcl:book_code",m.current)}),f.jsx(Zr,{variant:"outlined",labelId:"bookCode-label",name:"bookCode",inputProps:{id:"bookCode"},value:e,label:fe("library:pankosmia-rcl:book_code",m.current),onChange:b=>{t(b.target.value),r(["1","2","3"].includes(b.target.value[0])?b.target.value.slice(0,2)+b.target.value[2].toLowerCase():b.target.value[0]+b.target.value.slice(1).toLowerCase()),s(fe(`scripture:books:${b.target.value}`,m.current))},sx:Xs.select,children:(h?a.slice(0,66):a).map((b,j)=>f.jsx(Sl,{value:b,dense:!0,disabled:d?d.includes(b):!1,children:f.jsx(Jl,{listItem:`${b} - ${fe(`scripture:books:${b}`,m.current)}`})},j))})]})}),f.jsx(gt,{item:!0,size:4,children:f.jsx(Rn,{id:"bookAbbr",required:!0,sx:{width:"100%"},label:fe("library:pankosmia-rcl:book_abbr",m.current),value:o,onChange:b=>{r(b.target.value)}})}),f.jsx(gt,{item:!0,size:4,children:f.jsx(Rn,{id:"bookTitle",required:!0,sx:{width:"100%"},label:fe("library:pankosmia-rcl:book_title",m.current),value:i,onChange:b=>{s(b.target.value)}})}),C&&f.jsx(Hr,{children:f.jsx(Jn,{control:f.jsx(yo,{color:"secondary",checked:h,onChange:()=>y(!h)}),label:fe("library:pankosmia-rcl:protestant_books_only",m.current)})}),u&&f.jsx(Hr,{children:f.jsx(Jn,{control:f.jsx(yo,{color:"secondary",checked:!0,disabled:!0,onChange:()=>c(!l)}),label:fe("library:pankosmia-rcl:add_versification_checkbox",m.current)})})]})})}function O1({steps:e,initialStep:t=0,renderStepContent:o,isStepValid:r,handleCreate:i,handleClose:s,requiredFieldsLabel:a,primaryButtonVariant:l,primaryActionKey:c,secondaryButtonVariant:d,secondaryActionKey:u,primaryAction:m,secondaryAction:h,isLeftStepperButtonDisabled:y}){const g=Math.min(Math.max(t-1,0),e.length-1),[p,C]=$.useState(g),[w,E]=$.useState(new Set),{i18nRef:x}=$.useContext(Jt),T=O=>w.has(O),S=async()=>{let O=w;if(T(p)&&(O=new Set(O.values()),O.delete(p)),p===e.length-1){try{await i()}catch(k){console.error("Error create project",k)}return}C(k=>k+1),E(O)},P=()=>{C(O=>O-1)};return f.jsxs(f.Fragment,{children:[f.jsx(Pp,{sx:{position:"sticky"},activeStep:p,children:e.map((O,k)=>{const R={},b={};return T(k)&&(R.completed=!1),f.jsx(wp,{...R,children:f.jsx(Rl,{...b,children:O})},O)})}),p!==e.length&&f.jsxs(f.Fragment,{children:[a&&f.jsx(ml,{variant:"subtitle2",sx:{padding:"16px 0px"},children:fe("library:pankosmia-rcl:required_field",x.current)}),o(p)]}),f.jsxs(Os,{sx:{justifyContent:"space-between",padding:"16px 0px 0px"},children:[f.jsx(bo,{sx:{padding:0},color:d||"inherit",onClick:p===0?s:h||P,disabled:y&&p===0,children:p===0?`${fe(`${u||"library:pankosmia-rcl:cancel"}`,x.current)}`:`${fe("library:pankosmia-rcl:back_button",x.current)}`}),f.jsx(bo,{sx:{padding:0},color:l||"inherit",onClick:m||S,disabled:!r(p),children:p===e.length-1?`${fe(`${c||"library:pankosmia-rcl:create"}`,x.current)}`:`${fe("library:pankosmia-rcl:next_button",x.current)}`})]})]})}const k1={palette:{primary:{main:"#666"},secondary:{main:"#888"}}};De.AppWrapper=Df,De.AppbarHamburger=hw,De.ButtonInfo=Wp,De.Header=Ef,De.InternetSwitch=Dl,De.InternetWarningDialog=zp,De.PanBookPicker=E1,De.PanDialog=gw,De.PanDialogActions=bw,De.PanDownload=s1,De.PanFilteredMenu=Yl,De.PanLanguagePicker=T1,De.PanStepperPicker=O1,De.PanTable=Kp,De.PanVersificationPicker=w1,De.SpSpa=C1,De.SpSpaPage=Ff,De.Spa=Lf,De.SpaContainer=Bf,De.authContext=Pf,De.bcvContext=jf,De.clientConfigContext=Fs,De.clientInterfacesContext=Nf,De.currentProjectContext=Rf,De.debugContext=Jo,De.fallbackTheme=k1,De.i18nContext=Jt,De.languagesContext=S1,De.messagesContext=If,De.netContext=To,De.productContext=Kl,De.snippetContext=Mf,De.typographyContext=$f,De.wordContext=Af,Object.defineProperty(De,Symbol.toStringTag,{value:"Module"})}));
|
|
303
287
|
//# sourceMappingURL=pankosmia-rcl.umd.js.map
|